.live-room-body {
    margin: 0;
    background: #0f172a;
    overflow: hidden;
}

.live-room-shell {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.live-room-topbar {
    height: 52px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    flex-shrink: 0;
    min-width: 0;
}

.live-room-topbar > div:first-child {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.live-rec-indicator {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    vertical-align: middle;
}

.live-rec-indicator .badge {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

.live-rec-indicator.is-recording .badge {
    min-width: 3.1rem;
}

.live-rec-label {
    flex-shrink: 0;
}

.live-rec-dots {
    display: none;
    width: 0.95rem;
    text-align: left;
    color: inherit;
    font-weight: 700;
    line-height: 1;
}

.live-rec-indicator.is-recording .live-rec-dots {
    display: inline-block;
    color: #fff;
}

.live-rec-indicator.is-recording .badge.bg-danger {
    animation: live-rec-blink 1.6s ease-in-out infinite;
}

.live-rec-timer {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

@keyframes live-rec-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.live-rec-controls .btn-outline-warning {
    border-color: rgba(251, 191, 36, 0.65);
    color: #fde68a;
}

.live-rec-controls .btn-outline-warning:hover {
    background: rgba(251, 191, 36, 0.15);
    color: #fff;
}

.live-rec-controls-topbar,
.live-rec-controls {
    flex-shrink: 0;
}

.live-rec-top-btn {
    font-size: 0.72rem;
    padding: 2px 8px;
    line-height: 1.35;
    white-space: nowrap;
}

#liveRecordBtn {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.live-rec-top-btn.btn-outline-light {
    border-color: rgba(148, 163, 184, 0.55);
    color: #e2e8f0;
}

.live-rec-top-btn.btn-outline-light:hover {
    background: rgba(148, 163, 184, 0.12);
    color: #fff;
}

.live-room-main {
    flex: 1;
    display: flex;
    min-height: 0;
}

.live-stage-panel {
    flex: 0 0 70%;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #000;
    position: relative;
}

.live-teacher-toolbar {
    background: #111827;
    border-bottom: 1px solid #374151;
}

.live-teacher-toolbar-row {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.live-toolbar-content-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 320px;
    min-width: 0;
}

.live-toolbar-session-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    margin-left: auto;
}

.live-tkf-host-media {
    position: relative;
    z-index: 20;
}

.live-tkf-host-media .live-tkf-zoom-btn {
    width: 34px;
    height: 34px;
    cursor: pointer;
    pointer-events: auto;
    flex-shrink: 0;
}

.live-tkf-host-media .live-tkf-zoom-volmeter {
    min-width: 52px;
    pointer-events: none;
}

.live-tkf-host-media .live-tkf-zoom-status {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-resource-select {
    min-width: 160px;
    max-width: 280px;
    width: 220px;
}

.live-content-toolbar {
    min-width: 0;
    flex: 1 1 auto;
}

.live-content-toolbar #livePresentBtn {
    flex-shrink: 0;
}

.live-stage-viewport {
    flex: 1;
    position: relative;
    min-height: 0;
    background: #000;
    overflow: hidden;
}

.live-stage-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.live-stage-layer.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.live-stage-layer.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.live-mode-switch {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background: #374151;
    border-radius: 999px;
    padding: 3px;
    flex-shrink: 0;
}

.live-mode-opt {
    position: relative;
    z-index: 1;
    border: 0;
    background: transparent;
    color: #9ca3af;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}

.live-mode-opt.is-active {
    color: #fff;
}

.live-mode-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: #2563eb;
    border-radius: 999px;
    transition: transform 0.22s ease;
    pointer-events: none;
}

.live-mode-switch[data-mode="meeting"] .live-mode-thumb {
    transform: translateX(100%);
}

.live-zoom-root {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.live-zoom-root > div {
    width: 100% !important;
    height: 100% !important;
}

.live-tkf-zoom-root {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #000;
}

.live-tkf-zoom-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #000;
    overflow: hidden;
}

.live-tkf-zoom-main {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.live-tkf-zoom-idle {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.62);
    pointer-events: none;
    text-align: center;
    padding: 1rem;
}

.live-tkf-zoom-idle[hidden] {
    display: none !important;
}

.live-tkf-zoom-pip {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 220px;
    height: 124px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.85);
    cursor: grab;
    touch-action: none;
    z-index: 4;
    background: #111;
}

.live-tkf-zoom-pip:active {
    cursor: grabbing;
}

.live-tkf-zoom-pip video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.live-tkf-zoom-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(17, 24, 39, 0.95);
    border-top: 1px solid #374151;
    flex-shrink: 0;
}

