/* EduManager-inspired theme. Layout rules live here so both roles share one shell. */
:root {
  color-scheme: light;
  --bg: #f4f7fc; --surface: #fff; --surface2: #f0f5fc;
  --ink: #0b1b43; --muted: #617395; --line: #dfe8f4;
  --brand: #145ed8; --brand-deep: #0d49b7; --brand-ink: #fff;
  --brand-soft: #eaf2ff; --accent: #ffb45b; --accent-deep: #e4942e;
  --ok: #1cb786; --ok-deep: #0c926b; --ok-soft: #e2f8ee; --ok-ink: #087b59;
  --warn: #f3a54c; --warn-deep: #cb7527; --warn-soft: #fff2e4; --warn-ink: #a45d19;
  --bad: #e67165; --bad-deep: #bc4f49; --bad-soft: #feeeeb; --bad-ink: #a83e3b;
  --ok-fill: #11aa7a; --ok-fill-ink: #fff; --ok-edge: #0b8963;
  --warn-fill: #f3a54c; --warn-fill-ink: #38200c; --warn-edge: #ca7724;
  --bad-fill: #d95f55; --bad-fill-ink: #fff; --bad-edge: #b34942;
  --shadow: 0 8px 26px rgba(32, 73, 139, .065);
  --r-card: 14px; --r-btn: 10px; --r-in: 9px;
  --hh: 72px; --side: 258px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #101a30; --surface: #182641; --surface2: #233454;
    --ink: #f0f5ff; --muted: #a8b9d5; --line: #344666;
    --brand: #7caaff; --brand-deep: #4d83e9; --brand-ink: #091b3c;
    --brand-soft: #263e6c; --accent: #ffbe70; --accent-deep: #d99950;
    --ok: #61d7ae; --ok-deep: #3eaf88; --ok-soft: #193b37; --ok-ink: #83e2bd;
    --warn: #f2c079; --warn-deep: #c89450; --warn-soft: #433526; --warn-ink: #f7ca8e;
    --bad: #f29186; --bad-deep: #ce6960; --bad-soft: #462c37; --bad-ink: #f6a89f;
    --ok-fill: #61d7ae; --ok-fill-ink: #0a2c20; --ok-edge: #3eaf88;
    --warn-fill: #f2c079; --warn-fill-ink: #2e200b; --warn-edge: #c89450;
    --bad-fill: #f29186; --bad-fill-ink: #300c0b; --bad-edge: #ce6960;
    --shadow: 0 12px 30px rgba(0, 0, 0, .15);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101a30; --surface: #182641; --surface2: #233454;
  --ink: #f0f5ff; --muted: #a8b9d5; --line: #344666;
  --brand: #7caaff; --brand-deep: #4d83e9; --brand-ink: #091b3c;
  --brand-soft: #263e6c; --accent: #ffbe70; --accent-deep: #d99950;
  --ok: #61d7ae; --ok-deep: #3eaf88; --ok-soft: #193b37; --ok-ink: #83e2bd;
  --warn: #f2c079; --warn-deep: #c89450; --warn-soft: #433526; --warn-ink: #f7ca8e;
  --bad: #f29186; --bad-deep: #ce6960; --bad-soft: #462c37; --bad-ink: #f6a89f;
  --ok-fill: #61d7ae; --ok-fill-ink: #0a2c20; --ok-edge: #3eaf88;
  --warn-fill: #f2c079; --warn-fill-ink: #2e200b; --warn-edge: #c89450;
  --bad-fill: #f29186; --bad-fill-ink: #300c0b; --bad-edge: #ce6960;
  --shadow: 0 12px 30px rgba(0, 0, 0, .15);
}

