/* Unite Product + Power — design system
   Warm paper, deep night-green, Unite orange, solar amber. Archivo (variable width) + IBM Plex Mono for readings. */

:root {
  --bg: #F5F2EA; --surface: #FFFFFF; --surface-2: #EEEADF; --surface-3: #E6E1D3;
  --ink: #15171A; --ink-2: #3A3E44; --mute: #6A6E73; --line: #E1DBCD; --line-2: #CCC4B1;
  --brand: #F26A1B; --brand-hi: #FF7E33; --brand-ink: #B8470A; --brand-soft: #FDEADC;
  --sun: #FFB21E; --sun-soft: #FFE6B0;
  --good: #16804B; --good-soft: #E1F2E7; --warn: #985A00; --warn-soft: #FFF0D2; --bad: #BF3428; --bad-soft: #FBE4E0;
  --night: #0E1311; --night-2: #17201B; --night-3: #212C26; --night-line: #2A3630; --night-ink: #F1EFE8; --night-mute: #9AA69F;
  --r: 16px; --r-sm: 11px; --r-xs: 8px;
  --sh-1: 0 1px 2px rgba(30,24,10,.06);
  --sh-2: 0 1px 2px rgba(30,24,10,.05), 0 10px 30px -14px rgba(30,24,10,.22);
  --sh-3: 0 24px 60px -20px rgba(10,14,12,.45);
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --logo-filter: none;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C100E; --surface: #141A17; --surface-2: #1A221E; --surface-3: #222C27;
    --ink: #EFEDE6; --ink-2: #C9CCC7; --mute: #949C97; --line: #26302B; --line-2: #36423C;
    --brand: #FF7A2E; --brand-hi: #FF9152; --brand-ink: #FFA36B; --brand-soft: #2E1C10;
    --sun: #FFBE3D; --sun-soft: #4A3712;
    --good: #43C987; --good-soft: #10291C; --warn: #F2B64A; --warn-soft: #2C220F; --bad: #FF8070; --bad-soft: #2E1614;
    --night: #070A09; --night-2: #111814; --night-3: #19221D;
    --sh-1: 0 0 0 1px var(--line); --sh-2: 0 0 0 1px var(--line), 0 12px 30px -16px rgba(0,0,0,.6);
    --logo-filter: invert(1) brightness(1.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C100E; --surface: #141A17; --surface-2: #1A221E; --surface-3: #222C27;
  --ink: #EFEDE6; --ink-2: #C9CCC7; --mute: #949C97; --line: #26302B; --line-2: #36423C;
  --brand: #FF7A2E; --brand-hi: #FF9152; --brand-ink: #FFA36B; --brand-soft: #2E1C10;
  --sun: #FFBE3D; --sun-soft: #4A3712;
  --good: #43C987; --good-soft: #10291C; --warn: #F2B64A; --warn-soft: #2C220F; --bad: #FF8070; --bad-soft: #2E1614;
  --night: #070A09; --night-2: #111814; --night-3: #19221D;
  --sh-1: 0 0 0 1px var(--line); --sh-2: 0 0 0 1px var(--line), 0 12px 30px -16px rgba(0,0,0,.6);
  --logo-filter: invert(1) brightness(1.6);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
img { max-width: 100%; display: block; }
a { color: inherit; }
p a, .fine a, li a { color: var(--brand-ink); text-underline-offset: 2px; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mute { color: var(--mute); }
.good { color: var(--good) !important; }
.bad-t { color: var(--bad) !important; }
.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.no-scroll { overflow: hidden; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn { --b: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; line-height: 1; padding: 12px 18px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--b); background: var(--b); color: var(--bg); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .08s, box-shadow .15s; }
.btn:hover { --b: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { --b: var(--brand); color: #fff; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn.primary:hover { --b: var(--brand-hi); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn.ghost-dark { background: transparent; color: var(--night-ink); border-color: var(--night-line); }
.btn.ghost-dark:hover { border-color: var(--night-ink); }
.btn.danger { --b: var(--bad); color: #fff; }
.btn.sm { padding: 8px 13px; min-height: 36px; font-size: 14px; }
.btn.lg { padding: 15px 24px; min-height: 52px; font-size: 16px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn .ic { width: 17px; height: 17px; }
.lnk { background: none; border: 0; padding: 4px 2px; color: var(--brand-ink); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.lnk:hover { text-decoration: underline; text-underline-offset: 3px; }
.lnk.d { color: var(--bad); }
.lnk .ic { width: 15px; height: 15px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--line-2); }
.spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > span, .field > label, .field > legend { font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 0; }
.field small { font-weight: 400; color: var(--mute); }
.field em { font-style: normal; color: var(--brand-ink); }
.f { width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px; min-height: 46px; transition: border-color .15s, box-shadow .15s; }
.f:hover { border-color: var(--line-2); }
.f:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.f.num { font-family: var(--mono); }
.f[disabled], .f[readonly] { background: var(--surface-2); color: var(--mute); }
select.f { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A6E73' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
textarea.f { min-height: 96px; resize: vertical; line-height: 1.45; }
.field.invalid .f, fieldset.invalid .chip-in span { border-color: var(--bad); }
.field.invalid .f:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 16%, transparent); }
.ferr { font-size: 12.5px; color: var(--bad); font-weight: 500; min-height: 0; }
.ferr:empty { display: none; }
.hint { font-size: 12.5px; color: var(--mute); }
.join { display: flex; gap: 8px; }
.join .f:first-child { flex: 1.25; }
.join .f:last-child { flex: 1; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-err { color: var(--bad); font-size: 14px; font-weight: 500; margin: 0; }
.form-err:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex-shrink: 0; }

/* chips (multi/single select) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; cursor: pointer; color: var(--ink-2); transition: all .15s; }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.chip-in { position: relative; display: inline-flex; cursor: pointer; }
.chip-in input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip-in span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink-2); transition: all .15s; }
.chip-in:hover span { border-color: var(--line-2); }
.chip-in input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.chip-in input:checked + span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-in input:focus-visible + span { outline: 2.5px solid var(--brand); outline-offset: 2px; }

/* segmented */
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 10px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; line-height: 1.2; transition: all .15s; }
.seg small { font-weight: 400; font-size: 12px; color: var(--mute); }
.seg label:hover span { border-color: var(--line-2); }
.seg input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.seg input:checked + span small { color: var(--brand-ink); opacity: .8; }
.seg input:focus-visible + span { outline: 2.5px solid var(--brand); outline-offset: 2px; }

/* choice cards (radio) */
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.choice { position: relative; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice > span { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 18px 18px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); transition: all .15s; }
.choice b { font-size: 16.5px; padding-right: 28px; }
.choice small { color: var(--ink-2); font-size: 14px; }
.choice i { font-style: normal; font-size: 12.5px; color: var(--mute); margin-top: auto; padding-top: 6px; }
.choice > span::after { content: ""; position: absolute; top: 18px; right: 18px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); transition: all .15s; }
.choice:hover > span { border-color: var(--line-2); }
.choice input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.choice input:checked + span::after { border: 6px solid var(--brand); }
.choice input:focus-visible + span { outline: 2.5px solid var(--brand); outline-offset: 2px; }

/* ---------- pills & badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.good, .badge.good { background: var(--good-soft); color: var(--good); }
.pill.warn, .badge.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad, .badge.bad { background: var(--bad-soft); color: var(--bad); }
.pill.grey, .badge.grey { background: var(--surface-2); color: var(--mute); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.brand { background: var(--brand-soft); color: var(--brand-ink); }

/* ---------- cards ---------- */
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); }
.eyebrow.on-dark { color: var(--sun); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(255,178,30,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,178,30,.55); } 70% { box-shadow: 0 0 0 10px rgba(255,178,30,0); } 100% { box-shadow: 0 0 0 0 rgba(255,178,30,0); } }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { height: 30px; width: auto; filter: var(--logo-filter); }
.brand-pp { font-weight: 700; font-size: 14px; letter-spacing: -.01em; font-stretch: 112%; padding-left: 12px; border-left: 1.5px solid var(--line-2); white-space: nowrap; }
.brand-pp i { font-style: normal; color: var(--brand); padding: 0 2px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-in { display: flex; align-items: center; gap: 22px; height: 68px; }
.mainnav { display: flex; gap: 4px; margin-left: auto; }
.mainnav a { padding: 8px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.mainnav a:hover { background: var(--surface-2); color: var(--ink); }
.acct { display: flex; align-items: center; gap: 8px; }
.acct .btn { min-height: 40px; padding: 9px 16px; font-size: 14.5px; }
.menu-toggle { display: none; }
.mainnav .only-m { display: none; }
@media (max-width: 1080px) {
  .mainnav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--sh-2); }
  .mainnav.open { display: flex; }
  .mainnav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .menu-toggle { display: inline-grid; }
  .mainnav .only-m { display: block; color: var(--brand-ink); font-weight: 600; }
  .acct { margin-left: auto; }
}
@media (max-width: 560px) {
  .topbar-in { gap: 10px; }
  .brand-pp { display: none; }
  .acct .hide-sm { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--night-ink); padding: 72px 0 0; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px); background-size: 48px 48px; opacity: .45; mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 10%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 10%, transparent 72%); }