.live-tkf-zoom-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #4b5563;
    background: #1f2937;
    color: #f9fafb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.live-tkf-zoom-btn:hover {
    background: #374151;
}

.live-tkf-zoom-btn.is-active {
    background: #2563eb;
    border-color: #3b82f6;
}

.live-tkf-zoom-status {
    color: #9ca3af;
    margin-left: 8px;
}

.live-tkf-zoom-remote-audio {
    display: none;
}

.live-tkf-zoom-volmeter {
    display: inline-flex;
    align-items: flex-end;
    gap: 5px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(100, 116, 139, 0.45);
    color: #64748b;
    flex-shrink: 0;
    transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.live-tkf-zoom-volmeter.has-signal {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.55);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.18);
}

.live-tkf-zoom-volmeter.is-speaking {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.7);
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.28);
}

.live-tkf-zoom-volmeter .bi {
    font-size: 0.85rem;
    line-height: 1;
    opacity: 0.85;
}

.live-vol-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
    padding-bottom: 1px;
}

.live-vol-bar {
    display: block;
    width: 4px;
    min-height: 4px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #475569 0%, #334155 100%);
    transition: height 0.07s ease-out, background 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
    opacity: 0.55;
}

.live-vol-bar.is-active {
    opacity: 1;
    background: linear-gradient(180deg, #6ee7b7 0%, #22c55e 55%, #16a34a 100%);
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.45);
}

.live-vol-bar:nth-child(1).is-active { height: 5px; }
.live-vol-bar:nth-child(2).is-active { height: 8px; }
.live-vol-bar:nth-child(3).is-active { height: 11px; }
.live-vol-bar:nth-child(4).is-active { height: 14px; }
.live-vol-bar:nth-child(5).is-active { height: 17px; }

.live-tkf-zoom-stage .live-tkf-zoom-volmeter {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 5;
}

.live-tkf-zoom-remote-meter-fixed {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 12;
    pointer-events: none;
}

.live-tkf-zoom-toolbar .live-tkf-zoom-volmeter {
    margin-left: 4px;
}

.live-tkf-zoom-toolbar .live-tkf-zoom-volmeter.is-muted {
    opacity: 0.45;
}

.live-tkf-zoom-unmute {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.live-stage-viewport.live-pdf-mode {
    overflow: auto;
}

.live-stage-viewport.live-slides-mode {
    overflow: hidden;
}

.live-slide-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    pointer-events: none;
    user-select: none;
}

.live-slide-canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.live-stage-viewport.live-pdf-mode .live-stage-media {
    pointer-events: none;
}

.live-stage-viewport.live-pdf-mode.live-teacher-pdf .live-stage-media {
    pointer-events: auto;
}

.live-stage-lock {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: transparent;
    cursor: default;
}

.live-stage-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.live-stage-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
    background: #000;
}

.live-chat-header {
    flex-shrink: 0;
}

.live-chat-mentions-nav-wrap {
    flex-shrink: 0;
}

.live-chat-mentions-nav-btn {
    width: 26px;
    height: 26px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0.8rem;
}

.live-chat-mentions-nav-btn .bi {
    font-size: 1.1rem;
    line-height: 1;
}

