/* YearlyRaise — design system + components */

/* ===================================================== tokens */
:root {
  /* color — neutrals (warm paper) */
  --paper: #F7F5F0;
  --paper-2: #F1EEE6;
  --surface: #FFFFFF;
  --surface-2: #FBFAF7;
  --ink: #12201D;
  --ink-2: #33423E;
  --muted: #5B6A66;          /* 5.6:1 on white */
  --faint: #8A9592;
  --line: #E7E3D9;
  --line-2: #D8D3C6;

  /* brand */
  --brand-900: #062E28;
  --brand-800: #0A3F37;
  --brand-700: #0B4F44;      /* primary */
  --brand-600: #116152;
  --brand-500: #1A7A68;
  --brand-100: #D5EAE3;
  --brand-50: #EBF5F1;
  --gold-500: #E5A93B;
  --gold-400: #F2B544;
  --gold-100: #FBEFD4;
  --gold-50: #FDF7E9;

  /* semantic */
  --good: #137A4C;  --good-50: #E8F5EE; --good-100: #CBE9D8;
  --bad: #B23A26;   --bad-50: #FCEDE9;  --bad-100: #F4D2C9;
  --warn: #8A5A00;  --warn-50: #FEF5DF; --warn-100: #F6E1AE;
  --info: #24589F;  --info-50: #EBF1FA; --info-100: #CCDCF1;
  --violet: #5B44A8; --violet-50: #F0ECFA;

  --chart-line: var(--brand-600);

  /* type */
  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --fs-xs: 0.75rem;   /* 12 */
  --fs-sm: 0.8125rem; /* 13 */
  --fs-base: 0.9375rem;/* 15 */
  --fs-md: 1rem;      /* 16 */
  --fs-lg: 1.125rem;  /* 18 */
  --fs-xl: 1.375rem;  /* 22 */
  --fs-2xl: 1.75rem;  /* 28 */
  --fs-3xl: 2.25rem;  /* 36 */
  --fs-4xl: 3rem;     /* 48 */
  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-body: 1.55;

  /* space (4px grid) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px;

  /* radius */
  --r-xs: 6px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;

  /* shadow */
  --sh-1: 0 1px 2px rgba(18, 32, 29, .06);
  --sh-2: 0 1px 2px rgba(18, 32, 29, .05), 0 4px 12px -2px rgba(18, 32, 29, .07);
  --sh-3: 0 2px 4px rgba(18, 32, 29, .04), 0 12px 32px -8px rgba(18, 32, 29, .16);
  --sh-focus: 0 0 0 3px rgba(26, 122, 104, .28);
  --ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand-500);

  /* motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1);
  --t-fast: 120ms; --t: 200ms; --t-slow: 420ms;

  --topbar-h: 64px;
  --rail-w: 264px;
  --aside-w: 340px;
}

/* ===================================================== base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--fs-md)/var(--lh-body) var(--font-ui);
  font-feature-settings: "cv11", "ss01", "tnum" 0;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
h1, h2, h3 { margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: var(--brand-700); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
.i { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.i-lg { width: 28px; height: 28px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; transition: top var(--t); }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.bad { color: var(--bad); }
.good { color: var(--good); }
.up { color: var(--bad); }
.mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-6 { margin-top: var(--s-6); } .mb-3 { margin-bottom: var(--s-3); }
.fine { font-size: var(--fs-xs); color: var(--muted); }

/* ===================================================== top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 245, 240, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--s-6); max-width: 1480px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); border-radius: var(--r-sm); }
.brand-mark { width: 30px; height: 30px; }
.brand-mark rect { fill: var(--brand-700); }
.brand-mark path { fill: none; stroke: var(--gold-400); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark circle { fill: var(--gold-400); }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; color: var(--brand-800); }
.brand-word span { color: var(--gold-500); }
.topbar-right { display: flex; align-items: center; gap: var(--s-3); }
.save-state { font-size: var(--fs-sm); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.save-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-50); }
.save-state.is-warn::before { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-50); }
.mprog { display: none; }

/* ===================================================== layout */
.layout {
  display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--aside-w);
  max-width: 1480px; margin: 0 auto; min-height: calc(100vh - var(--topbar-h));
}
body.is-wide .layout { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
body.is-wide .aside { display: none; }
.rail {
  position: sticky; top: var(--topbar-h); align-self: start; height: calc(100vh - var(--topbar-h));
  padding: var(--s-10) var(--s-6) var(--s-6); display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto; border-right: 1px solid var(--line);
}
.main { padding: var(--s-12) clamp(20px, 4.5vw, 72px) 120px; min-width: 0; }
.aside {
  position: sticky; top: var(--topbar-h); align-self: start; height: calc(100vh - var(--topbar-h)); overflow-y: auto;
  padding: var(--s-10) var(--s-6) var(--s-8); border-left: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--paper));
}

/* ===================================================== rail / stepper */
.sections { list-style: none; margin: 0; padding: 0; position: relative; }
.sec { position: relative; padding-bottom: var(--s-2); }
.sec:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 36px; bottom: -2px; width: 2px; background: var(--line); border-radius: 2px; }
.sec.is-done:not(:last-child)::before { background: var(--brand-500); }
.sec-btn { display: flex; align-items: center; gap: var(--s-3); width: 100%; background: none; border: 0; padding: 4px 6px 4px 0; text-align: left; border-radius: var(--r-sm); color: var(--muted); font-weight: 500; }
.sec-btn:disabled { cursor: default; }
.sec-btn:not(:disabled):hover .sec-label { color: var(--ink); }
.sec-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: var(--fs-sm); font-weight: 600; background: var(--surface); border: 1.5px solid var(--line-2); color: var(--muted); transition: all var(--t) var(--ease); position: relative; z-index: 1; }
.sec-ico .i { width: 16px; height: 16px; stroke-width: 2.4; }
.sec.is-done .sec-ico { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.sec.is-current .sec-ico { background: var(--surface); border: 2px solid var(--brand-700); color: var(--brand-700); box-shadow: 0 0 0 5px var(--brand-50); }
.sec.is-current .sec-label { color: var(--ink); font-weight: 600; }
.sec.is-done .sec-label { color: var(--ink-2); }
.subs { list-style: none; margin: 6px 0 10px 44px; padding: 0; display: grid; gap: 2px; }
.sub { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 6px 10px; border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--muted); position: relative; }
.sub:disabled { cursor: default; color: var(--faint); }
.sub.is-visited:not(:disabled) { color: var(--ink-2); }
.sub:not(:disabled):hover { background: var(--paper-2); color: var(--ink); }
.sub.is-current { background: var(--surface); color: var(--brand-700); font-weight: 600; box-shadow: var(--sh-1); }
.sub.is-current::before { content: ""; position: absolute; left: -12px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-700); transform: translateY(-50%); }
.rail-foot { display: grid; gap: var(--s-2); padding-top: var(--s-8); }
.rail-foot-title { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }

