:root { --bg: #F5F5F1; --surface: #FFFFFF; --ink: #0B0D10; --muted: #4A4F57; --line: #E2E1DB; --brand: #0B0D10; --brand-ink: #FFFFFF; --accent: #3B5F00; --signal: #C8F560;
  --ok-bg: #E2F3EA; --ok: #0F5132; --warn-bg: #FFF0D6; --warn: #6B4100; --bad-bg: #FDE2E1; --bad: #8A1C17; --info-bg: #E3EDFB; --info: #123E7A; color-scheme: light; }
[hidden] { display: none !important; }
@media (prefers-color-scheme: dark) { .btn.primary, .cap .btn.primary { background: #C8F560; border-color: #C8F560; color: #0B0D10; } :root { --bg: #0B0D10; --surface: #15181D; --ink: #EDEBE5; --muted: #A3A8AF; --line: #2A2E35; --brand: #15181D; --accent: #C8F560;
  --ok-bg: #133A2A; --ok: #9FE0BE; --warn-bg: #4A3208; --warn: #FFD9A0; --bad-bg: #4A1715; --bad: #FFB4AE; --info-bg: #15325C; --info: #B9D8FF; color-scheme: dark; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
h1, h2, h3 { margin: 0 0 8px; line-height: 1.2; } h1 { font-size: 26px; } h2 { font-size: 19px; margin-top: 8px; } h3 { font-size: 15px; }
a { color: var(--accent); } :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; } /* focus moved by the page itself (main after a view change) shows no ring */
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px; z-index: 9; }
.top { background: var(--brand); color: var(--brand-ink); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 20px; }
.brand { font-weight: 700; font-size: 17px; margin-right: auto; } .brand span { font-weight: 400; opacity: .8; margin-left: 6px; }
nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav button, .link { background: none; border: 0; color: inherit; font: inherit; padding: 10px 10px; border-radius: 6px; cursor: pointer; min-height: 40px; }
nav button[aria-current="page"] { background: rgba(255,255,255,.16); font-weight: 600; }
main { max-width: 1180px; margin: 0 auto; padding: 24px 20px 60px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.kpi b { display: block; font-size: 24px; } .kpi span { font-size: 13px; color: var(--muted); }
.kpi.strong { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); } .kpi.strong span { color: inherit; opacity: .85; }
.wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; } td.n, th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.ok { background: var(--ok-bg); color: var(--ok); } .warn { background: var(--warn-bg); color: var(--warn); } .bad { background: var(--bad-bg); color: var(--bad); } .info { background: var(--info-bg); color: var(--info); }
.btn { font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 6px; padding: 10px 14px; min-height: 42px; cursor: pointer; }
.btn.primary { background: #0B0D10; border-color: #0B0D10; color: #F4F2EC; } .btn.danger { color: var(--bad); }
.btn[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .row.space { justify-content: space-between; }
form.stack, .stack { display: grid; gap: 12px; max-width: 420px; }
label { display: grid; gap: 4px; font-size: 14px; } input, select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; min-height: 44px; }
.notice { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; }
.error { color: var(--bad); } .errs { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.bar { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; min-width: 80px; } .bar i { display: block; height: 10px; background: var(--accent); }
details.inv { border-top: 1px solid var(--line); } details.inv:first-child { border-top: 0; }
details.inv > summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 4px; }
details.inv > summary::-webkit-details-marker { display: none; }
.finding { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.files { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.files .card { margin: 0; display: grid; gap: 8px; align-content: start; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.linkout { width: 100%; font-size: 13px; margin-top: 6px; }
.notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
label.check { display: flex; gap: 8px; align-items: center; } label.check input { min-height: auto; width: 20px; height: 20px; }
/* language control, the same pattern as ScratchSpy: pill plus panel of plain buttons */
.lang-wrap { position: relative; }
.lang-pill { display: flex; align-items: center; gap: 6px; padding: 8px 12px; min-height: 40px; border-radius: 20px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: inherit; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.lang-pill:hover { background: rgba(255,255,255,.12); }
.lang-dropdown-panel { display: none; position: absolute; top: calc(100% + 6px); right: 0; width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.18); z-index: 60; padding: 6px; }
.lang-dropdown-panel.open { display: block; }
.lang-dropdown-option { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px; min-height: 40px; border: none; background: none; border-radius: 7px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; text-align: left; }
.lang-dropdown-option:hover, .lang-dropdown-option:focus-visible { background: var(--bg); }
.lang-dropdown-option.active { background: var(--bg); font-weight: 600; }
pre.letter { white-space: pre-wrap; font: 14px/1.5 ui-monospace, Menlo, Consolas, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px; overflow-x: auto; }

.brand .tag { font-weight: 500; font-size: 13px; opacity: .8; margin-left: 6px; letter-spacing: .02em; }

/* Calcabis wordmark: the O is a ring closed by the green opening, the brand's signature */
.wordmark { display: inline-flex; align-items: baseline; font-weight: 600; letter-spacing: .16em; white-space: nowrap; }
.wordmark .wm-o { width: .72em; height: .72em; margin-right: .16em; display: inline-block; vertical-align: baseline; }
/* the signature on its own: a short green arc, used to mark what is verified */
.sig { display: inline-block; width: 1em; height: 1em; background: url("/brand/signature.svg") center / contain no-repeat; vertical-align: -0.12em; }
.brand { display: flex; align-items: center; gap: 10px; } .brand .wm { height: 26px; width: auto; display: block; }
.ask .ask-input { flex: 1; min-width: 240px; } .small-btn { min-height: 36px; padding: 6px 12px; font-size: 13px; font-weight: 500; } .ask-answer { font-size: 17px; font-weight: 600; margin: 14px 0 8px; }

/* invoice basis in the supplier portal */
.basis { list-style: none; padding: 0; margin: 10px 0 14px; border-top: 1px solid var(--line); }
.basis li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.wo-work { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; min-width: 0; }
.wo-work label { min-width: 0; } .wo-work input { width: 100%; min-width: 0; box-sizing: border-box; }

/* the supplier's pre-check and the deviations in the portal (16 Nov 2026) */
.ok-txt { color: #1d7a50; font-weight: 600; } .bad-txt { color: #b3261e; font-weight: 600; }
/* the supplier portal's receipt after each submission */
.receipt { background: #E2F3EA; color: #0F5132; border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; }
.receipt .ok-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #0F5132; color: #FFFFFF; font-size: 13px; margin-right: 4px; }
.receipt p { margin: 4px 0 0; color: #0F5132; }

.access { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; background: var(--surface); } .access p { margin: 0; } .access p + p { margin-top: 4px; }
#who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
@media (max-width: 600px) { #who { display: none; } }
/* dialog and messages in the product's own design (app.js: dialog, toast) */
.pn-dialog { border: 0; border-radius: 18px; padding: 0; width: min(460px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(11, 13, 16, .35); }
.pn-dialog::backdrop { background: rgba(11, 13, 16, .55); }
.pn-dialog form { display: grid; gap: 14px; padding: 24px; }
.pn-dialog h2 { margin: 0; font-size: 20px; } .pn-dialog p { margin: 0; color: var(--muted); }
.pn-dialog label { display: grid; gap: 6px; font-weight: 600; } .pn-dialog input { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-height: 44px; }
.pn-dialog .row { justify-content: flex-end; gap: 10px; margin-top: 4px; }
.pn-dialog.danger h2::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); margin-right: 10px; vertical-align: middle; }
.pn-toasts { position: fixed; z-index: 200; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; width: min(420px, calc(100vw - 40px)); }
.pn-toast { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 14px; background: #0B0D10; color: #FFFFFF; box-shadow: 0 16px 40px rgba(11, 13, 16, .35); border-left: 5px solid #C8F560; animation: toast-in 220ms ease-out both; font-size: 14.5px; }
.pn-toast.t-bad { border-left-color: #F07167; } .pn-toast.t-warn { border-left-color: #F2B544; } .pn-toast.t-info { border-left-color: #6EA4F0; }
.pn-toast span { flex: 1; } .pn-toast.out { opacity: 0; transform: translateY(8px); transition: opacity 200ms, transform 200ms; }
.pn-toast-act { font: inherit; font-weight: 700; color: #C8F560; background: none; border: 0; cursor: pointer; padding: 6px 8px; border-radius: 8px; } .pn-toast-act:hover { background: rgba(255,255,255,.08); }
.pn-toast-x { font: inherit; font-size: 20px; line-height: 1; color: #CFE2D8; background: none; border: 0; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.pn-toast button:focus-visible { outline: 2px solid #C8F560; outline-offset: 2px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .pn-toast { animation: none; } }
/* Supplier app (23 Nov 2026): the ScratchSpy capture page made into Calcabis's own, one task per screen */
body.cap { min-height: 100vh; display: flex; flex-direction: column; background: var(--surface); }
.cap-top { background: var(--brand); color: var(--brand-ink); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; padding-top: max(14px, env(safe-area-inset-top)); position: relative; overflow: hidden; }
.cap-top::after { content: ""; position: absolute; top: -60px; right: -40px; width: 170px; height: 170px; background: radial-gradient(circle, rgba(52, 201, 142, .28) 0, rgba(52, 201, 142, 0) 70%); pointer-events: none; }
.cap-top .wm { height: 26px; position: relative; z-index: 1; } .cap-top [data-lang-host] { position: relative; z-index: 2; }
.cap-main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 24px 20px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; outline: none; }
.cap-head { display: flex; gap: 10px; align-items: flex-start; }
.cap-head h1 { font-size: 22px; margin: 0 0 6px; letter-spacing: -.01em; }
.cap-chip { margin: 0 0 6px; font: 600 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cap-sub { margin: 0; color: var(--muted); font-size: 14px; }
.cap-back { flex: none; width: 40px; height: 40px; margin: 8px 0 0 -8px; border: 0; border-radius: 10px; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.cap-back svg { width: 22px; height: 22px; } .cap-back:hover { background: var(--bg); }
.cap-tiles { display: grid; gap: 12px; }
.cap-tile { display: grid; grid-template-columns: 48px 1fr 20px; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; min-height: 84px; transition: border-color .15s, box-shadow .15s; }
.cap-tile:hover:not([disabled]) { border-color: var(--accent); box-shadow: 0 2px 10px rgba(15, 47, 39, .08); }
.cap-tile[disabled] { opacity: .55; cursor: default; }
.cap-tile-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.cap-tile.t-fix .cap-tile-ic { background: var(--info-bg); color: var(--info); } .cap-tile.t-stop .cap-tile-ic { background: var(--warn-bg); color: var(--warn); }
.cap-tile-ic svg { width: 24px; height: 24px; }
.cap-tile-tx { display: grid; gap: 2px; } .cap-tile-tx b { font-size: 16px; } .cap-tile-tx small, .cap-row small { color: var(--muted); font-size: 13px; }
.cap-tile-go { font-size: 24px; color: var(--muted); line-height: 1; }
.cap-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cap-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; min-height: 60px; }
.cap-row > span:first-child { display: grid; gap: 2px; } .cap-row:hover { border-color: var(--accent); }
.cap-dist { flex: none; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; } .cap-dist.near { color: var(--ok); }
.cap-geo { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; background: var(--bg); font-size: 14px; }
.cap-geo:empty { display: none; }
.cap-geo b { display: block; } .cap-geo small { display: block; color: inherit; opacity: .85; font-size: 13px; margin-top: 2px; }
.cap-geo-ic svg { width: 20px; height: 20px; display: block; margin-top: 1px; }
.cap-geo.ok { background: var(--ok-bg); color: var(--ok); } .cap-geo.bad { background: var(--bad-bg); color: var(--bad); } .cap-geo.warn { background: var(--warn-bg); color: var(--warn); } .cap-geo.info { background: var(--info-bg); color: var(--info); }
.cap-geo.wait .cap-geo-ic { animation: cap-pulse 1.2s ease-in-out infinite; }
@keyframes cap-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .cap-geo.wait .cap-geo-ic { animation: none; } }
.cap-box { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 260px; padding: 20px; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--bg); cursor: pointer; color: var(--muted); }
.cap-box.has { border-style: solid; padding: 0; min-height: 300px; }
.cap-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cap-box-ic svg { width: 46px; height: 46px; } .cap-box-tx { font-weight: 600; color: var(--ink); } .cap-box small { max-width: 260px; font-size: 13px; }
.cap-retake { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(10, 25, 20, .78); color: #fff; padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.cap-form { display: grid; gap: 12px; } .cap-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.cap-form input, .cap-form textarea { font: inherit; font-weight: 400; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.cap-form .error:empty { display: none; } .cap-form .error { margin: 0; }
.cap-send { width: 100%; min-height: 52px; font-size: 16px; border-radius: 12px; }
.cap .btn.primary { background: #0B0D10; border-color: #0B0D10; color: #F4F2EC; } .cap .btn.primary:disabled { background: var(--line); border-color: var(--line); color: var(--muted); }
.cap-queue { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; border-radius: 12px; padding: 12px 14px; background: var(--warn-bg); color: var(--warn); }
.cap-queue small { grid-column: 1; } .cap-queue .btn { grid-row: 1 / span 2; grid-column: 2; }
.cap-foot { margin: 4px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.cap-done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 24px 0; }
.cap-done h1 { font-size: 22px; margin: 6px 0 0; } .cap-done p { margin: 0; color: var(--muted); max-width: 340px; }
.cap-done-ic { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; } .cap-done-ic svg { width: 28px; height: 28px; }
.cap-done-ic.wait { background: var(--warn-bg); color: var(--warn); }
.cap-done .cap-send { margin-top: 14px; max-width: 340px; }
.cap-verdict { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; } .cap-verdict.ok { background: var(--ok-bg); color: var(--ok) !important; } .cap-verdict.bad { background: var(--bad-bg); color: var(--bad) !important; } .cap-verdict.info { background: var(--info-bg); color: var(--info) !important; }
.cap .pill.bad { background: var(--bad-bg); color: var(--bad); }
/* the list of keyboard shortcuts behind "?" (24 Nov 2026); a dialog sits outside the app shell, like .pn-dialog */
.pn-keys kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border: 1px solid var(--line, #E2E1DB); border-bottom-width: 2px; border-radius: 6px; background: var(--surface, #fff); color: var(--ink, #0B0D10); font: 600 12px/18px ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }
.pn-keys .keys { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; align-items: center; }
.pn-keys .row { justify-content: flex-end; }
.pn-keys .keys dt { white-space: nowrap; } .pn-keys .keys dd { margin: 0; }
/* ===== App (only inside .app-shell; the website and the supplier portal are not touched) =====
   Ink frames the work, signal lime marks only what is proven. One bold element: the proof point,
   used on the overview as the measure of the saving that holds. Everything else stays quiet. */
.app-shell { --ground: #F5F5F1; --surface: #FFFFFF; --ink: #0B0D10; --muted: #4A4F57; --line: #E2E1DB; --soft: #EDECE7;
  --brand: #0B0D10; --brand-2: #16191E; --brand-3: #22262D; --sig: #C8F560; --accent: #3B5F00; --accent-2: #2C4700;
  --side-ink: #D9D7D0; --side-mute: #8E939A;
  display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; background: var(--ground); color: var(--ink);
  font: 15px/1.55 system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
@media (prefers-color-scheme: dark) { .app-shell { --ground: #0B0D10; --surface: #15181D; --ink: #EDEBE5; --muted: #A3A8AF; --line: #2A2E35; --soft: #1C1F24;
  --brand: #08090B; --brand-2: #111317; --brand-3: #1A1D22; --accent: #C8F560; --accent-2: #D9FA8A; --side-ink: #D9D7D0; --side-mute: #8E939A; } }
.app-shell:not(.in) { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }

/* side menu */
.app-shell .side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--brand); color: var(--side-ink); padding: 22px 14px 24px; display: flex; flex-direction: column; gap: 22px; }
.app-shell:not(.in) .side { position: static; height: auto; padding: 16px 24px; }
.app-shell .side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px; }
.app-shell .brand { display: grid; gap: 6px; margin: 0; } .app-shell .brand .wm { height: 28px; width: auto; display: block; }
.app-shell .brand .tag { margin: 0; font-size: 12.5px; font-weight: 500; color: var(--side-mute); opacity: 1; letter-spacing: 0; }
.app-shell .side nav { display: flex; flex-direction: column; gap: 2px; flex-wrap: nowrap; }
.app-shell .nav-group { margin: 16px 10px 6px; font-size: 12.5px; font-weight: 600; color: var(--side-mute); }
.app-shell .nav-sep { height: 1px; background: rgba(255,255,255,.08); margin: 14px 8px; }
.app-shell .side nav button { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; color: var(--side-ink); font: inherit; font-size: 14.5px; font-weight: 500;
  padding: 9px 10px; min-height: 40px; border-radius: 9px; background: none; border: 0; cursor: pointer; }
.app-shell .side nav button svg { flex: none; width: 18px; height: 18px; color: var(--side-mute); }
.app-shell .side nav button:hover { background: rgba(255,255,255,.06); color: #FFFFFF; }
.app-shell .side nav button[aria-current="page"] { background: var(--brand-3); color: #FFFFFF; font-weight: 650; }
.app-shell .side nav button[aria-current="page"] svg { color: var(--sig); }
.app-shell .side :focus-visible { outline: 2px solid var(--sig); outline-offset: 2px; }
.app-shell .menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.22); background: none; color: #FFFFFF; font: inherit; font-weight: 600; cursor: pointer; }

/* top bar */
.app-shell .content { min-width: 0; display: flex; flex-direction: column; }
.app-shell .top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 36px; min-height: 60px;
  background: color-mix(in srgb, var(--ground) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); color: var(--ink); flex-wrap: nowrap; }
.app-shell .top .org { margin-right: auto; font-weight: 650; font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .top .lang-pill { border-color: var(--line); color: var(--ink); background: var(--surface); }
.app-shell .top .lang-pill:hover { background: var(--soft); }
.app-shell .top .link { color: var(--muted); font-weight: 500; }
.app-shell .top .link:hover { color: var(--ink); }

/* page */
.app-shell main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 32px 36px 72px; }
.app-shell:not(.in) main { max-width: 480px; padding-top: 56px; }
.app-shell main h1 { font-size: 30px; line-height: 1.15; font-weight: 750; letter-spacing: -0.022em; margin: 0 0 20px; }
.app-shell main > h1 + .muted, .app-shell main > h1 + p { margin: -14px 0 22px; font-size: 15px; }
.app-shell main > .row.space:first-child { margin-bottom: 20px; align-items: center; gap: 12px 16px; }
.app-shell main > .row.space:first-child h1 { margin: 0; }
.app-shell main > .row:not(.space) { margin-bottom: 14px; }
.app-shell h2 { font-size: 17px; font-weight: 680; letter-spacing: -0.01em; margin: 0 0 12px; }
.app-shell h3 { font-size: 15px; font-weight: 650; }
.app-shell a { color: var(--accent); }
.app-shell :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* surfaces */
.app-shell .card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-bottom: 18px; }
.app-shell .card > .row.space:first-child { margin-bottom: 4px; }
.app-shell .card > .row.space:first-child h2 { margin: 0; }

/* key figures: one connected strip, not a pile of separate tiles */
.app-shell .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 18px; }
.app-shell .kpi { background: var(--surface); border: 0; border-radius: 0; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); padding: 16px 18px 15px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.app-shell .kpi b { font-size: 25px; font-weight: 720; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.app-shell .kpi span { font-size: 13px; color: var(--muted); font-weight: 500; line-height: 1.35; }
.app-shell .kpi.strong { background: var(--brand); color: #FFFFFF; } .app-shell .kpi.strong span { color: var(--side-ink); opacity: 1; }
.app-shell .kpi.strong b { color: #FFFFFF; }

/* the hero: the logo's ring measures the saving that holds */
.app-shell .hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; background: var(--brand); color: #FFFFFF; border-radius: 20px; padding: 28px 32px; margin-bottom: 18px; }
.app-shell .hero .ring { position: relative; width: 156px; height: 156px; flex: none; }
.app-shell .hero .ring svg { width: 156px; height: 156px; display: block; transform: rotate(-62deg); }
.app-shell .hero .ring .track { stroke: rgba(255,255,255,.13); }
.app-shell .hero .ring .arc { stroke: var(--sig); animation: ringdraw 900ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes ringdraw { from { stroke-dasharray: 0 100; } }
@media (prefers-reduced-motion: reduce) { .app-shell .hero .ring .arc { animation: none; } }
.app-shell .hero .ring .val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.app-shell .hero .ring .val b { font-size: 30px; font-weight: 760; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.app-shell .hero .ring .val span { font-size: 12px; color: var(--side-ink); margin-top: 6px; max-width: 104px; line-height: 1.3; }
.app-shell .hero-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px 28px; }
.app-shell .hero-figs div { display: flex; flex-direction: column-reverse; gap: 4px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 12px; }
.app-shell .hero-figs b { font-size: 26px; font-weight: 720; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.app-shell .hero-figs span { font-size: 13px; color: var(--side-ink); line-height: 1.35; }
.app-shell .hero-figs .good b { color: var(--sig); }
.app-shell .hero .scope { grid-column: 1 / -1; margin: -6px 0 0; font-size: 13px; color: var(--side-mute); }

/* tables */
.app-shell .wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.app-shell table { font-size: 14px; border-collapse: separate; border-spacing: 0; }
.app-shell th { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; }
.app-shell td { padding: 11px 12px; border-bottom: 1px solid var(--line); }
.app-shell tbody tr:last-child td { border-bottom: 0; }
.app-shell tbody tr:hover td { background: var(--soft); }
.app-shell meter { width: 96px; height: 8px; vertical-align: middle; margin-right: 8px; }

/* status pills: a dot carries the state, the word names it */
.app-shell .pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 999px; }
.app-shell .pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* controls */
.app-shell .btn { border-radius: 10px; font-weight: 600; padding: 10px 16px; border-color: var(--line); background: var(--surface); color: var(--ink); }
.app-shell .btn:hover { background: var(--soft); }
.app-shell .btn.primary { background: #0B0D10; border-color: #0B0D10; color: #F4F2EC; }
.app-shell .btn.primary:hover { background: #22262D; border-color: #22262D; }
@media (prefers-color-scheme: dark) { .app-shell .btn.primary { background: #C8F560; border-color: #C8F560; color: #0B0D10; } .app-shell .btn.primary:hover { background: #D9FA8A; border-color: #D9FA8A; } }
.app-shell .btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.app-shell input, .app-shell select, .app-shell textarea { border-radius: 10px; background: var(--surface); border-color: var(--line); color: var(--ink); }
.app-shell input:focus, .app-shell select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.app-shell .notice { border-radius: 12px; }
.app-shell .finding { border-radius: 12px; border-color: var(--line); background: var(--ground); }
.app-shell details.inv > summary { padding: 14px 6px; border-radius: 10px; }
.app-shell details.inv > summary:hover { background: var(--soft); }
.app-shell .bar { height: 8px; border-radius: 4px; background: var(--soft); } .app-shell .bar i { height: 8px; background: var(--accent); }
.app-shell .notes li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.app-shell .notes li:last-child { border-bottom: 0; }
.app-shell .ask { background: linear-gradient(var(--surface), var(--surface)); }
.app-shell .ask .ask-input { min-height: 48px; font-size: 15.5px; }
.app-shell pre.letter { border-radius: 12px; }

/* phones and small tablets: the side menu becomes a top strip with a drawer */
@media (max-width: 900px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .app-shell .side { position: sticky; top: 0; z-index: 30; height: auto; padding: 12px 16px; gap: 0; }
  .app-shell .side-head { padding: 0; }
  .app-shell.in .menu-btn { display: inline-flex; }
  .app-shell .brand { grid-auto-flow: column; align-items: center; gap: 10px; }
  .app-shell .brand .tag { display: none; }
  .app-shell.in .side nav { display: none; }
  .app-shell.in .side.open nav { display: flex; max-height: calc(100vh - 70px); overflow-y: auto; padding-top: 10px; }
  .app-shell .top { position: static; padding: 10px 16px; }
  .app-shell main { padding: 22px 16px 56px; }
  .app-shell .hero { grid-template-columns: minmax(0, 1fr); justify-items: start; padding: 22px; gap: 22px; }
  .app-shell .hero-figs { justify-self: stretch; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .app-shell main h1 { font-size: 25px; }
  .app-shell .card { padding: 16px; border-radius: 14px; }
}
@media (min-width: 901px) { .app-shell .menu-btn { display: none !important; } }
.app-shell .card h3 { margin: 18px 0 8px; } .app-shell .card h3:first-child { margin-top: 0; }
.app-shell form.stack .btn { justify-self: start; min-width: 160px; }
.app-shell:not(.in) form.stack .btn { justify-self: stretch; }
@media (prefers-color-scheme: dark) { .app-shell .hero { background: var(--brand-2); border: 1px solid var(--line); } .app-shell .kpi.strong { background: var(--brand-2); } }

/* self-test: five levels as one row of choices, stacking on a phone */
.app-shell fieldset.card { border: 1px solid var(--line); min-width: 0; }
.app-shell fieldset.card legend { padding: 0 6px; font-size: 16px; }
.app-shell .levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.app-shell .levels label.check { align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.app-shell .levels label.check:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.app-shell .levels input { margin-top: 3px; }
@media (max-width: 900px) { .app-shell .levels { grid-template-columns: minmax(0, 1fr); } }

/* breadcrumb, work area and the button that unfolds every area (UX plan, section 3) */
.app-shell .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin: -8px 0 10px; }
.app-shell .crumbs .link { font-size: 13.5px; color: var(--muted); padding: 0; min-height: 0; text-decoration: underline; }
.app-shell .crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.app-shell .side .nav-more { margin: 14px 8px 0; background: none; border: 1px dashed rgba(255,255,255,.25); color: var(--side-ink); border-radius: 9px; padding: 9px 10px; font: inherit; font-size: 13.5px; cursor: pointer; text-align: left; }
.app-shell .side .nav-more:hover { color: #FFFFFF; border-color: rgba(255,255,255,.45); }
.app-shell .side .nav-focus { display: grid; gap: 6px; margin: 18px 8px 0; font-size: 12.5px; color: var(--side-mute); font-weight: 600; }
.app-shell .side .nav-focus select { background: var(--brand-2); color: #FFFFFF; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; padding: 8px 10px; font: inherit; font-size: 14px; }

/* what needs your action, from finding to money, getting started (UX plan, sections 4 and 7) */
.app-shell .acts { margin-bottom: 18px; } .app-shell .acts h2 { margin-bottom: 10px; }
.app-shell .act-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 10px; }
.app-shell .act { display: grid; gap: 2px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--info, #123E7A); border-radius: 12px; padding: 12px 14px; font: inherit; color: var(--ink); cursor: pointer; }
.app-shell .act.bad { border-left-color: #C0392B; } .app-shell .act.warn { border-left-color: #D99A1E; } .app-shell .act.info { border-left-color: var(--accent); }
.app-shell .act:hover { background: var(--soft); } .app-shell .act b { font-size: 24px; font-weight: 750; line-height: 1.1; }
.app-shell .act-t { font-weight: 650; } .app-shell .act-n { color: var(--muted); font-size: 13.5px; }
.app-shell .act-done { margin-bottom: 18px; }
.app-shell .path-steps { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: p; }
.app-shell .path-steps li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--ground); position: relative; }
.app-shell .path-steps li b { font-size: 21px; font-weight: 750; font-variant-numeric: tabular-nums; } .app-shell .path-t { font-weight: 650; } .app-shell .path-n { color: var(--muted); font-size: 13px; }
.app-shell .kpi-go { cursor: pointer; text-align: left; font: inherit; color: inherit; } .app-shell .kpi-go:hover { background: var(--soft); }
.app-shell .guide-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.app-shell .guide-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.app-shell .guide-steps li.done { background: var(--ground); } .app-shell .guide-steps p { margin: 2px 0 0; }
.app-shell .g-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--brand); color: #FFFFFF; }
.app-shell .guide-steps li.done .g-n { background: var(--sig); color: #062A1F; }
@media (max-width: 900px) { .app-shell .path-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .app-shell .guide-steps li { grid-template-columns: auto minmax(0, 1fr); } .app-shell .guide-steps li > :last-child { grid-column: 2; justify-self: start; } }

/* one invoice, one flow: the invoice, the agreement's rule and the evidence side by side; the choices explained (UX plan, section 5) */
.app-shell .inv-body { display: grid; gap: 14px; padding: 4px 6px 14px; }
.app-shell .inv-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.app-shell .inv-3 section, .app-shell .inv-body .why, .app-shell .inv-body .decide { background: var(--ground); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.app-shell .inv-body h3 { font-size: 14px; margin: 0 0 8px; color: var(--muted); font-weight: 650; }
.app-shell .facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 14px; }
.app-shell .facts dt { color: var(--muted); } .app-shell .facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.app-shell .decide-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.app-shell .decide-btn { display: grid; gap: 2px; text-align: left; padding: 10px 12px; font-weight: 400; }
.app-shell .decide-btn b { font-weight: 700; } .app-shell .decide-btn span { font-size: 13px; color: var(--muted); }
.app-shell .decide-btn[aria-pressed="true"] span { color: #CFE2D8; }
.app-shell .decide-note { display: grid; gap: 4px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 900px) { .app-shell .inv-3, .app-shell .decide-opts { grid-template-columns: minmax(0, 1fr); } }

/* global search and short help (UX plan, P1 and section 7) */
.app-shell .search { position: relative; flex: 1 1 320px; max-width: 460px; margin-right: auto; }
.app-shell .search input { width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 10px; }
.app-shell .q-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.12); padding: 6px; max-height: 60vh; overflow: auto; }
.app-shell .q-results button { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "k t" "k s"; gap: 0 10px; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 8px 10px; font: inherit; color: var(--ink); cursor: pointer; }
.app-shell .q-results button:hover, .app-shell .q-results button:focus-visible { background: var(--soft); }
.app-shell .q-results .q-kind { grid-area: k; align-self: center; font-size: 12px; font-weight: 600; color: var(--accent); min-width: 90px; }
.app-shell .q-results b { grid-area: t; } .app-shell .q-results .muted { grid-area: s; }
.app-shell .q-results p { margin: 6px 8px; }
.app-shell .q-active { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.app-shell .flash { outline: 3px solid var(--sig); outline-offset: 2px; border-radius: 10px; }
.app-shell .help-box { margin: -10px 0 18px; font-size: 14px; } .app-shell .help-box summary { cursor: pointer; color: var(--accent); font-weight: 600; width: max-content; }
.app-shell .help-box p { margin: 6px 0 0; max-width: 760px; color: var(--muted); }
.app-shell .top .org { margin-right: 0; }
@media (max-width: 900px) { .app-shell .top { flex-wrap: wrap; } .app-shell .search { order: 3; flex-basis: 100%; max-width: none; } }
.app-shell .bar i.w0 { width: 0; } .app-shell .bar i.w25 { width: 25%; } .app-shell .bar i.w50 { width: 50%; } .app-shell .bar i.w75 { width: 75%; } .app-shell .bar i.w100 { width: 100%; }

/* ===== charts and illustrations (inside .app-shell) ===== */
.app-shell { --c-ok: #5E8E00; --c-bad: #D9534A; --c-warn: #E0A030; --c-info: #3B7BD8; --c-brand: #0B0D10; --c-track: #ECEBE6; --c-ghost: #D6D5CF; }
@media (prefers-color-scheme: dark) { .app-shell { --c-ok: #C8F560; --c-bad: #F07167; --c-warn: #F2B544; --c-info: #6EA4F0; --c-brand: #C8F560; --c-track: #1C1F24; --c-ghost: #30343B; } }
.app-shell .chart-card .row.space { align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.app-shell .chart-card h2 { margin: 0; }
.app-shell .chart-card > .muted { margin: 6px 0 16px; }
.app-shell .chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 0 18px; }
.app-shell .chart rect.bg { fill: var(--c-track); }
.app-shell .chart rect.ghost { fill: var(--c-ghost); }
.app-shell .chart rect.fg { fill: var(--c-brand); }
.app-shell .chart .t-ok rect.fg { fill: var(--c-ok); } .app-shell .chart .t-bad rect.fg { fill: var(--c-bad); }
.app-shell .chart .t-warn rect.fg { fill: var(--c-warn); } .app-shell .chart .t-info rect.fg { fill: var(--c-info); } .app-shell .chart .t-brand rect.fg { fill: var(--c-brand); }
/* columns over time */
.app-shell .chart.cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; align-items: end; min-height: 200px; }
.app-shell .chart.cols .col { display: grid; grid-template-rows: 18px 150px 18px 15px; justify-items: center; align-items: end; gap: 6px; min-width: 0; }
.app-shell .chart.cols svg { width: 100%; max-width: 56px; height: 150px; display: block; }
.app-shell .chart.cols .cv { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; min-height: 16px; }
.app-shell .chart.cols .cl { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; } .app-shell .chart.cols .cl::first-letter { text-transform: uppercase; }
.app-shell .chart.cols .cs { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.app-shell .chart.cols rect.fg { transform-box: fill-box; transform-origin: bottom; animation: grow-y 700ms cubic-bezier(.2,.7,.2,1) both; }
/* horizontal bars to compare */
.app-shell .chart.bars { display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(0, 2.4fr) max-content; gap: 12px 14px; align-items: center; }
.app-shell .chart.bars .bar-row { display: contents; }
.app-shell .chart.bars .bl { font-weight: 600; font-size: 14px; min-width: 0; overflow-wrap: anywhere; } .app-shell .chart.bars .bl small { font-weight: 500; color: var(--muted); }
.app-shell .chart.bars svg { width: 100%; height: 18px; display: block; }
.app-shell .chart.bars .bv { text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; } .app-shell .chart.bars .bv small { color: var(--muted); font-weight: 500; }
.app-shell .chart.bars rect.fg { transform-box: fill-box; transform-origin: left; animation: grow-x 800ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes grow-y { from { transform: scaleY(0); } } @keyframes grow-x { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .app-shell .chart rect.fg { animation: none; } }
/* legend */
.app-shell .legend { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.app-shell .legend span { display: inline-flex; align-items: center; gap: 6px; }
.app-shell .legend .lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; background: var(--c-brand); }
.app-shell .legend .lg.t-ok { background: var(--c-ok); } .app-shell .legend .lg.t-bad { background: var(--c-bad); } .app-shell .legend .lg.t-warn { background: var(--c-warn); } .app-shell .legend .lg.t-ghost { background: var(--c-ghost); }
@media (max-width: 640px) {
  .app-shell .chart.bars { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .app-shell .chart.bars .bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l v" "s s"; gap: 4px 10px; }
  .app-shell .chart.bars .bl { grid-area: l; } .app-shell .chart.bars .bv { grid-area: v; } .app-shell .chart.bars svg { grid-area: s; }
  .app-shell .chart.cols { gap: 4px; } .app-shell .chart.cols .cv { font-size: 10px; } .app-shell .chart.cols .cs { display: none; }
}
/* illustrations: the logo's open ring */
.app-shell .illo { width: 84px; height: 84px; flex: none; }
.app-shell .illo .il-track { stroke: var(--c-track); } .app-shell .illo .il-arc { stroke: var(--sig); } .app-shell .illo .il-ink { stroke: var(--brand); } .app-shell .illo .il-soft { stroke: var(--c-ghost); }
@media (prefers-color-scheme: dark) { .app-shell .illo .il-ink { stroke: var(--sig); } }
.app-shell .guide-head { display: flex; align-items: center; gap: 18px; margin-bottom: 10px; } .app-shell .guide-head .row { flex: 1; }
.app-shell .empty-card { text-align: center; padding: 32px 22px; } .app-shell .empty-card .illo { margin: 0 auto 8px; display: block; width: 96px; height: 96px; } .app-shell .empty-card .row { justify-content: center; }
.app-shell .chart.cols.compact .cv { visibility: hidden; } .app-shell .chart.cols.compact .col.show .cv { visibility: visible; }
.app-shell .chart.stackbar svg { width: 100%; height: 22px; display: block; border-radius: 6px; }
.app-shell .chart.stackbar .t-ghost rect.fg { fill: var(--c-ghost); }
.app-shell .chart.stackbar rect.fg { transform-box: fill-box; transform-origin: left; animation: grow-x 800ms cubic-bezier(.2,.7,.2,1) both; }
.app-shell .stack-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.app-shell .stack-legend span { display: inline-flex; align-items: center; gap: 6px; } .app-shell .stack-legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.app-shell .stack-row { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); } .app-shell .stack-row:first-of-type { border-top: 0; padding-top: 0; }
.app-shell .legend .lg.t-info, .app-shell .stack-legend .lg.t-info { background: var(--c-info); } .app-shell .stack-legend .lg.t-brand { background: var(--c-brand); } .app-shell .stack-legend .lg.t-ghost { background: var(--c-ghost); }
.app-shell .lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; background: var(--c-brand); }
.app-shell .lg.t-ok { background: var(--c-ok); } .app-shell .lg.t-bad { background: var(--c-bad); } .app-shell .lg.t-warn { background: var(--c-warn); } .app-shell .lg.t-info { background: var(--c-info); } .app-shell .lg.t-ghost { background: var(--c-ghost); } .app-shell .lg.t-brand { background: var(--c-brand); }

/* feedback, loading and page transitions */
.app-shell main > * { animation: page-in 260ms ease-out both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } }
.app-shell .skeleton { display: grid; gap: 16px; }
.app-shell .sk { background: linear-gradient(90deg, var(--c-track) 0%, var(--soft) 50%, var(--c-track) 100%); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; border-radius: 14px; }
.app-shell .sk-title { height: 34px; width: 40%; } .app-shell .sk-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.app-shell .sk-card { height: 96px; } .app-shell .sk-block { height: 220px; } .app-shell .sk-block.short { height: 120px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .app-shell main > *, .app-shell .sk { animation: none; } }
/* tables: sortable headers, sticky header, cards on a phone */
.app-shell table.dt thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); }
.app-shell .th-sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font: inherit; color: inherit; border-radius: 6px; }
.app-shell .th-sort:focus-visible { outline: 3px solid var(--sig); outline-offset: 2px; }
.app-shell .th-sort i { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .25; transition: transform .15s, opacity .15s; }
.app-shell .th-sort:hover i { opacity: .6; }
.app-shell th[aria-sort="ascending"] .th-sort i { opacity: 1; transform: rotate(180deg); } .app-shell th[aria-sort="descending"] .th-sort i { opacity: 1; }
.app-shell table.dt tbody tr { transition: background-color .12s; } .app-shell table.dt tbody tr:hover { background: color-mix(in srgb, var(--sig) 6%, transparent); }
@media (max-width: 640px) {
  .app-shell table.dt thead { display: none; } /* each cell carries its label on a phone */
  .app-shell table.dt, .app-shell table.dt tbody, .app-shell table.dt tr, .app-shell table.dt td { display: block; width: 100%; }
  .app-shell table.dt tr { border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; margin-bottom: 10px; background: var(--surface); }
  .app-shell table.dt td { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border: 0; border-bottom: 1px solid var(--line); text-align: right; overflow-wrap: anywhere; }
  .app-shell table.dt td:last-child { border-bottom: 0; }
  .app-shell table.dt td::before { content: attr(data-label); font-weight: 600; color: var(--muted); text-align: left; flex: none; max-width: 48%; }
  .app-shell table.dt td[data-label=""]::before { content: none; } .app-shell table.dt td[data-label=""] { justify-content: flex-end; }
}
/* recent activity */
.app-shell .feed { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.app-shell .feed::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.app-shell .feed li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 8px 0; position: relative; }
.app-shell .feed .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c-brand); box-shadow: 0 0 0 3px var(--surface); align-self: center; }
.app-shell .feed .f-dlv .dot { background: var(--c-ok); } .app-shell .feed .f-warn .dot { background: var(--c-warn); } .app-shell .feed .f-dec .dot { background: var(--c-info); } .app-shell .feed .f-data .dot { background: var(--c-ghost); } .app-shell .feed .f-ok .dot { background: var(--c-ok); }
.app-shell .feed time { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .app-shell table.dt tbody tr, .app-shell .th-sort i { transition: none; } }
@media (max-width: 640px) {
  .app-shell .wrap:has(> table.dt) { overflow: visible; }
  .app-shell table.dt { min-width: 0 !important; table-layout: auto; }
  .app-shell table.dt td > * { min-width: 0; }
}
@media (max-width: 640px) { .app-shell table.dt td .pill { white-space: normal; text-align: left; line-height: 1.35; } .app-shell table.dt td > span:not(.pill) { min-width: 0; } }
.app-shell .map-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 6px 0 12px; } .app-shell .map-links .muted:first-child { flex-basis: 100%; }
.app-shell .more-rows { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 4px 2px; }
/* the map inside the app (16 Nov 2026): OpenStreetMap tiles in a grid, moved into place; pins drawn over them */
.app-shell .osm-map { position: relative; overflow: hidden; height: 360px; border-radius: 12px; border: 1px solid var(--line); background: #E8EEF3; margin: 4px 0 8px; touch-action: pan-y; }
.app-shell .osm-one { height: 240px; margin-top: 10px; }
.app-shell .osm-map:empty { background: linear-gradient(90deg, #E8EEF3, #F3F6F9, #E8EEF3); }
.app-shell .osm-plane { position: absolute; left: 0; top: 0; }
.app-shell .osm-grid { display: grid; line-height: 0; }
.app-shell .osm-grid img { width: 256px; height: 256px; max-width: none; display: block; user-select: none; }
.app-shell .osm-marks { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.app-shell .osm-pin[data-go] { pointer-events: auto; cursor: pointer; }
.app-shell .osm-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; align-items: center; }
.app-shell .osm-legend [class^="pin-"]::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.app-shell .osm-legend .pin-bad::before { background: #C62828; } .app-shell .osm-legend .pin-warn::before { background: #C77700; } .app-shell .osm-legend .pin-ok::before { background: #3B5F00; }
.app-shell .osm-pin path { stroke: #FFFFFF; stroke-width: 2; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.app-shell .osm-pin circle { fill: #FFFFFF; }
.app-shell .pin-bad path { fill: #C62828; } .app-shell .pin-warn path { fill: #C77700; } .app-shell .pin-ok path { fill: #3B5F00; } .app-shell .pin-info path { fill: #1D4ED8; }
.app-shell .osm-credit { position: absolute; right: 0; bottom: 0; font-size: 11px; line-height: 1; padding: 4px 6px; background: rgba(255,255,255,.85); color: #1F2937; border-top-left-radius: 6px; text-decoration: none; }
@media (max-width: 640px) { .app-shell .osm-map { height: 280px; } .app-shell .osm-one { height: 200px; } }
.app-shell .errs .warn-line { list-style: none; margin-left: -18px; padding: 6px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); }
.app-shell .banner-warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; } .app-shell .banner-warn p { margin: 6px 0 10px; }
.app-shell .read-info { margin-top: 10px; font-size: 13px; } .app-shell .read-info summary { cursor: pointer; font-weight: 600; }
.app-shell .read-info .cols { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.app-shell .read-info .cols li { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; } .app-shell .read-info .to { color: var(--muted); }
.app-shell .dq-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; } .app-shell .dq-top { display: flex; justify-content: space-between; gap: 12px; }
.app-shell .dq-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 4px; } .app-shell .dq-bar i { display: block; height: 100%; border-radius: 4px; }
.app-shell .dq-ok { background: var(--accent); } .app-shell .dq-warn { background: #C77700; } .app-shell .dq-bad { background: #C62828; } .app-shell .dq-list p { margin: 4px 0 0; }
.app-shell .dq-bar .w0 { width: 0%; } .app-shell .dq-bar .w5 { width: 5%; } .app-shell .dq-bar .w10 { width: 10%; } .app-shell .dq-bar .w15 { width: 15%; } .app-shell .dq-bar .w20 { width: 20%; } .app-shell .dq-bar .w25 { width: 25%; } .app-shell .dq-bar .w30 { width: 30%; } .app-shell .dq-bar .w35 { width: 35%; } .app-shell .dq-bar .w40 { width: 40%; } .app-shell .dq-bar .w45 { width: 45%; } .app-shell .dq-bar .w50 { width: 50%; } .app-shell .dq-bar .w55 { width: 55%; } .app-shell .dq-bar .w60 { width: 60%; } .app-shell .dq-bar .w65 { width: 65%; } .app-shell .dq-bar .w70 { width: 70%; } .app-shell .dq-bar .w75 { width: 75%; } .app-shell .dq-bar .w80 { width: 80%; } .app-shell .dq-bar .w85 { width: 85%; } .app-shell .dq-bar .w90 { width: 90%; } .app-shell .dq-bar .w95 { width: 95%; } .app-shell .dq-bar .w100 { width: 100%; }
.app-shell .bulk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 10px; }
/* printing a page (16 Nov 2026): the page's content only, on white, tables whole, cards not split */
@media print {
  .app-shell .side, .app-shell #top, .app-shell .crumbs, .pn-toasts, .skip, .app-shell .bulk-bar, .app-shell .btn, .app-shell .menu-btn, .app-shell .q-results { display: none !important; }
  .app-shell .content { margin: 0 !important; padding: 0 !important; }
  .app-shell, .app-shell main { background: #FFFFFF !important; color: #000000 !important; margin: 0 !important; padding: 0 !important; width: auto !important; max-width: none !important; }
  .app-shell .card { box-shadow: none !important; border: 1px solid #CCCCCC !important; break-inside: avoid; }
  .app-shell table { width: 100%; } .app-shell tr { break-inside: avoid; } .app-shell .osm-map { break-inside: avoid; }
  .app-shell a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10px; color: #555555; }
}
@media print { @page { margin: 14mm; } }
.app-shell .hist { margin-top: 10px; font-size: 13px; } .app-shell .hist summary { cursor: pointer; } .app-shell .hist-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.app-shell .nowrap { white-space: nowrap; } .app-shell .mail-ic { text-decoration: none; font-size: 14px; margin-left: 4px; }
@media (min-width: 641px) { .app-shell #invList details.inv > summary { grid-template-columns: 150px minmax(0,1fr) auto; } .app-shell #invList details.inv > summary > :first-child { justify-self: start; } }
.app-shell .letter-acts { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.app-shell .dl-acts { gap: 6px; flex-wrap: wrap; justify-content: flex-end; min-width: 252px; }
.app-shell #invList details.inv > summary > :last-child { text-align: right; justify-self: end; }
.app-shell .dq { grid-column: 1 / -1; }
.app-shell .dq .dq-list { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); column-gap: 36px; }
.app-shell .dq .dq-top b { white-space: nowrap; }
.app-shell label.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.app-shell .page-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; } .app-shell .page-toc a { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; } .app-shell .page-toc a:hover { background: var(--soft); }
.app-shell .sig-line { color: var(--warn); display: inline-block; max-width: 340px; }
@media (max-width: 640px) { .app-shell #invList details.inv > summary { grid-template-columns: minmax(0,1fr) auto; row-gap: 6px; } .app-shell #invList details.inv > summary > :first-child { grid-column: 1 / -1; justify-self: start; } }
/* settings, users (16 Nov 2026): role picker and the row's buttons; the list of sign-ins */
.app-shell .role-pick { min-height: 36px; padding: 4px 8px; font-size: 13px; }
.app-shell .row-acts { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.app-shell ul.plain { list-style: none; padding: 0; margin: 0 0 12px; } .app-shell ul.plain li { padding: 4px 0; }
.app-shell .grow { flex: 1; min-width: 220px; }
.app-shell form select { max-width: 100%; min-width: 0; } .app-shell form fieldset { min-width: 0; }
.app-shell .cx-why { display: block; margin-top: 4px; max-width: 46ch; }
.app-shell .cx-ev { margin: 6px 0 0; padding-left: 16px; max-width: 52ch; color: var(--muted, #5A5F66); } .app-shell .cx-ev li { margin: 2px 0; overflow-wrap: anywhere; }
/* properties (16 Nov 2026): the portfolio ranked, and one property's card */
.app-shell .score-bar { display: inline-block; width: 64px; height: 8px; border-radius: 4px; background: var(--line, #e3e8e5); vertical-align: middle; overflow: hidden; margin-right: 6px; }
.app-shell .score-fill { display: block; height: 100%; border-radius: 4px; background: #2f9e6e; }
.app-shell .score-fill.warn { background: #d99a1e; } .app-shell .score-fill.bad { background: #d9534f; }
.app-shell .prop-open { font-weight: 600; text-align: left; } .app-shell .prop-open.on { text-decoration: underline; }
.app-shell .prop-card h3 { margin-top: 22px; }
.app-shell td .link { padding: 0; min-height: 0; vertical-align: baseline; }
.app-shell .prop-lvl { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.app-shell .prop-cell { display: block; min-width: 0; } .app-shell .prop-lvl .pill { white-space: nowrap; }
@media (max-width: 700px) { .app-shell .prop-cell { text-align: right; } .app-shell .prop-lvl { justify-content: flex-end; } }
.app-shell .cx-more { margin-top: 12px; } .app-shell .cx-more > summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.app-shell .fb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
/* quality rounds (16 Nov 2026): big touch targets for a phone in one hand */
.app-shell .round-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 10px; }
.app-shell .round-item { border: 1px solid var(--line, #dde3df); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.app-shell .round-item.ok { border-color: #8fd0b0; background: rgba(47, 158, 110, 0.06); } .app-shell .round-item.dev { border-color: #e3a5a1; background: rgba(217, 83, 79, 0.06); }
.app-shell .round-btns { display: flex; gap: 8px; } .app-shell .round-btns .btn { min-height: 44px; min-width: 110px; }
.app-shell .round-btns .btn[aria-pressed="true"] { background: var(--ink, #12352a); color: #fff; }
.app-shell .round-note input { width: 100%; }
.app-shell .ok-msg { color: #1d7a50; font-weight: 600; }
.app-shell #roundForm { max-width: 640px; min-width: 0; } .app-shell #roundForm select, .app-shell #roundForm input:not([type=checkbox]) { max-width: 100%; box-sizing: border-box; }
.app-shell .round-list { grid-template-columns: minmax(0, 1fr); } .app-shell .round-item { min-width: 0; } .app-shell .round-btns .btn, .app-shell form.stack .round-btns .btn { flex: 1; min-width: 0; }
.app-shell .review-list { display: grid; gap: 10px; } .app-shell ul.plain li.review-item { border: 1px solid var(--line, #dde3df); border-radius: 12px; padding: 12px; display: grid; gap: 6px; }
.app-shell .review-item input { width: 100%; } .app-shell .review-item .btn { min-height: 44px; }
.app-shell .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.app-shell .break { overflow-wrap: anywhere; word-break: break-word; }

/* ===== charts v2 (18 Nov 2026): one visual language for every page ===== */
.app-shell { --c-sig: #5E8E00; --c-s1: #2A78D6; --c-s2: #EB6834; --c-s3: #1BAF7A; --c-grid: #E6E5E0; --c-axis: #5A5F66;
  --h1: #FBE3DC; --h2: #F6BBA8; --h3: #EE8A70; --h4: #D9534A; --h5: #A3281F; --h-none: #F5F5F1; }
@media (prefers-color-scheme: dark) { .app-shell { --c-sig: #C8F560; --c-s1: #3987E5; --c-s2: #D95926; --c-s3: #199E70; --c-grid: #2A2E35; --c-axis: #9EA3AA;
  --h1: #3B2420; --h2: #6A2E25; --h3: #9C3B2E; --h4: #D9574A; --h5: #F59A8C; --h-none: #16191D; } }
.app-shell .viz { width: 100%; overflow: hidden; }
.app-shell .viz svg { display: block; width: 100%; height: auto; overflow: visible; font: 12px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.app-shell .viz .gl { stroke: var(--c-grid); stroke-width: 1; } .app-shell .viz .gl.base { stroke: var(--c-ghost); }
.app-shell .viz .ax { fill: var(--c-axis); font-size: 12px; font-variant-numeric: tabular-nums; } .app-shell .viz .ax.x { font-weight: 600; } .app-shell .viz .ax.t { font-weight: 600; font-size: 12px; }
.app-shell .viz .dl { fill: var(--ink); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.app-shell .viz .qd { fill: var(--muted); font-size: 12px; font-weight: 600; opacity: .8; }
.app-shell .viz .hit { fill: transparent; }
.app-shell .viz .m, .app-shell .viz .b, .app-shell .donut .arc { fill: var(--c-brand); }
.app-shell .viz [class~="c-ok"] { fill: var(--c-ok); } .app-shell .viz [class~="c-bad"] { fill: var(--c-bad); } .app-shell .viz [class~="c-warn"] { fill: var(--c-warn); }
.app-shell .viz [class~="c-info"] { fill: var(--c-info); } .app-shell .viz [class~="c-brand"] { fill: var(--c-brand); } .app-shell .viz [class~="c-ghost"] { fill: var(--c-ghost); }
.app-shell .viz [class~="c-sig"] { fill: var(--c-sig); } .app-shell .viz [class~="c-s1"] { fill: var(--c-s1); } .app-shell .viz [class~="c-s2"] { fill: var(--c-s2); } .app-shell .viz [class~="c-s3"] { fill: var(--c-s3); }
.app-shell .viz .m { transform-box: fill-box; transform-origin: bottom; animation: grow-y 700ms cubic-bezier(.2,.7,.2,1) both; }
.app-shell .viz .col-g:hover .m, .app-shell .viz .col-g:focus .m { filter: brightness(1.12); }
.app-shell .viz .col-g:focus, .app-shell .viz .xh:focus, .app-shell .viz .bub:focus, .app-shell .viz .tl:focus, .app-shell .donut .arc:focus, .app-shell .heat td:focus { outline: none; }
.app-shell .viz .col-g:focus-visible .hit, .app-shell .viz .xh:focus-visible .hit, .app-shell .viz .tl:focus-visible .hit { fill: color-mix(in srgb, var(--accent) 8%, transparent); }
/* lines */
.app-shell .viz .ln { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke: var(--c-brand); }
.app-shell .viz .ln.dash { stroke-dasharray: 6 5; }
.app-shell .viz .ln.c-ok { stroke: var(--c-ok); } .app-shell .viz .ln.c-bad { stroke: var(--c-bad); } .app-shell .viz .ln.c-warn { stroke: var(--c-warn); } .app-shell .viz .ln.c-info { stroke: var(--c-info); }
.app-shell .viz .ln.c-ghost { stroke: var(--c-axis); } .app-shell .viz .ln.c-sig { stroke: var(--c-sig); } .app-shell .viz .ln.c-s1 { stroke: var(--c-s1); } .app-shell .viz .ln.c-s2 { stroke: var(--c-s2); } .app-shell .viz .ln.c-s3 { stroke: var(--c-s3); }
.app-shell .viz .ln { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1100ms cubic-bezier(.3,.6,.2,1) forwards; } .app-shell .viz .ln.dash { stroke-dasharray: 6 5; stroke-dashoffset: 0; animation: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.app-shell .viz .area { opacity: .12; }
.app-shell .viz .dot, .app-shell .viz .hd { stroke: var(--surface); stroke-width: 2; }
.app-shell .viz .hd, .app-shell .viz .hair { opacity: 0; transition: opacity .12s; }
.app-shell .viz .hair { stroke: var(--c-axis); stroke-width: 1; }
.app-shell .viz .xh:hover .hd, .app-shell .viz .xh:hover .hair, .app-shell .viz .xh:focus-visible .hd, .app-shell .viz .xh:focus-visible .hair { opacity: 1; }
.app-shell .viz .ref { stroke: var(--c-axis); stroke-width: 1.5; stroke-dasharray: 4 4; }
/* bubbles */
.app-shell .viz .b { fill-opacity: .82; stroke: var(--surface); stroke-width: 2; transition: fill-opacity .12s; }
.app-shell .viz .bub:hover .b, .app-shell .viz .bub:focus-visible .b { fill-opacity: 1; stroke: var(--ink); }
/* waterfall and timeline */
.app-shell .viz .wf-c { stroke: var(--c-axis); stroke-width: 1; stroke-dasharray: 3 3; }
.app-shell .viz .wf-l { font-size: 12px; line-height: 1.25; color: var(--muted); text-align: center; overflow-wrap: anywhere; } .app-shell .viz .wf-l b { color: var(--ink); }
.app-shell .viz .tl-l { display: grid; line-height: 1.25; font-size: 13px; } .app-shell .viz .tl-l b { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .app-shell .viz .tl-l span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-shell .viz .tl-b { transform-box: fill-box; transform-origin: left; animation: grow-x 800ms cubic-bezier(.2,.7,.2,1) both; }
.app-shell .viz .tl:hover .hit { fill: var(--soft); }
.app-shell .viz .tl-n { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.app-shell .viz .today { stroke: var(--accent); stroke-width: 2; } .app-shell .viz .today-l { fill: var(--accent); font-size: 12px; font-weight: 700; }
/* legend keys: a swatch for areas, a short line for lines */
.app-shell .viz-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.app-shell .viz-key span { display: inline-flex; align-items: center; gap: 7px; }
.app-shell .k { width: 11px; height: 11px; border-radius: 3px; display: inline-block; flex: none; background: var(--c-brand); }
.app-shell .k.kl { height: 3px; width: 16px; border-radius: 2px; } .app-shell .k.kl.dash { background: repeating-linear-gradient(90deg, var(--c-axis) 0 5px, transparent 5px 8px) !important; }
.app-shell .k.c-ok { background: var(--c-ok); } .app-shell .k.c-bad { background: var(--c-bad); } .app-shell .k.c-warn { background: var(--c-warn); } .app-shell .k.c-info { background: var(--c-info); }
.app-shell .k.c-brand { background: var(--c-brand); } .app-shell .k.c-ghost { background: var(--c-ghost); } .app-shell .k.c-sig { background: var(--c-sig); }
.app-shell .k.c-s1 { background: var(--c-s1); } .app-shell .k.c-s2 { background: var(--c-s2); } .app-shell .k.c-s3 { background: var(--c-s3); }
.app-shell .k.k-notice { width: 10px; height: 10px; border-radius: 1px; transform: rotate(45deg); background: var(--ink); }
/* donut */
.app-shell .donut { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.app-shell .donut-ring { position: relative; width: 180px; height: 180px; flex: none; }
.app-shell .donut-ring svg { width: 180px; height: 180px; display: block; }
.app-shell .donut .arc-bg { fill: none; stroke: var(--c-track); stroke-width: 22; }
.app-shell .donut .arc { fill: none; stroke-width: 22; stroke: var(--c-brand); cursor: default; transition: stroke-width .12s; animation: arc-in 900ms cubic-bezier(.2,.7,.2,1) both; }
.app-shell .donut .arc:hover, .app-shell .donut .arc:focus-visible { stroke-width: 28; }
@keyframes arc-in { from { stroke-dasharray: 0 100; } }
.app-shell .donut .arc.c-ok { stroke: var(--c-ok); } .app-shell .donut .arc.c-bad { stroke: var(--c-bad); } .app-shell .donut .arc.c-warn { stroke: var(--c-warn); } .app-shell .donut .arc.c-info { stroke: var(--c-info); }
.app-shell .donut .arc.c-brand { stroke: var(--c-brand); } .app-shell .donut .arc.c-ghost { stroke: var(--c-ghost); } .app-shell .donut .arc.c-s1 { stroke: var(--c-s1); } .app-shell .donut .arc.c-s2 { stroke: var(--c-s2); } .app-shell .donut .arc.c-s3 { stroke: var(--c-s3); }
.app-shell .donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.app-shell .donut-c b { font-size: 28px; font-weight: 760; letter-spacing: -0.02em; line-height: 1; } .app-shell .donut-c span { font-size: 12px; color: var(--muted); margin-top: 6px; max-width: 110px; line-height: 1.3; }
.app-shell .donut-key { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; min-width: 200px; }
.app-shell .donut-key li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 44px; gap: 10px; align-items: center; font-size: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.app-shell .donut-key li:last-child { border-bottom: 0; } .app-shell .donut-key b { font-variant-numeric: tabular-nums; } .app-shell .donut-key small { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
/* heat map */
.app-shell .heat-wrap { overflow-x: auto; }
.app-shell table.heat { min-width: 0; border-collapse: separate; border-spacing: 3px; width: 100%; }
.app-shell table.heat th { position: static; background: none; border: 0; padding: 4px 6px; font-size: 12px; text-align: center; white-space: nowrap; }
.app-shell table.heat th[scope=row] { text-align: left; font-size: 13.5px; color: var(--ink); font-weight: 600; padding-right: 12px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.app-shell table.heat td { height: 34px; min-width: 28px; padding: 0; border: 0; border-radius: 6px; background: var(--c-track); transition: transform .1s; }
.app-shell table.heat td:hover, .app-shell table.heat td:focus-visible { transform: scale(1.12); box-shadow: 0 0 0 2px var(--ink); }
.app-shell tbody tr:hover td.h0, .app-shell table.heat td.h0 { background: var(--c-track); }
.app-shell table.heat td.h1, .app-shell .heat-scale .h1 { background: var(--h1); } .app-shell table.heat td.h2, .app-shell .heat-scale .h2 { background: var(--h2); } .app-shell table.heat td.h3, .app-shell .heat-scale .h3 { background: var(--h3); }
.app-shell table.heat td.h4, .app-shell .heat-scale .h4 { background: var(--h4); } .app-shell table.heat td.h5, .app-shell .heat-scale .h5 { background: var(--h5); }
.app-shell table.heat td.none, .app-shell .heat-scale .none { background: repeating-linear-gradient(135deg, var(--h-none) 0 4px, var(--c-track) 4px 8px); }
.app-shell .heat-scale { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.app-shell .heat-scale i { width: 22px; height: 12px; border-radius: 3px; display: inline-block; } .app-shell .heat-scale span { margin: 0 6px; }
/* sparkline */
.app-shell .spark { display: block; margin-top: 8px; width: 120px; height: 34px; }
.app-shell .spark path { fill: none; stroke: var(--c-sig); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; } .app-shell .spark circle { fill: var(--c-sig); }
.app-shell .spark.c-bad path { stroke: #F07167; } .app-shell .spark.c-bad circle { fill: #F07167; }
/* the money's journey */
.app-shell .journey { display: flex; gap: 0; }
.app-shell .journey .j-node { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; border-radius: 14px; background: var(--ground); border: 1px solid var(--line); animation: page-in 400ms ease-out both; }
.app-shell .journey .j-node:nth-child(3) { animation-delay: 80ms; } .app-shell .journey .j-node:nth-child(5) { animation-delay: 160ms; } .app-shell .journey .j-node:nth-child(7) { animation-delay: 240ms; } .app-shell .journey .j-node:nth-child(9) { animation-delay: 320ms; }
.app-shell .journey .j-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); margin-bottom: 6px; }
.app-shell .journey .j-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-shell .journey .t-bad .j-ic svg { stroke: var(--c-bad); } .app-shell .journey .t-warn .j-ic svg { stroke: var(--c-warn); } .app-shell .journey .t-info .j-ic svg { stroke: var(--c-info); } .app-shell .journey .t-ok .j-ic svg { stroke: var(--c-ok); }
.app-shell .journey .j-node b { font-size: 21px; font-weight: 740; letter-spacing: -0.02em; line-height: 1.15; }
.app-shell .journey .j-t { font-weight: 650; font-size: 14px; } .app-shell .journey .j-n { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.app-shell .journey .j-link { flex: 0 0 54px; display: grid; place-items: center; position: relative; }
.app-shell .journey .j-link::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: var(--c-ghost); }
.app-shell .journey .j-link::after { content: ""; position: absolute; right: 3px; top: calc(50% - 4px); border: 5px solid transparent; border-left: 7px solid var(--c-ghost); border-right: 0; }
.app-shell .journey .j-link span { position: relative; background: var(--surface); font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 2px 4px; border-radius: 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 980px) {
  .app-shell .journey { flex-direction: column; }
  .app-shell .journey .j-node { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; } .app-shell .journey .j-ic { grid-row: span 3; margin: 0; }
  .app-shell .journey .j-link { flex-basis: 34px; } .app-shell .journey .j-link::before { left: 50%; right: auto; top: 3px; bottom: 3px; width: 2px; height: auto; }
  .app-shell .journey .j-link::after { right: auto; left: calc(50% - 4px); top: auto; bottom: 2px; border: 5px solid transparent; border-top: 7px solid var(--c-ghost); border-bottom: 0; }
}
/* questions answered with one click */
.app-shell .answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 14px; margin-bottom: 18px; }
.app-shell .answer { text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; position: relative; transition: transform .15s, box-shadow .15s, border-color .15s; }
.app-shell .answer:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 47, 39, .10); border-color: var(--c-ghost); }
.app-shell .answer .q { font-size: 13.5px; font-weight: 650; color: var(--muted); }
.app-shell .answer .a { font-size: 25px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; }
.app-shell .answer .s { font-size: 13px; color: var(--muted); line-height: 1.4; }
.app-shell .answer .go { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 650; color: var(--accent); }
.app-shell .answer .spark { margin-top: 2px; } .app-shell .answer .spark path { stroke: var(--c-bad); } .app-shell .answer .spark circle { fill: var(--c-bad); }
.app-shell .answer .meter-line { height: 8px; border-radius: 4px; background: var(--c-track); overflow: hidden; margin-top: 6px; } .app-shell .answer .meter-line i { display: block; height: 100%; background: var(--c-ok); border-radius: 4px; transform-origin: left; animation: grow-x 900ms cubic-bezier(.2,.7,.2,1) both; }
.app-shell .answer .meter-line.t-warn i { background: var(--c-warn); } .app-shell .answer .meter-line.t-bad i { background: var(--c-bad); }
/* a story told in sections */
.app-shell .chapter { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 12px; }
.app-shell .chapter b { font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.app-shell .chapter h2 { margin: 0; font-size: 20px; letter-spacing: -0.015em; } .app-shell .chapter span { color: var(--muted); font-size: 14px; }
.app-shell .split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; } @media (max-width: 1100px) { .app-shell .split { grid-template-columns: minmax(0, 1fr); } }
.app-shell .split > .card { margin-bottom: 18px; }
/* the tooltip lives on the page body */
.app-shell .viz-tip { position: fixed; z-index: 90; pointer-events: none; max-width: 300px; background: #0B0D10; color: #F4F2EC; border-radius: 10px; padding: 9px 12px; font: 13px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; box-shadow: 0 12px 30px rgba(11, 13, 16, .28); opacity: 0; transform: translateY(4px); transition: opacity .1s, transform .1s; display: grid; gap: 2px; }
.app-shell .viz-tip.on { opacity: 1; transform: none; } .app-shell .viz-tip b { color: #FFFFFF; font-size: 13.5px; margin-bottom: 2px; } .app-shell .viz-tip span { color: #D9D7D0; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .app-shell .viz .m, .app-shell .viz .ln, .app-shell .donut .arc, .app-shell .viz .tl-b, .app-shell .journey .j-node, .app-shell .answer .meter-line i { animation: none; } .app-shell .viz .ln { stroke-dashoffset: 0; } }
@media print { .app-shell .viz-tip { display: none; } }
.app-shell .meter-line .w0 { width: 0%; } .app-shell .meter-line .w5 { width: 5%; } .app-shell .meter-line .w10 { width: 10%; } .app-shell .meter-line .w15 { width: 15%; } .app-shell .meter-line .w20 { width: 20%; } .app-shell .meter-line .w25 { width: 25%; } .app-shell .meter-line .w30 { width: 30%; } .app-shell .meter-line .w35 { width: 35%; } .app-shell .meter-line .w40 { width: 40%; } .app-shell .meter-line .w45 { width: 45%; } .app-shell .meter-line .w50 { width: 50%; } .app-shell .meter-line .w55 { width: 55%; } .app-shell .meter-line .w60 { width: 60%; } .app-shell .meter-line .w65 { width: 65%; } .app-shell .meter-line .w70 { width: 70%; } .app-shell .meter-line .w75 { width: 75%; } .app-shell .meter-line .w80 { width: 80%; } .app-shell .meter-line .w85 { width: 85%; } .app-shell .meter-line .w90 { width: 90%; } .app-shell .meter-line .w95 { width: 95%; } .app-shell .meter-line .w100 { width: 100%; }
.app-shell ol.journey { padding: 0; margin: 6px 0 12px; }
.app-shell table.heat th[scope=row] { width: 1%; }
.app-shell .hero-figs .spark { margin: 6px 0 0; order: -1; }
.app-shell .chart-grid.two { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.app-shell .heat-wrap, .app-shell .viz, .app-shell .donut { position: relative; }
.app-shell .chapter { flex-wrap: wrap; row-gap: 2px; } @media (max-width: 640px) { .app-shell .chapter span { flex-basis: 100%; padding-left: 0; } }

.app-shell .viz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.app-shell .answer .a-ic { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--soft); }
.app-shell .answer .a-ic svg { width: 19px; height: 19px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-shell .answer .q { padding-right: 44px; }
.app-shell .answers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199px) { .app-shell .answers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .app-shell .answers { grid-template-columns: minmax(0, 1fr); } }
/* charts that say what they show (18 Nov 2026) */
.app-shell .insight-card .eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.app-shell .insight-card h2.insight { font-size: 19px; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 6px; padding-left: 14px; border-left: 4px solid var(--c-ghost); max-width: 900px; }
.app-shell .insight-card h2.insight.t-bad { border-left-color: var(--c-bad); } .app-shell .insight-card h2.insight.t-warn { border-left-color: var(--c-warn); } .app-shell .insight-card h2.insight.t-ok { border-left-color: var(--c-ok); }
.app-shell .viz .co rect { fill: var(--ink); } .app-shell .viz .co path { fill: var(--ink); } .app-shell .viz .co-t { fill: var(--surface); font-size: 12px; font-weight: 700; }
.app-shell .viz .co { animation: page-in 500ms 500ms ease-out both; }
.app-shell .viz .col-g.hot .m { filter: none; }
.app-shell [data-drill] { cursor: pointer; }
.app-shell table.heat td.hot { box-shadow: 0 0 0 2px var(--ink); }
.app-shell table.heat td.heat-tot, .app-shell table.heat th.heat-tot { background: none; min-width: 120px; text-align: left; padding-left: 10px; white-space: nowrap; }
.app-shell table.heat td.heat-tot { display: table-cell; } .app-shell table.heat td.heat-tot:hover { transform: none; box-shadow: none; }
.app-shell .ht-bar { display: inline-block; vertical-align: middle; width: 54px; height: 8px; border-radius: 4px; background: var(--c-track); overflow: hidden; margin-right: 8px; }
.app-shell .ht-bar i { display: block; height: 100%; background: var(--c-bad); border-radius: 4px; }
.app-shell .ht-bar .w0 { width: 0; } .app-shell .ht-bar .w5 { width: 5%; } .app-shell .ht-bar .w10 { width: 10%; } .app-shell .ht-bar .w15 { width: 15%; } .app-shell .ht-bar .w20 { width: 20%; } .app-shell .ht-bar .w25 { width: 25%; } .app-shell .ht-bar .w30 { width: 30%; } .app-shell .ht-bar .w35 { width: 35%; } .app-shell .ht-bar .w40 { width: 40%; } .app-shell .ht-bar .w45 { width: 45%; } .app-shell .ht-bar .w50 { width: 50%; } .app-shell .ht-bar .w55 { width: 55%; } .app-shell .ht-bar .w60 { width: 60%; } .app-shell .ht-bar .w65 { width: 65%; } .app-shell .ht-bar .w70 { width: 70%; } .app-shell .ht-bar .w75 { width: 75%; } .app-shell .ht-bar .w80 { width: 80%; } .app-shell .ht-bar .w85 { width: 85%; } .app-shell .ht-bar .w90 { width: 90%; } .app-shell .ht-bar .w95 { width: 95%; } .app-shell .ht-bar .w100 { width: 100%; }
.app-shell .answer .trend { font-size: 12.5px; font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }
.app-shell .answer .trend::before { content: ""; border: 5px solid transparent; }
.app-shell .answer .trend.down { color: var(--ok); } .app-shell .answer .trend.down::before { border-top: 7px solid currentColor; border-bottom: 0; }
.app-shell .answer .trend.up { color: var(--bad); } .app-shell .answer .trend.up::before { border-bottom: 7px solid currentColor; border-top: 0; }
.app-shell .q-active.drill-on { background: var(--info-bg); color: var(--info); padding: 10px 14px; border-radius: 12px; }

/* round 3 (18 Nov 2026): fewer tiles, sorted attention, the invoice drawn against its agreement */
.app-shell .grid { grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); }
.app-shell .acts > .row.space { align-items: baseline; margin-bottom: 8px; } .app-shell .acts > .row.space h2 { margin: 0; }
.app-shell .act-more { margin-top: 10px; } .app-shell .act-more > summary { cursor: pointer; font-weight: 650; color: var(--accent); padding: 6px 0; font-size: 14px; } .app-shell .act-more[open] > summary { margin-bottom: 8px; }
.app-shell .notes-go li { padding: 0; } .app-shell .note-go { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left; background: none; border: 0; padding: 11px 6px; font: inherit; color: inherit; cursor: pointer; border-radius: 10px; }
.app-shell .note-go:hover { background: var(--soft); } .app-shell .note-go .na { font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-shell .num-bar { display: inline-flex; align-items: center; gap: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.app-shell .cmp { display: grid; grid-template-columns: max-content minmax(80px, 1fr) max-content; gap: 8px 14px; align-items: center; margin: 4px 0 16px; padding: 14px 16px; border-radius: 12px; background: var(--ground); border: 1px solid var(--line); }
.app-shell .cmp .cl { font-size: 13px; color: var(--muted); } .app-shell .cmp b { font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; } .app-shell .cmp small { font-weight: 700; font-size: 12.5px; }
.app-shell .cmp .cb { height: 12px; border-radius: 6px; background: var(--c-track); overflow: hidden; }
.app-shell .cmp .cb i { display: block; height: 100%; border-radius: 6px; transform-origin: left; animation: grow-x 700ms cubic-bezier(.2,.7,.2,1) both; }
.app-shell .cmp .exp { background: var(--c-ghost); } .app-shell .cmp .inv-b.t-ok { background: var(--c-ok); } .app-shell .cmp .inv-b.t-bad { background: var(--c-bad); } .app-shell .cmp .inv-b.t-info { background: var(--c-info); }
.app-shell .cmp small.t-bad { color: var(--bad); } .app-shell .cmp small.t-ok { color: var(--ok); } .app-shell .cmp small.t-info { color: var(--info); }
.app-shell .cmp .w0 { width: 0%; }
.app-shell .cmp .w2 { width: 2%; }
.app-shell .cmp .w4 { width: 4%; }
.app-shell .cmp .w6 { width: 6%; }
.app-shell .cmp .w8 { width: 8%; }
.app-shell .cmp .w10 { width: 10%; }
.app-shell .cmp .w12 { width: 12%; }
.app-shell .cmp .w14 { width: 14%; }
.app-shell .cmp .w16 { width: 16%; }
.app-shell .cmp .w18 { width: 18%; }
.app-shell .cmp .w20 { width: 20%; }
.app-shell .cmp .w22 { width: 22%; }
.app-shell .cmp .w24 { width: 24%; }
.app-shell .cmp .w26 { width: 26%; }
.app-shell .cmp .w28 { width: 28%; }
.app-shell .cmp .w30 { width: 30%; }
.app-shell .cmp .w32 { width: 32%; }
.app-shell .cmp .w34 { width: 34%; }
.app-shell .cmp .w36 { width: 36%; }
.app-shell .cmp .w38 { width: 38%; }
.app-shell .cmp .w40 { width: 40%; }
.app-shell .cmp .w42 { width: 42%; }
.app-shell .cmp .w44 { width: 44%; }
.app-shell .cmp .w46 { width: 46%; }
.app-shell .cmp .w48 { width: 48%; }
.app-shell .cmp .w50 { width: 50%; }
.app-shell .cmp .w52 { width: 52%; }
.app-shell .cmp .w54 { width: 54%; }
.app-shell .cmp .w56 { width: 56%; }
.app-shell .cmp .w58 { width: 58%; }
.app-shell .cmp .w60 { width: 60%; }
.app-shell .cmp .w62 { width: 62%; }
.app-shell .cmp .w64 { width: 64%; }
.app-shell .cmp .w66 { width: 66%; }
.app-shell .cmp .w68 { width: 68%; }
.app-shell .cmp .w70 { width: 70%; }
.app-shell .cmp .w72 { width: 72%; }
.app-shell .cmp .w74 { width: 74%; }
.app-shell .cmp .w76 { width: 76%; }
.app-shell .cmp .w78 { width: 78%; }
.app-shell .cmp .w80 { width: 80%; }
.app-shell .cmp .w82 { width: 82%; }
.app-shell .cmp .w84 { width: 84%; }
.app-shell .cmp .w86 { width: 86%; }
.app-shell .cmp .w88 { width: 88%; }
.app-shell .cmp .w90 { width: 90%; }
.app-shell .cmp .w92 { width: 92%; }
.app-shell .cmp .w94 { width: 94%; }
.app-shell .cmp .w96 { width: 96%; }
.app-shell .cmp .w98 { width: 98%; }
.app-shell .cmp .w100 { width: 100%; }
.app-shell .note-go { grid-template-columns: 96px minmax(0, 1fr) auto; } .app-shell .note-go .pill { justify-self: start; }
@media (max-width: 640px) { .app-shell .note-go { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; } .app-shell .note-go .nt { grid-column: 1 / -1; grid-row: 2; } .app-shell .note-go .na { grid-column: 2; grid-row: 1; } }
.app-shell .prop-ins { margin: 0 0 6px; padding-left: 12px; border-left: 4px solid var(--c-ghost); font-weight: 650; } .app-shell .prop-ins.t-bad { border-left-color: var(--c-bad); } .app-shell .prop-ins.t-ok { border-left-color: var(--c-ok); }
/* Data tab (23 Nov 2026): equal cards, state on top, actions pinned to the bottom, so every box lines up */
.app-shell .files { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; align-items: stretch; margin-top: 14px; }
.app-shell .files .dfile { margin: 0; display: flex; flex-direction: column; gap: 12px; min-height: 172px; border-top: 3px solid var(--line); }
.app-shell .dfile.is-on { border-top-color: var(--accent); } .app-shell .dfile.is-err { border-top-color: var(--bad); }
.app-shell .df-head { display: flex; gap: 10px; align-items: flex-start; }
.app-shell .df-head h2 { margin: 0; font-size: 16px; line-height: 1.3; }
.app-shell .df-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--line); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line); }
.app-shell .is-on .df-dot { background: var(--accent); } .app-shell .is-err .df-dot { background: var(--bad); }
.app-shell .df-st { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.app-shell .df-foot { margin-top: auto; display: grid; grid-template-columns: 1fr; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.app-shell .df-foot .btn { min-height: 40px; padding: 8px 14px; width: 100%; text-align: center; display: flex; align-items: center; justify-content: center; }
.app-shell .df-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; min-height: 30px; }
.app-shell .files + .card { margin-top: 14px; }
.app-shell .link-btn { font: inherit; font-size: 13px; font-weight: 600; background: none; border: 0; padding: 6px 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent; }
.app-shell .link-btn:hover, .app-shell .link-btn:focus-within { text-decoration-color: currentColor; }
.app-shell .link-btn.danger { color: var(--bad); }
.app-shell .dfile .errs, .app-shell .dfile .read-info { margin: 0; }
.app-shell .dq { margin-bottom: 0; }
.app-shell .dq .dq-list { grid-template-rows: auto; }
.app-shell .dq .dq-list li { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 6px; }
.app-shell .dq .dq-top { align-items: end; } .app-shell .dq .dq-bar { margin-top: 0; align-self: center; } .app-shell .dq-list li p:empty { display: none; }

/* bullet bars (23 Nov 2026): value as a solid bar, the target as an upright mark, over the target in red, missing as an open segment */
.app-shell { --c-base: #8FA79C; } @media (prefers-color-scheme: dark) { .app-shell { --c-base: #557366; } }
.app-shell .chart.bars.v2 { gap: 14px 18px; }
.app-shell .chart.bars.v2 svg { height: 24px; overflow: visible; }
.app-shell .chart.bars.v2 rect.base, .app-shell .chart.bars.v2 .t-bad rect.fg.base { fill: var(--c-base); }
.app-shell .chart.bars.v2 rect.over, .app-shell .chart.bars.v2 .t-ok rect.over { fill: var(--c-bad); }
.app-shell .chart.bars.v2 rect.gap { fill: none; stroke: var(--c-bad); stroke-width: 1.5; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.app-shell .chart.bars.v2 .t-warn rect.gap { stroke: var(--c-warn); }
.app-shell .chart.bars.v2 line.tick { stroke: var(--ink); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.app-shell .chart.bars.v2 .bv { display: grid; justify-items: end; gap: 3px; font-size: 14px; line-height: 1.25; } .app-shell .chart.bars.v2 .bv2 { display: flex; align-items: center; gap: 8px; }
.app-shell .chart.bars.v2 .bv b { font-size: 15px; } .app-shell .chart.bars.v2 .bv small { font-size: 12px; color: var(--muted); }
.app-shell .dlt { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-shell .dlt.ok { background: var(--ok-bg); color: var(--ok); } .app-shell .dlt.bad { background: var(--bad-bg); color: var(--bad); } .app-shell .dlt.warn { background: var(--warn-bg); color: var(--warn); } .app-shell .dlt.info { background: var(--info-bg); color: var(--info); }
.app-shell .lg.t-tick { width: 3px; height: 14px; border-radius: 2px; background: var(--ink); vertical-align: -2px; }
@media (max-width: 640px) {
  .app-shell .chart.bars.v2 { gap: 18px; }
  .app-shell .chart.bars.v2 .bar-row { grid-template-areas: "l b" "s s" "m m"; row-gap: 2px; }
  .app-shell .chart.bars.v2 .bv { display: contents; } .app-shell .chart.bars.v2 .bv > b { grid-area: b; text-align: right; } .app-shell .chart.bars.v2 .bv2 { grid-area: m; justify-content: space-between; }
  .app-shell .chart.bars.v2 .bl { overflow-wrap: break-word; }
}
/* a dashed line in the legend keeps its series colour (23 Nov 2026: the forecast is orange, not grey) */
.app-shell .k.kl.dash.c-s1 { background: repeating-linear-gradient(90deg, var(--c-s1) 0 5px, transparent 5px 8px) !important; }
.app-shell .k.kl.dash.c-s2 { background: repeating-linear-gradient(90deg, var(--c-s2) 0 5px, transparent 5px 8px) !important; }
.app-shell .k.kl.dash.c-s3 { background: repeating-linear-gradient(90deg, var(--c-s3) 0 5px, transparent 5px 8px) !important; }
.app-shell .k.kl.dash.c-ok { background: repeating-linear-gradient(90deg, var(--c-ok) 0 5px, transparent 5px 8px) !important; }
.app-shell .k.kl.dash.c-bad { background: repeating-linear-gradient(90deg, var(--c-bad) 0 5px, transparent 5px 8px) !important; }
/* the supplier card (23 Nov 2026): one card per supplier, score ring, four parts, the money, the way in */
.app-shell .scards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 14px; margin-top: 6px; }
.app-shell .scard { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--surface); position: relative; overflow: hidden; }
.app-shell .scard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c-ok); }
.app-shell .scard.t-warn::before { background: var(--c-warn); } .app-shell .scard.t-bad::before { background: var(--c-bad); }
.app-shell .scard header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.app-shell .scard h3 { margin: 0; font-size: 16px; line-height: 1.3; } .app-shell .scard header p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.app-shell .sc-ring { position: relative; width: 64px; height: 64px; flex: none; }
.app-shell .sc-ring svg { width: 64px; height: 64px; transform: rotate(-90deg); display: block; }
.app-shell .sc-ring circle { fill: none; stroke-width: 7; } .app-shell .sc-ring .trk { stroke: var(--c-track); }
.app-shell .sc-ring .arc { stroke: var(--c-ok); stroke-linecap: round; } .app-shell .t-warn .sc-ring .arc { stroke: var(--c-warn); } .app-shell .t-bad .sc-ring .arc { stroke: var(--c-bad); }
.app-shell .sc-ring .goal { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.app-shell .sc-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.app-shell .sc-lvl { margin: -4px 0 0; }
.app-shell .sc-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.app-shell .sc-parts li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 120px) 62px; align-items: center; gap: 10px; font-size: 13px; }
.app-shell .sc-parts svg { width: 100%; height: 6px; display: block; } .app-shell .sc-parts rect.bg { fill: var(--c-track); }
.app-shell .sc-parts rect.fg { fill: var(--c-ok); } .app-shell .sc-parts .t-warn rect.fg { fill: var(--c-warn); } .app-shell .sc-parts .t-bad rect.fg { fill: var(--c-bad); }
.app-shell .sc-parts b { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .app-shell .sc-parts b small { color: var(--muted); font-weight: 500; } .app-shell .sc-parts b .muted { font-weight: 500; font-size: 12px; }
.app-shell .sc-flag { margin: 0; font-size: 13px; padding: 7px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); }
.app-shell .scard footer { margin-top: auto; display: grid; grid-template-columns: auto auto 1fr; align-items: end; gap: 6px 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.app-shell .scard footer small { display: block; font-size: 12px; color: var(--muted); } .app-shell .scard footer b { font-size: 16px; font-variant-numeric: tabular-nums; } .app-shell .scard footer b.neg { color: var(--bad); }
.app-shell .scard footer .link-btn { justify-self: end; }
/* 24 Nov 2026: design check. Controls side by side share one height; bars in a table column line up whatever the number's width;
   phone fields at 16px so the phone does not zoom; tap targets on the trail; a file field looks like the rest; the invoice
   comparison stacks on a phone; the trade filter on Håndværkere */
.app-shell .ask .btn { min-height: 48px; }
.app-shell .num-bar .nb-v { display: inline-block; min-width: 7.5em; text-align: right; }
.app-shell td .num-bar meter + .nb-v { min-width: 2.2em; }
.app-shell input[type="file"] { font: inherit; font-size: 14px; color: var(--muted); max-width: 100%; }
.app-shell input[type="file"]::file-selector-button { font: inherit; font-weight: 600; font-size: 14px; color: var(--ink); background: var(--card, #fff); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; margin-right: 12px; cursor: pointer; min-height: 40px; }
.app-shell input[type="file"]::file-selector-button:hover { border-color: var(--ink); }
.app-shell .craft-trades { flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.app-shell .craft-trades [aria-pressed="true"] { background: var(--ink); color: var(--bg, #fff); border-color: var(--ink); }
@media (max-width: 600px) {
  .app-shell input:not([type=checkbox]):not([type=radio]):not([type=file]), .app-shell select, .app-shell textarea, .app-shell .ask .ask-input { font-size: 16px; }
  .app-shell .crumbs .link { min-height: 36px; padding: 6px 2px; display: inline-flex; align-items: center; }
  .app-shell .cmp { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .app-shell .cmp b { white-space: normal; }
}
/* keyboard shortcuts (24 Nov 2026): the hint in the search field and the list behind "?" */
.app-shell kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border: 1px solid var(--line, #E2E1DB); border-bottom-width: 2px; border-radius: 6px; background: var(--surface, #fff); color: var(--ink, #0B0D10); font: 600 12px/18px ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }
.app-shell .search .q-kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.app-shell .search input:focus ~ .q-kbd, .app-shell .search input:not(:placeholder-shown) ~ .q-kbd { display: none; }
@media (max-width: 900px), (pointer: coarse) { .app-shell .search .q-kbd { display: none; } }

/* one height for every single-line field (24 Nov 2026): at 16px on a phone a text field grew to 47px, a date field to 49px
   and a dropdown stayed at 44px, so fields side by side did not line up */
.app-shell input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not(#q):not(.ask-input), .app-shell select { height: 44px; padding-top: 0; padding-bottom: 0; line-height: normal; box-sizing: border-box; }
/* every list of expandable rows keeps its status in one column, so the names line up whatever the status says (24 Nov 2026) */
@media (min-width: 641px) { .app-shell details.inv.st > summary { grid-template-columns: 150px minmax(0,1fr) auto; } .app-shell details.inv.st > summary > :first-child { justify-self: start; } }
.app-shell details.inv.st > summary > :last-child { text-align: right; justify-self: end; }
@media (max-width: 640px) { .app-shell details.inv.st > summary { grid-template-columns: minmax(0,1fr) auto; row-gap: 6px; } .app-shell details.inv.st > summary > :first-child { grid-column: 1 / -1; justify-self: start; } }
/* focus the page moves itself (main after a view change, 24 Nov 2026) shows no ring; keyboard focus on controls still does */
.app-shell [tabindex="-1"]:focus { outline: none; }
