:root[data-theme="light"] { --ink: #243248; --muted: #53647a; --secondary-ink: #364b65; --link-ink: #285593; --line: #d9e1eb; }
:root[data-theme="dark"] { --ink: #ecf0f6; --muted: #bac6d8; --secondary-ink: #d5ddeb; --link-ink: #b8d2fb; }
body, input, textarea, select, button { font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { font-size: 14px; line-height: 1.65; }
.page-heading h1, .operator-title h1 { font-size: 22px; }
.page-heading p, .breadcrumb, .date, .workspace-tab, .brand small, .account-name, .account small { font-size: 13px; }
.sidebar .nav-item { font-size: 14px; min-height: 42px; }
.sidebar .nav-caption { font-size: 12px; }
.sidebar .nav-item, .sidebar .account small, .sidebar .brand small { color: #d5deec; }
.sidebar .nav-item.active { color: #fff; }
.sidebar .account-actions .text-btn, .sidebar .operator-link { font-size: 12px; }
.text-btn, .btn, .btn.small, .field, .field input, .field select, .field textarea, .compact-search, .filter-bar input, .filter-bar select, .record-filters input, .record-filters select, .operator-search input { font-size: 14px; }
.btn, .btn.small { min-height: 36px; }
.filter-bar input, .filter-bar select, .record-filters input, .record-filters select, .compact-search, .operator-search input { height: 36px; min-height: 36px; }
.theme-toggle, .segment, .page-tab, .chapter-nav-item, .page-number { font-size: 13px; }
.theme-toggle { min-height: 30px; }
.panel-head h2, .settings-defaults h2, .workspace-help h2, .grant-layout h3 { font-size: 15px; }
.muted, .privacy-note, .empty, .record-help, .record-rules, .record-rules p, .field small, .panel-head h2 small, .settings-defaults p, .workspace-help details, .slot-list, .pagination, .footer, .grant-header p, .grant-footnote, .grant-terms .privacy-note, .grant-policy .privacy-note, .grant-policy .casting-policy-note { font-size: 13px; color: var(--muted); }
.table-wrap { border: 1px solid var(--line); border-radius: 4px; }
.capture-event { margin-top: 8px; min-width: 240px; white-space: normal; }
.capture-event summary { color: var(--link-ink); cursor: pointer; line-height: 1.6; }
.capture-event dl { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-subtle); }
.capture-event dl > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 4px 0; }
.capture-event dt { color: var(--muted); }
.capture-event dd { margin: 0; overflow-wrap: anywhere; }
table { font-size: 14px; border-collapse: separate; border-spacing: 0; }
th { font-size: 13px; font-weight: 600; padding: 12px; color: var(--secondary-ink); }
td { font-size: 14px; padding: 12px; color: var(--ink); }
th, td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
th:last-child, td:last-child { border-right: 0; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: var(--surface-subtle); }
td small, .student-name-cell small, .course-meta { font-size: 12px; color: var(--muted); line-height: 1.65; }
.mono, .operator-shell .mono, .student-link { font-size: 14px; font-family: inherit; font-variant-numeric: tabular-nums; }
.pill { font-size: 12px; padding: 4px 8px; }
.information-table { display: table; width: 100%; margin: 0; }
.information-table th { width: 180px; background: var(--surface-subtle); }
.information-table td { white-space: normal; }
.dashboard-columns { grid-template-columns: minmax(0, 1fr); }
.quick-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-link { border: 1px solid var(--line); padding: 14px; }
.quick-link strong { font-size: 14px; }
.quick-link small { font-size: 12px; }
.recent-courses { display: block; }
.student-table { min-width: 1180px; }
.student-summary strong { font-size: 14px; }
.student-summary span { font-size: 12px; }
.student-dialog-header h2, .grant-header h2 { font-size: 20px; }
.grant-course strong { font-size: 14px; }
.grant-course small, .grant-section-title span, .grant-footer > span { font-size: 13px; }
.grant-options .field input, .grant-options .field select { min-height: 36px; }
.grant-picker .compact-search { height: 36px; }
.lesson strong, .chapter > summary, .disk-name { font-size: 14px; }
.lesson small, .disk-row small, .disk-sync-status, .disk-breadcrumbs, .disk-onboarding, .disk-account small, .disk-account-tools, .disk-publish-hint, .disk-search-message { font-size: 12px; }
.disk-row { border-bottom: 1px solid var(--line); min-height: 49px; }
.disk-row:nth-child(even), .chapter > summary { background: var(--surface-subtle); }
.chapter-content .lesson { padding: 12px; margin: 0; border-bottom: 1px solid var(--line); }
.course-lesson-panel .lesson { padding: 12px; }
.playback-record-table { min-width: 780px; width: 100%; table-layout: fixed; }
.playback-record-table th,.playback-record-table td { padding: 10px 8px; white-space: normal; overflow-wrap: anywhere; }
.playback-record-table th:first-child { width: 21%; }
.playback-record-table th:nth-child(2) { width: 14%; }
.playback-record-table .time-cell { white-space: normal; }
.time-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.time-cell strong { font-weight: 600; }
.timing-summary { display: grid; gap: 4px; }
.timing-summary strong { font-size: 13px; font-weight: 500; }
.rate-flag { display: inline-block; font-size: 12px; font-weight: 600; margin-top: 4px; }
:root[data-theme="light"] tr.fast-playback td, :root[data-theme="light"] tr.fast-playback:hover td { background: #fff0f1; color: #a02537; }
:root[data-theme="dark"] tr.fast-playback td, :root[data-theme="dark"] tr.fast-playback:hover td { background: #492f3b; color: #ffd4db; }
tr.fast-playback td small, tr.fast-playback .text-btn, tr.fast-playback .timing-summary strong { color: inherit; }
tr.fast-playback td:first-child { box-shadow: inset 3px 0 #c63d52; }
.course-access-table { min-width: 850px; margin-top: 16px; }
.course-access-table .toolbar { flex-wrap: nowrap; }
.operator-workspace { grid-template-columns: minmax(0, 1fr); }
.operator-teacher { padding: 0; }
.operator-teacher.selected td { background: var(--accent-bg); }
.operator-teacher-table { min-width: 930px; }
.operator-teacher .toolbar { margin: 0; flex-wrap: nowrap; }
.operator-search input { min-height: 36px; }
@media(max-width:1100px) { .filter-bar, .record-filters { flex-wrap: wrap; } .filter-bar select { min-width: 110px; } }
@media(max-width:700px) { .quick-links { grid-template-columns: 1fr; } .information-table th { width: 120px; } .sidebar .nav-item { font-size: 13px; } .grant-terms { grid-template-columns: minmax(0,1fr); } .grant-terms .field:has([name="note"]) { grid-row: auto; } .student-summary { gap: 12px; padding: 12px; } }
.publication-status{padding:0 24px}
.publication-status:empty{display:none}
.publication-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px;padding:12px 16px;background:var(--surface);border:1px solid var(--line);border-left:3px solid #527b9a;border-radius:6px;font-size:13px;color:var(--ink)}
.publication-notice strong{font-weight:500}.publication-notice small{display:block;margin-top:4px;opacity:.75}.publication-notice.failed{border-left-color:#b65f67}
@media(max-width:600px){.publication-status{padding:0 12px}.publication-notice{gap:8px}}

dialog.wide { width: min(1640px, 96vw); max-width: 96vw; max-height: 94vh; }
dialog.wide:has(.student-dialog) { width: min(1120px, 96vw); }
.student-dialog .student-playback-table { min-width: 860px; table-layout: fixed; }
.student-dialog .student-playback-table th,.student-dialog .student-playback-table td { vertical-align: top; padding: 10px 8px; white-space: normal; overflow-wrap: anywhere; }
.student-dialog .student-playback-table th:first-child { width: 20%; }
.student-dialog .student-playback-table th:nth-child(7) { width: 17%; }
.student-dialog-header { position: sticky; top: -28px; z-index: 2; background: var(--surface); padding: 12px 0; }
.capture-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.capture-settings fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 4px 16px; }
@media(max-width:700px) { .capture-settings { grid-template-columns: 1fr; } dialog.wide { width: 96vw; padding: 16px; } }

.publication-workspace .page-tabs { gap: 24px; }
.publication-workspace .page-tabs .active { color: var(--ink); border-bottom: 2px solid var(--green); }
.publication-batch { margin: 18px 0; }
.publication-table { min-width: 1050px; }
.publication-table td { vertical-align: top; }
.publication-progress-cell { width: 290px; white-space: normal; }
.publication-progress { display: grid; gap: 6px; min-width: 200px; }
.publication-progress progress { width: 100%; height: 8px; accent-color: #7198bd; }
.publication-draft-details { margin-top: 10px; font-size: 13px; }
.publication-draft-details summary { cursor: pointer; color: var(--green); }
.publication-draft-details>div { border-top: 1px solid var(--line); padding: 10px 0; }
.publication-draft-details p { font-size: 12px; color: var(--muted); margin: 6px 0; }