/* ===================================================== screen */
.screen { max-width: 640px; margin: 0 auto; }
.screen.is-wide { max-width: 1060px; }
.screen.enter { animation: enter var(--t-slow) var(--ease) both; }
.screen.enter-back { animation: enterBack var(--t-slow) var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes enterBack { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.kicker { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-600); margin-bottom: var(--s-3); }
.screen h1 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.375rem);
  line-height: var(--lh-tight); letter-spacing: -.02em; font-variation-settings: "opsz" 96; text-wrap: balance;
}
.screen h1:focus { box-shadow: none; }
.lede { margin-top: var(--s-3); font-size: var(--fs-lg); line-height: var(--lh-snug); color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.screen-body { margin-top: var(--s-8); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.hl-bad { color: var(--bad); }
.hl-good { color: var(--brand-600); }

/* ===================================================== cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--sh-1); }
.card-title { font-size: var(--fs-md); font-weight: 600; margin-bottom: var(--s-4); }
.report-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); }
.report-head h2, .sec-head h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xl); letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 10px; }
.note { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.empty { padding: var(--s-6); border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); text-align: center; }

/* ===================================================== buttons */
.btn {
  --bg: var(--surface); --fg: var(--ink); --bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--r-pill); border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: var(--fs-base); letter-spacing: -.005em; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
  -webkit-tap-highlight-color: transparent; text-decoration: none;
}
.btn .i { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn-primary { --bg: var(--brand-700); --fg: #fff; --bd: var(--brand-700); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 16px -6px rgba(11, 79, 68, .55); }
.btn-primary:hover { --bg: var(--brand-800); }
.btn-primary .i { transition: transform var(--t) var(--ease); }
.btn-primary:hover .i:last-child { transform: translateX(3px); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: var(--fs-md); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: var(--fs-sm); }
.btn-xs { min-height: 30px; padding: 0 12px; font-size: var(--fs-xs); }
.btn-secondary { --bg: var(--surface); --fg: var(--brand-700); --bd: var(--line-2); box-shadow: var(--sh-1); }
.btn-secondary:hover { --bd: var(--brand-500); --bg: var(--brand-50); }
.btn-ghost { --bg: transparent; --bd: transparent; --fg: var(--ink-2); }
.btn-ghost:hover { --bg: var(--paper-2); }
.btn-danger { --bg: var(--bad); --fg: #fff; --bd: var(--bad); }
.btn-danger:hover { --bg: #952F1E; }
.btn-dashed { --bg: transparent; --bd: var(--line-2); --fg: var(--brand-700); border-style: dashed; border-width: 1.5px; border-radius: var(--r-lg); min-height: 56px; width: 100%; }
.btn-dashed:hover { --bg: var(--brand-50); --bd: var(--brand-500); }
.btn-block { width: 100%; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: var(--r-pill); transition: background var(--t), color var(--t); flex: none; }
.icon-btn:hover { background: var(--bad-50); color: var(--bad); }
.link { background: none; border: 0; padding: 0; color: var(--brand-700); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brand-100); text-underline-offset: 3px; text-decoration-thickness: 2px; display: inline-flex; align-items: center; gap: 4px; transition: text-decoration-color var(--t); }
.link:hover { text-decoration-color: currentColor; }
.link .i { width: 16px; height: 16px; }
.link-sm { font-size: var(--fs-xs); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-10); padding-top: var(--s-6); border-top: 1px solid var(--line); }

/* ===================================================== form fields */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-4); }
.fields-3 { grid-template-columns: repeat(3, 1fr); }
.fields .full { grid-column: 1 / -1; }
.field label, .lbl { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field label em { font-style: normal; font-weight: 500; color: var(--muted); }
.opt { font-size: var(--fs-xs); font-weight: 500; color: var(--faint); margin-left: 4px; }
.input { position: relative; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); transition: border-color var(--t), box-shadow var(--t); box-shadow: 0 1px 1px rgba(18,32,29,.03) inset; }
.input:hover { border-color: #C4BEAF; }
.input:focus-within { border-color: var(--brand-500); box-shadow: var(--sh-focus); }
.input input, .input select { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 14px; font-size: var(--fs-md); outline: none; font-variant-numeric: tabular-nums; }
.input input:focus-visible, .input select:focus-visible { box-shadow: none; }
.input select { appearance: none; padding-right: 38px; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6A66' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
.input .pre, .input .suf { color: var(--muted); font-size: var(--fs-base); padding: 0 0 0 14px; user-select: none; }
.input .suf { padding: 0 14px 0 0; font-size: var(--fs-sm); }
.input.has-pre input { padding-left: 6px; }
.input.has-suf input { padding-right: 6px; }
.input-sm { border-radius: var(--r-sm); display: inline-flex; width: 120px; }
.input-sm input { padding: 7px 10px; font-size: var(--fs-sm); }
.input-sm .pre { padding-left: 10px; font-size: var(--fs-sm); }
.input-sm .suf { padding-right: 10px; font-size: var(--fs-xs); }
.input-sm.has-pre input { padding-left: 4px; }
.hint { margin-top: 6px; font-size: var(--fs-sm); color: var(--muted); }
.err { margin-top: 6px; font-size: var(--fs-sm); color: var(--bad); font-weight: 500; display: flex; gap: 6px; align-items: center; }
.err::before { content: "!"; width: 16px; height: 16px; border-radius: 50%; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.has-err .input { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-50); }
.form-error { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-md); background: var(--bad-50); border: 1px solid var(--bad-100); color: var(--bad); font-weight: 500; margin-top: var(--s-6); animation: shake .4s var(--ease); }
@keyframes shake { 0%,100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
textarea { width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 12px 14px; font-family: var(--font-mono); font-size: var(--fs-sm); background: var(--surface); resize: vertical; }
textarea:focus { border-color: var(--brand-500); box-shadow: var(--sh-focus); }
select.fix { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 6px 8px; font-size: var(--fs-sm); background: var(--surface); max-width: 160px; }

/* ===================================================== tiles (trade) */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.tile {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: var(--s-4); align-items: center;
  padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); cursor: pointer;
  box-shadow: var(--sh-1); transition: border-color var(--t), box-shadow var(--t), transform var(--t) var(--ease);
}
.tile:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-1px); }
.tile:active { transform: translateY(0) scale(.99); }
.tile input, .choice input, .seg-opt input, .check input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }
.tile-ico { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); transition: all var(--t) var(--ease); }
.tile-name { font-weight: 600; line-height: 1.25; padding-right: 22px; }
.tile-meta { font-size: var(--fs-sm); color: var(--muted); }
.tile-check { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-700); color: #fff; transform: scale(0); transition: transform var(--t) var(--ease-spring); }
.tile-check .i { width: 14px; height: 14px; stroke-width: 2.6; }
.tile.is-sel { border-color: var(--brand-600); box-shadow: 0 0 0 1px var(--brand-600), var(--sh-2); }
.tile.is-sel .tile-ico { background: var(--brand-700); color: #fff; }
.tile.is-sel .tile-check { transform: scale(1); }
.tile:has(input:focus-visible), .choice:has(input:focus-visible), .seg-opt:has(input:focus-visible), .check:has(input:focus-visible), .switch:has(input:focus-visible) .switch-ui { box-shadow: var(--ring); }

/* ===================================================== choices (radio cards) */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.choices.stack { grid-template-columns: 1fr; }
.choice {
  position: relative; display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); cursor: pointer; box-shadow: var(--sh-1);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t) var(--ease);
}
.choice:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.choice:active { transform: scale(.995); }
.choice.is-sel { border-color: var(--brand-600); box-shadow: 0 0 0 1px var(--brand-600), var(--sh-2); background: linear-gradient(0deg, var(--brand-50), var(--surface) 70%); }
.choice-ico { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--paper-2); color: var(--brand-700); flex: none; transition: all var(--t); }
.choice.is-sel .choice-ico { background: var(--brand-700); color: #fff; }
.radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; margin-top: 2px; position: relative; transition: border-color var(--t); background: var(--surface); }
.radio-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--brand-700); transform: scale(0); transition: transform var(--t) var(--ease-spring); }
.choice.is-sel .radio-dot { border-color: var(--brand-700); }
.choice.is-sel .radio-dot::after { transform: scale(1); }
.choice-text { display: grid; gap: 4px; flex: 1; min-width: 0; }
.choice-title { font-weight: 600; font-size: var(--fs-md); }
.choice-desc { color: var(--muted); font-size: var(--fs-base); line-height: 1.45; }
.choice-desc b { color: var(--ink); }
.choice-aside { margin-left: auto; text-align: right; display: grid; font-variant-numeric: tabular-nums; flex: none; }
.choice-aside b { font-size: var(--fs-lg); }
.choice-aside small { font-size: var(--fs-xs); color: var(--muted); }
.choices.compact .choice { padding: var(--s-4); }
.tag { display: inline-block; vertical-align: 2px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--warn); background: var(--gold-100); padding: 2px 8px; border-radius: var(--r-pill); margin-left: 6px; }
.sub-q { margin-top: var(--s-4); padding: var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; gap: var(--s-3); animation: enter var(--t-slow) var(--ease); }
.sub-q h3 { font-size: var(--fs-md); font-weight: 600; }

/* segmented */
.seg { display: inline-flex; flex-wrap: wrap; background: var(--paper-2); border-radius: var(--r-pill); padding: 4px; gap: 2px; border: 1px solid var(--line); }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; color: var(--muted); transition: all var(--t) var(--ease); white-space: nowrap; }
.seg-opt span i { font-style: normal; font-weight: 600; font-size: 11px; background: var(--line); color: var(--ink-2); padding: 1px 7px; border-radius: var(--r-pill); }
.seg-opt:hover span { color: var(--ink); }
.seg-opt.is-sel span { background: var(--surface); color: var(--ink); box-shadow: var(--sh-2); }
.seg-opt.is-sel span i { background: var(--brand-700); color: #fff; }
.seg-opt { border-radius: var(--r-pill); }

/* checks + switch */
.checks { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.check { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); transition: all var(--t); font-weight: 500; }
.check > span::before { content: ""; display: inline-block; vertical-align: -3px; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); margin-right: 10px; background: var(--surface) center / 12px no-repeat; transition: all var(--t); }
.check:has(input:checked) { border-color: var(--brand-500); background: var(--brand-50); }
.check:has(input:checked) > span::before { background-color: var(--brand-700); border-color: var(--brand-700); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.check small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.check.is-disabled { cursor: default; opacity: .8; }
.card > .check { border: 0; padding: 0; background: none; }
.switch { display: flex; align-items: center; gap: var(--s-4); cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; }
.switch-ui { width: 46px; height: 28px; border-radius: var(--r-pill); background: var(--line-2); position: relative; flex: none; transition: background var(--t); }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform var(--t) var(--ease-spring); }
.switch input:checked + .switch-ui { background: var(--brand-700); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch b { display: block; }
.switch small { color: var(--muted); font-size: var(--fs-sm); }
.inf-body { margin-top: var(--s-5); display: grid; gap: var(--s-4); transition: opacity var(--t); }
.inf-body.is-off { opacity: .4; pointer-events: none; }

/* chips */
.chips, .quick { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); font-weight: 500; font-size: var(--fs-sm); color: var(--ink-2); transition: all var(--t) var(--ease); }
.chip .i { width: 16px; height: 16px; }
.chip:hover { border-color: var(--brand-500); color: var(--brand-700); }
.chip:active { transform: scale(.96); }
.chip.is-on { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.quick { margin-bottom: var(--s-4); }

/* range */
.range-row { display: flex; align-items: center; gap: var(--s-4); }
.range-row.is-off { opacity: .45; }
.range-row output { min-width: 92px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--brand-700); }
input[type=range] { flex: 1; appearance: none; height: 6px; border-radius: var(--r-pill); background: var(--line); outline: none; accent-color: var(--brand-700); }
input[type=range]::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand-700); box-shadow: var(--sh-2); cursor: grab; transition: transform var(--t); }
input[type=range]::-webkit-slider-thumb:active { transform: scale(1.15); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand-700); }
input[type=range]:focus-visible { box-shadow: var(--ring); }

