/* PURCEAS CSS — design system v0.1 (docs/BRAND-BOOK.md).
   Derived from Purceas Brand Book v6 (purceas.com, ~/florentinpurcea/src/styles/global.css, 2026-11-13).
   Rule of the product: violet marks ACTIONS and identity; prices, totals and product photos are never coloured —
   the products and the numbers are the content. Status colours only for status. */

@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage-latin.woff2') format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage-latin-ext.woff2') format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02AF, U+0218-021B, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans-latin-ext.woff2') format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0100-02AF, U+0218-021B, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'FP Figures'; src: url('/fonts/fp-figures.woff2') format('woff2'); font-display: swap; unicode-range: U+0030-0039, U+002C, U+002E, U+0025, U+20AC, U+2212, U+002B, U+002D; }

:root {
  color-scheme: light;
  /* ground */
  --bg: #F8F7FF; --bg-2: #EEEAFF; --surface: #FFFFFF; --surface-2: #FBFAFF; --surface-3: #F1EEFF;
  --ink: #12141F; --ink-2: #3B3F52; --muted: #5C6075; --faint: #A3A7B8;
  --line: rgba(18,20,31,.12); --line-soft: rgba(18,20,31,.07); --line-strong: rgba(18,20,31,.24);
  /* action + identity (Purceas violet) */
  --act: #6D4AFF; --act-fill: #5634F0; --act-fill-hover: #4422D6; --act-text: #5232E0; --act-ink: #FFFFFF; --act-tint: rgba(109,74,255,.11);
  --brand-grad: linear-gradient(100deg, #6D4AFF 0%, #A63CF2 55%, #0784B8 105%);
  /* status — AA on --surface and --bg */
  --ok: #0D7340; --ok-tint: rgba(22,160,90,.13);
  --warn: #8A3D06; --warn-tint: rgba(255,183,3,.20);
  --crit: #B01D12; --crit-tint: rgba(255,61,46,.10);
  --info: #4C3CC9; --info-tint: rgba(76,60,201,.10);
  /* demo marking — never louder than a real control */
  --demo: #5F5A7A; --demo-tint: rgba(95,90,122,.08);
  /* elevation */
  --shadow-1: 0 1px 0 rgba(18,20,31,.04), 0 1px 2px rgba(18,20,31,.05);
  --shadow-2: 0 2px 4px rgba(18,20,31,.04), 0 18px 40px -22px rgba(18,20,31,.24);
  --shadow-3: 0 2px 6px rgba(18,20,31,.05), 0 34px 80px -34px rgba(18,20,31,.34);
  /* shape */
  --r-control: 10px; --r-card: 16px; --r-panel: 24px; --r-pill: 999px;
  /* type */
  --font-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-num: 'FP Figures', 'Instrument Sans', system-ui, sans-serif;
  --fs-0: .8125rem; --fs-1: .875rem; --fs-2: 1rem; --fs-3: 1.125rem; --fs-4: 1.3rem; --fs-h3: clamp(1.2rem, 1.6vw, 1.45rem); --fs-h2: clamp(1.6rem, 3vw, 2.3rem); --fs-h1: clamp(2.1rem, 4.4vw, 3.1rem);
  /* space (8-pt) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  /* motion */
  --t-fast: 120ms; --t-base: 220ms; --t-slow: 420ms; --ease: cubic-bezier(.2,.7,.2,1); --ease-spring: cubic-bezier(.34,1.4,.64,1);
  --max: 1200px; --nav-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #100F1E; --bg-2: #15142A; --surface: #1B1A33; --surface-2: #201E3B; --surface-3: #262446;
    --ink: #EEF0FF; --ink-2: #C9CCE6; --muted: #A2A6C4; --faint: #5E6284;
    --line: rgba(238,240,255,.14); --line-soft: rgba(238,240,255,.08); --line-strong: rgba(238,240,255,.28);
    --act: #9B7BFF; --act-fill: #8A66FF; --act-fill-hover: #B9A3FF; --act-text: #C2B0FF; --act-ink: #12082E; --act-tint: rgba(155,123,255,.16);
    --ok: #7BF0B2; --ok-tint: rgba(52,210,127,.16); --warn: #FFC53D; --warn-tint: rgba(255,183,3,.16); --crit: #FF8A7E; --crit-tint: rgba(255,90,74,.16); --info: #A99FFF; --info-tint: rgba(169,159,255,.16);
    --demo: #A9A3C7; --demo-tint: rgba(169,163,199,.08);
    --shadow-1: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 2px rgba(6,4,20,.5);
    --shadow-2: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 40px -22px rgba(10,4,40,.8);
    --shadow-3: inset 0 1px 0 rgba(255,255,255,.07), 0 34px 80px -34px rgba(10,4,40,.9);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-2)/1.55 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 var(--s-3); text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 700; } h2 { font-size: var(--fs-h2); font-weight: 650; } h3 { font-size: var(--fs-h3); font-weight: 600; } h4 { font-size: var(--fs-3); font-weight: 600; }
