:root {
  --font-main: "Inter", "Aptos", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --ink: #171a20;
  --text: #393c41;
  --muted: #6b6f76;
  --line: rgba(23, 26, 32, 0.14);
  --line-soft: rgba(23, 26, 32, 0.08);
  --red: #e82127;
  --red-dark: #c9181f;
  --blue: #2563eb;
  --green: #087f5b;
  --surface: #ffffff;
  --surface-soft: #f6f6f7;
  --page: #f3f3f4;
  --shadow: 0 18px 52px rgba(23, 26, 32, 0.08);
  --chart-gradient: linear-gradient(90deg, #1a1b20 0%, #6e2024 48%, #e82127 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum", "kern";
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(1240px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.brand::before { content: ""; width: 30px; height: 2px; border-radius: 99px; background: var(--red); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-link, .icon-button, .button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.nav-link:hover, .icon-button:hover, .button:hover { border-color: rgba(23,26,32,.32); transform: translateY(-1px); }
.button.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.button.red { background: var(--red); color: #fff; border-color: var(--red); }
.button.ghost { background: #f0f0f1; border-color: transparent; }
.button.danger { background: #fff; color: var(--red); border-color: rgba(232,33,39,.28); }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }

.page { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 56px; }
.masthead { padding: 28px 0 44px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--red); }
h1 { margin: 18px 0 0; max-width: 100%; font-size: 58px; line-height: 1.08; font-weight: 820; letter-spacing: 0; }
.subline { margin: 16px 0 0; max-width: 720px; color: var(--muted); font-size: 15px; line-height: 1.8; }

.section-block { padding: 30px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.segmented { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.segment { min-height: 34px; border: 0; border-radius: 5px; padding: 0 13px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 760; cursor: pointer; }
.segment.active { background: var(--ink); color: #fff; }

.training-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.training-card { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 10px 30px rgba(23,26,32,.04); }
.training-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #ddd; }
.training-cover img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.training-card:hover .training-cover img { transform: scale(1.025); }
.control-training-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,16,.84) 0%, rgba(10,12,16,.48) 58%, rgba(10,12,16,.12) 100%); pointer-events: none; }
.training-cover-copy { position: absolute; z-index: 2; left: 20px; right: 18px; bottom: 18px; color: #fff; }
.training-cover-copy span { display: block; margin-bottom: 7px; color: #ff565b; font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.training-cover-copy strong { display: block; max-width: 88%; font-size: 20px; line-height: 1.28; font-weight: 850; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.control-training-cover .status-pill { z-index: 3; }
.training-document-cover { width: 100%; height: 100%; display: grid; place-content: center; gap: 8px; color: #fff; text-align: center; background: linear-gradient(135deg, #171a20 0%, #343840 100%); }
.training-document-cover::before { content: ""; width: 58px; height: 3px; margin: 0 auto 8px; background: var(--red); }
.training-document-cover span { font-size: 32px; font-weight: 850; letter-spacing: .08em; }
.training-document-cover strong { color: rgba(255,255,255,.72); font-size: 12px; letter-spacing: .16em; }
.status-pill { position: absolute; top: 12px; left: 12px; min-height: 28px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 11px; font-weight: 800; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.training-card-body { padding: 18px; }
.training-date { color: var(--muted); font-size: 12px; font-weight: 700; }
.training-title { margin: 7px 0 18px; min-height: 56px; font-size: 21px; line-height: 1.35; font-weight: 800; }
.training-actions { display: flex; gap: 8px; }
.training-actions .button { flex: 1; padding: 0 10px; }
.empty-state { min-height: 180px; display: grid; place-items: center; border: 1px dashed rgba(23,26,32,.2); border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.56); text-align: center; padding: 24px; }

.video-layout { width: min(1080px, 100%); margin: 0 auto; }
.video-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.video-title-row h1 { margin: 0; font-size: 50px; }
.video-shell { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #0d0e10; box-shadow: var(--shadow); }
.video-shell video { width: 100%; height: 100%; display: block; object-fit: contain; background: #0d0e10; }
.video-shell.document-shell { aspect-ratio: auto; min-height: 0; overflow: hidden; position: relative; background: #e9e9eb; }
.document-shell iframe { width: 100%; height: min(78vh, 920px); min-height: 620px; display: block; border: 0; background: #fff; }
.document-fallback { display: none; padding: 12px 16px; color: var(--muted); background: #fff; font-size: 12px; text-align: center; }
.video-shell.document-page-shell { height: auto; overflow: visible; padding: 20px; background: #e7e8eb; }
.document-pages { width: min(860px, 100%); display: grid; gap: 20px; margin: 0 auto; }
.document-page { overflow: hidden; margin: 0; border-radius: 4px; background: #fff; box-shadow: 0 8px 28px rgba(23,26,32,.12); }
.document-page img { width: 100%; height: auto; display: block; background: #fff; }
.document-page figcaption { padding: 8px 12px; border-top: 1px solid var(--line); color: var(--muted); background: #fff; font-size: 11px; text-align: center; }
.video-placeholder { width: 100%; height: 100%; display: grid; place-items: center; padding: 24px; color: #fff; text-align: center; background-position: center; background-size: cover; position: relative; }
.video-placeholder::before { content: ""; position: absolute; inset: 0; background: rgba(10,11,13,.62); }
.video-placeholder-content { position: relative; z-index: 1; }
.video-placeholder strong { display: block; font-size: 22px; margin-bottom: 8px; }
.video-placeholder span { color: rgba(255,255,255,.72); font-size: 13px; }
.below-video { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 0; }

.panel-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 18px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; box-shadow: 0 10px 30px rgba(23,26,32,.04); }
.panel h2, .panel h3 { margin: 0 0 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 760; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,26,32,.06); }
.upload-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: stretch; }
.upload-row .button { min-height: 44px; }
.upload-status { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.content-list { display: grid; gap: 10px; }
.content-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; border-top: 1px solid var(--line-soft); padding: 14px 0; }
.content-row:first-child { border-top: 0; padding-top: 0; }
.content-row-title { font-size: 14px; font-weight: 800; }
.content-row-meta { margin-top: 5px; color: var(--muted); font-size: 12px; }
.row-actions { display: flex; gap: 6px; }
.row-actions .button { min-height: 34px; padding: 0 11px; font-size: 12px; }

.admin-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 24px 0; }
.admin-nav a { min-height: 88px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 16px; }
.admin-nav strong { font-size: 16px; }
.admin-nav span { margin-top: 6px; color: var(--muted); font-size: 12px; }
.admin-module-layout { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; align-items: stretch; margin-bottom: 18px; }
.admin-module-group { position: relative; min-width: 0; margin: 0; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 9px; background: rgba(255,255,255,.5); padding: 20px; }
.admin-module-group.training-group { border-top-color: var(--ink); }
.admin-module-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.admin-module-head > div { display: flex; align-items: center; gap: 10px; }
.admin-module-head span { color: var(--red); font-size: 12px; font-weight: 850; }
.training-group .admin-module-head span { color: var(--ink); }
.admin-module-head h2 { margin: 0; font-size: 23px; }
.admin-module-head p { margin: 0; color: var(--muted); font-size: 12px; }
.admin-module-group .admin-nav { grid-template-columns: 1fr; margin: 16px 0 0; }
.admin-module-group .admin-nav a { min-height: 104px; }
.training-upload-box { border: 1px solid rgba(232,33,39,.22); border-left: 3px solid var(--red); border-radius: 7px; background: #fafafa; padding: 14px; }

.modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(23,26,32,.46); backdrop-filter: blur(8px); }
.modal.open { display: flex; }
.dialog { width: min(440px, 100%); border-radius: 10px; background: #fff; padding: 24px; box-shadow: 0 30px 90px rgba(0,0,0,.22); }
.dialog h2 { margin: 0 0 8px; font-size: 24px; }
.dialog p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.error-text { min-height: 18px; margin-top: 10px; color: var(--red); font-size: 12px; }
.notice { padding: 12px 14px; border-left: 3px solid var(--ink); border-radius: 5px; background: #f1f1f2; color: var(--text); font-size: 13px; line-height: 1.7; }

.report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.filter-group { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-group select { min-height: 42px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; background: #fff; font-weight: 700; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 18px; }
.kpi-label { color: var(--muted); font-size: 12px; font-weight: 760; }
.kpi-value { margin-top: 9px; font-size: 30px; font-weight: 820; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.report-grid .wide { grid-column: 1 / -1; }
.chart-list { display: grid; gap: 13px; }
.chart-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) 62px; align-items: center; gap: 10px; font-size: 12px; }
.chart-track { height: 10px; border-radius: 99px; background: #ececee; overflow: hidden; }
.chart-fill { height: 100%; border-radius: inherit; background: var(--chart-gradient); }
.chart-fill.red { background: var(--chart-gradient); }
.insight-list { display: grid; gap: 10px; }
.insight { border-left: 3px solid var(--red); background: #f7f7f8; padding: 13px 14px; color: var(--text); font-size: 13px; line-height: 1.7; }
.site-footer { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0 34px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }

/* 岗位答题中心 */
.practice-home { padding-top: 34px; }
.practice-launch-card { width: 100%; min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 8px; background: #fff; padding: 26px 28px; color: var(--ink); text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.practice-launch-card:hover { transform: translateY(-2px); border-color: rgba(23,26,32,.34); border-top-color: var(--red); box-shadow: 0 14px 34px rgba(23,26,32,.07); }
.practice-launch-card > span, .practice-launch-card strong, .practice-launch-card small { display: block; }
.practice-launch-card strong { margin-top: 14px; font-size: 30px; line-height: 1.2; }
.practice-launch-card small { margin-top: 9px; color: var(--muted); font-size: 13px; font-weight: 500; }
.practice-launch-card > b { flex: 0 0 auto; font-size: 13px; }
.role-dialog { width: min(420px, 100%); }
.role-modal-list { display: grid; gap: 8px; }
.role-modal-list a { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: 6px; padding: 0 15px; background: #fff; transition: border-color .16s ease, background .16s ease; }
.role-modal-list a:hover { border-color: var(--ink); background: #f7f7f8; }
.role-modal-list strong { font-size: 14px; }
.role-modal-list span { color: var(--red); font-size: 11px; font-weight: 800; }

.practice-shell { width: min(920px, 100%); margin: 0 auto; }
.practice-identity { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.mode-grid.two { grid-template-columns: repeat(2, 1fr); }
.mode-card { min-height: 118px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 17px; text-align: left; cursor: pointer; }
.mode-card:hover { border-color: var(--ink); }
.mode-card strong { font-size: 16px; }
.mode-card span { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.mode-card em { margin-top: auto; color: var(--red); font-size: 11px; font-style: normal; font-weight: 800; }
.practice-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.practice-progress { color: var(--muted); font-size: 12px; font-weight: 760; }
.question-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 26px; box-shadow: 0 12px 36px rgba(23,26,32,.05); }
.question-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.question-tag { min-height: 26px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--surface-soft); padding: 0 10px; color: var(--muted); font-size: 11px; font-weight: 760; }
.question-stem { margin: 20px 0; font-size: 23px; line-height: 1.55; font-weight: 800; }
.option-list { display: grid; gap: 10px; }
.option-button { width: 100%; min-height: 54px; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 10px 14px; color: var(--ink); text-align: left; cursor: pointer; }
.option-button:hover:not(:disabled) { border-color: var(--ink); background: #fafafa; }
.option-letter { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #f0f0f1; font-size: 12px; font-weight: 820; }
.option-button.correct { border-color: rgba(8,127,91,.45); background: rgba(8,127,91,.07); }
.option-button.wrong { border-color: rgba(232,33,39,.45); background: rgba(232,33,39,.06); }
.option-button.correct .option-letter { background: var(--green); color: #fff; }
.option-button.wrong .option-letter { background: var(--red); color: #fff; }
.answer-feedback { display: none; margin-top: 18px; border-left: 3px solid var(--ink); background: #f5f5f6; padding: 15px 16px; font-size: 13px; line-height: 1.75; }
.answer-feedback.show { display: block; }
.answer-feedback.wrong { border-left-color: var(--red); }
.answer-feedback strong { display: block; margin-bottom: 4px; }
.practice-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th, .data-table td { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; font-size: 12px; vertical-align: top; }
.data-table th { color: var(--muted); background: #f7f7f8; font-weight: 800; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table strong { font-size: 13px; }
.mini-bar { width: 90px; height: 6px; overflow: hidden; border-radius: 99px; background: #ececee; margin-top: 6px; }
.mini-bar span { display: block; height: 100%; border-radius: inherit; background: var(--chart-gradient); }
.question-admin-grid { display: grid; grid-template-columns: minmax(380px, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.role-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 40px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.field .check-chip input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; border: 1px solid var(--line); box-shadow: none; }
.question-list-item { border-top: 1px solid var(--line-soft); padding: 15px 0; }
.question-list-item:first-child { border-top: 0; padding-top: 0; }
.question-list-top { display: flex; justify-content: space-between; gap: 12px; }
.question-list-item h3 { margin: 6px 0 0; font-size: 14px; line-height: 1.55; }
.question-list-meta { color: var(--muted); font-size: 11px; }
.status-dot { color: var(--green); font-weight: 800; }
.status-dot.off { color: var(--muted); }
.detail-drawer { margin-top: 10px; border-left: 2px solid var(--red); padding: 8px 12px; background: #f7f7f8; font-size: 12px; line-height: 1.7; }
.practice-rank-kpis { grid-template-columns: repeat(4, 1fr); }
.practice-rank-table { min-width: 980px; }
.rank-number { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 50%; background: #ececee; color: var(--ink); font-size: 12px; }
.rank-number.rank-1 { background: var(--red); color: #fff; }
.rank-number.rank-2 { background: var(--ink); color: #fff; }
.rank-number.rank-3 { background: #73767c; color: #fff; }
.question-data-toolbar { display: grid; grid-template-columns: minmax(240px,1fr) minmax(180px,260px); gap: 10px; margin-bottom: 12px; }
.question-data-toolbar input, .question-data-toolbar select { min-height: 42px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 0 12px; outline: none; }
.question-data-toolbar input:focus, .question-data-toolbar select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,26,32,.06); }
.question-summary-table { min-width: 880px; table-layout: fixed; }
.question-summary-table th:first-child, .question-summary-table td:first-child { width: 47%; }
.question-summary-text { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.55; }
.pagination-bar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.pagination-bar .button { min-height: 36px; }
.question-detail-stem { border-left: 3px solid var(--red); background: #f5f5f6; padding: 14px 16px; color: var(--ink); font-size: 15px; font-weight: 800; line-height: 1.7; }
.detail-scroll-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.compact-person-row { min-height: 50px; display: flex; align-items: center; border-top: 1px solid var(--line-soft); padding: 9px 13px; }
.compact-person-row:first-child { border-top: 0; }
.compact-person-row span { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; }
.compact-person-row small { color: var(--muted); }
.compact-empty { min-height: 100px; }

@media (max-width: 900px) {
  h1 { font-size: 48px; }
  .video-title-row h1 { font-size: 42px; }
  .training-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-grid, .report-grid { grid-template-columns: 1fr; }
  .report-grid .wide { grid-column: auto; }
  .admin-nav { grid-template-columns: 1fr; }
  .admin-module-layout { grid-template-columns: 1fr; }
  .admin-module-head { align-items: flex-start; flex-direction: column; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .practice-rank-kpis { grid-template-columns: repeat(2, 1fr); }
  .question-admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { height: 60px; }
  .header-inner, .page, .site-footer { width: min(100% - 24px, 1240px); }
  .brand { font-size: 11px; }
  .brand::before { width: 20px; }
  .header-actions .nav-link:not(.keep-mobile) { display: none; }
  .nav-link, .button { min-height: 40px; padding: 0 12px; }
  .page { padding: 28px 0 42px; }
  .masthead { padding: 12px 0 30px; }
  h1 { font-size: 36px; }
  .video-title-row h1 { font-size: 34px; }
  .subline { font-size: 14px; }
  .section-head { display: block; }
  .segmented { margin-top: 14px; width: 100%; overflow-x: auto; }
  .segment { flex: 1; white-space: nowrap; }
  .training-grid { grid-template-columns: 1fr; }
  .training-title { min-height: 0; font-size: 20px; }
  .video-title-row { display: block; }
  .video-title-row .button { margin-top: 14px; }
  .video-shell { border-radius: 6px; }
  .video-shell.document-shell { min-height: 0; height: auto; }
  .document-shell iframe { min-height: 520px; height: 72vh; }
  .video-shell.document-page-shell { padding: 8px; }
  .document-pages { gap: 10px; }
  .below-video { align-items: stretch; flex-direction: column; }
  .below-video .button { width: 100%; }
  .panel { padding: 18px; }
  .admin-module-group { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .content-row { grid-template-columns: 1fr; }
  .row-actions { width: 100%; }
  .row-actions .button { flex: 1; }
  .report-toolbar { align-items: stretch; flex-direction: column; }
  .filter-group { display: grid; grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 15px; }
  .kpi-value { font-size: 26px; }
  .chart-row { grid-template-columns: 78px minmax(0,1fr) 50px; }
  .site-footer { flex-direction: column; }
  .practice-launch-card { min-height: 170px; align-items: flex-start; flex-direction: column; padding: 22px; }
  .practice-launch-card strong { font-size: 26px; }
  .mode-grid, .practice-identity { grid-template-columns: 1fr; }
  .question-card { padding: 18px; }
  .question-data-toolbar { grid-template-columns: 1fr; }
  .question-stem { font-size: 19px; }
  .practice-toolbar { align-items: flex-start; flex-direction: column; }
}

@media print {
  body { background: #fff; }
  .site-header, .report-toolbar, .site-footer { display: none !important; }
  .page { width: 100%; padding: 0; }
  .panel, .kpi { break-inside: avoid; box-shadow: none; }
}
