/* K12 Stack app. Follows the K12 Stack design system (github.com/k12stack/design-system):
   Public Sans, light first with a dark theme on [data-theme="dark"], semantic color tokens,
   6px controls, 10px cards, no all-caps labels. Same look as k12stack.org. */
:root,
[data-theme="light"] {
  --canvas: #ffffff; --surface: #ffffff; --surface-subtle: #f5f5f7; --line: #e5e5ea; --line-strong: #86868b;
  --ink: #1d1d1f; --ink-2: #424245; --muted: #6e6e73;
  --brand: #0066cc; --brand-hover: #004f9e; --brand-soft: #e8f2fc; --brand-ink: #ffffff;
  --ok: #007a70; --ok-bg: #e3f4f2; --bad: #c42b1c; --bad-bg: #fbe9e7; --warn: #8a5a00; --warn-bg: #fbf1de;
  --field: #ffffff; --field-line: #86868b; --hover: #f5f5f7; --track: #e5e5ea;
  --shadow-float: 0 8px 24px rgb(0 0 0 / .10), 0 0 0 1px rgb(0 0 0 / .04);
  color-scheme: light;
}
[data-theme="dark"] {
  --canvas: #000000; --surface: #1c1c1e; --surface-subtle: #161617; --line: #2c2c2e; --line-strong: #6e6e73;
  --ink: #f5f5f7; --ink-2: #d1d1d6; --muted: #a1a1a6;
  --brand: #38b6ff; --brand-hover: #7ccdff; --brand-soft: #0b2a3d; --brand-ink: #000000;
  --ok: #5ad4c8; --ok-bg: #0d2b28; --bad: #ff7b72; --bad-bg: #3a1512; --warn: #e3b341; --warn-bg: #33270b;
  --field: #1c1c1e; --field-line: #6e6e73; --hover: #2c2c2e; --track: #2c2c2e;
  --shadow-float: 0 8px 24px rgb(0 0 0 / .5), 0 0 0 1px rgb(255 255 255 / .06);
  color-scheme: dark;
}
:root {
  /* Older names, kept so nothing that still refers to them breaks */
  --bg: var(--surface-subtle); --card: var(--surface);
  --head: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-family: var(--body); color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--surface-subtle); color: var(--ink); min-height: 100vh; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.launch { background: var(--canvas); }
a { color: var(--brand); }
code { font-family: var(--mono); font-size: .86em; background: var(--surface-subtle); border: 1px solid var(--line); padding: 0 5px; border-radius: 4px; }
.loading { padding: 40px; color: var(--muted); }
h1, h2, h3 { font-family: var(--head); letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--brand) 20%, transparent); }

