:root {
  /* Design tokens v2: deep green frame, warm neutral canvas, orange as the signal. Old names are kept as aliases. */
  --bg: #f7f7f4; --surface: #ffffff; --card: #ffffff; --soft: #f2f2ee; --chip: #f0f0eb; --line: #e4e4de; --line2: #ecece7; --line-strong: #d3d3cb;
  --ink: #111714; --ink2: #3d4642; --muted: #5f6964;
  --accent: #16191e; --accent-hover: #2d323a; --accent-soft: #f0efea; --accent-ink: #16191e; --on-accent: #ffffff;
  --signal: #ff7a45; --signal-ink: #b8420f; --on-dark: #ff7a45;
  --dark: #13161b; --dark2: #1d2128; --side-ink: #b4bac3; --side-hover: rgba(255,255,255,.06); --side-on: rgba(255,255,255,.10);
  --ok: #15703a; --ok-bg: #e7f5ec; --warn: #8a5a00; --warn-bg: #fbf1d9; --bad: #b42318; --bad-bg: #fdecea; --info: #1d5faf; --info-bg: #e8f0fb;
  --bad-soft: #fdecea; --ok-soft: #e7f5ec; --bad-ink: #b42318; --ok-ink: #15703a; --focus: #2b6cb0;
  --e1: 0 1px 2px rgba(16,24,20,.06), 0 1px 1px rgba(16,24,20,.04); --e2: 0 8px 24px -6px rgba(16,24,20,.14); --e3: 0 24px 60px -12px rgba(0,0,0,.35);
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --ease: cubic-bezier(.2,.8,.2,1);
  --display: 'Archivo', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif; --body: 'Instrument Sans', 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif; --mono: 'JetBrains Mono', 'Cascadia Mono', Consolas, ui-monospace, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; }