.hero-glow { position: absolute; z-index: -1; width: 720px; height: 720px; right: -160px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(255,178,30,.28), rgba(242,106,27,.12) 40%, transparent 68%); filter: blur(10px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 4.7vw, 70px); line-height: .98; font-weight: 800; font-stretch: 112%; letter-spacing: -.035em; margin: 0 0 22px; max-width: 15ch; }
.hero h1 em { font-style: normal; display: block; background: linear-gradient(92deg, var(--sun), #FF8A3D 60%, var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.5; color: var(--night-mute); max-width: 52ch; margin: 0 0 30px; }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.path { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 18px; border-radius: var(--r); background: linear-gradient(180deg, var(--night-3), var(--night-2)); border: 1px solid var(--night-line); color: var(--night-ink); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.path:hover { border-color: color-mix(in srgb, var(--sun) 60%, transparent); transform: translateY(-2px); box-shadow: 0 18px 40px -20px rgba(255,178,30,.35); }
.path-k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--sun); }
.path b { font-size: 19px; font-stretch: 108%; letter-spacing: -.02em; line-height: 1.15; }
.path-d { font-size: 14.5px; color: var(--night-mute); line-height: 1.45; }
.path-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; font-size: 14.5px; color: #fff; }
.path-go .ic { transition: transform .2s; }
.path:hover .path-go .ic { transform: translateX(4px); }
.hero-fig { margin: 0; }
.circuit { width: 100%; height: auto; display: block; }
.circuit .rays { transform-origin: 92px 72px; animation: rot 50s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.circuit .wire { stroke: var(--night-line); stroke-width: 8; fill: none; stroke-linecap: round; }
.circuit .flow { stroke: var(--sun); stroke-width: 3; fill: none; stroke-dasharray: 6 14; stroke-linecap: round; animation: flow var(--flow, 1.4s) linear infinite; }
@keyframes flow { to { stroke-dashoffset: -40; } }
.circuit .tag rect { fill: var(--night-2); stroke: var(--night-line); }
.circuit text { font-family: var(--font); fill: var(--night-ink); }
.circuit .t-k { font-size: 12px; fill: var(--night-mute); }
.circuit .t-v { font-family: var(--mono); font-size: 18px; font-weight: 600; }
.circuit .batt { transition: opacity .4s; opacity: 0; }
.circuit .batt.on { opacity: 1; }
.hero-cap { text-align: center; font-size: 12.5px; color: var(--night-mute); margin-top: 6px; }
.facts { list-style: none; margin: 56px 0 0; padding: 22px 0 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; border-top: 1px solid var(--night-line); font-size: 14.5px; color: var(--night-mute); }
.facts b { color: var(--night-ink); font-weight: 600; }
@media (max-width: 960px) {
  .hero { padding-top: 44px; }
  .hero-in { grid-template-columns: 1fr; gap: 28px; }
  .hero-fig { max-width: 560px; margin: 0 auto; width: 100%; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: 32px; }
}
@media (max-width: 560px) { .paths { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- sections ---------- */
.sec { padding: 104px 0; }
.sec-tint { background: var(--surface-2); }
.sec-dark { background: var(--night); color: var(--night-ink); }
.sec-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.sec-head.left { text-align: left; margin: 0; }
.sec-head h2 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 800; font-stretch: 112%; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 16px; }
.sec-head h2 .mute { color: var(--mute); }
.sec-head p { margin: 0; font-size: 18px; color: var(--ink-2); }
.sec-head p.eyebrow { font-size: 12.5px; color: var(--brand-ink); margin-bottom: 14px; }
@media (max-width: 760px) { .sec { padding: 68px 0; } .sec-head { margin-bottom: 34px; } .sec-head p { font-size: 16.5px; } }

.steps3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps3 li { position: relative; padding: 28px 26px 30px; background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-2); }
.steps3 li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -14px; width: 10px; height: 10px; border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: translateY(-50%) rotate(45deg); }
.step-n { font-family: var(--mono); font-size: 13px; color: var(--brand-ink); font-weight: 600; }
.steps3 h3 { font-size: 21px; font-stretch: 108%; margin: 14px 0 8px; }
.steps3 p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .steps3 { grid-template-columns: 1fr; } .steps3 li:not(:last-child)::after { display: none; } }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 22px; align-items: start; }
.calc-in { padding: 24px; display: grid; gap: 18px; }
.presets { border: 0; padding: 0; margin: 0; }
.presets legend { font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.presets .chip { padding: 6px 11px; font-size: 13px; }
.adv { border-top: 1px solid var(--line); padding-top: 14px; }
.adv summary { cursor: pointer; font-weight: 600; font-size: 14.5px; list-style: none; display: flex; align-items: center; gap: 8px; }
.adv summary::-webkit-details-marker { display: none; }
.adv summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(-45deg); transition: transform .2s; margin-right: 2px; }
.adv[open] summary::before { transform: rotate(45deg); }
.adv summary small { color: var(--mute); font-weight: 400; }
.adv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 16px; }
.adv-grid .f { min-height: 40px; padding: 8px 11px; font-size: 15px; }
.adv-grid .field > span { font-size: 12.5px; }
.adv-grid .btn { grid-column: 1/-1; justify-self: start; }
.calc-out { display: grid; gap: 16px; position: sticky; top: 88px; }
.meter { padding: 26px 28px 22px; overflow: hidden; position: relative; }
.meter::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--sun), var(--brand)); }
.meter-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.meter-k { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.meter-v { font-size: clamp(44px, 5.4vw, 72px); font-weight: 600; line-height: 1; letter-spacing: -.05em; color: var(--good); margin: 14px 0 8px; }
.meter-v.na { color: var(--mute); font-size: clamp(30px, 3.4vw, 42px); }
.meter-d { margin: 0 0 20px; color: var(--mute); font-size: 14.5px; }
.kv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kv-grid > div { padding: 16px 14px 16px 0; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kv-grid > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.kv-grid span { font-size: 12.5px; color: var(--mute); font-weight: 500; }
.kv-grid b { font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv-grid small { font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; }
.daybar { margin-top: 18px; }
.daybar-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--mute); margin-bottom: 8px; }
.daybar-top b { color: var(--ink); font-weight: 600; }
.daybar svg { width: 100%; height: 56px; display: block; }
.daybar-axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--mute); margin-top: 3px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--mute); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend span::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.cta-card { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(120deg, var(--surface), color-mix(in srgb, var(--sun-soft) 45%, var(--surface))); }
.cta-card b { display: block; font-size: 16.5px; margin-bottom: 2px; }
.cta-card span { color: var(--ink-2); font-size: 14.5px; }
.cta-card > div:first-child { flex: 1 1 260px; }
.cta-acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1020px) { .calc { grid-template-columns: 1fr; } .calc-out { position: static; } }
@media (max-width: 640px) { .kv-grid { grid-template-columns: 1fr 1fr; } .kv-grid > div:nth-child(3) { padding-left: 0; border-left: 0; } .kv-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); } .seg { grid-template-columns: 1fr 1fr; } .calc-in { padding: 18px; } .meter { padding: 22px 18px 18px; } .adv-grid { grid-template-columns: 1fr; } }

