/* Responder Path: design foundation (matches the Pulse path logo).
   Navy navigation frame, white workspace, teal for actions, orange for the next step, red only for
   warnings and errors. Inter (self-hosted, OFL) for all text. */
@font-face { font-family:"Inter"; src:url("/fonts/inter-latin.woff2") format("woff2"); font-weight:100 900; font-style:normal; font-display:swap; }
:root {
  --bg:#f3f5f8; --surface:#fff; --surface-2:#eef1f5; --surface-3:#e4e9ef;
  --line:#dce2e9; --line-2:#c9d2dc;
  --ink:#0e1a2b; --ink-2:#344256; --muted:#5d6a7a;
  /* Brand: navy frame, teal for actions, orange for "your next step", red only for warnings. */
  --primary:#0b6e70; --primary-hover:#085a5c; --primary-soft:#e2f3f2;
  --next:#f2a024; --next-hover:#e08f12; --next-ink:#0e1a2b; --next-soft:#fff1d9;
  --brand:#14b3b0;
  --danger:#b42318; --danger-soft:#fdeceb;
  --ok:#12733e; --ok-soft:#e6f4ec;
  --warn:#8a5300; --warn-soft:#fff2da;
  --nav:#0e1a2b; --nav-ink:#b9c4d2; --nav-hover:#1a2a40; --nav-active:#24375a;
  --accent:var(--primary); --accent-ink:#fff; --card:var(--surface);
  --radius:12px; --radius-sm:8px;
  --shadow:0 1px 2px rgb(14 26 43 / .05), 0 2px 6px rgb(14 26 43 / .04);
  --focus:0 0 0 3px rgb(11 110 112 / .3);
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; font:15px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color:var(--ink); background:var(--bg);
  font-feature-settings:"cv11", "ss01"; -webkit-font-smoothing:antialiased; }
h1 { font-size:26px; line-height:1.25; font-weight:700; letter-spacing:-.015em; margin:4px 0 6px; }
h2 { font-size:17px; font-weight:650; letter-spacing:-.005em; margin:28px 0 10px; }
h3 { font-size:15px; font-weight:650; }
a { color:var(--primary); text-underline-offset:2px; }
code { font-size:12.5px; background:var(--surface-2); padding:1px 5px; border-radius:4px; word-break:break-all; }
.muted { color:var(--muted); } .small { font-size:13px; }
.eyebrow { text-transform:uppercase; letter-spacing:.07em; font-size:11.5px; font-weight:600; color:var(--muted); margin:10px 0 0; }
.footnote { margin-top:32px; }
:focus-visible { outline:none; box-shadow:var(--focus); border-radius:6px; }