/* ---------- launcher ---------- */
.launch-wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px 64px; }
.lnav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; border-bottom: 1px solid var(--line); margin: 0 -32px; padding: 0 32px; }
.logo { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.logo svg { height: 34px; width: auto; display: block; }
.lnav-r { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; flex: 1; }
.hero { padding: 64px 0 24px; max-width: 760px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--brand); letter-spacing: 0; text-transform: none; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; margin: 12px 0 16px; color: var(--ink); letter-spacing: -.03em; }
.hero h1 span { color: inherit; background: none; }
.hero p { color: var(--ink-2); font-size: 18px; line-height: 1.6; margin: 0; }
.layer { margin-top: 48px; }
.layerhead { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.layerhead h2 { font-size: 28px; margin: 0; color: var(--ink); }
.layerhead p { color: var(--muted); margin: 0; max-width: 680px; }
.stackgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.stack { text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 20px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: border-color .12s; }
.stack.live:hover, .stack.live:focus-visible { border-color: var(--line-strong); }
.stack.soon, .stack.soon:disabled { cursor: default; background: transparent; border-style: dashed; border-color: var(--line-strong); opacity: 1; }
.stack.soon p { color: var(--muted); }
.lnav .logo { order: 1; } .lnav .lnav-r { order: 2; } .lnav .themebtn { order: 3; margin-right: -8px; }
.stack.soon h3, .stack.soon .tag { color: var(--muted); }
.stack.core { width: 100%; background: var(--surface-subtle); }
.stacktop { display: flex; justify-content: space-between; align-items: center; min-height: 22px; }
.no { display: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1;
  color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); text-transform: none; letter-spacing: 0; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.badge.live { color: var(--brand); background: var(--brand-soft); box-shadow: none; }
.stack h3 { font-size: 20px; margin: 8px 0 0; color: var(--ink); }
.stack .tag { color: var(--brand); font-size: 14px; font-weight: 600; }
.stack p { color: var(--ink-2); margin: 4px 0 8px; line-height: 1.55; font-size: 15px; }
.mods { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.mods li { font-size: 12.5px; padding: 2px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.open { margin-top: auto; padding-top: 8px; color: var(--brand); font-weight: 600; font-size: 14px; }
.lfoot { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.lfoot a { color: var(--ink-2); }
.notice { border-left: 3px solid var(--warn); background: var(--warn-bg); color: var(--ink); padding: 10px 12px; border-radius: 6px; margin: 12px 0; }
.notice.dark { background: var(--warn-bg); color: var(--ink); }
.themebtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); cursor: pointer; flex: none; }
.themebtn:hover { background: var(--hover); color: var(--ink); }
.themebtn .sun { display: none; }
[data-theme="dark"] .themebtn .sun { display: block; }
[data-theme="dark"] .themebtn .moon { display: none; }

/* ---------- inside a stack ---------- */
body.work #app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); color: var(--ink); padding: 16px 12px; display: flex; flex-direction: column; gap: 10px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; }
.side { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.side:hover { scrollbar-color: var(--line-strong) transparent; }
.side .logo { padding: 2px 8px 6px; }
.side .logo svg { height: 30px; }
.side .back { color: var(--muted); text-decoration: none; font-size: 13px; padding: 0 8px; }
.side .back:hover { color: var(--ink); }
.stackname { font-family: var(--head); font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin: 6px 8px 4px; line-height: 1.2; }
#nav { display: flex; flex-direction: column; gap: 1px; }
#nav a { color: var(--ink-2); text-decoration: none; padding: 7px 10px; border-radius: 6px; font-size: 15px; }
#nav a:hover { background: var(--hover); color: var(--ink); }
#nav a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; box-shadow: none; }
.actas { margin-top: auto; border-top: 1px solid var(--line); padding: 12px 8px 0; display: flex; flex-direction: column; gap: 4px; }
.actas label { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; font-family: var(--body); }
.actas select { width: 100%; margin-top: 4px; font-size: 14px; }
.actas small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.actas .who { color: var(--brand); }
.workarea { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.topbar .crumb { color: var(--muted); font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .demo { font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--warn); background: var(--warn-bg); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.topbar .menu { display: none; }
main { padding: 28px 28px 64px; max-width: 1280px; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pagehead h1 { font-size: 28px; margin: 0 0 4px; letter-spacing: -.025em; }
.pagehead .actions { display: flex; gap: 8px; flex-wrap: wrap; }
p.lead { color: var(--muted); margin: 0; max-width: 820px; line-height: 1.55; font-size: 16px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 16px; }
.cardhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.card h2 { font-size: 17px; margin: 0 0 8px; }
.card h3 { margin: 0 0 4px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.cols > .card { margin-bottom: 0; } .cols { margin-bottom: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; box-shadow: inset 0 2px 0 var(--brand); }
.kpi.ok { box-shadow: inset 0 2px 0 var(--ok); } .kpi.bad { box-shadow: inset 0 2px 0 var(--bad); } .kpi.warn { box-shadow: inset 0 2px 0 var(--warn); }
.kl { color: var(--muted); font-size: 13px; } .kv { font-family: var(--head); font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; } .ks { color: var(--muted); font-size: 12.5px; }
.tablewrap { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; margin-bottom: 16px; }
.card .tablewrap { border: 0; border-radius: 0; margin: 0 -18px -16px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; background: var(--surface-subtle); font-size: 13px; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td a { text-decoration: none; } td a:hover { text-decoration: underline; }
.empty { color: var(--muted); padding: 20px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; margin-bottom: 16px; }
.card .empty { border: 0; padding: 10px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs button { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 5px 13px; cursor: pointer; font: inherit; font-size: 14px; }
.tabs button:hover { border-color: var(--line-strong); }
.tabs button.on { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-subtle); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
.bar { height: 6px; background: var(--track); border-radius: 99px; overflow: hidden; min-width: 90px; margin: 6px 0 3px; }
.bar span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.bar span.hot { background: var(--warn); }
form.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin: 6px 0; }
form.row.tight { margin: 0; flex-wrap: nowrap; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
label.inline { flex-direction: row; align-items: center; gap: 6px; }
label small { font-size: 12px; }
input, select, textarea { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--field-line); border-radius: 6px; min-width: 120px; color: var(--ink); background: var(--field); }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
input[type=checkbox], input[type=radio] { min-width: 0; accent-color: var(--brand); }
button.primary, button.ghost, .btn { font: inherit; font-size: 14px; font-weight: 600; border-radius: 6px; padding: 8px 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; transition: background-color .12s, border-color .12s, color .12s; }
button.primary { background: var(--brand); color: var(--brand-ink); border: 1px solid transparent; }
button.primary:hover { background: var(--brand-hover); }
button.ghost, .btn.ghost { background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); }
button.ghost:hover, .btn.ghost:hover { background: var(--hover); }
button.sm { padding: 4px 10px; font-size: 13px; min-height: 30px; }
button:disabled { opacity: .45; cursor: default; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--canvas); padding: 10px 16px; border-radius: 10px; display: none; max-width: min(640px, 92vw); z-index: 50; box-shadow: var(--shadow-float); font-weight: 500; }
#toast.ok { background: var(--ok); color: #fff; } #toast.bad { background: var(--bad); color: #fff; }
[data-theme="dark"] #toast.ok, [data-theme="dark"] #toast.bad { color: #000; }
dialog#dlg { border: 0; border-radius: 10px; padding: 0; width: min(720px, 94vw); max-height: 90vh; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float); }
dialog#dlg::backdrop { background: rgb(0 0 0 / .45); }
.dlghead { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.dlghead h2 { font-size: 19px; margin: 0; }
.dlghead .x { border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); line-height: 1; width: 36px; height: 36px; border-radius: 6px; }
.dlghead .x:hover { background: var(--hover); color: var(--ink); }
.dlgbody { padding: 16px 18px 20px; }
.dlgbody h3 { font-size: 15px; margin: 18px 0 8px; }
.dlgbody .tablewrap { margin-bottom: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2 .full { grid-column: 1 / -1; }
.formactions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 16px; margin-bottom: 10px; }
.facts > div { font-size: 14px; } .facts span { display: block; color: var(--muted); font-size: 13px; text-transform: none; letter-spacing: 0; margin-bottom: 2px; }
.checklist .item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.checklist .item span { flex: 1; } .checklist .full { margin-top: 10px; }
.campuses { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.campus { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.cname { font-weight: 600; font-size: 14px; }
.score { font-family: var(--head); font-size: 34px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.score.sm { font-size: 20px; } .score.ok { color: var(--ok); } .score.warn { color: var(--warn); } .score.bad { color: var(--bad); }
.steps { margin: 0; padding-left: 20px; line-height: 1.8; }
.tree, .tree ul { list-style: none; margin: 0; padding-left: 22px; }
.tree { padding-left: 0; } .tree li { margin: 6px 0; } .tree ul { border-left: 2px solid var(--line); margin-left: 8px; }
.node { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.node .kind { font-size: 12px; font-weight: 600; text-transform: none; color: var(--muted); }
.node.chief { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); background: var(--brand-soft); } .node select { min-width: 160px; padding: 3px 6px; }
.agenda { list-style: none; margin: 0; padding: 0; } .agenda li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.agenda li:last-child { border: 0; } .agenda .t { display: inline-block; min-width: 80px; color: var(--muted); font-variant-numeric: tabular-nums; }
.agenda li.blk { color: var(--bad); }
.phases { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.phases span { flex: 1; min-width: 90px; text-align: center; padding: 7px 4px; font-size: 13px; background: var(--surface-subtle); color: var(--muted); border-radius: 6px; }
.phases span.done { background: var(--brand-soft); color: var(--brand); } .phases span.on { background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.venuegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.venue p { font-size: 14px; }

@media (max-width: 860px) {
  body.work #app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 22% 0 0; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  body.navopen .side { transform: none; box-shadow: 0 0 0 100vmax rgb(0 0 0 / .45); }
  .topbar { padding: 0 12px 0 8px; } .topbar .menu { display: inline-flex; } .topbar .demo { display: none; }
  main { padding: 20px 16px 48px; }
  .cols { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .launch-wrap { padding: 0 20px 48px; }
  .lnav { margin: 0 -20px; padding: 0 20px; }
  .lnav-r .signin, .lnav-r > span { font-size: 13px; }
  .hero { padding-top: 40px; }
  .stackgrid { grid-template-columns: 1fr; }
}

/* ---------- public bond dashboard ---------- */
body.public { background: var(--surface-subtle); }
.pubhead { background: var(--canvas); border-bottom: 1px solid var(--line); color: var(--ink); padding: 40px 0 32px; margin-bottom: 24px; }
.pubhead h1 { font-size: clamp(30px, 4.5vw, 44px); margin: 8px 0 6px; color: var(--ink); letter-spacing: -.03em; }
.pubhead p { color: var(--muted); margin: 0; }
.pubwrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.ministeps { display: flex; gap: 3px; margin: 4px 0 2px; } .ministeps i { width: 18px; height: 6px; border-radius: 3px; background: var(--track); }
.ministeps i.done { background: color-mix(in srgb, var(--brand) 45%, var(--track)); } .ministeps i.on { background: var(--brand); }
@media print {
  body.work #app { display: block; } .side, .topbar, .pagehead .actions, .tabs, .themebtn { display: none !important; }
  main { padding: 0; max-width: none; } .card, .tablewrap { break-inside: avoid; border-color: #bbb; }
}
@media (max-width: 860px) { .pubwrap { padding: 0 16px; } }
.topbar #resetbox { padding: 3px 10px; font-size: 12px; min-height: 28px; }
@media (max-width: 760px) { .topbar #resetbox { display: none; } }

/* ---------- sign in, wizard, your organization ---------- */
.lnav-r a { color: var(--ink-2); text-decoration: none; }
.lnav-r a:hover { color: var(--ink); text-decoration: underline; }
.lnav-r .signin { color: var(--brand); font-weight: 600; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.hero .cta { display: inline-flex; align-items: center; margin-top: 20px; min-height: 44px; padding: 0 18px; border-radius: 6px; background: var(--brand); color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.hero .cta:hover { background: var(--brand-hover); }
.hero.start { max-width: 720px; }
.hero.start h2 { color: var(--ink); font-size: 22px; margin: 32px 0 10px; }
.hero .small, .launch .small { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.launch .small a, .wizard a { color: var(--brand); }
.signin-box { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
button.big { padding: 12px 18px; font-size: 16px; min-height: 48px; }
.launch button.primary { background: var(--brand); color: var(--brand-ink); border: 1px solid transparent; font-weight: 600; cursor: pointer; }
.launch button.primary:hover { background: var(--brand-hover); }
.launch button.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.launch button[disabled] { opacity: .5; cursor: not-allowed; }
.orglist { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.orgrow { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.orgrow b { color: var(--ink); font-size: 16px; } .orgrow small { color: var(--muted); flex: 1; }
.orgrow button { padding: 7px 14px; }
.wizard { margin-top: 24px; display: flex; flex-direction: column; gap: 20px; color: var(--ink); }
.wizard > label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; color: var(--ink); font-size: 15px; }
.wizard input[name=name] { padding: 11px 14px; font-size: 16px; }
.wizard fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.wizard legend { font-weight: 600; padding: 0 6px; }
.wizard .pick { display: flex; flex-direction: row; gap: 12px; align-items: flex-start; cursor: pointer; color: var(--ink); font-size: 15px; }
.wizard .pick span { display: flex; flex-direction: column; } .wizard .pick small { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.wizard .pick input, .wizard .terms input { margin-top: 4px; }
.wizard .terms { flex-direction: row; gap: 10px; font-weight: 400; align-items: flex-start; color: var(--ink-2); line-height: 1.5; font-size: 14px; }
.wizard button[type=submit] { align-self: flex-start; }
.addstacks { margin-top: 24px; padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: 10px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.addstacks h3 { margin: 0 0 4px; font-size: 18px; } .addstacks label { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; } .addstacks small { color: var(--muted); margin-left: 6px; }
.addstacks button { align-self: flex-start; margin-top: 6px; }

/* Former chief grouping: stacks are listed by the work they do; the district decides who runs each one. */
.chiefgroup { margin: 0 0 22px; }
.chiefhead { display: none; }
.pickgroup { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pick.soon { opacity: .6; }
.pick.soon input { cursor: not-allowed; }

/* ---------- HR kiosk: big, simple, readable across a room ---------- */
.kiosk { max-width: 520px; margin: 16px auto; text-align: center; }
.kclock { font-family: var(--head); font-size: 56px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin: 8px 0 16px; font-variant-numeric: tabular-nums; }
.kform { display: grid; gap: 12px; text-align: left; }
.kform input { font-size: 24px; padding: 12px; }
.kform button { font-size: 20px; padding: 14px; }
.kmsg { min-height: 64px; margin-top: 16px; padding: 14px; border-radius: 10px; font-size: 20px; font-weight: 600; }
.kmsg.ok { background: var(--ok-bg); color: var(--ok); }
.kmsg.bad { background: var(--bad-bg); color: var(--bad); }

/* ---------- recommendations (verdict + reasons behind the (i) button) ---------- */
.rec { border: 1px solid var(--line); border-left: 3px solid var(--ok); border-radius: 10px; background: var(--surface); padding: 12px 14px; margin: 12px 0; }
.rec.warn { border-left-color: var(--warn); } .rec.bad { border-left-color: var(--bad); }
.rechead { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.reclabel { color: var(--muted); font-size: 13px; }
.rec b { color: var(--ink); }
.rec.ok b { color: var(--ok); } .rec.warn b { color: var(--warn); } .rec.bad b { color: var(--bad); }
.recsum { margin-top: 2px; color: var(--ink-2); font-size: 14px; }
.infobtn { flex: none; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.infobtn:hover, .infobtn[aria-expanded="true"] { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.infobtn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.why { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.why li { position: relative; padding-left: 22px; }
.why li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.why li.ok::before { content: "✓"; color: var(--ok); } .why li.bad::before { content: "✕"; color: var(--bad); } .why li.warn::before { content: "!"; color: var(--warn); left: 4px; }
.recact { margin: -4px 0 12px; }

/* ---------- purchase requests and their steps ---------- */
.reqlist { display: grid; gap: 14px; }
.reqcard { border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: var(--surface); }
.reqtop { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.reqtop h3 { margin: 2px 0; font-size: 17px; }
.reqamt { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 12px 0 8px; flex-wrap: wrap; }
.steps li { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface-subtle); color: var(--muted); border: 1px solid var(--line); }
.steps li.done { color: var(--ok); background: var(--ok-bg); border-color: transparent; }
.steps li.on { color: var(--brand); background: var(--brand-soft); border-color: var(--brand); font-weight: 600; }
.reqact { margin-top: 10px; align-items: flex-end; }
.reqact .grow { flex: 1; min-width: 220px; }

/* ---------- team map ---------- */
.mapwrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr); gap: 16px; align-items: start; }
.teammap { width: 100%; height: auto; display: block; }
.teammap .mapbg { fill: var(--surface-subtle); stroke: var(--line); }
.mapcampus rect { fill: var(--surface); stroke: var(--line-strong); }
.mapcampus text { font-size: 12px; fill: var(--ink-2); }
.mapperson circle { fill: var(--brand); stroke: var(--surface); stroke-width: 3; }
.mapperson text { font-size: 11px; font-weight: 700; fill: #fff; }
.maplist { display: grid; gap: 10px; }
.mapper { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
@media (max-width: 760px) { .mapwrap { grid-template-columns: 1fr; } .reqtop { flex-direction: column; } }

/* ---------- access ---------- */
.accbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; margin-bottom: 8px; }
.accbar .small { flex: 1; min-width: 240px; }
.accarea { font-size: 13px; color: var(--muted); font-weight: 600; margin: 18px 0 6px; }
.acclist { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.accrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.accrow:first-child { border-top: 0; }
.accsel { min-width: 170px; }
.acceff { min-width: 64px; text-align: right; }
@media (max-width: 760px) { .accrow { grid-template-columns: 1fr auto; } .accsrc { grid-column: 1; } .accsel { grid-column: 1; } }
.notice.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }

/* ---------- IT inventory: filters, chips, equipment list, supplies, replacement plan ---------- */
:root, [data-theme="light"] { --viz-1: #257de0; --viz-2: #f47230; --viz-3: #00b894; --viz-4: #f2a600; --viz-5: #ee7fac; }
[data-theme="dark"] { --viz-1: #338ced; --viz-2: #e76624; --viz-3: #00a888; --viz-4: #d28e05; --viz-5: #e24d8b; }
.filterbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin: 4px 0 12px; }
.filterbar label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.filterbar .grow { flex: 1; min-width: 240px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.chip:hover { background: var(--hover); }
.chip.on { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.chip span { color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.clickrow { cursor: pointer; }
.clickrow:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin: 10px 0; }
.pager .small { margin-right: auto; }
.agebar { width: 96px; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; margin-bottom: 3px; }
.agebar span { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.agebar span.hot { background: var(--bad); }
.score { display: inline-block; min-width: 34px; padding: 2px 8px; border-radius: 6px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; background: var(--surface-subtle); }
.score.s2 { background: var(--warn-bg); color: var(--warn); }
.score.s3 { background: var(--bad-bg); color: var(--bad); }
.supgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.supcard { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--surface); }
.suptop { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.suptop h3 { margin: 0 0 2px; font-size: 16px; }
.cover { text-align: right; line-height: 1.1; }
.cover b { display: block; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cover span { font-size: 12px; color: var(--muted); }
.cover.hot b { color: var(--bad); }
.vizfig { margin: 0; }
.vizfig svg { width: 100%; height: auto; display: block; }
.vizfig .vgrid { stroke: var(--line); stroke-width: 1; }
.vizfig .vsep { stroke: var(--line-strong); stroke-dasharray: 3 4; }
.vizfig .vtick, .vizfig .vsub { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.vizfig .vlab { font-size: 12px; fill: var(--ink); font-weight: 600; }
.vizfig .vval { font-size: 12px; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.vizfig .vbar rect { stroke: var(--surface); stroke-width: 0; }
.vizfig .vbar:hover rect, .vizfig .vbar:focus rect { opacity: .82; }
.vizfig rect.backlog { opacity: .78; }
.vlegend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.vlegend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tableview { margin-top: 10px; }
.tableview summary { cursor: pointer; color: var(--brand); font-size: 13px; }
.planlist { display: grid; gap: 14px; margin-top: 14px; }
.plancard { border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: var(--surface); }
.plancard.adopted { border-color: var(--ok); box-shadow: inset 3px 0 0 var(--ok); }
.plantop { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.plantop h3 { margin: 2px 0; font-size: 17px; }
.planyears { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 10px; margin: 14px 0; }
.py { display: flex; flex-direction: column; gap: 1px; font-size: 12px; font-variant-numeric: tabular-nums; }
.py b { font-size: 13px; }
.pybar { position: relative; height: 70px; background: var(--surface-subtle); border-radius: 4px; margin-bottom: 4px; overflow: hidden; }
.pybar span { position: absolute; left: 0; right: 0; bottom: 0; background: var(--viz-1); border-radius: 4px 4px 0 0; }
.pybar i { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed var(--ink-2); }
.planfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 16px; font-size: 13px; margin-bottom: 4px; }
.planfacts span { display: block; color: var(--muted); font-size: 12px; }
.planfacts b { font-size: 16px; font-variant-numeric: tabular-nums; }
.planfacts b.bad { color: var(--bad); }
@media (max-width: 760px) { .supgrid { grid-template-columns: 1fr; } .filterbar .grow { min-width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* Searchable lists (ui.js table) */
.tbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.tbar .tq { flex: 1 1 240px; min-width: 180px; }
.tbar .tf { flex: 0 1 200px; }
.tbar input[type="search"], .tbar select { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--field-line, var(--line)); border-radius: 8px; background: var(--field, var(--surface)); color: var(--ink); }
.tbar .tcount { margin-left: auto; white-space: nowrap; }
.tbox tr[hidden] { display: none; }
.tbox .tmore { margin-top: 10px; }
.tsr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 640px) { .tbar .tf { flex: 1 1 45%; } .tbar .tcount { margin-left: 0; } }

/* Hiring (HR) and the candidate pages */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cols2 h3 { margin-top: 18px; }
.cols2 h4 { margin: 14px 0 4px; font-size: 14px; }
@media (max-width: 860px) { .cols2 { grid-template-columns: 1fr; } }
.actionsrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 16px; }
.actionsrow select { width: auto; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
button.danger, .btn.danger { color: var(--bad); }
ul.plain { list-style: none; padding: 0; margin: 4px 0 8px; }
ul.plain > li { padding: 8px 0; border-bottom: 1px solid var(--line); }
ul.plain > li:last-child { border-bottom: 0; }
.letter { border: 1px solid var(--line); border-radius: 10px; padding: 22px 26px; background: #fff; color: #1b1b1b; margin: 14px 0; font: 15px/1.6 Georgia, 'Times New Roman', serif; }
.letter header { display: flex; gap: 14px; align-items: center; border-bottom: 4px solid var(--lc); padding-bottom: 12px; margin-bottom: 18px; }
.letter header img { max-height: 54px; max-width: 160px; }
.letter header b { display: block; font: 700 18px/1.2 var(--body, system-ui); color: var(--lc); }
.letter header small { color: #555; font: 12px/1.4 var(--body, system-ui); }
.letter h3 { font: 600 16px/1.3 var(--body, system-ui); margin: 0 0 10px; }
.brandrow { display: flex; gap: 18px; align-items: center; }
.brandlogo { width: 120px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.brandlogo.none { display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.swatches { display: flex; gap: 6px; margin-top: 8px; }
.swatches i { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line); display: inline-block; }
.jobgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.jobcard { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--surface); }
.jobcard h3 { margin: 4px 0 6px; font-size: 18px; }
.jobcard .btn { margin-top: 10px; }

/* Candidate pages */
body.careers .launch-wrap { max-width: 980px; }
.jobhero { border-top: 6px solid var(--dc, var(--brand)); padding-top: 26px; }
.jobhero h1 { font-size: clamp(30px, 5vw, 46px); margin: 6px 0 10px; }
.jobfacts { font-size: 18px; margin: 0 0 10px; }
.jobtext { margin: 10px 0 24px; }
.jobtext aside { background: var(--surface-subtle); border-radius: 12px; padding: 16px 18px; align-self: start; }
.appform .card, .appform.card { margin-bottom: 18px; }
.appform label { display: block; font-weight: 600; font-size: 15px; margin: 10px 0; }
.appform label input:not([type=checkbox]):not([type=radio]), .appform label select, .appform label textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; font-size: 16px; padding: 10px 12px; border: 1px solid var(--field-line, var(--line)); border-radius: 8px; background: var(--field, var(--surface)); color: var(--ink); }
.appform .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.appform .grid2 .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .appform .grid2 { grid-template-columns: 1fr; } }
.appform label.chk { display: flex; flex-direction: row; gap: 10px; align-items: center; justify-content: flex-start; text-align: left; font-weight: 400; }
.appform label.chk input { width: auto; margin: 0; }
.appform .req { color: var(--bad); font-weight: 400; font-size: 13px; }
.rep { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 14px 12px; margin: 10px 0; position: relative; }
.rep .rm { grid-column: 1 / -1; justify-self: end; margin-top: 10px; }
.rep label { margin: 8px 0 0; font-size: 14px; }
@media (max-width: 640px) { .rep { grid-template-columns: 1fr; } }
.filerow { padding: 6px 0; }
ol.aff { padding-left: 22px; }
ol.aff li { margin: 12px 0; font-size: 15px; }
ol.aff li > span:first-child { display: block; }
.yn { display: flex; gap: 22px; margin-top: 6px; }
.yn label { display: flex; gap: 6px; align-items: center; font-weight: 400; margin: 0; }
.submitbar { display: flex; gap: 12px; justify-content: flex-end; align-items: center; position: sticky; bottom: 0; background: var(--canvas, var(--bg)); padding: 14px 0; border-top: 1px solid var(--line); }
.appcard .cardhead { align-items: flex-start; }
.appcard h2 { margin: 2px 0; }
ol.steps { display: flex; list-style: none; padding: 0; margin: 14px 0; gap: 4px; counter-reset: s; }
ol.steps li { flex: 1; text-align: center; font-size: 13px; padding-top: 12px; border-top: 4px solid var(--line); color: var(--muted); }
ol.steps li.done { border-color: var(--ok); color: var(--ink); }
ol.steps li.on { border-color: var(--brand); color: var(--ink); font-weight: 700; }
.offerbox { border: 2px solid var(--ok); border-radius: 12px; padding: 14px 16px; margin: 12px 0; background: var(--ok-bg); }
.notice.ok { border-color: var(--ok); background: var(--ok-bg); }
.reflogo { max-height: 60px; display: block; margin-bottom: 10px; }
