/* SVGMill: Cutting Mat.
   The top of every page, the app workspace and the footer sit on a self-healing mat with a 1 cm (40 px)
   grid, heavier every 5 cm, with rulers along its edges. Everything else is quiet paper.
   One family: Archivo, expanded for headings. All sizes, radii and shadows come from the tokens below. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/assets/fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* color */
  --mat: #1d5c4a;
  --grid: #2b725d;
  --grid-strong: #3c8b73;
  --paper: #f4f6f3;
  --sheet: #ffffff;
  --ink: #10241d;
  --muted: #4b5f57;
  --mark: #f2d03b;
  --mark-ink: #10241d;
  --on-mat: #ffffff;
  --on-mat-muted: #d3e6dd;
  --rule: rgba(16, 36, 29, 0.16);
  --rule-strong: rgba(16, 36, 29, 0.38);
  --code-bg: #10241d;
  --code-ink: #e3efe9;
  --code-accent: #f2d03b;
  --danger: #b3261e;
  --danger-bg: #fbe9e7;
  --ok: #1d6b45;
  --outline-stroke: #1d5c4a;
  --outline-anchor: #d23f1f;
  --outline-bg: #ffffff;
  --handle: #f2d03b;
  --focus: #f2d03b;

  /* type scale: ruler numerals, small, ui, body, lead, sub-head, h2, h1 (inner), h1 (home) */
  --fs-ruler: 10px;
  --fs-xs: 0.8125rem;
  --fs-s: 0.9375rem;
  --fs-m: 1.0625rem;
  --fs-l: 1.25rem;
  --fs-xl: 1.625rem;
  --fs-h2: clamp(1.9rem, 3.4vw, 2.75rem);
  --fs-h1: clamp(2.6rem, 5.2vw, 4.75rem);
  --fs-display: clamp(3.2rem, 7.6vw, 7.4rem);

  /* radii */
  --r-s: 4px;
  --r-m: 8px;
  --r-l: 12px;

  /* shadows (four in all) */
  --sheet-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.12), 0 18px 40px -12px rgba(0, 0, 0, 0.45);
  --card-shadow: 0 0 0 1px rgba(16, 36, 29, 0.1), 0 1px 2px rgba(16, 36, 29, 0.06);
  --hairline: inset 0 0 0 1px var(--rule-strong);
  --lift: 0 1px 3px rgba(0, 0, 0, 0.3);

  /* the mat */
  --cm: 40px;
  --ruler: 28px;
  --nav-h: 72px;
  --top-h: calc(var(--ruler) + var(--nav-h));
  --wide: 125;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --mat: #0e2e25;
    --grid: #184236;
    --grid-strong: #23594a;
    --paper: #0d1713;
    --sheet: #13201b;
    --ink: #e9f2ee;
    --muted: #a4b9b0;
    --mark: #ddc457;
    --mark-ink: #10241d;
    --on-mat: #e9f2ee;
    --on-mat-muted: #b7cec4;
    --rule: rgba(233, 242, 238, 0.14);
    --rule-strong: rgba(233, 242, 238, 0.34);
    --code-bg: #0a120f;
    --code-ink: #d9e8e1;
    --code-accent: #ddc457;
    --danger: #ffb4ab;
    --danger-bg: #3a1714;
    --ok: #8fd6b0;
    --outline-stroke: #7fd1b4;
    --outline-anchor: #ffb39c;
    --outline-bg: #13201b;
    --handle: #ddc457;
    --focus: #ddc457;
    --sheet-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 2px 4px rgba(0, 0, 0, 0.3), 0 18px 40px -12px rgba(0, 0, 0, 0.7);
    --card-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 1px 2px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: var(--fs-m);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-stretch: 125%; font-variation-settings: "wdth" var(--wide); text-wrap: balance; margin: 0; }