/* ===================================================== why we ask */
.why { margin-top: var(--s-6); border-radius: var(--r-md); }
.why summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--brand-700); padding: 6px 10px 6px 6px; border-radius: var(--r-pill); transition: background var(--t); }
.why summary::-webkit-details-marker { display: none; }
.why summary:hover { background: var(--brand-50); }
.why summary .i { width: 18px; height: 18px; }
.why summary .i:last-child { width: 14px; height: 14px; transition: transform var(--t) var(--ease); }
.why[open] summary .i:last-child { transform: rotate(90deg); }
.why-body { margin-top: var(--s-2); padding: var(--s-4) var(--s-5); background: var(--brand-50); border-left: 3px solid var(--brand-500); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--ink-2); font-size: var(--fs-base); display: grid; gap: var(--s-2); animation: enter var(--t) var(--ease); }

/* ===================================================== badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.badge .i { width: 14px; height: 14px; }
.badge-trust { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--sh-1); }
.badge-trust .i { color: var(--brand-600); }
.badge-ok { background: var(--good-50); color: var(--good); }
.badge-bad { background: var(--bad-50); color: var(--bad); }
.badge-warn { background: var(--warn-50); color: var(--warn); }
.badge-info { background: var(--info-50); color: var(--info); }
.badge-user { background: var(--violet-50); color: var(--violet); }
.badge-muted { background: var(--paper-2); color: var(--muted); }
.trust-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.delta { display: inline-flex; align-items: center; font-size: var(--fs-xs); font-weight: 700; padding: 3px 8px; border-radius: var(--r-pill); font-variant-numeric: tabular-nums; }
.delta.up { background: var(--bad-50); color: var(--bad); }
.delta.flat { background: var(--paper-2); color: var(--muted); }
.inline-stat { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: var(--fs-base); min-height: 24px; }
.inline-stat:empty { display: none; }

/* ===================================================== locations */
.loc-list { display: grid; gap: var(--s-3); }
.loc { display: grid; gap: var(--s-4); animation: enter var(--t-slow) var(--ease); }
.loc-head { display: flex; align-items: center; gap: var(--s-3); }
.loc-pin { width: 36px; height: 36px; border-radius: var(--r-md); background: var(--gold-100); color: var(--warn); display: grid; place-items: center; flex: none; }
.loc-name { flex: 1; min-width: 0; border: 0; border-bottom: 1px dashed transparent; background: none; font-weight: 600; font-size: var(--fs-lg); padding: 4px 2px; }
.loc-name:hover { border-bottom-color: var(--line-2); }
.loc-name:focus { border-bottom-color: var(--brand-500); box-shadow: none; }
.loc-st:not(:empty), .geo-line:not(:empty) { margin-top: var(--s-2); }
.loc-status { display: inline-flex; align-items: flex-start; gap: 8px; font-size: var(--fs-sm); font-weight: 500; line-height: 1.4; }
.loc-status .i { width: 16px; height: 16px; margin-top: 1px; }
.loc-status.is-ok { color: var(--good); }
.loc-status.is-warn { color: var(--warn); }
.loc-status.is-busy { color: var(--muted); }
.geo-line { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.geo-line:empty { display: none; }

/* other costs */
.oc-card { display: grid; gap: var(--s-3); }
.oc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 128px 36px; gap: var(--s-3); align-items: center; padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); animation: enter var(--t-slow) var(--ease); }
.oc-row .seg-opt span { padding: 6px 12px; }
.oc-name { width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 10px; }
.oc-name:focus { border-color: var(--brand-500); box-shadow: var(--sh-focus); }
.oc-val input { padding: 9px 10px; }

