/* Ctrl+Shift held (keyboard_shortcuts.js): a ring round each shortcut's control, its letter on a badge at the bottom. */
.kbs-tips {
    position: fixed;
    inset: 0;
    z-index: 5000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease, visibility 0s linear 0.12s;
}

.kbs-tips.is-shown {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.12s ease;
}

.kbs-ring {
    position: fixed;
    box-sizing: border-box;
    border: 2px solid #008080;
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.15);
}

.kbs-tip {
    position: fixed;
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    box-sizing: border-box;
    padding: 0 6px;
    border: 1.5px solid #ffffff;
    border-radius: 6px;
    background: linear-gradient(180deg, #009fa4 0%, #007e82 100%);
    box-shadow: 0 3px 8px rgba(0, 60, 60, 0.3);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    transform: translate(-50%, -50%) scale(0.6);
    transition: transform 0.22s cubic-bezier(0.34, 1.5, 0.64, 1);
}

.kbs-tips.is-shown .kbs-tip {
    transform: translate(-50%, -50%);
}

/* The bottom bar listing every shortcut (keyboard_shortcuts.js SHOW_BAR, off for now). */
.kbs-bar {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 5000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    padding: 10px 16px;
    border-radius: 14px;
    /* The teal of the page headers (notification_bell.css .notification-dropdown-header). */
    background: linear-gradient(180deg, #009fa4 0%, #007e82 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 14px 40px rgba(0, 60, 60, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, calc(100% + 40px));
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, visibility 0s linear 0.34s;
}

.kbs-bar.is-shown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.kbs-mod,
.kbs-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.kbs-item > span {
    margin-left: 3px;
}

.kbs-mod > span {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

/* Overrides Bootstrap's dark kbd. */
.kbs-bar kbd {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    box-sizing: border-box;
    padding: 0 7px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-bottom-width: 2px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
}

/* Ctrl and Shift are the keys being held, so they show pressed. */
.kbs-mod kbd {
    border-color: #ffffff;
    border-bottom-width: 1px;
    background: #ffffff;
    color: #007e82;
}

.kbs-sep {
    align-self: stretch;
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
}