h1 { font-size: var(--fs-h1); font-weight: 800; line-height: 0.95; letter-spacing: -0.015em; }
h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-l); font-weight: 750; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--r-s); }
.num, table, .stats, .tnum { font-variant-numeric: tabular-nums; }
code, pre, kbd { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
:not(pre) > code { font-size: 0.9em; padding: 1px 5px; border-radius: var(--r-s); background: var(--rule); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 16px; border-radius: var(--r-m); background: var(--mark); color: var(--mark-ink); font-weight: 700; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 860px; }

/* ---------- The mat ---------- */
.mat {
  position: relative;
  background-color: var(--mat);
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: calc(var(--cm) * 5) calc(var(--cm) * 5), calc(var(--cm) * 5) calc(var(--cm) * 5), var(--cm) var(--cm), var(--cm) var(--cm);
  background-position: var(--ruler) var(--ruler);
  color: var(--on-mat);
  padding-left: var(--ruler);
}
/* A mat block that continues the one above it (the page header under the nav): shift the grid so the lines meet. */
.mat.cont { background-position: var(--ruler) calc(var(--ruler) - var(--top-h)); }
/* The left ruler, drawn on each mat block */
.mat::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--ruler);
  background:
    repeating-linear-gradient(180deg, var(--mark) 0 1px, transparent 1px var(--cm)) 0 0 / 12px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--on-mat-muted) 0 1px, transparent 1px calc(var(--cm) / 5)) 0 0 / 6px 100% no-repeat;
  background-color: var(--mat);
  box-shadow: inset -1px 0 0 var(--grid-strong);
}
.mat.top::before { top: var(--ruler); }
.mat.cont::before { background-position: 0 calc(var(--ruler) - var(--top-h)), 0 calc(var(--ruler) - var(--top-h)); background-repeat: repeat-y; background-size: 12px var(--cm), 6px calc(var(--cm) / 5); }
.mat.top { padding-top: var(--ruler); }
.ruler-x {
  position: absolute; left: 0; right: 0; top: 0;
  height: var(--ruler);
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, var(--mark) 0 1px, transparent 1px var(--cm)) var(--ruler) 0 / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, var(--on-mat-muted) 0 1px, transparent 1px calc(var(--cm) / 5)) var(--ruler) 0 / 100% 6px no-repeat;
  background-color: var(--mat);
  box-shadow: inset 0 -1px 0 var(--grid-strong);
}
.ruler-x span {
  position: absolute; top: 12px;
  font-size: var(--fs-ruler); line-height: 1; font-weight: 600;
  color: var(--mark); font-variant-numeric: tabular-nums;
}

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; gap: 8px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: var(--fs-l); font-stretch: 125%; font-variation-settings: "wdth" 125; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand svg { width: 26px; height: 26px; }
.nav a.link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; color: var(--on-mat-muted); font-weight: 500; border-radius: var(--r-m); transition-property: color, background-color; transition-duration: 150ms; }
.nav a.link:hover, .nav a.link[aria-current="page"] { color: var(--on-mat); background: rgba(255, 255, 255, 0.07); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 0; border-radius: var(--r-m);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition-property: scale, background-color, box-shadow, opacity;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.btn:active { scale: 0.96; }
.btn-mark { background: var(--mark); color: var(--mark-ink); }
.btn-mark:hover { background: color-mix(in oklab, var(--mark) 88%, white); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: color-mix(in oklab, var(--ink) 85%, var(--mat)); }
.btn-quiet { background: transparent; color: inherit; box-shadow: var(--hairline); }
.btn-quiet:hover { background: var(--rule); }
.btn-danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px currentColor; }
.btn-danger:hover { background: var(--danger-bg); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: var(--fs-s); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn:disabled:active { scale: 1; }
.btn.is-busy { cursor: progress; opacity: 0.7; }
.linkish { display: inline-flex; align-items: center; min-height: 40px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Home hero ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 96px;
}
.hero-grid h1 { font-size: var(--fs-display); line-height: 0.88; color: var(--on-mat); }
.hero-grid .sub { margin-top: 28px; font-size: var(--fs-l); line-height: 1.45; color: var(--on-mat-muted); max-width: 32ch; }
.terms { margin-top: 28px; display: grid; gap: 6px; }
.terms p { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.terms p + p { font-weight: 400; color: var(--on-mat-muted); }
.terms svg { width: 18px; height: 18px; flex: none; color: var(--mark); }

/* Inner page header on the mat */
.page-head { padding-top: 40px; padding-bottom: 72px; }
.page-head h1 { color: var(--on-mat); max-width: 18ch; }
.page-head .lede { margin-top: 22px; font-size: var(--fs-l); line-height: 1.45; color: var(--on-mat-muted); max-width: 52ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; font-size: var(--fs-s); color: var(--on-mat-muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.crumbs a { display: inline-flex; align-items: center; min-height: 40px; color: inherit; }
.page-head.with-tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }

/* ---------- Dropzone: a sheet of paper on the mat, with a cut line and crop marks ---------- */
.sheet {
  position: relative;
  background: var(--sheet);
  color: var(--ink);
  border-radius: var(--r-m);
  box-shadow: var(--sheet-shadow);
  padding: 34px;
  rotate: -1.2deg;
}
.dropzone {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 40px 32px 32px;
  border-radius: var(--r-l);
  outline: 2px dashed var(--ink);
  outline-offset: 0;
  cursor: pointer;
  transition-property: background-color, outline-color;
  transition-duration: 150ms;
}
.dropzone:hover, .dropzone.is-dragover { background: color-mix(in oklab, var(--mark) 22%, transparent); }
.dropzone.is-dragover { outline-style: solid; }
.dropzone:focus-within { outline-color: var(--mat); outline-style: solid; }
.dropzone .icon { width: 56px; height: 56px; color: var(--outline-stroke); }
.dropzone strong { font-size: var(--fs-xl); line-height: 1.1; font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 800; }
.dropzone .how { color: var(--muted); }
.dropzone .browse { margin-top: 6px; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone [data-dropzone-status] { min-height: 1.5em; font-size: var(--fs-s); color: var(--muted); }
.dropzone.is-error [data-dropzone-status] { color: var(--danger); font-weight: 600; }
.crop { position: absolute; width: 18px; height: 18px; border-color: var(--ink); border-style: solid; border-width: 0; opacity: 0.7; }
.crop.tl { top: 10px; left: 10px; border-top-width: 1.5px; border-left-width: 1.5px; }
.crop.tr { top: 10px; right: 10px; border-top-width: 1.5px; border-right-width: 1.5px; }
.crop.bl { bottom: 10px; left: 10px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.crop.br { bottom: 10px; right: 10px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.reg { position: absolute; top: -14px; right: 26px; width: 28px; height: 28px; color: var(--ink); background: var(--sheet); border-radius: 50%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; padding: 0; list-style: none; }
.chips li { padding: 3px 10px; border-radius: var(--r-s); font-size: var(--fs-xs); font-weight: 600; box-shadow: var(--hairline); }
.sheet .fineprint { margin-top: 12px; font-size: var(--fs-s); color: var(--muted); }

/* ---------- Demo ---------- */
.demo-sec { padding: 0 0 104px; }
.demo-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding-top: 8px; margin-bottom: 32px; }
.demo-head h2 { color: var(--on-mat); }
.demo-head p { color: var(--on-mat-muted); max-width: 44ch; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 620px) minmax(300px, 400px); justify-content: space-between; gap: 56px; align-items: start; }
.stage-sheet { background: var(--sheet); border-radius: var(--r-m); padding: 12px; box-shadow: var(--sheet-shadow); }
.stage-sheet [data-demo-stage] { border-radius: var(--r-s); background: #fff; }
[data-demo-stage] { position: relative; overflow: hidden; touch-action: none; user-select: none; cursor: ew-resize; aspect-ratio: 1; }
[data-demo-stage].is-zoomed { cursor: grab; }
[data-demo-stage].is-zoomed.is-dragging { cursor: grabbing; }
.demo-canvas { position: absolute; }
.demo-canvas > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-raster { image-rendering: pixelated; }
.demo-vector svg, .demo-outline svg { width: 100%; height: 100%; display: block; }
.demo-outline { background: var(--outline-bg); }
.demo-handle { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--handle); cursor: ew-resize; }
.demo-handle::before { content: ""; position: absolute; inset: 0 -20px; }
.demo-knob { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; translate: -50% -50%; border-radius: 50%; background: var(--handle); box-shadow: var(--lift); }
.demo-knob::before, .demo-knob::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 5px solid transparent; translate: 0 -50%; }
.demo-knob::before { left: 7px; border-right-color: #10241d; }
.demo-knob::after { right: 7px; border-left-color: #10241d; }
.demo-tag { position: absolute; top: 12px; pointer-events: none; padding: 4px 10px; border-radius: var(--r-s); background: #10241d; color: #fff; font-size: var(--fs-xs); font-weight: 600; }
.demo-tag-left { left: 12px; }
.demo-tag-right { right: 12px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-l); background: rgba(0, 0, 0, 0.22); }
.seg button, .seg label > span {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; min-width: 40px; padding: 0 14px;
  border: 0; border-radius: var(--r-m);
  background: transparent; color: inherit;
  font: inherit; font-weight: 600; font-size: var(--fs-s); cursor: pointer;
  transition-property: background-color, color, scale;
  transition-duration: 150ms;
}
.seg button:active, .seg label > span:active { scale: 0.96; }
.seg button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
.seg button[aria-pressed="true"] { background: var(--mark); color: var(--mark-ink); }
.seg button:disabled { opacity: 0.4; cursor: not-allowed; }
.seg .level { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; font-weight: 600; font-variant-numeric: tabular-nums; font-size: var(--fs-s); }
/* Radio segments: the native input covers its label so the whole pill is the hit area. */
.seg label { position: relative; display: flex; }
.seg label > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.seg label > input:disabled { cursor: not-allowed; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:disabled + span { opacity: 0.4; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.picker button {
  display: grid; gap: 6px; justify-items: center;
  padding: 8px 6px;
  border: 0; border-radius: var(--r-m);
  background: rgba(0, 0, 0, 0.18); color: var(--on-mat-muted);
  font: inherit; font-size: var(--fs-xs); font-weight: 600; cursor: pointer;
  transition-property: background-color, color, scale, box-shadow;
  transition-duration: 150ms;
}
.picker button img { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--r-s); background: #fff; outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px; }
.picker button:hover { background: rgba(0, 0, 0, 0.28); color: var(--on-mat); }
.picker button:active { scale: 0.96; }
.picker button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--mark); color: var(--on-mat); }
.side h3 { color: var(--on-mat); margin-bottom: 12px; font-size: var(--fs-m); }
.side .block + .block { margin-top: 28px; }
.stats { display: grid; grid-template-columns: 1fr auto; margin: 0; }
.stats dt, .stats dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--grid-strong); }
.stats dt { color: var(--on-mat-muted); }
.stats dd { font-weight: 700; text-align: right; }
.caption { margin-top: 16px; font-size: var(--fs-s); color: var(--on-mat-muted); }

/* ---------- Paper sections, separated by a ruler-tick strip ---------- */
.ticks {
  height: 18px;
  background:
    repeating-linear-gradient(90deg, var(--rule-strong) 0 1px, transparent 1px var(--cm)) 0 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px calc(var(--cm) / 5)) 0 0 / 100% 7px no-repeat;
  box-shadow: inset 0 1px 0 var(--rule-strong);
}
.paper-sec { padding: 96px 0; }
.paper-sec.tight { padding: 64px 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: end; margin-bottom: 48px; }
.sec-head p { color: var(--muted); font-size: var(--fs-l); max-width: 52ch; }
.muted { color: var(--muted); }

/* Fast / Accurate / Geometric */
.claims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.claim { display: flex; flex-direction: column; gap: 14px; }
.claim .fig { background: var(--sheet); border-radius: var(--r-l); box-shadow: var(--card-shadow); padding: 16px; height: 248px; }
.claim p { color: var(--muted); }
.speed { height: 100%; display: grid; align-content: center; gap: 14px; }
.speed ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.speed li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center; font-size: var(--fs-s); }
.speed li::before { content: ""; width: 28px; height: 28px; border-radius: 50%; background: var(--mat); }
.speed li:nth-child(2)::before { background: var(--mark); }
.speed li:nth-child(3)::before { background: var(--ink); }
.crops { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; height: 100%; }
.crops figure { margin: 0; display: grid; grid-template-rows: 1fr auto; gap: 8px; min-height: 0; }
.crop-view { position: relative; overflow: hidden; border-radius: var(--r-s); background: #fff no-repeat; background-size: 3600px 3600px; background-position: -2040px -372px; outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px; }
.crop-view.px { image-rendering: pixelated; }
.crops figcaption { font-size: var(--fs-xs); color: var(--muted); }
.geo { position: relative; height: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.geo .ol { border-radius: var(--r-s); background: var(--outline-bg); outline: 1px solid var(--rule); outline-offset: -1px; overflow: hidden; }
.geo .ol svg { width: 100%; height: 100%; }
.geo dl { margin: 0; display: grid; align-content: center; gap: 2px; }
.geo dt { font-size: var(--fs-xs); color: var(--muted); }
.geo dd { margin: 0 0 10px; font-size: var(--fs-xl); font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; }

/* How it works */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; min-width: 0; }
.path { background: var(--sheet); border-radius: var(--r-l); box-shadow: var(--card-shadow); padding: 32px; min-width: 0; }
.path h3 { font-size: var(--fs-xl); margin-bottom: 6px; }
.path > p { color: var(--muted); }
.steps { list-style: none; counter-reset: step; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: baseline; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 700; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.steps strong { display: block; }
.steps span { color: var(--muted); }
pre {
  margin: 20px 0 0; padding: 16px 18px; border-radius: var(--r-m);
  background: var(--code-bg); color: var(--code-ink);
  font-size: var(--fs-xs); line-height: 1.6;
  overflow-x: auto;
  tab-size: 2;
}
pre .k { color: var(--code-accent); }
.path .btn { margin-top: 24px; }

/* Use cases: a spec list */
.uses { list-style: none; margin: 0; padding: 0; }
.uses li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: 32px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--rule-strong); }
.uses li:last-child { border-bottom: 1px solid var(--rule-strong); }
.uses p { color: var(--muted); }
.uses a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; justify-self: end; }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 16px 14px 0; border-top: 1px solid var(--rule); vertical-align: baseline; }
thead th { border-top: 0; border-bottom: 1.5px solid var(--ink); font-size: var(--fs-s); color: var(--muted); font-weight: 600; padding-top: 0; }
.table-scroll { overflow-x: auto; }
.formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.formats th[scope="row"] { font-weight: 800; width: 90px; font-stretch: 125%; font-variation-settings: "wdth" 125; }
.formats td { color: var(--muted); }