.longview { margin-top: 22px; padding: 28px; }
.longview-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 28px; align-items: start; margin-bottom: 18px; }
.longview h3 { font-size: 24px; font-stretch: 110%; margin-bottom: 8px; }
.longview-head p { margin: 0; color: var(--ink-2); font-size: 15px; }
.scrub { background: var(--night); color: var(--night-ink); border-radius: var(--r-sm); padding: 14px 16px 16px; }
.scrub label { font-size: 13px; color: var(--night-mute); display: flex; align-items: baseline; gap: 8px; }
.scrub label b { font-size: 26px; color: #fff; font-weight: 600; }
.scrub input[type=range] { width: 100%; accent-color: var(--sun); margin: 6px 0 8px; }
.scrub-ro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.scrub-ro span { display: block; font-size: 12px; color: var(--night-mute); }
.scrub-ro b { font-size: 17px; font-weight: 600; }
.scrub-ro .good { color: #4DD394 !important; }
.chart-wrap { border-top: 1px solid var(--line); padding-top: 16px; }
#chart { width: 100%; height: auto; display: block; }
#chart text { font-family: var(--mono); font-size: 11.5px; fill: var(--mute); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.cmp { border: 1.5px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.cmp-good { border-color: color-mix(in srgb, var(--good) 45%, transparent); background: color-mix(in srgb, var(--good-soft) 55%, var(--surface)); }
.cmp h4 { font-size: 17px; margin-bottom: 10px; }
.cmp dl { margin: 0; display: grid; grid-template-columns: 1fr auto; }
.cmp dt, .cmp dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.cmp dt { color: var(--ink-2); }
.cmp dd { text-align: right; font-family: var(--mono); font-weight: 600; font-size: 14px; }
.cmp dd.big { color: var(--good); font-size: 19px; }
.fine { font-size: 12.5px; color: var(--mute); margin: 18px 0 0; max-width: 110ch; line-height: 1.5; }
@media (max-width: 860px) { .longview { padding: 20px 16px; } .longview-head { grid-template-columns: 1fr; } .compare { grid-template-columns: 1fr; } }

/* ---------- manufacturers ---------- */
.perks { list-style: none; margin: 0 0 64px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.perks li { display: flex; gap: 10px; align-items: center; padding: 15px 16px; background: var(--surface); border-radius: var(--r-sm); box-shadow: var(--sh-1); font-weight: 500; font-size: 15px; }
.perks li::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--good-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316804B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.models-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 40px; align-items: end; margin-bottom: 22px; }
.models-head h3 { font-size: 28px; font-stretch: 110%; letter-spacing: -.03em; }
.models-head p { margin: 6px 0 0; color: var(--ink-2); }
.brand-try { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; border: 1.5px dashed var(--line-2); border-radius: var(--r); }
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.model { display: flex; flex-direction: column; padding: 24px; background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-2); }
.model header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.model-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--bg); font-family: var(--mono); font-weight: 600; font-size: 14px; flex-shrink: 0; }
.model h4 { font-size: 19px; font-stretch: 106%; }
.model-s { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; }
.model .who { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 18px 0 14px; font-size: 14px; }
.model .who dt, .model .who dd { margin: 0; padding: 8px 0; border-top: 1px solid var(--line); }
.model .who dt { color: var(--mute); padding-right: 14px; white-space: nowrap; }
.model .who dd { font-weight: 500; }
.model-best { margin: 0 0 18px; font-size: 14px; color: var(--mute); }
.model .btn { margin-top: auto; align-self: flex-start; }
/* metal nameplate */
.plate { position: relative; border-radius: 12px; padding: 20px 22px 16px; min-height: 150px; color: #1E2227; display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(circle at 11px 11px, #fff 0 1.4px, #8f98a2 3.2px, #6b737c 4.2px, transparent 4.8px),
    radial-gradient(circle at calc(100% - 11px) 11px, #fff 0 1.4px, #8f98a2 3.2px, #6b737c 4.2px, transparent 4.8px),
    radial-gradient(circle at 11px calc(100% - 11px), #fff 0 1.4px, #8f98a2 3.2px, #6b737c 4.2px, transparent 4.8px),
    radial-gradient(circle at calc(100% - 11px) calc(100% - 11px), #fff 0 1.4px, #8f98a2 3.2px, #6b737c 4.2px, transparent 4.8px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.2) 0 1px, rgba(0,0,0,.025) 1px 3px),
    linear-gradient(160deg, #F3F4F5 0%, #D3D8DD 55%, #E9EBEE 100%);
  box-shadow: inset 0 0 0 1px #A9B1BA, inset 0 0 0 4px #EBEDF0, inset 0 0 0 5px #B6BDC5, 0 1px 0 rgba(0,0,0,.05); }
.plate-l1 { font-weight: 800; font-size: 20px; font-stretch: 118%; letter-spacing: -.01em; line-height: 1.15; text-shadow: 0 1px 0 rgba(255,255,255,.7); overflow-wrap: anywhere; }
.plate .u { color: #D35400; }
.plate-l2 { font-size: 13px; color: #3B4148; margin-top: 6px; }
.plate-np { display: grid; grid-template-columns: auto 1fr; gap: 1px 12px; margin-top: 12px; padding-top: 9px; border-top: 1px solid rgba(0,0,0,.14); font-family: var(--mono); font-size: 11.5px; color: #3B4148; }
.plate-np b { font-weight: 600; color: #1E2227; }
.join-band { border: 1px solid var(--night-line); margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 32px; border-radius: var(--r); background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; }
.join-band::after { content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255,178,30,.3), transparent 65%); pointer-events: none; }
.join-band h3 { font-size: 24px; font-stretch: 110%; margin-bottom: 6px; }
.join-band p { margin: 0; color: var(--night-mute); max-width: 62ch; }
@media (max-width: 960px) { .perks { grid-template-columns: 1fr 1fr; } .models { grid-template-columns: 1fr; } .models-head { grid-template-columns: 1fr; } .brand-try { grid-column: auto; grid-row: auto; } }
@media (max-width: 560px) { .perks { grid-template-columns: 1fr; } .brand-try { grid-template-columns: 1fr; } .join-band { padding: 24px 20px; } }

/* ---------- factories ---------- */
.fac { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.fac h2 { font-size: clamp(32px, 4vw, 50px); font-weight: 800; font-stretch: 112%; letter-spacing: -.035em; line-height: 1.03; margin-bottom: 18px; }
.fac-lede { color: var(--night-mute); font-size: 18px; margin: 0 0 28px; max-width: 54ch; }
.fac-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.fac-steps { list-style: none; margin: 0; padding: 0; counter-reset: f; display: grid; gap: 10px; }
.fac-steps li { counter-increment: f; display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; padding: 18px 20px; border-radius: var(--r); background: var(--night-2); border: 1px solid var(--night-line); }
.fac-steps li::before { content: counter(f, decimal-leading-zero); grid-row: span 2; font-family: var(--mono); color: var(--sun); font-size: 14px; font-weight: 600; padding-top: 2px; }
.fac-steps b { font-size: 16.5px; }
.fac-steps span { color: var(--night-mute); font-size: 14.5px; }
@media (max-width: 900px) { .fac { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- trust / faq ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust > div { padding: 24px; border-top: 3px solid var(--ink); background: var(--surface); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--sh-1); }
.trust h4 { font-size: 17px; margin-bottom: 8px; }
.trust p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 960px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust { grid-template-columns: 1fr; } }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; align-items: start; }
.faq details { background: var(--surface); border-radius: var(--r-sm); box-shadow: var(--sh-1); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--ink), var(--ink)) center/14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center/2px 14px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--ink-2); }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- footer ---------- */
.foot { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 14.5px; color: var(--ink-2); }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot img { height: 36px; width: auto; margin-bottom: 14px; filter: var(--logo-filter); }
.foot h5 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); font-weight: 500; margin-bottom: 10px; }
.foot p { margin: 0; line-height: 1.75; }
.foot a { text-decoration: none; color: var(--ink); }
.foot a:hover { color: var(--brand-ink); }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.theme-btn { background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1/-1; } }

/* ---------- auth screens ---------- */
#auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
.auth-side { position: relative; overflow: hidden; background: var(--night); color: var(--night-ink); padding: 32px 48px 40px; display: flex; flex-direction: column; isolation: isolate; }
.auth-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px); background-size: 44px 44px; opacity: .4; mask-image: linear-gradient(170deg, transparent 25%, #000 95%); -webkit-mask-image: linear-gradient(170deg, transparent 25%, #000 95%); }
.auth-side::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: -160px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,178,30,.28), transparent 65%); }
.auth-side .brand { color: var(--night-ink); }
.auth-side .brand img { filter: invert(1) brightness(1.6); }
.auth-side .brand-pp { border-color: var(--night-line); }
.auth-side h1 { font-size: clamp(34px, 3.8vw, 54px); font-weight: 800; font-stretch: 116%; letter-spacing: -.035em; line-height: 1.02; margin: auto 0 18px; max-width: 13ch; padding-top: 40px; }
.auth-side h1 em { font-style: normal; color: var(--sun); }
.auth-side > p { color: var(--night-mute); font-size: 17px; max-width: 46ch; margin: 0 0 26px; }
.auth-list { list-style: none; margin: 0 0 auto; padding: 0; display: grid; gap: 10px; }
.auth-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--night-ink); }
.auth-list li::before { content: ""; flex-shrink: 0; margin-top: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,178,30,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB21E' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat; }
.auth-side small { margin-top: 32px; color: var(--night-mute); font-size: 13px; }
.auth-main { padding: 28px 48px 40px; display: flex; flex-direction: column; }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14.5px; color: var(--mute); }
.auth-top a { color: var(--ink); font-weight: 600; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14.5px; }
.back:hover { color: var(--ink); }
.auth-box { width: 100%; max-width: 460px; margin: auto; padding: 32px 0; }
.auth-box h2 { font-size: 32px; font-stretch: 110%; letter-spacing: -.03em; margin-bottom: 8px; }
.auth-box > p { color: var(--ink-2); margin: 0 0 26px; }
.auth-form { display: grid; gap: 16px; }
.auth-alt { margin: 22px 0 0; text-align: center; font-size: 14.5px; color: var(--mute); }
.auth-alt a { color: var(--brand-ink); font-weight: 600; }
.pick { display: grid; gap: 12px; }
.pick a { display: grid; grid-template-columns: 52px 1fr auto; gap: 4px 16px; align-items: center; padding: 20px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); transition: all .15s; }
.pick a:hover { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.pick .pk-ic { grid-column: 1; grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.pick .pk-ic .ic { width: 26px; height: 26px; }
.pick b { grid-column: 2; grid-row: 1; font-size: 17px; align-self: end; }
.pick .pk-d { grid-column: 2; grid-row: 2; color: var(--ink-2); font-size: 14.5px; align-self: start; }
.pick .pk-go { grid-row: 1 / span 2; grid-column: 3; color: var(--mute); }
.carry { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-sm); background: var(--good-soft); color: var(--good); font-size: 14px; font-weight: 500; }
.carry .ic { width: 20px; height: 20px; }
@media (max-width: 960px) {
  #auth { grid-template-columns: 1fr; }
  .auth-side { padding: 22px 22px 28px; }
  .auth-side h1 { margin-top: 28px; padding-top: 0; font-size: 32px; }
  .auth-side > p, .auth-list, .auth-side small { display: none; }
  .auth-main { padding: 18px 20px 32px; }
  .auth-box { padding: 20px 0; }
}

/* ---------- partner join wizard ---------- */
#join { min-height: 100vh; min-height: 100dvh; background: var(--bg); }
.wz-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 24px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.wz-top .sp { flex: 1; }
.wz-top .wz-t { font-weight: 600; font-size: 15px; }
.wz-saved { font-size: 13px; color: var(--good); }
.wz-prog { height: 3px; background: var(--line); position: sticky; top: 64px; z-index: 30; }
.wz-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--sun), var(--brand)); transition: width .4s ease; }
.wz { max-width: 1120px; margin: 0 auto; padding: 40px 24px 96px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.wz-rail { position: sticky; top: 100px; list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.wz-rail button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 0; background: none; text-align: left; font-size: 14.5px; color: var(--mute); cursor: pointer; }
.wz-rail button:disabled { cursor: default; opacity: .6; }
.wz-rail button:not(:disabled):hover { background: var(--surface-2); color: var(--ink); }
.wz-rail .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; border: 1.5px solid var(--line-2); font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.wz-rail .done .n { background: var(--good); border-color: var(--good); color: #fff; }
.wz-rail .cur { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--sh-1); }
.wz-rail .cur .n { background: var(--brand); border-color: var(--brand); color: #fff; }
.wz-rail small { display: block; font-size: 12px; font-weight: 400; color: var(--mute); }
.wz-card { background: var(--surface); border-radius: calc(var(--r) + 4px); box-shadow: var(--sh-2); padding: 36px 40px; min-width: 0; }
.wz-step { font-family: var(--mono); font-size: 12.5px; color: var(--brand-ink); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.wz-card h2 { font-size: clamp(26px, 3vw, 36px); font-stretch: 110%; letter-spacing: -.03em; margin: 8px 0 8px; }
.wz-card .lead { color: var(--ink-2); margin: 0 0 28px; font-size: 16.5px; }
.wz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.wz-grid .w2 { grid-column: 1 / -1; }
.wz-grid h3 { grid-column: 1/-1; font-size: 15px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--mute); font-weight: 500; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; }
.wz-grid h3:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.wz-grid fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.wz-grid fieldset legend { font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: 8px; }
.wz-foot { display: flex; align-items: center; gap: 10px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.wz-foot .sp { flex: 1; }
.files { display: grid; gap: 8px; }
.file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px dashed var(--line-2); border-radius: var(--r-sm); flex-wrap: wrap; }
.file b { font-size: 14.5px; font-weight: 600; }
.file .nm { flex: 1; min-width: 0; font-size: 13.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .nm.has { color: var(--good); font-weight: 500; }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file label.btn { cursor: pointer; }
.review { display: grid; gap: 0; border-top: 1px solid var(--line); }
.review section { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review .rh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review .rh b { font-size: 15.5px; }
.review dl { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 5px 16px; margin: 0; font-size: 14.5px; }
.review dt { color: var(--mute); }
.review dd { margin: 0; overflow-wrap: anywhere; }
.consent { display: grid; gap: 12px; margin-top: 22px; }
.done-box { text-align: center; padding: 16px 0 8px; }
.done-tick { width: 76px; height: 76px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; margin: 0 auto 20px; box-shadow: 0 0 0 10px var(--good-soft); }
.done-tick .ic { width: 36px; height: 36px; stroke-width: 3; }
.done-id { display: inline-block; font-family: var(--mono); font-weight: 600; background: var(--surface-2); padding: 7px 14px; border-radius: 999px; margin: 10px 0 24px; }
.done-box ol { text-align: left; max-width: 520px; margin: 0 auto 28px; padding-left: 22px; color: var(--ink-2); line-height: 1.7; }
.wz-mstep { display: none; font-family: var(--mono); font-size: 12.5px; color: var(--mute); }
@media (max-width: 920px) {
  .wz { grid-template-columns: 1fr; padding: 18px 14px 72px; gap: 0; }
  .wz-rail { display: none; }
  .wz-mstep { display: block; }
  .wz-card { padding: 24px 18px; border-radius: var(--r); }
  .wz-grid { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr; }
  .wz-top { padding: 0 14px; }
  .wz-top .wz-t { display: none; }
  .review dl { grid-template-columns: 1fr; } .review dt { margin-top: 6px; }
  .wz-foot .btn { flex: 1 1 auto; }
}

/* ---------- app (dashboard) ---------- */
#app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; background: var(--bg); }
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px 16px; }
.side .brand { padding: 0 8px 18px; }
.side .brand img { height: 26px; }
.side .brand-pp { font-size: 13px; padding-left: 10px; }
.side-ws { margin: 0 4px 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); }
.side-ws span { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-ws i { font-style: normal; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-ink); }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.side-nav a:hover { background: var(--surface-2); color: var(--ink); }
.side-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.side-nav a[aria-current="page"] .ic { color: var(--sun); }
.side-nav .cnt { margin-left: auto; font-family: var(--mono); font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--brand); color: #fff; }
.side-foot { margin-top: auto; display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.side-link { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; border: 0; background: none; color: var(--mute); text-decoration: none; font-size: 14.5px; cursor: pointer; text-align: left; }
.side-link:hover { background: var(--surface-2); color: var(--ink); }
.side-scrim { display: none; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 18px 32px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.app-title { flex: 1; min-width: 0; }
.app-title h1 { font-size: 26px; font-stretch: 108%; letter-spacing: -.03em; }
.app-title p { margin: 2px 0 0; color: var(--mute); font-size: 14px; }
.app-title p:empty { display: none; }
.app-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.app-menu { display: none; }
.app-body { padding: 8px 32px 56px; display: grid; gap: 20px; align-content: start; }
@media (max-width: 900px) {
  #app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 60; inset: 0 auto 0 0; width: 280px; transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--sh-3); }
  #app.nav-open .side { transform: none; }
  #app.nav-open .side-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(8,10,9,.45); }
  .app-menu { display: inline-grid; }
  .app-top { padding: 12px 16px; }
  .app-title h1 { font-size: 21px; }
  .app-title p { display: none; }
  .app-body { padding: 4px 14px 48px; gap: 16px; }
  .app-acts .btn { padding: 9px 13px; min-height: 40px; font-size: 14px; }
  .app-acts .btn .lbl { display: none; }
}

.kpis { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1); padding: 18px 20px; min-width: 0; }
.kpi .k { font-size: 13px; color: var(--mute); font-weight: 500; }
.kpi .v { font-family: var(--mono); font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.04em; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .s { font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.kpi.hl { background: var(--night); color: var(--night-ink); }
.kpi.hl .k, .kpi.hl .s { color: var(--night-mute); }
.kpi.hl .v { color: #4DD394; }
@media (max-width: 1180px) { .kpis { grid-template-columns: repeat(min(var(--n, 4), 3), minmax(0, 1fr)); } }
@media (max-width: 640px) { .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi { padding: 14px; } }

.panel { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1); min-width: 0; overflow: hidden; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-h h3 { font-size: 16.5px; letter-spacing: -.01em; }
.panel-h p { margin: 2px 0 0; color: var(--mute); font-size: 13.5px; }
.panel-b { padding: 20px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 1100px) { .grid2 { grid-template-columns: 1fr; } }

.banner { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); flex-wrap: wrap; border-left: 4px solid var(--line-2); }
.banner.warn { border-left-color: var(--sun); background: color-mix(in srgb, var(--sun-soft) 40%, var(--surface)); }
.banner.bad { border-left-color: var(--bad); background: color-mix(in srgb, var(--bad-soft) 55%, var(--surface)); }
.banner.good { border-left-color: var(--good); }
.banner .grow { flex: 1 1 280px; min-width: 0; }
.banner b { display: block; font-size: 16px; }
.banner span { color: var(--ink-2); font-size: 14.5px; }
.banner .note { display: block; margin-top: 8px; padding: 10px 12px; border-radius: var(--r-xs); background: var(--surface); color: var(--ink); font-size: 14px; }

.tbl { overflow-x: auto; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th, .tbl td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font-size: 12px; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); white-space: nowrap; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl td.n { font-family: var(--mono); font-size: 13.5px; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.tbl .sub { display: block; font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.tbl .acts { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: nowrap; }
.tbl .reject-note { display: block; margin-top: 4px; font-size: 12.5px; color: var(--bad); }
@media (max-width: 760px) {
  .tbl.cards table, .tbl.cards tbody, .tbl.cards tr, .tbl.cards td { display: block; width: 100%; }
  .tbl.cards thead { display: none; }
  .tbl.cards tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .tbl.cards td { padding: 3px 0; border: 0; text-align: left !important; }
  .tbl.cards td[data-l]::before { content: attr(data-l); display: inline-block; min-width: 116px; font-size: 12.5px; color: var(--mute); }
  .tbl.cards td:first-child { padding-bottom: 6px; }
  .tbl.cards .acts { justify-content: flex-start; margin-top: 6px; }
}

.empty { padding: 44px 24px; text-align: center; }
.empty-ic { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.empty-ic .ic { width: 28px; height: 28px; }
.empty b { display: block; font-size: 17px; margin-bottom: 6px; }
.empty p { margin: 0 auto 18px; max-width: 46ch; color: var(--ink-2); font-size: 15px; }

.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.todo li:last-child { border-bottom: 0; }
.todo .ck { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; display: grid; place-items: center; color: #fff; }
.todo .ck .ic { width: 14px; height: 14px; stroke-width: 3.2; }
.todo li.ok .ck { background: var(--good); border-color: var(--good); }
.todo li.ok .t { color: var(--mute); text-decoration: line-through; }
.todo .t { flex: 1; }
.progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.progress i { display: block; height: 100%; background: var(--good); border-radius: 999px; transition: width .4s; }

.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr) auto; gap: 14px; align-items: center; font-size: 14px; }
.bar .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.bar .tr { height: 12px; background: var(--surface-2); border-radius: 999px; position: relative; overflow: hidden; }
.bar .tr i, .bar .tr em { position: absolute; inset: 0 auto 0 0; border-radius: 999px; }
.bar .tr i { background: var(--line-2); }
.bar .tr em { background: var(--good); }
.bar .vl { font-family: var(--mono); font-size: 13px; min-width: 96px; text-align: right; color: var(--ink-2); }
@media (max-width: 640px) { .bar { grid-template-columns: minmax(0, 96px) minmax(0, 1fr) auto; gap: 10px; } .bar .vl { min-width: 70px; } }

.live { display: flex; gap: 8px 24px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 13.5px; color: var(--mute); }
.live b { display: block; font-family: var(--mono); color: var(--ink); font-size: 16px; font-weight: 600; }
.live .good b { color: var(--good); }
.dform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dform .w2 { grid-column: 1 / -1; }
.dform details { grid-column: 1/-1; }
.dform details summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.dform details .dform { margin-top: 14px; }
@media (max-width: 560px) { .dform { grid-template-columns: 1fr; } }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(8,10,9,.42); opacity: 0; transition: opacity .2s; backdrop-filter: blur(2px); }
.drawer-sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(580px, 100%); background: var(--bg); box-shadow: var(--sh-3); overflow-y: auto; padding: 28px 32px 40px; transform: translateX(30px); opacity: 0; transition: transform .22s ease, opacity .22s ease; }
.drawer.wide .drawer-sheet { width: min(760px, 100%); }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer.open .drawer-sheet { transform: none; opacity: 1; }
.drawer-close { position: absolute; top: 18px; right: 18px; }
.dr-h { padding-right: 48px; margin-bottom: 22px; }
.dr-h .k { font-family: var(--mono); font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .05em; }
.dr-h h2 { font-size: 26px; font-stretch: 108%; letter-spacing: -.03em; margin-top: 6px; }
.dr-h p { margin: 6px 0 0; color: var(--ink-2); }
.dr-foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
@media (max-width: 640px) { .drawer-sheet { padding: 20px 16px 32px; } }

/* modal */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.modal-scrim { position: absolute; inset: 0; background: rgba(8,10,9,.5); opacity: 0; transition: opacity .18s; }
.modal-box { position: relative; width: min(460px, 100%); background: var(--surface); border-radius: calc(var(--r) + 2px); box-shadow: var(--sh-3); padding: 26px; transform: scale(.96); opacity: 0; transition: transform .18s, opacity .18s; display: grid; gap: 12px; }
.modal.open .modal-scrim { opacity: 1; }
.modal.open .modal-box { transform: none; opacity: 1; }
.modal-box h3 { font-size: 20px; }
.modal-box p { margin: 0; color: var(--ink-2); }
.modal-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* toast */
#toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); z-index: 150; transform: translate(-50%, 16px); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 11px 18px 11px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14.5px; font-weight: 500; box-shadow: var(--sh-3); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--good); color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0; }
#toast.bad .toast-ic { background: var(--bad); }

/* quotation document */
.qdoc { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1); padding: 28px; }
.qdoc-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 18px; border-bottom: 3px solid var(--ink); margin-bottom: 18px; flex-wrap: wrap; }
.qdoc-head img { height: 30px; width: auto; filter: var(--logo-filter); }
.qdoc-lock { font-weight: 800; font-stretch: 116%; font-size: 15px; letter-spacing: -.01em; }
.qdoc-meta { text-align: right; font-family: var(--mono); font-size: 12.5px; color: var(--mute); }
.qdoc h2 { font-size: 26px; font-stretch: 108%; }
.qdoc .for { color: var(--mute); margin: 4px 0 20px; }
.qdoc h4 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); font-weight: 500; margin: 20px 0 6px; }
.qdoc dl { display: grid; grid-template-columns: 1fr auto; margin: 0; }
.qdoc dt, .qdoc dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.qdoc dd { text-align: right; font-family: var(--mono); font-weight: 600; }
.qdoc dd.big { color: var(--good); font-size: 20px; }
.qdoc-hl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 4px; }
.qdoc-hl div { padding: 14px; border-radius: var(--r-sm); background: var(--surface-2); }
.qdoc-hl span { display: block; font-size: 12px; color: var(--mute); }
.qdoc-hl b { font-family: var(--mono); font-size: 19px; font-weight: 600; }
.qdoc-hl div:last-child { background: var(--good-soft); }
.qdoc-hl div:last-child b { color: var(--good); }
.callout { padding: 12px 14px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn); font-size: 14px; margin-top: 14px; }

