/* Shared voice control for the large-Zeno conversation room. The orientation
   and pre-topic session deliberately place this dock in the same spot and use
   the same hold-to-talk gesture. */
.nb-tutor-voice-row {
    display: flex;
    align-items: center;
    gap: 13px;
}

/* Before teaching begins, Pause and Type are one secondary control group.
   They live at the right edge of the conversation room; once a topic launches,
   the lesson player's own centered control bar replaces this group. */
.nb-tutor-utility-controls {
    position: absolute;
    right: 22px;
    bottom: 24px;
    z-index: 45;
    display: flex;
    align-items: stretch;
    border: 1px solid rgba(34, 48, 58, 0.22);
    background: rgba(250, 248, 242, 0.88);
}

.nb-tutor-utility-controls.is-composer-open {
    bottom: 88px;
}

.nb-tutor-utility-controls .nb-tutor-type-btn,
.nb-tutor-utility-controls .nb-tutor-break-btn {
    position: static;
    right: auto;
    bottom: auto;
    min-height: 46px;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-right: 1px solid rgba(34, 48, 58, 0.18);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ink-2);
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.11em;
    line-height: 1.2;
    text-transform: uppercase;
}

.nb-tutor-utility-controls > :last-child {
    border-right: 0;
}

.nb-tutor-utility-controls .nb-tutor-type-btn:hover,
.nb-tutor-utility-controls .nb-tutor-break-btn:hover:not(:disabled) {
    background: rgba(34, 48, 58, 0.045);
    color: var(--ink-body);
}

.nb-tutor.teaching .nb-tutor-utility-controls {
    display: none;
}

.nb-tutor-mic-btn {
    width: auto;
    height: 46px;
    padding: 8px 14px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--paper);
    border: 1px solid rgba(34, 48, 58, 0.28);
    color: var(--ink-2);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(34, 48, 58, 0.06);
    touch-action: none;
    transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}

.nb-tutor-mic-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: block;
}

.nb-tutor-mic-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; white-space: nowrap; }
.nb-tutor-mic-copy > span { font: 500 12px/1.3 var(--font-ui); letter-spacing: 0; text-transform: none; }
.nb-tutor-mic-copy kbd { font: 400 9px/1.3 var(--font-ui); color: #a38e7c; letter-spacing: 0; text-transform: none; }
.nb-tutor-voice-row .status-bar:empty { display: none; }

.nb-tutor-mic-btn:hover {
    color: var(--cream);
    border-color: rgba(34, 48, 58, 0.5);
}

.nb-tutor-mic-btn.is-recording {
    background: var(--brass);
    border-color: var(--brass);
    color: var(--board);
}

@media (max-width: 560px) {
    .nb-tutor-utility-controls {
        right: 14px;
        bottom: 16px;
    }

    .nb-tutor-utility-controls.is-composer-open {
        bottom: 82px;
    }

    /* On a phone, the right-edge utility strip owns the lowest band. Lift the
       voice control above it so Pause/Type and the microphone never collide. */
    .nb-tutor .nb-tutor-status-strip {
        bottom: 78px;
    }

    .nb-tutor-voice-row {
        flex-direction: column-reverse;
        gap: 8px;
    }
}