/* Pricing: a cut list */
.price-note { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 56px; }
.price-note div { padding-top: 14px; border-top: 3px solid var(--mark); }
.price-note strong { display: block; font-size: var(--fs-l); }
.price-note span { color: var(--muted); }
.cutlists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.cutlist-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; min-height: 48px; }
.cutlist-head h3 { font-size: var(--fs-xl); }
.cutlist td:first-child { font-weight: 700; }
.cutlist td.r, .cutlist th.r { text-align: right; padding-right: 0; }
.cutlist td.price { font-weight: 800; }
.cutlist a, .cutlist button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; font-weight: 600; }
.cutlist caption { caption-side: bottom; text-align: left; padding-top: 14px; color: var(--muted); font-size: var(--fs-s); }
.billing { background: var(--rule); }
.billing label > span { color: var(--ink); }
.free-row { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 28px; border-radius: var(--r-l); background: var(--sheet); box-shadow: var(--card-shadow); }
.free-row p { font-size: var(--fs-l); font-weight: 600; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--rule-strong); }
.faq details:last-child { border-bottom: 1px solid var(--rule-strong); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; cursor: pointer; font-weight: 700; font-size: var(--fs-l); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; translate: 0 -3px; transition: rotate 200ms cubic-bezier(0.2, 0, 0, 1); }
.faq details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq details > p, .faq details > div { padding: 0 0 22px; color: var(--muted); max-width: 66ch; }

