.nav-link--live {
    align-items: center;
    color: #1d4ed8;
    display: inline-flex;
    gap: 8px;
}

.live-classroom-page .main-container {
    max-width: none;
    padding: 0;
    width: 100%;
}

body.live-classroom-page--student {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.live-classroom-page--student .navbar {
    flex: 0 0 auto;
}

.live-classroom-page--student .main-container {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.live-lesson-icon {
    border: 2px solid #2563eb;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 auto;
    height: 12px;
    position: relative;
    width: 12px;
}

.live-lesson-icon::before,
.live-lesson-icon::after {
    border: 2px solid #93c5fd;
    border-radius: 999px;
    content: "";
    inset: -6px;
    opacity: 0.72;
    position: absolute;
}

.live-lesson-icon::after {
    inset: -10px;
    opacity: 0.38;
}

.live-lesson-icon--large {
    height: 16px;
    width: 16px;
}

.live-lesson-hero {
    align-items: flex-start;
    display: flex;
    gap: 24px;
    justify-content: space-between;
}

.live-lesson-kicker {
    align-items: center;
    color: #1d4ed8;
    display: inline-flex;
    font-weight: 800;
    gap: 12px;
    margin-bottom: 12px;
}

.live-lesson-status-card {
    min-height: 160px;
}

.live-lesson-muted-value {
    color: #334155;
}

.live-lesson-pin-preview {
    color: #1d4ed8;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.live-lesson-disabled-action:disabled {
    cursor: not-allowed;
    opacity: 0.68;
    transform: none;
}

.live-lesson-join-container {
    max-width: 640px;
}

.live-lesson-join-card .student-card-body {
    padding: 34px;
}

.live-lesson-join-header {
    margin-bottom: 28px;
    text-align: center;
}

.live-lesson-join-header h1 {
    color: #111827;
    font-size: 2.2rem;
    margin: 14px 0 8px;
}

.live-lesson-join-header p,
.live-lesson-help-text {
    color: #64748b;
    margin: 0;
}

.live-lesson-error {
    color: #b91c1c;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.live-lesson-pin-form {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.live-lesson-student-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 22px 0;
}

.live-lesson-pin-label {
    color: #334155;
    font-weight: 700;
}

.live-lesson-pin-input {
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    color: #111827;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    max-width: 260px;
    padding: 14px 18px;
    text-align: center;
    width: 100%;
}

.live-lesson-history-students {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.live-lesson-history-students li {
    display: grid;
    gap: 3px;
}

.live-lesson-history-students-button {
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1d4ed8;
    cursor: pointer;
    font-weight: 800;
    padding: 8px 14px;
}

.live-lesson-history-students-button:disabled {
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.72;
}

.live-recording-menu {
    align-items: start;
    display: inline-grid;
    gap: 4px 8px;
    grid-template-columns: auto auto;
    justify-content: start;
    position: relative;
}

.live-recording-menu > .live-recording-play-link {
    grid-column: 1;
    grid-row: 1;
}

.live-recording-play-link {
    color: #1d4ed8;
    font-weight: 500;
    text-decoration: none;
}

.live-recording-play-link:hover {
    text-decoration: underline;
}

.live-recording-mini-play {
    color: #020617;
    font-size: 0.82rem;
    grid-column: 1;
    grid-row: 2;
    line-height: 1;
    text-decoration: none;
}

.live-recording-options-button {
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    font-weight: 900;
    grid-column: 2;
    grid-row: 1;
    height: 18px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 16px;
}

.live-recording-menu-list {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    display: grid;
    gap: 4px;
    grid-column: 1 / -1;
    left: 0;
    min-width: 130px;
    padding: 6px;
    position: absolute;
    top: 38px;
    z-index: 8;
}

.live-recording-menu-list[hidden] {
    display: none;
}

.live-recording-menu-list a,
.live-recording-menu-list button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #1e293b;
    cursor: pointer;
    display: block;
    font: inherit;
    font-weight: 700;
    padding: 8px 10px;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.live-recording-menu-list a:hover,
.live-recording-menu-list button:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.live-lesson-schedule-row {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(220px, 1.3fr) minmax(150px, 0.75fr) minmax(130px, 0.6fr) minmax(210px, 1fr) minmax(260px, 1.2fr);
}

.live-lesson-schedule-row .teacher-student-picker {
    min-height: 46px;
}

.live-classroom-shell {
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 86px);
    overflow-x: hidden;
}

.live-classroom-shell--student {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.live-classroom-stage {
    background: #f8fafc;
    display: grid;
    flex: 1;
    gap: 8px;
    grid-template-columns: 160px minmax(0, 1fr) 180px;
    min-height: calc(100vh - 100px);
    padding: 4px 8px 10px;
    position: relative;
}

.live-classroom-panel-toggle,
.live-classroom-panel-head button,
.live-classroom-panel-footer button,
.live-classroom-toolbox button {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #1e293b;
    cursor: pointer;
    font-weight: 700;
    padding: 9px 12px;
}

.live-classroom-rail {
    min-height: calc(100vh - 114px);
    padding: 0 2px 8px;
    z-index: 4;
}

.live-classroom-rail--left {
    grid-column: 1;
}

.live-classroom-rail--right {
    grid-column: 3;
    text-align: right;
}

.live-classroom-panel-toggle:hover,
.live-classroom-panel-head button:hover,
.live-classroom-panel-footer button:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
}

.live-classroom-toolbox button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.live-classroom-toolbox button.is-active {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.live-classroom-toolbox .live-classroom-danger {
    border-color: #fecaca;
    color: #991b1b;
}

.live-tool-status {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 12px 0 0;
}

.live-notes-panel,
.live-whiteboard-files-panel {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
    display: grid;
    gap: 14px;
    max-height: calc(100vh - 140px);
    overflow: auto;
    padding: 18px;
    position: fixed;
    right: 190px;
    top: 120px;
    width: min(420px, calc(100vw - 32px));
    z-index: 20;
}

.live-notes-panel[hidden],
.live-whiteboard-files-panel[hidden] {
    display: none;
}

.live-whiteboard-files-panel {
    gap: 12px;
}

.live-whiteboard-files-page-title {
    color: #475569;
    font-size: 0.92rem;
    font-weight: 800;
    margin: -6px 0 0;
}

.live-whiteboard-save-form {
    display: grid;
    gap: 10px;
}

.live-whiteboard-save-form[hidden] {
    display: none;
}

.live-whiteboard-save-form label {
    color: #334155;
    font-weight: 800;
}

.live-whiteboard-save-row {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr auto;
}

.live-whiteboard-save-row input {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    min-width: 0;
    padding: 10px 12px;
}

.live-whiteboard-save-row button {
    background: #2563eb;
    border: 1px solid #1d4ed8;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
    padding: 10px 14px;
}

.live-whiteboard-save-status {
    color: #166534;
    font-weight: 800;
    margin: 0;
}

.live-whiteboard-save-status.is-error {
    color: #991b1b;
}

.live-whiteboard-files-list {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.live-whiteboard-files-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
}

.live-whiteboard-files-list a {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #1d4ed8;
    font-weight: 800;
    text-decoration: none;
}

.live-whiteboard-delete {
    background: #ffffff;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #b91c1c;
    cursor: pointer;
    flex-shrink: 0;
    padding: 6px 10px;
}

.live-whiteboard-delete:disabled {
    cursor: wait;
    opacity: 0.6;
}

.live-whiteboard-files-list a:hover {
    text-decoration: underline;
}

.live-whiteboard-files-empty {
    color: #64748b;
    font-weight: 700;
    margin: 0;
}

.live-notes-existing {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

.live-notes-existing pre {
    color: #0f172a;
    font: inherit;
    margin: 0;
    white-space: pre-wrap;
}

.live-notes-empty {
    color: #64748b;
    font-weight: 700;
    margin: 0;
}

.live-notes-page-title {
    color: #475569;
    font-size: 0.92rem;
    font-weight: 800;
    margin: -6px 0 0;
}

.live-notes-form {
    display: grid;
    gap: 10px;
}

.live-notes-form label {
    color: #334155;
    font-weight: 800;
}

.live-notes-form textarea {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    min-height: 150px;
    padding: 12px;
    resize: vertical;
}

.live-notes-form button,
.live-notes-delete-form button {
    background: #2563eb;
    border: 1px solid #1d4ed8;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
    padding: 10px 14px;
}

.live-notes-delete-form {
    margin: 0;
}

.live-notes-delete-form button {
    background: #ffffff;
    border-color: #fecaca;
    color: #991b1b;
}

.live-classroom-main {
    grid-column: 2;
    margin: 0;
    padding: 0;
}

.live-classroom-lesson,
.live-classroom-side-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.live-classroom-lesson {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 114px);
    padding: 32px;
    text-align: center;
}

.live-student-classroom-header {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #dbe4ee;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    max-height: 120px;
    overflow: hidden;
    padding: 16px 24px;
    transition: max-height 0.24s ease, padding 0.24s ease, opacity 0.2s ease;
}

.live-student-classroom-header > * {
    transition: opacity 0.18s ease;
}

.live-classroom-shell--student.is-student-header-collapsed .live-student-classroom-header {
    max-height: 10px;
    opacity: 0.54;
    padding-bottom: 0;
    padding-top: 0;
}

.live-classroom-shell--student.is-student-header-collapsed .live-student-classroom-header > * {
    opacity: 0;
}

.live-classroom-shell--student.is-student-header-collapsed .live-student-classroom-header:hover,
.live-classroom-shell--student.is-student-header-collapsed .live-student-classroom-header:focus-within {
    max-height: 120px;
    opacity: 1;
    padding-bottom: 16px;
    padding-top: 16px;
}

.live-classroom-shell--student.is-student-header-collapsed .live-student-classroom-header:hover > *,
.live-classroom-shell--student.is-student-header-collapsed .live-student-classroom-header:focus-within > * {
    opacity: 1;
}

.live-classroom-title,
.live-classroom-status {
    align-items: center;
    display: inline-flex;
    gap: 10px;
}

.live-classroom-status {
    flex-shrink: 0;
    white-space: nowrap;
}

.live-classroom-status > span[aria-hidden="true"] {
    background: #94a3b8;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 auto;
    height: 10px;
    width: 10px;
}

.live-classroom-status--connected {
    color: #166534;
}

.live-classroom-status--connected > span[aria-hidden="true"] {
    background: #16a34a;
}

.live-student-controls {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 8px;
}

.live-raise-hand-button {
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    color: #1d4ed8;
    cursor: pointer;
    flex: 0 0 auto;
    font-weight: 800;
    padding: 9px 12px;
}

.live-raise-hand-button.is-active {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.live-student-mic-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: #1e293b;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    height: 40px;
    justify-content: center;
    position: relative;
    width: 44px;
}

.live-mic-icon {
    border: 2px solid currentColor;
    border-radius: 999px;
    display: inline-block;
    height: 16px;
    position: relative;
    width: 10px;
}

.live-mic-icon::before {
    border: solid currentColor;
    border-width: 0 2px 2px;
    border-radius: 0 0 999px 999px;
    content: "";
    height: 9px;
    left: 50%;
    position: absolute;
    top: 9px;
    transform: translateX(-50%);
    width: 18px;
}

.live-mic-icon::after {
    background: currentColor;
    bottom: -10px;
    content: "";
    height: 6px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 2px;
}

.live-student-mic-button::after,
.live-student-roster-mic::after {
    background: #991b1b;
    content: "";
    height: 2px;
    left: 24%;
    position: absolute;
    top: 50%;
    transform: rotate(35deg);
    width: 52%;
}

.live-student-mic-button.is-active,
.live-student-roster-mic[data-mic-on="true"] {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.live-student-mic-button.is-active::after,
.live-student-roster-mic[data-mic-on="true"]::after {
    display: none;
}

.live-student-mic-button:disabled {
    background: #f8fafc;
    cursor: not-allowed;
    opacity: 0.72;
}

.live-student-feedback-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    color: #1d4ed8;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1rem;
    height: 40px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 44px;
}

.live-student-feedback-button.is-active {
    background: #eff6ff;
    border-color: #60a5fa;
}

.live-classroom-subtitle {
    color: #64748b;
    margin: 6px 0 0 28px;
}

.live-student-classroom-main {
    display: block;
    padding: 14px;
}

.live-classroom-shell--student .live-student-classroom-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.live-classroom-lesson--student {
    align-items: stretch;
    min-height: calc(100vh - 182px);
    padding: 16px;
    text-align: left;
}

.live-classroom-shell--student .live-classroom-lesson--student {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.live-lesson-frame-shell,
.live-lesson-frame-wrap {
    min-height: 100%;
    width: 100%;
}

.live-lesson-frame-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.live-classroom-shell--student .live-lesson-frame-shell {
    min-height: 0;
}

.live-lesson-frame-status {
    color: #475569;
    display: flex;
    flex-wrap: wrap;
    font-weight: 700;
    gap: 16px;
}

.live-lesson-frame-status p {
    margin: 0;
}

.live-lesson-frame-wrap {
    flex: 1;
    position: relative;
}

.live-lesson-frame-shell {
    position: relative;
}

.live-classroom-shell--student .live-lesson-frame-wrap {
    min-height: 0;
    overflow: hidden;
}

.live-classroom-shell--teacher .live-lesson-frame-wrap.is-whiteboard-mode {
    height: calc(100vh - 260px);
    min-height: calc(100vh - 260px);
    overflow: hidden;
    overscroll-behavior: contain;
}

.live-annotation-surface {
    position: relative;
}

.live-lesson-frame-wrap iframe {
    border: 0;
    border-radius: 12px;
    height: 100%;
    min-height: calc(100vh - 260px);
    width: 100%;
}

.live-whiteboard {
    align-items: center;
    background:
        linear-gradient(#e2e8f0 1px, transparent 1px),
        linear-gradient(90deg, #e2e8f0 1px, transparent 1px),
        #ffffff;
    background-size: 36px 36px;
    border-radius: 12px;
    color: #94a3b8;
    display: flex;
    font-size: 2rem;
    font-weight: 800;
    height: 100%;
    justify-content: center;
    min-height: calc(100vh - 260px);
    position: relative;
    width: 100%;
}

.live-classroom-shell--teacher .live-lesson-frame-wrap.is-whiteboard-mode .live-whiteboard,
.live-classroom-shell--teacher .live-lesson-frame-wrap.is-whiteboard-mode .live-annotation-canvas {
    height: 1800px;
    max-width: none;
    min-height: 1800px;
    transform: translate(var(--whiteboard-pan-x, 0px), var(--whiteboard-pan-y, 0px));
    transform-origin: 0 0;
    width: 2400px;
}

.live-whiteboard[hidden] {
    display: none;
}

.live-whiteboard-actions {
    display: flex;
    gap: 8px;
    pointer-events: auto;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 5;
}

.live-whiteboard-actions[hidden] {
    display: none;
}

.live-whiteboard-actions button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #0f172a;
    cursor: pointer;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 900;
    height: 38px;
    justify-content: center;
    padding: 0;
    width: 38px;
}

.live-whiteboard-actions button:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
}

.live-screen-share-container {
    align-items: center;
    background: #0f172a;
    border-radius: 12px;
    color: #cbd5e1;
    display: flex;
    font-size: 1rem;
    font-weight: 700;
    height: 100%;
    justify-content: center;
    min-height: calc(100vh - 260px);
    overflow: hidden;
    width: 100%;
}

.live-screen-share-container[hidden] {
    display: none;
}

.live-screen-share-container video {
    background: #000000;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.live-classroom-shell--student .live-lesson-frame-wrap iframe {
    min-height: 0;
}

.live-classroom-shell--student .live-whiteboard {
    min-height: 0;
}

.live-classroom-shell--student .live-screen-share-container {
    min-height: 0;
}

.live-annotation-canvas {
    height: 100%;
    inset: 0;
    pointer-events: none;
    position: absolute;
    touch-action: none;
    width: 100%;
    z-index: 3;
}

.live-classroom-shell--teacher .live-lesson-frame-wrap.is-whiteboard-mode .live-annotation-canvas {
    inset: auto;
    left: 0;
    top: 0;
}

.live-classroom-shell--teacher .live-lesson-frame-wrap.is-whiteboard-mode.is-whiteboard-pan-active .live-annotation-canvas {
    cursor: grab;
    pointer-events: auto;
}

.live-classroom-shell--teacher .live-lesson-frame-wrap.is-whiteboard-mode.is-whiteboard-pan-active.is-whiteboard-panning .live-annotation-canvas {
    cursor: grabbing;
}

.live-classroom-lesson--teacher .live-annotation-surface.is-annotation-tool-active iframe {
    pointer-events: none;
}

.live-classroom-lesson--teacher .live-annotation-surface.is-annotation-tool-active .live-annotation-canvas {
    pointer-events: auto;
}

.live-classroom-lesson--student .live-annotation-canvas {
    pointer-events: none;
}

.live-remote-pointer {
    background: #ef4444;
    border: 2px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.18), 0 3px 12px rgba(239, 68, 68, 0.34);
    height: 14px;
    pointer-events: none;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: left 0.08s linear, top 0.08s linear;
    width: 14px;
    z-index: 4;
}

.live-lesson-frame-lock {
    cursor: default;
    inset: 0;
    position: absolute;
    z-index: 2;
}

.live-topic-embed {
    background: #f8fafc;
}

.live-topic-embed-container {
    margin: 0;
    padding: 18px;
}

.live-topic-embed .topic-page-card {
    margin: 0;
    max-width: none;
}

.live-topic-embed .topic-page-actions {
    display: none;
}

.live-classroom-eyebrow {
    color: #2563eb;
    font-weight: 800;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.live-classroom-side-panel {
    margin-top: 8px;
    padding: 18px;
    text-align: left;
    width: 100%;
    z-index: 5;
}

.live-session-status-panel {
    min-width: 260px;
}

.live-session-details > summary {
    align-items: center;
    color: #111827;
    cursor: pointer;
    display: flex;
    font-size: 1.1rem;
    font-weight: 700;
    gap: 12px;
    justify-content: space-between;
}

.live-session-details > summary::-webkit-details-marker {
    display: none;
}

.live-session-details[open] > summary {
    margin-bottom: 16px;
}

.live-session-details-action {
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 600;
}

.live-session-details-hide,
.live-session-details[open] .live-session-details-open {
    display: none;
}

.live-session-details[open] .live-session-details-hide {
    display: inline;
}

.live-session-details > summary:focus-visible {
    border-radius: 4px;
    outline: 2px solid #2563eb;
    outline-offset: 4px;
}

.live-classroom-panel-head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.live-classroom-side-panel h2 {
    color: #111827;
    font-size: 1.1rem;
    margin: 0;
}

.live-classroom-panel-footer {
    border-top: 1px solid #e5e7eb;
    margin-top: 20px;
    padding-top: 16px;
    text-align: right;
}

.live-classroom-side-panel dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.live-session-status-panel dl > div {
    align-items: baseline;
    display: grid;
    gap: 12px;
    grid-template-columns: 110px minmax(0, 1fr);
}

.live-classroom-side-panel dt {
    color: #64748b;
    font-weight: 700;
}

.live-classroom-side-panel dd {
    color: #111827;
    margin: 4px 0 0;
}

.live-session-status-panel dd {
    margin: 0;
}

.live-students-roster {
    margin-top: 18px;
}

.live-students-roster h3 {
    color: #111827;
    font-size: 1rem;
    margin: 0 0 10px;
}

.live-students-empty {
    color: #64748b;
    font-size: 0.92rem;
    margin: 0;
}

.live-students-list {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.live-students-item {
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    min-width: 0;
    padding: 9px 10px;
}

.live-students-item.has-raised-hand {
    background: #fffbeb;
    border-color: #fbbf24;
}

.live-students-item.has-open-mic {
    border-color: #86efac;
}

.live-session-status-panel .live-students-item {
    max-width: 220px;
}

.live-student-name {
    color: #111827;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-student-status {
    background: #ef4444;
    border: 2px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 0 0 1px #fecaca;
    flex: 0 0 auto;
    height: 14px;
    width: 14px;
}

.live-student-status[data-status="connected"] {
    background: #16a34a;
    box-shadow: 0 0 0 1px #bbf7d0;
}

.live-student-hand {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 999px;
    color: #92400e;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    padding: 3px 7px;
}

button.live-student-hand {
    cursor: pointer;
}

button.live-student-hand:hover {
    background: #fde68a;
    border-color: #f59e0b;
}

.live-student-hand[hidden] {
    display: none;
}

.live-student-feedback {
    align-items: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.85rem;
    height: 24px;
    justify-content: center;
    line-height: 1;
    width: 24px;
}

.live-student-feedback[hidden] {
    display: none;
}

.live-student-roster-mic {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #475569;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.8rem;
    height: 26px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: relative;
    width: 30px;
}

.live-student-roster-mic .live-mic-icon {
    height: 12px;
    width: 8px;
}

.live-student-roster-mic .live-mic-icon::before {
    height: 7px;
    top: 7px;
    width: 14px;
}

.live-student-roster-mic .live-mic-icon::after {
    bottom: -8px;
    height: 5px;
}

button.live-student-roster-mic {
    cursor: pointer;
}

button.live-student-roster-mic:hover {
    border-color: #2563eb;
}

.live-student-remove {
    align-items: center;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 999px;
    color: #991b1b;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1rem;
    font-weight: 800;
    height: 26px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 26px;
}

button.live-student-remove {
    cursor: pointer;
}

button.live-student-remove:hover {
    background: #fee2e2;
    border-color: #ef4444;
}

.live-student-remove[hidden] {
    display: none;
}

#liveToolsPanel {
    padding: 12px;
}

.live-classroom-toolbox {
    display: grid;
    grid-template-columns: repeat(3, 44px);
    gap: 6px;
}

#liveRoomLockButton.is-active {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.live-recording-button span {
    font-size: 0.78rem;
    font-weight: 900;
}

.live-recording-button.is-recording {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.live-recording-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-weight: 700;
    margin: 12px 0 0;
    padding: 10px 12px;
}

.live-classroom-tool-form {
    display: contents;
}

.live-classroom-toolbox button {
    align-items: center;
    aspect-ratio: 1;
    display: inline-flex;
    font-size: 1rem;
    justify-content: center;
    line-height: 1;
    height: 44px;
    min-height: 44px;
    width: 44px;
    padding: 0;
    text-align: center;
}

.live-classroom-toolbox button[aria-label="Underline"] span {
    border-bottom: 2px solid currentColor;
    font-family: Georgia, serif;
    font-weight: 800;
    padding: 0 1px 2px;
}

.live-classroom-toolbox button[aria-label="Highlight"] span {
    color: #ca8a04;
}

.live-classroom-toolbox button[aria-label="Microphone"] span,
.live-classroom-toolbox button[aria-label="Students"] span {
    font-size: 1rem;
}

.live-classroom-toolbox button[aria-label="End Lesson"] span {
    color: #dc2626;
}

.live-lesson-ended-notice {
    align-items: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    color: #9a3412;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
}

.live-lesson-ended-notice[hidden] {
    display: none;
}

.live-end-dialog {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
    max-width: 420px;
    padding: 0;
    width: calc(100% - 32px);
}

.live-end-dialog::backdrop {
    background: rgba(15, 23, 42, 0.42);
}

.live-end-dialog-card {
    background: #ffffff;
    display: grid;
    gap: 14px;
    padding: 22px;
}

.live-end-dialog-card h2 {
    color: #111827;
    font-size: 1.2rem;
    margin: 0;
}

.live-end-dialog-card p {
    color: #475569;
    margin: 0;
}

.live-end-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
}

.live-end-dialog-cancel,
.live-end-dialog-confirm {
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    padding: 10px 14px;
}

.live-end-dialog-cancel {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}

.live-end-dialog-confirm {
    background: #dc2626;
    border: 1px solid #b91c1c;
    color: #ffffff;
}

.nav-btn-live {
    border-radius: 12px;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    white-space: nowrap;
}

.nav-btn-live--active {
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.nav-btn-live--leave {
    background: #dc2626;
    border-color: #dc2626;
}

.nav-btn-live--leave:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.live-lesson-icon--button {
    border-color: #ffffff;
    height: 10px;
    width: 10px;
}

.live-lesson-icon--button::before,
.live-lesson-icon--button::after {
    border-color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1100px) {
    .nav-link--live {
        justify-content: flex-start;
    }

    .nav-btn-live {
        min-height: 42px;
        padding: 9px 12px;
    }
}

@media (max-width: 900px) {
    .live-lesson-schedule-row {
        grid-template-columns: 1fr 1fr;
    }

    .live-lesson-schedule-row .teacher-form-field:first-child,
    .live-lesson-schedule-row .teacher-form-field:last-child {
        grid-column: 1 / -1;
    }

    .live-student-classroom-header {
        align-items: stretch;
        flex-direction: column;
    }

    .live-student-classroom-main {
        grid-template-columns: 1fr;
    }

    .live-classroom-stage {
        background: #f8fafc;
        grid-template-columns: 1fr;
        padding: 8px 14px 14px;
    }

    .live-classroom-main {
        grid-column: 1;
        grid-row: 2;
        margin: 0;
        padding: 0;
    }

    .live-classroom-rail {
        min-height: auto;
        width: 100%;
    }

    .live-classroom-rail--left,
    .live-classroom-rail--right {
        grid-column: 1;
        text-align: left;
    }

    .live-classroom-rail {
        grid-row: auto;
    }
}

@media (max-width: 760px) {
    .live-lesson-hero {
        flex-direction: column;
    }

    .live-lesson-schedule-row {
        grid-template-columns: 1fr;
    }

    .live-lesson-schedule-row .teacher-form-field:first-child,
    .live-lesson-schedule-row .teacher-form-field:last-child {
        grid-column: auto;
    }

    .live-lesson-join-card .student-card-body {
        padding: 24px 18px;
    }

    .live-lesson-pin-input {
        font-size: 1.35rem;
        max-width: 230px;
    }

    .live-classroom-lesson {
        min-height: 360px;
    }

    .nav-btn-live {
        font-size: 0;
        gap: 0;
        min-width: 44px;
        padding: 9px;
    }
}

/* Student session drawer reserves space beside the existing lesson iframe. */
.live-classroom-shell--student .live-student-classroom-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
}

.live-classroom-shell--student .live-student-classroom-main.is-status-open {
    grid-template-columns: minmax(0, 1fr) clamp(180px, 25vw, 300px);
    gap: 12px;
}

.live-classroom-shell--student .live-classroom-lesson--student {
    min-width: 0;
}

.live-student-lesson-heading,
.live-student-status-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.live-student-lesson-heading {
    flex-wrap: wrap;
}

.live-student-lesson-heading .live-classroom-eyebrow {
    margin: 0;
}

.live-student-lesson-heading button,
.live-student-status-footer button {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #2563eb;
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
    padding: 8px 12px;
}

.live-student-status-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    min-width: 0;
    overflow: auto;
    padding: 16px;
}

.live-student-status-panel[hidden] {
    display: none;
}

.live-student-status-heading {
    align-items: flex-start;
    flex-wrap: wrap;
}

.live-student-status-heading h2 {
    color: #172746;
    font-size: 1rem;
    margin: 0;
}

.live-student-status-panel dl {
    display: grid;
    gap: 18px;
    margin: 24px 0 0;
}

.live-student-status-panel dt {
    color: #64748b;
    font-weight: 600;
}

.live-student-status-panel dd {
    color: #172746;
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .live-classroom-shell--student .live-student-classroom-main.is-status-open {
        grid-template-columns: minmax(0, 1fr) minmax(140px, 42%);
        gap: 6px;
    }
    .live-student-status-panel {
        padding: 10px;
    }
}

.live-student-status-heading {
    justify-content: flex-start;
}

.live-student-status-footer {
    margin-top: auto;
    padding-top: 24px;
    text-align: right;
}

#liveStudentStatusToggle[hidden] {
    display: none;
}