/* admin filters */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--mute); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.tabs .c { font-family: var(--mono); font-size: 12px; margin-left: 4px; opacity: .7; }
.search { max-width: 280px; min-height: 40px; padding: 8px 12px; font-size: 14.5px; }
select.f.sm { min-height: 36px; padding: 6px 32px 6px 10px; font-size: 14px; width: auto; }

/* loading skeleton */
.skel { height: 120px; border-radius: var(--r); background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* page entrance */
.view.enter > :not(.side):not(.side-scrim) { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; } .hero-copy > :nth-child(3) { animation-delay: .12s; } .hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-fig { animation: rise .8s .15s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.app-body > * { animation: rise .35s cubic-bezier(.2,.7,.2,1) both; }
.app-body > :nth-child(2) { animation-delay: .04s; } .app-body > :nth-child(3) { animation-delay: .08s; } .app-body > :nth-child(4) { animation-delay: .12s; }

/* print: only the quotation */
@media print {
  body * { visibility: hidden !important; }
  #drawer, #drawer .qdoc, #drawer .qdoc * { visibility: visible !important; }
  #drawer { position: absolute; inset: 0; }
  .drawer-sheet { position: absolute; inset: 0; width: 100% !important; box-shadow: none; transform: none !important; opacity: 1 !important; padding: 0; background: #fff; overflow: visible; }
  .drawer-scrim, .drawer-close, .dr-foot, .no-print { display: none !important; }
  .qdoc { box-shadow: none; padding: 0; }
  .qdoc-head img { filter: none; }
}

/* keep toasts clear of drawer action bars */
body.no-scroll #toast { bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); }

/* document upload rows */
.file-main { flex: 1; min-width: 0; }
.file .ferr { display: block; margin-top: 4px; }
.file .ferr:empty { display: none; }
.up-bar { height: 6px; margin-top: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.up-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sun), var(--brand)); transition: width .15s; }
label.btn.busy { opacity: .55; pointer-events: none; }
.review dd a { color: var(--brand-ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.review dd a:hover { text-decoration: underline; }
.review dd a .ic { width: 15px; height: 15px; }

/* ---- polish pass from the visual sweep ---- */
.tbl b.num, .tbl td.n { white-space: nowrap; }
.tbl th { white-space: nowrap; }
/* dark mode: selected nav item stays dark with an orange marker instead of a cream pill */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .side-nav a[aria-current="page"] { background: var(--surface-3); color: var(--ink); box-shadow: inset 3px 0 0 var(--brand); } }
:root[data-theme="dark"] .side-nav a[aria-current="page"] { background: var(--surface-3); color: var(--ink); box-shadow: inset 3px 0 0 var(--brand); }
@media (max-width: 640px) {
  .kpis > .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex-shrink: 0; }
  .qdoc { padding: 18px 16px; }
  .qdoc-head { gap: 10px; }
  .qdoc-meta { text-align: left; }
  .qdoc-hl { grid-template-columns: 1fr; gap: 8px; }
  .qdoc-hl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; }
  .qdoc-hl b { white-space: nowrap; }
  .qdoc dt { padding-right: 12px; }
}
@media (max-width: 760px) {
  .tbl.cards td[data-l] { position: relative; padding-left: 120px !important; min-height: 24px; }
  .tbl.cards td[data-l]::before { position: absolute; left: 0; top: 3px; min-width: 0; width: 112px; }
}