.live-chat-mentions-nav-wrap .live-chat-mentions-nav-badge.live-chat-mentions-nav-badge--dot,
.live-chat-mentions-nav-wrap .playback-mentions-nav-badge.live-chat-mentions-nav-badge--dot {
    min-width: 6px;
    width: 6px;
    height: 6px;
    padding: 0;
    font-size: 0;
    line-height: 0;
    top: -1px;
    right: -1px;
    border-radius: 999px;
}

.live-chat-mentions-nav-wrap .live-chat-mentions-nav-badge.live-chat-mentions-nav-badge--count,
.live-chat-mentions-nav-wrap .playback-mentions-nav-badge.live-chat-mentions-nav-badge--count {
    min-width: 14px;
    width: auto;
    height: 14px;
    padding: 0 3px;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 14px;
    color: #fff;
    top: -4px;
    right: -6px;
    border-radius: 999px;
}

.live-chat-compose-wrap {
    position: relative;
}

.live-chat-compose-editor {
    min-height: 2.2rem;
    max-height: 6rem;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.live-chat-compose-editor:empty::before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
}

.live-chat-row-content {
    display: block;
}

.live-chat-row-content.playback-question-highlight {
    background: #fefce8 !important;
    box-shadow: inset 0 0 0 1px rgba(253, 230, 138, 0.22);
    transition: background-color 0.6s ease, box-shadow 0.6s ease;
    border-radius: 8px;
    padding: 4px 6px;
}

.live-chat-row-content.playback-question-highlight-fade {
    background: #fff !important;
    box-shadow: none;
}

.live-chat-row-mention-target {
    cursor: pointer;
}

.live-chat-row-mention-target:hover {
    background: rgba(248, 250, 252, 0.9);
    border-radius: 8px;
}

.live-chat-replies {
    margin-top: 4px;
    margin-left: 14px;
    padding-left: 10px;
    border-left: 2px solid #dbeafe;
}

.live-chat-replies > .live-chat-row {
    margin-bottom: 8px;
}

.live-chat-replies > .live-chat-row:last-child {
    margin-bottom: 0;
}

.live-chat-row.live-chat-reply {
    margin-bottom: 8px;
    font-size: 0.84rem;
}

.live-chat-row.live-chat-reply .live-chat-meta {
    margin-bottom: 1px;
}

.live-chat-row.live-chat-reply .live-chat-body {
    color: #334155;
}

.live-chat-panel {
    flex: 0 0 30%;
    min-width: 280px;
    max-width: 420px;
    background: #fff;
    border-left: 1px solid #dbeafe;
}

.live-chat-messages {
    overflow-y: auto;
    padding: 12px;
    background: #f8fafc;
}

.live-chat-row {
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.live-chat-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}

.live-chat-name {
    font-weight: 700;
    color: #1e293b;
}

.live-chat-meta .live-chat-time {
    margin-left: auto;
    color: #94a3b8;
    font-size: 0.75rem;
}

.live-chat-body {
    color: #1e293b;
    white-space: pre-wrap;
    word-break: break-word;
}

.live-chat-role {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    line-height: 1.35;
}

