/* /Components/Chat/ChatMessage.razor.rz.scp.css */
/* Two-pupil colouring. Additive only: these rules apply nothing unless the turn carries
   a pupil id, so a single-pupil conversation looks exactly as it did.

   The colours match the builder's tabs - first pupil red, second blue - so the instructor
   who wrote the profile and the PST reading the chat see the same person. */

.chat-message--red .chat-message__speaker[b-v0frnn8z7r] {
    color: #c0392b;
}

.chat-message--blue .chat-message__speaker[b-v0frnn8z7r] {
    color: #2062c0;
}

/* A left edge rather than coloured body text: the pupil's words stay as readable as the
   teacher's, while the speaker is identifiable at a glance down the margin. Colour alone
   never carries the meaning - the name is always there too, which is what makes this
   work when printed in grey or read by someone colour-blind. */
.chat-message--red .chat-message__bubble[b-v0frnn8z7r] {
    border-left: 3px solid #c0392b;
}

.chat-message--blue .chat-message__bubble[b-v0frnn8z7r] {
    border-left: 3px solid #2062c0;
}

.chat-message__to[b-v0frnn8z7r] {
    font-size: 0.8em;
    opacity: 0.7;
    font-style: italic;
}

/* Instructor preview only. The real exercise never renders this line. */
.chat-message__assessment[b-v0frnn8z7r] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    margin: .28rem 0 .12rem 1.05rem;
    font-size: .73rem;
    line-height: 1.35;
    color: #546475;
    overflow-wrap: anywhere;
}
.chat-message__assessment-dot[b-v0frnn8z7r] {
    display: inline-block;
    width: .42rem;
    height: .42rem;
    flex: 0 0 .42rem;
    border-radius: 50%;
    background: #93a1b2;
}
.chat-message__assessment code[b-v0frnn8z7r] {
    font: inherit;
    color: inherit;
    opacity: .77;
    background: transparent;
}
.chat-message__assessment--emerging[b-v0frnn8z7r] { color: #805512; }
.chat-message__assessment--emerging .chat-message__assessment-dot[b-v0frnn8z7r] { background: #bc872d; }
.chat-message__assessment--change[b-v0frnn8z7r] { color: #156c46; }
.chat-message__assessment--change .chat-message__assessment-dot[b-v0frnn8z7r] { background: #199b65; }
.chat-message__assessment--unavailable[b-v0frnn8z7r] { color: #9a3a3a; }
.chat-message__assessment--unavailable .chat-message__assessment-dot[b-v0frnn8z7r] { background: #bc5757; }
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.app-shell[b-ty9u7r0vpw] {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--surface-page);
}

.app-header[b-ty9u7r0vpw] {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem clamp(1rem, 3vw, 2.5rem);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
}

.brand[b-ty9u7r0vpw] {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-strong);
    text-decoration: none;
}

.brand:hover[b-ty9u7r0vpw] {
    color: var(--text-strong);
}

.brand-mark[b-ty9u7r0vpw] {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.15rem;
    background: var(--brand);
    color: white;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
}

.brand strong[b-ty9u7r0vpw],
.brand small[b-ty9u7r0vpw] {
    display: block;
}

.brand strong[b-ty9u7r0vpw] {
    font-size: 1.02rem;
    line-height: 1.1;
}

.brand small[b-ty9u7r0vpw] {
    margin-top: 0.18rem;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.header-meta[b-ty9u7r0vpw] {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.prototype-chip[b-ty9u7r0vpw] {
    padding: 0.34rem 0.62rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.version-label[b-ty9u7r0vpw] {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* v11.8: NO/EN language selector, styled to sit with the prototype chip. */
.language-picker[b-ty9u7r0vpw] {
    margin: 0;
    display: inline-flex;
}

.language-picker select[b-ty9u7r0vpw] {
    appearance: none;
    -webkit-appearance: none;
    padding: 0.32rem 1.7rem 0.32rem 0.7rem;
    border: 1px solid var(--border-medium);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-strong);
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23748094' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    cursor: pointer;
}

.language-picker select:hover:not(:disabled)[b-ty9u7r0vpw] {
    border-color: var(--brand);
}

.language-picker select:focus-visible[b-ty9u7r0vpw] {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.language-picker select:disabled[b-ty9u7r0vpw] {
    opacity: 0.55;
    cursor: not-allowed;
}

.app-main[b-ty9u7r0vpw] {
    flex: 1;
    width: 100%;
}

.app-footer[b-ty9u7r0vpw] {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem clamp(1rem, 3vw, 2.5rem);
    font-size: 0.76rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-soft);
    background: white;
}

@media (max-width: 640px) {
    .app-header[b-ty9u7r0vpw] {
        min-height: 64px;
    }

    .prototype-chip[b-ty9u7r0vpw] {
        display: none;
    }

    .app-footer[b-ty9u7r0vpw] {
        flex-direction: column;
        gap: 0.2rem;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-z9rnbwd3dl] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-z9rnbwd3dl] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-z9rnbwd3dl] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-z9rnbwd3dl] {
    font-size: 1.1rem;
}

.bi[b-z9rnbwd3dl] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-z9rnbwd3dl] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-z9rnbwd3dl] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-z9rnbwd3dl] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-z9rnbwd3dl] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-z9rnbwd3dl] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-z9rnbwd3dl] {
        padding-bottom: 1rem;
    }

    .nav-item[b-z9rnbwd3dl]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-z9rnbwd3dl]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-z9rnbwd3dl]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-z9rnbwd3dl] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-z9rnbwd3dl] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-z9rnbwd3dl] {
        display: none;
    }

    .nav-scrollable[b-z9rnbwd3dl] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-zftrqd8oeh],