#liveStudentStatusToggle,
#liveStudentStatusClose {
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

#liveStudentStatusToggle:hover,
#liveStudentStatusClose:hover {
    background: #eff6ff;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgb(37 99 235 / 16%);
}

#liveStudentStatusToggle:focus-visible,
#liveStudentStatusClose:focus-visible {
    background: #eff6ff;
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}

#liveStudentStatusToggle:active,
#liveStudentStatusClose:active {
    background: #dbeafe;
}

@media (prefers-reduced-motion: reduce) {
    #liveStudentStatusToggle,
    #liveStudentStatusClose {
        transition: none;
    }
}

.live-student-status-panel dl > div {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.live-student-status-panel dt {
    flex-shrink: 0;
}

.live-student-status-panel dd {
    margin: 0;
}

.live-student-connections {
    margin-top: 28px;
    border-top: 1px solid #e2e8f0;
    padding-top: 18px;
}
.live-student-connections h3 {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: #172746;
}
.live-student-connections p {
    color: #64748b;
    font-size: 0.85rem;
}
.live-student-connections p:empty { display: none; }
.live-student-connections ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}
.live-student-connections li {
    display: grid;
    gap: 4px;
    overflow-wrap: anywhere;
}
.live-student-connections strong { color: #172746; font-size: 0.9rem; }
.live-student-connections li span { color: #15803d; font-size: 0.8rem; }

.live-chat { border-top: 1px solid #dce5f2; margin-top: 20px; padding-top: 16px; min-width: 0; }
.live-chat > p, .live-chat-form label { font-size: 13px; color: #526785; }
.live-chat-messages { max-height: 240px; overflow-y: auto; overflow-wrap: anywhere; }
.live-chat-message { background: #f1f6ff; border-radius: 8px; margin: 8px 0; padding: 10px; }
.live-chat-message p { margin: 4px 0; white-space: pre-wrap; }
.live-chat-form label { display: block; margin-top: 10px; }
.live-chat-form textarea, .live-chat-form input { display: block; width: 100%; box-sizing: border-box; }
.live-chat-form textarea { padding: 8px; border: 1px solid #bccce4; border-radius: 8px; resize: vertical; }
.live-chat-form button { margin-top: 10px; padding: 8px 18px; border-radius: 8px; border: 1px solid #2463eb; background: #2463eb; color: white; cursor: pointer; }
.live-chat-form button:hover { background: #174bbd; }
.live-chat-error { color: #a52222; font-size: 13px; }

#liveTeacherSessionContent[hidden], #liveTeacherChatPanel[hidden] { display: none; }
.live-teacher-chat-head { justify-content: flex-end; margin-bottom: 0; }
.live-teacher-chat-head button { font-size: 24px; line-height: 1; }
.live-teacher-chat-panel .live-chat { border-top: 0; margin-top: 0; padding-top: 0; }
#liveTeacherChatOpen { margin-right: 8px; }

/* Keep long teacher panels inside the viewport, with their own scrollbar. */
.live-classroom-shell--teacher .live-classroom-rail .live-classroom-side-panel {
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    max-height: calc(100dvh - 160px);
}

/* Size the desktop classroom from the actual header height, not fixed offsets. */
@media (min-width: 1101px) {
    body.live-classroom-page--teacher {
        display: flex;
        flex-direction: column;
        height: 100dvh;
        overflow: hidden;
    }
    .live-classroom-page--teacher .navbar { flex: 0 0 auto; }
    .live-classroom-page--teacher .main-container {
        flex: 1 1 0;
        min-height: 0;
        overflow: hidden;
    }
    .live-classroom-shell--teacher { height: 100%; min-height: 0; }
    .live-classroom-shell--teacher .live-classroom-stage {
        min-height: 0;
        grid-template-rows: minmax(0, 1fr);
    }
    .live-classroom-shell--teacher .live-classroom-rail,
    .live-classroom-shell--teacher .live-classroom-main { min-height: 0; }
    .live-classroom-shell--teacher .live-classroom-lesson {
        height: 100%;
        min-height: 0;
        box-sizing: border-box;
    }
    .live-classroom-shell--teacher .live-lesson-frame-shell { height: 100%; min-height: 0; }
    .live-classroom-shell--teacher .live-lesson-frame-wrap,
    .live-classroom-shell--teacher .live-lesson-frame-wrap.is-whiteboard-mode {
        min-height: 0;
        overflow: hidden;
    }
    .live-classroom-shell--teacher .live-lesson-frame-wrap iframe { min-height: 0; }
}

.live-teacher-chat-head { justify-content: space-between; padding-bottom: 16px; }
.live-teacher-chat-head h3 { margin: 0; }
.live-teacher-chat-panel .live-chat { display: flex; flex-direction: column; min-height: min(480px, 60dvh); }
.live-teacher-chat-panel .live-chat-messages { flex: 1 1 auto; }
.live-chat-compose { display: flex; align-items: flex-end; gap: 8px; }
.live-chat-compose label { flex: 1; min-width: 0; }
.live-chat-form .live-chat-upload { background: transparent; border: 0; color: #334155; font-size: 22px; padding: 8px 2px; margin: 0 0 6px; }
.live-chat-form .live-chat-upload:hover { color: #2563eb; background: #eff6ff; }
.live-chat-form .live-chat-file[hidden] { display: none; }
.live-chat-send { text-align: right; }
.live-chat-file-name { font-size: 12px; overflow-wrap: anywhere; color: #526785; }
.live-chat-error:empty { display: none; }

.live-session-status-panel.is-chat-open {
    height: var(--live-panel-height, calc(100dvh - 160px));
    overflow: hidden !important;
}
.live-teacher-chat-panel:not([hidden]) {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.live-teacher-chat-head { flex: 0 0 auto; }
.live-teacher-chat-panel .live-chat {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}
.live-teacher-chat-panel .live-chat-messages {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.live-teacher-chat-panel .live-chat-message { flex: 0 0 auto; }
.live-teacher-chat-panel .live-chat-message:first-child { margin-top: auto; }
.live-teacher-chat-panel .live-chat-form { flex: 0 0 auto; }
.live-teacher-chat-panel .live-chat-form textarea { resize: none; }

.live-chat-message p { font-size: 13px; line-height: 1.4; color: #8b1e1e; }

#liveStudentSessionContent { display: flex; flex-direction: column; min-height: 100%; }
#liveStudentSessionContent[hidden], #liveStudentChatPanel[hidden] { display: none; }
.live-student-status-panel.is-chat-open { overflow: hidden; }
#liveStudentChatPanel { flex: 1 1 0; }
#liveStudentChatOpen { margin-right: 8px; }

.live-chat-unread { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: #b91c1c; color: white; font-size: 12px; font-weight: 700; box-sizing: border-box; }
.live-chat-unread[hidden] { display: none; }

#liveNotesButton.has-saved-content,
#liveWhiteboardFolderButton.has-saved-content {
    position: relative;
    background: #eff6ff;
    border-color: #60a5fa;
}
#liveNotesButton.has-saved-content::after,
#liveWhiteboardFolderButton.has-saved-content::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #15803d;
    border: 2px solid #fff;
}

.live-saved-board-editor { width: min(1200px, 94vw); height: 88dvh; max-height: 94dvh; border: 1px solid #cbd5e1; border-radius: 14px; padding: 16px; box-sizing: border-box; }
.live-saved-board-editor[open] { display: flex; flex-direction: column; }
.live-saved-board-editor::backdrop { background: rgb(15 23 42 / 40%); }
.live-saved-board-editor header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.live-saved-board-editor header strong { overflow-wrap: anywhere; }
.live-saved-board-editor header div { display: flex; align-items: center; gap: 8px; }
.live-saved-board-editor button { padding: 8px 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: white; cursor: pointer; }
.live-saved-board-editor [data-save] { background: #2563eb; color: white; }
.live-saved-board-editor [role="status"] { color: #8b1e1e; }
.live-saved-board-editor [role="status"]:empty { margin: 6px; }
.live-saved-board-canvas { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; background: #f1f5f9; }
.live-saved-board-canvas canvas { display: block; width: 100%; height: auto; touch-action: none; background: white; }
.live-saved-board-canvas canvas[hidden] { display: none; }

.live-file-actions { position: relative; flex: 0 0 auto; }
.live-file-menu-toggle { background: white; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 24px; padding: 2px 12px; cursor: pointer; }
.live-file-menu { position: fixed; z-index: 1000; min-width: 130px; background: white; border: 1px solid #cbd5e1; border-radius: 8px; padding: 5px; box-shadow: 0 6px 18px #17274622; }
.live-file-menu[hidden] { display: none; }
.live-file-menu button, .live-file-menu a { display: block; box-sizing: border-box; width: 100%; text-align: left; padding: 8px 12px; border: 0; border-radius: 4px; background: white; font-size: 14px; text-decoration: none; cursor: pointer; }
.live-file-menu button:hover, .live-file-menu a:hover { background: #eff6ff; }