p { margin: 0 0 var(--s-4); text-wrap: pretty; max-width: 70ch; }
a { color: var(--act-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--act); outline-offset: 2px; border-radius: 6px; }
.num, .price { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .small { font-size: var(--fs-1); } .tiny { font-size: var(--fs-0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--s-5); }
.stack > * + * { margin-top: var(--s-4); }
.row { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: var(--s-3); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: var(--s-4); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
@media (max-width: 560px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } .pcard .ph { padding: 10px; } .pcard .body { padding: 10px; } .pcard .price { font-size: var(--fs-3); } }
.eyebrow { font: 600 var(--fs-0)/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--act-text); margin-bottom: var(--s-2); }

/* ---------- header / footer ---------- */
.banner { background: var(--demo-tint); border-bottom: 1px dashed var(--demo); color: var(--ink-2); font-size: var(--fs-1); padding: 8px 0; text-align: center; }
.banner strong { color: var(--ink); }
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line-soft); }
.nav .wrap { height: var(--nav-h); display: flex; align-items: center; gap: var(--s-5); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.08rem/1 var(--font-display); letter-spacing: -.01em; white-space: nowrap; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo .css { color: var(--act-text); }
.nav-links { display: flex; gap: var(--s-4); margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: var(--fs-1); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-search { flex: 1; max-width: 460px; }
@media (max-width: 860px) {
  .nav-links .hide-sm { display: none; }
  .nav .wrap { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .nav-search { order: 3; flex-basis: 100%; max-width: none; }
  body.home .nav-search { display: none; }
}
footer.site { margin-top: var(--s-9); border-top: 1px solid var(--line); background: var(--surface-2); padding: var(--s-7) 0 var(--s-6); font-size: var(--fs-1); color: var(--ink-2); }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-5); }
footer.site h4 { font-size: var(--fs-1); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
footer.site a { color: var(--ink-2); text-decoration: none; display: block; padding: 3px 0; }
footer.site a:hover { color: var(--ink); text-decoration: underline; }
.legal { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line-soft); color: var(--muted); font-size: var(--fs-0); }

/* ---------- buttons & form controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-control); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 var(--fs-1)/1 var(--font-body); text-decoration: none; cursor: pointer; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease); }
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--act-fill); border-color: var(--act-fill); color: var(--act-ink); }
.btn-primary:hover { background: var(--act-fill-hover); border-color: var(--act-fill-hover); box-shadow: 0 10px 24px -12px var(--act); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--act-text); }
.btn-demo { background: var(--demo-tint); border: 1px dashed var(--demo); color: var(--ink-2); }
.btn-danger { color: var(--crit); border-color: var(--crit); background: transparent; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: var(--fs-0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
label { display: block; font-weight: 600; font-size: var(--fs-1); margin-bottom: 6px; }
.hint { color: var(--muted); font-size: var(--fs-0); margin-top: 4px; font-weight: 400; }
input[type=text], input[type=email], input[type=url], input[type=search], input[type=number], input[type=tel], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-control); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 400 var(--fs-2)/1.4 var(--font-body); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--act); box-shadow: 0 0 0 3px var(--act-tint); }
textarea { min-height: 110px; resize: vertical; }
.field { margin-bottom: var(--s-4); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--act-fill); }
.form-error { color: var(--crit); font-size: var(--fs-1); margin-top: 6px; }

/* ---------- search box + autocomplete ---------- */
.search { position: relative; }
.search-box { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 4px 4px 4px 18px; box-shadow: var(--shadow-1); transition: box-shadow var(--t-base) var(--ease), border-color var(--t-fast); }
.search-box:focus-within { border-color: var(--act); box-shadow: 0 0 0 4px var(--act-tint), var(--shadow-2); }
.search-box input { border: 0; background: transparent; box-shadow: none; min-height: 40px; padding: 0; font-size: var(--fs-2); }
.search-box input:focus { box-shadow: none; }
.search-box .btn { border-radius: var(--r-pill); min-height: 40px; }
.search-lg .search-box { padding: 6px 6px 6px 22px; }
.search-lg input { min-height: 52px; font-size: var(--fs-3); }
.search-lg .btn { min-height: 52px; padding: 0 26px; font-size: var(--fs-2); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-3); z-index: 40; padding: 6px; list-style: none; margin: 0; display: none; }
.suggest[data-open] { display: block; animation: rise var(--t-base) var(--ease); }
.suggest li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.suggest li a[aria-selected="true"], .suggest li a:hover { background: var(--act-tint); }
.suggest .price { color: var(--ink-2); white-space: nowrap; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-card); box-shadow: var(--shadow-1); padding: var(--s-5); }
.panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-panel); box-shadow: var(--shadow-2); padding: var(--s-6); }
.hero { position: relative; padding: var(--s-8) 0 var(--s-7); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -40% -10% auto -10%; height: 140%; background: radial-gradient(55% 50% at 72% 8%, rgba(140,100,255,.26), transparent 70%), radial-gradient(40% 40% at 8% 18%, rgba(7,166,224,.14), transparent 70%); pointer-events: none; z-index: -1; }
.hero h1 .accent { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: var(--fs-3); color: var(--ink-2); max-width: 60ch; }

