:root {
  --paper: #F6F3EC;
  --surface-raised: #FFFFFF;
  --surface-sunken: #FBF9F4;
  --ink: #1C1F23;
  --ink-soft: #3E434A;
  --ink-muted: #575D66;
  --line: #E2DCCF;
  --line-strong: #C9C1AE;
  --kask: #FFC21A;
  --on-kask: #1C1F23;
  --kask-soft: #FFF6D6;
  --grafit: #1C1F23;
  --on-grafit: #F6F3EC;
  --on-grafit-muted: #B8BCC2;
  --success: #1F7A4D;
  --success-soft: #EAF4EE;
  --success-ink: #155C39;
  --success-line: #BFDCCB;
  --warning: #B45309;
  --warning-soft: #FFF6E0;
  --danger: #B3261E;
  --danger-soft: #FDECEA;
  --focus-ring: #1C1F23;
  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: Inter, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-cta: 0 2px 0 #1C1F23;
  --shadow-card: 0 24px 48px -24px rgba(28, 31, 35, 0.25);
  --bg: var(--paper);
  --surface: var(--surface-raised);
  --muted: var(--ink-muted);
  --navy: var(--ink);
  --navy-ink: var(--on-grafit);
  --sky: var(--kask-soft);
  --amber: var(--kask);
  --amber-soft: var(--kask-soft);
  --ok: var(--success);
  --warn: var(--warning);
  --err: var(--danger);
  --radius: var(--radius-md);
  --shadow: none;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15171A;
    --surface-raised: #1C1F23;
    --surface-sunken: #24282D;
    --ink: #F6F3EC;
    --ink-soft: #E4E1D9;
    --ink-muted: #B8BCC2;
    --line: #33383E;
    --line-strong: #4A5058;
    --kask-soft: #3A3214;
    --grafit: #24282D;
    --success: #4CC38A;
    --success-soft: #16301F;
    --success-ink: #4CC38A;
    --success-line: #2A4A36;
    --warning: #F0A44B;
    --warning-soft: #33270F;
    --danger: #F2867E;
    --danger-soft: #3A1714;
    --focus-ring: #FFC21A;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
}
h1, h2, h3 { font-family: var(--display); }
a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
button, input, textarea { font: inherit; color: inherit; }
button, a.button {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  display: inline-block;
  border: 1.5px solid var(--ink);
  background: var(--surface-raised);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  min-height: 44px;
  font-weight: 600;
}
button.primary, a.button.primary { background: var(--kask); color: var(--on-kask); border-color: var(--kask); font-weight: 600; box-shadow: var(--shadow-cta); }
button:disabled { opacity: 0.55; cursor: default; }
input[type="text"], input[type="password"], input[type="email"], textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  min-height: 44px;
}
textarea { resize: vertical; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; display: block; }
.brand b { font-weight: 700; }
.brand span { font-weight: 500; }
.brand .tld { color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.small { font-size: 13px; }
.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.error-text { color: var(--danger); }
.num { font-family: var(--mono); font-weight: 500; white-space: nowrap; }

/* ---------- landing ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.site-head nav { display: none; gap: 28px; font-size: 15px; font-weight: 500; }
.site-head nav a { text-decoration: none; }
.cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 24px;
  background: var(--kask); color: var(--on-kask);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-cta);
  font-size: 17px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.cta svg { flex: none; }
.ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--ink); border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap;
}
.hero { padding-block: 32px 36px; display: grid; gap: 36px; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; }
.hero .cta-row { display: flex; flex-direction: column; gap: 18px; }
.chip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ink-muted);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--kask); }
.hero h1 { margin: 0; font-size: 36px; line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
.lead { margin: 0; font-size: 17px; color: var(--ink-soft); }
.hero .see { align-self: center; font-size: 15px; font-weight: 500; }
.checks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks svg { flex: none; color: var(--success); }
.sample { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.sample-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px dashed var(--line-strong); }
.overline { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.sample-head .title { font-family: var(--display); font-size: 17px; font-weight: 700; }
.tag { padding: 4px 8px; background: var(--grafit); color: var(--kask); border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; white-space: nowrap; }
.sample h3 { margin: 0; padding: 14px 16px 4px; font-family: var(--sans); }
.sample-groups h3:first-child { padding-top: 10px; }
.sample dl { margin: 0; }
.sample dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 16px; font-size: 14px; }
.sample dl div:nth-child(even) { background: var(--surface-sunken); }
.sample dd { margin: 0; font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.sample-note { margin: 10px 0 0; padding: 12px 16px; background: var(--paper); font-size: 13px; color: var(--ink-muted); }
.band { padding: 36px 0; }
.band.raised { background: var(--surface-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band h2 { margin: 0 0 18px; font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; }
.faq h2 { margin-bottom: 12px; }
.band .sub { margin: -12px 0 18px; color: var(--ink-muted); font-size: 15px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps li { display: flex; gap: 14px; }
.steps .n { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--grafit); color: var(--kask); font-family: var(--mono); font-weight: 500; }
.steps li:last-child .n { background: var(--kask); color: var(--on-kask); }
.steps strong { display: block; font-size: 17px; font-weight: 600; }
.steps span.muted { display: block; font-size: 15px; }
.tiles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tiles-grid div { padding: 14px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.tiles-grid strong { display: block; font-weight: 600; }
.tiles-grid span { display: block; font-size: 13px; color: var(--ink-muted); }
.tiles-grid .house-only { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.compare { display: flex; flex-direction: column; gap: 10px; }
.compare > div { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.compare strong { display: block; font-weight: 600; }
.compare span.muted { display: block; font-size: 14px; }
.compare .num { font-size: 15px; }
.compare .ours { border: 2px solid var(--ink); background: var(--kask-soft); }
.compare .ours strong { font-weight: 700; }
.compare .ours span.muted { color: var(--ink-soft); }
.price-card { padding: 20px; background: var(--grafit); color: var(--on-grafit); border-radius: var(--radius-xl); display: flex; flex-direction: column; gap: 12px; max-width: 460px; }
.price-card .row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.price-card .row-top span:first-child { font-weight: 600; font-size: 17px; }
.price-card .row-top span:last-child { font-size: 13px; color: var(--on-grafit-muted); }
.price-card .price { font-family: var(--display); font-size: 44px; font-weight: 700; line-height: 1; color: var(--kask); }
.price-card ul { margin: 0; padding: 0 0 0 18px; font-size: 15px; color: #E4E1D9; display: grid; gap: 4px; }
.price-cards { display: grid; gap: 14px; }
@media (min-width: 900px) { .price-cards { grid-template-columns: repeat(2, minmax(0, 460px)); } }
.price-card.light { background: var(--surface-raised); color: var(--ink); border: 1px solid var(--line); }
.price-card.light .row-top span:last-child { color: var(--ink-muted); }
.price-card.light .price { color: var(--ink); }
.price-card.light ul { color: var(--ink-soft); }
.price-card.light .cta-dark { border-color: var(--ink); color: var(--ink); }
.cta-dark { box-sizing: content-box; display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1.5px solid var(--on-grafit); border-radius: var(--radius-md); color: var(--on-grafit); font-weight: 600; text-decoration: none; }
.fine { margin: 14px 0 0; font-size: 13px; color: var(--ink-muted); }
.access { padding: 22px 20px; display: grid; gap: 12px; max-width: 460px; }
.access h2 { margin: 0; font-size: 20px; }
.access p { margin: 0; }
.access form { display: grid; gap: 10px; }
.access button.primary { min-height: 56px; font-size: 17px; border-radius: var(--radius-lg); }
.callout { padding: 18px 20px; border-radius: var(--radius-xl); background: var(--warning-soft); border: 1px solid var(--line); }
.callout h3 { margin: 0 0 6px; font-size: 18px; color: var(--warning); }
.callout p { margin: 0; font-size: 15px; }
.band.faq { border-bottom: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--mono); font-size: 20px; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 16px; font-size: 15px; color: var(--ink-soft); }
.final { padding: 40px 0; background: var(--grafit); color: var(--on-grafit); }
.final .wrap { display: flex; flex-direction: column; gap: 18px; }
.final h2 { margin: 0; font-size: 30px; line-height: 1.1; letter-spacing: -0.01em; }
.final .cta { box-shadow: none; }
.final p { margin: 0; font-size: 14px; color: var(--on-grafit-muted); text-align: center; }
.site-foot { padding: 28px 0 40px; background: #15171A; color: #B8BCC2; font-size: 14px; }
.site-foot .wrap { display: flex; flex-direction: column; gap: 18px; }
.site-foot .brand { color: #F6F3EC; font-size: 16px; letter-spacing: 0; }
.site-foot .brand img { width: 28px; height: 28px; }
.site-foot .brand .tld { color: #B8BCC2; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-foot nav a { color: #E4E1D9; min-height: 44px; display: inline-flex; align-items: center; }
.site-foot p { margin: 0; font-size: 13px; }
.legal-doc { max-width: 760px; padding: 32px 0 48px; line-height: 1.55; }
.legal-doc h1 { font-size: 30px; margin: 0 0 4px; letter-spacing: -0.02em; }
.legal-doc h2 { font-size: 18px; margin: 28px 0 8px; }
.legal-doc li { margin: 6px 0; }
.fill { background: var(--kask-soft); padding: 0 4px; border-radius: 4px; }
@media (min-width: 900px) {
  .wrap { padding: 0 32px; }
  .site-head nav { display: flex; }
  .hero { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-block: 72px; }
  .hero-copy { gap: 22px; }
  .chip { padding: 6px 12px; font-size: 14px; }
  .hero h1 { font-size: clamp(40px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -0.025em; }
  .hero .lead { max-width: 540px; font-size: 19px; }
  .hero .cta-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
  .hero .cta { min-height: 60px; padding: 0 28px; font-size: 18px; }
  .hero .see { display: inline-flex; align-items: center; align-self: auto; min-height: 44px; padding: 0 8px; font-size: 16px; white-space: nowrap; }
  .sample { box-shadow: var(--shadow-card); }
  .band { padding: 72px 0; }
  .band h2 { font-size: 36px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps li { flex-direction: column; }
  .tiles-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .final h2 { font-size: 44px; }
  .final .wrap { flex-direction: row; align-items: center; justify-content: space-between; }
  .final .cta { flex: none; }
}
@media (max-width: 899px) {
  body:has(.hero) .site-head .wrap { min-height: 74px; }
  body:has(.hero) .site-head .ghost { box-sizing: content-box; }
  #jak h2 { margin-bottom: 20px; }
  .two-col .why { margin: 36px -20px -36px; padding: 36px 20px; background: var(--surface-raised); border-block: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- app ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.credit { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.meter { width: 140px; height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.meter > div { height: 100%; background: var(--amber); }
.layout { display: grid; grid-template-columns: 280px 1fr; min-height: calc(100vh - 57px); }
.sidebar { border-right: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.sidebar h3 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.new-project { display: flex; gap: 6px; }
.project-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.project-list li button { width: 100%; text-align: left; border: 1px solid transparent; background: transparent; padding: 9px 10px; display: grid; gap: 2px; }
.project-list li button:hover { background: var(--surface); border-color: var(--line); }
.project-list li button.active { background: var(--surface); border-color: var(--navy); }
.project-list .pname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { padding: 20px 24px 40px; max-width: 980px; width: 100%; }
.main.single { margin: 0 auto; }
[hidden] { display: none !important; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.phead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
.phead h1 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--line); color: var(--ink); }
.badge.running { background: var(--amber-soft); color: var(--warn); }
.badge.idle { background: #dcefe3; color: var(--ok); }
.badge.terminated, .badge.error { background: #f6dcda; color: var(--err); }
@media (prefers-color-scheme: dark) { .badge.idle { background: #1f3a2a; } .badge.terminated, .badge.error { background: #3d2220; } }
.section { padding: 16px 18px; margin-bottom: 16px; }
.stats table { border-collapse: collapse; width: 100%; font-size: 13px; }
.stats th, .stats td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; white-space: nowrap; }
.stats td.n, .stats th.n { text-align: right; font-variant-numeric: tabular-nums; }
.alert { background: var(--amber-soft); border-left: 3px solid var(--warn); border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; font-size: 14px; }
.section h2 { font-size: 15px; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.drop { display: block; cursor: pointer; border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); transition: border-color 0.15s, background 0.15s; }
.drop.over { border-color: var(--navy); background: var(--sky); }
.files { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.files li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 6px 8px; border-radius: 6px; background: var(--bg); font-size: 14px; }
.files li .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files li button { padding: 2px 8px; font-size: 12px; }
.progress { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.progress > div { height: 100%; background: var(--navy); width: 0; transition: width 0.2s; }
.outputs a.dl, #outputs a.dl { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--amber-soft); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.log { display: grid; gap: 8px; max-height: 70vh; overflow-y: auto; padding-right: 4px; }
.ev { font-size: 14px; }
details.section > summary { cursor: pointer; }
.ev.tool { font-size: 13px; color: var(--muted); padding: 3px 8px; border-left: 2px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev.tool.err { color: var(--err); border-color: var(--err); }
.ev.msg { background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.ev.user { background: var(--sky); border-radius: 8px; padding: 10px 12px; }
.ev.sys { font-size: 13px; color: var(--muted); }
.ev.grade { font-size: 13px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); }
.ev .who { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.md p { margin: 0 0 8px; }
.md p:last-child { margin-bottom: 0; }
.md h3, .md h4 { margin: 10px 0 6px; font-size: 15px; }
.md ul, .md ol { margin: 0 0 8px; padding-left: 20px; }
.md code { font-family: var(--mono); font-size: 12.5px; background: var(--line); padding: 1px 4px; border-radius: 4px; }
.md table { border-collapse: collapse; margin: 6px 0 10px; font-size: 13px; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line); padding: 4px 8px; text-align: left; }
.md th { background: var(--sky); }
.working { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--warn); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--line); }
  .main { padding: 16px 16px 40px; }
  .credit .meter { display: none; }
}
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
.tiles > div { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.tiles strong { font-size: 20px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }
.limits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.limit { display: grid; gap: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.limit strong { font-variant-numeric: tabular-nums; }
.limit .meter { width: 100%; }
.limit.full .meter > div { background: var(--err); }
@media (max-width: 760px) { .limits { grid-template-columns: 1fr; } }
.ok-box { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.ok-box h2 { color: var(--ok); }
.ok-box p { margin: 6px 0; }
.field { display: grid; gap: 4px; margin-bottom: 10px; font-size: 14px; }
.field input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.confirm { border: 1px solid var(--navy); border-radius: 8px; padding: 12px 14px; background: var(--bg); }
.confirm ul { margin: 6px 0 12px; padding-left: 18px; display: grid; gap: 4px; }
.consent { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 12px; font-size: 14px; line-height: 1.4; }
.consent input { margin-top: 3px; flex: none; }

/* ---------- order panel ---------- */
.topbar { background: var(--paper); }
.main { max-width: 760px; }
.phead h1 { font-size: 26px; letter-spacing: -0.01em; }
.section { padding: 20px; border-radius: var(--radius-xl); }
.step > .overline { margin: 0 0 4px; }
.step > h2 { font-family: var(--display); font-size: 22px; line-height: 1.2; justify-content: flex-start; margin: 0 0 6px; }
.step > p.muted { margin: 0 0 16px; font-size: 15px; }
.drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 24px 16px; border: 2px dashed var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface-raised); color: var(--ink);
}
.drop strong { font-size: 17px; }
.drop .small { color: var(--ink-muted); }
.drop.over { border-color: var(--ink); background: var(--kask-soft); }
.files { gap: 8px; }
.files li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ftype { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--grafit); color: var(--kask); font-family: var(--mono); font-size: 12px; font-weight: 500; }
.fmeta { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fmeta .fname { font-weight: 600; font-size: 15px; }
.progress { display: block; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--kask); transition: width 0.2s; }
.icon-btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink-muted); border-radius: var(--radius-md); }
.icon-btn:hover { background: var(--paper); color: var(--danger); }
.limits { margin: 12px 0 0; }
.limit { background: var(--paper); border-color: var(--line); border-radius: var(--radius-md); }
.limit strong { font-family: var(--mono); font-weight: 500; }
.state { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-lg); font-size: 14px; }
.state svg { flex: none; margin-top: 1px; }
.state strong { display: block; font-size: 15px; }
.state.success { background: var(--success-soft); }
.state.success svg, .state.success strong { color: var(--success); }
.state.warning { background: var(--warning-soft); }
.state.warning svg, .state.warning strong { color: var(--warning); }
.field input { min-height: 48px; background: var(--surface-raised); border-color: var(--line-strong); border-radius: var(--radius-md); font-size: 16px; }
.paybar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
button.big { min-height: 56px; padding: 0 22px; font-size: 17px; border-radius: var(--radius-lg); }
button.primary[aria-disabled="true"] { background: #ECE6D8; border-color: #ECE6D8; color: var(--ink-muted); box-shadow: none; }
@media (prefers-color-scheme: dark) { button.primary[aria-disabled="true"] { background: var(--surface-sunken); border-color: var(--surface-sunken); } }
.confirm { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); padding: 14px 16px; }
.consents { border: 0; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; }
.consents legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.consent { margin: 0; font-size: 14px; }
.consent input { width: 20px; height: 20px; accent-color: var(--ink); }
.ok-box { border-color: var(--line); background: var(--success-soft); }
.ok-box h2 { display: flex; align-items: center; gap: 8px; justify-content: flex-start; color: var(--success); font-family: var(--display); font-size: 20px; }
.working-box { background: var(--grafit); color: var(--on-grafit); border-color: var(--grafit); }
.working-box h2 { font-family: var(--display); font-size: 22px; margin: 10px 0 8px; }
.working-box p { color: var(--on-grafit-muted); }
.working-box p strong { color: var(--kask); }
.working-box .tag { background: var(--kask); color: var(--on-kask); }
.outputs a.dl, #outputs a.dl { background: var(--surface-raised); border-radius: var(--radius-lg); }
#outputs a.dl.newest { background: var(--kask); border-color: var(--kask); color: var(--on-kask); box-shadow: var(--shadow-cta); min-height: 56px; }
#outputs a.dl.newest .muted { color: var(--on-kask); }
.dl-name { display: inline-flex; align-items: center; gap: 8px; }
.alert { background: var(--warning-soft); border-left: 3px solid var(--warning); border-radius: var(--radius-md); }
@media (max-width: 520px) { .topbar .credit { display: none; } }
.alert { display: flex; gap: 10px; align-items: flex-start; }
.alert svg { flex: none; color: var(--warning); margin-top: 1px; }
.order-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: -8px 0 18px; font-size: 14px; color: var(--ink-muted); }
.order-meta .num { color: var(--ink); }
.run-progress { margin: 14px 0 6px; display: grid; gap: 6px; }
.run-progress .row-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--on-grafit-muted); }
.run-progress .bar { height: 10px; background: #2A2E33; border-radius: 99px; overflow: hidden; }
.run-progress .bar span { display: block; height: 100%; background: var(--kask); }
.not-found { max-width: 640px; padding-block: 56px 72px; display: grid; gap: 16px; }
.not-found h1 { margin: 0; font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.not-found .code-404 { margin: 0; font-family: var(--mono); font-size: 64px; font-weight: 500; line-height: 1; letter-spacing: 0; text-transform: none; color: var(--line-strong); }
@media (max-width: 640px) {
  .not-found-actions { display: grid; gap: 10px; }
  .not-found-actions .cta, .not-found-actions .ghost { width: 100%; box-sizing: border-box; min-height: 52px; }
}
@media (max-width: 760px) {
  .limits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .limit { padding: 8px; }
  .limit strong { font-size: 13px; }
  .limit .small { font-size: 12px; }
}
.login-page { max-width: 520px; padding-block: 48px 72px; }
.login-page .access { max-width: none; }
.login-page h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }

/* ---------- order wizard ---------- */
.wizard { display: grid; gap: 14px; padding-bottom: 110px; }
.wizard-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px 0; }
.wizard-count { text-align: center; font-size: 14px; font-weight: 600; }
.wizard-bars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 8px; }
.wizard-bars span { height: 4px; border-radius: 2px; background: var(--line-strong); }
.wizard-bars span.on { background: var(--ink); }
.wizard .step { margin: 0; }
.step > h1 { font-family: var(--display); font-size: 26px; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 8px; }
.choice { border: 0; margin: 18px 0 0; padding: 0; }
.choice legend { padding: 0 0 8px; font-size: 15px; font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-align: left; box-shadow: none; }
.scope-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.scope-tile .num { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.tile[aria-pressed="true"] { background: var(--grafit); border-color: var(--grafit); color: var(--on-grafit); box-shadow: inset 0 -3px 0 var(--kask); }
.summary { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); padding: 12px 14px; margin: 4px 0 14px; display: grid; gap: 4px; }
.summary p { margin: 0; }
.summary-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.summary-top .num, .due .num { font-family: var(--mono); font-weight: 500; }
.stepbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(760px, 100%); z-index: 5; display: flex; align-items: center; gap: 14px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--surface-raised); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgb(28 31 35 / 0.06); }
@media (min-width: 761px) { .stepbar { border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; } }
.stepbar .due { flex: none; display: grid; }
.stepbar .due .num { font-size: 18px; }
.stepbar > button, .stepbar > a { flex: 1; justify-content: center; }
@media (prefers-color-scheme: dark) { .tile[aria-pressed="true"] { background: #F6F3EC; border-color: #F6F3EC; color: #1C1F23; } }
#outputs a.dl.newest { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 12px 16px; }
#outputs a.dl .muted { min-width: 0; overflow-wrap: anywhere; }

.result { display: grid; gap: 12px; margin: 14px 0 6px; }
.result-screen { display: grid; gap: 12px; }
.result-screen .result { margin: 0; }
.result-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.badge-ok { margin-left: auto; padding: 4px 8px; border-radius: var(--radius-sm); background: var(--success-soft); color: var(--success); font-size: 12px; font-weight: 600; }
.result-title { margin: 0; font-family: var(--display); font-size: 24px; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
.cost-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--grafit); color: var(--on-grafit); }
.cost-label, .cost-meta { font-size: 12px; color: var(--on-grafit-muted); }
.cost-meta { text-align: right; }
.cost-value { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--kask); }
.stage-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 2px; }
.stage-tabs::-webkit-scrollbar { display: none; }
.stage-tabs [role="tab"] { flex: none; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; box-shadow: none; cursor: pointer; }
.stage-tabs [role="tab"][aria-selected="true"] { background: var(--grafit); border-color: var(--grafit); color: var(--on-grafit); }
.stage-cost { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 14px; color: var(--ink-soft); }
.result-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.result-row { display: grid; gap: 2px; padding: 10px 14px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface-raised); }
.result-row.flag { border-color: #E8C65A; background: var(--kask-soft); }
.result-line { display: flex; justify-content: space-between; gap: 12px; }
.result-name { min-width: 0; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.result-qty { flex: none; max-width: 45%; font-family: var(--mono); font-size: 15px; text-align: right; }
.result-note { font-size: 13px; color: var(--ink-muted); }
.to-check summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.to-check ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-soft); }
.ok-box .result p { margin: 0; }
.result-actions { position: sticky; bottom: 12px; z-index: 2; }
.result-actions > .button + .button { margin-top: 8px; }
#outputs.result-actions a.dl:not(.newest) { min-height: 44px; padding: 8px 14px; }
.result-actions > .button { display: flex; justify-content: center; min-height: 52px; align-items: center; }
@media (prefers-color-scheme: dark) { .stage-tabs [role="tab"][aria-selected="true"] { background: #F6F3EC; border-color: #F6F3EC; color: #1C1F23; } }
#outputs.result-actions a.dl .muted { display: none; }
#outputs.result-actions a.dl.newest { align-items: center; justify-content: center; }
#outputs.result-actions a.dl:not(.newest) { justify-content: center; background: var(--surface-raised); border: 1.5px solid var(--ink); }

.packs, .pack-page { max-width: 640px; padding-block: 40px 72px; display: grid; gap: 16px; }
.packs h1, .pack-page h1 { margin: 0; font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; }
.pack-options { display: grid; gap: 10px; }
.pack-option { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; padding: 16px; border-radius: 14px; }
.pack-main, .pack-cost { display: flex; flex-direction: column; gap: 2px; }
.pack-cost { align-items: flex-end; }
.pack-option .pack-name { font-weight: 700; font-size: 17px; }
.pack-option .pack-price { font-weight: 700; }
.pack-option .pack-unit, .pack-option .pack-save { font-size: 13px; font-weight: 400; color: var(--ink-muted); }
.pack-option[aria-pressed="true"] .pack-unit, .pack-option[aria-pressed="true"] .pack-save { color: var(--on-grafit-muted); }
.pack-facts { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-soft); }
.pack-buy { display: grid; gap: 12px; }
.pack-buy h2 { margin: 0; font-size: 18px; }
.pack-total { display: flex; justify-content: space-between; align-items: baseline; }
.pack-total strong { font-size: 22px; }
.pack-code { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 16px; border-radius: var(--radius-lg); background: var(--grafit); color: var(--on-grafit); }
.pack-code .muted { grid-column: 1 / -1; color: var(--on-grafit-muted); }
.pack-code strong { font-family: var(--mono); font-size: 26px; font-weight: 500; letter-spacing: 0.04em; color: var(--kask); }
.pack-code button { min-height: 40px; background: transparent; color: var(--on-grafit); border-color: var(--on-grafit); }
.pack-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pack-stats > div { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); }
.pack-stats strong { font-size: 18px; }
.pack-steps { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--ink-soft); }
.pack-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pack-history li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pack-box { margin-top: 8px; display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--success-soft); }
.pack-box-top, .pack-box-row { display: flex; justify-content: space-between; gap: 12px; }
.pack-link { box-sizing: content-box; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; margin-top: 14px; padding: 4px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); max-width: 460px; }
.pack-link .num { font-family: var(--mono); white-space: nowrap; }
.pack-option .pack-price { font-family: var(--display); font-size: 24px; }
.pack-option .pack-save { padding: 2px 6px; border-radius: 4px; background: var(--success-soft); color: var(--success); font-weight: 600; font-size: 12px; }
.pack-option[aria-pressed="true"], .pack-option[aria-pressed="true"]:hover { background: var(--surface-raised); color: var(--ink); border: 2px solid var(--ink); box-shadow: inset 0 -4px 0 var(--kask); }
.pack-option[aria-pressed="true"] .pack-unit { color: var(--ink-muted); }
.pack-option[aria-pressed="true"] .pack-save { color: var(--success); }
@media (prefers-color-scheme: dark) { .pack-option[aria-pressed="true"] { background: var(--surface-raised); color: var(--ink); border-color: var(--ink); } }
.pack-facts { list-style: none; padding: 0; }
.pack-facts li { position: relative; padding-left: 24px; }
.pack-facts li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }

