/* The public meeting keeps the same room and questions on clean notebook paper. */
body.nb-funnel-body {
    --font-serif: 'Bogue', Georgia, serif;
    --font-ui: 'Mulish', system-ui, sans-serif;
    --font-mono: 'Mulish', system-ui, sans-serif;
    --cream: #513924;
    --ink-body: #513924;
    --ink-2: #786653;
    --ink-3: #786653;
    --brass: #513924;
    --board: #fdfdfc;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    background: #fdfdfc;
}
.nb-funnel-body #paper-bg { display: none; }
.nb-funnel-body .nb-funnel-topbar { background: #fdfdfc; border: 0; padding: 16px 24px; }
.nb-funnel-body .nb-brand-word { font-family: 'Bogue', Georgia, serif; font-weight: 500; }
.nb-funnel-body .nb-topbar-actions a { font: 500 13px/1.5 'Mulish', system-ui, sans-serif; color: #786653; letter-spacing: 0; text-transform: none; }
.nb-orientation-frame {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0 16px 16px;
    padding: 8px;
    border-radius: 12px;
    background: #f7efe6;
    box-shadow: 0 1px 2px rgba(33, 32, 28, .08);
}
.nb-funnel-body .nb-tutor {
    min-height: 0;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 8px;
    background-color: #fdfdfc;
    background-image: linear-gradient(rgba(139, 175, 179, .06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(139, 175, 179, .06) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: 0 0;
    box-shadow: 0 1px 2px rgba(33, 32, 28, .08);
}
.nb-funnel-body .nb-zeno-said { background: #fdfdfc; border-color: #ded9d2; font-family: 'Mulish', system-ui, sans-serif; font-size: 16px; }
.nb-funnel-body .nb-tutor-zeno-name { font-family: 'Mulish', system-ui, sans-serif; letter-spacing: .02em; text-transform: none; }
.nb-funnel-body .nb-tutor-type-btn { border-radius: 10px; font: 600 13px/1.5 'Mulish', system-ui, sans-serif; letter-spacing: 0; text-transform: none; }
.nb-funnel-body .nb-tutor-utility-controls {
    overflow: hidden;
    border: 1px solid #d9cec0;
    border-radius: 12px;
    background: #fdfdfc;
}
.nb-funnel-body .nb-tutor-utility-controls .nb-tutor-type-btn {
    position: static;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #513924;
    font: 600 13px/1.5 'Mulish', system-ui, sans-serif;
    letter-spacing: 0;
    text-transform: none;
}
.nb-funnel-body .nb-tutor-utility-controls:focus-within,
.nb-funnel-body .nb-tutor-mic-btn:focus-visible { outline: 2px solid #8c6d50; outline-offset: 4px; }
.nb-funnel-body .nb-tutor-mic-btn {
    background: linear-gradient(180deg, #4d3825, #29190c);
    color: #fdfdfc;
    border-color: #3f2b1a;
    box-shadow: 0 2px 6px #51392412;
}
.nb-funnel-body .nb-tutor-mic-btn:hover { color: #fdfdfc; border-color: #3f2b1a; }
.nb-funnel-body .nb-tutor-mic-btn.is-recording { background: #705137; }
.nb-funnel-body .status-bar {
    font: 500 12px/1.5 'Mulish', system-ui, sans-serif;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
}
.nb-funnel-body .nb-funnel-sound {
    font: 500 12px/1.5 'Mulish', system-ui, sans-serif;
    letter-spacing: 0;
    text-transform: none;
    color: #786653;
}
.nb-funnel-body .primary-button,
.nb-funnel-body .nb-room-composer .nb-orient-input-send {
    background: linear-gradient(180deg, #4d3825, #29190c);
    color: #fdfdfc;
    border-radius: 12px;
    font-family: 'Mulish', system-ui, sans-serif;
    letter-spacing: 0;
    text-transform: none;
}

/* Optional replies to Zeno's questions, shared by both tutor rooms. */
.nb-tutor .nb-sheet-paper:has(.nb-orientation-card) {
    background: #fff;
    border: 1px solid #e5e2da;
    border-radius: 18px;
    box-shadow: 0 2px 3px #30291c06, 0 12px 30px #30291c05;
    color: #513924;
    transform: none;
    animation: nbRoleAppear 360ms cubic-bezier(.22, 1, .36, 1) both !important;
}
.nb-tutor .nb-sheet-paper:has(.nb-orientation-card) .nb-sheet-pin { display: none; }
.nb-tutor .nb-sheet-paper:has(.nb-orientation-card) .nb-sheet-kicker {
    font-family: 'Bogue', Georgia, serif;
    font-size: 23px;
    font-weight: 400;
    letter-spacing: -.02em;
    text-transform: none;
    color: #513924;
}
.nb-orientation-card { font-family: 'Mulish', system-ui, sans-serif; }
.nb-orient-role-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nb-orient-role-option {
    --choice-paper: #f5f3d9;
    --choice-hover: #efedc5;
    --choice-border: #dcdcb6;
    --choice-ink: #454329;
    --choice-art: #bebc69;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    min-height: 160px;
    padding: 20px 18px;
    border: 1px solid var(--choice-border);
    border-radius: 16px;
    background: var(--choice-paper);
    color: var(--choice-ink);
    box-shadow: 0 2px 1px #292a1908;
    font: 400 24px/1.15 'Bogue', Georgia, serif;
    text-align: left;
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease, border-color 200ms ease;
    animation: nbChoiceAppear 440ms cubic-bezier(.22, 1, .36, 1) 70ms both;
}
.nb-orient-role-option:nth-child(2) {
    --choice-paper: #e8f1e0;
    --choice-hover: #dceacc;
    --choice-border: #ceddc3;
    --choice-ink: #354b36;
    --choice-art: #9bbb88;
    animation-delay: 140ms;
}
.nb-orient-role-option > span:first-child { position: relative; z-index: 1; max-width: calc(100% - 24px); }
.nb-orient-role-option::before {
    content: '';
    position: absolute;
    right: 10px;
    bottom: -9px;
    width: 98px;
    height: 98px;
    background-color: var(--choice-art);
    opacity: .65;
    mask: url('/static/icons/onboarding-book.svg') center / contain no-repeat;
    transition: transform 280ms cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
}
.nb-orient-role-option:nth-child(2)::before { mask-image: url('/static/icons/onboarding-leaves.svg'); }
.nb-orient-role-option:hover:not(:disabled) { background: var(--choice-hover); transform: translateY(-3px); box-shadow: 0 7px 14px #30291c12; }
.nb-orient-role-option:hover:not(:disabled)::before { transform: rotate(-5deg) translateY(-3px); }
.nb-orient-role-option:active:not(:disabled) { transform: translateY(0) scale(.985); box-shadow: 0 1px 2px #30291c10; }
.nb-orient-role-option:focus-visible { outline: 3px solid #8c6d50; outline-offset: 4px; }
.nb-orient-role-option:disabled { cursor: default; }
.nb-orient-role-option[data-selected="true"] { background: var(--choice-hover); border-color: var(--choice-ink); box-shadow: inset 0 0 0 1px var(--choice-ink); }
.nb-orient-role-hint { margin: 16px 0 0; color: #786653; font-size: 13px; line-height: 1.6; }
.nb-orientation-card .nb-orient-option {
    --choice-paper: #e8eff7;
    --choice-hover: #dce8f4;
    --choice-border: #cddbe8;
    --choice-ink: #354a61;
    border: 1px solid var(--choice-border);
    border-radius: 16px;
    background: var(--choice-paper);
    color: var(--choice-ink);
    padding: 20px 18px;
    box-shadow: 0 2px 1px #292a1908;
    transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
    animation: nbChoiceAppear 440ms cubic-bezier(.22, 1, .36, 1) 70ms both;
}
.nb-orientation-card .nb-orient-option:nth-child(2) { --choice-paper: #efebf7; --choice-hover: #e6def1; --choice-border: #dcd3e7; --choice-ink: #504063; animation-delay: 140ms; }
.nb-orientation-card .nb-orient-option:hover:not(:disabled) { background: var(--choice-hover); transform: translateY(-3px); box-shadow: 0 7px 14px #30291c12; }
.nb-orientation-card .nb-orient-option:active:not(:disabled) { transform: translateY(0) scale(.985); }
.nb-orientation-card .nb-orient-option[data-selected="true"] { background: var(--choice-hover); box-shadow: inset 0 0 0 1px var(--choice-ink); }
.nb-orientation-card .nb-orient-option:focus-visible,
.nb-orientation-card .nb-orient-input-send:focus-visible { outline: 3px solid #8c6d50; outline-offset: 4px; }
.nb-orientation-card .nb-orient-option .n { font: 400 36px/1.2 'Bogue', Georgia, serif; color: var(--choice-ink); }
.nb-orientation-card .nb-orient-option .per,
.nb-orientation-card .nb-orient-option .price { font-family: 'Mulish', system-ui, sans-serif; color: var(--choice-ink); }
.nb-orientation-card .nb-orient-hint,
.nb-orientation-card .nb-orient-note { font: 400 13px/1.6 'Mulish', system-ui, sans-serif; color: #786653; }
.nb-orientation-card .nb-orient-sched { font: 400 21px/1.6 'Bogue', Georgia, serif; color: #513924; }
.nb-orientation-card .nb-orient-input-label { font: 600 15px/1.5 'Mulish', system-ui, sans-serif; color: #513924; }
.nb-orientation-card .nb-orient-input {
    background: #fffefa;
    border: 1px solid #c9b69f;
    border-radius: 11px;
    color: #513924;
    padding: 12px 14px;
    font: 400 16px/1.5 'Mulish', system-ui, sans-serif;
}
.nb-orientation-card .nb-orient-input:focus { outline: 2px solid #8c6d50; outline-offset: 2px; border-color: #8c6d50; }
.nb-orientation-card .nb-orient-input-send {
    border: 1px solid #3f2b1a;
    border-radius: 11px;
    background: linear-gradient(180deg, #4d3825, #29190c);
    color: #fffefa;
    font: 600 14px/1.5 'Mulish', system-ui, sans-serif;
    min-height: 44px;
    padding: 10px 18px;
}
@keyframes nbRoleAppear { from { opacity: 0; translate: 0 5px; } to { opacity: 1; translate: 0 0; } }
@keyframes nbChoiceAppear { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 520px) {
    .nb-orientation-frame { margin: 0 8px 8px; }
    .nb-funnel-body .nb-funnel-topbar { padding: 12px 16px; }
    .nb-orient-role-options { gap: 10px; }
    .nb-orient-role-option { min-height: 162px; padding: 16px 12px; font-size: 21px; }
    .nb-orient-role-option > span:first-child { max-width: 100%; padding-right: 3px; }
    .nb-orient-role-option::before { width: 82px; height: 82px; right: -5px; }
}
@media (max-width: 560px) {
    /* Keep the existing mascot lane clear, including when autoplay repair is
       visible. The typing drawer still uses applyNotch's inline lift. */
    .nb-funnel-body .nb-tutor-status-strip {
        left: auto;
        right: 14px;
        width: calc(100% - 134px);
        transform: none;
        gap: 10px;
    }
    .nb-funnel-body .nb-tutor-voice-row { width: 100%; }
    .nb-funnel-body .nb-funnel-sound { max-width: 100%; white-space: normal; }
    .nb-funnel-body .nb-tutor:has(#tutor-sheet[aria-hidden="false"] .nb-orient-role-card) .nb-tutor-status-strip {
        bottom: 118px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .nb-tutor .nb-sheet-paper:has(.nb-orientation-card) { animation: none !important; }
    .nb-orient-role-option,
    .nb-orientation-card .nb-orient-option,
    .nb-orient-role-option::before { animation: none; transition: none; }
    .nb-orient-role-option:hover:not(:disabled),
    .nb-orientation-card .nb-orient-option:hover:not(:disabled),
    .nb-orient-role-option:hover:not(:disabled)::before { transform: none; }
}