/* price set */
.mini-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s-4); align-items: center; margin-top: var(--s-5); padding: var(--s-4); border-radius: var(--r-md); background: var(--paper); }
.mini-compare > div { display: grid; gap: 2px; }
.mini-compare small { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.mini-compare b { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-compare > div:last-child b { color: var(--bad); }
.mini-compare span { font-size: var(--fs-sm); color: var(--muted); }
.mc-arrow { color: var(--faint); }

/* ===================================================== skeleton + spinner */
.skel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); display: grid; gap: 12px; }
.skel { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--paper-2) 0%, #E9E5DB 40%, var(--paper-2) 80%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
.skel:first-child { height: 18px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--brand-600); animation: spin .8s linear infinite; display: inline-block; flex: none; }
.spinner-lg { width: 32px; height: 32px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.crunch { display: grid; gap: var(--s-3); }
.crunch-steps { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.crunch-steps span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 500; color: var(--muted); opacity: .35; animation: lit 1.1s var(--ease) forwards; }
.crunch-steps span:nth-child(2) { animation-delay: .3s; }
.crunch-steps span:nth-child(3) { animation-delay: .6s; }
.crunch-steps .i { width: 16px; height: 16px; color: var(--brand-600); }
@keyframes lit { to { opacity: 1; color: var(--ink); border-color: var(--brand-100); } }

/* ===================================================== margin reveal */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.vs-card { border-radius: var(--r-xl); padding: var(--s-6); display: grid; gap: 4px; position: relative; overflow: hidden; }
.vs-card small { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.vs-card strong { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 6px 0 4px; }
.vs-card > span { font-size: var(--fs-sm); }
.vs-then { background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-800); }
.vs-then > small, .vs-then > span { color: var(--brand-600); }
.vs-now { background: var(--bad-50); border: 1px solid var(--bad-100); color: var(--bad); animation: pop .6s .5s var(--ease-spring) both; }
.vs-now > small, .vs-now > span { color: #8F2E1D; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.callout-line { font-size: var(--fs-lg); line-height: 1.45; padding: var(--s-2) var(--s-1); color: var(--ink-2); }
.callout-line b { color: var(--ink); }
.callout-line .hl-bad { color: var(--bad); }

/* report tables */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 calc(var(--s-6) * -1); padding: 0 var(--s-6); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rtable th, .rtable td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: var(--fs-base); }
.rtable thead th { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 0; }
.rtable tbody th { font-weight: 500; }
.rtable tbody th small { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: var(--fs-sm); }
.rtable .num { text-align: right; }
.rtable td.up { font-weight: 600; }
.rtable tfoot th, .rtable tfoot td { font-weight: 700; border-bottom: 0; padding-top: 14px; }
.rtable tfoot tr:first-child th, .rtable tfoot tr:first-child td { border-top: 2px solid var(--ink); }
.rtable .price-row th, .rtable .price-row td { font-weight: 500; color: var(--muted); padding-top: 4px; }
.bar-col { width: 22%; }
.hbar { display: block; height: 8px; background: var(--paper-2); border-radius: var(--r-pill); overflow: hidden; }
.hbar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, #E37B5F, var(--bad)); border-radius: var(--r-pill); animation: grow .9s .2s var(--ease) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }

/* chart */
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y; }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-tick { stroke: var(--line-2); }
.c-lbl { font: 500 11px var(--font-ui); fill: var(--muted); font-variant-numeric: tabular-nums; }
.c-line { fill: none; stroke: var(--chart-line); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 1.6s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.c-since { fill: var(--gold-50); }
.c-set { stroke: var(--brand-600); stroke-dasharray: 3 4; }
.c-dot { stroke: #fff; stroke-width: 2.5; }
.c-dot-then { fill: var(--brand-700); }
.c-dot-now { fill: var(--bad); animation: pulse 2s 1.6s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0%, 100% { stroke-width: 2.5; } 50% { stroke-width: 6; stroke: var(--bad-100); } }
.c-guide { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 3; }
.c-hover { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.c-hit { cursor: crosshair; }
.chart-tip { position: absolute; transform: translate(-50%, calc(-100% - 14px)); background: var(--ink); color: #fff; padding: 6px 10px; border-radius: var(--r-sm); font-size: var(--fs-sm); pointer-events: none; display: grid; text-align: center; white-space: nowrap; box-shadow: var(--sh-3); }
.chart-tip small { font-size: 11px; opacity: .7; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.legend i { width: 10px; height: 10px; border-radius: 50%; }
.lg-then { background: var(--brand-700); }
.lg-now { background: var(--bad); }

/* finish preview */
.preview-card { background: linear-gradient(135deg, var(--brand-800), var(--brand-700)); color: #fff; border: 0; box-shadow: var(--sh-3); }
.preview-card .muted, .preview-card small { color: rgba(255,255,255,.72); }
.fp-head small { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.fp-prices { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin: var(--s-3) 0; }
.fp-prices .old { font-size: var(--fs-xl); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.4); color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.fp-prices b { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fp-prices .delta.up { background: rgba(242, 181, 68, .2); color: var(--gold-400); }
.preview-card p.muted { color: rgba(255,255,255,.72); }
.steps-tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.steps-tl li { display: flex; gap: 10px; align-items: baseline; font-size: var(--fs-base); }
.steps-tl li span { min-width: 150px; color: rgba(255,255,255,.72); }
.preview-line { margin-top: var(--s-4); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--fs-base); color: var(--ink-2); }
.preview-line:empty { display: none; }

/* ===================================================== import */
.drop {
  position: relative; display: grid; justify-items: center; text-align: center; gap: var(--s-2);
  padding: var(--s-12) var(--s-6); border-radius: var(--r-xl); cursor: pointer;
  background: radial-gradient(120% 120% at 50% 0%, var(--surface) 0%, var(--surface-2) 100%);
  border: 2px dashed var(--line-2); transition: all var(--t) var(--ease);
}
.drop:hover { border-color: var(--brand-500); background: var(--brand-50); }
.drop:focus-visible { border-radius: var(--r-xl); }
.drop.is-over { border-color: var(--brand-600); border-style: solid; background: var(--brand-50); transform: scale(1.01); box-shadow: 0 0 0 6px var(--brand-50); }
.drop.is-busy { pointer-events: none; }
.drop-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-700); color: #fff; display: grid; place-items: center; margin-bottom: var(--s-2); box-shadow: 0 8px 20px -8px rgba(11,79,68,.6); transition: transform var(--t) var(--ease-spring); }
.drop.is-busy .drop-ico { background: var(--surface); box-shadow: none; }
.drop:hover .drop-ico, .drop.is-over .drop-ico { transform: translateY(-3px); }
.drop-ico .i { width: 28px; height: 28px; }
.drop-title { font-weight: 600; font-size: var(--fs-lg); }
.drop-sub { color: var(--muted); }
.drop-sub .link { pointer-events: none; }
.formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: var(--s-3); }
.formats span { font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 4px 8px; border-radius: var(--r-xs); background: var(--paper-2); color: var(--muted); border: 1px solid var(--line); }
.alt-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; justify-content: center; }
.paste { display: grid; gap: var(--s-2); animation: enter var(--t) var(--ease); }
.row-end { display: flex; justify-content: flex-end; margin-top: var(--s-3); gap: var(--s-2); }
.privacy { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-sm); color: var(--muted); justify-content: center; text-align: left; max-width: 520px; margin: 0 auto; }
.privacy .i { color: var(--good); width: 18px; height: 18px; }
.skip { text-align: center; }
.loaded { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-color: var(--brand-100); background: var(--brand-50); }
.loaded > .i { width: 28px; height: 28px; color: var(--brand-700); }
.loaded > div { flex: 1; display: grid; min-width: 0; }
.loaded span { font-size: var(--fs-sm); color: var(--muted); }

/* mapping */
.filebar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); font-size: var(--fs-base); }
.filebar > .i { color: var(--brand-700); }
.filebar span { color: var(--muted); font-size: var(--fs-sm); }
.filebar .link { margin-left: auto; font-size: var(--fs-sm); }
.map-card { padding: 0; overflow: hidden; }
.map-head, .map-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-5); padding: var(--s-4) var(--s-6); align-items: center; }
.map-head { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 12px; padding-bottom: 12px; }
.map-row { border-bottom: 1px solid var(--line); transition: background var(--t); }
.map-row:last-child { border-bottom: 0; }
.map-row:hover { background: var(--surface-2); }
.map-row.is-need { background: var(--bad-50); }
.map-field label { margin: 0; display: block; }
.map-field small { color: var(--muted); font-size: var(--fs-sm); line-height: 1.35; display: block; margin-top: 2px; }
.req { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bad); margin-left: 4px; }
.map-select { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.map-select .input { flex: 1 1 160px; }
.map-select .input select { padding: 9px 12px; font-size: var(--fs-base); }
.dup { display: inline-flex; gap: 4px; align-items: center; font-size: var(--fs-xs); color: var(--warn); flex-basis: 100%; }
.dup .i { width: 14px; height: 14px; }
.map-ex { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.map-ex code { font: 500 12px var(--font-mono); background: var(--paper); border: 1px solid var(--line); padding: 3px 7px; border-radius: var(--r-xs); color: var(--ink-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-ex .muted { font-size: var(--fs-sm); font-style: italic; }
.raw summary, .issues summary { list-style: none; cursor: pointer; }
.raw summary::-webkit-details-marker, .issues summary::-webkit-details-marker, .lt summary::-webkit-details-marker { display: none; }
.raw summary { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--brand-700); padding: 8px 4px; }
.raw summary .i { width: 16px; height: 16px; }
.raw summary .i:last-child { transition: transform var(--t); }
.raw[open] summary .i:last-child { transform: rotate(90deg); }
.raw .tbl-wrap { margin: var(--s-2) 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.raw-table th, .raw-table td { padding: 8px 12px; font-size: var(--fs-sm); border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.raw-table th { background: var(--surface-2); font-weight: 600; color: var(--ink-2); }

/* notices */
.notice { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); border: 1px solid; font-size: var(--fs-base); }
.notice > .i { margin-top: 2px; }
.notice > div { display: grid; gap: 6px; flex: 1; }
.notice > div { justify-items: start; }
.notice-info { background: var(--info-50); border-color: var(--info-100); color: #1D4680; }
.notice-ok { background: var(--good-50); border-color: var(--good-100); color: #0F5E3B; }
.notice-bad { background: var(--bad-50); border-color: var(--bad-100); color: #8A2C1C; }
.notice-bad .link { color: var(--bad); text-decoration-color: var(--bad-100); }

/* KPIs */
.kpis { display: grid; gap: var(--s-3); }
.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-4) var(--s-5); display: grid; gap: 4px; box-shadow: var(--sh-1); }
.kpi small { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.kpi b { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-2xl); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-ok b { color: var(--good); }
.kpi-bad b { color: var(--bad); }
.kpi-warn b { color: var(--warn); }
.kpi-info b { color: var(--info); }
.kpi-hero { background: linear-gradient(135deg, var(--brand-800), var(--brand-600)); border: 0; color: #fff; box-shadow: var(--sh-3); }
.kpi-hero small { color: rgba(255,255,255,.75); }
.kpi-hero b { color: #fff; }

/* data health */
.geo-card { display: grid; gap: var(--s-2); justify-items: start; }
.geo-top { display: flex; align-items: center; gap: 10px; width: 100%; }
.geo-top .muted { margin-left: auto; font-variant-numeric: tabular-nums; font-size: var(--fs-sm); }
.geo-card.is-done .geo-top .i { color: var(--good); }
.progress { width: 100%; height: 8px; border-radius: var(--r-pill); background: var(--paper-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-600), var(--brand-500)); border-radius: var(--r-pill); transition: width .3s var(--ease); position: relative; }
.progress i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: shimmer 1.2s linear infinite; background-size: 200% 100%; }
.issues { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.issues > summary { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); }
.issues > summary .count { font-size: var(--fs-xs); font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); }
.issues > summary .i:last-child { margin-left: auto; width: 16px; height: 16px; color: var(--muted); transition: transform var(--t); }
.issues[open] > summary .i:last-child { transform: rotate(90deg); }
.sev-ico { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; }
.sev-ico .i { width: 18px; height: 18px; }
.issues-error { border-color: var(--bad-100); }
.issues-error .sev-ico, .issues-error .count { background: var(--bad-50); color: var(--bad); }
.issues-warn .sev-ico, .issues-warn .count { background: var(--warn-50); color: var(--warn); }
.issues-info .sev-ico, .issues-info .count { background: var(--info-50); color: var(--info); }
.ig { border-top: 1px solid var(--line); padding: var(--s-4) var(--s-5); display: grid; gap: var(--s-3); }
.ig-general { font-size: var(--fs-base); color: var(--ink-2); }
.ig-head { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.ig-head .muted { font-size: var(--fs-sm); }
.bulk { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--muted); padding: 4px 4px 4px 12px; border-radius: var(--r-pill); background: var(--paper); flex-wrap: wrap; }
.bulk select { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 5px 8px; font-size: var(--fs-sm); background: var(--surface); }
.bulk .input-sm { width: 96px; }
.ig-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ig-list li { display: grid; grid-template-columns: minmax(120px, 200px) 1fr auto; gap: var(--s-3); align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); font-size: var(--fs-sm); }
.ig-list li:first-child { border-top: 0; }
.ig-list li.muted { display: block; }
.ig-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-msg { color: var(--ink-2); }
.fix-hint { color: var(--muted); font-style: italic; }
.src-legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--fs-xs); color: var(--muted); }
.src-legend span { display: inline-flex; align-items: center; gap: 6px; }
.src { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; vertical-align: 1px; flex: none; }
.src-legend .src { margin-left: 0; }
.src-file { background: var(--line-2); }
.src-derived { background: var(--info); }
.src-geo { background: var(--brand-500); }
.src-default { background: var(--gold-500); }
.src-user { background: var(--violet); }
.ctable th, .ctable td, .ptable th, .ptable td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: var(--fs-base); vertical-align: top; }
.ctable thead th, .ptable thead th { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); padding-top: 10px; padding-bottom: 10px; white-space: nowrap; position: sticky; top: 0; }
.ctable .num, .ptable .num { text-align: right; }
.ctable tr.is-err td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.ctable tr.is-warn td:first-child { box-shadow: inset 3px 0 0 var(--gold-500); }
.miss { color: var(--bad); font-size: var(--fs-sm); font-style: italic; }