.only-wide { display: none; }
.head-cta { min-height: 46px; padding: 0 18px; font-size: 15px; }
.steps li:last-child .n { background: var(--kask); color: var(--on-kask); }
.price-card .row-top span:only-child { color: inherit; }
.price-cards .price-card .row-top span.badge { color: var(--on-kask); font-size: 13px; }
.price-card .badge { padding: 4px 8px; border-radius: var(--radius-sm); background: var(--kask); color: var(--on-kask); font-size: 13px; font-weight: 600; }
@media (min-width: 900px) {
  .only-phone { display: none !important; }
  .only-wide { display: revert; }
  .head-cta.only-wide { display: inline-flex; }
  .price-card.only-wide { display: flex; }
  .badge.only-wide { display: inline-block; }
  #cennik { background: var(--grafit); color: var(--on-grafit); border-color: transparent; }
  #cennik h2 { color: var(--on-grafit); font-size: 40px; }
  #cennik .fine { color: var(--on-grafit-muted); }
  .price-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .price-cards .price-card { max-width: none; padding: 28px; gap: 14px; border-radius: 18px; }
  .price-cards .price-card .row-top span:first-child { font-size: 19px; }
  .price-cards .price-card .price { font-size: 56px; }
  .price-cards .price-card.shell { background: var(--paper); color: var(--ink); border: 3px solid var(--kask); }
  .price-cards .price-card.shell .price { color: var(--ink); }
  .price-cards .price-card.shell ul { color: var(--ink-soft); }
  .price-cards .price-card.shell .cta-dark { background: var(--kask); border: 0; color: var(--on-kask); box-shadow: var(--shadow-cta); }
  .price-cards .price-card.house, .price-cards .price-card.packs-card { background: #24282D; color: var(--on-grafit); border: 1px solid #3A3F45; }
  .price-cards .price-card.house .price, .price-cards .price-card.packs-card .price { color: var(--kask); }
  .price-cards .price-card.house ul, .price-cards .price-card.packs-card ul { color: #E4E1D9; }
  .price-cards .price-card.house .cta-dark, .price-cards .price-card.packs-card .cta-dark { border-color: var(--on-grafit); color: var(--on-grafit); }
  .price-cards .price-card .cta-dark { min-height: 54px; border-radius: var(--radius-lg); }
}

.stepper, .order-aside, .back-wide, .rows-head, .row-wide, .tab-cost, .pack-buy-wide, .pack-how { display: none; }
.wizard-main { display: grid; gap: 14px; }
@media (min-width: 900px) {
  .main:has(.wizard), .main:has(.result-screen), .main:has(.working-box) { max-width: 1200px; }
  .wizard { padding-bottom: 40px; }
  .wizard-head { display: flex; justify-content: center; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .wizard-head > :not(.stepper) { display: none; }
  .stepper { display: flex; gap: 12px; align-items: center; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--ink-muted); }
  .stepper li { display: flex; align-items: center; gap: 8px; }
  .stepper li + li::before { content: ""; width: 48px; height: 2px; background: var(--line-strong); margin-right: 4px; }
  .stepper .n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-strong); font-family: var(--mono); font-size: 13px; }
  .stepper li.on { color: var(--ink); }
  .stepper li.on .n { background: var(--kask); border-color: var(--kask); color: var(--on-kask); }
  .stepper li.done .n { background: var(--grafit); border-color: var(--grafit); color: var(--on-grafit); }
  .wizard-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
  .order-aside { display: block; position: sticky; top: 24px; }
  .aside-card { display: grid; gap: 10px; }
  .aside-card .overline { margin: 0; }
  .aside-top { display: flex; justify-content: space-between; gap: 12px; font-size: 17px; }
  .aside-checks { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; }
  .aside-checks li { position: relative; padding-left: 22px; }
  .aside-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
  .wizard .step.card { background: transparent; border: 0; padding: 0; box-shadow: none; }
  .wizard .step h1 { font-size: 36px; }
  .stepbar { position: static; left: auto; transform: none; width: auto; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; justify-content: flex-end; }
  .stepbar .due { display: none; }
  .stepbar > button, .stepbar > a { flex: none; }
  .stepbar #next, .stepbar .cta { min-width: 220px; }
  .back-wide { min-height: 46px; padding: 0 18px; }
  .wizard .step .summary { display: none; }
  .back-wide { display: inline-flex; align-items: center; justify-content: center; margin-right: auto; }
  .wizard .tiles:not(.scopes) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wizard #fileList { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .result-screen { grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; }
  .result-screen > .result-head { grid-column: 1; grid-row: 1; }
  .result-screen > #outputs { grid-column: 2; grid-row: 1 / span 2; position: static; display: flex; gap: 8px; align-items: flex-start; }
  .result-screen > #outputs a.dl { margin: 0; min-height: 46px; padding: 0 18px; }
  .result-screen > #result { grid-column: 1 / -1; }
  .result-screen > :not(.result-head):not(#outputs):not(#result) { grid-column: 1 / -1; }
  .result { grid-template-columns: 340px minmax(0, 1fr); column-gap: 32px; align-items: start; }
  .result > * { grid-column: 1; }
  .result > .result-title { grid-column: 1 / -1; }
  .result > .stage-panel { grid-column: 2; grid-row: 2 / span 6; }
  .result-title { font-size: 32px; }
  .stage-tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 4px; }
  .stage-tabs [role="tab"] { display: flex; justify-content: space-between; align-items: center; width: 100%; border-radius: var(--radius-md); border: 0; background: transparent; padding: 0 14px; }
  .stage-tabs [role="tab"][aria-selected="true"] { background: var(--grafit); color: var(--on-grafit); }
  .tab-cost { display: inline; font-family: var(--mono); font-size: 13px; font-weight: 500; }
  .stage-panel { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 16px 12px; }
  .rows-head, .row-wide { display: grid; grid-template-columns: minmax(0, 2.4fr) 1fr 0.6fr 1.1fr 1fr; gap: 12px; align-items: center; }
  .rows-head { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.04em; }
  .rows-head span:not(:first-child), .row-wide span:not(:first-child) { text-align: right; }
  .result-rows { gap: 0; }
  .result-row { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 10px 0; }
  .result-row.flag { background: var(--kask-soft); padding-inline: 8px; }
  .result-row .result-line, .result-row .basis { display: none; }
  .rw-name { font-weight: 600; font-size: 14px; }
  .rw-name small { display: block; font-weight: 500; font-size: 12px; color: var(--warning); }
  .row-wide .num { font-family: var(--mono); font-size: 14px; }
  .rw-order { font-weight: 600; }


  .packs { max-width: 1100px; }
  .packs h1 { font-size: 44px; max-width: 640px; }
  .pack-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
  .pack-option { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 28px; border-radius: 18px; }
  .pack-option .pack-price { font-size: 44px; }
  .pack-main, .pack-cost { display: contents; }
  .pack-option .pack-price { order: 1; }
  .pack-option .pack-unit { order: 2; }
  .pack-option .pack-save { order: 3; }
  .pack-option .pack-buy-wide { order: 4; }
  .pack-option .pack-buy-wide { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 50px; margin-top: 12px; border: 1.5px solid var(--ink); border-radius: var(--radius-md); font-weight: 600; }
  .pack-option[aria-pressed="true"] .pack-buy-wide { background: var(--kask); border-color: var(--kask); color: var(--on-kask); box-shadow: var(--shadow-cta); }
  .pack-option[aria-pressed="true"] { border: 3px solid var(--kask); box-shadow: none; }
  .pack-how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 8px 0 0; padding: 24px; list-style: none; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
  .pack-how li { display: grid; gap: 6px; align-content: start; }
  .pack-how .n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--grafit); color: var(--kask); font-family: var(--mono); }
  .pack-how span:last-child { color: var(--ink-muted); font-size: 14px; }
  .pack-buy { max-width: 640px; }
}
@media (prefers-color-scheme: dark) and (min-width: 900px) {
  .stage-tabs [role="tab"][aria-selected="true"] { background: #F6F3EC; color: #1C1F23; }
}

body.counting { background: var(--grafit); color: var(--on-grafit); }
body.counting .topbar { background: var(--grafit); border-color: #33383E; color: var(--on-grafit); }
body.counting .topbar .brand img { content: url("/sygnet-negatyw.svg"); }
body.counting .topbar .brand { color: var(--on-grafit); }
body.counting .topbar .tld, body.counting .credit { color: var(--on-grafit-muted); }
body.counting #logout { background: transparent; color: var(--on-grafit); border-color: var(--on-grafit); }
body.counting #main .phead, body.counting #main > details { display: none; }
.working-box { display: grid; gap: 20px; }
.working-main { display: grid; gap: 14px; }
.working-box .tag { justify-self: start; background: var(--kask); color: var(--on-kask); }
.working-box h2 { margin: 0; font-family: var(--display); font-size: 34px; line-height: 1.05; letter-spacing: -0.02em; color: var(--on-grafit); }
.working-sub { margin: 0; color: var(--on-grafit-muted); font-size: 16px; }
.working-sub strong { color: var(--kask); }
.working-box .run-progress { color: var(--on-grafit); }
.working-box .run-progress .num { color: var(--kask); }
.working-box .bar { background: #33383E; }
.phases { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 14px; font-size: 16px; }
.phases li { display: flex; align-items: center; gap: 12px; color: #8C9198; }
.phases li.done { color: #E4E1D9; }
.phases li.on { color: #FFFFFF; font-weight: 600; }
.phases .mark { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #4A5058; box-sizing: border-box; }
.phases li.done .mark { border: 0; background: #1F7A4D 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 16px no-repeat; }
.phases li.on .mark { border-color: #33383E; border-top-color: var(--kask); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.working-now { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid #3A3F45; border-radius: var(--radius-lg); background: #24282D; }
.working-now .muted { color: var(--on-grafit-muted); }
.working-now strong { color: var(--kask); font-family: var(--mono); font-weight: 500; font-size: 15px; }
.working-foot { margin: 8px 0 0; color: var(--on-grafit-muted); font-size: 14px; }
@media (min-width: 900px) {
  .working-box { grid-template-columns: minmax(0, 1fr) 366px; gap: 48px; align-items: start; padding: 0; }
  .working-box h2 { font-size: 44px; }
  .working-main { gap: 24px; }
  .working-sub { font-size: 18px; }
  .working-box .run-progress { margin: 0; gap: 8px; }
  .working-box .run-progress .row-top { font-size: 14px; }
  .working-box .bar { height: 12px; border-radius: 6px; background: #2A2E33; }
  .phases { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 6px 32px; margin: 0; }
  .phases li { min-height: 44px; }
  .phases .mark { width: 22px; height: 22px; margin: 2px; }
  .phases li.done .mark { margin: 0; background-size: 14px; }
  .working-foot { margin: 0; }
  body.counting .topbar { padding-block: 16px; border-bottom: 0; }
  body.counting .topbar .brand { gap: 10px; font-size: 19px; letter-spacing: 0; }
  body.counting .topbar .tld { display: none; }
  body.counting .top-note { margin-left: auto; }
  body.counting .top-note .only-wide { padding: 4px 10px; background: #2A2E33; font-weight: 400; }
}

.pay-grid { display: grid; gap: 14px; }
.checkout-embed { margin-top: 16px; }
.checkout-embed:has(iframe) { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #F6F3EC; }
.consents:has(input:disabled) { opacity: 0.75; }
@media (max-width: 899px) {
  .stepbar.on-checkout { display: none; }
  .wizard:has(.on-checkout) { padding-bottom: 24px; }
}
button.link { min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; text-decoration: underline; font-weight: 600; cursor: pointer; }
@media (min-width: 900px) {
  .pay-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.rw-name small.rw-stage { color: var(--ink-muted); }
#outputs.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#outputs.result-actions a.dl.newest { grid-column: 1 / -1; }
#outputs.result-actions a.dl, #outputs.result-actions .share { margin: 0; }
#outputs .share { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1.5px solid var(--ink); border-radius: var(--radius-lg); background: var(--surface-raised); color: var(--ink); font: inherit; font-weight: 600; box-shadow: none; }
.result-actions > .button { flex: 1; }
@media (min-width: 900px) {
  .result-screen > #outputs { display: flex; }
  .result-screen > #outputs a.dl.newest { order: 3; }
  .result-screen > #outputs .share { min-height: 46px; padding: 0 18px; }
}
.price-cards .price-card.shell .cta-dark { background: var(--kask); border: 0; color: var(--on-kask); }
.pack-badge { grid-column: 1 / -1; justify-self: start; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--kask); color: var(--on-kask); }
@media (min-width: 900px) {
  .pack-badge.only-wide { display: inline-block; }
  .topbar .credit { display: none; }
  .help-link.only-wide { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; color: inherit; text-decoration: none; margin-right: 12px; }
}
.wizard .step.card { background: transparent; border: 0; padding: 0; box-shadow: none; }
.head-mark { justify-self: end; display: inline-flex; }
.head-mark img, img.head-mark { width: 28px; height: 28px; }
.back-home { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -12px; color: inherit; }
.site-head .wrap:has(.back-home:not(.only-phone)), .site-head .wrap:has(.back-home.only-phone) { justify-content: flex-start; gap: 8px; }
.site-head .wrap .ghost { margin-left: auto; }
.login-page { display: flex; flex-direction: column; min-height: calc(100vh - 65px); padding-block: 28px 24px; }
.login-page .access { padding: 0; }
.login-foot { margin: auto 0 0; }
@media (max-width: 899px) {
  body:has(.wizard, .result-screen) .topbar { display: none; }
  body:has(main.packs) .site-head .head-link { display: none; }
}
@media (min-width: 900px) {
  .head-mark { display: none; }
}
.head-link { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; color: inherit; }
.pack-bar { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px -20px 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--surface-raised); border-top: 1px solid var(--line); }
.pack-bar > span { display: grid; }
.pack-bar strong { font-size: 18px; }
.pack-bar .primary { min-height: 52px; flex: 0 1 60%; border-radius: var(--radius-lg); font-size: 17px; }
.pack-bar[hidden] { display: none; }
@media (min-width: 900px) {
  .checks:has(.only-wide) { flex-direction: row; flex-wrap: wrap; gap: 10px 24px; margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
  .checks:has(.only-wide) li { gap: 8px; }
  .checks .only-wide { display: inline; }
  .checks:has(.only-wide) svg { width: 18px; height: 18px; stroke-width: 2.4; }
  .pack-fine.only-wide { display: block; }
}

html:not(.review) [data-review] { display: none !important; }
html.review [data-live] { display: none !important; }
.sample-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sample-table th { padding: 12px 22px 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); text-align: left; }
.sample-table th + th, .sample-table td + td { text-align: right; }
.sample-table td { padding: 10px 22px; }
.sample-table td + td { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.sample-table tbody tr:nth-child(even) { background: var(--surface-sunken); }
.trust { padding: 0 0 36px; }
.trust-grid { display: grid; gap: 24px; }
.trust-card { padding: 22px 20px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 16px; }
.trust-card p { margin: 0; font-size: 15px; }
.trust-card hr { width: 100%; height: 1px; margin: 0; border: 0; background: var(--line); }
.engineer { display: flex; gap: 12px; align-items: center; }
.engineer .photo { flex: none; width: 48px; height: 48px; border-radius: 999px; background: #E9E3D6; display: grid; place-items: center; font-size: 11px; color: var(--ink-muted); }
.engineer strong { display: block; font-weight: 600; }
.engineer div span { display: block; font-size: 13px; color: var(--ink-muted); }
.promise { display: flex; gap: 10px; }
.promise svg { flex: none; margin-top: 2px; }
@media (min-width: 900px) {
  .sample-groups.only-phone, .trust-card hr.only-phone, .trust-card .promise.only-phone { display: none; }
  .sample-table.only-wide { display: table; }
  .trust { padding: 72px 0; }
  .trust-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
  .trust-card { padding: 28px; border-radius: 18px; gap: 14px; }
  .trust-card.only-wide { display: flex; gap: 16px; }
  .engineer { gap: 14px; }
  .engineer .photo { width: 56px; height: 56px; }
  .engineer div span { font-size: 14px; }
  .promise { gap: 12px; }
  html.review .site-foot .wrap { display: grid; grid-template-columns: minmax(0, 420px) auto; justify-content: space-between; gap: 10px 48px; }
  html.review .site-foot .brand { grid-column: 1; }
  html.review .site-foot nav { grid-column: 2; grid-row: 1 / span 3; gap: 4px 24px; align-content: flex-start; }
  html.review .site-foot p { grid-column: 1; }
  html.review .site-foot .foot-copy, html.review .site-foot .brand .tld { display: none; }
}
.rw-order small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--ink-muted); }
.rw-name small.rw-check { font-size: 13px; color: #7A4A06; }
.check-note { display: none; margin: 0; padding: 14px 16px; background: var(--kask-soft); border: 1px solid #E8C65A; border-radius: 12px; font-size: 14px; }
.top-note:empty { display: none; }
.top-note .only-wide { padding: 4px 10px; border-radius: 6px; background: #EAF4EE; color: #155C39; font-size: 13px; font-weight: 600; }
body.counting .top-note .only-wide { background: transparent; color: var(--on-grafit-muted); padding: 0; font-weight: 500; }
.topbar:has(.top-note:not(:empty)) .help-link { display: none !important; }
.counted-now { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: #24282D; border: 1px solid #3A3F45; }
.counted-now > span { font-size: 12px; color: var(--on-grafit-muted); }
.counted-now div { display: flex; justify-content: space-between; gap: 12px; }
.counted-now .num { color: var(--kask); font-family: var(--mono); }
.working-now.counted { gap: 10px; }
.working-now.counted div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #3A3F45; font-size: 15px; }
.working-now.counted .num { color: var(--kask); font-family: var(--mono); font-weight: 500; }
.found-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 14px; }
.found-list li { display: flex; align-items: center; gap: 6px; }
.found-list svg { width: 16px; height: 16px; }
.postcode-field input { font-family: var(--mono); max-width: 100%; }
.postcode-note { margin-top: -6px; }
.consent.invoice { align-items: center; }

@media (min-width: 900px) {
  .check-note { display: block; }
  .pay-grid .invoice { grid-column: 1 / -1; order: 3; }
  .scope-tile { flex-direction: row; justify-content: flex-start; gap: 6px; }
  .scope-tile .num::before { content: "· "; }
}
@media (min-width: 900px) {
  .stage-tabs [role="tab"] { min-height: 48px; border: 1.5px solid var(--line-strong); background: var(--surface-raised); border-radius: 10px; font-size: 15px; }
  .stage-tabs [role="tab"][aria-selected="true"] { border-color: var(--grafit); }
  .stage-tabs { gap: 6px; }
}
.relink { display: flex; flex-direction: column; gap: 14px; }
.relink .field input { min-height: 48px; }
.relink-actions { display: grid; gap: 10px; margin-top: 24px; }
.relink-actions .ghost { justify-content: center; }
html.review .login-foot[data-live] + .login-foot, html.review .login-page .login-foot[data-review] { margin-top: auto; }
.trust-card.only-wide, .working-now.only-wide { display: none; }
@media (max-width: 899px) {
  body:not(:has(.hero)) .brand .tld { display: none; }
}
@media (min-width: 900px) {
  .trust-card.only-wide { display: flex; }
  .working-now.only-wide { display: grid; }
  html.review .consent-note { display: none; }
}
@media (min-width: 900px) {
  .wrap { max-width: 1264px; }
  .site-head .wrap { min-height: 74px; }
  .band h2 { font-size: 40px; line-height: 1.5; letter-spacing: -0.015em; margin: 0 0 36px; }
  .band .sub { margin: 0 0 24px; }
  .two-col { gap: 48px; }
  .two-col h2 { margin-bottom: 8px; }
  .two-col > div + div h2 { margin-bottom: 24px; }
  .steps .n { width: 44px; height: 44px; border-radius: 10px; font-size: 18px; }
  .steps li { gap: 12px; }
  .steps strong { font-size: 20px; }
  .tiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tiles-grid > div { padding: 16px; border-radius: 12px; }
  .compare { gap: 12px; }
  .compare > div { padding: 18px 20px; border-radius: 12px; }
  #cennik .wrap { display: flex; flex-direction: column; gap: 32px; }
  #cennik h2 { margin: 0; }
  .price-cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important; gap: 20px; }
  .price-cards .price-card { padding: 28px; border-radius: 18px; gap: 14px; max-width: none; }
  .price-cards .price-card .row-top span:first-child { font-size: 19px; }
  .price-cards .price-card .price { font-size: 56px; }
  .faq .wrap { max-width: 944px; }
  .faq h2 { margin-bottom: 16px; }
  .final { padding: 72px 0; }
  .final h2 { max-width: 640px; }
  .site-foot { padding: 40px 0 48px; }
}
@media (min-width: 900px) {
  .steps li > div { display: flex; flex-direction: column; gap: 12px; }
  .steps span.muted { font-size: 17px; }
  .band .sub { font-size: 17px; }
  .tiles-grid span { font-size: 14px; }
  .compare > div { gap: 16px; background: var(--surface-raised); }
  .compare .ours { background: var(--kask-soft); }
  .compare span.muted { font-size: 15px; }
  .compare .num { font-size: 17px; }
  .price-cards .price-card ul { padding-left: 20px; font-size: 17px; }
  .price-cards .price-card .cta-dark { margin-top: 6px; }
  #cennik .fine { margin: 0; font-size: 14px; }
  .trust-card p { font-size: 17px; }
  .promise svg { width: 22px; height: 22px; }
  .faq summary { min-height: 64px; gap: 16px; padding: 14px 0; font-size: 18px; }
  .faq summary::after { font-size: 22px; }
  .faq p { max-width: 720px; margin-bottom: 20px; font-size: 17px; }
  .final .cta { min-height: 60px; padding: 0 28px; font-size: 18px; }
  .site-foot .brand { font-size: 17px; }
  .site-foot p { font-size: 14px; }
  body:has(.hero) .site-head .wrap { flex-wrap: wrap; justify-content: flex-start; gap: 12px 32px; }
  body:has(.hero) .site-head .brand { gap: 10px; font-size: 20px; }
  body:has(.hero) .site-head .brand img { width: 36px; height: 36px; }
  body:has(.hero) .site-head nav { flex-wrap: wrap; gap: 4px 24px; margin-left: auto; }
  body:has(.hero) .site-head nav a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (min-width: 900px) {
  body:has(.hero), body:has(main.packs) { font-size: 17px; }
  .sample { box-shadow: 0 24px 48px -24px rgba(28, 31, 35, 0.25); border-radius: 18px; }
  .sample-head { padding: 18px 22px; }
  .sample-head .title { font-size: 20px; }
  .sample-head .tag { padding: 5px 10px; font-size: 13px; }
  .sample-note { margin: 0; padding: 14px 22px; font-size: 14px; }
  .hero { padding-block: 72px 64px; }
}
.top-note .tag { padding: 4px 8px; border-radius: 6px; background: #2A2E33; color: #B8BCC2; font-size: 12px; font-weight: 400; }
@media (max-width: 899px) {
  html.review body.counting .working-box { min-height: calc(100vh - 110px); }
  html.review body.counting .working-main { display: flex; flex-direction: column; min-height: 100%; }
  html.review body.counting .working-foot { margin-top: auto; font-size: 13px; color: #B8BCC2; text-align: center; }
  html.review .not-found:has(.relink) { display: flex; flex-direction: column; min-height: calc(100vh - 65px); padding-bottom: 26px; }
  html.review .not-found .relink { flex: 1; }
  html.review .relink-actions { margin-top: auto; }
}
@media (max-width: 899px) {
  .working-box h2 { font-size: 30px; line-height: 1.08; letter-spacing: -0.01em; }
  .packs h1, .not-found h1, .login-page h1 { font-size: 28px; line-height: 1.1; letter-spacing: -0.01em; }
}
@media (min-width: 900px) {
  .working-box h2 { font-size: 48px; }
}
.top-steps { display: none; }
@media (min-width: 900px) {
  .topbar { padding: 14px max(32px, calc((100% - 1200px) / 2)); gap: 16px 40px; }
  .top-steps:not(:empty) { display: flex; flex: 1; justify-content: center; }
  .topbar:has(.top-steps:not(:empty)) .credit { display: none; }
  .wizard-head:has(.stepper) { display: none; }
  .top-steps .stepper { display: flex; }
  .result .cost-card { flex-direction: column; align-items: flex-start; gap: 0; padding: 20px; border-radius: 16px; }
  .result .cost-card .cost-value { font-size: 30px; }
  .result .cost-meta { text-align: left; font-size: 13px; }
  .wizard .state.found { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 16px 20px; }
  .wizard .state.found > svg { display: none; }
  .wizard .state.found > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
  .wizard .state.found .found-list { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; font-size: 16px; }
}
.price-card .row-top { gap: 8px; }
.price-card .row-top span { white-space: nowrap; }
@media (min-width: 900px) {
  .main:has(.wizard), .main:has(.result-screen), .main:has(.working-box) { max-width: 1264px; padding: 36px 32px 64px; }
  .postcode-field input { max-width: 320px; }
  .wizard .tiles .tile { min-height: 52px; }
}
html:not(.review) .pack-access { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.relink .error-text:empty, .pack-access .error-text:empty { display: none; }
.contact textarea { resize: vertical; }
.contact-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.human-check { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 1000; }
.partner-code { margin: 12px 0; font-size: 14px; }
.partner-code summary { cursor: pointer; color: var(--ink-soft); min-height: 44px; display: flex; align-items: center; }
.partner-code .code-row { display: flex; gap: 8px; align-items: end; }
.partner-code .code-row .field { flex: 1; margin: 0; }
.partner-code .code-row button { min-height: 40px; }
.partner-code.applied { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.contact .error-text:empty { display: none; }
body.demo .scope-tile .num, body.demo #asideDue, body.demo .stepbar .due, body.demo .summary-top .num { display: none; }
@media (max-width: 899px) {
  body:not(:has(.hero)) .site-head .brand { font-size: 16px; letter-spacing: 0; }
  body:not(:has(.hero)) .site-head .brand img { width: 28px; height: 28px; }
}
.login-page label { font-size: 14px; font-weight: 600; color: var(--ink); }
.login-page input[type="email"], .login-page input[type="password"] { min-height: 48px; padding: 0 14px; border-width: 1.5px; }
.panel-entry { line-height: 1.45; padding-block: 36px; }
.panel-entry .access { gap: 16px; }
.panel-entry .access > p { color: var(--ink-soft); }
.panel-entry form { gap: 6px; margin-top: 8px; }
.panel-entry form button { margin-top: 18px; }
@media (max-width: 899px) {
  .packs { gap: 14px; padding-block: 22px 0; line-height: 1.45; }
  .packs > .overline { margin: 0; }
  .packs h1 { margin: -8px 0 0; }
  .packs .lead { margin: -6px 0 0; font-size: 15px; }
  .pack-options { gap: 14px; }
  .pack-facts { margin-top: 4px; gap: 8px; font-size: 14px; }
  .pack-facts li:last-child { margin-top: 6px; padding-left: 0; font-size: 12px; color: var(--ink-muted); }
  .pack-facts li:last-child::before { content: none; }
  .pack-bar { gap: 14px; margin-top: 0; padding: 12px 20px calc(26px + env(safe-area-inset-bottom)); }
  .pack-bar .muted.small { font-size: 12px; }
  .pack-bar .primary { flex: 1; min-height: 56px; }
}
@media (max-width: 899px) {
  .main:has(.wizard) { padding: 0; }
  .wizard { gap: 0; line-height: 1.45; }
  .wizard:has(.choice), .wizard:has(.consents) { line-height: 1.4; }
  .wizard-head { grid-template-columns: 44px 1fr 36px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); }
  .wizard-head .icon-btn { color: var(--ink); }
  .wizard-head .head-mark { margin-right: 8px; }
  .wizard-body { padding: 22px 20px; }
  .wizard:has(.choice) .wizard-body, .wizard:has(.consents) .wizard-body { padding-top: 18px; }
  .wizard .step > h1 { margin-bottom: 6px; }
  .wizard .step:has(#drop) > h1 { font-size: 28px; }
  .drop { gap: 8px; padding: 18px; border-radius: 14px; }
  .drop svg { width: 28px; height: 28px; }
  .drop strong { font-size: 16px; font-weight: 600; }
  .files { margin-top: 16px; }
  .files:empty { display: none; }
  .files li { padding: 12px 14px; }
  .ftype { width: 36px; height: 44px; place-items: end center; padding-bottom: 6px; border-radius: 6px; font-family: var(--sans); font-size: 10px; font-weight: 600; }
  .fmeta { gap: 0; }
  .fmeta .fname { font-size: 14px; }
  .files .icon-btn svg { width: 18px; height: 18px; }
  .wizard .state.found { display: block; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--success-line); }
  .wizard .state.found > svg { display: none; }
  .wizard .state.found strong { font-size: 16px; font-weight: 600; color: var(--success-ink); }
  .wizard .found-list { gap: 6px 10px; }
  .choice { margin-top: 16px; }
  .choice legend { font-size: 14px; }
  .choice .tiles { margin-bottom: 0; }
  .choice .tile { padding: 8px 10px; font-size: 14px; }
  .scope-tile { gap: 0; }
  .postcode-field { gap: 6px; margin: 16px 0 0; }
  .postcode-field > span { font-weight: 600; }
  .wizard .step > .postcode-note { margin: 6px 0 0; font-size: 13px; }
  .stepbar { padding: 12px 20px calc(26px + env(safe-area-inset-bottom)); }
  .stepbar .due .small { font-size: 12px; }
  .stepbar > .big { min-height: 54px; font-size: 16px; }
  .wizard:has(.consents) .stepbar > .big { font-size: 17px; }
}
@media (max-width: 899px) {
  .main:has(.result-screen) { padding: 0; }
  .result-screen { gap: 0; line-height: 1.4; }
  .result-head { padding: 12px 20px; border-bottom: 1px solid var(--line); }
  .result-head .badge-ok { color: var(--success-ink); }
  .result-screen > #result { padding: 16px 20px 0; }
  .result-title { line-height: 1.1; }
  .stage-tabs { margin: -2px; }
  .result-screen > #outputs.result-actions { bottom: 0; margin-top: 12px; padding: 12px 20px calc(26px + env(safe-area-inset-bottom)); gap: 10px 8px; background: var(--surface-raised); border-top: 1px solid var(--line); }
  #outputs.result-actions a.dl.newest { font-size: 17px; }
  #outputs.result-actions a.dl:not(.newest), #outputs.result-actions .share { min-height: 48px; border-radius: var(--radius-md); font-size: 15px; }
  #outputs.result-actions a.dl:not(.newest) svg { display: none; }
}
@media (min-width: 900px) {
  .working-now.counted { gap: 4px; padding: 22px; border-color: #33383E; border-radius: 16px; }
  .working-now.counted .overline { margin-bottom: 8px; color: var(--on-grafit-muted); }
  .working-now.counted div { padding: 10px 0; border-color: #33383E; }
  .working-now.counted .num { font-weight: 400; }
  .main:has(.working-box) { padding-top: 48px; }
}
.cookie-banner {
  position: fixed; inset: auto 0 0; margin: 0 auto;
  width: 100%; max-width: 560px; max-height: calc(100% - 24px); box-sizing: border-box;
  padding: 22px 20px calc(28px + env(safe-area-inset-bottom));
  border: 0; border-radius: 20px 20px 0 0;
  background: var(--surface-raised); color: var(--ink);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
}
.cookie-banner[open] { display: flex; flex-direction: column; gap: 14px; }
.cookie-banner:focus { outline: none; }
.cookie-banner::backdrop { background: rgba(28, 31, 35, 0.35); }
.cookie-banner h2 { margin: 0; font-size: 22px; }
.cookie-banner p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.cookie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cookie-actions button { min-height: 50px; border-radius: var(--radius-lg); font-size: 16px; }
@media (min-width: 900px) {
  .cookie-banner { bottom: 24px; border-radius: var(--radius-xl); }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.partner-hero { padding: 32px 20px 8px; display: grid; gap: 16px; }
.partner-hero h1 { margin: 0; font-family: var(--display); font-size: clamp(30px, 6vw, 48px); letter-spacing: -0.02em; line-height: 1.1; }
.partner-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.partner-example { padding: 18px 20px; display: grid; gap: 10px; max-width: 460px; }
.partner-example p { margin: 0; }
.partner-example-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.partner-section { padding: 24px 20px; }
.partner-section h2 { font-family: var(--display); font-size: 24px; margin: 0 0 14px; letter-spacing: -0.01em; }
.partner-steps { margin: 0; padding-left: 22px; display: grid; gap: 12px; list-style: decimal; }
.partner-steps li::marker { font-weight: 700; }
.partner-steps li { display: grid; gap: 2px; }
.partner-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.partner-tile { padding: 16px 18px; display: grid; gap: 6px; align-content: start; }
.partner-tile p { margin: 0; }
.partner-big { font-family: var(--display); font-size: 26px; letter-spacing: -0.01em; }
.partner-rules { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.partner-forms { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.partner-forms .access { max-width: none; }
.partner-faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.partner-faq summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.partner-faq p { margin: 0 0 12px; }
.partner-who { display: inline-flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.partner-panel { padding: 24px 20px 48px; }
.partner-panel h1 { font-family: var(--display); font-size: 28px; margin: 0 0 4px; }
.partner-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 16px 0; }
.partner-table { overflow-x: auto; margin-bottom: 12px; }
.partner-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.partner-table th, .partner-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.partner-table th { font-weight: 600; color: var(--ink-muted); font-size: 13px; }
.partner-copy span { display: inline-flex; gap: 12px; }
.partner-new-code { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.partner-new-code .field { margin: 0; min-width: 0; }
.partner-new-code input { width: 100%; box-sizing: border-box; }
.partner-new-code .error-text { grid-column: 1 / -1; margin: 0; }