a { color: var(--accent); }
h1 { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 6px; }
h2 { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 0 0 6px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--dark); color: #ecedef; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.side a { color: #c9cdd3; text-decoration: none; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.side a.on { background: #262b33; color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--on-dark); }
.side .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; padding: 0 10px 18px; }
.side { overflow-y: auto; scrollbar-width: thin; }
.side > * { flex-shrink: 0; }
@media (min-width: 901px) and (max-height: 900px) { .side { padding-top: 14px; padding-bottom: 12px; gap: 2px; } .side a { padding: 7px 12px; } .side .brand { padding-bottom: 8px; } }
.who { margin-top: auto; padding: 12px; border-radius: 12px; background: var(--dark2); display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.who span { color: #a1a7b0; word-break: break-all; }
.link { background: none; border: none; color: var(--on-dark); padding: 0; margin-top: 6px; cursor: pointer; font: inherit; }
.main { padding: 30px 40px 60px; max-width: 1200px; }
.bare { min-height: 100vh; }
.flash { padding: 12px 16px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); margin-bottom: 18px; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card.dark { background: var(--dark); color: #ecedef; border-color: var(--dark); }
.stat { font-family: var(--mono); font-size: 30px; font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn:disabled { background: var(--chip); color: var(--muted); border-color: var(--chip); cursor: not-allowed; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--chip); color: var(--ink2); }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.dark { background: var(--dark); color: #fff; }
.chip.sel { background: var(--chip); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
a.chip { text-decoration: none; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--line2); vertical-align: top; }
.table-card { padding: 0; overflow: hidden; }
form.stack { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
label { font-weight: 600; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
label .muted { font-weight: 400; }
input[type=text], input[type=number], input[type=email], select, textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; background: var(--surface); }
legend { font-weight: 700; padding: 0 6px; }
.opt { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 500; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; min-width: 180px; cursor: pointer; }
.opt small { display: block; color: var(--muted); font-weight: 400; }
.checks .check { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.bar { height: 10px; border-radius: 5px; background: var(--chip); overflow: hidden; }
.bar > i { display: block; height: 10px; background: var(--accent); }
.hero { display: grid; grid-template-columns: 560px minmax(0, 1fr); min-height: 100vh; }
.hero .brandside { background: var(--dark); color: #ecedef; padding: 56px; display: flex; flex-direction: column; gap: 28px; }
.hero .brandside h1 { font-size: 58px; color: #fff; }
.hero .formside { display: flex; align-items: center; justify-content: center; padding: 40px; }
.code { font-family: var(--mono); font-size: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; word-break: break-all; }
.log { font-family: var(--mono); font-size: 13px; background: var(--dark); color: #d9e4e1; border-radius: 12px; padding: 16px; white-space: pre-wrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 900px) { .shell, .hero { grid-template-columns: 1fr; } .side { position: static; height: auto; } .g3, .g4 { grid-template-columns: 1fr 1fr; } }
.simbar { background: #fbe3b8; color: #5c3600; padding: 8px 20px; font-size: 13px; font-weight: 600; text-align: center; }
/* customer portal (partner-branded) */
.ptop { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 32px; background: var(--surface); border-bottom: 1px solid var(--line); }
.pmark { width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.ptabs { display: flex; gap: 4px; padding: 0 32px; background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto; }
.ptabs a { padding: 14px 14px; color: var(--muted); text-decoration: none; font-weight: 500; white-space: nowrap; }
.ptabs a.on { color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--brand); }
.ptabs .count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: #c2410c; color: #fff; font-size: 12px; text-align: center; }
.pmain { padding: 28px 32px 60px; max-width: 1200px; }
.pmain .btn { background: var(--brand); border-color: var(--brand); }
.pmain .btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.danger { background: #b42318; border-color: #b42318; }
.inline { display: inline; }
.tiny { font-size: 13px; }
.checks .check > .chip { align-self: start; justify-self: start; }
.pmain a:not(.btn) { color: var(--brand); }
.pmain .bar > i { background: var(--brand); }
/* live wizard panel */
.wiz { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.wiz form { max-width: 720px; }
.live { position: sticky; top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; transition: opacity .15s; }
.live.busy { opacity: .55; }
.diagram { display: flex; flex-direction: column; gap: 6px; }
.diagram .node { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); display: flex; flex-direction: column; gap: 2px; }
.diagram .node small { color: var(--muted); font-size: 12.5px; }
.diagram .node.user { background: var(--chip); }
.diagram .node.soft { background: var(--soft); }
.diagram .arrow { text-align: center; color: var(--muted); line-height: 1; }
.diagram .fan { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* cost comparison */
.compare { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); margin-top: 12px; }
.cmp-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cmp-head .big { font-size: 24px; font-weight: 700; }
.cmp-head .big small { font-size: 13px; color: var(--muted); font-weight: 400; }
.cmp-arrow { font-size: 20px; color: var(--muted); }
.delta { margin-left: auto; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--chip); }
.delta.up { background: var(--bad-soft); color: var(--bad-ink); }
.delta.down { background: var(--ok-soft); color: var(--ok-ink); }
.cmp-lines { margin-top: 10px; font-size: 14px; }
.preview:empty { display: none; }
.preview .compare { margin-top: 0; }
@media (max-width: 1100px) { .wiz { grid-template-columns: 1fr; } .live { position: static; } }
.chip { white-space: nowrap; }
.approval { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: start; }
/* small screens */
@media (max-width: 900px) {
  .side { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; gap: 2px; }
  .side .brand { padding: 0 12px 0 4px; }
  .side .who { margin: 0 0 0 auto; padding: 6px 10px; flex-direction: row; align-items: center; gap: 10px; }
  .side .who span { display: none; }
  .main, .pmain { padding: 20px 16px 48px; }
  .table-card, .main .card { overflow-x: auto; }
  .table-card table { min-width: 560px; }
  .ptop { padding: 12px 16px; flex-wrap: wrap; }
  .ptabs { padding: 0 8px; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4, .approval { grid-template-columns: 1fr; }
  h1 { font-size: 30px; }
  .stat { font-size: 30px; }
  .hero .brandside { padding: 28px 20px; } .hero .brandside h1 { font-size: 38px; } .hero .formside { padding: 24px 16px; }
  .cmp-head { gap: 10px; } .delta { margin-left: 0; }
}
@media (max-width: 900px) { .shell, .hero { grid-template-columns: minmax(0, 1fr); } }
.danger-text { color: var(--bad-ink); }

/* spend chart */
.chart-wrap { margin-top: 10px; }
.chart { width: 100%; height: auto; display: block; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-label { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart-line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--brand); }
.chart-pace { stroke: var(--brand); stroke-width: 2; stroke-dasharray: 5 5; opacity: .55; }
.chart-ref { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 4; }
.chart-limit { stroke: var(--warn, #b45309); stroke-width: 1.5; }
.progress { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--ink, #111); border-radius: 99px; }
.next-step { border: 1px solid var(--ink, #111); border-radius: 12px; padding: 12px 14px; margin: 4px 0 10px; }
.next-step { flex-wrap: wrap; }
.chart-label { font-size: 12px; }
@media (max-width: 640px) { .chart-label { font-size: 24px; } .chart-line { stroke-width: 5; } .chart-pace, .chart-limit { stroke-width: 4; } }

/* ---- Dark theme: follows the system unless the person picks one ---- */
:root[data-theme=dark] { color-scheme: dark; --bg: #0e1014; --surface: #16191e; --card: #16191e; --soft: #1c2026; --chip: #22262d; --line: #2a2f37; --line2: #22262d; --line-strong: #363c45; --ink: #eceef1; --ink2: #c4c9d0; --muted: #98a0ab; --accent: #eceef1; --accent-hover: #ffffff; --accent-soft: #24282f; --accent-ink: #eceef1; --on-accent: #101318; --dark: #0a0c10; --dark2: #161a20; --ok: #5fd08c; --ok-bg: #16301f; --warn: #f0b955; --warn-bg: #3a2f12; --bad: #ff8d73; --bad-bg: #3d1d16; --info: #7db4ee; --info-bg: #10203a; --bad-soft: #3d1d16; --ok-soft: #16301f; --bad-ink: #ff8d73; --ok-ink: #5fd08c; --focus: #7db4ee; --e1: none; --e2: 0 12px 32px -8px rgba(0,0,0,.6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) { color-scheme: dark; --bg: #0e1014; --surface: #16191e; --card: #16191e; --soft: #1c2026; --chip: #22262d; --line: #2a2f37; --line2: #22262d; --line-strong: #363c45; --ink: #eceef1; --ink2: #c4c9d0; --muted: #98a0ab; --accent: #eceef1; --accent-hover: #ffffff; --accent-soft: #24282f; --accent-ink: #eceef1; --on-accent: #101318; --dark: #0a0c10; --dark2: #161a20; --ok: #5fd08c; --ok-bg: #16301f; --warn: #f0b955; --warn-bg: #3a2f12; --bad: #ff8d73; --bad-bg: #3d1d16; --info: #7db4ee; --info-bg: #10203a; --bad-soft: #3d1d16; --ok-soft: #16301f; --bad-ink: #ff8d73; --ok-ink: #5fd08c; --focus: #7db4ee; --e1: none; --e2: 0 12px 32px -8px rgba(0,0,0,.6); }
}
:root[data-theme=dark] .btn { color: var(--on-accent); }
:root[data-theme=dark] .btn.ghost, :root[data-theme=dark] .pmain .btn.ghost { color: var(--ink); }
:root[data-theme=dark] .btn.danger { color: #fff; }
:root[data-theme=dark] .simbar { background: #4a3a12; color: #f3d89a; }
:root[data-theme=dark] .ptabs .count { color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .btn { color: var(--on-accent); }
  :root:not([data-theme=light]) .btn.ghost, :root:not([data-theme=light]) .pmain .btn.ghost { color: var(--ink); }
  :root:not([data-theme=light]) .btn.danger { color: #fff; }
  :root:not([data-theme=light]) .simbar { background: #4a3a12; color: #f3d89a; }
}
.theme-toggle { background: none; border: 1px solid #3a4049; color: #c9cdd3; border-radius: 10px; padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; margin-top: 8px; text-align: left; }
.theme-toggle:hover { color: #fff; border-color: #6b7380; }

/* ---- Command palette (Ctrl+K) ---- */
.kbar-open { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #1d2128; border: 1px solid #2f353e; color: #a1a7b0; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; cursor: pointer; margin: 0 0 12px; }
.kbar-open kbd { font-family: var(--mono); font-size: 11px; border: 1px solid #3a4049; border-radius: 6px; padding: 1px 6px; color: #c9cdd3; }
.kbar { position: fixed; inset: 0; z-index: 50; background: rgba(8,10,14,.55); display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 0; }
.kbar.open { display: flex; }
.kbar-box { width: min(620px, 100%); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: hidden; }
.kbar-box input { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 18px; font-size: 17px; background: transparent; color: var(--ink); outline: none; }
.kbar-list { max-height: 50vh; overflow: auto; padding: 6px; }
.kbar-group { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 4px; }
.kbar-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.kbar-item small { color: var(--muted); }
.kbar-item[aria-selected=true] { background: var(--accent-soft); }
.kbar-empty { padding: 18px; color: var(--muted); }
.kbar-foot { border-top: 1px solid var(--line); padding: 8px 14px; font-size: 12px; color: var(--muted); }
@media (max-width: 720px) { .kbar-open kbd { display: none; } }

/* ---- UI polish pass ---- */
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0; }
.opts .opt { min-width: 0; }
.opt:has(input:checked) { border-color: var(--beacon-deep, var(--ink)); box-shadow: 0 0 0 1px var(--beacon-deep, var(--ink)); }
.opt details { margin-top: 6px; }
.opt summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.opt details small { margin-top: 4px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.kpis.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpis.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpis .card { padding: 16px; }
.kpis .stat { margin-top: 2px; }
.steps { display: flex; gap: 0; list-style: none; padding: 0; margin: 14px 0 4px; }
.steps li { flex: 1; text-align: center; font-size: 12px; color: var(--muted); position: relative; padding-top: 22px; }
.steps li::before { content: ''; position: absolute; top: 4px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--line); }
.steps li::after { content: ''; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: -1; }
.steps li:first-child::after { display: none; }
.steps li.done { color: var(--ink); } .steps li.done::before, .steps li.done::after { background: var(--ok); }
.steps li.now { color: var(--ink); font-weight: 700; } .steps li.now::before { background: var(--beacon, #D9531E); box-shadow: 0 0 0 4px rgba(217,83,30,.2); }
.gauge { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 6px; }
.gauge > i { display: block; height: 100%; background: var(--ok); } .gauge.warn > i { background: var(--warn); } .gauge.bad > i { background: var(--bad); }
.sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.sizes .card { padding: 12px; } .sizes .on { border-color: var(--ink); }
.quote { max-width: 760px; margin: 0 auto; }
.explain li { margin: 6px 0; }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.nav-ic { display: inline-block; vertical-align: -3px; margin-right: 8px; opacity: .75; }
@media (max-width: 900px) {
  .side { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side a { white-space: nowrap; flex: none; } .side .nav-ic { display: none; }
  .side .who { display: none; }
  .kpis, .kpis.n6, .kpis.n3, .kpis.n2 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ptabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .ptabs a { white-space: nowrap; flex: none; }
  .ptop .tag, .ptop .muted.tiny { display: none; }
}
@media (max-width: 640px) { .kpis .stat { font-size: 26px; } .opts { grid-template-columns: 1fr; } }
@media print {
  .side, .ptabs, .ptop, .noprint, .kbar, button { display: none !important; }
  body { background: #fff; } .main { padding: 0; } .card { box-shadow: none; }
}
fieldset > .opts { flex: 1 1 100%; min-width: 0; }
.opts .opt { width: auto; }
.opt > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .main .card table:not(.cmp-lines) td { overflow-wrap: anywhere; }
  .main .card td[style*="nowrap"] { white-space: normal !important; width: 74px !important; }
}
@media (max-width: 640px) {
  .ptop > .row:last-child { width: 100%; gap: 8px; }
  .ptop > .row:last-child > span.muted { display: none; }
  .ptop .btn { padding: 6px 12px; font-size: 14px; }
}

/* Partner brand colour must stay readable in dark mode: lighten it for text, links and fills. */
:root:not([data-theme=light]) { --brand-fg: var(--brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) { --brand-fg: color-mix(in srgb, var(--brand) 40%, #ffffff); } }
:root[data-theme=dark] { --brand-fg: color-mix(in srgb, var(--brand) 40%, #ffffff); }
:root:not([data-theme=light]) .pmain a:not(.btn), :root[data-theme=dark] .pmain a:not(.btn) { color: var(--brand-fg); }
:root:not([data-theme=light]) .pmain .btn:not(.ghost), :root[data-theme=dark] .pmain .btn:not(.ghost) { background: var(--brand-fg); border-color: var(--brand-fg); }
:root[data-theme=dark] .ptabs a.on { box-shadow: inset 0 -3px 0 var(--brand-fg); }
:root[data-theme=dark] .pmain .bar > i, :root[data-theme=dark] .chart-line, :root[data-theme=dark] .chart-dot { background: var(--brand-fg); }
:root[data-theme=dark] .chart-line { stroke: var(--brand-fg); background: none; } :root[data-theme=dark] .chart-dot { fill: var(--brand-fg); background: none; } :root[data-theme=dark] .chart-pace { stroke: var(--brand-fg); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .ptabs a.on { box-shadow: inset 0 -3px 0 var(--brand-fg); }
  :root:not([data-theme=light]) .pmain .bar > i { background: var(--brand-fg); }
  :root:not([data-theme=light]) .chart-line, :root:not([data-theme=light]) .chart-pace { stroke: var(--brand-fg); } :root:not([data-theme=light]) .chart-dot { fill: var(--brand-fg); }
}

label.check { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
label.check input { width: auto; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.brand-logo { max-width: 120px; max-height: 28px; width: auto; height: 28px; object-fit: contain; border-radius: 4px; }
.plogo { max-width: 160px; max-height: 44px; width: auto; height: 44px; object-fit: contain; }
.logo-prev { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; min-height: 60px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.logo-prev.dark { background: #14181f; }
.logo-prev img { max-width: 180px; max-height: 48px; }

/* =====================================================================
   Design system v2 (vision review, Oct 2026). Overrides the rules above.
   ===================================================================== */
@font-face { font-family: 'Archivo'; font-weight: 600 800; font-display: swap; src: local('Archivo'), url(/public/archivo.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 400 700; font-display: swap; src: local('Instrument Sans'), url(/public/instrument-sans.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400 700; font-display: swap; src: local('JetBrains Mono'), url(/public/jetbrains-mono.woff2) format('woff2'); }

body { font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: 'ss01', 'cv11'; }
a { color: var(--accent-ink); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
p a, td a, li a, .muted a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
p a:hover, td a:hover, li a:hover { text-decoration-color: currentColor; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
h3 { font-size: 15px; font-weight: 600; line-height: 1.4; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--focus); border-radius: 6px; }

/* ---- sidebar ---- */
.shell { grid-template-columns: 248px minmax(0, 1fr); }
.side { background: var(--dark); padding: 18px 12px 14px; gap: 1px; border-right: 1px solid color-mix(in srgb, #ffffff 6%, transparent); }
.side .brand { font-size: 19px; padding: 2px 10px 16px; gap: 10px; }
.side .brand:hover { text-decoration: none; }
.side a { color: var(--side-ink); padding: 7px 10px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 500; display: flex; align-items: center; transition: background .12s var(--ease), color .12s var(--ease); }
.side a:hover { background: var(--side-hover); color: #fff; text-decoration: none; }
.side a.on { background: var(--side-on); color: #fff; font-weight: 600; box-shadow: inset 2px 0 0 var(--signal); }
.side a.on .nav-ic { opacity: 1; color: var(--signal); }
.nav-ic { opacity: .7; margin-right: 10px; flex: none; }
.nav-group { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8f96a0; padding: 14px 10px 4px; }
.kbar-open { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.10); color: var(--side-ink); border-radius: var(--r-sm); padding: 7px 10px; font-size: 13px; margin: 0 0 6px; }
.kbar-open:hover { background: rgba(255,255,255,.08); }
.kbar-open kbd { border-color: rgba(255,255,255,.18); color: var(--side-ink); }
.who { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); border-radius: var(--r); padding: 10px 12px; margin-top: 14px; }
.who .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--signal); color: #1a0d05; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: none; }
.who .who-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who .who-row div { min-width: 0; display: flex; flex-direction: column; }
.who span { color: var(--side-ink); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: normal; }
.who .who-actions { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.link { color: var(--side-ink); margin-top: 0; font-size: 12.5px; }
.link:hover { color: #fff; text-decoration: underline; }
.theme-toggle { border-color: rgba(255,255,255,.14); color: var(--side-ink); border-radius: var(--r-sm); padding: 4px 8px; font-size: 12px; margin-top: 0; }
.side-foot { font-size: 11px; color: var(--side-ink); padding: 10px 10px 0; line-height: 1.4; }
.nav-toggle { display: none; }

/* ---- main frame ---- */
.main { padding: 32px 40px 72px; max-width: 1280px; width: 100%; }
.main > .row.between:first-child, .page-head { margin-bottom: 8px; }
.main > p.muted:first-of-type { max-width: 760px; }
.crumbs { font-size: 12px; font-weight: 500; color: var(--muted); }

/* ---- cards ---- */
.card { border-radius: var(--r); border-color: var(--line); padding: 20px; box-shadow: var(--e1); }
.card.dark { background: var(--dark); border-color: var(--dark); color: #e8eeea; box-shadow: none; }
.card.dark .muted, .card.dark [style*="a1a7b0"] { color: #a1a7b0 !important; }
.card .card, .compare, .diagram .node, .sizes .card { border-radius: var(--r-sm); box-shadow: none; }
:root[data-theme=dark] .card { box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
:root[data-theme=dark] .card.dark { background: var(--dark2); border-color: var(--line-strong); }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .card { box-shadow: inset 0 1px 0 rgba(255,255,255,.03); } :root:not([data-theme=light]) .card.dark { background: var(--dark2); border-color: var(--line-strong); } }

/* ---- KPIs ---- */
.kpis { gap: 14px; margin: 20px 0 24px; }
.kpis .card { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden; }
.kpis .card > .muted:first-child, .kpis .card > div:first-child { font-size: 12.5px; font-weight: 500; }
.stat { font-family: var(--body); font-size: 28px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.spark { display: block; width: 100%; height: 34px; margin-top: 8px; overflow: visible; }
.spark path.line { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1s cubic-bezier(.2,.8,.2,1) .1s forwards; }
.spark path.area { fill: var(--accent); opacity: .08; stroke: none; }
.spark circle { fill: var(--signal); }
.card.dark .spark path.line { stroke: #ff9a6e; } .card.dark .spark path.area { fill: #ff9a6e; opacity: .12; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---- buttons ---- */
.btn { min-height: 36px; padding: 0 14px; border-radius: var(--r-sm); background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 600; gap: 8px; transition: background .12s var(--ease), border-color .12s var(--ease), transform .06s, box-shadow .12s; box-shadow: 0 1px 0 rgba(0,0,0,.04); text-decoration: none !important; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--soft); border-color: var(--line-strong); }
.btn.danger { background: var(--surface); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.btn.danger:hover { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.sm { min-height: 30px; padding: 0 10px; font-size: 13px; }
.btn:disabled, .btn:disabled:hover { background: var(--chip); color: var(--muted); border-color: var(--chip); transform: none; }
:root[data-theme=dark] .btn.danger, :root[data-theme=dark] .btn.danger:hover { color: var(--bad); } :root[data-theme=dark] .btn.danger:hover { color: #1a0a06; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .btn.danger { color: var(--bad); } :root:not([data-theme=light]) .btn.danger:hover { color: #1a0a06; } }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---- chips and status ---- */
.chip { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; line-height: 18px; background: var(--chip); color: var(--ink2); }
.chip.ok, .chip.warn, .chip.bad, .chip.info { display: inline-flex; align-items: center; gap: 6px; }
.chip.ok::before, .chip.warn::before, .chip.bad::before, .chip.info::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.chip.info { background: var(--info-bg); color: var(--info); }
.chip.dark { background: var(--dark); color: #e8eeea; }
.chip.live::before { animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---- tables ---- */
table { font-variant-numeric: tabular-nums; }
th { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; color: var(--muted); background: var(--soft); padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line2); }
tr:last-child > td { border-bottom: 0; }
.table-card tr:not(:first-child):hover > td { background: color-mix(in srgb, var(--soft) 60%, transparent); }
td.num, th.num, td.mono.num { text-align: right; white-space: nowrap; }
td.mono { font-size: 13px; }
td.num { font-family: var(--body); font-size: 14px; font-variant-numeric: tabular-nums; }
tr.total > th, tr.total > td, .table-card tr:last-child > th { font-size: 14px; font-weight: 650; color: var(--ink); text-transform: none; letter-spacing: 0; background: var(--soft); border-top: 2px solid var(--line-strong); }
.table-card { border-radius: var(--r); }

/* ---- forms ---- */
label { font-size: 13px; font-weight: 600; gap: 6px; }
label .muted, label .tiny { font-weight: 400; font-size: 12.5px; }
input[type=text], input[type=number], input[type=email], input[type=search], input[type=file], select, textarea { font-weight: 400; font-size: 14px; padding: 8px 11px; min-height: 36px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); transition: border-color .12s, box-shadow .12s; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line-strong)); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); border-radius: var(--r-sm); }
fieldset { border-radius: var(--r); border-color: var(--line); }
legend { font-weight: 600; font-size: 13px; }
.opt { border-radius: var(--r-sm); border-color: var(--line-strong); font-weight: 500; transition: border-color .12s, background .12s; }
.opt:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line-strong)); }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; }

/* ---- flash as toast ---- */
.flash { position: fixed; right: 20px; bottom: 20px; z-index: 40; max-width: 380px; margin: 0; padding: 12px 40px 12px 16px; border-radius: var(--r); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--accent); box-shadow: var(--e2); font-size: 13.5px; animation: toast-in .2s cubic-bezier(.2,.8,.2,1); }
.flash .toast-x { position: absolute; top: 8px; right: 8px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 4px; }
.flash.out { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- progress, bars, steps ---- */
.bar, .gauge, .progress { background: var(--chip); }
.bar > i, .progress > i { background: var(--accent); transition: width .4s var(--ease); }
.steps li.now::before { background: var(--signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 25%, transparent); animation: pulse 2s ease-out infinite; color: var(--signal); }
.next-step { border-color: var(--accent); background: var(--accent-soft); border-radius: var(--r); }
.checks .check { animation: rise .32s cubic-bezier(.2,.8,.2,1) both; }
.checks .check:nth-child(2) { animation-delay: .06s; } .checks .check:nth-child(3) { animation-delay: .12s; } .checks .check:nth-child(4) { animation-delay: .18s; } .checks .check:nth-child(5) { animation-delay: .24s; } .checks .check:nth-child(6) { animation-delay: .30s; } .checks .check:nth-child(n+7) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.live { border-radius: var(--r); box-shadow: var(--e2); }
.log { background: #0d0f13; color: #d9dde3; border: 1px solid var(--line); }
.code { border-radius: var(--r-sm); background: var(--soft); }

/* ---- empty states ---- */
.empty { padding: 36px 16px; }
.empty::before { content: ''; display: block; width: 72px; height: 56px; margin: 0 auto 12px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 56'%3E%3Crect x='6' y='40' width='48' height='10' rx='5' fill='none' stroke='%23b9c0bb' stroke-width='2'/%3E%3Crect x='14' y='24' width='38' height='10' rx='5' fill='none' stroke='%23b9c0bb' stroke-width='2'/%3E%3Crect x='22' y='8' width='22' height='10' rx='5' fill='none' stroke='%23b9c0bb' stroke-width='2'/%3E%3Ccircle cx='58' cy='13' r='5' fill='%23ff7a45'/%3E%3C/svg%3E"); }
.empty strong { font-size: 15px; font-weight: 600; }

/* ---- charts ---- */
.chart-grid { stroke: var(--line2); }
.chart-label { fill: var(--muted); font-size: 11px; }
.chart-line { stroke-width: 2; }
@media (max-width: 640px) { .chart-label { font-size: 22px; } .chart-line { stroke-width: 4; } }

/* ---- simulator banner ---- */
.simbar { font-size: 12px; font-weight: 600; padding: 6px 16px; background: #fbf1d9; color: #6b4600; border-bottom: 1px solid #f0dfb3; }

/* ---- sign-in hero ---- */
.hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.hero .brandside { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 0% 110%, rgba(255,122,69,.16) 0%, transparent 60%), radial-gradient(800px 500px at 100% 0%, #262b33 0%, transparent 60%), #13161b; padding: 48px 56px; gap: 22px; color: #e8eeea; }
.hero .brandside::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(180deg, #000 30%, transparent 95%); pointer-events: none; }
.hero .brandside > * { position: relative; }
.hero .brandside h1 { font-size: 56px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; color: #fff; margin-top: 24px; }
.hero .brandside h1 em { font-style: normal; color: #ff9a6e; }
.hero .lede { font-size: 17px; color: #c4c9d0; max-width: 480px; line-height: 1.5; }
.preflight-card { width: min(420px, 100%); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 16px 18px; backdrop-filter: blur(6px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.preflight-card .pf-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 13px; color: #a1a7b0; }
.preflight-card .pf-head strong { color: #fff; font-size: 15px; }
.preflight-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.preflight-card li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #e8eeea; animation: rise .35s cubic-bezier(.2,.8,.2,1) both; }
.preflight-card li:nth-child(1) { animation-delay: .3s; } .preflight-card li:nth-child(2) { animation-delay: .5s; } .preflight-card li:nth-child(3) { animation-delay: .7s; } .preflight-card li:nth-child(4) { animation-delay: .9s; } .preflight-card li:nth-child(5) { animation-delay: 1.1s; }
.preflight-card li small { margin-left: auto; color: #a1a7b0; font-family: var(--mono); font-size: 12px; }
.preflight-card .tick { width: 18px; height: 18px; border-radius: 50%; background: #2e9b70; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.preflight-card .pf-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.preflight-card .pf-price { font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.preflight-card .pf-price small { font-size: 13px; color: #a1a7b0; font-weight: 500; }
.preflight-card .pf-ready { font-size: 12px; font-weight: 700; color: #1a0d05; background: #ff9a6e; border-radius: 999px; padding: 3px 10px; animation: rise .35s cubic-bezier(.2,.8,.2,1) 1.4s both; }
.hero .hero-stack { position: absolute; right: -60px; bottom: -40px; width: 380px; opacity: .14; pointer-events: none; }
.hero .formside { background: var(--bg); }
.signin-card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--e2); display: flex; flex-direction: column; gap: 16px; }
.signin-card h2 { font-size: 22px; margin: 0; }
.ms-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none !important; transition: background .12s, border-color .12s; }
.ms-btn:hover { background: var(--soft); border-color: var(--ink2); }
.trust-line { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.legal-foot { font-size: 11.5px; color: var(--muted); text-align: center; padding: 18px; }

/* ---- public pages (trust) ---- */
.pub-head { background: var(--dark); color: #e8eeea; }
.pub-head .inner { max-width: 1080px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pub-head a { color: #e8eeea; }
.pub-hero { background-color: #13161b; background-image: linear-gradient(180deg, var(--dark) 0%, #1d2128 100%); color: #e8eeea; padding: 28px 0 56px; }
.pub-hero .inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.pub-hero h1 { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; color: #fff; margin: 0 0 10px; }
.pub-hero p { color: #c4c9d0; font-size: 17px; max-width: 640px; margin: 0; }
.claims { max-width: 1080px; margin: -32px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; position: relative; }
.claims .card { padding: 18px; }
.claims .card svg { color: var(--accent); }
.claims strong { display: block; margin: 8px 0 2px; font-size: 15px; }
.pub-body { max-width: 1080px; margin: 28px auto 60px; padding: 0 24px; }
.scope-diagram { width: 100%; max-width: 520px; height: auto; display: block; }
@media (max-width: 900px) { .claims { grid-template-columns: 1fr 1fr; } .pub-hero h1 { font-size: 34px; } }

/* ---- mobile: top bar + drawer ---- */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; overflow: visible; padding: 10px 14px; gap: 0; }
  .side .brand { padding: 0; margin-right: auto; font-size: 17px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.14); background: transparent; color: #fff; cursor: pointer; }
  .side .kbar-open { order: 2; margin: 0 8px 0 0; padding: 8px 10px; } .nav-toggle { order: 3; }
  .side .kbar-open span { display: none; }
  .side .kbar-open::before { content: 'Search'; }
  .side > a:not(.brand), .side .nav-group, .side .who, .side .side-foot, .side > div.tiny { display: none !important; order: 4; }
  .side.open { max-height: 100vh; overflow-y: auto; }
  .side.open > a:not(.brand), .side.open .nav-group { display: flex !important; flex: 1 1 100%; }
  .side.open .nav-group { display: block !important; }
  .side.open .who { display: flex !important; flex: 1 1 100%; margin-top: 12px; }
  .side.open .side-foot { display: block !important; flex: 1 1 100%; }
  .side .nav-ic { display: inline-block; }
  .flash { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .simbar { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .main { padding: 20px 16px 56px; }
  .hero .brandside h1 { font-size: 40px; }
  .hero .hero-stack { display: none; }
  .grid > * { min-width: 0; }
}
@media (max-width: 640px) { h1 { font-size: 24px; } .stat, .kpis .stat { font-size: 22px; } .hero .brandside { padding: 28px 20px; } .preflight-card { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .spark path.line { stroke-dashoffset: 0; }
  .preflight-card li, .preflight-card .pf-ready { opacity: 1; }
}
.pmain .btn:not(.ghost):hover { background: color-mix(in srgb, var(--brand) 82%, #000); border-color: color-mix(in srgb, var(--brand) 82%, #000); }
.pmain .btn.ghost:hover { background: var(--soft); }
.card.table-card { padding: 0; }
.card.table-card > table th:first-child, .card.table-card > table td:first-child { padding-left: 18px; }
.card.table-card > table th:last-child, .card.table-card > table td:last-child { padding-right: 18px; }
tr.total > th, tr.total > td { font-family: var(--body); text-align: inherit; }
tr.total > th.mono, tr.total > th.num { text-align: right; }

/* ---- Cost Manager: charts drawn as SVG on the server ---- */
:root { --p0: #3b4658; --p1: #3a86c8; --p2: #ff7a45; --p3: #2c9a72; --p4: #8a6fd1; --p5: #d29a1e; --p6: #c95b7d; --p7: #a3abb5; }
:root[data-theme=dark] { --p0: #9aa6bb; --p1: #6aa9e0; --p2: #ff8f5f; --p3: #4cc396; --p4: #a892e6; --p5: #e8b84a; --p6: #e283a1; --p7: #6d7581; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) { --p0: #9aa6bb; --p1: #6aa9e0; --p2: #ff8f5f; --p3: #4cc396; --p4: #a892e6; --p5: #e8b84a; --p6: #e283a1; --p7: #6d7581; } }
.c0 { fill: var(--p0); } .c1 { fill: var(--p1); } .c2 { fill: var(--p2); } .c3 { fill: var(--p3); } .c4 { fill: var(--p4); } .c5 { fill: var(--p5); } .c6 { fill: var(--p6); } .c7 { fill: var(--p7); }
.s0 { stroke: var(--p0); } .s1 { stroke: var(--p1); } .s2 { stroke: var(--p2); } .s3 { stroke: var(--p3); } .s4 { stroke: var(--p4); } .s5 { stroke: var(--p5); } .s6 { stroke: var(--p6); } .s7 { stroke: var(--p7); }
.sw.c0 { background: var(--p0); } .sw.c1 { background: var(--p1); } .sw.c2 { background: var(--p2); } .sw.c3 { background: var(--p3); } .sw.c4 { background: var(--p4); } .sw.c5 { background: var(--p5); } .sw.c6 { background: var(--p6); } .sw.c7 { background: var(--p7); }
.viz { width: 100%; height: auto; display: block; overflow: visible; }
.viz .gl { stroke: var(--line2); stroke-width: 1; }
.viz .axis { fill: var(--ink2); font: 11.5px var(--mono); }
.viz .axis.strong { fill: var(--ink); font-weight: 600; }
.viz .hover { fill: transparent; stroke: none; }
.viz g.hit:hover .hover, .viz rect.hover.hit:hover { fill: var(--soft); }
.viz g.hit rect:not(.hover) { transition: opacity .15s; }
.viz:hover g.hit:not(:hover) rect:not(.hover) { opacity: .55; }
.viz .mark { fill: var(--signal); }
.viz .band { fill: var(--signal); opacity: .13; }
.viz .ln-fc { fill: none; stroke: var(--signal); stroke-width: 2; stroke-dasharray: 5 4; }
.viz .ln-act { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.viz .area-act { fill: var(--ink); opacity: .06; }
.viz .dot-act { fill: var(--signal); stroke: var(--card); stroke-width: 2; }
.viz .ln-last { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 2 3; }
.viz .budget { stroke: var(--bad); stroke-width: 1.5; stroke-dasharray: 6 4; }
.viz .budget-t { fill: var(--bad); }
.viz .mb { fill: var(--p0); } .viz .mb-now { fill: var(--p2); } .viz .mb-fc { fill: none; stroke: var(--p2); stroke-width: 1.5; stroke-dasharray: 4 3; }
.viz .quoted { stroke: var(--ink2); stroke-width: 1.5; stroke-dasharray: 1 3; } .viz .quoted-t { fill: var(--ink2); }
.donut-wrap { display: flex; justify-content: center; margin: 4px 0 6px; }
.donut { width: 200px; height: 200px; }
.donut .arc { fill: none; stroke-width: 26; cursor: default; transition: stroke-width .15s; } .donut .arc:hover { stroke-width: 32; }
.donut .arc-empty { fill: none; stroke: var(--chip); stroke-width: 26; }
.donut .d-big { font: 600 22px var(--mono); fill: var(--ink); } .donut .d-sub { font-size: 12px; fill: var(--muted); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 10px 0 0; font-size: 13px; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.sw.ln { width: 18px; height: 0; border-radius: 0; border-top: 2.4px solid var(--ink); }
.sw.ln.fc { border-top: 2px dashed var(--signal); } .sw.ln.last { border-top: 2px dotted var(--muted); } .sw.ln.bud { border-top: 2px dashed var(--bad); }
.cm-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cm-grid > .chart-card { grid-column: span 3; min-width: 0; }
.cm-grid > .chart-card.span2 { grid-column: span 4; }
.cm-grid > .chart-card.span2 + .chart-card { grid-column: span 2; }
.numbers { margin-top: 10px; font-size: 13px; } .numbers summary { cursor: pointer; color: var(--muted); }
.numbers .table-scroll { max-height: 320px; overflow: auto; margin-top: 8px; }
.table-scroll { overflow-x: auto; }
.empty-chart { color: var(--muted); padding: 40px 0; text-align: center; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin: 18px 0 4px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.filters select { min-height: 40px; min-width: 150px; max-width: 260px; }
.filters .btn { min-height: 40px; }
.link-btn { align-self: center; font-size: 14px; }
.seg { display: inline-flex; background: var(--chip); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a { padding: 6px 10px; border-radius: 8px; font-size: 13px; color: var(--ink2); text-decoration: none; }
.seg a.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--e1); }
.hbars { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.hbars li { display: grid; grid-template-columns: minmax(110px, 34%) 1fr auto; gap: 12px; align-items: center; }
.hb-name { font-size: 14px; overflow-wrap: anywhere; }
.hb-track { position: relative; height: 14px; background: var(--chip); border-radius: 7px; }
.hb-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; }
.hb-fill { background: var(--p0); } .hb-fill.bad { background: var(--bad); } .hb-fill.warn { background: var(--warn); }
.hb-ghost { border: 1.5px dashed var(--p2); background: transparent; box-sizing: border-box; }
.hb-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--bad); margin-left: -1px; }
.hb-val { font-size: 13px; min-width: 64px; text-align: right; }
.mini { width: 112px; height: 26px; display: block; } .mini rect { fill: var(--p7); } .mini rect:last-child { fill: var(--p2); }
.movers td { padding: 8px 6px; }
ul.plain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.card.attention { border-color: var(--warn); background: var(--warn-bg); color: var(--ink); }
.kpis.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.viz-tip { position: fixed; z-index: 60; pointer-events: none; background: var(--dark); color: #eceef1; font-size: 12.5px; line-height: 1.45; padding: 8px 10px; border-radius: 8px; white-space: pre-line; box-shadow: var(--e2); max-width: 280px; opacity: 0; transition: opacity .1s; }
.viz-tip.on { opacity: 1; }
.viz-tip::first-line { font-weight: 600; }
@media (max-width: 1100px) { .kpis.n5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cm-grid > .chart-card, .cm-grid > .chart-card.span2, .cm-grid > .chart-card.span2 + .chart-card { grid-column: span 6; } }
@media (max-width: 640px) { .kpis.n5 { grid-template-columns: 1fr 1fr; } .hbars li { grid-template-columns: 1fr auto; } .hbars .hb-track { grid-column: 1 / -1; grid-row: 2; } .filters select { min-width: 0; max-width: none; width: 100%; } .filters label { flex: 1 1 140px; } .viz .axis { font-size: 17px; } }
@media print { .filters, .seg, .numbers, .viz-tip { display: none; } .chart-card { break-inside: avoid; } }
@media (max-width: 640px) { .kpis.n5 > .card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.subtabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 14px 0 6px; }
.subtabs a { padding: 9px 14px; font-size: 14px; color: var(--ink2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--signal); }
.subtabs a:hover { color: var(--ink); }
.callout { border-left: 3px solid var(--signal); background: var(--soft); padding: 12px 14px; border-radius: 8px; }
.big-num { font-family: var(--mono); font-size: 22px; font-weight: 600; }
label.check-row, .stack label.check-row { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check-row input[type=checkbox] { margin-top: 4px; flex: none; width: 18px; height: 18px; }

/* ---- Quarterly review deck: 16:9 slides that print one to a page ---- */
.deck { display: flex; flex-direction: column; gap: 22px; }
.slide { --qbr: #16191e; position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 1100px; background: #fff; color: #15181d; color-scheme: light; border: 1px solid var(--line); border-radius: 14px; padding: 4.2% 5% 3.4%; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--e2); }
.slide::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--qbr); }
.sl-head h2 { font-family: var(--display); font-size: clamp(20px, 2.6vw, 34px); margin: 0 0 2%; letter-spacing: -0.02em; color: #15181d; }
.sl-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: clamp(10px, 1vw, 13px); color: var(--qbr); font-weight: 700; margin-bottom: 4px; }
.sl-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.sl-foot { display: flex; justify-content: space-between; font-size: clamp(9px, .9vw, 12px); color: #5b6470; border-top: 1px solid #ecece7; padding-top: 8px; }
.sl-title { justify-content: space-between; background-color: #fff; background-image: linear-gradient(135deg, #fff 55%, color-mix(in srgb, var(--qbr) 10%, #fff)); }
.sl-title .sl-hero { font-family: var(--display); font-size: clamp(30px, 5vw, 64px); margin: 6px 0; letter-spacing: -0.03em; color: #15181d; }
.sl-sub { font-size: clamp(14px, 1.8vw, 22px); color: #3d4642; margin: 0; }
.sl-brand { font-size: clamp(16px, 1.8vw, 22px); }
.sl-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3%; }
.sl-big { border-top: 3px solid var(--qbr); padding-top: 10px; }
.sl-big-v { font-family: var(--mono); font-weight: 700; font-size: clamp(22px, 3.6vw, 46px); color: #15181d; }
.sl-big-l { font-size: clamp(11px, 1.2vw, 15px); color: #3d4642; }
.sl-big-s { font-size: clamp(10px, 1vw, 13px); color: #5b6470; margin-top: 4px; }
.sl-chart { max-width: 78%; }
.sl-chart .viz .axis { fill: #3d4642; } .sl-chart .viz .mb { fill: var(--qbr); } .sl-chart .viz .gl { stroke: #ecece7; } .sl-chart .viz .axis.strong { fill: #15181d; }
.sl-note { font-size: clamp(11px, 1.15vw, 15px); color: #3d4642; margin: 0; max-width: 90%; }
.sl-table { width: 100%; border-collapse: collapse; font-size: clamp(11px, 1.2vw, 15px); }
.sl-table th { text-align: left; font-size: .8em; color: #5b6470; background: #fff; border-bottom: 2px solid var(--qbr); padding: 6px; }
.sl-table td { border-bottom: 1px solid #ecece7; padding: 8px 6px; color: #15181d; background: #fff; }
.sl-table td:not(:first-child), .sl-table th:not(:first-child) { text-align: right; font-family: var(--mono); }
.sl-small { font-size: .8em; color: #5b6470; }
.sl-list { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; font-size: clamp(12px, 1.3vw, 17px); color: #15181d; }
@page deck { size: 13.333in 7.5in; margin: 0; }
@media print {
  .deck { page: deck; display: block; }
  .slide { width: 13.333in; height: 7.5in; max-width: none; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; break-after: page; page-break-after: always; padding: 0.55in 0.7in 0.45in; }
  .slide .sl-chart { max-width: 9in; }
  .slide, .slide * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 760px) { .sl-grid4 { grid-template-columns: 1fr 1fr; } .slide { aspect-ratio: auto; min-height: 56vw; } .sl-chart { max-width: 100%; } }
@media print { .shell { display: block; } .simbar, .flash { display: none !important; } .main { max-width: none; } }
@media print { html, body { margin: 0 !important; } .main { padding: 0 !important; margin: 0 !important; } .deck .slide { height: 7.45in; margin: 0; } }
.sl-body { justify-content: flex-start; padding-top: 3%; }
.sl-body:has(.sl-grid4) { justify-content: center; padding-top: 0; }

/* ---------- Assessments (SkySight) ---------- */
.cs-jump { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 0; }
.cs-jump a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--ink); background: var(--card); }
.cs-conf { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.cs-measured, .cs-stated { background: var(--ok-bg); color: var(--ok); }
.cs-observed { background: var(--info-bg); color: var(--info); }
.cs-inferred { background: var(--warn-bg); color: var(--warn); }
.cs-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.cs-area { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.cs-area > span:first-child { font-weight: 600; }
.cs-findings { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.cs-findings li { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.cs-qs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 18px; align-items: start; }
.cs-q { display: grid; gap: 6px; }
.cs-q > label:first-child { font-weight: 600; display: grid; gap: 2px; }
.check { display: inline-flex; gap: 6px; align-items: center; }

/* The printable report: Letter, portrait. Fixed colours so it reads the same on screen in dark mode and on paper. */
.cs-toolbar { position: sticky; top: 0; z-index: 5; display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 10px 20px; background: #13161b; color: #ecedef; }
.cs-toolbar a { color: #ecedef; }
.cs-report { --cs-ink: #0d1b2a; --cs-muted: #5e6b78; --cs-line: #dce3e8; --cs-panel: #f4f7f9; --cs-acc: #0b6e6c; color-scheme: light; background: #e9edf0; padding: 24px 0; color: var(--cs-ink); }
.cs-report .chip.ok { background: #e5f2ea; color: #23663f; } .cs-report .chip.warn { background: #fbf1df; color: #8a5208; } .cs-report .chip.bad { background: #fbe8e8; color: #b42f2f; } .cs-report .chip.info { background: #e9ecfa; color: #3b4ca8; } .cs-report .chip { background: #eef1f4; color: #3d4652; }
.cs-report .cs-measured, .cs-report .cs-stated { background: #e5f2ea; color: #23663f; } .cs-report .cs-observed { background: #e9ecfa; color: #3b4ca8; } .cs-report .cs-inferred { background: #fbf1df; color: #8a5208; }
.cs-report .muted { color: var(--cs-muted); }
.cs-page, .cs-cover { width: 8.5in; min-height: 11in; margin: 0 auto 24px; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.12); padding: 0.45in 0.65in 0.45in; position: relative; display: flex; flex-direction: column; }
.cs-run { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--cs-muted); border-bottom: 1px solid var(--cs-line); padding-bottom: 10px; margin-bottom: 18px; }
.cs-mark { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; color: #13161b; } .cs-mark b { font-weight: 800; }
.cs-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--cs-acc); }
.cs-kicker.light { color: #5fd0cd; }
.cs-h { font-size: 30px; letter-spacing: -0.02em; margin: 4px 0 10px; }
.cs-lead { font-size: 15px; line-height: 1.5; color: #24313f; margin: 0 0 14px; }
.cs-foot { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; font-size: 11px; color: var(--cs-muted); }
.cs-foot span:first-child { display: inline-flex; gap: 6px; align-items: center; color: #0b6e6c; } .cs-foot b { color: var(--cs-ink); }
.cs-cover { background: #10243a; color: #fff; padding: 0.8in 0.8in 0.6in; overflow: hidden; }
.cs-cover-logo { display: inline-flex; gap: 14px; align-items: center; font-size: 26px; } .cs-cover-logo b { font-weight: 800; }
.cs-cover-pills { position: absolute; right: -40px; top: 3.2in; display: grid; gap: 22px; } .cs-cover-pills i { display: block; width: 260px; height: 64px; border-radius: 32px; background: #1c3a4f; } .cs-cover-pills i:nth-child(2) { margin-left: 60px; background: #223a50; } .cs-cover-pills i:nth-child(3) { background: #2a4058; }
.cs-cover-main { margin-top: 2.2in; max-width: 5.4in; position: relative; } .cs-cover h1 { font-size: 54px; letter-spacing: -0.03em; margin: 8px 0 14px; line-height: 1.05; color: #fff; } .cs-cover p { font-size: 18px; line-height: 1.5; color: #c9d4de; }
.cs-cover-meta { margin: auto 0 0; padding-top: 18px; border-top: 1px solid #2c4560; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cs-cover-meta dt { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #9fb0c0; } .cs-cover-meta dd { margin: 6px 0 0; font-weight: 700; font-size: 14px; }
.cs-cover-foot { margin-top: 26px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #c9d4de; } .cs-cover-foot span:first-child { display: inline-flex; gap: 8px; align-items: center; } .cs-cover-foot b { color: #fff; }
.cs-badge { border: 1px solid #5d7389; border-radius: 999px; padding: 3px 12px; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.cs-toc { list-style: none; padding: 0; margin: 10px 0 24px; } .cs-toc li { display: flex; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--cs-line); font-size: 17px; } .cs-toc span { color: var(--cs-acc); font-weight: 700; width: 24px; }
.cs-panel { background: var(--cs-panel); border-radius: 12px; padding: 16px 18px; margin: 12px 0; font-size: 14px; } .cs-panel strong { display: block; margin-bottom: 8px; }
.cs-confs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 13px; }
.cs-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 12px; }
.cs-kpis div { border: 1px solid var(--cs-line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; } .cs-kpis span { font-size: 12px; color: var(--cs-muted); } .cs-kpis b { font-size: 21px; letter-spacing: -0.02em; white-space: nowrap; } .cs-kpis small { font-size: 11px; color: var(--cs-muted); }
.cs-kpis b.good { color: #2e7d4f; } .cs-kpis b.warn { color: #8a5208; }
.cs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cs-arow { display: grid; grid-template-columns: 1fr auto 60px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #e3e8ec; font-size: 13px; } .cs-arow .muted { text-align: right; }
.cs-bar { display: grid; grid-template-columns: 1fr 70px 50px; gap: 8px; align-items: center; font-size: 12px; padding: 3px 0; } .cs-bar i { height: 8px; background: #dfe7ec; border-radius: 4px; overflow: hidden; } .cs-bar i b { display: block; height: 100%; background: #14a3a0; } .cs-bar .mono { text-align: right; font-weight: 700; }
.cs-total { text-align: right; font-size: 13px; border-top: 1px solid var(--cs-line); margin-top: 8px; padding-top: 8px; }
.cs-report h3 { font-size: 18px; margin: 18px 0 8px; }
.cs-first { padding-left: 22px; margin: 0; } .cs-first li { margin: 0 0 8px; } .cs-first b { display: block; font-size: 15px; } .cs-first span { font-size: 13px; color: var(--cs-muted); }
.cs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 8px; }
.cs-stats div { border-left: 3px solid #14a3a0; padding: 2px 12px; display: grid; } .cs-stats b { font-size: 28px; } .cs-stats span { font-size: 12.5px; } .cs-stats small { font-size: 11px; color: var(--cs-muted); }
.cs-map { width: 100%; height: auto; max-height: 2.3in; margin: 4px 0; break-inside: avoid; }
.cs-map .cs-dep { stroke: #8b98a5; stroke-width: 1.4; } .cs-map .cs-dep-occ { stroke: #8b98a5; stroke-width: 1.4; stroke-dasharray: 5 4; }
.cs-map .cs-node rect { fill: #e6f4f3; stroke: #0b6e6c; stroke-width: 1.2; } .cs-map .cs-service rect { fill: #e5f2ea; stroke: #2e7d4f; } .cs-map .cs-retire rect { fill: #f4f7f9; stroke: #b42f2f; stroke-dasharray: 3 3; } .cs-map .cs-eol rect { stroke: #b42f2f; stroke-width: 2.2; }
.cs-map .cs-node-t { font: 700 14px system-ui, sans-serif; fill: #0d1b2a; } .cs-map .cs-node-s { font: 12px system-ui, sans-serif; fill: #3d4652; }
.cs-legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--cs-muted); } .cs-k { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1.2px solid #0b6e6c; background: #e6f4f3; }
.cs-k-service { border-color: #2e7d4f; background: #e5f2ea; } .cs-k-retire { border: 1.2px dashed #b42f2f; background: #f4f7f9; } .cs-k-eol { border: 2px solid #b42f2f; background: #fff; } .cs-k-occ { border: 0; border-top: 2px dashed #8b98a5; height: 0; border-radius: 0; background: none; }
.cs-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0 10px; } .cs-report th { background: #fff; color: #5e6b78; } .cs-report td { color: #0d1b2a; } .cs-table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--cs-muted); border-bottom: 1.5px solid #0d1b2a; padding: 6px 8px; } .cs-table td { border-bottom: 1px solid var(--cs-line); padding: 8px; vertical-align: top; } .cs-table .num { text-align: right; } .cs-table .cs-sum td { font-weight: 700; border-top: 1.5px solid #0d1b2a; }
.cs-finding { border: 1px solid var(--cs-line); border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; break-inside: avoid; } .cs-fhead { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .cs-fhead b { font-size: 15px; } .cs-finding p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; } .cs-do { color: #24313f; }
.cs-save { margin-left: auto; font-weight: 700; color: #2e7d4f; font-size: 13px; }
.cs-wave { border: 1px solid var(--cs-line); border-radius: 12px; padding: 12px 16px; margin: 0 0 12px; break-inside: avoid; } .cs-wave-h { display: flex; gap: 10px; align-items: center; } .cs-wn { width: 28px; height: 28px; border-radius: 50%; background: #10243a; color: #fff; display: grid; place-items: center; font-weight: 700; } .cs-wave ul { margin: 8px 0 0; padding-left: 38px; font-size: 13px; } .cs-wave li { margin: 4px 0; }
@media screen and (max-width: 900px) { .cs-page, .cs-cover { width: auto; min-height: 0; margin: 0 12px 16px; padding: 24px; } .cs-kpis, .cs-two, .cs-cover-meta { grid-template-columns: 1fr 1fr; } .cs-cover h1 { font-size: 38px; } .cs-cover-pills { display: none; } .cs-cover-main { margin-top: 60px; } }
@media print {
  @page cs { size: 8.5in 11in; margin: 0; }
  .cs-report { background: none; padding: 0; }
  .cs-page, .cs-cover { page: cs; box-shadow: none; margin: 0; width: 8.5in; min-height: 11in; break-after: page; }
  .cs-cover { height: 11in; overflow: hidden; }
  .cs-page { display: block; padding-bottom: 0.75in; }
  .cs-page .cs-foot { position: absolute; left: 0.65in; right: 0.65in; bottom: 0.35in; margin: 0; }
  .cs-map { max-height: 2.2in; }
  .cs-page, .cs-cover, .cs-page *, .cs-cover * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .simbar { display: none; }
}
.cs-q input, .cs-q select { padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; background: var(--card); color: var(--ink); min-height: 40px; width: 100%; box-sizing: border-box; }
/* The wordmark, the same for every product: Archivo, tight, lowercase, "sky" medium and the product name heavy, one colour,
   nothing between the two halves (sky<b>stack</b>, sky<b>sight</b>). */
.wm { font-family: var(--display); letter-spacing: -0.02em; font-weight: 700; white-space: nowrap; }
.wm b { font-weight: inherit; color: inherit; }
.cs-report .cs-foot span.wm, .cs-report .cs-cover-foot span.wm, .cs-report .cs-mark span.wm, .cs-report .cs-cover-logo span.wm { display: inline; gap: 0; color: inherit; }

/* Monthly customer review */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } }

/* SkyOps score (fix59) */
.pillars { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.pillars li { display: grid; grid-template-columns: 110px minmax(0, 1fr) 36px; align-items: center; gap: 10px; font-size: 14px; }
.pillars .bar > i.ok { background: var(--ok); } .pillars .bar > i.warn { background: var(--warn); } .pillars .bar > i.bad { background: var(--bad); }
.pillar-n { text-align: right; }
.levers { padding-left: 20px; margin: 0; } .levers li { margin: 0 0 8px; }
.card .spark { width: 220px; height: 44px; margin: 0; }
