:root { color-scheme: light; --bg: #f4f7fb; --panel: #ffffff; --panel-soft: #f7fafc; --ink: #172033; --muted: #667085; --line: #dfe6ef; --accent: #0f2742; --brand: #0f766e; --brand-soft: #e4f5f1; --gold: #c98a12; --danger: #b42318; --shadow: 0 12px 30px rgba(25, 37, 59, 0.08); } * { box-sizing: border-box; } [hidden] { display: none !important; } body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; } button, input, select, textarea { font: inherit; } button { min-height: 34px; border: 1px solid var(--line); border-radius: 7px; padding: 0 11px; color: var(--ink); background: #fff; cursor: pointer; } button:hover { border-color: #b8c0cc; background: #f9fafb; } button:disabled { color: #a4acb8; background: #eef1f4; cursor: not-allowed; } input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; outline: none; } input, select { min-height: 34px; padding: 0 10px; } textarea { min-height: 72px; padding: 9px 10px; resize: vertical; } input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12); } .topbar { height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; } .brand, .top-actions, .login-form, .user-menu, .library-strip, .tag-filters, .tabs, .video-actions, .recording-controls, .sentence-controls, .study-side-actions, .lesson-meta, .recording-line { display: flex; align-items: center; } .brand { gap: 10px; min-width: 250px; } .brand h1 { margin: 0; font-size: 17px; line-height: 1.1; } .top-actions { flex: 1; justify-content: flex-end; gap: 12px; min-width: 0; } .library-strip { flex: 1; justify-content: flex-end; gap: 8px; min-width: 260px; } .search-input { max-width: 250px; } .tag-filters { gap: 6px; max-width: 420px; overflow: hidden; } .chip { min-height: 34px; border-color: transparent; border-radius: 20px; padding: 0 14px; color: #27364a; background: #eef2f7; font-size: 12px; font-weight: 700; white-space: nowrap; transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease; } .chip:hover { border-color: #cbd5e1; background: #f8fafc; box-shadow: 0 6px 16px rgba(15, 39, 66, 0.08); } .chip.active { color: #fff; background: var(--accent); border-color: var(--accent); } .login-form, .user-menu { gap: 8px; flex-shrink: 0; } .login-form input { width: 150px; } .login-form button, .admin-form button[type="submit"] { color: #fff; background: var(--brand); border-color: var(--brand); } .user-menu { color: var(--muted); font-size: 13px; } .study-shell { display: grid; grid-template-columns: minmax(680px, 1.18fr) minmax(440px, 0.82fr); gap: 16px; height: calc(100vh - 62px); padding: 14px 16px 76px; } .left-stage { min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); } .lesson-rail, .video-panel, .transcript-panel { background: var(--panel); border: 1px solid #dce5ee; border-radius: 8px; box-shadow: var(--shadow); } .lesson-rail { min-height: 0; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr); } .rail-heading { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); } .rail-title { display: flex; align-items: center; gap: 8px; min-width: 0; } .rail-heading span { color: var(--muted); font-size: 12px; } .icon-button.admin-entry { min-height: 28px; border-radius: 6px; padding: 0 8px; color: var(--muted); background: var(--panel); border-color: var(--line); font-size: 12px; white-space: nowrap; } .icon-button.admin-entry:hover { color: var(--ink); border-color: var(--brand); background: var(--brand-soft); } .video-list { overflow: auto; padding: 8px; } .video-item { width: 100%; min-height: 0; display: block; text-align: left; padding: 10px; background: transparent; border: 1px solid transparent; border-radius: 7px; } .video-item:hover, .video-item.active { border-color: #b9dcd5; background: var(--brand-soft); } .video-item strong, .video-item span, .video-item small { display: block; } .video-item strong { line-height: 1.35; } .video-item span, .video-item small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; } .video-progress { color: var(--brand); font-weight: 700; } .video-panel { min-width: 0; min-height: 0; overflow: hidden; display: grid; grid-template-rows: minmax(520px, 1fr) auto auto; } .video-frame { position: relative; min-height: 520px; background: #0b1220; } video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0b1220; } .empty-video { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; color: #e6e9ef; text-align: center; padding: 24px; } .empty-video span { color: #aab2bf; } .tool-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; min-height: 71px; padding: 14px 16px; border-top: 1px solid var(--line); background: #fff; overflow: visible; } .recording-controls { justify-content: flex-start; gap: 8px; min-width: 0; flex-wrap: wrap; } .sentence-controls { justify-content: center; gap: 10px; min-width: 0; flex-wrap: wrap; } .study-side-actions { justify-content: flex-end; gap: 10px; min-width: 0; flex-wrap: wrap; } .tool-row button { min-width: 54px; min-height: 38px; border-radius: 10px; border-color: #d8e2ec; background: #f8fafc; font-weight: 650; white-space: nowrap; transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; } .tool-row button:disabled { border-color: #e2e8f0; color: #98a2b3; background: #f1f5f9; box-shadow: none; transform: none; } .tool-row button:hover { border-color: #b9dcd5; background: var(--brand-soft); box-shadow: 0 8px 20px rgba(15, 118, 110, 0.1); transform: translateY(-1px); } .sentence-controls button { min-width: 76px; color: #0f2742; border-color: #c8d7e6; background: #ffffff; font-size: 15px; font-weight: 800; } .sentence-controls #replayBtn { color: #fff; border-color: var(--accent); background: var(--accent); } .sentence-controls #replayBtn:hover { border-color: #1e3a5f; background: #1e3a5f; box-shadow: 0 10px 24px rgba(15, 39, 66, 0.2); } .sentence-controls #replayBtn:disabled { border-color: #d8e2ec; color: #98a2b3; background: #e8eef5; } .study-side-actions .toggle { min-height: 42px; padding: 0 14px; border: 1px solid #c8d7e6; border-radius: 999px; color: #0f2742; background: #f8fafc; font-size: 14px; font-weight: 800; transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; } .study-side-actions .toggle:hover { border-color: #b9dcd5; background: var(--brand-soft); box-shadow: 0 8px 20px rgba(15, 118, 110, 0.1); transform: translateY(-1px); } .study-side-actions .toggle input { width: 18px; height: 18px; } .study-side-actions #favoriteBtn { min-width: 68px; color: #0f2742; background: #fff; } .subtitle-card { display: grid; align-content: center; gap: 8px; min-height: 116px; padding: 18px 28px; border-top: 1px solid var(--line); background: #f8fbfb; } .subtitle-card p { margin: 0; text-align: center; line-height: 1.45; } #primarySubtitle { font-size: 22px; font-weight: 750; letter-spacing: 0; } #secondarySubtitle { color: #667085; font-size: 15px; } .lesson-meta { justify-content: space-between; gap: 14px; padding: 13px 16px; border-top: 1px solid var(--line); } .lesson-meta h2 { margin: 0; font-size: 18px; } .lesson-meta p { margin: 4px 0 0; color: var(--muted); font-size: 12px; } .video-actions { gap: 8px; flex-shrink: 0; } .recording-line { justify-content: space-between; gap: 12px; min-height: 42px; padding: 8px 16px; border-top: 1px solid var(--line); color: var(--muted); background: var(--panel-soft); font-size: 12px; } .recording-status-danger { color: var(--danger); font-weight: 700; } .toggle { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; white-space: nowrap; } .toggle input { width: auto; min-height: 0; } .transcript-panel { min-width: 0; min-height: 0; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr); } .transcript-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); } .tabs { gap: 2px; } .tab { min-height: 30px; padding: 0 11px; border-color: transparent; background: transparent; font-size: 12px; } .tab.active { background: var(--accent); color: #fff; } .transcript-list { min-height: 0; overflow: auto; padding: 10px 12px 24px; } .line-button { width: 100%; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; text-align: left; border: 1px solid transparent; border-radius: 8px; background: transparent; padding: 13px 10px; } .line-jump { min-height: 0; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; padding: 0; border: 0; background: transparent; text-align: left; } .line-jump:hover { background: transparent; border-color: transparent; } .line-button:hover, .line-button.active { background: #f4fbf9; border-color: var(--line); } .line-button.active { border-color: #b9dcd5; box-shadow: inset 4px 0 0 var(--brand); } .line-button.is-practiced { background: #f7fdf9; border-color: #ccebdd; } .line-button.is-difficult { background: #fffaf0; box-shadow: inset 3px 0 0 var(--gold); } .line-button.active.is-difficult { box-shadow: inset 3px 0 0 var(--gold); } .line-time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 3px; } .line-primary { margin: 0; line-height: 1.5; font-weight: 650; } .line-secondary { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; } .line-status { display: flex; gap: 5px; justify-content: flex-end; align-items: center; } .line-status-button { min-height: 26px; padding: 0 7px; border-radius: 6px; font-size: 12px; white-space: nowrap; } .line-status-button.practiced.active { color: #047857; border-color: #9bd8c0; background: #ecfdf5; } .line-status-button.difficult.active { color: #92400e; border-color: #f5c56f; background: #fffbeb; } .line-primary mark, .line-secondary mark { background: rgba(201, 138, 18, 0.18); color: #7a4d00; border-radius: 3px; padding: 0 2px; } .empty-state { padding: 18px; color: var(--muted); line-height: 1.6; } .admin-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; } .admin-form textarea { grid-row: span 2; } .file-input { min-height: 44px; display: flex; align-items: center; justify-content: center; border: 1px dashed #cbd5e1; border-radius: 10px; color: var(--muted); background: #f8fafc; cursor: pointer; padding: 0 13px; transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease; } .file-input:hover { border-color: #94a3b8; color: #334155; background: #f1f5f9; } .file-input span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .file-input.is-selected { border-color: #3182ce; color: #1d4f7a; background: #eff6ff; box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.1); } .file-input input { display: none; } .admin-form .secondary-action { color: var(--ink); background: #fff; border-color: var(--line); } .admin-page { min-height: 100vh; background: #f8fafc; color: var(--ink); } .admin-topbar { gap: 16px; } .admin-topbar h1 { margin: 0; font-size: 20px; } .admin-topbar p { margin: 4px 0 0; color: var(--muted); font-size: 13px; } .admin-shell { display: grid; grid-template-columns: minmax(0, 55fr) minmax(360px, 45fr); align-items: start; gap: 28px; padding: 28px 36px 44px; } .admin-panel, .admin-locked { background: #fff; border: 1px solid #edf2f7; border-radius: 12px; box-shadow: 0 22px 55px rgba(15, 23, 42, 0.07); } .admin-panel { padding: 24px; } .admin-form-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; } .admin-panel h2, .admin-locked h2 { margin: 0 0 12px; font-size: 17px; } .admin-form-heading h2 { margin: 0; } .admin-locked { max-width: 520px; margin: 48px auto; } .admin-page .admin-form { grid-template-columns: 1fr; gap: 12px; } .admin-page .admin-form textarea { grid-row: auto; } .admin-page .admin-form input[type="text"], .admin-page .admin-form input[type="url"], .admin-page .admin-form textarea { border-color: #e2e8f0; border-radius: 10px; padding: 11px 13px; background: #fff; transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; } .admin-page .admin-form input[type="text"], .admin-page .admin-form input[type="url"] { min-height: 44px; } .admin-page .admin-form textarea { min-height: 104px; } .admin-page .admin-form input[type="text"]:focus, .admin-page .admin-form input[type="url"]:focus, .admin-page .admin-form textarea:focus { border-color: #3182ce; box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.14); background: #ffffff; } .admin-subtitle-editor { display: grid; gap: 12px; } .admin-ai-panel, .admin-ai-panel h3, .admin-ai-panel p { margin: 0; } .admin-ai-panel { display: grid; gap: 12px; padding: 16px; border: 1px solid #ddd6fe; border-radius: 12px; background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78); } .admin-ai-panel h3 { color: #312e81; font-size: 14px; } .admin-ai-panel p { color: #5b5f7a; font-size: 13px; line-height: 1.45; } .admin-ai-actions { display: flex; flex-wrap: wrap; gap: 8px; } .admin-ai-report { color: var(--muted); font-size: 13px; } .admin-subtitle-section { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-soft); } .admin-subtitle-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .admin-subtitle-heading h3 { margin: 0; font-size: 14px; } .admin-subtitle-heading span { color: var(--muted); font-size: 12px; } .admin-subtitle-cues { display: grid; gap: 7px; max-height: 320px; overflow: auto; } .admin-subtitle-cue { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); } .admin-subtitle-cue strong { display: block; font-size: 12px; font-variant-numeric: tabular-nums; } .admin-subtitle-cue p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; } .admin-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; } .admin-list-heading h2 { margin: 0; } .admin-message { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #b7e4d8; border-radius: 6px; color: #047857; background: #ecfdf5; line-height: 1.45; } .admin-message.error { border-color: #fecaca; color: var(--danger); background: #fef2f2; } .admin-video-list { display: grid; gap: 10px; } .admin-video-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; } .admin-video-item.is-editing { border-color: #93c5fd; background: #eff6ff; } .admin-video-item h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.35; } .admin-video-meta, .admin-video-subtitles { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; } .admin-video-subtitles { margin-top: 3px; } .admin-video-actions { display: flex; gap: 8px; } .danger-action { border-color: #fecdd3; border-radius: 8px; color: #be123c; background: #fff1f2; white-space: nowrap; transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease; } .danger-action:hover { border-color: #fb7185; color: #9f1239; background: #ffe4e6; box-shadow: 0 8px 18px rgba(190, 18, 60, 0.1); } .primary-link, .secondary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; border: 1px solid #dbe4ee; border-radius: 8px; padding: 0 12px; color: var(--ink); background: #fff; text-decoration: none; cursor: pointer; white-space: nowrap; } .admin-video-actions .secondary-action, .admin-form .secondary-action { color: #1f3b57; border-color: #dbe4ee; background: #f8fafc; box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04); } .primary-link { color: #fff; background: var(--brand); border-color: var(--brand); } .primary-link:hover { color: #fff; background: #0d625c; border-color: #0d625c; } .secondary-action:hover { border-color: #b8c7d9; background: #f1f5f9; } .home-page { min-height: 100vh; background: #f8fafc; } .home-topbar .brand { min-width: 180px; } .home-search { max-width: 360px; } .home-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; width: 100%; margin: 0; padding: 32px 40px 56px; } .home-dashboard, .home-library { min-width: 0; } .home-dashboard { align-self: start; position: sticky; top: 94px; display: grid; gap: 14px; } .home-dashboard-title { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06); } .home-dashboard-title span, .home-plan-card strong, .home-plan-card small { display: block; } .home-dashboard-title span { color: var(--muted); font-size: 12px; } .home-plan-card { display: grid; gap: 6px; margin-top: 8px; } .home-plan-card strong { color: #0f2742; font-size: 22px; line-height: 1.15; } .home-plan-card small { color: #667085; font-size: 12px; line-height: 1.45; } .home-metrics { display: grid; gap: 12px; } .home-metric { min-height: 82px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; text-align: left; border-color: #edf1f6; border-radius: 16px; background: #fff; box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease; } .home-metric:hover { transform: translateY(-2px); border-color: #cbd5e1; background: #ffffff; box-shadow: 0 20px 44px rgba(15, 23, 42, 0.09); } .home-metric-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-weight: 900; } .home-metric-copy, .home-metric-label { display: block; min-width: 0; } .home-metric-label { font-weight: 800; } .home-metric strong { color: #0f2742; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; } .home-metric small { color: var(--muted); font-size: 12px; } .home-metric.tone-blue .home-metric-icon { color: #087ea4; background: #e6f7fb; } .home-metric.tone-green .home-metric-icon { color: #047857; background: #e9f9f0; } .home-metric.tone-slate .home-metric-icon { color: #475467; background: #eef2f7; } .home-metric.tone-rose .home-metric-icon { color: #be123c; background: #fff1f4; } .home-metric.tone-amber .home-metric-icon { color: #9a5c00; background: #fff7df; } .home-metric.active { border-color: #a7c7e8; background: #eef7ff; box-shadow: 0 18px 42px rgba(37, 99, 235, 0.11); } .home-metric.active small { color: var(--muted); } .home-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; } .home-heading h2 { margin: 0; font-size: 24px; } .home-heading p { margin: 6px 0 0; color: var(--muted); font-size: 13px; } .home-categories { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 18px; } .home-status { min-height: 22px; color: var(--muted); font-size: 13px; margin-bottom: 18px; } .home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; } .home-card { min-width: 0; overflow: hidden; border: 1px solid #edf1f6; border-radius: 16px; background: #fff; box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; } .home-card:hover { transform: translateY(-4px); border-color: #d6dee9; box-shadow: 0 26px 60px rgba(15, 23, 42, 0.12); } .home-card-link { display: block; color: inherit; text-decoration: none; } .home-card:hover .home-cover { filter: saturate(1.08); } .home-cover { position: relative; min-height: 180px; display: grid; align-content: space-between; padding: 16px; color: #fff; background: #e5eaf1; } .home-cover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: transform 220ms ease, opacity 160ms ease; } .home-cover.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.46)); } .home-cover.has-image .home-cover-image { opacity: 1; } .home-card:hover .home-cover.has-image .home-cover-image { transform: scale(1.03); } .home-favorite { position: absolute; top: 10px; right: 10px; z-index: 2; min-height: 28px; border-color: rgba(255, 255, 255, 0.38); color: #fff; background: rgba(17, 24, 39, 0.3); font-size: 12px; } .home-favorite:hover, .home-favorite.active { color: #111827; background: #fff; border-color: #fff; } .home-cover.tone-1 { background: linear-gradient(135deg, #0f766e, #1d6f8f); } .home-cover.tone-2 { background: linear-gradient(135deg, #2563eb, #0f766e); } .home-cover.tone-3 { background: linear-gradient(135deg, #475569, #2563eb); } .home-cover.tone-4 { background: linear-gradient(135deg, #9a5c00, #be6b21); } .home-cover.tone-5 { background: linear-gradient(135deg, #334155, #0f766e); } .home-cover-badge { position: relative; z-index: 2; width: fit-content; max-width: calc(100% - 86px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid rgba(255, 255, 255, 0.34); border-radius: 999px; padding: 4px 8px; background: rgba(255, 255, 255, 0.14); font-size: 12px; } .home-cover strong { position: relative; z-index: 2; font-size: 34px; line-height: 1; } .home-cover.has-image strong { visibility: hidden; } .home-card-body { padding: 18px; } .home-card-body h3 { margin: 0; color: #1a202c; font-size: 18px; font-weight: 850; line-height: 1.42; } .home-card-meta, .home-card-subtitles, .home-progress { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; } .home-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; } .home-card-tags span { border-radius: 999px; padding: 3px 7px; color: #334155; background: #eef2f7; font-size: 12px; } .home-card-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed #d7dee8; } .home-card-stats div { min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; } .home-card-stats dt, .home-card-stats dd { margin: 0; } .home-card-stats dt { color: var(--muted); font-size: 11px; white-space: nowrap; } .home-card-stats dd { color: #1a202c; font-weight: 800; font-size: 13px; white-space: nowrap; } .home-progress { color: var(--brand); font-weight: 700; } @media (max-width: 1180px) { .study-shell { grid-template-columns: 1fr; height: auto; } .transcript-panel { min-height: 520px; } } @media (max-width: 860px) { .topbar, .top-actions, .library-strip, .login-form { height: auto; align-items: stretch; flex-direction: column; } .topbar { padding: 12px; } .study-shell { padding-top: 12px; } .tool-row { grid-template-columns: 1fr; justify-items: stretch; gap: 10px; } .recording-controls, .sentence-controls, .study-side-actions { justify-content: center; } .admin-form { grid-template-columns: 1fr; } } @media (max-width: 560px) { .study-shell { padding-left: 10px; padding-right: 10px; } .video-panel { grid-template-rows: minmax(360px, 1fr) auto auto; } .video-frame { min-height: 360px; } .tool-row { padding: 12px; } .sentence-controls button { flex: 1 1 84px; } } @media (max-width: 900px) { .admin-topbar { height: auto; align-items: stretch; padding: 12px; } .admin-shell { grid-template-columns: 1fr; padding: 12px; } .admin-video-item { grid-template-columns: 1fr; align-items: stretch; } .admin-video-actions { flex-direction: column; } .danger-action, .admin-video-actions .secondary-action { width: 100%; } } @media (max-width: 720px) { .home-shell { grid-template-columns: 1fr; gap: 20px; padding: 18px 14px 32px; } .home-dashboard { position: static; } .home-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-heading { align-items: stretch; flex-direction: column; } .home-search { max-width: none; } .home-grid { grid-template-columns: 1fr; gap: 18px; } }