/* plan */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: var(--s-3); }
.ba-card { border-radius: var(--r-xl); padding: var(--s-5) var(--s-6); display: grid; gap: 2px; }
.ba-card small { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ba-card strong { font-family: var(--font-display); font-size: var(--fs-4xl); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ba-card > span { font-size: var(--fs-sm); font-weight: 600; }
.ba-before { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.ba-before > small, .ba-before > span { color: var(--muted); }
.ba-after { background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-800); }
.ba-after small { color: var(--brand-600); }
.ba-after > span { color: var(--good); }
.ba-arrow { display: grid; place-items: center; color: var(--faint); }
.plan-card { padding-bottom: var(--s-4); }
.toolbar { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.search { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 0 12px; height: 38px; background: var(--surface); color: var(--muted); transition: border-color var(--t), box-shadow var(--t); }
.search:focus-within { border-color: var(--brand-500); box-shadow: var(--sh-focus); }
.search .i { width: 16px; height: 16px; }
.search input { border: 0; outline: none; background: none; width: 130px; font-size: var(--fs-sm); color: var(--ink); }
.search input:focus-visible { box-shadow: none; }
.sort { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; display: inline-flex; align-items: center; gap: 4px; }
.sort:hover, .sort.is-on { color: var(--ink); }
.sort-ico { font-size: 11px; opacity: .6; }
.ptable tbody tr { transition: background var(--t); }
.ptable tbody tr:hover { background: var(--surface-2); }
.ptable tr.is-below td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.cust { display: grid; gap: 2px; min-width: 160px; }
.cust span { font-size: var(--fs-sm); color: var(--muted); line-height: 1.35; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; min-width: 170px; }
.lines li { display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-sm); cursor: help; }
.lines li span { color: var(--ink-2); }
.lines li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.np { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.np b { font-size: var(--fs-md); }
.sub { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }
.mchg { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.mchg .i { width: 14px; height: 14px; color: var(--faint); }
.mchg b { color: var(--good); }
.flag { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: var(--r-pill); background: var(--paper-2); color: var(--ink-2); margin: 0 4px 4px 0; }
.flag-bad { background: var(--bad-50); color: var(--bad); }
.flag-warn { background: var(--warn-50); color: var(--warn); }
.letters-sec { margin-top: var(--s-8); display: grid; gap: var(--s-4); }
.sec-head { display: grid; gap: 4px; }
.row-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.letters { display: grid; gap: var(--s-2); }
.lt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); }
.lt summary { list-style: none; display: flex; align-items: center; gap: var(--s-3); padding: 14px var(--s-5); cursor: pointer; transition: background var(--t); }
.lt summary:hover { background: var(--surface-2); }
.lt-ico { width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; flex: none; }
.lt-ico .i { width: 16px; height: 16px; }
.lt summary b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-tag { font-weight: 600; font-variant-numeric: tabular-nums; font-size: var(--fs-sm); color: var(--brand-700); background: var(--brand-50); padding: 4px 10px; border-radius: var(--r-pill); }
.lt summary > .i:last-child { width: 16px; height: 16px; color: var(--muted); transition: transform var(--t); }
.lt[open] summary > .i:last-child { transform: rotate(90deg); }
.lt-body { padding: 0 var(--s-5) var(--s-4); }
.letter { white-space: pre-wrap; font-family: var(--font-ui); font-size: var(--fs-base); line-height: 1.65; color: var(--ink-2); background: #FFFDF8; border: 1px solid #EEE7D6; border-radius: var(--r-md); padding: var(--s-6); box-shadow: 0 1px 0 #fff inset; max-width: 68ch; }
.script .letter { max-width: none; }
.upsell { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--surface); min-height: 440px; display: grid; }
.upsell-preview { filter: blur(5px); opacity: .65; padding: var(--s-6); pointer-events: none; user-select: none; grid-area: 1 / 1; }
.upsell-card { grid-area: 1 / 1; align-self: center; justify-self: center; width: min(420px, calc(100% - 32px)); background: var(--surface); border-radius: var(--r-xl); padding: var(--s-8); box-shadow: var(--sh-3), 0 0 0 1px var(--line); display: grid; gap: var(--s-4); margin: var(--s-6) 0; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); }
.eyebrow .i { width: 16px; height: 16px; }
.upsell-price { display: flex; align-items: baseline; gap: 10px; }
.upsell-price b { font-family: var(--font-display); font-size: var(--fs-4xl); font-weight: 600; color: var(--brand-800); letter-spacing: -.03em; line-height: 1; }
.upsell-price span { color: var(--muted); font-size: var(--fs-sm); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-base); }
.ticks .i { width: 18px; height: 18px; color: var(--good); stroke-width: 2.4; margin-top: 2px; }
.upsell .fine { text-align: center; }
.plan-foot { display: flex; justify-content: center; margin-top: var(--s-10); padding-top: var(--s-6); border-top: 1px solid var(--line); }

