@font-face { font-family: Geist; src: url("fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #F3F6FC; --surface: #FFFFFF; --ink: #0F1B3D; --soft: #3A4668; --muted: #5E6A8A;
  --line: #DCE4F5; --line2: #C3CFEA; --chip: #EAF0FB; --viewer: #F6F9FE;
  --accent: #2251F5; --accent-hover: #1A41D6; --accent-soft: #E5ECFF; --accent-ink: #1A3BC4;
  --pink: #FF4FA3; --pink-soft: #FFE6F2; --pink-ink: #C2186B;
  --over: #FF4FA3; --thin: #7C5CFF; --bridge: #19C3A6; --bed: #FFB020;
  --ok: #2251F5; --ok-ink: #1A3BC4; --ok-soft: #E5ECFF;
  --warn-ink: #8A5A00; --warn-soft: #FFF1D6; --bad: #FF4FA3; --bad-ink: #C2186B; --bad-soft: #FFE6F2;
  --sh-1: 0 1px 0 rgba(15,27,61,.03);
  --sh-2: 0 24px 60px rgba(34,81,245,.12), 0 2px 8px rgba(15,27,61,.04);
  --r-card: 14px; --r-ctl: 10px; --r-pill: 999px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --sans: Geist, Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: Geist, Inter, system-ui, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --grid: linear-gradient(rgba(34,81,245,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(34,81,245,.07) 1px, transparent 1px);
  --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480'%3E%3Cpath d='M40 34v12M34 40h12M360 274v12M354 280h12' stroke='%232251F5' stroke-opacity='.55' stroke-width='1.2' fill='none'/%3E%3Ccircle cx='280' cy='80' r='1.4' fill='%232251F5' fill-opacity='.6'/%3E%3Ccircle cx='120' cy='400' r='1.4' fill='%23FF4FA3'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic .pk { stroke: var(--pink); }
.ic .pkf { fill: var(--pink); stroke: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Technical labels: small spaced capitals in the mono face */
.label, .eyebrow, .kick, .field, .tabs a, .seg button, .sev, .kicker, .foot, .ai-tag, .hint, .demo-hint, .llm-pill, table.diff th, table.batch th, .stat .n, .viewer-sub, .live, .ver, .steps span {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; }

/* Header */
header { position: sticky; top: 0; z-index: 8; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 12px 28px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--accent); }
.logo { display: block; flex: none; overflow: visible; }
.logo .lg { transition: transform .35s var(--ease); animation: lay .55s var(--ease) backwards; animation-delay: calc(var(--i) * 150ms + 200ms); }
.brand:hover .logo .lg { transform: translateY(calc((1 - var(--i)) * 2.5px)); }
.logo.printing .lg { animation: print 2.1s ease-in-out infinite backwards; animation-delay: calc(var(--i) * 300ms); }
@keyframes lay { from { opacity: 0; transform: translateY(-9px); } }
@keyframes print { 0% { opacity: 0; transform: translateY(-7px); } 22%, 78% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.brand b { font: 600 15px var(--head); letter-spacing: .16em; text-transform: uppercase; display: block; line-height: 1.2; }
.brand small { font: 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chip-file { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: 500 12px var(--mono); color: var(--accent-ink); }
.chip-file span.m { color: var(--muted); }
.spacer { flex: 1 1 0; }
.controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 10px; font-weight: 500; color: var(--muted); }
.field select { min-height: 40px; padding: 0 12px; border: 1px solid var(--line2); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink); font: 500 14px var(--sans); text-transform: none; letter-spacing: 0; transition: border-color .15s, box-shadow .15s; }
.field select:hover { border-color: var(--accent); }
.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
/* Printer, material and nozzle. One tinted group so it reads as a setting that matters, wherever it sits. */
.setup { display: grid; grid-template-columns: auto auto auto; align-items: end; justify-content: start; gap: 10px; padding: 8px 10px 10px; border: 1px solid #C9D6FF; border-radius: 12px; background: var(--accent-soft); }
.setup .field { color: var(--accent-ink); }
.setup select { border-color: #AFC1FF; }
/* Inside the upload box on the start page: full width, as step one */
.setup-slot .setup { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); padding: 12px; }
.setup-slot select { width: 100%; min-height: 44px; }
/* "Other printer": the build size boxes */
.custom-size { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--accent-ink); }
.custom-size[hidden] { display: none; }
.custom-size .cs-label { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-right: 4px; }
.custom-size input { width: 84px; min-height: 40px; padding: 0 10px; border: 1px solid #AFC1FF; border-radius: var(--r-ctl); background: var(--surface); color: var(--ink); font: 500 14px var(--sans); }
.custom-size input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px #C9D6FF; }
.setup-slot .custom-size input { min-height: 44px; flex: 1 1 70px; }
.step { margin: 0; display: flex; align-items: center; gap: 10px; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.step b { font-weight: 500; color: var(--pink-ink); }
.batch-empty .setup-slot { width: 100%; max-width: 560px; text-align: left; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border-radius: var(--r-ctl); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), background .15s, border-color .15s, color .15s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: #fff; border: 0; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.secondary { background: var(--surface); color: var(--accent-ink); border: 1px solid var(--line2); }
.btn.secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn.go::after, .action .btn.primary:not(#btn-cancel)::after { content: "→"; font-size: 15px; transition: transform .2s var(--ease); }
.btn.go:hover::after, .action .btn.primary:not(#btn-cancel):hover::after { transform: translateX(3px); }
.llm-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; font-weight: 500; background: var(--surface); color: var(--soft); }
.llm-pill i { width: 7px; height: 7px; border-radius: 50%; background: #B4BED6; }
.llm-pill.on i { background: var(--pink); animation: pulse 2.4s infinite; }
.llm-pill.warn i { background: #FFB020; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,79,163,.5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(255,79,163,0); } }

/* Layout */
main { width: 100%; max-width: 1600px; margin: 0 auto; padding: 20px 28px 40px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
#app:not([hidden]) { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.col-view { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.col-side { flex: 1 1 380px; min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
h2 { margin: 0; font: 500 16px var(--head); letter-spacing: -.01em; }
.label { font-size: 10.5px; font-weight: 500; color: var(--muted); }
.note { font-size: 12px; color: var(--muted); line-height: 1.45; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.kick { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 11px; font-weight: 500; color: var(--accent); }
.kick::before, .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); flex: none; }

/* Landing */
body { background-image: var(--grid); background-size: 40px 40px; background-position: -1px -1px; }
main.landing { background-image: var(--plus); background-size: 480px 480px; }
main.landing { display: block; max-width: 1240px; padding-top: 8px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; align-items: center; padding: 48px 0 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; color: var(--accent); margin-bottom: 20px; }
.hero h1 { margin: 0 0 20px; font: 400 62px/1.02 var(--head); letter-spacing: -.045em; color: var(--accent); }
.hero h1 em { font-style: normal; color: var(--ink); }
.hero h1 i, h2 i { font-style: normal; color: var(--pink); }
.lead { margin: 0 0 28px; font-size: 17px; line-height: 1.6; color: var(--soft); max-width: 520px; }
.drop { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px dashed var(--line2); border-radius: var(--r-card); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.drop:hover { border-color: var(--accent); }
.drop.over { border-color: var(--accent); border-style: solid; box-shadow: 0 0 0 5px var(--accent-soft); }
.drop-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.drop-ic { width: 48px; height: 48px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: var(--viewer); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.drop-txt { flex: 1 1 180px; display: flex; flex-direction: column; gap: 2px; }
.drop-txt b { font-size: 15px; font-weight: 500; }
.samples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* The three promises under the upload box */
.promises { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; }
.promises li { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--soft); }
.promises li[hidden] { display: none; }
.promises svg { flex: none; margin-top: 1px; color: var(--accent); }
.promises b { display: block; font-weight: 500; color: var(--ink); }
.promise-more { display: inline-block; margin-top: 12px; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid var(--line2); padding-bottom: 2px; }
.promise-more:hover { color: var(--pink-ink); border-color: var(--pink); }
/* What is happening to the file that was just chosen. The line and the step panel move as one: into the upload
   box on the start page, and into the "another file" window when a report is open. */
.progress { display: contents; }
.busy { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.progress .busy { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--soft); }
.busy .linkish { align-self: center; margin-left: auto; }
.busy-hint { flex: 1 1 100%; margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
/* "Upload another file": beside the name of the open file, and again at the end of the report on phones,
   where the header has scrolled away */
.another { flex: none; }
.another-end { display: none; }
.swap-back { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15,27,61,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s both; }
.swap-card { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-2); animation: rise .35s var(--ease) both; }
.swap-card:focus { outline: none; }
.swap-card .kick { margin: 0; }
.swap-name { margin: 0; font: 500 15px var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.swap-slot { display: flex; flex-direction: column; gap: 12px; }
.swap-card > .note { margin: 0; padding-top: 12px; border-top: 1px dashed var(--line2); }
/* The step-by-step panel for a model that has to be prepared before it can be checked */
.prep { border: 1px solid #C9D6FF; border-radius: 14px; background: var(--accent-soft); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.prep[hidden] { display: none; }
.prep-title { margin: 0; font: 500 16px var(--head); letter-spacing: -.01em; color: var(--ink); }
.prep-why { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--soft); }
.prep-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.prep-steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; padding: 7px 0; border-top: 1px dashed #C9D6FF; font-size: 14px; color: var(--muted); }
.prep-steps li.active { color: var(--ink); font-weight: 500; }
.prep-steps li.done { color: var(--soft); }
.prep-steps .detail { font: 500 11px var(--mono); letter-spacing: .04em; color: var(--accent-ink); text-align: right; }
.prep-steps li.pending .detail { color: var(--muted); }
.prep-steps .dot { width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; border: 1.5px solid var(--line2); }
.prep-steps .tick { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.prep-steps .bar { grid-column: 2 / -1; height: 4px; border-radius: 2px; background: #C9D6FF; overflow: hidden; }
.prep-steps .bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width .25s ease; }
.prep-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.prep-time { font: 500 11px var(--mono); letter-spacing: .04em; color: var(--muted); }
/* Stays on screen in the report when the model shown is a lighter copy */
.copy-note { flex: 1 1 100%; border: 1px solid #C9D6FF; border-left: 3px solid var(--accent); border-radius: 10px; background: var(--accent-soft); padding: 12px 14px; }
.copy-note[hidden] { display: none; }
.copy-note.rough { border-color: #FFC9E3; border-left-color: var(--pink); background: var(--pink-soft); }
.copy-note p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--soft); }
.copy-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 6px !important; font: 500 11px var(--mono) !important; letter-spacing: .06em; color: var(--ink) !important; }
.copy-tag { text-transform: uppercase; letter-spacing: .12em; color: var(--accent-ink); }
.copy-note.rough .copy-tag { color: var(--pink-ink); }
.spin { width: 16px; height: 16px; border: 2px solid var(--line2); border-top-color: var(--accent); border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* Live demo */
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-2); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.demo-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px 0; }
.demo-top .who { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border: 1px solid #FFC2DE; border-radius: var(--r-pill); background: var(--pink-soft); color: var(--pink-ink); font-size: 10px; font-weight: 500; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); animation: pulse 2.4s infinite; }
.stage { position: relative; overflow: hidden; background-color: var(--viewer); background-image: var(--plus), var(--grid); background-size: 480px 480px, 24px 24px, 24px 24px; background-position: 60px 20px, -1px -1px, -1px -1px; cursor: grab; }
.stage:active { cursor: grabbing; }
.demo-stage { aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 12px; touch-action: pan-y; }
.demo-stage canvas { display: block; width: 100%; height: 100%; }
.demo-hint { position: absolute; left: 12px; bottom: 10px; font-size: 10px; color: var(--muted); pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; padding: 4px 7px; background: var(--accent); color: #fff; font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; pointer-events: none; margin: -40px 0 0 0; translate: -50% 0; transition: opacity .3s; }
.tag::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 14px; background: var(--accent); }
.tag::before { content: ""; position: absolute; left: 50%; top: calc(100% + 11px); width: 7px; height: 7px; margin-left: -3px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(34,81,245,.2); }
.tag.pk { background: var(--pink); } .tag.pk::after, .tag.pk::before { background: var(--pink); } .tag.pk::before { box-shadow: 0 0 0 3px rgba(255,79,163,.25); }
.tag.vi { background: var(--thin); } .tag.vi::after, .tag.vi::before { background: var(--thin); } .tag.vi::before { box-shadow: 0 0 0 3px rgba(124,92,255,.25); }
.demo-bottom { display: flex; align-items: center; gap: 16px; padding: 2px 4px 4px; }
.demo-rows { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.demo-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.demo-row .dot { width: 8px; height: 8px; flex: none; border-radius: 50%; transition: background .4s; }
.demo-row .sev { margin-left: auto; }

/* Score gauge */
.gauge { position: relative; width: 104px; height: 104px; flex: none; }
.gauge.sm { width: 76px; height: 76px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 7; }
.gauge .track { stroke: var(--line2); stroke-width: 1.5; stroke-dasharray: 2 5; }
.gauge .val { stroke-linecap: round; transition: stroke-dashoffset .9s var(--ease); }
.gauge-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.gauge-num b { font: 400 34px var(--head); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.gauge-num span { font: 9.5px var(--mono); letter-spacing: .1em; color: var(--muted); margin-top: 4px; }
.gauge.sm .gauge-num b { font-size: 24px; }
.gauge.sm .gauge-num span { display: none; }
.score-card { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.score-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.verdict { font-size: 14px; line-height: 1.5; color: var(--soft); margin: 0; }
.ai-tag { font-size: 9.5px; color: var(--muted); }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.row-end { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

/* How it works: the blue sheet */
.how { position: relative; margin: 8px 0 72px; border-radius: 20px; overflow: hidden; background-color: var(--accent); color: #fff; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px); background-size: 40px 40px; background-position: -1px -1px; }
.how-stage { position: relative; min-height: 420px; }
.how-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.how-body { padding: 56px 48px 56px 8px; display: flex; flex-direction: column; justify-content: center; }
.how .kick { color: #fff; }
.how h2 { font: 400 44px/1.05 var(--head); letter-spacing: -.04em; margin-bottom: 18px; }
.how-text { min-height: 96px; }
.how-text b { display: block; font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.how-text span { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.82); }
.how-text.swap { animation: rise .35s var(--ease) both; }
.how-steps { display: flex; margin-top: 26px; border: 1px solid rgba(255,255,255,.5); width: fit-content; max-width: 100%; }
.how-steps button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 104px; padding: 12px 14px; border: 0; border-right: 1px solid rgba(255,255,255,.5); background: transparent; color: rgba(255,255,255,.75); text-align: left; transition: background .2s, color .2s; }
.how-steps button:last-child { border-right: 0; }
.how-steps button b { font: 400 22px var(--head); letter-spacing: -.03em; }
.how-steps button span { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.how-steps button:hover { color: #fff; background: rgba(255,255,255,.08); }
.how-steps button[aria-pressed="true"] { background: #fff; color: var(--accent); }
.how-steps button[aria-pressed="true"]::after { content: ""; position: absolute; top: 10px; right: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.how :focus-visible { outline-color: #fff; }

/* What it checks: the icon sheet */
.features, .about { padding: 0 0 72px; }
.features h2, .about h2 { font: 400 44px/1.05 var(--head); letter-spacing: -.04em; color: var(--accent); margin-bottom: 28px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.feat-grid > div { position: relative; padding: 30px 28px; display: flex; flex-direction: column; gap: 8px; border-right: 1px dashed var(--line2); border-bottom: 1px dashed var(--line2); }
.feat-grid > div:nth-child(3n) { border-right: 0; }
.feat-grid > div:nth-last-child(-n+3) { border-bottom: 0; }
.feat-grid > div:hover { background: var(--viewer); }
.feat-ic { position: relative; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; color: var(--accent); border: 1px solid var(--line); border-radius: 50%; transition: border-color .25s, transform .4s var(--ease); }
.feat-ic::before { content: ""; position: absolute; left: -10px; right: -10px; top: 50%; border-top: 1px dashed var(--line2); }
.feat-ic::after { content: ""; position: absolute; top: -10px; bottom: -10px; left: 50%; border-left: 1px dashed var(--line2); }
.feat-ic svg { position: relative; z-index: 1; }
.feat-grid > div:hover .feat-ic { border-color: var(--accent); transform: rotate(-8deg); }
.feat-grid b { font: 500 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.feat-grid span:not(.feat-ic) { font-size: 14px; line-height: 1.55; color: var(--soft); }
/* What it can't check */
.limits, .about { scroll-margin-top: 96px; }
.limits { padding: 0 0 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.limits h2 { font: 400 44px/1.05 var(--head); letter-spacing: -.04em; color: var(--accent); margin-bottom: 22px; }
.limits-text p:not(.kick) { font-size: 16px; line-height: 1.65; color: var(--soft); margin: 0 0 12px; max-width: 540px; }
.limits-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.limits-list li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 24px 18px 52px; border-bottom: 1px dashed var(--line2); }
.limits-list li:last-child { border-bottom: 0; }
.limits-list li::before, .limits-list li::after { content: ""; position: absolute; left: 24px; top: 26px; width: 13px; height: 1.5px; background: var(--pink); transform: rotate(45deg); }
.limits-list li::after { transform: rotate(-45deg); }
.limits-list b { font: 500 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.limits-list span { font-size: 14px; line-height: 1.5; color: var(--soft); }
/* How your model is handled */
.handled { margin: 26px 0 0; max-width: 860px; border-top: 1px solid var(--line2); }
.handled[hidden] { display: none; }
.handled > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px dashed var(--line2); }
.handled dt { font: 500 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }
.handled dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--soft); }
.score-scope { flex: 1 1 100%; border-top: 1px dashed var(--line); padding-top: 10px; }
.score-scope summary { cursor: pointer; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.score-scope summary:hover { color: var(--accent-ink); }
.score-scope summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.score-scope p { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--soft); }
.about p:not(.kick) { max-width: 720px; font-size: 17px; line-height: 1.65; color: var(--soft); margin: 0 0 12px; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 22px 0 8px; border-top: 1px solid var(--line2); font-size: 10.5px; color: var(--muted); }
.foot a { color: var(--accent-ink); text-decoration: none; }
.foot a:hover { color: var(--pink-ink); }
.js-reveal [data-reveal] { opacity: 0; translate: 0 18px; transition: opacity .6s var(--ease) calc(var(--i, 0) * 70ms), translate .6s var(--ease) calc(var(--i, 0) * 70ms), background .25s; }
.js-reveal [data-reveal].in { opacity: 1; translate: 0 0; }

/* Drag-anywhere overlay */
.drop-overlay { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(34,81,245,.16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; opacity: 0; transition: opacity .2s; }
.drop-overlay.on { opacity: 1; }
.drop-overlay div { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 44px; border-radius: 20px; background: var(--surface); border: 1px dashed var(--accent); box-shadow: var(--sh-2); font: 400 22px var(--head); letter-spacing: -.02em; color: var(--accent); transform: scale(.94); transition: transform .25s var(--ease); }
.drop-overlay.on div { transform: none; }

/* Viewer */
.viewer { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.viewer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.viewer-title { font: 400 22px var(--head); letter-spacing: -.03em; color: var(--accent); }
.viewer-sub { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.seg { display: flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { min-height: 34px; padding: 0 14px; border: 0; border-right: 1px solid var(--line2); font-size: 10.5px; font-weight: 500; background: transparent; color: var(--muted); transition: background .2s, color .2s; }
.seg button:last-child { border-right: 0; }
.seg button:hover { color: var(--accent); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
#canvas-wrap { width: 100%; aspect-ratio: 16 / 10; min-height: 320px; border: 1px solid var(--line); border-radius: 12px; }
#canvas-wrap canvas { display: block; width: 100%; height: 100%; }
.viewer-badge, .work-badge { position: absolute; top: 12px; padding: 5px 8px; background: var(--surface); border: 1px solid var(--line2); font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.viewer-badge { left: 12px; }
.viewer-badge.preview { background: var(--pink); border-color: var(--pink); color: #fff; }
.work-badge { right: 12px; display: inline-flex; align-items: center; gap: 8px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; font-size: 13px; color: var(--soft); }
.legend span.k { display: inline-flex; align-items: center; gap: 7px; margin-right: 14px; }
.legend span.k i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.hint { font-size: 10px; color: var(--muted); }

.action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; background: var(--accent-soft); border: 1px solid #CBD7FF; border-radius: var(--r-card); animation: rise .4s var(--ease) both; }
.action.preview { background: var(--surface); border: 1px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex-direction: column; align-items: stretch; }
.action.done { background: var(--surface); border-color: var(--line2); }
.action .txt { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.action .txt b { font-size: 15px; font-weight: 500; }
.action .txt span { font-size: 13px; color: var(--soft); }
.action .icon { width: 40px; height: 40px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--surface); color: var(--accent); border: 1px solid #CBD7FF; }
.worse { padding: 12px 14px; border: 1px solid #FFC2DE; border-radius: var(--r-ctl); background: var(--pink-soft); color: var(--pink-ink); font-size: 14px; line-height: 1.5; }
.worse b { font-weight: 600; }
.kicker { font-size: 10.5px; font-weight: 500; color: var(--pink-ink); }
table.diff { width: 100%; border-collapse: collapse; font-size: 13px; }
table.diff th { text-align: left; font-weight: 500; color: var(--muted); font-size: 10px; padding: 4px 8px 6px 0; }
table.diff td { padding: 7px 8px 7px 0; border-top: 1px dashed var(--line2); font-family: var(--mono); font-size: 12.5px; }
table.diff td:first-child { font-family: var(--sans); font-size: 13px; font-weight: 500; }
table.diff td.after { color: var(--accent); font-weight: 600; }
.alt { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }

.versions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ver { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; font-size: 10.5px; font-weight: 500; background: var(--surface); color: var(--soft); border: 1px solid var(--line2); min-height: 32px; transition: border-color .15s, color .15s; }
button.ver:hover { border-color: var(--accent); color: var(--accent); }
.ver b { font-weight: 600; }
.ver.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.ver.ghost { background: transparent; color: var(--pink-ink); border: 1px dashed var(--pink); }
.ver.ahead { opacity: .55; border-style: dashed; }
.icon-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line2); border-radius: 50%; background: var(--surface); color: var(--accent); transition: border-color .15s, transform .15s var(--ease); }
.icon-btn:hover:not(:disabled) { border-color: var(--accent); }
.icon-btn:active:not(:disabled) { transform: scale(.92); }
.icon-btn:disabled { opacity: .4; }

.stats, .summary { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.summary { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 14px; }
.stat { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; border-right: 1px dashed var(--line2); transition: background .25s; }
.stat:last-child { border-right: 0; }
.stat:hover { background: var(--viewer); }
.stat .v { font: 400 32px/1 var(--head); letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .n { font-size: 9.5px; color: var(--muted); }
.stat .n.chg { color: var(--accent); }

/* Findings */
.findings { display: flex; flex-direction: column; gap: 10px; }
.finding { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-card); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, background .2s; }
.findings.fresh .finding { animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.finding:hover { border-color: var(--accent); }
.finding.on { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.finding > button.head { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.finding .dot { width: 20px; height: 20px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 1px; box-shadow: inset 0 0 0 5px rgba(255,255,255,.6); }
.finding .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.finding .t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.finding .d { font-size: 13px; line-height: 1.45; color: var(--muted); }
.finding .fixrow { margin-left: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
/* "Was this right?" under each finding */
.vote { margin-left: 32px; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vote .q { font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.vbtn { min-height: 32px; min-width: 46px; padding: 0 12px; border: 1px solid var(--line2); border-radius: var(--r-pill); background: var(--surface); color: var(--soft); font: 500 12.5px var(--sans, inherit); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.vbtn:hover { border-color: var(--accent); color: var(--accent-ink); }
.vbtn.yes.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.vbtn.no.on { background: var(--pink-soft); border-color: var(--pink); color: var(--pink-ink); }
.vbtn:focus-visible, .linkish:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vnote, .missed form { flex: 1 1 100%; display: flex; gap: 8px; }
.vnote input, .missed input { flex: 1; min-width: 0; min-height: 36px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.vnote input:focus, .missed input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.vthanks { font-size: 12.5px; color: var(--muted); }
.missed { display: flex; flex-direction: column; gap: 8px; padding: 2px 2px 0; }
.linkish { align-self: flex-start; min-height: 32px; padding: 4px 0; border: 0; background: none; color: var(--accent-ink); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: var(--accent); }
.test-log .k { font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }
.test-log a { color: var(--accent-ink); }
.sev { padding: 3px 7px; border-radius: 4px; font-size: 9.5px; font-weight: 500; white-space: nowrap; }
.sev.critical { background: var(--pink-soft); color: var(--pink-ink); }
.sev.warning { background: var(--warn-soft); color: var(--warn-ink); }
.sev.pass { background: var(--accent-soft); color: var(--accent-ink); }
.sev.info { background: var(--chip); color: var(--soft); }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 12px; }
.chat h2, .col-side > div > h2 { font: 400 22px var(--head); letter-spacing: -.03em; color: var(--accent); }
.msgs { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; }
.msg { max-width: 92%; padding: 10px 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; animation: rise .3s var(--ease) both; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-radius: 12px 12px 2px 12px; }
.msg.bot { align-self: flex-start; background: var(--chip); border-radius: 12px 12px 12px 2px; }
.msg.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite both; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; background: var(--pink); }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.steps { display: flex; flex-wrap: wrap; gap: 6px; }
.steps span { padding: 3px 7px; border: 1px solid var(--line2); border-radius: 4px; font-size: 9.5px; color: var(--accent-ink); }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 8px; background: var(--surface); font-size: 13px; color: var(--accent-ink); transition: border-color .15s, color .15s; }
.suggest button:hover { border-color: var(--accent); color: var(--accent); }
.ask { display: flex; gap: 8px; }
.ask input { flex: 1; min-width: 0; min-height: 46px; padding: 0 16px; border: 1px solid var(--line2); border-radius: var(--r-ctl); background: var(--surface); font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.ask input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ask button { width: 46px; height: 46px; flex: none; border: 0; border-radius: var(--r-ctl); background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.ask button:hover { background: var(--accent-hover); }
.ask button svg { transition: transform .2s var(--ease); }
.ask button:hover svg { transform: translateX(3px); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-ctl); font-size: 14px; z-index: 50; max-width: 90vw; animation: toast .3s var(--ease) both; }
.toast.top { bottom: auto; top: 16px; }
@keyframes toast { from { opacity: 0; margin-bottom: -8px; } to { opacity: 1; margin-bottom: 0; } }

/* Tabs and batch */
.tabs { display: flex; gap: 18px; }
.tabs a { position: relative; padding: 8px 0; font-size: 10.5px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .15s; }
.tabs a::before { content: "+"; margin-right: 6px; color: var(--accent); }
.tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.tabs a:hover { color: var(--accent); }
.tabs a:hover::after, .tabs a[aria-current="page"]::after { transform: none; }
.tabs a[aria-current="page"] { color: var(--ink); }
.batch-main { display: block; }
#empty.batch-empty { display: block; max-width: 760px; padding-top: 48px; }
.batch-empty .drop { align-items: center; text-align: center; gap: 16px; padding: 48px 32px; }
.batch-empty .drop h1 { margin: 0; font: 400 40px/1.05 var(--head); letter-spacing: -.04em; color: var(--accent); }
.batch-empty .drop p { margin: 0; color: var(--soft); max-width: 520px; line-height: 1.55; }
.batch-empty .drop-ic { width: 64px; height: 64px; border-radius: 50%; }
.batch-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.batch-bar .group { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
table.batch { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 860px; }
table.batch th { text-align: left; font-size: 10px; font-weight: 500; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.batch th button { all: unset; cursor: pointer; }
table.batch th button:hover { color: var(--accent); }
table.batch th button:focus-visible { outline: 2px solid var(--accent); }
table.batch td { padding: 12px 14px; border-bottom: 1px dashed var(--line2); vertical-align: top; transition: background .15s; }
table.batch tbody tr:hover td { background: var(--viewer); }
table.batch tr:last-child td { border-bottom: 0; }
.score-pill { display: inline-block; min-width: 40px; text-align: center; padding: 3px 8px; border-radius: 4px; font: 500 12.5px var(--mono); }
.score-pill.good { background: var(--accent-soft); color: var(--accent-ink); }
.score-pill.mid { background: var(--warn-soft); color: var(--warn-ink); }
.score-pill.bad { background: var(--pink-soft); color: var(--pink-ink); }
.issue-list { display: flex; flex-wrap: wrap; gap: 6px; }
.issue-list span { font-size: 12px; padding: 2px 8px; border-radius: 4px; background: var(--chip); color: var(--soft); }
.applied { font-size: 12px; color: var(--accent); margin-top: 4px; }

/* Waking, modal */
.bar { height: 6px; border-radius: var(--r-pill); background: var(--chip); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: var(--r-pill); transition: width .4s; }
.waking { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 20; width: min(560px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line2); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--sh-2); }
.waking { padding-left: 84px; }
.wake-logo { position: absolute; left: 20px; top: 18px; width: 48px; height: 48px; }
.wake-logo .logo { width: 48px; height: 48px; }
.waking.done .logo.printing .lg, .waking.offline .logo.printing .lg { animation: none; }
.waking b { font: 400 20px var(--head); letter-spacing: -.02em; color: var(--accent); }
.waking > span { font-size: 14px; color: var(--soft); line-height: 1.5; }
.waking.done .bar i { width: 100% !important; }
.waking.offline { border-color: var(--pink); }
.waking.offline .bar i { background: var(--pink); }
.modal-back { position: fixed; inset: 0; z-index: 30; background: rgba(15,27,61,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(420px, 100%); background: var(--surface); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sh-2); animation: rise .35s var(--ease) both; }
.modal h2 { font: 400 26px var(--head); letter-spacing: -.03em; color: var(--accent); }
.modal input { min-height: 46px; padding: 0 16px; border: 1px solid var(--line2); border-radius: var(--r-ctl); font-size: 15px; }
.modal input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.err { margin: 0; font-size: 13px; color: var(--pink-ink); }

/* Small screens */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 28px 0 44px; }
  .hero h1 { font-size: 44px; }
  .how { grid-template-columns: 1fr; }
  .how-stage { min-height: 260px; }
  .how-body { padding: 8px 28px 40px; }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .limits { grid-template-columns: 1fr; gap: 24px; }
  .feat-grid > div:nth-child(3n) { border-right: 1px dashed var(--line2); }
  .feat-grid > div:nth-child(2n) { border-right: 0; }
  .feat-grid > div:nth-last-child(-n+3) { border-bottom: 1px dashed var(--line2); }
  .feat-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 720px) {
  .promises { grid-template-columns: 1fr; gap: 10px; }
  .promise-more { padding: 12px 0 2px; }
  .limits h2 { font-size: 32px; }
  .handled > div { grid-template-columns: 1fr; gap: 4px; }
  .vote { margin-left: 0; }
  .vbtn { min-height: 40px; min-width: 60px; font-size: 14px; }
  .vnote input, .missed input { min-height: 44px; font-size: 16px; }
  .linkish { min-height: 44px; text-align: left; }
  header { position: static; padding: 10px 14px; gap: 10px 16px; }
  .btn.another { min-height: 44px; }
  .another-end { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 16px; border: 1px dashed var(--line2); border-radius: var(--r-card); font-size: 14px; color: var(--soft); }
  .swap-card { padding: 20px 18px; }
  .brand small { display: none; }
  .controls { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .controls .setup { grid-column: span 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .setup-slot .setup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-slot .setup .field:first-child { grid-column: span 2; }
  .controls .btn { grid-column: span 3; }
  .field select { width: 100%; }
  main { padding: 14px 14px 32px; }
  .hero h1 { font-size: 38px; }
  .how { margin-bottom: 48px; }
  .how h2, .features h2, .about h2 { font-size: 32px; }
  .how-steps { width: 100%; }
  .how-steps button { min-width: 0; flex: 1; padding: 10px; }
  .features, .about { padding-bottom: 48px; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-grid > div, .feat-grid > div:nth-child(3n), .feat-grid > div:nth-child(2n) { border-right: 0; }
  .feat-grid > div:nth-last-child(-n+2) { border-bottom: 1px dashed var(--line2); }
  .feat-grid > div:last-child { border-bottom: 0; }
  #canvas-wrap { aspect-ratio: 1 / 1; min-height: 0; }
  .demo-stage { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px dashed var(--line2); }
  .stat .v { font-size: 26px; }
  .legend .hint, .demo-hint { display: none; }
  .action .row-end { justify-content: stretch; }
  .action .row-end .btn { flex: 1 1 auto; }
  .chip-file { max-width: 100%; overflow: hidden; }
  .chip-file #file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
  .batch-empty .drop { padding: 32px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
