:root {
  color-scheme: light;
  /* DECA blue, taken from the supplied logo artwork */
  --deca-blue: #0071ba;
  --blue-deep: #005c96;
  --blue-wash: #e7f1f9;
  --blue-line: #a9cde8;
  --navy: #052a45;
  --navy-2: #0a3a5c;
  --on-navy: rgba(255, 255, 255, .78);
  --on-navy-dim: rgba(255, 255, 255, .5);
  --navy-line: rgba(255, 255, 255, .16);
  --ink: #111820;
  --muted: #5a6674;
  --paper: #fff;
  --wash: #f1f3f5;
  --line: #dce1e7;
  --line-strong: #b6bfc9;
  --green: #14695f;
  --green-wash: #e3f3ef;
  --amber: #7a5410;
  --amber-wash: #fdf1d6;
  --red: #a02f39;
  --red-wash: #fbeaec;
  --r: 2px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--wash); }
body { margin: 0; overflow-x: clip; color: var(--ink); background: var(--wash); min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue-deep); }
h1, h2, h3, h4, p { margin-top: 0; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 20; background: white; padding: .75rem; border: 1px solid var(--ink); }
.skip-link:focus { top: 1rem; }

/* ---------- shell ---------- */
.site-header { height: 68px; padding: 0 max(1.25rem, calc((100vw - 1240px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: .85rem; color: var(--navy); text-decoration: none; }
.brand-logo { display: block; width: 96px; height: auto; }
.brand-context { padding-left: .85rem; border-left: 1px solid var(--line); }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-size: .95rem; letter-spacing: -.01em; }
.brand small { margin-top: .18rem; color: var(--muted); font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }
main { width: min(1240px, calc(100% - 2rem)); margin: 0 auto; padding: 2.25rem 0 5rem; }

/* ---------- type ---------- */
h1 { color: var(--ink); font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -.038em; line-height: .98; margin-bottom: 1.1rem; max-width: 16ch; }
h2 { color: var(--ink); font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 750; letter-spacing: -.025em; margin-bottom: .75rem; }
h3 { color: var(--ink); font-size: 1rem; font-weight: 700; letter-spacing: -.012em; }
h4 { color: var(--ink); font-size: .92rem; font-weight: 700; }
.lead { color: var(--muted); font-size: 1.08rem; line-height: 1.6; max-width: 58ch; }
.muted { color: var(--muted); }
.fine { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.eyebrow { color: var(--deca-blue); font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .7rem; }

/* ---------- buttons ---------- */
.button { appearance: none; border: 1px solid transparent; border-radius: var(--r); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 42px; padding: .68rem 1.05rem; color: white; background: var(--deca-blue); font-weight: 650; font-size: .93rem; text-decoration: none; transition: background .12s, border-color .12s; }
.button:hover { background: var(--blue-deep); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .sidebar-link:focus-visible, .tab:focus-visible { outline: 2px solid var(--deca-blue); outline-offset: 2px; }
.button.secondary { background: var(--navy); }
.button.secondary:hover { background: var(--navy-2); }
.button.ghost { color: var(--ink); background: var(--paper); border-color: var(--line-strong); }
.button.ghost:hover { background: var(--wash); border-color: var(--muted); }
.button.danger { background: var(--red); }
.button.danger:hover { background: #872732; }
.button.small { min-height: 34px; padding: .42rem .7rem; font-size: .84rem; }
.button[disabled] { cursor: wait; opacity: .5; }
.button-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }

/* ---------- landing ---------- */
.hero-band { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff; margin: -2.25rem calc(50% - 50vw) 0; padding: clamp(3rem, 7vw, 5.5rem) max(1.25rem, calc((100vw - 1240px) / 2)) clamp(4rem, 8vw, 6.5rem); }
.hero-band::after { content: ""; position: absolute; z-index: -1; right: -7vw; top: 50%; width: min(48vw, 640px); aspect-ratio: 1; transform: translateY(-50%) rotate(9deg); background: url("assets/deca-diamond-blue.svg") center / contain no-repeat; opacity: .17; pointer-events: none; }
.hero-band h1 { color: #fff; max-width: 15ch; }
.hero-band .lead { color: var(--on-navy); max-width: 52ch; }
.hero-band .eyebrow { color: #79b7de; }
.hero-copy { max-width: 44rem; }
.chip { display: inline-flex; align-items: center; margin-bottom: 1.4rem; padding: .38rem .62rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r); background: rgba(255, 255, 255, .1); color: #cfe6f6; font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.fact-row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: -2.6rem; border: 1px solid var(--line); background: var(--paper); }
.fact { padding: 1.15rem 1.3rem; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact dt { color: var(--muted); font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.fact dd { margin: .4rem 0 0; color: var(--ink); font-size: 1.3rem; font-weight: 750; letter-spacing: -.022em; line-height: 1.15; }
.fact dd small { display: block; margin-top: .18rem; color: var(--muted); font-size: .8rem; font-weight: 500; letter-spacing: 0; }
.band { margin-top: 3.25rem; }
.band-head { padding-bottom: 1rem; border-bottom: 1px solid var(--line-strong); margin-bottom: 0; }
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-top: 0; background: var(--paper); }
.step { padding: 1.5rem 1.4rem; border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; }
.step-num { display: block; margin-bottom: .8rem; color: var(--deca-blue); font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .15em; }
.step h3 { margin-bottom: .45rem; }
.step p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }

/* ---------- surfaces ---------- */
.card, .hero-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; }
.card { padding: clamp(1.15rem, 2.4vw, 1.65rem); }
.card + .card { margin-top: 1rem; }
.auth-shell { max-width: 480px; margin: 4vh auto; }
.stack { display: grid; gap: 1rem; }
.dashboard-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 1rem; align-items: start; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.4rem; }
.page-head h1 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); max-width: 22ch; margin-bottom: .4rem; letter-spacing: -.03em; }
.page-head .button-row { margin-top: 0; }
.section-label { display: flex; align-items: center; gap: .85rem; margin: 1.9rem 0 .9rem; color: var(--muted); font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.section-label::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.empty { padding: 1.4rem; text-align: center; color: var(--muted); font-size: .9rem; background: var(--wash); border: 1px dashed var(--line-strong); border-radius: var(--r); }

/* ---------- metrics ---------- */
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 1rem; border: 1px solid var(--line); background: var(--paper); }
.operations-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { padding: 1.05rem 1.25rem; border-left: 1px solid var(--line); }
.metric:first-child { border-left: 0; }
.metric strong { display: block; color: var(--ink); font-size: 1.9rem; font-weight: 780; letter-spacing: -.035em; line-height: 1.1; }
.metric span { display: block; margin-top: .2rem; color: var(--muted); font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.metric .fine { margin-top: .3rem; font-size: .78rem; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .38rem; }
.field.full { grid-column: 1 / -1; }
label, legend { color: var(--ink); font-size: .86rem; font-weight: 650; }
legend { padding: 0; margin-bottom: .55rem; }
input, select, textarea { width: 100%; min-height: 42px; padding: .62rem .7rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r); }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
fieldset { border: 0; padding: 0; margin: 0; }
.choice-list { display: grid; gap: .4rem; }
.choice { display: flex; gap: .65rem; align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.choice:hover { border-color: var(--line-strong); }
.choice input { width: 17px; min-height: 17px; margin-top: .12rem; accent-color: var(--deca-blue); }
.choice label { flex: 1; font-weight: 500; }
.choice label strong { font-weight: 700; }
.inline-form { display: flex; align-items: end; gap: .75rem; margin: 1rem 0; }
.inline-form .field { width: min(220px, 100%); }
.compact-input { min-width: 74px; width: 88px; }

/* ---------- signup layout ---------- */
.signup-layout { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: 1.25rem; align-items: start; }
.signup-aside { position: sticky; top: 84px; padding: 1.5rem 1.4rem; border-radius: var(--r); background: var(--navy); color: #fff; }
.signup-aside h2 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.aside-label { margin-bottom: 1rem; color: var(--on-navy-dim); font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.aside-step { margin-bottom: 1.05rem; padding: .1rem 0 .1rem .85rem; border-left: 2px solid var(--deca-blue); }
.aside-step strong { display: block; margin-bottom: .18rem; color: #fff; font-size: .89rem; font-weight: 650; }
.aside-step span { color: var(--on-navy); font-size: .81rem; line-height: 1.5; }
.aside-foot { margin-top: 1.4rem; padding-top: 1.05rem; border-top: 1px solid var(--navy-line); color: var(--on-navy); font-size: .8rem; line-height: 1.55; }

/* ---------- numbered form sections ---------- */
.form-section { margin-top: 1.7rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.form-section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section-head { display: flex; align-items: baseline; gap: .55rem; margin-bottom: 1rem; color: var(--muted); font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.form-section-head b { color: var(--deca-blue); font-weight: 600; }
.form-section-note { margin: -.45rem 0 1rem; color: var(--muted); font-size: .86rem; line-height: 1.5; }

/* ---------- option cards, chips, segmented ---------- */
.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); gap: .6rem; }
.option, .chip-option, .seg { position: relative; }
.option input, .chip-option input, .seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.option label { display: block; padding: .95rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--paper); cursor: pointer; }
.option label:hover, .chip-option label:hover { border-color: var(--muted); }
.option input:checked + label { border-color: var(--deca-blue); background: var(--blue-wash); box-shadow: inset 0 0 0 1px var(--deca-blue); }
.option input:focus-visible + label, .chip-option input:focus-visible + label { outline: 2px solid var(--deca-blue); outline-offset: 2px; }
.option-title { display: block; color: var(--ink); font-size: .95rem; font-weight: 700; }
.option-meta { display: block; margin-top: .25rem; color: var(--muted); font-size: .8rem; }
.sr-legend { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.scroll-list { max-height: 19rem; overflow-y: auto; padding: .55rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--wash); }
.chip-set { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip-option label { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--paper); color: var(--ink); font-size: .88rem; font-weight: 600; cursor: pointer; }
.chip-option input:checked + label { border-color: var(--deca-blue); background: var(--deca-blue); color: #fff; }
.chip-option input:checked + label::after { content: "\2713"; font-weight: 700; }
.segmented { display: inline-flex; max-width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; }
.seg label { display: block; padding: .6rem .85rem; border-left: 1px solid var(--line-strong); background: var(--paper); color: var(--muted); font-size: .86rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.seg:first-child label { border-left: 0; }
.seg label:hover { background: var(--wash); color: var(--ink); }
.seg input:checked + label { background: var(--ink); color: #fff; }
.seg input:focus-visible + label { outline: 2px solid var(--deca-blue); outline-offset: -2px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .72rem .8rem; vertical-align: top; }
th { color: var(--muted); font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
td { border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfc; }
.operations-table { min-width: 1050px; }
.plan-table { min-width: 1120px; }
.plan-table td:first-child { min-width: 260px; }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.summary-line:last-child { border-bottom: 0; }
.summary-line strong { color: var(--ink); font-weight: 700; }

/* ---------- badges, progress, links ---------- */
.badge { display: inline-flex; align-items: center; border-radius: var(--r); padding: .26rem .48rem; color: var(--blue-deep); background: var(--blue-wash); border: 1px solid var(--blue-line); font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.badge.warn { color: var(--amber); background: var(--amber-wash); border-color: #e8cf9a; }
.badge.solid { color: #fff; background: var(--ink); border-color: var(--ink); }
.progress { height: 5px; overflow: hidden; margin-top: .4rem; border-radius: 0; background: #e6eaee; }
.progress span { height: 100%; display: block; background: var(--deca-blue); }
.link-box { display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem; background: var(--wash); border: 1px solid var(--line); border-radius: var(--r); }
.link-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: .72rem; }

/* ---------- tabs (auth + segmented) ---------- */
.tabs { display: inline-flex; gap: 0; margin-bottom: 1.2rem; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; }
.tab { border: 0; border-left: 1px solid var(--line-strong); border-radius: 0; padding: .5rem .9rem; cursor: pointer; color: var(--muted); background: var(--paper); font-size: .88rem; font-weight: 600; }
.tabs .tab:first-child { border-left: 0; }
.tab:hover { background: var(--wash); color: var(--ink); }
.tab.active { color: #fff; background: var(--ink); }

/* ---------- admin shell ---------- */
.admin-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); margin: -2.25rem calc(50% - 50vw) -5rem; min-height: calc(100vh - 68px); background: var(--paper); border-top: 1px solid var(--line); }
.admin-sidebar { display: flex; flex-direction: column; padding: 1.4rem 0 1.25rem; background: var(--navy); color: #fff; }
.sidebar-brand { display: flex; align-items: center; gap: .55rem; padding: 0 1.15rem 1.35rem; color: #fff; font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.sidebar-brand img { width: 18px; height: 18px; filter: brightness(0) invert(1); opacity: .9; }
.sidebar-group { margin-bottom: 1.35rem; }
.sidebar-group h2 { margin: 0 0 .45rem; padding: 0 1.15rem; color: var(--on-navy-dim); font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.sidebar-link { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; text-align: left; border: 0; border-left: 3px solid transparent; background: transparent; color: var(--on-navy); padding: .52rem 1.15rem; font-size: .9rem; font-weight: 550; cursor: pointer; }
.sidebar-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar-link.active { background: var(--deca-blue); border-left-color: #fff; color: #fff; font-weight: 700; }
.sidebar-count { border-radius: var(--r); padding: .1rem .34rem; background: rgba(255, 255, 255, .18); font-family: var(--mono); font-size: .64rem; font-weight: 600; }
.sidebar-link.active .sidebar-count { background: rgba(0, 0, 0, .25); }
.sidebar-foot { margin-top: auto; padding: 1rem 1.15rem 0; border-top: 1px solid var(--navy-line); color: var(--on-navy-dim); font-size: .78rem; line-height: 1.45; }
.sidebar-foot strong { display: block; margin-top: .15rem; color: #fff; font-size: .85rem; font-weight: 650; }
.sidebar-role { display: block; margin-top: .1rem; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }
.admin-main { min-width: 0; padding: 1.9rem max(1.25rem, calc((100vw - 1500px) / 2)) 4rem; }
.admin-section { min-height: 22rem; }
.admin-nav { display: none; }

/* ---------- lists ---------- */
.task-list, .communication-list { display: grid; gap: .5rem; }
.task-item, .communication-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.task-item h3 { margin: .45rem 0 .25rem; }
.task-item.is-done { opacity: .55; }
.task-actions select { min-width: 130px; }
.communication-item { align-items: center; }
.action-stack, .task-actions { display: flex; flex-direction: column; align-items: stretch; gap: .4rem; }
.action-stack .button { white-space: nowrap; }
.plain-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .35rem; }
.day-card { border-left: 3px solid var(--deca-blue); }

/* ---------- notices ---------- */
.notice { margin: 1rem 0; padding: .85rem 1rem; border: 1px solid var(--line); border-left: 3px solid var(--deca-blue); border-radius: var(--r); background: var(--wash); color: var(--ink); font-size: .9rem; line-height: 1.55; }
.notice strong { font-weight: 700; }
.notice.success, .success { border-left-color: var(--green); background: var(--green-wash); color: #0d4b44; }
.notice.error, .error { border-left-color: var(--red); background: var(--red-wash); color: #7c242d; }
.alert-banner { border-left: 3px solid var(--red); }
.alert-banner .task-item { align-items: flex-start; }
.email-preview { margin-top: .75rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--wash); }
.email-preview pre { margin: .5rem 0 0; white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: .82rem; line-height: 1.6; color: var(--ink); }
.toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; max-width: min(380px, calc(100vw - 2rem)); padding: .8rem 1rem; border-radius: var(--r); color: white; background: var(--ink); transform: translateY(140%); transition: transform .18s; }
.toast.show { transform: translateY(0); }

/* ---------- assignment board ---------- */
.assignment-event { overflow: hidden; }
.coverage-count { display: grid; gap: .22rem; justify-items: end; text-align: right; }
.coverage-count strong { font-size: 1.35rem; font-weight: 780; letter-spacing: -.03em; }
.assignment-event .inline-form { align-items: end; margin: 1rem 0; }
.recommendation-box { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0; padding: .95rem 1.1rem; border: 1px solid var(--blue-line); border-left: 3px solid var(--deca-blue); border-radius: var(--r); background: var(--blue-wash); }
.recommendation-box h4 { margin: .35rem 0 .2rem; }

/* ---------- utilities (kept as classes: a strict CSP blocks style attributes) ---------- */
.mt-sm { margin-top: .5rem; }
.mt-md { margin-top: .75rem; }
.mt-lg { margin-top: 1rem; }
.mt-xl { margin-top: 1.25rem; }
.justify-end { justify-content: end; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .admin-shell { grid-template-columns: 1fr; min-height: 0; }
  .admin-sidebar { flex-direction: row; overflow-x: auto; padding: .5rem .75rem; gap: .5rem; }
  .sidebar-brand, .sidebar-foot { display: none; }
  .sidebar-group { display: flex; align-items: center; gap: .35rem; margin-bottom: 0; }
  .sidebar-group h2 { display: none; }
  .sidebar-link { width: auto; white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; padding: .5rem .7rem; }
  .sidebar-link.active { border-left: 0; border-bottom-color: #fff; }
  .admin-main { padding: 1.5rem 1.25rem 3rem; }
}
@media (max-width: 980px) {
  .signup-layout { grid-template-columns: 1fr; }
  .signup-aside { position: static; order: -1; }
}
@media (max-width: 850px) {
  .dashboard-grid, .step-grid, .fact-row { grid-template-columns: 1fr; }
  .operations-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact, .step { border-left: 0; border-top: 1px solid var(--line); }
  .fact:first-child, .step:first-child { border-top: 0; }
  .fact-row { margin-top: -1.75rem; }
  .page-head { display: block; }
  .page-head .button-row { margin-top: 1rem; }
  .metric:nth-child(-n + 2) { border-top: 0; }
  .metric { border-top: 1px solid var(--line); }
  .metric:nth-child(odd) { border-left: 0; }
}
@media (max-width: 580px) {
  .site-header { height: 60px; }
  main { width: min(100% - 1.25rem, 1240px); padding-top: 1.25rem; }
  .hero-band, .admin-shell { margin-top: -1.25rem; }
  .form-grid, .metric-grid, .operations-metrics { grid-template-columns: 1fr; }
  .metric { border-left: 0; }
  .inline-form, .task-item, .communication-item { align-items: stretch; flex-direction: column; }
  .field.full { grid-column: auto; }
  .brand-logo { width: 82px; }
  .brand-context { padding-left: .7rem; }
  .hero-band::after { opacity: .12; right: -22vw; width: 90vw; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

.table-filter { display: flex; flex-wrap: wrap; gap: .75rem; margin: .8rem 0; }
.table-filter label { display: flex; align-items: center; gap: .45rem; font-size: .86rem; }
tr[hidden] { display: none; }

@media print {
  @page { margin: .55in; }
  body { background: #fff; color: #000; font-size: 10pt; }
  .site-header, .admin-sidebar, .button, button, .button-row, .table-filter,
  .operations-metrics, .alert-banner, .skip-link, #toast, .action-stack { display: none !important; }
  main, .admin-shell, .admin-main, .admin-section { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
  .card { border: 0; box-shadow: none; break-inside: avoid; padding: .2rem 0; }
  .table-wrap { overflow: visible; }
  table { width: 100%; border-collapse: collapse; }
  th, td { border-bottom: 1px solid #bbb; padding: .25rem; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
  [data-table-filter] [data-filter-count] { display: none; }
}