/* ---------- app frame ---------- */
.banner { background:#fff6dc; color:#5c4300; text-align:center; font-size:13px; padding:5px 16px; border-bottom:1px solid #f0dca0; }
.shell { display:grid; grid-template-columns:252px minmax(0, 1fr); min-height:100vh; }
.shell.bare { grid-template-columns:minmax(0, 1fr); }
.side { background:var(--nav); color:var(--nav-ink); position:sticky; top:0; height:100vh; overflow-y:auto; padding:16px 12px 14px; display:flex; flex-direction:column; gap:2px; }
.side .mark { color:#fff; padding:4px 10px 14px; }
.side .school { margin:4px 0 12px; padding:10px; border-radius:var(--radius-sm); background:var(--nav-hover); color:#fff; font-size:13.5px; font-weight:600; line-height:1.3; }
.side .school small { display:block; color:var(--nav-ink); font-weight:500; font-size:12px; margin-top:2px; }
.side .school select { width:100%; margin-top:6px; background:var(--nav); color:#fff; border:1px solid #33455f; font-size:13px; }
.side .sect { font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:#7d8ba0; margin:14px 10px 4px; font-weight:600; }
.nav-item { display:flex; align-items:center; gap:10px; width:100%; padding:8px 10px; border:0; border-radius:var(--radius-sm); background:none; color:var(--nav-ink);
  font:inherit; font-size:14px; font-weight:500; text-align:left; cursor:pointer; text-decoration:none; }
.nav-item:hover { background:var(--nav-hover); color:#fff; }
.nav-item.on { background:var(--nav-active); color:#fff; }
.nav-item .ic { flex:none; opacity:.9; }
.nav-item span.lbl { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.side .grow { flex:1; }
.side .me { border-top:1px solid #22324a; margin-top:10px; padding:12px 10px 2px; font-size:13px; }
.side .me b { display:block; color:#fff; font-weight:600; }
.side .me button { margin-top:6px; color:var(--nav-ink); }
.top { display:flex; align-items:center; gap:12px; min-height:58px; padding:0 28px; background:var(--surface); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:5; }
.top .crumb { font-size:13.5px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.top .who { margin-left:auto; color:var(--muted); font-size:13.5px; display:flex; gap:12px; align-items:center; }
.menu-btn { display:none; }
main { max-width:1120px; padding:26px 28px 72px; }
.shell.bare main { margin:0 auto; }
.mark { display:inline-flex; align-items:center; gap:9px; font-size:17px; letter-spacing:-.01em; color:var(--ink); font-weight:450; white-space:nowrap; }
.mark b { font-weight:750; }
.mark svg { flex:none; }
@media (max-width:900px) {
  .shell { grid-template-columns:minmax(0, 1fr); }
  .side { position:fixed; inset:0 auto 0 0; width:270px; z-index:20; transform:translateX(-100%); transition:transform .18s ease; box-shadow:0 0 0 100vmax transparent; }
  .side.open { transform:none; }
  .scrim { position:fixed; inset:0; z-index:15; background:rgb(14 26 43 / .45); }
  .menu-btn { display:inline-flex; }
  .top { padding:0 14px; }
  main { padding:20px 16px 64px; }
}

/* ---------- controls ---------- */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; font:inherit; font-size:14px; font-weight:550; min-height:38px; padding:0 15px;
  border-radius:var(--radius-sm); border:1px solid var(--line-2); background:var(--surface); color:var(--ink); cursor:pointer; text-decoration:none; white-space:nowrap; }
.btn:hover:not(:disabled) { background:var(--surface-2); }
.btn.primary { background:var(--primary); border-color:var(--primary); color:#fff; }
.btn.primary:hover:not(:disabled) { background:var(--primary-hover); }
.btn.next { background:var(--next); border-color:var(--next); color:var(--next-ink); font-weight:650; }
.btn.next:hover:not(:disabled) { background:var(--next-hover); border-color:var(--next-hover); }
.btn:disabled { opacity:.5; cursor:not-allowed; }
.icon-btn { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:var(--radius-sm); border:1px solid var(--line); background:var(--surface); color:var(--ink); cursor:pointer; }
button.link { background:none; border:0; color:var(--primary); cursor:pointer; font:inherit; font-weight:500; padding:0; }
button.link:hover:not(:disabled) { text-decoration:underline; text-underline-offset:2px; }
button.link:disabled { color:var(--muted); cursor:not-allowed; }
#back, button.link.back { font-size:13.5px; color:var(--muted); font-weight:500; }
#back:hover { color:var(--ink); }
input, select, textarea { font:inherit; color:var(--ink); }
select { padding:6px 10px; border:1px solid var(--line-2); border-radius:var(--radius-sm); background:var(--surface); }
.row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.spread { justify-content:space-between; }
.grow { flex:1; }
.stack { display:flex; flex-direction:column; gap:12px; }
.stack label, .cols label { display:flex; flex-direction:column; gap:5px; font-size:13.5px; font-weight:550; color:var(--ink-2); }
.stack input:not([type=checkbox]):not([type=radio]):not([type=file]), .cols input, .cols select, .bp select, .bp input, .stack select, .stack textarea, textarea {
  font:inherit; font-weight:400; color:var(--ink); padding:8px 11px; border:1px solid var(--line-2); border-radius:var(--radius-sm); background:var(--surface); }
textarea { width:100%; font-size:15px; line-height:1.5; }
input:focus, select:focus, textarea:focus { outline:none; border-color:var(--primary); box-shadow:var(--focus); }
.bp input { width:80px; }
label.check { flex-direction:row !important; align-items:flex-start; gap:9px; color:var(--ink); font-weight:450 !important; }
label.check input { margin-top:4px; accent-color:var(--primary); }
.cols { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:14px; }
.panel, .card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:18px 20px; }
.panel + .panel, form.panel { margin-top:14px; }
.panel > h2:first-child { margin-top:0; }
.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:14px; }
button.card { text-align:left; font:inherit; color:inherit; cursor:pointer; transition:border-color .12s, box-shadow .12s; }
button.card:hover { border-color:var(--line-2); box-shadow:0 2px 10px rgb(14 26 43 / .08); }
.name { font-weight:650; } .title { color:var(--muted); font-size:13.5px; }
.chip { display:inline-flex; align-items:center; gap:4px; font-size:12px; font-weight:600; padding:2px 9px; border-radius:99px; background:var(--surface-2); color:var(--ink-2); margin:4px 4px 0 0; line-height:1.5; }
.chip.ok { background:var(--ok-soft); color:var(--ok); } .chip.warn { background:var(--warn-soft); color:var(--warn); }
.badge { display:inline-block; min-width:20px; padding:0 6px; border-radius:99px; background:var(--next); color:var(--next-ink); font-size:11.5px; font-weight:700; text-align:center; line-height:20px; }
table { width:100%; border-collapse:separate; border-spacing:0; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; font-size:14px; box-shadow:var(--shadow); }
th, td { text-align:left; padding:11px 14px; border-bottom:1px solid var(--line); vertical-align:top; }
tbody tr:last-child td { border-bottom:0; }
th { background:var(--surface-2); font-weight:600; font-size:12.5px; color:var(--ink-2); }
.state { font-size:12px; font-weight:650; } .state.approved { color:var(--ok); }
.error { color:var(--danger); min-height:1em; margin:0; font-size:14px; }
.ok { color:var(--ok); } .bad { color:var(--danger); font-weight:600; }
.notice { background:var(--warn-soft); border:1px solid #f1d9a6; padding:11px 14px; border-radius:var(--radius-sm); color:#4d3a12; }
.switch { float:right; }
@media (max-width:600px) { th:nth-child(3), td:nth-child(3) { display:none; } }

/* ---------- page parts ---------- */
.page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:6px; }
.tabs { display:flex; gap:4px; border-bottom:1px solid var(--line); margin:14px 0 18px; overflow-x:auto; }
.tabs button { background:none; border:0; border-bottom:2px solid transparent; padding:10px 12px; font:inherit; font-size:14px; font-weight:550; color:var(--muted); cursor:pointer; white-space:nowrap; }
.tabs button.on { color:var(--ink); border-bottom-color:var(--primary); }
.tabs button:hover { color:var(--ink); }
.stat { display:flex; flex-direction:column; gap:2px; }
.stat b { font-size:24px; font-weight:700; letter-spacing:-.01em; }
.stat span { font-size:13px; color:var(--muted); }
.todo { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.todo:last-child { border-bottom:0; }
.todo .ic-wrap { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:var(--primary-soft); color:var(--primary); flex:none; }
.todo .ic-wrap.warn { background:var(--warn-soft); color:var(--warn); } .todo .ic-wrap.next { background:var(--next-soft); color:#9a5b00; } .todo .ic-wrap.ok { background:var(--ok-soft); color:var(--ok); }
.todo .t { flex:1; min-width:0; } .todo .t b { display:block; font-weight:600; } .todo .t span { font-size:13px; color:var(--muted); }
.progress { height:6px; background:var(--surface-3); border-radius:99px; overflow:hidden; } .progress span { display:block; height:100%; background:var(--next); border-radius:99px; }
.course-card { display:flex; flex-direction:column; gap:10px; }
.course-card .code { font-size:12px; font-weight:600; color:var(--muted); letter-spacing:.03em; }
.course-card h3 { margin:0; font-size:16px; }
.dash { display:grid; grid-template-columns:minmax(0, 2fr) minmax(260px, 1fr); gap:18px; align-items:start; }
@media (max-width:900px) { .dash { grid-template-columns:minmax(0, 1fr); } }
.empty { text-align:center; padding:28px 16px; color:var(--muted); }

/* ---------- sign-in (persona picker) ---------- */
.landing { max-width:980px; margin:0 auto; }
.landing h1 { font-size:30px; }
.persona .name { font-size:15px; }

/* ---------- orientation & receipt ---------- */
.orient { max-width:680px; margin:0 auto; }
.facts { padding-left:20px; line-height:1.8; }
.receipt { display:flex; gap:32px; margin:20px 0; padding:18px 20px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.receipt div { display:flex; flex-direction:column; }
.receipt b { font-size:20px; letter-spacing:.03em; }
.score { font-size:28px; font-weight:700; }
.timeline tr.integrity td { background:#fff7ec; }
.timeline.only-integrity tr.routine { display:none; }

/* ---------- certification-style test screen ---------- */
body.exam-mode .top, body.exam-mode .banner, body.exam-mode .side { display:none; }
body.exam-mode .shell { grid-template-columns:minmax(0, 1fr); }
body.exam-mode main { max-width:none; padding:0; }
body.exam-mode { background:#fff; user-select:none; -webkit-user-select:none; }
body.exam-mode textarea, body.exam-mode input { user-select:text; -webkit-user-select:text; }
.exam { min-height:100vh; display:flex; flex-direction:column; position:relative; }
.exam-bar { display:flex; align-items:center; gap:20px; padding:10px 24px; background:#1f2d3a; color:#fff; font-size:15px; position:sticky; top:0; z-index:3; }
.exam-title { font-weight:600; flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.exam-pos { color:#cfd9e2; }
.exam-save { font-size:13px; color:#cfd9e2; min-width:120px; text-align:right; }
.exam-save.ok { color:#9ee2b3; } .exam-save.pending { color:#ffe08a; } .exam-save.bad { color:#ffb4ae; font-weight:600; }
.exam-timer { font-variant-numeric:tabular-nums; font-weight:700; font-size:18px; background:#2c3e50; padding:3px 10px; border-radius:4px; min-width:76px; text-align:center; }
.exam-timer.low { background:#b4231f; }
.exam-body { flex:1; display:flex; justify-content:center; padding:40px 20px; position:relative; z-index:1; }
.exam-item { width:100%; max-width:760px; }
.stem { font-size:20px; line-height:1.55; margin:0 0 24px; }
.hint { color:var(--muted); margin:-12px 0 16px; }
.opts { display:flex; flex-direction:column; gap:10px; }
.opt { display:flex; align-items:flex-start; gap:12px; padding:14px 16px; border:1px solid var(--line); border-radius:8px; cursor:pointer; background:#fff; font-size:17px; }
.opt:hover { border-color:var(--line-2); }
.opt:has(input:checked) { border-color:#1f2d3a; background:#eef3f8; box-shadow:inset 3px 0 0 #1f2d3a; }
.opt input { margin-top:5px; }
.opt-label { font-weight:700; width:18px; }
.num input { font-size:20px; width:180px; padding:8px 10px; }
textarea { width:100%; font:inherit; font-size:16px; padding:12px; border:1px solid var(--line); border-radius:8px; }
.qnav { display:flex; flex-wrap:wrap; gap:6px; justify-content:center; padding:10px 20px 16px; position:relative; z-index:3; }
.qnav button { width:38px; height:38px; border-radius:6px; border:1px solid var(--line); background:#fff; font:inherit; font-size:14px; cursor:pointer; }
.qnav button.done { background:#e8eef5; border-color:var(--line-2); }
.qnav button.on { border:2px solid #1f2d3a; font-weight:700; }
.exam-foot { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:14px 24px; border-top:1px solid var(--line); background:#fafbfc; position:sticky; bottom:0; z-index:3; }
.exam-foot .btn { min-width:130px; font-size:16px; padding:10px 18px; }
.confirm { margin-top:24px; padding:16px; border:2px solid #1f2d3a; border-radius:8px; background:#fff; }
.watermark { position:fixed; inset:0; pointer-events:none; z-index:2; display:grid; grid-template-columns:repeat(4, 1fr); grid-auto-rows:120px; overflow:hidden; opacity:.07; }
.watermark span { transform:rotate(-24deg); white-space:nowrap; font-size:18px; font-weight:600; align-self:center; justify-self:center; color:#000; }
.flash { position:fixed; bottom:80px; left:50%; transform:translateX(-50%); background:#1f2d3a; color:#fff; padding:10px 16px; border-radius:6px; z-index:5; font-size:14px; }
@media (max-width:600px) {
  .exam-bar { gap:10px; padding:8px 12px; font-size:13px; flex-wrap:wrap; }
  .exam-title { flex-basis:100%; }
  .exam-save { min-width:0; }
  .stem { font-size:18px; }
  .exam-foot .muted { display:none; }
  .watermark { grid-template-columns:repeat(2, 1fr); }
}

/* ---------- question bank ---------- */
.filters { margin:16px 0 10px; } .filters label { display:flex; gap:8px; align-items:center; font-size:14px; }
.filters .grow { flex:1; min-width:200px; } .filters input { flex:1; font:inherit; padding:5px 10px; border:1px solid var(--line); border-radius:6px; }
a.btn { text-decoration:none; display:inline-block; }
table.clickable tbody tr[data-q] { cursor:pointer; }
table.clickable tbody tr[data-q]:hover td, table.clickable tbody tr[data-q]:focus td { background:#f3f6f9; }
td.clip { max-width:420px; }
.steps { display:flex; gap:8px; list-style:none; padding:0; margin:8px 0 18px; counter-reset:step; flex-wrap:wrap; }
.steps li { counter-increment:step; font-size:13px; color:var(--muted); padding:4px 12px 4px 8px; border-radius:99px; background:var(--surface-2); }
.steps li::before { content:counter(step); display:inline-block; width:18px; height:18px; line-height:18px; text-align:center; border-radius:50%; background:#fff; margin-right:6px; font-size:11px; }
.steps li.on { background:var(--ink); color:#fff; } .steps li.on::before { color:var(--ink); }
.tiles { display:flex; gap:10px; flex-wrap:wrap; margin:14px 0; }
.tile { display:flex; flex-direction:column; min-width:110px; padding:10px 14px; background:var(--card); border:1px solid var(--line); border-radius:8px; font:inherit; color:inherit; text-align:left; }
button.tile { cursor:pointer; } button.tile.on { border-color:var(--ink); box-shadow:inset 0 -3px 0 var(--ink); }
.tile b { font-size:22px; } .tile span { font-size:13px; color:var(--muted); }
.pre { white-space:pre-wrap; }
.rs { font-size:12px; font-weight:600; padding:1px 8px; border-radius:99px; white-space:nowrap; }
.rs.new { background:#e6f4ea; color:var(--ok); } .rs.changed { background:#e5eefa; color:#2b5b8a; }
.rs.unchanged { background:var(--surface-2); color:var(--muted); } .rs.error { background:var(--danger-soft); color:var(--danger); }
.preview tr.st-error td { background:#fff8f7; }
.opts-mini { margin:6px 0 0; padding-left:0; list-style:none; font-size:13px; color:var(--muted); }
.opts-mini li.key, .opts-view li.key { color:var(--ok); font-weight:600; }
.errs { margin:0; padding-left:18px; color:var(--danger); font-size:13px; }
fieldset { border:0; padding:0; margin:0; } legend { font-weight:600; font-size:14px; margin-bottom:4px; }
.stem-view { font-size:18px; margin:6px 0 14px; }
.opts-view { list-style:none; padding:0; display:flex; flex-direction:column; gap:8px; }
.opts-view li { display:flex; gap:10px; padding:8px 12px; border:1px solid var(--line); border-radius:6px; font-weight:400; color:var(--ink); }
.opts-view li.key { border-color:var(--ok); background:#f2faf4; }
.opts-view li.key > div { color:var(--ink); font-weight:400; }
table.kv th { width:180px; background:var(--surface-2); }
@media (max-width:600px) { .preview th:nth-child(5), .preview td:nth-child(5) { display:none; } }

/* ---------- grading ---------- */
.spread { justify-content:space-between; }
.answer { background:var(--surface-2); border:1px solid var(--line); border-radius:6px; padding:10px 12px; }
.grade-form textarea { font-size:15px; }
.grade-form .cols input { width:140px; }
table + .panel, table + form.panel { margin-top:16px; }
#act .cols input { max-width:160px; } .panel > h2:first-child { margin-top:0; }

/* ---------- review policy & student review ---------- */
.policy { margin:14px 0 6px; } .policy label { display:flex; gap:8px; align-items:center; font-size:14px; }
.policy input { flex:1; min-width:180px; font:inherit; padding:6px 10px; border:1px solid var(--line); border-radius:6px; }
.review { list-style:none; padding:0; display:flex; flex-direction:column; gap:12px; text-align:left; }
.rv-opts { list-style:none; padding:0; display:flex; flex-direction:column; gap:6px; }
.rv-opts li { display:flex; gap:10px; padding:8px 12px; border:1px solid var(--line); border-radius:6px; }
.rv-opts li.key { border-color:var(--ok); background:#f2faf4; }
.rv-opts li.mine:not(.key) { border-color:#e2a29f; background:#fff6f5; }

/* ---------- analytics ---------- */
.hist-fig { margin:0; }
.hist { display:flex; align-items:flex-end; gap:2px; height:180px; padding:0 2px; border-bottom:1px solid var(--line-2); background:var(--card); }
.hbin { flex:1; height:100%; display:flex; align-items:flex-end; position:relative; outline:none; }
.hbar { width:100%; background:var(--primary); border-radius:4px 4px 0 0; min-height:0; }
.hbar.zero { height:0; }
.hbin:hover .hbar, .hbin:focus .hbar { background:#1f2d3a; }
.htip { display:none; position:absolute; bottom:calc(100% + 6px); left:50%; transform:translateX(-50%); white-space:nowrap; background:#1f2d3a; color:#fff; font-size:12px; padding:4px 8px; border-radius:4px; z-index:2; }
.hbin:hover .htip, .hbin:focus .htip { display:block; }
.hbin { align-items:flex-end; }
.hist-axis { display:flex; justify-content:space-between; font-size:11px; color:var(--muted); padding:2px 0 6px; }
.hist-fig figcaption { margin-top:4px; }
.items tr.flagged > td { background:#fffaf2; }
.items .clip { max-width:380px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); }
button.chip.flag { border:0; cursor:pointer; font:inherit; font-size:12px; text-align:left; }
.dist td { background:var(--surface-2); }
.dist-table { border:0; background:transparent; }
.dist-table td { border:0; padding:4px 8px; }
.dist-table .dl { width:24px; font-weight:700; } .dist-table .db { width:30%; } .dist-table .dn { width:110px; white-space:nowrap; color:var(--muted); }
.bar { display:block; height:10px; background:var(--primary); border-radius:0 4px 4px 0; min-width:2px; }
@media (max-width:700px) { .items th:nth-child(5), .items td:nth-child(5), .items th:nth-child(6), .items td:nth-child(6) { display:none; } .items .clip { max-width:180px; } }
@media (max-width:600px) { .items th:nth-child(3), .items td:nth-child(3) { display:table-cell; } }
.bar.zero { min-width:0; }

/* ---------- gradebook ---------- */
.grow { flex:1; }
.scroll-x { overflow-x:auto; margin-top:14px; border:1px solid var(--line); border-radius:8px; }
.scroll-x table { border:0; border-radius:0; }
table.gb th, table.gb td { white-space:nowrap; text-align:center; }
table.gb th.sticky, table.gb td.sticky { position:sticky; left:0; z-index:1; text-align:left; background:var(--card); }
table.gb th.sticky { background:var(--surface-2); }
table.gb th.grp { background:#e3e9f0; }
table.gb th.item { font-weight:600; font-size:13px; }
table.gb td.editable { cursor:pointer; }
table.gb td.editable:hover, table.gb td.editable:focus { background:#f3f6f9; outline:none; }
table.gb tr.why td { text-align:left; white-space:normal; background:var(--surface-2); }
.gs { font-size:12px; font-weight:600; padding:1px 8px; border-radius:99px; background:var(--surface-2); color:var(--muted); }
.gs.missing { background:var(--danger-soft); color:var(--danger); } .gs.ungraded { background:#fff1e0; color:#8a4b00; } .gs.excused { background:#e5eefa; color:#2b5b8a; }
.unrel { color:#c58a00; font-size:10px; vertical-align:super; }
#wform label { display:flex; gap:6px; align-items:center; font-size:14px; } #wform input { width:70px; font:inherit; padding:4px 8px; border:1px solid var(--line); border-radius:6px; }
td.num { text-align:right; white-space:nowrap; width:140px; }
@media (max-width:600px) { table.gb th:nth-child(3), table.gb td:nth-child(3) { display:table-cell; } }
.why-inner { position:sticky; left:12px; display:block; max-width:min(860px, 82vw); white-space:normal; }

/* ---------- messages ---------- */

.badge { display:inline-block; min-width:20px; padding:0 6px; border-radius:99px; background:var(--next); color:var(--next-ink); font-size:12px; font-weight:700; text-align:center; line-height:20px; }
.msg-layout { display:grid; grid-template-columns:260px 1fr; gap:16px; align-items:start; }
.msg-list h3 { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin:14px 0 6px; }
.msg-list ul { list-style:none; margin:0; padding:0; }
.msg-list .ch { display:flex; justify-content:space-between; align-items:center; gap:8px; width:100%; text-align:left; font:inherit; font-size:14px; padding:7px 10px; border:0; border-radius:6px; background:none; color:var(--ink); cursor:pointer; }
.msg-list .ch:hover { background:var(--surface-2); } .msg-list .ch.on { background:var(--primary-soft); color:var(--primary); font-weight:600; }
.msg-list .panel { margin-top:16px; }
.msg-main { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:14px 16px; min-height:420px; display:flex; flex-direction:column; }
.conv-head h2 { margin:0 0 8px; }
.pinned { background:#f2faf4; border:1px solid #cfe8d6; border-radius:6px; padding:8px 10px; font-size:14px; margin-bottom:8px; display:flex; flex-direction:column; gap:4px; }
.msgs { flex:1; overflow-y:auto; max-height:60vh; display:flex; flex-direction:column; gap:10px; padding:4px 2px 10px; }
.msg { border:1px solid var(--line); border-radius:8px; padding:8px 12px; max-width:85%; background:#fff; }
.msg.mine { align-self:flex-end; background:#eef3f8; }
.msg.ann { border-color:#f0dca0; background:#fffbef; }
.msg.hid { opacity:.75; border-style:dashed; }
.msg header { display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; margin-bottom:2px; }
.msg header .chip { margin:0; }
.msg .acts { margin-top:4px; gap:14px; }
.hide-form { margin-top:6px; display:flex; gap:6px; } .hide-form input { flex:1; font:inherit; font-size:14px; padding:5px 8px; border:1px solid var(--line); border-radius:6px; }
.hidden-note { color:#8a4b00; margin:4px 0 0; }
.compose { border-top:1px solid var(--line); padding-top:10px; display:flex; flex-direction:column; gap:6px; }
.compose textarea { font-size:15px; }
.mobile-only { display:none; }
@media (max-width:760px) {
  .msg-layout { grid-template-columns:1fr; }
  .msg-layout.has-channel .msg-list { display:none; }
  .msg-layout:not(.has-channel) .msg-main { display:none; }
  .mobile-only { display:inline; }
  .msg { max-width:100%; }
}

/* ---------- lessons & files ---------- */
.module { margin-bottom:12px; } .module h3 { margin:0; font-size:16px; }
.lessons { margin:8px 0 0; padding-left:18px; } .lessons li { margin:4px 0; }
.meter { height:8px; background:var(--surface-2); border-radius:99px; overflow:hidden; } .meter span { display:block; height:100%; background:var(--primary); }
.meter.warn span { background:#c58a00; }
.lesson { max-width:760px; }
.block-text h3 { font-size:20px; margin:8px 0 4px; } .block-text h4 { font-size:16px; margin:8px 0 4px; } .block-text p { margin:8px 0; }
.block-video h3 { font-size:16px; margin:0 0 6px; }
.block-video video { width:100%; border-radius:8px; background:#000; }
.frame { position:relative; padding-top:56.25%; border-radius:8px; overflow:hidden; background:#000; }
.frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.block-document img { max-width:100%; border-radius:8px; border:1px solid var(--line); }
.doc { display:flex; gap:12px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:8px; background:var(--card); }
.doc-icon { font-size:11px; font-weight:700; color:#fff; background:var(--primary); border-radius:4px; padding:8px 6px; }
.check-box { border:1px solid #cfdbe8; background:#f7fafd; border-radius:8px; padding:12px 14px; }
.check-box .stem-q { font-size:17px; margin:4px 0 10px; }
.check-box .opt { font-size:15px; padding:10px 12px; }
.check-box .opt.right { border-color:var(--ok); background:#f2faf4; } .check-box .opt.wrong { border-color:#e2a29f; background:#fff6f5; }
.check-box .row { margin-top:10px; }
.eblock textarea, .eblock select { width:100%; }
.add-blocks { margin:12px 0; }
.check-box .opt { flex-direction:row; align-items:flex-start; color:var(--ink); gap:12px; }
#done { max-width:760px; }
a { color:var(--primary); }

/* ---------- frame extras ---------- */
.avatar { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:50%; background:var(--primary-soft); color:var(--primary); font-size:12px; font-weight:700; flex:none; }
.avatar.lg { width:40px; height:40px; font-size:14px; }
.who-name { color:var(--ink-2); font-weight:550; }
@media (max-width:600px) { .who-name { display:none; } }
button.course-open { text-align:left; color:var(--ink); display:flex; flex-direction:column; gap:2px; }
button.course-open:hover h3 { color:var(--primary); }
.course-card .todo { padding:10px 0 0; border-bottom:0; border-top:1px solid var(--line); }
.persona { display:flex; flex-direction:column; gap:10px; }
td.num, th.num { text-align:right; white-space:nowrap; }
.empty .ic { color:var(--ok); }
.icon-btn.menu-btn { display:none; }
.top .crumb { display:none; }
@media (max-width:900px) { .icon-btn.menu-btn { display:inline-flex; } .top .crumb { display:block; } }
.side .mark svg rect { fill:#1d3050; }

/* ---------- skills ---------- */
.steps-edit input[data-t] { width:100%; font:inherit; padding:7px 10px; border:1px solid var(--line-2); border-radius:var(--radius-sm); }
.steps-edit td { vertical-align:middle; }
.skill-row { padding:14px 18px; }
.skills-matrix th, .skills-matrix td { white-space:nowrap; }
.skills-matrix th.sticky, .skills-matrix td.sticky { position:sticky; left:0; background:var(--surface); z-index:1; }
.skills-matrix th.sticky { background:var(--surface-2); }
.score-box { display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.score-box b { font-size:26px; font-weight:750; } .score-box span:last-child { font-size:12.5px; color:var(--muted); }
.verdict { display:inline-flex; align-items:center; gap:6px; font-weight:650; font-size:14px; padding:4px 12px; border-radius:99px; }
.verdict.pass { background:var(--ok-soft); color:var(--ok); } .verdict.fail { background:var(--danger-soft); color:var(--danger); } .verdict.open { background:var(--surface-2); color:var(--ink-2); }
.eval-steps { list-style:none; counter-reset:st; padding:0; margin:16px 0; display:flex; flex-direction:column; gap:8px; }
.eval-steps li { counter-increment:st; display:flex; align-items:center; gap:14px; padding:12px 14px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); }
.eval-steps li::before { content:counter(st); font-weight:700; color:var(--muted); width:22px; }
.eval-steps li.met { border-color:#b7dfc6; background:#f4fbf6; } .eval-steps li.missed { border-color:#efc3bf; background:#fff7f6; }
.eval-steps .st { flex:1; display:flex; flex-direction:column; gap:2px; font-size:15.5px; }
.eval-steps .crit { color:var(--danger); }
.eval-steps .res { font-weight:600; font-size:14px; display:inline-flex; gap:4px; align-items:center; }
.seg { display:inline-flex; border:1px solid var(--line-2); border-radius:10px; overflow:hidden; flex:none; }
.seg button { font:inherit; font-size:15px; font-weight:600; min-width:92px; min-height:44px; padding:0 14px; border:0; background:var(--surface); color:var(--ink-2); cursor:pointer; }
.seg button + button { border-left:1px solid var(--line-2); }
.seg button[data-v="1"].on { background:var(--ok); color:#fff; } .seg button[data-v="0"].on { background:var(--danger); color:#fff; }
details.panel summary { cursor:pointer; font-weight:600; }
@media (max-width:600px) { .eval-steps li { flex-wrap:wrap; } .seg { width:100%; } .seg button { flex:1; } }

/* ---------------------------------------------------------------- question tags, filters, exam builder sections */
button.link.danger { color:var(--danger); }
.chip.tag { background:var(--primary-soft); color:var(--primary-hover); font-weight:600; }
.chip.tag .x { background:none; border:0; padding:0 0 0 2px; margin:0; font:inherit; font-size:14px; line-height:1; color:inherit; cursor:pointer; opacity:.7; }
.chip.tag .x:hover { opacity:1; }
.tagpick { display:flex; flex-wrap:wrap; align-items:center; gap:4px 0; }
.tagpick select, .bulk select, .filterbar select, .section-card select, .section-card input[type=number], #qfN, #qfG {
  font:inherit; font-size:14px; padding:5px 9px; border:1px solid var(--line-2); border-radius:var(--radius-sm); background:var(--surface); color:var(--ink); }
.tagpick select { margin:4px 0 0; max-width:100%; }
.section-card input[type=number], #qfN { width:76px; }
.toggles { display:inline-flex; border:1px solid var(--line-2); border-radius:var(--radius-sm); overflow:hidden; }
.toggle { font:inherit; font-size:13px; padding:5px 11px; border:0; background:var(--surface); color:var(--ink-2); cursor:pointer; }
.toggle + .toggle { border-left:1px solid var(--line-2); }
.toggle[aria-pressed=true] { background:var(--primary); color:#fff; }
.filterbar { margin:16px 0 10px; gap:10px; }
.filterbar label { flex-direction:row !important; align-items:center; gap:8px; font-weight:500 !important; }
.filterbar input[type=search] { flex:1; min-width:160px; }
.bulk { position:sticky; top:8px; z-index:2; background:var(--next-soft); border:1px solid #f3d29c; border-radius:var(--radius-sm); padding:9px 14px; margin:8px 0; }
th.cb, td.cb { width:34px; padding-right:0; }
td.cb input, th.cb input { accent-color:var(--primary); width:16px; height:16px; }
.section-card { border:1px solid var(--line); border-left:4px solid var(--brand); border-radius:var(--radius-sm); padding:12px 14px; display:flex; flex-direction:column; gap:8px; background:var(--surface); }
.section-card .lbl { min-width:66px; }
.section-card label.row { flex-direction:row; align-items:center; font-weight:500; }
.avail { font-weight:600; }
.fixed-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:6px; }
.fixed-list li { display:flex; gap:8px; align-items:center; }
.fixed-list .clip, .pick-row .clip { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.picker { background:var(--surface-2); box-shadow:none; }
.pick-list { max-height:360px; overflow:auto; display:flex; flex-direction:column; gap:2px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); padding:6px; }
.pick-row { padding:6px 8px; border-radius:6px; font-size:14px; }
.pick-row:hover { background:var(--surface-2); }
.taggroup .tagtree { list-style:none; margin:0 0 10px; padding:0; }
.tagtree li { border-bottom:1px solid var(--line); padding:7px 0; }
.tagtree li.d1 { padding-left:24px; } .tagtree li.d2 { padding-left:48px; } .tagtree li.d3 { padding-left:72px; }
.tagtree li.d1 b, .tagtree li.d2 b, .tagtree li.d3 b { font-weight:550; }
.inline-edit form { margin-top:8px; }
.inline-edit input, .taggroup form input { font:inherit; padding:6px 10px; border:1px solid var(--line-2); border-radius:var(--radius-sm); }
.taggroup h2 { margin:0; }
@media (max-width:600px) {
  .section-card .lbl { min-width:0; }
  .tagtree li.d1 { padding-left:12px; } .tagtree li.d2 { padding-left:24px; } .tagtree li.d3 { padding-left:36px; }
}

/* ---------------------------------------------------------------- layouts, credit review, release steps */
.layout-pick label { flex-direction:column; display:flex; gap:5px; font-size:13.5px; font-weight:550; color:var(--ink-2); }
.layout-pick select, #byId, #layoutName, .section-card input.idp { font:inherit; font-size:14px; padding:6px 10px; border:1px solid var(--line-2); border-radius:var(--radius-sm); background:var(--surface); }
.section-card input.idp { width:110px; }
#layoutName { min-width:200px; }
.steps-line { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.steps-line span { font-size:13px; font-weight:600; padding:5px 11px; border-radius:99px; }
.steps-line .todo-step { background:var(--next-soft); color:#6b4300; }
.steps-line .done-step { background:var(--ok-soft); color:var(--ok); }
table.credit td.decide { min-width:360px; }
table.credit .seg button { white-space:nowrap; }
table.credit tr.undecided td:first-child { box-shadow:inset 3px 0 0 var(--next); }
table.credit .seg button { font-size:13px; min-width:0; min-height:34px; padding:0 10px; }
table.credit .seg button.on { background:var(--primary); color:#fff; }
table.credit .seg button[data-d=dropped].on { background:var(--danger); }
table.credit .reason { display:block; width:100%; margin-top:6px; font:inherit; font-size:13.5px; padding:6px 9px; border:1px solid var(--line-2); border-radius:var(--radius-sm); }
table.credit .error { min-height:0; }
@media (max-width:700px) { table.credit th:nth-child(4), table.credit td:nth-child(4), table.credit th:nth-child(5), table.credit td:nth-child(5) { display:none; } table.credit td.decide { min-width:0; } }
table.credit .accept-form { margin-top:8px; padding:10px 12px; background:var(--surface-2); border-radius:var(--radius-sm); display:flex; flex-direction:column; gap:6px; }
table.credit .accept-form input[type=number], table.credit .accept-form .alt-texts { font:inherit; font-size:13.5px; padding:5px 8px; border:1px solid var(--line-2); border-radius:6px; }
table.credit .accept-form .alt-texts { width:100%; }
table.credit .seg button[data-d=accept_also].on { background:var(--next); color:var(--next-ink); }
.btn.small-btn { padding:6px 12px; font-size:13.5px; }

/* ---------------------------------------------------------------- clinical log and preceptor verification */
.clinical-layout { display:grid; grid-template-columns:minmax(0, 1.4fr) minmax(0, 1fr); gap:16px; align-items:start; margin-top:14px; }
@media (max-width:860px) { .clinical-layout { grid-template-columns:1fr; } }
.qr-box svg { width:100%; max-width:280px; height:auto; display:block; margin:4px auto 8px; border:1px solid var(--line); border-radius:var(--radius-sm); }
.mono { font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:12.5px; }
.break { word-break:break-all; }
ul.plain { list-style:none; margin:0; padding:0; }
.verified-card { border-left:4px solid var(--ok); }
.verified-card .row { gap:12px; margin-bottom:8px; }
.skill-line input, .skill-line select { font:inherit; font-size:14px; padding:6px 9px; border:1px solid var(--line-2); border-radius:var(--radius-sm); background:var(--surface); }
.skill-line input[type=number] { width:70px; }
.verify { max-width:720px; margin:0 auto; padding:8px 0 40px; }
.verify .panel { margin-top:14px; }
.done-panel { text-align:center; }
.done-panel .ic-wrap { margin:6px auto 0; }
.verified-card .ic-wrap, .done-panel .ic-wrap { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:var(--ok-soft); color:var(--ok); flex:none; }
.verify table.kv th { width:32%; } @media (max-width:600px) { .verify table.kv th, .verify table.kv td { padding:8px 10px; } }

/* ---------- school setup ---------- */
.two { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
@media (max-width:900px) { .two { grid-template-columns:1fr; } }
.program h3 { font-size:15px; margin:10px 0 8px; }
.inline-form { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.inline-form input { font:inherit; padding:7px 10px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); color:var(--ink); min-width:0; flex:1 1 130px; }
.row.end { justify-content:flex-end; align-self:end; }
details.panel summary { cursor:pointer; font-weight:600; }
details.panel[open] summary { margin-bottom:10px; }
.pick-filter { width:100%; margin-bottom:8px; font:inherit; padding:7px 10px; border:1px solid var(--line); border-radius:var(--radius-sm); }

/* ---------- people ---------- */
.landing.narrow { max-width:520px; }
.row-error td { background:var(--bad-bg, #fdecea); }
.chip.bad { background:#fdecea; color:#a61b1b; }
.btn.danger { border-color:#e0b4b4; color:#a61b1b; }
.signin-alt { margin-top:28px; } .signin h2 { margin-top:0; }
table tr[data-p] { cursor:pointer; }

/* Clinical patient care note */
.note-head { margin: 1rem 0 .25rem; font-size: 1rem; }
table.vitals th, table.vitals td { padding: .25rem .4rem; white-space: nowrap; }
table.vitals-edit { border-collapse: collapse; }
table.vitals-edit th { font-size: .8rem; font-weight: 600; text-align: left; padding: 0 .2rem; }
table.vitals-edit td { padding: .15rem .2rem; }
table.vitals-edit input { width: 4.6rem; min-width: 0; }
.iv-line { flex-wrap: wrap; gap: .35rem; }
.iv-line input.short { width: 6rem; }
.iv-line input.grow { flex: 1 1 10rem; }
fieldset { border: 1px solid var(--line, #d8dde3); border-radius: 8px; padding: .6rem .8rem; }
legend { font-weight: 600; padding: 0 .3rem; }

/* Records: completion roster and printable student record */
.roster-table td { vertical-align: top; }
.record-course h3 { margin: 1rem 0 .3rem; font-size: 1rem; }
@media print {
  .side, .top, #scrim, #demo-banner, .no-print, #print { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
  .panel { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .record-course { break-inside: auto; }
  a.link { color: inherit; text-decoration: none; }
}