.live-role-teacher { background: #fecaca; color: #991b1b; }
.live-role-tutor { background: #fef08a; color: #854d0e; }
.live-role-student { background: #e9d5ff; color: #6b21a8; }
.live-role-ai { background: #bae6fd; color: #075985; }

.live-emotion-face {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.live-emotion-svg {
    display: block;
    width: 22px;
    height: 22px;
}

.live-seek {
    width: 120px;
    vertical-align: middle;
}

.live-course-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.live-course-picker .live-course-row {
    cursor: pointer;
}

.live-course-entry-link {
    display: inline-block;
    width: 100%;
}

.live-course-entry-link:hover {
    text-decoration: underline !important;
}

.live-course-picker .live-course-row:hover {
    background: #f8fafc;
}

.live-course-emotion-col {
    cursor: default;
    text-align: right;
}

.live-emotion-pills {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    width: 100%;
}

.live-emotion-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 6px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    min-width: 52px;
}

.live-emotion-pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.live-emotion-pill-icon .live-emotion-svg {
    width: 22px;
    height: 22px;
}

.live-emotion-pill-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    line-height: 1;
    min-width: 1ch;
    text-align: right;
}

.live-emotion-pill-positive {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.live-emotion-pill-neutral {
    border-color: #e5e7eb;
    background: #f9fafb;
}

.live-emotion-pill-negative {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.live-emotion-pill-active,
.live-emotion-pill.live-insight-pill-selected {
    opacity: 1;
    box-shadow: none;
    transform: none;
}

.live-emotion-pill-positive.live-emotion-pill-active,
.live-emotion-pill-positive.live-insight-pill-selected {
    background: #d1fae5;
    border-color: #4ade80;
}

.live-emotion-pill-neutral.live-emotion-pill-active,
.live-emotion-pill-neutral.live-insight-pill-selected {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.live-emotion-pill-negative.live-emotion-pill-active,
.live-emotion-pill-negative.live-insight-pill-selected {
    background: #dbeafe;
    border-color: #60a5fa;
}

.live-emotion-pill-positive.live-emotion-pill-active .live-emotion-pill-count,
.live-emotion-pill-positive.live-insight-pill-selected .live-emotion-pill-count {
    color: #166534;
}

.live-emotion-pill-neutral.live-emotion-pill-active .live-emotion-pill-count,
.live-emotion-pill-neutral.live-insight-pill-selected .live-emotion-pill-count {
    color: #4b5563;
}

.live-emotion-pill-negative.live-emotion-pill-active .live-emotion-pill-count,
.live-emotion-pill-negative.live-insight-pill-selected .live-emotion-pill-count {
    color: #2563eb;
}

.live-emotion-pills:not(.live-emotion-pills-interactive) .live-emotion-pill:not(.live-emotion-pill-active) {
    opacity: 0.78;
}

.live-emotion-pills-interactive .live-emotion-pill {
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.live-emotion-pills-interactive .live-emotion-pill:not(.live-insight-pill-selected) {
    opacity: 0.88;
}

.live-emotion-pills-interactive .live-emotion-pill.live-insight-pill-selected {
    opacity: 1;
}

.live-course-insight-row {
    background: #fff;
}

.live-course-insight-row:hover {
    background: #fff;
}

.live-course-insight-cell {
    padding: 0 0.75rem 0.75rem !important;
    border-top: 0 !important;
}

.live-insight-panel-row {
    margin: 0;
    border: 0;
    background: transparent;
    padding: 4px 0 8px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.course-space-title-col {
    min-width: 0;
}

.course-space-title {
    font-size: 1.05rem;
    line-height: 1.3;
    word-break: break-word;
}

.course-space-code {
    font-weight: 700;
    white-space: nowrap;
    font-size: 0.95em;
}

.course-space-title-sep {
    margin: 0 0.2em;
    color: #94a3b8;
}

.course-space-name {
    font-weight: 500;
    color: #334155;
    font-size: 0.95em;
}

.course-space-insights-col {
    min-width: 0;
}

#learning-progress-root {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

#learning-progress-root .live-dimension-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
    width: 100%;
    max-width: 100%;
}

.live-dimension-pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-end;
    overflow-x: auto;
    padding-bottom: 2px;
}

.live-dimension-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px 3px 5px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
    min-width: 0;
    flex: 0 0 auto;
}

.live-dimension-pill:hover {
    background: #f8fafc;
}

.live-dimension-pill.live-insight-pill-selected {
    box-shadow: none;
    background: #eff6ff;
    border-color: #93c5fd;
}

.live-dimension-pill.live-insight-pill-selected .live-dimension-pill-label,
.live-dimension-pill.live-insight-pill-selected .live-dimension-pill-count {
    color: #2563eb;
}

.live-dimension-pill:not(.live-insight-pill-selected) {
    opacity: 0.92;
}

.live-dimension-pill.live-insight-pill-selected {
    opacity: 1;
}

.live-dimension-pill-icon {
    display: inline-flex;
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.live-dimension-svg {
    width: 13px;
    height: 13px;
}

.live-dimension-pill-label {
    font-size: 0.625rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.live-dimension-pill-divider {
    width: 1px;
    height: 12px;
    background: #e2e8f0;
    flex-shrink: 0;
}

.live-dimension-pill-count {
    font-size: 0.7rem;
    font-weight: 700;
    color: #0f172a;
    min-width: 1ch;
    text-align: center;
}

.live-insight-panel {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.live-insight-panel-inline {
    margin-top: 10px;
    align-items: stretch;
}

.live-insight-panel-inline .live-insight-student-btn {
    font-size: 0.77rem;
    font-weight: 600;
    padding: 3px 10px;
}

.live-insight-student-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
}

.live-course-insight-cell .live-insight-student-list {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.live-insight-student-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 0.875rem;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.live-insight-student-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.live-insight-loading,
.live-insight-empty {
    color: #94a3b8;
    font-size: 0.875rem;
    padding: 4px 0;
}

.live-evidence-card {
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.live-evidence-card:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.live-evidence-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.live-evidence-source {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #2563eb;
}

.live-evidence-time {
    font-size: 0.75rem;
    color: #94a3b8;
}

.live-evidence-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #1e293b;
}

@media (max-width: 991px) {
    .live-dimension-pills {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    #learning-progress-root .live-dimension-pills {
        justify-content: flex-start;
    }

    .course-space-insights-col {
        margin-top: 0.25rem;
    }
}

@media (max-width: 992px) {
    .live-room-main { flex-direction: column; }
    .live-stage-panel { flex: 1 1 55%; }
    .live-chat-panel { flex: 1 1 45%; max-width: none; min-width: 0; }
}

.schedule-muted {
    opacity: 0.65;
    background: #f8fafc;
}

.schedule-card .recording-list {
    border-left: 2px solid #e2e8f0;
    margin-left: 0.5rem;
}

.playback-shell {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.playback-main {
    display: flex;
    flex: 1;
    min-height: 0;
}

.playback-video-panel {
    flex: 0 0 65%;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.playback-video {
    width: 100%;
    max-height: 100%;
    background: #000;
    object-fit: contain;
}

.playback-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
}

.playback-qa-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 280px;
    max-width: 420px;
    border-left: 1px solid #e2e8f0;
    background: #fff;
}

.playback-qa-list {
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 280px);
}

@media (max-width: 992px) {
    .playback-main { flex-direction: column; }
    .playback-video-panel { flex: 1 1 auto; min-height: 240px; }
    .playback-qa-panel { max-width: none; border-left: none; border-top: 1px solid #e2e8f0; }
}

.playback-message-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-end;
    column-gap: 0.35rem;
    row-gap: 0.05rem;
    margin-top: 0.15rem;
}

.playback-message-row .live-chat-body {
    flex: 1 1 auto;
    min-width: min(100%, calc(100% - 4.75rem));
    margin-top: 0;
    margin-bottom: 0;
}

.playback-owner-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
}

.playback-question .live-chat-meta .live-chat-time,
.playback-reply .live-chat-meta .live-chat-time {
    color: #b8c1cc;
}

.playback-msg-action {
    font-size: 0.74rem;
    line-height: 1.15;
    padding: 0;
    min-height: 0;
    text-decoration: none;
    border: 0;
}

.playback-msg-action:hover,
.playback-msg-action:focus {
    text-decoration: underline;
}

.playback-edited-label {
    font-size: 0.7rem;
    color: #a3adba;
    margin-left: 0.2rem;
}

.playback-qa-compose {
    overflow: visible;
    position: relative;
    z-index: 5;
    flex-shrink: 0;
}

.playback-compose-editor {
    min-height: 2.6rem;
    max-height: 8rem;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.playback-compose-editor:empty::before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
}

.playback-inline-chip,
.playback-inline-chip-display.playback-reply-to-chip {
    display: inline-block;
    padding: 0.05rem 0.4rem;
    margin: 0 0.1rem;
    border-radius: 4px;
    font-size: 0.82em;
    font-weight: 600;
    line-height: 1.35;
    vertical-align: baseline;
    user-select: none;
}

.playback-inline-chip {
    background: #e8f1ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.playback-inline-chip.playback-chip-selected {
    background: #dbeafe;
    outline: 2px solid #60a5fa;
    outline-offset: 1px;
}

.playback-inline-chip[data-chip-kind="reply-to"] {
    background: #eef2ff;
    color: #4338ca;
    border-color: #c7d2fe;
}

.playback-inline-chip-display.playback-reply-to-chip {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.playback-mention-tag {
    color: #0d6efd;
    font-weight: 600;
    background: #eff6ff;
    padding: 0 0.15rem;
    border-radius: 3px;
}

.playback-mention-menu {
    position: fixed;
    z-index: 4000;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(13, 84, 190, 0.18);
    max-height: 240px;
    overflow-y: auto;
}

.playback-mention-menu-above {
    box-shadow: 0 -8px 24px rgba(13, 84, 190, 0.15);
}

.playback-mention-hint .playback-mention-tag {
    font-weight: 500;
}

.playback-reply-clickable {
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

.playback-reply-clickable:hover {
    background: #f8fafc;
}

.playback-reply-selected {
    background: #eff6ff !important;
}

.playback-mention-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 0.45rem 0.75rem;
    font-size: 0.875rem;
}

.playback-mention-item:hover,
.playback-mention-item.active {
    background: #eff6ff;
}

.playback-question-highlight {
    background: #fefce8 !important;
    box-shadow: inset 0 0 0 1px rgba(253, 230, 138, 0.45);
    transition: background-color 0.6s ease, box-shadow 0.6s ease;
}

.playback-question-highlight-fade {
    background: #fff !important;
    box-shadow: none;
}

.playback-mentions-nav-wrap {
    position: relative;
}

.playback-mentions-nav-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.playback-mentions-nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(360px, 92vw);
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(13, 84, 190, 0.15);
    z-index: 1200;
    overflow: hidden;
    color: #1e293b;
}

.playback-mentions-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid #eef2ff;
    background: #f8fbff;
}

.playback-mentions-panel-title {
    font-size: 0.9rem;
}

.playback-mentions-panel-unread {
    font-size: 0.72rem;
    font-weight: 600;
    color: #dc3545;
}

.playback-mentions-history-list {
    max-height: min(420px, 55vh);
    overflow-y: auto;
}

.playback-mentions-history-item {
    display: block;
    padding: 0.55rem 0.85rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.12s ease;
}

.playback-mentions-history-item:last-child {
    border-bottom: 0;
}

.playback-mentions-history-item:hover {
    background: #f8fbff;
}

.playback-mentions-history-item--unread {
    background: #fffdf5;
    border-left: 3px solid #f59e0b;
    padding-left: calc(0.85rem - 3px);
}

.playback-mentions-history-item--unread .playback-mentions-item-prefix {
    font-weight: 700;
}

.playback-mentions-item-inner {
    display: block;
}

.playback-mentions-item-prefix {
    color: #0d6efd;
    font-weight: 600;
}

.playback-mentions-item-body {
    color: #334155;
    font-weight: 400;
}

.playback-mentions-at {
    font-weight: 700;
}

.playback-mentions-item-text {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #334155;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
}

.playback-mentions-item-time {
    display: block;
    text-align: right;
    font-size: 0.68rem;
    color: #94a3b8;
    line-height: 1.35;
    white-space: nowrap;
    margin-top: 0.12rem;
}

.playback-mentions-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem;
    border-top: 1px solid #eef2ff;
    background: #fafcff;
}

.playback-mentions-page-label {
    flex: 1;
    text-align: center;
}

.playback-mentions-menu-item {
    display: block;
    padding: 0.65rem 0.85rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #eef2ff;
}

.playback-mentions-menu-item:last-child {
    border-bottom: 0;
}

.playback-mentions-menu-item:hover {
    background: #f8fbff;
}

.playback-mentions-menu-empty {
    min-width: 200px;
}

/* Media permission panel */
.live-topbar-right {
    min-width: 0;
}

.live-media-perm-top-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    border-radius: 6px;
    background: transparent;
    color: #e2e8f0;
    font-size: 0.8rem;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.live-media-perm-top-toggle:hover {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(226, 232, 240, 0.65);
    color: #f8fafc;
}

.live-media-perm-top-toggle[aria-expanded="true"] {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(96, 165, 250, 0.75);
    color: #f8fafc;
}

.live-perm-list-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    width: 14px;
    flex-shrink: 0;
}

.live-perm-list-line {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 3px;
}

.live-perm-list-line::before {
    content: "";
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.live-perm-list-line::after {
    content: "";
    flex: 1;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
}

.live-media-perm-top-label {
    font-weight: 500;
}

.live-media-perm-panel {
    background: #f8fafc;
    max-height: 220px;
    overflow-y: auto;
}

.live-media-perm-panel-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
}

.live-media-check-label {
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    cursor: pointer;
}

.live-media-grant-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #e8edf4;
}

.live-media-grant-row:last-child {
    border-bottom: 0;
}

.live-media-grant-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-media-grant-icons {
    display: inline-flex;
    gap: 0.35rem;
    color: #2563eb;
}

.live-media-revoke-btn {
    border: 0;
    background: transparent;
    color: #94a3b8;
    padding: 0.15rem 0.35rem;
    line-height: 1;
    border-radius: 4px;
}

.live-media-revoke-btn:hover {
    color: #dc2626;
    background: #fef2f2;
}

.live-media-pending-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px dashed #dbe4f0;
}

.live-media-pending-actions {
    display: inline-flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.live-student-media-bar {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 12;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(6px);
}

.live-student-media-request {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.live-student-media-bar .live-media-check-label {
    color: #e2e8f0;
    font-weight: 500;
}

.live-student-media-bar .live-media-check-label input[type="checkbox"] {
    accent-color: #60a5fa;
}

.live-student-media-controls .live-tkf-zoom-btn.is-hidden {
    display: none;
}

.live-tkf-zoom-btn.is-denied {
    opacity: 0.35;
    pointer-events: none;
}

.live-media-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.live-media-modal {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.2);
}

.live-tkf-presenter-label {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 8;
    max-width: calc(100% - 24px);
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.live-tkf-presenter-label-pip {
    right: 6px;
    bottom: 6px;
    font-size: 0.68rem;
    max-width: calc(100% - 12px);
}

.live-media-grant-row.is-speaking {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.08) 0%, transparent 72%);
}

.live-media-grant-row.is-speaking .live-media-grant-name {
    color: #15803d;
}

.live-media-grant-row .live-media-mic-meter {
    flex-shrink: 0;
    padding: 0 0.15rem;
}

.live-media-grant-row .live-media-mic-meter .live-vol-bars {
    height: 14px;
}

.live-media-grant-row .live-media-mic-meter .live-vol-bar {
    width: 3px;
}

.live-media-mic-spacer {
    width: 34px;
    flex-shrink: 0;
}

.live-media-request-status {
    font-size: 0.78rem;
    color: #cbd5e1;
    min-height: 1.1rem;
}

.live-media-request-status.is-requesting {
    color: #93c5fd;
    font-weight: 500;
}

.live-media-request-status.is-error {
    color: #fca5a5;
}

.live-media-request-status.is-success {
    color: #86efac;
}

.playback-mention-item--self,
.playback-mention-item--self:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f1f5f9;
}