/* ---------- badges / status ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font-size: var(--fs-0); font-weight: 600; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-tint); color: var(--ok); }
.badge.warn { background: var(--warn-tint); color: var(--warn); }
.badge.crit { background: var(--crit-tint); color: var(--crit); }
.badge.info { background: var(--info-tint); color: var(--info); }
.badge.demo { background: var(--demo-tint); color: var(--demo); border: 1px dashed var(--demo); }
.badge.sponsored { background: var(--warn-tint); color: var(--warn); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- product cards / results ---------- */
.results { display: grid; grid-template-columns: 260px 1fr; gap: var(--s-6); align-items: start; }
@media (max-width: 900px) { .results { grid-template-columns: 1fr; gap: var(--s-4); } .filters { position: static; } }
.filters-toggle > summary { display: none; }
@media (max-width: 900px) {
  .filters-toggle { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: 0 var(--s-4); }
  .filters-toggle > summary { display: flex; justify-content: space-between; min-height: 48px; align-items: center; font-weight: 600; cursor: pointer; list-style: none; }
  .filters-toggle > summary::after { content: '+'; color: var(--act-text); font-weight: 700; }
  .filters-toggle[open] > summary::after { content: '−'; }
  .filters-toggle[open] { padding-bottom: var(--s-4); }
}
.filters { position: sticky; top: calc(var(--nav-h) + 16px); }
.filters fieldset { border: 0; padding: 0; margin: 0 0 var(--s-5); }
.filters legend { font-weight: 700; font-size: var(--fs-1); margin-bottom: var(--s-2); }
.filters .opt { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: var(--fs-1); }
.filters .opt:hover { background: var(--surface-3); color: var(--ink); }
.filters .opt[aria-current] { background: var(--act-tint); color: var(--act-text); font-weight: 600; }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-card); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-fast); }
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line); }
.pcard .ph { aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: 14px; border-bottom: 1px solid var(--line-soft); }
.pcard .ph img { max-height: 100%; object-fit: contain; }
.pcard .body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .t { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .from { margin-top: auto; font-size: var(--fs-0); color: var(--muted); }
.pcard .price { font-size: var(--fs-4); font-weight: 700; color: var(--ink); }
.noimg { min-width: 64px; min-height: 64px; padding: 8px 14px; border-radius: 12px; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); font-size: var(--fs-0); white-space: nowrap; }