/* ===================================================== summary panel */
.sum-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--sh-1); margin-bottom: var(--s-4); }
.sum-empty p:not(.sum-eyebrow) { color: var(--muted); font-size: var(--fs-base); margin-bottom: var(--s-4); }
.sum-empty .skel-card { border: 0; padding: 0; }
.sum-eyebrow { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sum-big { display: flex; align-items: baseline; gap: 10px; margin-bottom: var(--s-3); }
.sum-big b { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-4xl); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--brand-800); transition: color var(--t); }
.sum-big b.bad { color: var(--bad); }
.sum-big span { color: var(--muted); font-size: var(--fs-sm); }
.meter { margin: var(--s-2) 0 var(--s-4); }
.meter-track { position: relative; height: 10px; border-radius: var(--r-pill); background: var(--paper-2); }
.meter-fill { position: absolute; inset: 0 auto 0 0; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--brand-600), var(--brand-500)); transition: width .7s var(--ease); }
.meter.is-bad .meter-fill { background: linear-gradient(90deg, #D9654A, var(--bad)); }
.mk { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); border: 2.5px solid var(--surface); box-shadow: var(--sh-2); transition: left .7s var(--ease); }
.mk-then { background: var(--brand-800); }
.mk-now { background: var(--bad); }
.mk-floor { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 2px dashed var(--ink-2); transition: left .7s var(--ease); }
.mk-floor em { position: absolute; top: calc(100% + 4px); left: 0; transform: translateX(-50%); font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.meter-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 8px; font-variant-numeric: tabular-nums; }
.sum-rows { margin: 0; display: grid; gap: 8px; }
.sum-rows > div { display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-sm); }
.sum-rows dt { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.sum-rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-then { background: var(--brand-800); }
.dot-now { background: var(--bad); }
.dot-after { background: var(--brand-500); }
.sum-sep { height: 1px; background: var(--line); margin: var(--s-4) 0; }
.sum-answers dl { margin: 0; display: grid; }
.sum-answers dl > div { display: flex; justify-content: space-between; gap: var(--s-3); padding: 8px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.sum-answers dl > div:first-child { border-top: 0; padding-top: 0; }
.sum-answers dt { color: var(--muted); flex: none; }
.sum-answers dd { margin: 0; text-align: right; font-weight: 500; display: flex; gap: 8px; align-items: baseline; justify-content: flex-end; min-width: 0; }
.sum-trust { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* mobile margin bar + sheet */
.mbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 25; display: none; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 10px 10px 10px 18px; background: rgba(18, 32, 29, .94); color: #fff; border-radius: var(--r-pill); box-shadow: var(--sh-3); backdrop-filter: blur(10px); }
.mbar[hidden] { display: none !important; }
.mbar-text { display: grid; line-height: 1.2; min-width: 0; }
.mbar-text small { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.mbar-text > span { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; font-size: var(--fs-base); }
.mbar-text .i { width: 14px; height: 14px; opacity: .5; }
.mbar-text .muted { color: rgba(255,255,255,.65); }
.mbar-text .bad { color: #FF9C85; }
.mbar-text .good { color: #7FE0B6; }
.mbar .btn-secondary { --bg: rgba(255,255,255,.12); --fg: #fff; --bd: transparent; box-shadow: none; }
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(18, 32, 29, .45); backdrop-filter: blur(3px); }
.sheet { width: 100%; max-width: 520px; margin: auto auto 0; border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--paper); padding: var(--s-5) var(--s-4) calc(var(--s-6) + env(safe-area-inset-bottom)); max-height: 85vh; overflow-y: auto; }
.sheet[open] { animation: sheetUp var(--t-slow) var(--ease); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-3); }
.sheet-head .icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.modal { width: min(440px, calc(100% - 32px)); border-radius: var(--r-xl); padding: var(--s-8); box-shadow: var(--sh-3); background: var(--surface); }
.modal[open] { animation: pop var(--t-slow) var(--ease-spring); }
.modal h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-2xl); margin-bottom: var(--s-2); }
.modal p { color: var(--ink-2); }
.modal-actions { display: flex; justify-content: flex-end; gap: var(--s-2); margin-top: var(--s-6); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: inline-flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: var(--fs-sm); font-weight: 500; box-shadow: var(--sh-3); transition: all var(--t-slow) var(--ease-spring); }
.toast .i { width: 18px; height: 18px; color: #7FE0B6; stroke-width: 2.4; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ===================================================== responsive */
@media (max-width: 1240px) {
  :root { --rail-w: 232px; }
  .layout { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
  .aside { display: none; }
  .mbar { display: flex; }
  .main { padding-bottom: 140px; }
  .toast { bottom: 96px; }
}
@media (max-width: 920px) {
  .layout, body.is-wide .layout { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .mprog { display: block; padding: 0 var(--s-5) 12px; max-width: 1480px; margin: 0 auto; }
  .mp-row { display: flex; justify-content: space-between; font-size: var(--fs-xs); margin-bottom: 8px; }
  .mp-sec { font-weight: 600; color: var(--brand-700); letter-spacing: .02em; }
  .mp-count { color: var(--muted); }
  .mp-bar { height: 4px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
  .mp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-700), var(--brand-500)); border-radius: inherit; transition: width var(--t-slow) var(--ease); }
  .topbar-in { padding: 0 var(--s-5); }
  .main { padding-top: var(--s-8); }
  .kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-head { display: none; }
  .map-row { grid-template-columns: 1fr; gap: var(--s-3); }
  .fields-3 { grid-template-columns: 1fr 1fr; }
  .fields-3 .field:first-child { grid-column: 1 / -1; }

  /* tables -> cards */
  .cards-mobile, .cards-mobile tbody, .cards-mobile tr, .cards-mobile td { display: block; width: 100%; }
  .cards-mobile thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cards-mobile tr { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-3); background: var(--surface); }
  .cards-mobile td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; gap: var(--s-4); text-align: right; }
  .cards-mobile td::before { content: attr(data-label); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-align: left; flex: none; padding-top: 3px; }
  .cards-mobile td:first-child { display: block; text-align: left; padding-bottom: var(--s-2); margin-bottom: var(--s-1); border-bottom: 1px solid var(--line); }
  .cards-mobile td:first-child::before { display: none; }
  .cards-mobile tr.is-below td:first-child, .cards-mobile tr.is-err td:first-child, .cards-mobile tr.is-warn td:first-child { box-shadow: none; }
  .cards-mobile tr.is-below, .cards-mobile tr.is-err { border-left: 3px solid var(--bad); }
  .cards-mobile tr.is-warn { border-left: 3px solid var(--gold-500); }
  .cards-mobile .lines { min-width: 0; flex: 1; max-width: 70%; }
  .cards-mobile .cust { min-width: 0; }
  .plan-card .tbl-wrap, .report .tbl-wrap.cm { margin: 0; padding: 0; overflow: visible; }
  .card .tbl-wrap:has(.cards-mobile) { margin: 0; padding: 0; overflow: visible; }
}
@media (max-width: 600px) {
  :root { --topbar-h: 56px; }
  body { font-size: var(--fs-base); }
  .main { padding: var(--s-6) var(--s-4) 140px; }
  .topbar-in { padding: 0 var(--s-4); }
  .mprog { padding: 0 var(--s-4) 10px; }
  .save-state { display: none; }
  .lede { font-size: var(--fs-md); }
  .screen-body { margin-top: var(--s-6); }
  .card { padding: var(--s-5) var(--s-4); }
  .tbl-wrap { margin: 0 calc(var(--s-4) * -1); padding: 0 var(--s-4); }
  .tiles { grid-template-columns: 1fr; gap: var(--s-2); }
  .tile { padding: var(--s-4); }
  .tile-ico { width: 44px; height: 44px; }
  .choices { grid-template-columns: 1fr; }
  .choice { padding: var(--s-4); gap: var(--s-3); }
  .fields, .fields-3 { grid-template-columns: 1fr; }
  .versus { grid-template-columns: 1fr 1fr; gap: var(--s-2); }
  .vs-card { padding: var(--s-4); border-radius: var(--r-lg); }
  .vs-card strong { font-size: 2.25rem; }
  .rtable th, .rtable td { padding: 10px 4px; font-size: var(--fs-sm); }
  .bar-col { display: none; }
  .oc-row { grid-template-columns: 1fr 36px; }
  .oc-row .oc-label { grid-column: 1; }
  .oc-row .seg { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .oc-row .oc-val { grid-column: 1 / -1; grid-row: 3; }
  .oc-row .icon-btn { grid-column: 2; grid-row: 1; }
  .nav { position: static; margin-top: var(--s-8); }
  .nav .btn-lg { flex: 1; max-width: 260px; }
  .ba { grid-template-columns: 1fr 1fr; }
  .ba-arrow { display: none; }
  .ba-card { padding: var(--s-4); border-radius: var(--r-lg); }
  .ba-card strong { font-size: var(--fs-3xl); }
  .kpi { padding: var(--s-3) var(--s-4); }
  .kpi b { font-size: var(--fs-xl); }
  .toolbar { width: 100%; }
  .toolbar .search { flex: 1; }
  .toolbar .search input { width: 100%; }
  .toolbar .seg { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .toolbar .btn { width: 100%; }
  .ig-list li { grid-template-columns: 1fr; gap: 4px; }
  .bulk { margin-left: 0; }
  .drop { padding: var(--s-8) var(--s-4); }
  .alt-actions .btn { flex: 1 1 100%; }
  .mini-compare b { font-size: var(--fs-xl); }
  .steps-tl li span { min-width: 120px; }
  .upsell-card { padding: var(--s-6); }
  .seg-opt span { padding: 8px 12px; }
  .letter { padding: var(--s-4); }
  .filebar .link { margin-left: 0; }
  .modal { padding: var(--s-6); }
}

/* ===================================================== motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .c-line { stroke-dashoffset: 0; }
}
@media print {
  .topbar, .rail, .aside, .mbar, .nav, .why, .toolbar, .upsell, .plan-foot { display: none !important; }
  .layout { display: block; }
  body { background: #fff; }
}

/* ===================================================== additions: issues, flags, extra fields */
.ig-one { padding-top: var(--s-3); padding-bottom: var(--s-3); }
.ig-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.ig-row .ig-general { font-size: var(--fs-sm); margin-top: 2px; }
.ig-msg .badge { padding: 3px 7px; margin-left: 4px; font-size: 10px; }
.flag-ok { background: var(--good-50); color: var(--good); }
.fnotes { margin-top: 2px; }
.fnotes summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); font-weight: 600; color: var(--warn); padding: 3px 8px; border-radius: var(--r-pill); background: var(--warn-50); }
.fnotes summary::-webkit-details-marker { display: none; }
.fnotes summary .i { width: 13px; height: 13px; }
.fnotes ul { margin: 6px 0 0; padding: 0 0 0 16px; font-size: var(--fs-xs); color: var(--ink-2); display: grid; gap: 4px; max-width: 280px; text-align: left; }
.ptable td[data-label="Flags"] { min-width: 150px; }
.more-fields > .card { margin-top: var(--s-2); }
@media (max-width: 920px) {
  .cards-mobile td[data-label="Flags"] { flex-wrap: wrap; justify-content: flex-end; }
  .cards-mobile td[data-label="Flags"] > * { margin-left: 4px; }
  .fnotes ul { max-width: none; }
}
@media (max-width: 600px) {
  .ig-row { flex-direction: column; align-items: flex-start; }
}
.lines { min-width: 200px; }
.lines li span { white-space: nowrap; }
.np { flex-wrap: nowrap; white-space: nowrap; }
.ptable td.num .sub { white-space: normal; }
@media (max-width: 920px) {
  .cards-mobile td .cv { text-align: right; min-width: 0; }
  .cards-mobile td[data-label="Flags"] > .cv > * { margin-left: 4px; }
  .cards-mobile .np { justify-content: flex-end; }
}
.main { overflow-x: clip; }
@media (max-width: 920px) {
  .cards-mobile .lines { min-width: 0; }
  .cards-mobile .lines li span { white-space: normal; text-align: left; }
}
@media (max-width: 600px) {
  .nav .btn-lg { flex: 0 1 auto; max-width: none; min-width: 0; padding: 0 18px; white-space: normal; text-align: center; line-height: 1.2; }
  .nav .btn-ghost { padding: 0 8px; }
}
@media (max-width: 600px) {
  .map-row { padding: var(--s-4); }
}

/* ===================================================== round 2 */
.loc.is-bad { border-color: var(--bad-100); box-shadow: 0 0 0 3px var(--bad-50); }
.loc-status.is-err { color: #8A2C1C; }
.loc-status.is-err .i { color: var(--bad); }
.loc-status code, .loc-status .link { font-size: var(--fs-sm); }
.loc-status code { font: 500 12px var(--font-mono); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xs); padding: 1px 5px; }
.loc-active { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--ink-2); }
.loc-active .i { width: 16px; height: 16px; color: var(--brand-600); }
.form-error .link { color: var(--bad); text-decoration-color: var(--bad-100); }
.freq { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }
.freq .input { flex: 0 1 150px; }
.freq .seg-opt span { padding: 8px 12px; }
.oc-hint { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--muted); margin-top: -4px; }
.sanity { display: flex; gap: var(--s-4); align-items: flex-start; border-color: var(--warn-100); background: linear-gradient(180deg, var(--warn-50), var(--surface) 70%); }
.sanity > .i { width: 28px; height: 28px; color: var(--warn); flex: none; margin-top: 2px; }
.sanity h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xl); margin-bottom: var(--s-2); }
.sanity ul { margin: 0 0 var(--s-3); padding-left: 18px; display: grid; gap: 4px; color: var(--ink-2); }
.jump { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin-top: var(--s-3); }
.jump > span { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.preview-card .jump .chip { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.fp-off { display: flex; gap: 10px; align-items: flex-start; margin: var(--s-3) 0 0; color: #fff; }
.fp-off .i { color: var(--gold-400); margin-top: 2px; }
.sc-own { display: grid; gap: var(--s-3); margin-top: var(--s-2); }
.sub-q .fields { grid-template-columns: 1fr; }
.noprice { border-color: var(--bad-100); display: grid; gap: var(--s-4); }
.np-head { display: flex; gap: var(--s-3); align-items: flex-start; }
.np-head > .i { width: 26px; height: 26px; color: var(--bad); flex: none; }
.np-head h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xl); margin-bottom: 6px; }
.np-head p { color: var(--ink-2); }
.np-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.np-opt { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); display: grid; gap: var(--s-2); align-content: start; background: var(--surface-2); }
.np-row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.mini-sel { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.mini-sel select { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 4px 6px; font-size: var(--fs-xs); background: var(--surface); color: var(--ink); }
.sheetpick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border: 1px dashed var(--line-2); border-radius: var(--r-md); font-size: var(--fs-sm); color: var(--ink-2); }
.sheetpick .i { width: 18px; height: 18px; color: var(--brand-600); }
.sheetpick .mini-sel { margin-left: auto; }
.dateorder .seg { margin-top: 6px; }
.ig-card { display: grid; gap: var(--s-3); }
.ig-card > .ig-head { align-items: flex-start; }
.ig-card > .ig-head > div { flex: 1; min-width: 200px; }
.sev-ico.sev-bad { background: var(--bad-50); color: var(--bad); flex: none; }
.ig-more { display: block !important; padding-top: 10px !important; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-4); }
.pager .btn:disabled { opacity: .35; cursor: default; }
.assumed-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--bad); background: var(--bad-50); padding: 2px 8px; border-radius: var(--r-pill); margin-bottom: 4px; }
td.num .cv { display: grid; justify-items: end; gap: 2px; }
.sfx { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; margin-left: 1px; }
.kpi-of { font-family: var(--font-ui); font-size: var(--fs-sm); color: var(--muted); font-weight: 500; letter-spacing: 0; }
.ptable tr.is-assumed td:first-child { box-shadow: inset 3px 0 0 var(--bad-100); }
.assumed-card { border-color: var(--bad-100); }
.sum-off .sum-big b.warn { color: var(--warn); font-size: var(--fs-2xl); }
.sum-warn { margin: 0 0 var(--s-3); padding-left: 18px; font-size: var(--fs-sm); color: var(--ink-2); display: grid; gap: 4px; }
@media (max-width: 1240px) and (min-width: 921px) {
  .mbar { left: calc(var(--rail-w) + 16px); }
}
@media (max-width: 920px) {
  .np-opts { grid-template-columns: 1fr; }
  .cards-mobile tr.is-assumed { border-left: 3px solid var(--bad-100); }
}
@media (max-width: 600px) {
  .toolbar .seg { flex-wrap: wrap; overflow: visible; border-radius: var(--r-lg); }
  .pager { flex-wrap: wrap; justify-content: center; }
  .sanity { flex-direction: column; }
  .freq .input { flex: 1 1 100%; }
}
.tag-varies { color: var(--warn); background: var(--warn-50); }
.oc-row { grid-template-columns: auto minmax(110px, 1fr) 36px; grid-template-areas: "label label x" "seg val val" "hint hint hint"; row-gap: var(--s-2); }
.oc-row .oc-label { grid-area: label; }
.oc-row .seg { grid-area: seg; justify-self: start; }
.oc-row .oc-val { grid-area: val; max-width: 200px; }
.oc-row .icon-btn { grid-area: x; }
.oc-row .oc-hint { grid-area: hint; margin: 0; }
@media (max-width: 600px) {
  .oc-row { grid-template-columns: 1fr 36px; grid-template-areas: "label x" "seg seg" "val val" "hint hint"; }
  .oc-row .oc-val { max-width: none; }
}

