:root {
  --side: #0C2A23; --canvas: #F3F5F4; --surface: #FFFFFF; --ink: #101917; --ink2: #3F4C47; --muted: #5E6B66;
  --line: #DFE5E2; --line2: #ECF0EE; --hover: #F6F8F7; --green: #0E7C61; --green-dark: #0A6650; --coral-ink: #A5451A;
  --side-ink: #DCE8E3; --side-muted: #93ABA3; --side-active: #17423A; --side-line: #1D4A40;
  --sans: "Geist", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --green2: #7CC2AD; --track: #E4EAE7; --pace: #B4C0BB; --coral: #D2622A;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding: 84px 0; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.5 var(--sans); }
h1, h2, p { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.door { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.door .brand { background: var(--side); color: #DCE8E3; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
/* The full-name logo: the peach stands taller than the letters and the name is tucked against it. Every size is in em, so it scales as one piece. */
.door .brand .name { display: flex; align-items: center; gap: 0.14em; font-weight: 600; font-size: 22px; line-height: 1; color: #DCE8E3; letter-spacing: -0.02em; }
.door .brand .name img, .made img { flex: none; display: block; height: 1.86em; width: auto; transform: translateY(-0.1em); }
.door .brand h1 { font-size: 34px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; color: #fff; max-width: 14ch; }
.door .brand p { margin-top: 14px; max-width: 38ch; color: #B9CEC7; }
.door .brand small { color: #93ABA3; font-size: 13px; }
.door .panel { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.card { width: 100%; max-width: 400px; }
.card h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.card .sub { color: var(--ink2); margin-top: 6px; }
.stack { display: grid; gap: 14px; margin-top: 24px; }
label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.field { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #A9B6B0; border-radius: 8px; background: var(--surface); }
.btn { height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--green); background: var(--green); color: #fff; font-weight: 600; width: 100%; }
.btn:hover { background: var(--green-dark); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn.plain { background: var(--surface); color: var(--ink); border-color: #C9D2CE; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 500; }
.btn.plain:hover { background: #F8FAF9; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.link { border: 0; background: none; padding: 0; color: var(--green); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.msg { font-size: 14px; padding: 10px 12px; border-radius: 8px; background: #FBEEE7; color: var(--coral-ink); }
.msg.good { background: #E6F1EC; color: #0A5C48; }
.hint { color: var(--muted); font-size: 13px; }
.center { text-align: center; }

/* ---------- the signed-in app: menu on the left, bar across the top, page below ---------- */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; font-size: 14px; line-height: 1.45; }
.shell h2, .shell h3, .shell dl, .shell dd { margin: 0; }
.side { background: var(--side); color: var(--side-ink); padding: 14px 12px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side :focus-visible { outline-color: #fff; }
.side .close { display: none; }
.org { display: flex; align-items: center; gap: 10px; padding: 8px; }
.org .badge, .org .mark { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.org .badge { background: #E6F1EC; color: var(--side); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.org .mark { background: #fff; object-fit: contain; padding: 3px; }
/* A district with a logo: the logo sits above the name, at a size people can read. */
.org.tall { flex-direction: column; align-items: flex-start; gap: 10px; }
.org.tall .mark { width: auto; height: auto; max-width: 100%; max-height: 96px; padding: 8px; border-radius: 10px; }
.org strong { display: block; font-weight: 600; font-size: 14px; line-height: 1.25; color: #fff; overflow-wrap: anywhere; }
.org span span { font-size: 12.5px; color: var(--side-muted); }
.nav { margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--side-line); display: grid; gap: 2px; }
.nav a, .side .foot a, .side .foot button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: none; color: var(--side-ink); font-weight: 500; text-align: left; text-decoration: none; }
.nav a:hover, .side .foot a:hover, .side .foot button:hover { background: #12362E; }
.nav a[aria-current="page"], .side .foot a[aria-current="page"] { background: var(--side-active); color: #fff; }
.side .foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--side-line); display: grid; gap: 2px; }
.who { padding: 10px 10px 6px; font-size: 12.5px; color: var(--side-muted); }
.made { display: flex; align-items: center; gap: 0.14em; margin-top: 8px; padding: 14px 10px 4px; border-top: 1px solid var(--side-line); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: #DCE8E3; }
.who strong { display: block; color: var(--side-ink); font-weight: 500; font-size: 13.5px; overflow-wrap: anywhere; }
.who span { display: block; }

.top { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 28px; display: flex; align-items: center; gap: 12px; min-height: 61px; }
.top h1 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.top .where p { font-size: 12.5px; color: var(--muted); }
.menu { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); align-items: center; justify-content: center; }
.scrim { position: fixed; inset: 0; z-index: 20; background: rgba(16, 25, 23, .45); }
.shell main { padding: 24px 28px 72px; max-width: 1280px; }
.shell main:focus, #i-review:focus { outline: none; }

.shell .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.shell .panel + .panel { margin-top: 16px; }
.shell .panel > header { padding: 16px 20px 0; }
.shell .panel h2 { font-size: 15px; font-weight: 600; }
.shell .panel > header p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.shell .panel .body { padding: 16px 20px 20px; }
.empty { padding: 40px 28px 44px; max-width: 64ch; }
.shell .panel .empty h2 { font-size: 18px; }
.empty p { color: var(--ink2); margin-top: 8px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.empty .row { margin-top: 18px; }
.shell a.btn { display: inline-flex; align-items: center; text-decoration: none; }

.shell .btn { height: 36px; width: auto; padding: 0 14px; font-weight: 500; }
.shell .btn.ghost { background: var(--surface); color: var(--ink); border-color: #C9D2CE; }
.shell .btn.ghost:hover { background: var(--hover); }
.shell .btn[disabled] { opacity: .5; }
.shell .field { height: 36px; padding: 0 10px; }
.shell .field:disabled { background: var(--hover); color: var(--ink2); }
.shell label, .shell .label { display: block; font-weight: 500; font-size: 13.5px; margin-bottom: 6px; }
.field[aria-invalid="true"] { border-color: var(--coral-ink); }
.mono { font-family: Consolas, "Courier New", monospace; }

/* ---------- tables and the Imports page ---------- */
.shell .panel > header.split { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.shell .panel .flush { padding: 10px 0 4px; }
.scroll { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t th { font-weight: 500; font-size: 12.5px; color: var(--muted); text-align: right; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { height: 44px; padding: 0 12px; border-bottom: 1px solid var(--line2); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t th:first-child, .t td:first-child { text-align: left; padding-left: 20px; }
.t th:last-child, .t td:last-child { padding-right: 20px; }
.t th.l, .t td.l { text-align: left; }
.t td.wrap { white-space: normal; min-width: 180px; padding-top: 10px; padding-bottom: 10px; }
.t tbody tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: var(--hover); }
.t abbr { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.t details summary { cursor: pointer; }
.t details p { margin-top: 6px; color: var(--ink2); max-width: 46ch; }
.t .mono, .facts .mono, .panel header .mono { font-size: 12.5px; }
.st { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); }
.st svg { flex: none; }
.st.off { color: var(--muted); }
.st.flag { color: var(--coral-ink); font-weight: 500; }
.t tr.gone td { color: var(--muted); }
.t tr.gone .st { margin-left: 6px; }
.t tr.gone .btn { margin-left: 8px; }
.t td .btn { height: 30px; padding: 0 10px; font-size: 13px; }
.shell .btn.danger { background: var(--coral-ink); border-color: var(--coral-ink); color: #fff; }
.confirm p { max-width: 64ch; }
.confirm p + p { margin-top: 10px; font-weight: 500; }
.pad { padding: 0 20px; }
.status.pad { margin: 10px 0 0; }
.status.pad:empty { display: none; }
.narrow-only { display: none; }
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line2); }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--muted); }
.stop { display: flex; gap: 8px; align-items: flex-start; color: var(--coral-ink); font-weight: 500; margin-bottom: 12px; max-width: 80ch; }
.stop svg { flex: none; margin-top: 3px; }
.problems { margin: 0; padding: 0 0 0 28px; max-height: 340px; overflow-y: auto; }
.problems li { padding: 8px 0; border-bottom: 1px solid var(--line2); max-width: 100ch; }
.problems li:last-child { border-bottom: 0; }
.problems + .hint { margin-top: 8px; }
.reason { margin-top: 18px; max-width: 70ch; }
.reason textarea.field { height: auto; min-height: 84px; padding: 8px 10px; display: block; resize: vertical; }
.reason .hint { margin-top: 5px; }
.shell .panel + .savebar { margin-top: 16px; }

/* ---------- Settings ---------- */
.settings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 24px; align-items: start; }
.settings .f + .f, .settings .two + .f, .settings .three + .f, .settings .f + .two, .settings .f + .three, .settings .two + .two, .settings .three + .two { margin-top: 14px; }
.settings .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.settings .three { display: grid; grid-template-columns: minmax(0, 2fr) 76px minmax(0, 1fr); gap: 14px; }
.settings .two .f + .f, .settings .three .f + .f { margin-top: 0; }
.settings fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.lede { color: var(--ink2); margin-bottom: 14px; max-width: 70ch; }
.req { color: var(--muted); font-weight: 400; }
.settings .hint.after { margin: 10px 0 14px; }
.settings .hint:empty { display: none; }
.settings .hint { margin-top: 5px; }
.err { margin-top: 5px; font-size: 13px; color: var(--coral-ink); font-weight: 500; }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; color: var(--ink2); margin-bottom: 16px; }
.logo-row { display: flex; gap: 14px; align-items: center; }
.logo-box { width: 72px; height: 72px; flex: none; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); display: grid; place-items: center; overflow: hidden; }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 6px; }
.logo-box span { font-weight: 700; font-size: 20px; color: var(--muted); }
.swatch { display: flex; gap: 8px; }
.swatch input[type="color"] { width: 44px; height: 36px; padding: 2px; border: 1px solid #C9D2CE; border-radius: 8px; background: var(--surface); cursor: pointer; flex: none; }
.swatch .field { width: 108px; text-transform: uppercase; }
.savebar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 16px; position: sticky; bottom: 0; background: var(--canvas); padding: 12px 0; border-top: 1px solid var(--line); }
.status { color: var(--ink2); margin-left: 6px; outline: none; }
#s-sheet-notes .hint { margin-top: 8px; }
.status.bad { color: var(--coral-ink); font-weight: 500; }
.preview { position: sticky; top: 85px; }

/* ---------- People, a tab in Settings ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -6px 0 20px; }
.tabs a { padding: 10px 14px; margin-bottom: -1px; color: var(--ink2); font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--green); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.t.pp th, .t.pp td { padding-left: 10px; padding-right: 10px; }
.t.pp th:first-child, .t.pp td:first-child { padding-left: 20px; }
.t.pp th:last-child, .t.pp td:last-child { padding-right: 20px; }
.t.pp td.wrap { min-width: 140px; }
.t.pp td.since { min-width: 172px; }
.t.pp .rsub .link { display: block; text-align: left; font-size: 12.5px; }
.t.pp .rsub .pending, .t.pp .rsub .sent, .t.pp .rsub .row-bad { display: block; font-size: 12.5px; }
.t.pp .rsub .pending { color: var(--muted); }
.t.pp .rsub .sent { color: #0A5C48; font-weight: 500; }
.t.pp .rsub .row-bad { color: var(--coral-ink); font-weight: 500; white-space: normal; margin-top: 2px; }
.t.pp th.two { white-space: normal; width: 104px; line-height: 1.25; }
.t.pp .narrow-only { display: none; }            /* the role and areas under the email, for a phone only */
.acts { display: inline-flex; gap: 6px; }
.said { padding: 0 20px 14px; margin: 0; color: #0A5C48; font-weight: 500; outline: none; }
.said.bad { color: var(--coral-ink); }
.said:empty { display: none; }
.person-form { max-width: 760px; }
.person-form .f + .f { margin-top: 18px; }
.person-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.person-form fieldset:disabled { opacity: .75; }
.person-form legend { padding: 0; font-weight: 500; font-size: 13.5px; margin-bottom: 6px; }
.person-form .hint { margin: 0 0 6px; }
.person-form .sub { font-weight: 500; font-size: 13.5px; margin-top: 12px; }
.person-form .hint.none { margin-bottom: 4px; }
.person-form input[type="radio"], .person-form input[type="checkbox"] { accent-color: var(--green); width: 16px; height: 16px; margin: 2px 0 0; flex: none; }
.person-form .field.narrowish { max-width: 420px; }
.fixed { font-weight: 500; }
.choices { border: 1px solid var(--line); border-radius: 8px; }
.shell .choices label { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 12px; font-weight: 400; cursor: pointer; }
.choices label + label { border-top: 1px solid var(--line2); }
.choices label:hover { background: var(--hover); }
.shell .choices label.off { color: var(--muted); cursor: default; }
.shell .choices label.off:hover { background: none; }
.choices strong { font-weight: 500; display: block; }
.choices span span { display: block; color: var(--muted); font-size: 13px; }
.shell label.tick { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-weight: 400; cursor: pointer; }
.shell label.tick.off { color: var(--muted); cursor: default; }
.tick strong { font-weight: 500; display: block; }
.tick span span { display: block; color: var(--muted); font-size: 13px; }
.areas { border: 1px solid var(--line); border-radius: 8px; padding: 6px 4px; columns: 2; column-gap: 0; }
.shell .areas label { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 6px 8px; font-weight: 400; break-inside: avoid; cursor: pointer; border-radius: 6px; }
.areas label:hover { background: var(--hover); }
.areas .code { font-variant-numeric: tabular-nums; color: var(--ink2); flex: none; width: 4ch; }
.row.gap { margin-top: 16px; }
@media (max-width: 900px) {
  .areas { columns: 1; }
  .shell .areas label, .shell .choices label { min-height: 44px; align-items: center; }
  .t.pp td.since { min-width: 0; }
  .t.pp .narrow-only { display: block; }
  .t.pp th:first-child, .t.pp td:first-child { padding-left: 16px; }
  .acts { flex-direction: column; }
}

/* the sample page inside the preview: printed paper, so black on white with the district's two colors */
.sheet { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 20px 18px 14px; color: #101917; font-size: 12.5px; line-height: 1.4; overflow-x: auto; }
.sheet p { margin: 0; }
.sh-head { display: flex; gap: 12px; align-items: center; }
.sh-head img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.sh-name { font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.sh-small { color: #5E6B66; font-size: 11.5px; margin-top: 2px; overflow-wrap: anywhere; }
.sh-title { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-top: 16px; padding-top: 12px; border-top: 1px solid #DFE5E2; }
.sh-report { font-size: 13.5px; font-weight: 600; }
.sh-through { color: #3F4C47; font-size: 11.5px; white-space: nowrap; padding-top: 2px; }
.sh-def { margin-top: 7px; }
.sh-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-variant-numeric: tabular-nums; }
.sh-table th { font-weight: 600; text-align: right; padding: 6px 8px; font-size: 11px; }
.sh-table td { text-align: right; padding: 7px 8px; border-bottom: 1px solid #ECF0EE; white-space: nowrap; }
.sh-table th:first-child, .sh-table td:first-child { text-align: left; white-space: normal; }
.sh-bar { display: inline-block; width: 48px; height: 6px; border-radius: 3px; background: #E4EAE7; margin-right: 8px; vertical-align: middle; overflow: hidden; }
.sh-bar i { display: block; height: 100%; }
.sh-people { display: grid; gap: 4px; margin: 14px 0 0; padding-top: 10px; border-top: 1px solid #DFE5E2; }
.sh-people div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.sh-people dt { color: #5E6B66; font-size: 11.5px; }
.sh-people dd { font-weight: 600; margin: 0; text-align: right; overflow-wrap: anywhere; }
.sh-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 8px; border-top: 1px solid #DFE5E2; color: #5E6B66; font-size: 11px; }
.sh-foot div p + p { margin-top: 2px; }
.sh-foot p:last-child { flex: none; }

/* ---------- Overview ---------- */
.muted { color: var(--muted); }
.fine { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.ov-pick { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink2); margin-bottom: 14px; min-height: 36px; }
.shell .ov-pick label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; font-size: 13.5px; color: var(--muted); }
.ov-pick select { height: 36px; max-width: 100%; border: 1px solid #C9D2CE; border-radius: 8px; background: var(--surface); padding: 0 8px; font: inherit; font-weight: 500; color: var(--ink); }
.verdict h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.verdict p { margin-top: 6px; color: var(--ink2); font-size: 15px; max-width: 78ch; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; margin: 20px 0 16px; align-items: start; }
.shell .grid2 .panel + .panel { margin-top: 0; }
.keys { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink2); }
.keys span { display: inline-flex; align-items: center; gap: 6px; }
.key { display: inline-block; width: 18px; height: 2px; border-radius: 1px; }
.key.run { background: var(--green); }
.key.even { background: var(--pace); }
.key.dots { height: 0; border-top: 2px dotted var(--green); }
.tickkey { display: inline-block; width: 2px; height: 14px; border-radius: 1px; background: var(--ink); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.sw.s { background: var(--green); }
.sw.p { background: var(--green2); }
.sw.l { background: var(--track); }
.ov-foot { padding: 12px 20px; margin: 0; border-top: 1px solid var(--line2); }
.ov-more { margin-top: 14px; }
.ov-notice { margin: 0 0 12px; font-size: 13.5px; }
.shell .panel > header.alone { padding-bottom: 16px; }
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 10px; padding: 14px 20px; border-radius: 10px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary:hover { background: var(--hover); }
.fold > summary .chev { flex: none; margin-top: 4px; color: var(--muted); transition: transform .12s; }
.fold[open] > summary .chev { transform: rotate(90deg); }
.fold > summary p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.fold[open] > summary { border-bottom: 1px solid var(--line2); border-radius: 10px 10px 0 0; }
.fold .help { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 12px 20px 0; font-size: 13px; color: var(--muted); }
.fold .help .status { margin: 0; font-size: 13px; }
.shell .btn.small { height: 30px; padding: 0 10px; font-size: 13px; }
.ov-copy { margin-top: 12px; }
.ov-copy .status, .ov-copied { font-size: 13px; }
.ov-copied { margin: 0 0 10px; }
.ov-copied:empty { display: none; }
.shell details.panel + .panel, .shell .panel + details.panel { margin-top: 16px; }
.ov-source { margin-top: 16px; }
.ov-source summary { list-style: none; cursor: pointer; width: fit-content; max-width: 100%; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.ov-source summary::-webkit-details-marker { display: none; }
.ov-source summary .mono { font-size: 12px; }
.ov-source .more { color: var(--green); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.ov-source[open] summary { margin-bottom: 10px; }
.verdict + .ov-warn { margin: 10px 0 0; }
.ov-warn { font-size: 14px; }
.ov-warn .link { margin-left: 2px; white-space: nowrap; }
a.link { color: var(--green); font-weight: 500; text-underline-offset: 3px; }

.ov-chart { display: block; }
.ov-chart text { font-family: var(--sans); }
.ov-chart .ax { font-size: 11.5px; fill: var(--muted); }
.ov-chart .ax.now { fill: var(--ink); font-weight: 600; }
.ov-chart .lb { font-size: 12px; fill: var(--ink2); }
.ov-chart .lbs { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.ov-chart .grid { stroke: var(--line2); }
.ov-chart .budget { stroke: var(--ink); stroke-width: 1; }
.ov-chart .even { stroke: var(--pace); stroke-width: 2; stroke-linecap: round; }
.ov-chart .area { fill: var(--green); opacity: .1; }
.ov-chart .run { fill: none; stroke: var(--green); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ov-chart .ahead { stroke: var(--green); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.ov-chart .dot { fill: var(--green); stroke: #fff; stroke-width: 2; }
.ov-chart .end { fill: #fff; stroke: var(--green); stroke-width: 2; }
details.nums { margin-top: 10px; font-size: 13px; }
details.nums summary { color: var(--green); font-weight: 500; cursor: pointer; width: fit-content; }
.mini { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.mini th { font-weight: 500; color: var(--muted); font-size: 12.5px; text-align: right; padding: 4px 0 6px 10px; border-bottom: 1px solid var(--line); }
.mini td { text-align: right; padding: 8px 0 8px 10px; border-bottom: 1px solid var(--line2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini th:first-child, .mini td:first-child { text-align: left; padding-left: 0; white-space: normal; }
.mini tr:last-child td { border-bottom: 0; }

.seg3 { display: flex; gap: 2px; height: 28px; }
.seg3 div { border-radius: 4px; min-width: 4px; display: flex; align-items: center; padding: 0 8px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.seg3 .a { background: var(--green); color: #fff; }
.seg3 .b { background: var(--green2); padding: 0; }
.seg3 .c { background: var(--track); color: var(--ink); }
.rows { width: 100%; border-collapse: collapse; margin-top: 12px; }
.rows th { text-align: left; font-weight: 400; padding: 6px 0; }
.rows th .sw { margin-right: 8px; }
.rows td { text-align: right; padding: 6px 0 6px 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rows tr + tr { border-top: 1px solid var(--line2); }
.rows tr.total th, .rows tr.total td { font-weight: 600; border-top: 1px solid var(--line); }
.ov-split { border-top: 1px solid var(--line); margin: 14px -20px 0; padding: 14px 20px 0; }
.ov-split h3 { font-size: 13.5px; font-weight: 600; }
.thin { height: 8px; border-radius: 4px; background: var(--track); margin: 10px 0 8px; overflow: hidden; }
.thin i { display: block; height: 100%; background: var(--green); border-radius: 4px; }

.used { display: inline-flex; align-items: center; gap: 10px; }
.used b { font-weight: 500; min-width: 48px; text-align: right; }
.bar { display: block; flex: none; }
.bar .track { fill: var(--track); }
.bar .s { fill: var(--green); }
.bar.over .s { fill: var(--coral); }
.bar .p { fill: var(--green2); }
.bar .tick { fill: var(--ink); }
.t td strong { font-weight: 600; }
.rsub { display: block; color: var(--ink2); font-size: 12.5px; font-weight: 400; }
.msub { display: none; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.over-amt, .rsub.over-amt { color: var(--coral-ink); font-weight: 500; }

@media (max-width: 1080px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .verdict h2 { font-size: 21px; }
  .msub { display: block; }
  .used { gap: 8px; }
  .used .bar { width: 64px; height: 16px; }
  .used b { min-width: 44px; }
  .ov-foot { padding: 12px 16px; }
  .shell .btn.small { height: 40px; }
  .ov-split { margin: 14px -20px 0; }
}

@media (max-width: 1100px) {
  .settings { grid-template-columns: minmax(0, 1fr); }
  .preview { position: static; }
}
@media (max-width: 900px) {
  .shell { display: block; }
  .side { position: fixed; left: 0; top: 0; width: 264px; z-index: 30; transform: translateX(-100%); transition: transform .16s; }
  .side.show { transform: none; }
  .menu { display: inline-flex; width: 44px; height: 44px; }
  .side .close { display: inline-flex; align-self: flex-end; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: none; color: var(--side-ink); flex: none; }
  .nav a, .side .foot a, .side .foot button { min-height: 44px; }
  .top { padding: 10px 16px; }
  .shell main { padding: 16px 16px 64px; }
  .shell .btn, .shell .field, .swatch input[type="color"] { height: 44px; }
  .hm, .wide-only { display: none; }
  .narrow-only { display: block; }
  .narrow-only.pad { margin-top: 10px; }
  .t td { height: auto; padding: 10px 8px; }
  .t th { padding-left: 8px; padding-right: 8px; }
  .t th:first-child, .t td:first-child { padding-left: 16px; }
  .pad { padding: 0 16px; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 560px) {
  .settings .two, .settings .three { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* shown when a newer version is live; covers the old screen completely so stale numbers cannot be read */
.update { position: fixed; inset: 0; z-index: 1000; background: var(--canvas); display: flex; align-items: center; justify-content: center; padding: 20px; }

@media (max-width: 860px) {
  .door { grid-template-columns: 1fr; }
  .door .brand { padding: 24px 20px; gap: 18px; }
  .door .brand h1 { font-size: 24px; max-width: none; }
  .door .brand small { display: none; }
}