/* ---------- product page / offers table ---------- */
.pp { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: var(--s-6); align-items: start; }
@media (max-width: 860px) { .pp { grid-template-columns: 1fr; } .pp .photo { aspect-ratio: auto; height: min(70vw, 300px); } }
.pp .photo { background: #fff; border-radius: var(--r-panel); border: 1px solid var(--line-soft); aspect-ratio: 1; display: grid; place-items: center; padding: var(--s-5); }
.headline { border-radius: var(--r-card); padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.headline .big { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; }
.offers { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.offers th { text-align: left; font-size: var(--fs-0); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 0 12px; }
.offers td { background: var(--surface); padding: 14px 12px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.offers td:first-child { border-left: 1px solid var(--line-soft); border-radius: 12px 0 0 12px; }
.offers td:last-child { border-right: 1px solid var(--line-soft); border-radius: 0 12px 12px 0; text-align: right; }
.offers tr.best td { border-color: var(--act); }
.offers .total { font-weight: 700; font-size: var(--fs-3); }
.offers .strike { text-decoration: line-through; color: var(--muted); font-size: var(--fs-0); }
@media (max-width: 700px) {
  .offers thead { display: none; }
  .offers, .offers tbody, .offers tr, .offers td { display: block; }
  .offers tr { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; margin-bottom: 10px; padding: 8px 4px; }
  .offers tr.best { border-color: var(--act); }
  .offers td { border: 0 !important; padding: 6px 12px; background: transparent; text-align: left !important; }
  .offers td[data-label]::before { content: attr(data-label) ': '; color: var(--muted); font-size: var(--fs-0); }
}

/* ---------- tables (portal/admin) ---------- */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-1); }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: var(--fs-0); text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table tr:hover td { background: var(--surface-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r-card); background: var(--surface); }

/* ---------- app shell (portal + console) ---------- */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--nav-h)); }
@media (max-width: 900px) { .shell { grid-template-columns: 1fr; } .side { position: static !important; height: auto !important; border-right: 0 !important; border-bottom: 1px solid var(--line-soft); } .side nav { display: flex; overflow-x: auto; gap: 4px; } }
.side { border-right: 1px solid var(--line-soft); padding: var(--s-5) var(--s-3); position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); background: var(--surface-2); }
.side a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: var(--fs-1); white-space: nowrap; }
.side a:hover { background: var(--surface-3); color: var(--ink); }
.side a[aria-current] { background: var(--act-tint); color: var(--act-text); font-weight: 650; }
.side .org { font-weight: 700; padding: 0 12px var(--s-4); font-family: var(--font-display); }
.main { padding: var(--s-6) var(--s-6) var(--s-8); max-width: 1180px; width: 100%; }
@media (max-width: 600px) { .main { padding: var(--s-5) var(--s-4); } }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s-4); }
.kpi { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: var(--s-4) var(--s-5); }
.kpi .v { font: 700 1.9rem/1.1 var(--font-num); margin: 6px 0 4px; }
.kpi .l { font-size: var(--fs-0); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.kpi .s { font-size: var(--fs-0); color: var(--muted); }
.answer { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-4) var(--s-5); border-radius: var(--r-card); border: 1px solid var(--line-soft); background: var(--surface); }
.answer .q { font-weight: 600; } .answer .icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; }
.answer.ok .icon { background: var(--ok-tint); color: var(--ok); } .answer.warn .icon { background: var(--warn-tint); color: var(--warn); } .answer.crit .icon { background: var(--crit-tint); color: var(--crit); } .answer.info .icon { background: var(--info-tint); color: var(--info); }

/* ---------- steps ---------- */
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 var(--s-6); flex-wrap: wrap; counter-reset: s; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-soft); font-size: var(--fs-1); color: var(--muted); }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-weight: 700; font-size: var(--fs-0); }
.steps li[data-state="done"] { color: var(--ok); } .steps li[data-state="done"]::before { content: '✓'; background: var(--ok-tint); }
.steps li[data-state="current"] { color: var(--ink); border-color: var(--act); font-weight: 600; } .steps li[data-state="current"]::before { background: var(--act-fill); color: var(--act-ink); }

/* ---------- misc ---------- */
.empty { text-align: center; padding: var(--s-8) var(--s-5); color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-panel); }
.empty h3 { color: var(--ink); }
.notice { padding: var(--s-4) var(--s-5); border-radius: var(--r-card); background: var(--info-tint); color: var(--ink); border: 1px solid transparent; }
.notice.warn { background: var(--warn-tint); } .notice.crit { background: var(--crit-tint); } .notice.ok { background: var(--ok-tint); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-1); color: var(--muted); list-style: none; padding: 0; margin: var(--s-5) 0 var(--s-4); }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--ink); text-decoration: underline; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: var(--s-6); }
.faq details { border-bottom: 1px solid var(--line); padding: var(--s-4) 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--act-text); font-weight: 700; transition: transform var(--t-base) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: var(--s-3); color: var(--ink-2); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-7); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.section { padding: var(--s-8) 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.swatch { border-radius: 14px; border: 1px solid var(--line-soft); overflow: hidden; background: var(--surface); }
.swatch .c { height: 72px; }
.swatch .m { padding: 10px 12px; font-size: var(--fs-0); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-3); z-index: 60; animation: rise var(--t-base) var(--ease); }
.reveal { animation: rise var(--t-slow) var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .pcard:hover { transform: none; }
}