/* ===================================================== round 3 */
.notice-warn { background: var(--warn-50); border-color: var(--warn-100); color: #6B4600; }
.notice-warn .link { color: #6B4600; text-decoration-color: var(--warn-100); }
.notice .jump { margin-top: 2px; gap: var(--s-4); }
.oob-card { border-color: var(--bad-100); }
.oob-list li { grid-template-columns: minmax(120px, 180px) minmax(140px, 1fr) auto; }
.oob-fix { display: inline-flex; gap: 6px; align-items: center; }
.oob-addr { width: 260px; }
.fnotes.is-info summary { color: var(--info); background: var(--info-50); }
.ptable tr.is-oob td { opacity: .85; }
.rail-foot .badge { white-space: normal; line-height: 1.3; max-width: 100%; }
@media (max-width: 600px) {
  .oob-list li { grid-template-columns: 1fr; }
  .oob-fix { flex-wrap: wrap; }
  .oob-addr { width: 100%; }
}

/* ===================================================== paywall */
.blurred { filter: blur(5px); user-select: none; pointer-events: none; color: var(--ink-2); }
.unlock-card { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-6); align-items: center; padding: var(--s-8); border-radius: var(--r-xl); background: radial-gradient(120% 140% at 0% 0%, var(--brand-50), var(--surface) 60%); border: 1px solid var(--brand-100); box-shadow: var(--sh-3); }
.unlock-card h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-2xl); line-height: 1.2; letter-spacing: -.01em; margin: var(--s-3) 0 var(--s-4); text-wrap: balance; }
.uc-buy { display: grid; gap: var(--s-3); padding: var(--s-6); background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); text-align: center; justify-items: center; }
.uc-buy .upsell-price { justify-content: center; }
.lock-foot { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; padding: var(--s-4) var(--s-5); margin-top: var(--s-3); border-radius: var(--r-md); background: var(--surface-2); border: 1px dashed var(--line-2); font-size: var(--fs-base); }
.lock-foot > .i { color: var(--warn); }
.lock-foot > span { flex: 1; min-width: 200px; }
.ptable tr.is-locked td { background: linear-gradient(90deg, transparent, var(--surface-2)); }
.ptable tr.is-locked .flag .i { width: 12px; height: 12px; vertical-align: -2px; }
.locked-list { display: grid; gap: var(--s-2); }
.lt.is-locked .lt-sum { display: flex; align-items: center; gap: var(--s-3); padding: 14px var(--s-5); color: var(--muted); }
.lt.is-locked .lt-sum b { flex: 1; color: var(--ink-2); }
.lt.is-locked .lt-ico { background: var(--paper-2); color: var(--muted); }
.is-locked-card { position: relative; }
.rollout .tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rollout .tl li { display: grid; grid-template-columns: 170px 1fr; gap: var(--s-4); padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.rollout .tl li:first-child { border-top: 0; }
.tl-date { font-weight: 600; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.rollout .tl small { display: block; color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 920px) { .unlock-card { grid-template-columns: 1fr; padding: var(--s-6); } }
@media (max-width: 600px) { .rollout .tl li { grid-template-columns: 1fr; gap: 2px; } .unlock-card h2 { font-size: var(--fs-xl); } }
.loc-status.is-note { color: var(--info); }
.geo-card .geo-rough, .geo-card .geo-prec { justify-self: stretch; width: 100%; }
.geo-prec { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: var(--fs-sm); font-weight: 600; margin: 0; }
.gp-address { color: var(--good); } .gp-street { color: var(--info); } .gp-zip, .gp-approx { color: var(--warn); }
.geo-rough summary { font-weight: 600; }

/* ===================================================== accounts */
#acct:empty { display: none; }
.acct-menu { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r-pill); padding: 4px 10px 4px 4px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.acct-btn:hover { border-color: var(--brand-500); }
.acct-btn .i { width: 14px; height: 14px; transform: rotate(90deg); color: var(--muted); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-700); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.acct-email { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 8px; z-index: 40; display: grid; gap: 2px; }
.acct-who { font-size: var(--fs-sm); color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; }
.acct-pop button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 10px; border-radius: var(--r-sm); font-weight: 500; }
.acct-pop button:hover, .acct-pop button:focus-visible { background: var(--paper-2); }
.acct-pop .i { width: 18px; height: 18px; color: var(--brand-600); }
.modal-signin { width: min(460px, calc(100% - 24px)); }
.signin { display: grid; gap: var(--s-4); position: relative; }
.signin h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-2xl); line-height: 1.2; padding-right: 32px; }
.signin .eyebrow { color: var(--brand-600); }
.dlg-x { position: absolute; top: -8px; right: -8px; }
.dlg-x:hover { background: var(--paper-2); color: var(--ink); }
.si-privacy { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.si-privacy .i { width: 16px; height: 16px; color: var(--good); flex: none; margin-top: 1px; }
.signin.sent { justify-items: center; text-align: center; }
.sent-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; }
.sent-ico .i { width: 30px; height: 30px; }
.modal .field { margin-top: var(--s-3); }
.save-card { display: flex; gap: var(--s-4); align-items: center; border-color: var(--brand-100); background: linear-gradient(90deg, var(--brand-50), var(--surface) 60%); }
.save-card > .i { width: 28px; height: 28px; color: var(--brand-600); flex: none; }
.save-card > div { flex: 1; }
.save-card h3 { font-size: var(--fs-md); margin-bottom: 4px; }
.save-card p { font-size: var(--fs-sm); }
.notice.celebrate { animation: pop .6s var(--ease-spring) both; box-shadow: 0 0 0 6px var(--good-50); }
.acct-bar { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; justify-content: space-between; }
.privacy-l { display: flex; gap: 8px; align-items: center; font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.privacy-l .i { width: 16px; height: 16px; color: var(--good); }
.plan-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: var(--s-4); }
.plan-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-6); box-shadow: var(--sh-1); display: grid; gap: var(--s-4); }
.plan-tile.is-current { border-color: var(--brand-500); box-shadow: 0 0 0 1px var(--brand-500), var(--sh-2); }
.pt-head { display: flex; justify-content: space-between; gap: var(--s-3); align-items: flex-start; flex-wrap: wrap; }
.pt-title { display: grid; gap: 2px; min-width: 0; }
.pt-title h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xl); }
.pt-rename { font: 600 var(--fs-lg) var(--font-ui); border: 1px solid var(--brand-500); border-radius: var(--r-sm); padding: 6px 10px; box-shadow: var(--sh-focus); }
.pt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); margin: 0; }
.pt-stats div { display: grid; gap: 2px; }
.pt-stats dt { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.pt-stats dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.raise-card { border-radius: var(--r-md); background: var(--gold-50); border: 1px solid var(--gold-100); padding: var(--s-3) var(--s-4); display: grid; gap: 4px; }
.raise-card small { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--warn); }
.raise-card p { margin: 0; }
.raise-card.is-ready { background: var(--good-50); border-color: var(--good-100); }
.raise-card .ready { color: var(--good); font-weight: 700; }
.raise-card.is-loading .skel-card { border: 0; padding: 0; background: none; }
.pt-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.danger-link { --fg: var(--bad); }
.danger-link:hover { --bg: var(--bad-50); }
.acct-settings { display: grid; gap: var(--s-4); }
.acct-data { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; padding-top: var(--s-4); border-top: 1px solid var(--line); }
@media (max-width: 920px) { .pt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .acct-email { display: none; } .acct-btn { padding: 4px; } .acct-btn .i { display: none; } }
@media (max-width: 600px) { .save-card { flex-direction: column; align-items: flex-start; } }