.components-reconnect-repeated-attempt-visible[b-zftrqd8oeh],
.components-reconnect-failed-visible[b-zftrqd8oeh],
.components-pause-visible[b-zftrqd8oeh],
.components-resume-failed-visible[b-zftrqd8oeh],
.components-rejoining-animation[b-zftrqd8oeh] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-zftrqd8oeh],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-zftrqd8oeh],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-zftrqd8oeh],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-zftrqd8oeh],
#components-reconnect-modal.components-reconnect-retrying[b-zftrqd8oeh],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-zftrqd8oeh],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-zftrqd8oeh],
#components-reconnect-modal.components-reconnect-failed[b-zftrqd8oeh],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-zftrqd8oeh] {
    display: block;
}


#components-reconnect-modal[b-zftrqd8oeh] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-zftrqd8oeh 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-zftrqd8oeh 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-zftrqd8oeh 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-zftrqd8oeh]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-zftrqd8oeh 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-zftrqd8oeh {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-zftrqd8oeh {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-zftrqd8oeh {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-zftrqd8oeh] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-zftrqd8oeh] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-zftrqd8oeh] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-zftrqd8oeh] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-zftrqd8oeh] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-zftrqd8oeh] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-zftrqd8oeh] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-zftrqd8oeh 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-zftrqd8oeh] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-zftrqd8oeh {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Debrief.razor.rz.scp.css */
.debrief[b-dy06bj00f6] {
    width: min(1160px, 100%);
    padding-bottom: 2rem;
}
/* Keep explanatory sections comfortable to read; let the full chat use the width. */
.debrief > :not(.debrief__conversation)[b-dy06bj00f6] {
    width: 100%;
    max-width: 820px;
    justify-self: center;
}
.debrief__conversation[b-dy06bj00f6] {
    width: 100%;
    min-width: 0;
}
@media (max-width: 760px) {
    .debrief > :not(.debrief__conversation)[b-dy06bj00f6] { max-width: none; }
}
.debrief__intro[b-dy06bj00f6] { margin-bottom: 1rem; }
.debrief__metrics[b-dy06bj00f6] { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0.65rem; margin: 1rem 0 0.4rem; }
.debrief__metrics > div[b-dy06bj00f6] { display:flex; flex-direction:column; gap:0.25rem; border-radius:0.55rem; background:var(--surface-soft,#f4f6fa); padding:0.7rem; }
.debrief__metrics strong[b-dy06bj00f6] { font-size:1.4rem; }
.debrief__metrics span[b-dy06bj00f6] {font-size:0.75rem; color:var(--text-muted,#657084);}
.debrief__pupils[b-dy06bj00f6] { display:grid; gap:0.6rem; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
.debrief__pupil[b-dy06bj00f6] {display:flex; flex-direction:column; gap:0.3rem; padding:0.8rem; border:1px solid var(--border-soft,#ddd); border-radius:0.6rem;}
.debrief__pupil span[b-dy06bj00f6] {font-size:0.84rem; color:var(--text-muted,#657084);}
.debrief__timeline[b-dy06bj00f6] {list-style:none; padding:0; margin:1rem 0 0;}
.debrief__event[b-dy06bj00f6] {margin:0 0 0.8rem; border:1px solid var(--border-soft,#ddd); border-radius:0.65rem; padding:0.95rem; overflow-wrap:anywhere;}
.debrief__eventtop[b-dy06bj00f6] {display:flex;flex-wrap:wrap; align-items:center; justify-content:space-between; gap:0.5rem; margin-bottom:0.65rem;}
.debrief__status[b-dy06bj00f6] { font-size:0.77rem; padding:0.25rem 0.5rem; border-radius:0.45rem; background:#f1f3f5; color:#464f5c; font-weight:600; }
.debrief__status--change[b-dy06bj00f6] {background:#e1f6e8; color:#176c41;}
.debrief__status--emerging[b-dy06bj00f6] {background:#fff2d9; color:#855515;}
.debrief__status--unavailable[b-dy06bj00f6] {background:#eff1f4; color:#656f80;}
.debrief__status--transfer[b-dy06bj00f6] {background:#e6efff; color:#315b9e;}
.debrief__question[b-dy06bj00f6] {margin:0 0 0.6rem; padding:0.65rem 0.8rem; background:var(--surface-soft,#f4f6fa); border-radius:0.55rem; }
.debrief__reply[b-dy06bj00f6] {margin:0 0 0.6rem; padding:0.65rem 0.8rem; border-left:3px solid var(--brand-dark,#315da6);}
.debrief__question p[b-dy06bj00f6],.debrief__reply p[b-dy06bj00f6] {margin:0.2rem 0 0;white-space:pre-wrap;}
.debrief__details[b-dy06bj00f6] {margin-top:0.6rem;}
.debrief__details summary[b-dy06bj00f6] {cursor:pointer; font-size:0.85rem;font-weight:600;}
.debrief__details p[b-dy06bj00f6] {font-size:0.88rem;white-space:pre-wrap;}
.debrief__notice[b-dy06bj00f6] {padding:0.6rem 0.8rem; border-left:3px solid #949eaf; background:#f5f6f8; color:#4d586a; border-radius:0.35rem; font-size:0.86rem;}
.debrief__reflection ol[b-dy06bj00f6] {line-height:1.65; padding-left:1.4rem;}
.debrief__reflection li[b-dy06bj00f6] {margin-bottom:0.45rem;}
@media (max-width:600px) {.debrief__metrics[b-dy06bj00f6] {grid-template-columns:1fr;}}

/* Per-session tutor/PST read-only conversation view inside completed debrief. */
.debrief__chat-toggle[b-dy06bj00f6] {margin-top:0.7rem;}
.debrief__chat-toggle > summary[b-dy06bj00f6] {cursor:pointer; font-weight:600; padding:0.6rem 0;}
.debrief__chat-lines[b-dy06bj00f6] {list-style:none; padding:0; margin:0.65rem 0 0; display:grid; gap:0.55rem;}
.debrief__chat-line[b-dy06bj00f6] {border:1px solid var(--border-soft,#ddd); border-radius:0.6rem; padding:0.8rem; overflow-wrap:anywhere;}
.debrief__chat-line--pst[b-dy06bj00f6] {margin-left:min(10%,3rem); background:var(--surface-soft,#f4f6fa);}
.debrief__chat-line--pupil[b-dy06bj00f6] {margin-right:min(10%,3rem);}
.debrief__chat-line > strong[b-dy06bj00f6] {margin-right:0.5rem;}
.debrief__chat-line > p[b-dy06bj00f6] {white-space:pre-wrap; margin:0.4rem 0 0;}
.debrief__chat-assessment[b-dy06bj00f6] {border-top:1px solid var(--border-soft,#ddd); margin-top:0.6rem; padding-top:0.65rem;}
.debrief__chat-assessment details[b-dy06bj00f6] {margin-top:0.45rem; font-size:0.85rem;}
.debrief__chat-assessment summary[b-dy06bj00f6] {cursor:pointer;}
.debrief__chat-assessment details p[b-dy06bj00f6] {white-space:pre-wrap;}
.debrief__chat-scene figure[b-dy06bj00f6] {margin:0.4rem 0;}
.debrief__chat-scene svg[b-dy06bj00f6] {max-width:100%;height:auto;}
.debrief__chat-math[b-dy06bj00f6] {overflow-wrap:anywhere;}

.debrief__inline-math[b-dy06bj00f6],
.debrief__chat-math[b-dy06bj00f6] {
    display:block;
    margin:0.45rem 0 0;
    overflow-x:auto;
}

.debrief__math-fallback[b-dy06bj00f6] {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.95em;
}

.debrief__inline-math .katex-display[b-dy06bj00f6],
.debrief__chat-math .katex-display[b-dy06bj00f6] {
    margin: 0;
}

@media print {
    .debrief__chat-line[b-dy06bj00f6],
    .debrief__event[b-dy06bj00f6],
    .debrief__chat-scene[b-dy06bj00f6] {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
/* /Components/Pages/Instructor/ScenarioEdit.razor.rz.scp.css */
/* Pupil tabs.

   The colour is the whole point: red and blue are the colours the two pupils speak in,
   so the open tab, the card's edge and the chat bubble all agree. An instructor editing
   "the red one" should not have to work out which of two identical forms they are in. */

.pupil-tabs[b-mbs19glm2m] {
    border-top: 3px solid var(--pupil-colour, var(--brand));
}

.pupil-tabs--red[b-mbs19glm2m] {
    --pupil-colour: #c0392b;
}

.pupil-tabs--blue[b-mbs19glm2m] {
    --pupil-colour: #2062c0;
}

.pupil-tabs__strip[b-mbs19glm2m] {
    display: flex;
    gap: 0.4rem;
    margin: 0 0 1rem;
    flex-wrap: wrap;
}

.pupil-tab[b-mbs19glm2m] {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--border, #d7d7db);
    border-radius: 999px;
    background: transparent;
    font: inherit;
    font-weight: 600;
    color: var(--text, inherit);
    cursor: pointer;
}

.pupil-tab:hover[b-mbs19glm2m] {
    border-color: var(--tab-colour);
}

/* Only the open tab is filled. Two filled tabs would read as two selections. */
.pupil-tab--on[b-mbs19glm2m] {
    border-color: var(--tab-colour);
    background: color-mix(in srgb, var(--tab-colour) 12%, transparent);
    color: var(--tab-colour);
}

.pupil-tab--red[b-mbs19glm2m] {
    --tab-colour: #c0392b;
}

.pupil-tab--blue[b-mbs19glm2m] {
    --tab-colour: #2062c0;
}

/* Carries the colour even on a closed tab, which is what makes the pair readable at a
   glance rather than only once one is open. */
.pupil-tab__dot[b-mbs19glm2m] {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--tab-colour);
    flex: none;
}

/* The tracked-pupil radio while tracking is switched off: still readable, clearly not
   in play. Hiding it instead would make the option disappear and reappear as the
   checkbox is toggled, which is harder to follow than seeing it greyed. */
.check--off[b-mbs19glm2m] {
    opacity: 0.5;
}

.pupil-tab__badge[b-mbs19glm2m] {
    font-size: 0.85em;
    color: var(--tab-colour);
}

@media (prefers-reduced-motion: no-preference) {
    .pupil-tab[b-mbs19glm2m] {
        transition: background-color 120ms ease, border-color 120ms ease;
    }
}

/* Small, accessible save acknowledgement next to the action rather than at the
   top of a long edit form. It remains visible until the next edit. */
.scenario-save-status[b-mbs19glm2m] {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    color: var(--text-muted, #64748b);
    font-size: 0.9rem;
}

.scenario-save-status__success[b-mbs19glm2m] {
    color: #047857;
    font-weight: 600;
}

.scenario-save-status--error[b-mbs19glm2m] {
    color: #b91c1c;
    font-weight: 600;
}
/* /Components/Pages/Instructor/ScenarioLibrary.razor.rz.scp.css */
/* Delete is the only irreversible action on this page, so it is the only one that reads
   as a warning. Everything else here - Try, Copy, Archive - is recoverable and stays in
   the ordinary link style. */

.btn-link--danger[b-0lktbqae7g] {
    color: #c0392b;
}

.btn-link--danger:hover[b-0lktbqae7g] {
    text-decoration: underline;
}

/* The confirmation opens inside the row rather than as a browser dialog: a native
   confirm() blocks the Blazor circuit, which is the failure that cost an afternoon on
   the Chrome-translate bug. It also keeps the scenario's name in front of the
   instructor while they decide. */
.confirm-delete[b-0lktbqae7g] {
    margin: 0.5rem 0 0;
    padding: 0.6rem 0.8rem;
    border: 1px solid #c0392b;
    border-radius: 0.5rem;
    background: color-mix(in srgb, #c0392b 7%, transparent);
}

.confirm-delete p[b-0lktbqae7g] {
    margin: 0 0 0.5rem;
    font-size: 0.92rem;
}
/* /Components/Pages/Transcript.razor.rz.scp.css */
/* A stored conversation, readable on screen and sane on paper. */

.transcript__facts[b-tkzyt42f6b] {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin: 0 0 1.1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: var(--surface-soft);
}

.transcript__facts div[b-tkzyt42f6b] {
    margin: 0;
}

.transcript__facts dt[b-tkzyt42f6b] {
    margin: 0 0 0.15rem;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    color: var(--text-muted);
}

.transcript__facts dd[b-tkzyt42f6b] {
    margin: 0;
    font-weight: 600;
    color: var(--text-strong);
}

.transcript__back[b-tkzyt42f6b] {
    margin: 0 0 0.9rem;
}

.transcript__actions[b-tkzyt42f6b] {
    margin: 0 0 1.4rem;
}

/* Sits under the utterance it belongs to, indented with it. */
.transcript__math[b-tkzyt42f6b] {
    display: block;
    margin: 0.35rem 0 0;
    font-size: 1.05em;
}

/* The board sits across the full width, between the turns rather than beside them - it
   belongs to the conversation at that point, not to either speaker. */
.transcript__scene[b-tkzyt42f6b] {
    margin: 1rem 0;
    list-style: none;
}

.transcript__scene figure[b-tkzyt42f6b] {
    margin: 0;
    border: 1px solid var(--border, #d7d7db);
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
}

.transcript__scene svg[b-tkzyt42f6b] {
    display: block;
    width: 100%;
    height: auto;
}

.transcript__scene figcaption[b-tkzyt42f6b] {
    padding: 0.4rem 0.7rem;
    font-size: 0.82rem;
    color: var(--muted, #6b6b76);
    border-top: 1px solid var(--border, #d7d7db);
}

.transcript__lines[b-tkzyt42f6b] {
    margin: 0;
    padding: 0;
    list-style: none;
}

.transcript__line[b-tkzyt42f6b] {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.9rem;
    padding: 0.6rem 0;
    border-top: 1px solid var(--border-soft);
    line-height: 1.55;
}

.transcript__line:first-child[b-tkzyt42f6b] {
    border-top: none;
}

.transcript__who[b-tkzyt42f6b] {
    font-size: 0.78rem;
    font-weight: 700;
    padding-top: 0.12rem;
}

/* The pupil colours carry over from the chat, so a two-pupil transcript reads the
   same way on paper as it did on screen. */
.transcript__line--pst .transcript__who[b-tkzyt42f6b] {
    color: var(--text-muted);
}

.transcript__line--pupil .transcript__who[b-tkzyt42f6b] {
    color: var(--brand-dark);
}

.transcript__text[b-tkzyt42f6b] {
    color: var(--text-body);
    white-space: pre-wrap;
}

@media (max-width: 640px) {
    .transcript__line[b-tkzyt42f6b] {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

@media print {
    /* Paper wants the conversation and nothing else. */
    .transcript__back[b-tkzyt42f6b],
    .transcript__actions[b-tkzyt42f6b] {
        display: none;
    }

    .transcript__facts[b-tkzyt42f6b] {
        border-radius: 0;
        background: none;
        padding-left: 0;
        padding-right: 0;
    }

    .transcript__line[b-tkzyt42f6b] {
        /* Never split a single utterance across two pages. */
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .transcript__text[b-tkzyt42f6b],
    .transcript__who[b-tkzyt42f6b] {
        color: #000;
    }
}

/* Understanding review belongs to the exact pupil utterance. It is visible in
   the printable transcript too, rather than hidden only in the class summary. */
.transcript__assessment[b-tkzyt42f6b] {
    grid-column: 2;
    margin-top: 0.1rem;
    padding: 0.45rem 0.65rem;
    border-left: 2px solid var(--border-soft, #ccc);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.transcript__assessment summary[b-tkzyt42f6b] { cursor: pointer; text-decoration: underline; }
.transcript__assessment p[b-tkzyt42f6b] { margin: 0.35rem 0 0; overflow-wrap: anywhere; }

@media (max-width: 640px) {
    .transcript__assessment[b-tkzyt42f6b] { grid-column: 1; }
}