html { scrollbar-color: #bdcbe0 transparent; }
body { background: var(--bg); color: var(--ink); }
body::before { display: none; }
h1, h2, h3 { color: var(--ink); }
h1 { font-size: clamp(29px, 3vw, 36px); letter-spacing: -.04em; }
h2 { font-size: clamp(19px, 2vw, 23px); }
p.lead, .page-head .sub { color: var(--muted); }
a { color: var(--brand); }
.wrap { max-width: 1100px; }
.wrap.wide, .r-t .wrap.wide { max-width: 1540px; }
.card, .rail-card { border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.card.flat { background: var(--surface2); }
.grid { gap: 14px; }

/* White navigation rail and a separate top toolbar, as in the reference. */
header.top { background: var(--surface); border-color: var(--line); box-shadow: 0 2px 12px rgba(35, 76, 145, .035); }
header.top .in { min-height: var(--hh); }
.brand .logo { border-radius: 11px; filter: drop-shadow(0 5px 9px rgba(17, 88, 197, .13)); }
.wordmark { color: var(--ink); font-size: 21px; letter-spacing: -.04em; }
.wordmark b { color: var(--brand); }
.who { gap: 12px; }
.avatar { width: 39px; height: 39px; background: var(--brand-soft); color: var(--brand); }
.who-name { font-weight: 700; }
.themebtn { color: var(--muted); }
nav.main { background: var(--surface); }
nav.main a { color: var(--ink); font-weight: 560; }
nav.main a:hover { background: var(--brand-soft); color: var(--brand); transform: none; }
nav.main a.on { background: linear-gradient(110deg, #3175ea, #145ed8); color: #fff; box-shadow: 0 5px 12px rgba(20, 94, 216, .16); }
nav.main a.on::before { display: none; }
nav.main a svg.i { stroke-width: 2.1; }
nav.main { scrollbar-color: #c0cce0 transparent; }
nav.main::-webkit-scrollbar-thumb { background: #c0cce0; }
@media (min-width: 1024px) {
  .r-t header.top, .r-s header.top { margin-left: 0; }
  .r-t header.top .in, .r-s header.top .in { justify-content: flex-end; }
  .r-t .brand, .r-s .brand { position: fixed; left: 0; top: 0; z-index: 35; width: var(--side); height: var(--hh); padding: 0 21px; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .r-t nav.main, .r-s nav.main { top: var(--hh); border-right: 1px solid var(--line); padding: 20px 10px; gap: 3px; }
  .r-t nav.main a, .r-s nav.main a { border-radius: 9px; padding: 10px 16px; min-height: 46px; gap: 12px; font-size: 14px; }
  .r-t nav.main a svg.i, .r-s nav.main a svg.i { width: 20px; height: 20px; }
  .r-t nav.main .sep { margin: 10px 13px; }
}
@media (max-width: 1023.98px) {
  .r-t nav.main a.on { box-shadow: inset 0 -3px 0 var(--brand-deep); }
}
@media (max-width: 767.98px) {
  .r-s nav.main a.on { box-shadow: none; }
  .r-s nav.main a { color: var(--muted); }
  .r-s nav.main a.on { color: #fff; }
}

/* Controls, status and data surfaces. */
.btn { border-color: var(--line); background: var(--surface); color: var(--ink); border-radius: var(--r-btn); font-weight: 650; box-shadow: 0 3px 10px rgba(28, 71, 137, .035); }
.btn:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); box-shadow: 0 7px 18px rgba(26, 89, 193, .1); }
.btn.primary { background: #145ed8; color: #fff; box-shadow: 0 7px 16px rgba(20, 94, 216, .17); }
.btn.primary:hover { background: #0e51c6; color: #fff; }
:root[data-theme="dark"] .btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.ghost { box-shadow: none; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--brand-soft); color: var(--brand); }
.btn.soft { background: var(--brand-soft); color: var(--brand); }
.btn.danger { border-color: var(--bad); color: var(--bad-ink); }
.badge, .chip { border-radius: 999px; background: var(--surface2); color: var(--muted); }
.badge.info, .chip.forming { background: var(--brand-soft); color: var(--brand); }
.badge.ok, .chip.mastered { background: var(--ok-soft); color: var(--ok-ink); }
.badge.warn { background: var(--warn-soft); color: var(--warn-ink); }
.badge.bad, .chip.support { background: var(--bad-soft); color: var(--bad-ink); }
.progressbar, .bar { background: var(--line); }
.progressbar > i, .bar.neutral > i { background: var(--brand); }
input[type=text], input[type=password], input[type=number], input[type=datetime-local], select, textarea { border-color: var(--line); border-radius: var(--r-in); background: var(--surface); }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.note, .feedback, .msgs li { border-radius: 10px; }
.ind, .sub-row { border-top-width: 1px; }
.ind-ic, .story-flow .st, .tile.mastered, .tile.forming, .tile.support { box-shadow: none; }
.story, .story-flow .st, .tile { border-width: 1px; }
.skillcard { border-top-width: 4px; }
.skillnav a, .skillnav button, .skillnav-current { border-width: 1px; border-radius: 10px; box-shadow: none; }
.skillnav a.on, .skillnav-current.on { box-shadow: 0 5px 12px color-mix(in srgb, var(--sk) 18%, transparent); }
.lesson-hero { border-bottom: 0; border-radius: 14px; }
.qbar { background: var(--line); }
.qbar > i { background: var(--brand); }
.pill, .choice, .step { border-color: var(--line); }
.pill.cur, .choice.sel, .step.next { border-color: var(--brand); background: var(--brand-soft); }
.choice.right { border-color: var(--ok); }
.choice.miss { border-color: var(--warn); }
.qfoot { box-shadow: 0 -8px 22px rgba(26, 71, 139, .07); }

/* Teacher overview and all tabular administration screens. */
.r-t .page-head { margin: 29px 0 24px; }
.r-t .page-head h1 { margin: 0 0 6px; }
.eyebrow { display: flex; gap: 9px; align-items: center; margin-bottom: 11px; color: var(--muted); font-size: 13px; font-weight: 600; }
.eyebrow span { color: var(--brand); font-size: 18px; line-height: 1; }
.r-t .card { border-radius: var(--r-card); }
.r-t .card.tablewrap.sticky-col { padding: 0; overflow-x: auto; }
.r-t .card.tablewrap.sticky-col table { border-collapse: separate; border-spacing: 0; min-width: 1160px; }
.r-t .card.tablewrap.sticky-col th:first-child, .r-t .card.tablewrap.sticky-col td:first-child { left: 0; min-width: 220px; background: var(--surface); z-index: 2; }
.r-t .card.tablewrap.sticky-col th:first-child { background: var(--surface2); z-index: 3; }
.r-t .card.tablewrap.sticky-col tbody tr:hover td:first-child { background: color-mix(in srgb, var(--brand-soft) 35%, var(--surface)); }
.r-t th { background: var(--surface2); color: #53698d; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: .055em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .r-t th { color: var(--muted); } }
:root[data-theme="dark"] .r-t th { color: var(--muted); }
.r-t td { border-color: var(--line); }
.r-t tbody tr:hover td { background: color-mix(in srgb, var(--brand-soft) 35%, var(--surface)); }
.r-t .todo { min-height: 100px; border-radius: 12px; box-shadow: var(--shadow); }
.r-t .todo .ic, .r-t .stat .ic { border-radius: 10px; }
.r-t .todo:hover { box-shadow: 0 12px 28px rgba(25, 80, 160, .12); }
.r-t .stat { min-height: 100px; }
.r-t .stat .v { color: var(--ink); }
.r-t .filters { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; margin: 8px 0 0; gap: 4px; }
.r-t .filters .btn { border-color: transparent; background: transparent; color: var(--muted); box-shadow: none; border-radius: 8px; }
.r-t .filters .btn.primary { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); }
.r-t .filters .btn:hover { color: var(--brand); }
.r-t .filters .muted { margin-left: auto; padding: 0 8px; }
.decision { background: var(--brand-soft); }

/* Student pages keep the same blue visual language with larger touch targets. */
.hero { border-radius: 18px; background: linear-gradient(115deg, #0d4ba9, #146be0 70%, #448af2); }
.hero h1 { color: #fff; }
.hero p { color: #e8f1ff; }
.hero::after { border-color: rgba(255,255,255,.16); }
.stat-pill { border-radius: 12px; }
.stat-pill .ico { background: var(--brand-soft); color: var(--brand); }
.pathhead .line { background: var(--line); }
.pnode.current .pcore { box-shadow: 0 0 0 7px var(--brand-soft), 0 12px 22px rgba(20, 94, 216, .18); }
.pconn.done path { stroke: var(--brand); }
.rail-card, .task, .assign { border-radius: 12px; }
.task .num { background: var(--brand); color: var(--brand-ink); }
.auth-hero { background: linear-gradient(145deg, #0b419b, #155fd0 62%, #3989ed); }
.auth-hero h1 b { color: #cfe1ff; }
.auth-hero p { color: #e3efff; }
.auth-eyebrow, .auth-highlights span { color: #f1f6ff; }

@media (max-width: 640px) {
  .r-t .filters { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
  .r-t .filters .btn { white-space: nowrap; flex: none; }
  .r-t .filters .muted { display: none; }
  .r-t .card.tablewrap.sticky-col { padding: 0; }
  .page-head { gap: 16px; }
  .hero { border-radius: 14px; }
}

/* Reference layout: teacher progress dashboard. */
.top-search { display: flex; align-items: center; gap: 11px; width: min(480px, 42vw); min-height: 44px; margin: 0 auto 0 8px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); }
.top-search .i { width: 19px; height: 19px; }
.top-search input[type=search] { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; }
.top-search input[type=search]::placeholder { color: #8290aa; }
.top-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.top-alert { position: relative; display: grid; place-items: center; width: 42px; height: 42px; margin-left: auto; border-radius: 9px; color: var(--ink); }
.top-alert:hover { background: var(--brand-soft); color: var(--brand); }
.top-alert .i { width: 22px; height: 22px; }
.r-t .who { border-left: 1px solid var(--line); padding-left: 14px; margin-left: 1px; }
@media (min-width: 1024px) { .r-t header.top .in { justify-content: flex-start; } }
@media (max-width: 1023.98px) { .top-search { width: auto; flex: 1; } .top-alert { margin-left: 0; } }
@media (max-width: 767.98px) { .top-search { display: none; } .top-alert { width: 36px; } .r-t .who { padding-left: 8px; } }

.overview-page { max-width: none; }
.overview-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 24px 0 21px; }
.overview-heading h1 { margin: 5px 0 4px; font-size: clamp(28px, 2.4vw, 36px); }
.overview-heading p { margin: 0; color: var(--muted); font-size: 15px; }
.overview-heading .eyebrow { margin-bottom: 8px; }
.overview-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.overview-actions .btn { white-space: nowrap; min-height: 44px; padding: 9px 14px; font-size: 14px; }
.overview-actions .btn .i { width: 18px; height: 18px; }
.overview-filter-menu { position: relative; }
.overview-filter-menu > summary { list-style: none; cursor: pointer; }
.overview-filter-menu > summary::-webkit-details-marker { display: none; }
.filter-popover { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; width: 225px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.filter-popover a { display: block; padding: 9px 11px; border-radius: 7px; color: var(--ink); font-size: 13px; text-decoration: none; }
.filter-popover a:hover { color: var(--brand); background: var(--brand-soft); }
.filter-popover a:last-child { border-top: 1px solid var(--line); margin-top: 5px; color: var(--muted); }
.overview-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.metric-card { display: flex; align-items: flex-start; gap: 12px; min-width: 0; min-height: 110px; padding: 17px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.metric-icon { display: grid; place-items: center; flex: none; width: 45px; height: 45px; border-radius: 10px; background: #deebff; color: #125bd2; }
.metric-icon .i { width: 23px; height: 23px; }
.metric-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.metric-label { color: #486a9f; font-size: 12.5px; font-weight: 650; line-height: 1.3; white-space: nowrap; }
.metric-body strong { color: var(--ink); font-size: 29px; line-height: 1.2; letter-spacing: -.04em; }
.metric-foot { color: var(--muted); font-size: 11px; line-height: 1.3; }
.metric-value { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; }
.metric-value span { color: var(--muted); font-size: 12px; }
.metric-track { overflow: hidden; width: 100%; height: 6px; margin-top: 5px; background: var(--line); border-radius: 9px; }
.metric-track i { display: block; height: 100%; background: #1866e9; border-radius: inherit; }
.metric-unconsented .metric-icon { color: #de640c; background: #fff0e2; }
.metric-unconsented .metric-track i { background: #ec6c16; }
.metric-started .metric-icon { color: #0ca974; background: #def8eb; }
.metric-started .metric-track i { background: #22b985; }
.metric-today .metric-icon { color: #673be2; background: #eee8ff; }
.metric-today .metric-track i { background: #7647ed; }

.overview-list { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); overflow: visible; }
.overview-tabs { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.overview-tabs nav { display: flex; align-items: center; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.overview-tabs nav a { display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 40px; padding: 8px 10px; border-radius: 8px; color: #486082; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.overview-tabs nav a:hover { background: var(--brand-soft); color: var(--brand); }
.overview-tabs nav a.on { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); }
.overview-tabs nav .i { width: 17px; height: 17px; }
.overview-search { display: flex; align-items: center; gap: 8px; width: min(270px, 25vw); min-height: 38px; margin: 0; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); flex: none; }
.overview-search .i { width: 17px; height: 17px; }
.overview-search input[type=search] { width: 100%; min-width: 0; border: 0; outline: 0; padding: 0; background: transparent; color: var(--ink); font: inherit; font-size: 12px; }
.overview-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.overview-table { overflow-x: auto; border: 0; border-radius: 0; scrollbar-width: thin; }
.overview-table table { width: 100%; min-width: 1190px; border-collapse: separate; border-spacing: 0; table-layout: auto; font-size: 12.5px; }
.overview-table th, .overview-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); border-right: 1px solid color-mix(in srgb, var(--line) 65%, transparent); vertical-align: middle; white-space: nowrap; }
.overview-table th:last-child, .overview-table td:last-child { border-right: 0; }
.overview-table th { background: #f3f6fb; color: var(--ink); font-size: 11.5px; font-weight: 700; letter-spacing: 0; text-transform: none; text-align: left; }
.overview-table th[data-sort-index] { cursor: pointer; }
.overview-table th[data-sort-index]:hover { color: var(--brand); }
.overview-table th.progress-group, .overview-table thead tr:nth-child(2) th { text-align: center; }
.overview-table thead tr:nth-child(2) th:first-child { position: static; min-width: 0; box-shadow: none; z-index: auto; }
.overview-table td { height: 55px; color: var(--ink); }
.overview-table tbody tr[hidden], .overview-table tr[hidden] { display: none !important; }
.overview-table tbody tr:last-child td { border-bottom: 0; }
.overview-table.sticky-col thead tr:first-child th:first-child, .overview-table.sticky-col tbody td:first-child { position: sticky; left: 0; z-index: 2; min-width: 205px; background: var(--surface); box-shadow: 8px 0 13px -13px rgba(22, 52, 102, .5); }
.overview-table.sticky-col thead tr:first-child th:first-child { z-index: 4; background: #f3f6fb; }
.overview-table tbody tr:hover td:first-child { background: var(--brand-soft); }
.student-cell { display: flex; align-items: center; gap: 10px; min-width: 185px; }
.student-avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #dde7fa; color: #3b5688; font-weight: 700; }
.overview-table tbody tr:nth-child(4n+2) .student-avatar { background: #e9e2dd; color: #6d5a54; }
.overview-table tbody tr:nth-child(4n+3) .student-avatar { background: #e4e9ea; color: #536373; }
.overview-table tbody tr:nth-child(4n+4) .student-avatar { background: #e7e2f8; color: #6b54a5; }
.student-cell a { display: block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-weight: 700; text-decoration: none; }
.student-cell a:hover { color: var(--brand); text-decoration: underline; }
.student-cell small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.status-pill, .skill-status { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 9px; border-radius: 999px; font-size: 11px; line-height: 1.2; font-weight: 650; white-space: nowrap; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.unconsented { color: #d85e10; background: #fff0e3; }
.status-pill.consented { color: #0d9b6e; background: #e5f8ee; }
.status-pill.test { color: #0d9b6e; background: #e5f8ee; }
.skill-status { color: #697995; background: #f2f5f9; }
.skill-status.mastered { color: var(--ok-ink); background: var(--ok-soft); }
.skill-status.forming { color: var(--brand); background: var(--brand-soft); }
.skill-status.support { color: var(--bad-ink); background: var(--bad-soft); }
.attempt-count { font-weight: 650; }
.last-update { color: var(--muted) !important; }
.table-actions { display: flex; align-items: center; gap: 5px; }
.table-actions > a, .table-actions summary { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); cursor: pointer; }
.table-actions .i { width: 16px; height: 16px; }
.table-actions > a:hover, .table-actions summary:hover { border-color: var(--brand); color: var(--brand); }
.table-actions details { position: relative; }
.table-actions summary { list-style: none; }
.table-actions summary::-webkit-details-marker { display: none; }
.table-actions details > div { position: absolute; z-index: 10; right: 0; top: calc(100% + 5px); min-width: 130px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.table-actions details > div a { display: block; padding: 7px 8px; border-radius: 5px; text-decoration: none; color: var(--ink); }
.table-actions details > div a:hover { background: var(--brand-soft); color: var(--brand); }
.overview-table-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 58px; padding: 8px 18px; border-top: 1px solid var(--line); color: var(--ink); font-size: 12.5px; }
.pager-controls { display: flex; align-items: center; gap: 9px; }
.pager-controls label { margin: 0; }
.pager-controls select { width: auto; min-height: 34px; padding: 5px 25px 5px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font-size: 12px; }
.pager { display: flex; gap: 4px; }
.pager button { min-width: 32px; height: 34px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--brand); font: inherit; cursor: pointer; }
.pager button.on { background: #145ed8; color: #fff; border-color: #145ed8; }
.pager button:disabled { color: var(--muted); opacity: .45; cursor: default; }
.overview-secondary { margin-top: 30px; }
.overview-secondary .section-title { margin: 26px 0 14px; }
.overview-secondary .section-title h2 { margin: 0; }
.overview-secondary .todo .t, .overview-secondary .todo .d { display: block; }
.overview-secondary > p { margin-top: 20px; }

@media (max-width: 1250px) { .overview-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); } .overview-heading { align-items: flex-start; } }
@media (max-width: 900px) { .overview-heading { flex-direction: column; } .overview-actions { width: 100%; } .overview-tabs { flex-wrap: wrap; } .overview-search { width: 100%; } }
@media (max-width: 600px) { .overview-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .overview-actions .btn { flex: 1; justify-content: center; } .overview-filter-menu { flex: 1; } .overview-filter-menu > summary { justify-content: center; } .overview-list { margin: 0 -6px; } .overview-table-footer { flex-direction: column; align-items: stretch; } .pager-controls { justify-content: space-between; } }

/* Teacher navigation follows the compact, six-item hierarchy in the reference. */
.r-t nav.main .nav-more > summary { display: inline-flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 16px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 600; list-style: none; cursor: pointer; }
.r-t nav.main .nav-more > summary::-webkit-details-marker { display: none; }
.r-t nav.main .nav-more > summary:hover { color: var(--brand); background: var(--brand-soft); }
.r-t nav.main .nav-more > summary .i { width: 18px; height: 18px; }
.r-t nav.main .nav-more > summary .nav-chevron { width: 14px; height: 14px; margin-left: auto; transition: transform .2s; }
.r-t nav.main .nav-more[open] > summary .nav-chevron { transform: rotate(90deg); }
.r-t nav.main .nav-more-links { display: grid; gap: 2px; padding-top: 3px; }
.r-t nav.main .nav-more-links a { min-height: 38px; padding: 7px 12px 7px 25px; font-size: 12.5px; }
.r-t nav.main .nav-more-links a .i { width: 17px; height: 17px; }
@media (min-width: 1024px) {
  .r-t nav.main { padding-top: 20px; }
  .r-t nav.main > a:not(.nav-bottom) { min-height: 49px; font-size: 15px; }
  .r-t nav.main .nav-more { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
  .r-t nav.main .nav-bottom { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); border-radius: 0; font-size: 13px; }
}
@media (max-width: 1023.98px) {
  .r-t nav.main .nav-more { flex: none; position: relative; }
  .r-t nav.main .nav-more > summary { min-height: 45px; white-space: nowrap; }
  .r-t nav.main .nav-more-links { position: fixed; top: calc(var(--hh) + 49px); right: 10px; z-index: 60; width: 205px; padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); }
  .r-t nav.main .nav-more-links a { padding-left: 10px; }
}