/* ===================================================== v4.1 */
.line-btn { display: flex; justify-content: space-between; gap: var(--s-3); width: 100%; background: none; border: 0; padding: 1px 0; font: inherit; font-size: var(--fs-sm); text-align: left; color: inherit; cursor: pointer; border-radius: 4px; }
.line-btn span { color: var(--ink-2); text-decoration: underline dotted var(--line-2); text-underline-offset: 3px; }
.line-btn[aria-expanded="true"] span { color: var(--brand-700); text-decoration-color: var(--brand-500); }
.line-why { margin: 2px 0 6px; padding: 6px 8px; background: var(--brand-50); border-radius: var(--r-xs); font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.4; }
.lines li { display: block; }
.lines li > span + b, .lines li > span { display: inline; }
.lines li:not(:has(.line-btn)) { display: flex; justify-content: space-between; gap: var(--s-3); }
.lines-unit { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; text-transform: lowercase; }
.approx-b { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: var(--r-pill); background: var(--warn-50); color: var(--warn); margin-left: 4px; vertical-align: 1px; white-space: nowrap; }
.reality { display: flex; gap: 8px; align-items: flex-start; margin: var(--s-3) 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
.reality .i { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--info); }
.reality.is-warn { color: #6B4600; background: var(--warn-50); border: 1px solid var(--warn-100); border-radius: var(--r-md); padding: 10px 12px; }
.reality.is-warn .i { color: var(--warn); }
.reality.is-ok .i { color: var(--good); }
.charge-sum p { margin: 0; }
.kpi-sub { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.est-chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--warn); background: var(--warn-50); border: 1px solid var(--warn-100); padding: 3px 10px; border-radius: var(--r-pill); margin-top: 6px; }
.est-chip .i { width: 14px; height: 14px; }
.cards-mobile .line-why, .line-why { text-align: left; }

/* ===================================================== v5 */
.conflict-bar { position: fixed; left: 50%; top: calc(var(--topbar-h) + 12px); transform: translateX(-50%); z-index: 45; width: min(760px, calc(100% - 24px)); background: var(--surface); border: 1px solid var(--warn-100); border-left: 4px solid var(--warn); border-radius: var(--r-lg); box-shadow: var(--sh-3); }
.cb-in { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); flex-wrap: wrap; }
.cb-in > .i { color: var(--warn); }
.cb-in p { flex: 1; min-width: 200px; margin: 0; font-size: var(--fs-sm); }
.cb-act { display: flex; gap: var(--s-2); }
.pb-card { display: grid; gap: var(--s-4); }
.pb-card.is-hero { border-color: var(--brand-100); background: linear-gradient(180deg, var(--brand-50), var(--surface) 40%); box-shadow: var(--sh-2); }
.pb-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); flex-wrap: wrap; }
.pb-top small { display: block; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-600); }
.pb-top b { font-family: var(--font-display); font-size: var(--fs-4xl); font-weight: 600; color: var(--brand-800); letter-spacing: -.03em; line-height: 1.05; }
.pb-top span { display: block; color: var(--ink-2); font-weight: 600; }
.pb-h { font-size: var(--fs-md); font-weight: 600; margin: 0; }
.rtable tr.is-locked th { color: var(--muted); }