/* ---------- Prose (keyword, legal, docs) ---------- */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--fs-xl); margin-top: 2.2em; line-height: 1.15; }
.prose h3 { margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose table { font-size: var(--fs-s); }
.prose .note { padding: 16px 18px; border-radius: var(--r-m); background: var(--sheet); box-shadow: var(--card-shadow); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.aside { position: sticky; top: 24px; display: grid; gap: 16px; padding: 24px; border-radius: var(--r-l); background: var(--sheet); box-shadow: var(--card-shadow); }
.aside h2 { font-size: var(--fs-l); }
.aside p { color: var(--muted); font-size: var(--fs-s); }
.tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.tips li { padding-top: 14px; border-top: 3px solid var(--mark); }
.tips strong { display: block; font-size: var(--fs-l); margin-bottom: 4px; }
.tips span { color: var(--muted); }
.legal-meta { color: var(--muted); font-size: var(--fs-s); }

/* Tabs for code samples */
.tabs [role="tablist"] { display: flex; flex-wrap: wrap; gap: 4px; }
.tabs [role="tab"] { min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-m); background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: var(--fs-s); cursor: pointer; transition-property: background-color, color; transition-duration: 150ms; }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tabs [role="tab"]:hover:not([aria-selected="true"]) { background: var(--rule); color: var(--ink); }
.tabs [role="tabpanel"] pre { margin-top: 10px; }

/* Docs */
.docs-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.docs-nav { position: sticky; top: 24px; display: grid; gap: 2px; font-size: var(--fs-s); }
.docs-nav strong { margin: 14px 0 2px; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.docs-nav a { display: flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: var(--r-m); text-decoration: none; color: var(--ink); }
.docs-nav a:hover { background: var(--rule); }
.docs-body { min-width: 0; }
.docs-body > section + section { margin-top: 72px; }
.docs-body h2 { font-size: var(--fs-xl); margin-bottom: 16px; }
.docs-body h3 { margin: 32px 0 10px; }
.docs-body p, .docs-body li { max-width: 72ch; }
.docs-body p + p { margin-top: 0.8em; }
.endpoint { margin-top: 20px; padding: 24px; border-radius: var(--r-l); background: var(--sheet); box-shadow: var(--card-shadow); }
.endpoint h3 { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-size: var(--fs-l); }
.endpoint h3 code { font-size: var(--fs-s); font-weight: 600; background: none; padding: 0; font-stretch: 100%; }
.method { display: inline-block; min-width: 64px; padding: 2px 8px; border-radius: var(--r-s); font-size: var(--fs-xs); font-weight: 700; text-align: center; background: var(--ink); color: var(--paper); font-stretch: 100%; font-variation-settings: "wdth" 100; }
.method.post { background: var(--mat); color: #fff; }
.method.delete { background: var(--danger); color: #fff; }
.endpoint .auth { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; font-stretch: 100%; font-variation-settings: "wdth" 100; }
.endpoint table { margin-top: 12px; font-size: var(--fs-s); }
.endpoint td code, .endpoint th code { white-space: nowrap; }
.endpoint h4 { margin: 18px 0 0; font-size: var(--fs-s); }

/* ---------- Footer on the mat ---------- */
.foot { padding-top: 64px; padding-bottom: 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.foot p { color: var(--on-mat-muted); max-width: 32ch; margin-top: 12px; }
.foot h2 { font-size: var(--fs-s); font-stretch: 100%; font-variation-settings: "wdth" 100; font-weight: 700; color: var(--on-mat); margin-bottom: 8px; letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-mat-muted); text-decoration: none; }
.foot li a:hover { color: var(--on-mat); text-decoration: underline; }
.foot .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--grid-strong); font-size: var(--fs-s); color: var(--on-mat-muted); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field > span { font-weight: 700; font-size: var(--fs-s); }
.input, .field input, .field select {
  min-height: 44px; width: 100%; padding: 0 12px;
  border: 0; border-radius: var(--r-m); box-shadow: var(--hairline);
  background: var(--sheet); color: var(--ink); font: inherit;
}
.input:focus-visible, .field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--mat); margin: 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.inline-form .field { flex: 1 1 220px; }
.msg { padding: 14px 16px; border-radius: var(--r-m); font-size: var(--fs-s); }
.msg strong { display: block; font-size: var(--fs-m); margin-bottom: 2px; }
.msg.error { background: var(--danger-bg); color: var(--danger); }
.msg.error p, .msg.error strong { color: var(--ink); }
.msg.info { background: color-mix(in oklab, var(--mark) 22%, var(--sheet)); }
.msg .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ---------- App ---------- */
.app-body { min-height: 100vh; display: flex; flex-direction: column; }
.app-body .mat.top { flex: none; }
.app-top { display: flex; align-items: center; gap: 12px; height: var(--nav-h); }
.app-top .brand { margin-right: 0; }
.app-top .file { margin-right: auto; color: var(--on-mat-muted); font-size: var(--fs-s); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-top .file strong { color: var(--on-mat); font-weight: 600; }
.app-top .who { color: var(--on-mat-muted); font-size: var(--fs-s); white-space: nowrap; }
.app-top .who strong { color: var(--on-mat); }
.app-main { flex: 1; }
.workspace { padding-top: 24px; padding-bottom: 48px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.panes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pane-sheet { background: var(--sheet); color: var(--ink); border-radius: var(--r-m); box-shadow: var(--sheet-shadow); padding: 12px; }
.pane-sheet header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 4px 10px; font-weight: 700; font-size: var(--fs-s); }
.pane-sheet header span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
[data-pane] { position: relative; overflow: hidden; touch-action: none; user-select: none; aspect-ratio: 1; border-radius: var(--r-s); background: #fff; }
[data-pane].is-zoomed { cursor: grab; }
[data-pane] .pane-canvas { position: absolute; }
[data-pane] .pane-canvas img { width: 100%; height: 100%; display: block; object-fit: contain; }
[data-pane] .pane-canvas img.px { image-rendering: pixelated; }
.pane-note { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 32px; text-align: center; background: var(--sheet); color: var(--ink); }
.pane-note strong { font-size: var(--fs-l); }
.pane-note p { color: var(--muted); max-width: 32ch; }
.pane-note .actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 6px; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--rule); border-top-color: var(--mat); animation: spin 800ms linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.is-retracing [data-pane="preview"] img { opacity: 0.45; transition: opacity 150ms; }
.app-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 16px; }
.app-empty { display: grid; place-items: center; padding: 24px 0 64px; }
.app-empty .sheet { width: min(560px, 100%); }

.panel { background: var(--sheet); color: var(--ink); border-radius: var(--r-l); box-shadow: var(--sheet-shadow); padding: 24px; display: grid; gap: 22px; }
.panel h2 { font-size: var(--fs-l); }
.panel fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.panel legend, .panel .label { font-weight: 700; font-size: var(--fs-s); margin-bottom: 8px; padding: 0; }
.panel .seg { background: var(--rule); display: flex; flex-wrap: wrap; }
.panel .seg label { flex: 1; }
.panel .seg label > span { width: 100%; color: var(--ink); padding: 0 8px; }
.panel .seg input:checked + span { background: var(--ink); color: var(--paper); }
.panel .hint { font-size: var(--fs-xs); color: var(--muted); margin-top: 6px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; cursor: pointer; font-weight: 700; font-size: var(--fs-s); }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--rule-strong); position: relative; cursor: pointer; margin: 0; transition: background-color 150ms; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--lift); transition: translate 180ms cubic-bezier(0.2, 0, 0, 1); }
.switch input:checked { background: var(--mat); }
.switch input:checked::after { translate: 18px 0; }
.panel .stats dt, .panel .stats dd { border-top-color: var(--rule); padding: 7px 0; font-size: var(--fs-s); }
.panel .stats dt { color: var(--muted); }
.download { display: grid; gap: 8px; }
.download .btn { width: 100%; min-height: 52px; font-size: var(--fs-l); }
.download p { font-size: var(--fs-xs); color: var(--muted); }
.signup { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-l); background: color-mix(in oklab, var(--mark) 20%, var(--sheet)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--mark) 60%, transparent); }
.signup h3 { font-size: var(--fs-l); }
.signup p { font-size: var(--fs-s); color: var(--muted); }
.signup form { display: grid; gap: 10px; }
.signup .btn { width: 100%; }
.soon { padding: 16px 18px; border-radius: var(--r-l); box-shadow: var(--hairline); background-image: repeating-linear-gradient(-45deg, transparent 0 10px, var(--rule) 10px 11px); }
.soon h3 { font-size: var(--fs-m); display: flex; justify-content: space-between; gap: 8px; }
.soon h3 span { font-size: var(--fs-xs); font-weight: 600; padding: 2px 8px; border-radius: var(--r-s); background: var(--ink); color: var(--paper); font-stretch: 100%; font-variation-settings: "wdth" 100; }
.soon ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.soon li { display: flex; gap: 8px; color: var(--muted); font-size: var(--fs-s); }
.soon li::before { content: ""; width: 12px; height: 12px; margin-top: 5px; flex: none; border: 1.5px dashed var(--muted); border-radius: var(--r-s); }

