/* =====================================================
   Keyboard Shortcuts UI:
   Help Button, Toolbox Badges, Ribbon Hints
===================================================== */

/* ── Shortcuts Help Button ──────────────────────────────── */
.btn-shortcuts {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    background: #f8f9ff;
    border: 1.5px solid #d4d4ff;
    border-radius: 5px;
    color: #0000ff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.btn-shortcuts:hover {
    background: #0000ff;
    color: white;
    border-color: #0000ff;
}
.btn-shortcuts svg { flex-shrink: 0; }

/* ── Toolbox shortcut badge ─────────────────────────────── */
.toolbox-item {
    position: relative;
    overflow: hidden;  /* prevent badge bleeding into adjacent cells */
}
.tbx-shortcut-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #0000ff;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    padding: 1px 3px;
    border-radius: 3px;
    pointer-events: none;
    letter-spacing: 0;
    opacity: 0.85;
    font-family: 'Inter', monospace;
    white-space: nowrap;
    max-width: 90%;          /* never wider than the cell */
    overflow: hidden;
    text-overflow: ellipsis;
}
.toolbox-item:hover .tbx-shortcut-badge {
    opacity: 1;
    background: #0033cc;
}
.toolbox-item.active .tbx-shortcut-badge {
    background: #fff;
    color: #0000ff;
}

/* ── Ribbon tool button shortcut hint ───────────────────── */
.rb-shortcut-hint {
    display: inline-block;
    background: rgba(0,0,255,0.10);
    color: #0000ff;
    font-size: 9px;
    font-weight: 800;
    padding: 0px 4px;
    border-radius: 3px;
    margin-left: 3px;
    border: 1px solid rgba(0,0,255,0.18);
    line-height: 14px;
    vertical-align: middle;
}