/* ---------- Account ---------- */
.dash { display: grid; gap: 32px; }
.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.card { grid-column: span 12; background: var(--sheet); border-radius: var(--r-l); box-shadow: var(--card-shadow); padding: 28px; min-width: 0; }
.card.half { grid-column: span 6; }
.card.third { grid-column: span 4; }
.card.two-thirds { grid-column: span 8; }
.card > h2 { font-size: var(--fs-l); margin-bottom: 16px; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head h2 { font-size: var(--fs-l); }
.big { font-size: var(--fs-h2); font-weight: 800; line-height: 1; font-stretch: 125%; font-variation-settings: "wdth" 125; font-variant-numeric: tabular-nums; }
.buckets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.buckets div { padding-top: 10px; border-top: 3px solid var(--rule-strong); }
.buckets div:first-child { border-top-color: var(--mark); }
.buckets dt { font-size: var(--fs-xs); color: var(--muted); }
.buckets dd { margin: 2px 0 0; font-weight: 800; font-size: var(--fs-l); font-variant-numeric: tabular-nums; }
.data td, .data th { font-size: var(--fs-s); padding-right: 12px; }
.data td.r, .data th.r { text-align: right; }
.data .empty td { color: var(--muted); padding: 24px 0; }
.badge { display: inline-block; padding: 1px 8px; border-radius: var(--r-s); font-size: var(--fs-xs); font-weight: 600; box-shadow: var(--hairline); white-space: nowrap; }
.badge.good { background: color-mix(in oklab, var(--ok) 16%, transparent); box-shadow: none; }
.badge.warn { background: color-mix(in oklab, var(--mark) 40%, transparent); box-shadow: none; }
.badge.bad { background: var(--danger-bg); color: var(--danger); box-shadow: none; }
.secret { display: grid; gap: 10px; padding: 16px; border-radius: var(--r-m); background: color-mix(in oklab, var(--mark) 22%, var(--sheet)); }
.secret code { display: block; padding: 10px 12px; border-radius: var(--r-s); background: var(--sheet); font-size: var(--fs-s); overflow-wrap: anywhere; }
.meter { height: 12px; border-radius: var(--r-s); background: var(--rule); overflow: hidden; margin: 12px 0 8px; }
.meter span { display: block; height: 100%; background: var(--mat); }
.chart { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); align-items: end; gap: 3px; height: 120px; margin-top: 12px; padding-bottom: 1px; box-shadow: inset 0 -1px 0 var(--rule-strong); }
.chart span { display: block; min-height: 2px; border-radius: 2px 2px 0 0; background: var(--mat); }
.chart span.zero { background: var(--rule); }
.chart-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); }
.signin { max-width: 520px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .demo-grid { grid-template-columns: 1fr; }
  .side { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
  .side .block + .block { margin-top: 0; }
  .picker { grid-template-columns: repeat(6, 1fr); }
  .side .block:first-child { grid-column: 1 / -1; }
  .claims { grid-template-columns: 1fr 1fr; }
  .workspace { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .aside { position: static; }
  .docs-grid { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .docs-nav strong { display: none; }
  .card.third, .card.half, .card.two-thirds { grid-column: span 12; }
}
@media (max-width: 860px) {
  .hero-grid, .page-head.with-tool { grid-template-columns: 1fr; gap: 40px; padding-bottom: 64px; }
  .sheet { rotate: -0.6deg; }
  .sec-head, .paths, .formats, .cutlists, .price-note, .tips { grid-template-columns: minmax(0, 1fr); }
  .sec-head { gap: 16px; }
  .claims { grid-template-columns: 1fr; }
  .uses li { grid-template-columns: 1fr; gap: 6px; }
  .uses a { justify-self: start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .nav a.link.hide-sm { display: none; }
  .demo-head { flex-direction: column; align-items: start; gap: 12px; }
  .buckets { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --ruler: 0px; }
  .ruler-x { display: none; }
  .mat::before { display: none; }
  .wrap { padding: 0 16px; }
  .hero-grid { padding-top: 24px; }
  .page-head { padding-top: 16px; padding-bottom: 48px; }
  .sheet { padding: 18px; rotate: 0deg; }
  .dropzone { padding: 32px 20px 24px; }
  .paper-sec { padding: 64px 0; }
  .side { grid-template-columns: 1fr; }
  .picker { grid-template-columns: repeat(3, 1fr); }
  .path, .card { padding: 22px; }
  .nav .btn-mark { padding: 0 14px; }
  .panes { grid-template-columns: 1fr; }
  .app-top .file, .app-top .who { display: none; }
  .app-top .brand { margin-right: auto; }
  .nav .link.hide-xs { display: none; }
  .cutlist th, .cutlist td { padding-right: 8px; }
  .data .hide-xs { display: none; }
}

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

/* App pane titles and toolbar hint */
.pane-sheet header h2 { font-size: var(--fs-s); font-weight: 700; font-stretch: 100%; font-variation-settings: "wdth" 100; letter-spacing: 0; line-height: 1.3; }
.app-hint { font-size: var(--fs-s); color: var(--on-mat-muted); align-self: center; }

/* content pages */
.after { margin-top: 20px; }
.prose pre { margin-top: 0.6em; }

/* Usage chart: one series, so one hue (mat green, mint in dark). 4px rounded data ends, 2px gaps. */
:root { --bar: #1d5c4a; }
@media (prefers-color-scheme: dark) { :root { --bar: #7fd1b4; } }
.chart { gap: 2px; }
.chart span { position: relative; background: var(--bar); border-radius: var(--r-s) var(--r-s) 0 0; }
.chart span.zero { background: var(--rule); border-radius: 0; }
.chart span:hover { opacity: 0.8; }
.chart span[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 6px); left: 50%; translate: -50% 0;
  padding: 4px 8px; border-radius: var(--r-s); white-space: nowrap;
  background: var(--ink); color: var(--paper); font-size: var(--fs-xs); font-weight: 600; z-index: 2; pointer-events: none;
}
.chart span::before { content: ""; position: absolute; inset: -60px -1px 0; } /* taller hit area */

/* Gate fixes: the tilted sheet never widens the page; grid children may shrink below their content. */
.mat { overflow-x: clip; }
.two-col > *, .docs-grid > *, .paths > *, .formats > *, .cutlists > * { min-width: 0; }
.method.delete { color: var(--sheet); }

/* Token discipline: 1px rules are borders, not shadows; inline code has one size everywhere. */
.ruler-x { box-shadow: none; border-bottom: 1px solid var(--grid-strong); }
.ticks { box-shadow: none; border-top: 1px solid var(--rule-strong); }
.picker button[aria-pressed="true"] { box-shadow: none; outline: 2px solid var(--mark); outline-offset: -2px; }
.picker button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
:not(pre) > code { font-size: var(--fs-s); }
/* The compare handle is a 44px-wide target with a 2px line drawn down its middle. */
.demo-handle { width: 44px; margin-left: -22px; background: none; }
.demo-handle::before { inset: 0 21px; background: var(--handle); }
/* Account: show the sign-in form at first paint unless a session is likely (the inline script sets .probing). */
.probe-only { display: none; }
.probing .probe-only:not([hidden]) { display: block; }
.probing .probe-hide:not(.shown) { display: none; }
.secret { margin-bottom: 20px; }
/* Prose pages keep the page's left edge; only the measure narrows. */
.wrap.prose { max-width: 1240px; }
.wrap.prose > * { max-width: 70ch; }
.wrap.prose > table, .wrap.prose > .table-scroll { max-width: 860px; }
.signin h2 { font-size: var(--fs-xl); margin-bottom: 8px; }
/* Short pages: the footer sits at the bottom of the window. */
body:not(.app-body) { min-height: 100vh; display: flex; flex-direction: column; }
body:not(.app-body) > main { flex: 1; }
/* File inputs inside a button-label cover the whole label, so the label is the tap target. */
label.btn { position: relative; }
label.btn > input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; clip: auto; white-space: normal; cursor: pointer; font-size: 0; }
/* Paper sections share the mat's left ruler offset, so every block lines up with the logo. */
.paper-sec, .paper-sec.tight { padding-left: var(--ruler); }
@media (max-width: 1080px) {
  .docs-nav a[href^="#post-"], .docs-nav a[href^="#get-"], .docs-nav a[href^="#delete-"] { display: none; }
}
