/* Diskist: a statement of account for a disk. Ledger paper, navy ink, hairline rules, tabular
   figures, and one chart you can operate. The ring map's own spectrum is the only color. */

:root {
  --ledger: #f5e0d0;
  --ledger-2: #eed3c0;
  --ledger-3: #e3c1aa;
  --ink: #14213d;
  --ink-2: #39435f;
  --ink-3: #4f566c;
  --hair: rgba(20, 33, 61, .17);
  --hair-2: rgba(20, 33, 61, .34);
  --bar: rgba(20, 33, 61, .055);
  --bar-lit: rgba(20, 33, 61, .13);
  --gap: var(--ledger);
  --crimson: #b22e3a;
  --crimson-deep: #96222e;
  --on-crimson: #fff6f0;
  --press: #14213d;
  --on-press: #f8e7da;
  --hidden: #575757;
  --hatch: rgba(20, 33, 61, .42);
  --grain-blend: multiply;
  --grain: .05;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease-settle: cubic-bezier(.22, 1, .36, 1);
  --ease-drop: cubic-bezier(.34, 1.56, .64, 1);

  --gutter: clamp(16px, 3.6vw, 56px);
  --measure: 64ch;
  color-scheme: light;
}

/* The night ledger: the same statement in the dark. Navy paper, salmon ink. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ledger: #0f1830;
    --ledger-2: #15203b;
    --ledger-3: #1e2b4a;
    --ink: #f4ddcc;
    --ink-2: #d6c2b4;
    --ink-3: #b9a89e;
    --hair: rgba(244, 221, 204, .15);
    --hair-2: rgba(244, 221, 204, .32);
    --bar: rgba(244, 221, 204, .06);
    --bar-lit: rgba(244, 221, 204, .14);
    --crimson: #c23b47;
    --crimson-deep: #a72f3a;
    --press: #f4ddcc;
    --on-press: #0f1830;
    --hidden: #575757;
    --hatch: rgba(244, 221, 204, .45);
    --grain-blend: screen;
    --grain: .035;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ledger: #0f1830; --ledger-2: #15203b; --ledger-3: #1e2b4a; --ink: #f4ddcc; --ink-2: #d6c2b4;
  --ink-3: #b9a89e; --hair: rgba(244, 221, 204, .15); --hair-2: rgba(244, 221, 204, .32);
  --bar: rgba(244, 221, 204, .06); --bar-lit: rgba(244, 221, 204, .14); --crimson: #c23b47;
  --crimson-deep: #a72f3a; --press: #f4ddcc; --on-press: #0f1830; --hatch: rgba(244, 221, 204, .45);
  --grain-blend: screen; --grain: .035; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--ledger);
  color: var(--ink);
  font: 400 16.5px/1.55 var(--sans);
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
/* Paper grain, fixed, never in the way. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: var(--grain);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .08 0 0 0 0 .13 0 0 0 0 .24 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
::selection { background: var(--ink); color: var(--ledger); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em { font-style: italic; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.keep { white-space: nowrap; }
.line { display: block; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 80; background: var(--press); color: var(--on-press); padding: 10px 14px; font: 600 14px var(--sans); }
.skip:focus { top: 12px; }
.defs { position: absolute; }
.dot { color: var(--ink-3); }

.kicker, .label {
  font: 500 11px/1.35 var(--mono);
  font-variation-settings: "wdth" 88;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

kbd {
  display: inline-block;
  min-width: 1.75em;
  padding: .14em .42em .1em;
  border: 1px solid var(--hair-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--ledger) 55%, #fff 45%);
  font: 500 .84em/1.25 -apple-system, BlinkMacSystemFont, "Helvetica Neue", var(--sans);
  text-align: center;
  color: var(--ink);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) kbd { background: var(--ledger-3); } }
:root[data-theme="dark"] kbd { background: var(--ledger-3); }
.keys { display: inline-flex; gap: .22em; white-space: nowrap; vertical-align: baseline; }

/* ---- The masthead ------------------------------------------------------------------------- */

.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ledger) 90%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair);
}
.mast-in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; height: 62px; }
.mast-in > * { min-width: 0; }
.mast-in.plain { grid-template-columns: minmax(0, 1fr) auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand .mark { width: 28px; height: 28px; flex: none; border-radius: 7px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .mark { box-shadow: 0 0 0 1px var(--hair-2); } }
:root[data-theme="dark"] .brand .mark { box-shadow: 0 0 0 1px var(--hair-2); }
.wordmark { font: 400 29px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.mast-status {
  font: 500 10.5px/1 var(--mono);
  font-variation-settings: "wdth" 85;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.mast-nav { display: flex; justify-content: flex-end; align-items: center; gap: clamp(14px, 2vw, 28px); white-space: nowrap; }
.mast-nav a { font: 500 14.5px/1 var(--sans); text-decoration: none; }
.mast-nav a:hover { text-decoration: underline; }
.mast-cta { padding: 9px 14px; border: 1px solid var(--ink); border-radius: 999px; }
.mast-cta:hover { background: var(--ink); color: var(--ledger); text-decoration: none !important; }

/* ---- The audit: intro, the plate, the Collector ------------------------------------------ */

.audit {
  display: grid;
  grid-template-columns: minmax(0, .74fr) minmax(0, 2.26fr);
  gap: 0 clamp(28px, 3.2vw, 52px);
  padding-top: clamp(28px, 4vw, 52px);
  padding-bottom: clamp(36px, 5vw, 72px);
  align-items: start;
}
.audit > * { min-width: 0; }
.intro { padding-top: 6px; position: sticky; top: 92px; }
.intro h1 {
  margin-top: 18px;
  font: 400 clamp(52px, 5.5vw, 86px)/.9 var(--serif);
  letter-spacing: -.022em;
}
.intro h1 em { display: block; }
.deck { margin-top: 22px; font-size: 17px; line-height: 1.5; color: var(--ink); max-width: 34ch; }
.deck .line + .line { margin-top: .5em; }
.try { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--hair-2); }
.try ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.try .keyline { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 18px; font: 500 12px/1.6 var(--mono); font-variation-settings: "wdth" 85; color: var(--ink-2); margin-top: 2px; }
.price-line { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--hair-2); font-size: 15px; line-height: 1.6; display: flex; flex-wrap: wrap; gap: 2px 8px; }
.kl kbd { transition: transform .12s var(--ease-drop), background .12s linear; }
.kl.down kbd { transform: translateY(1px); background: var(--ink); color: var(--ledger); border-bottom-width: 1px; }
.kl { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.price-line strong { font-weight: 650; }
.arrow-link { font-weight: 600; text-decoration: underline; }
.arrow-link::after { content: " ↓"; text-decoration: none; display: inline-block; margin-left: 2px; }

.plate {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  grid-template-areas: "path path" "chart ledger" "list list" "band band" "nojs nojs";
  background: var(--ledger-2);
  border: 1px solid var(--hair-2);
  box-shadow: 0 1px 0 var(--hair), 0 18px 40px -28px rgba(20, 33, 61, .45);
  position: relative;
}
.plate > * { min-width: 0; }

.pathbar {
  grid-area: path;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--hair-2);
  background: var(--ledger-2);
}
.pathbar > * { min-width: 0; }
.up {
  width: 34px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--hair-2); border-radius: 7px; background: transparent; cursor: pointer;
}
.up svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.up:disabled { opacity: .35; cursor: default; }
.up:not(:disabled):hover { background: var(--bar-lit); }
.crumbs { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.crumbs::-webkit-scrollbar { display: none; }
.crumb {
  border: 0; background: transparent; padding: 5px 8px; border-radius: 6px; cursor: pointer;
  font: 500 14px/1.2 var(--sans); white-space: nowrap; color: var(--ink-2);
}
.crumb:hover { background: var(--bar-lit); color: var(--ink); }
.crumb.cur { color: var(--ink); font-weight: 650; background: var(--bar-lit); cursor: default; }
.sep { color: var(--ink-3); font-size: 15px; }
.sample-tag {
  font: 500 10.5px/1.3 var(--mono); font-variation-settings: "wdth" 85; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-2); white-space: nowrap;
  padding: 5px 9px; border: 1px dashed var(--hair-2); border-radius: 4px;
}

/* The chart: the map, its protractor, and four notes in the corners. */
.chart { grid-area: chart; position: relative; padding: clamp(14px, 2vw, 30px); border-right: 1px solid var(--hair); }
.map-box { position: relative; width: 100%; max-width: 620px; margin: 0 auto; aspect-ratio: 1; }
#map { width: 100%; height: 100%; overflow: visible; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.dial { fill: none; stroke: var(--hair-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tick { stroke: var(--ink-3); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .55; }
.tick.major { opacity: 1; stroke: var(--ink-2); }
.tick-label { fill: var(--ink-2); font: 500 15px var(--mono); text-anchor: middle; dominant-baseline: central; font-variant-numeric: tabular-nums; }
.flag { fill: var(--ink); font: 600 15px var(--mono); text-anchor: middle; dominant-baseline: central; font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--ledger-2); stroke-width: 8px; stroke-linejoin: round; opacity: 0; transition: opacity .15s linear; }
#map.flagged .flag { opacity: 1; }
#map.flagged .tick-label { opacity: .25; }
.span { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: butt; vector-effect: non-scaling-stroke; }
.arc { stroke: var(--gap); stroke-width: 1; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .12s linear; }
.sel { fill: none; stroke: var(--ink); stroke-width: 2.25; vector-effect: non-scaling-stroke; pointer-events: none; }
.arcs { transform-origin: 300px 300px; transform-box: view-box; }
.arcs.grow { animation: grow .38s var(--ease-settle) both; }
@keyframes grow { from { transform: scale(.86); opacity: .25; } to { transform: none; opacity: 1; } }

.center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 20%; display: grid; justify-items: center; gap: 1px; text-align: center; pointer-events: none;
}
.c-name {
  font: 600 clamp(10.5px, 1vw, 13px)/1.2 var(--sans);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
  max-width: 100%;
}
.c-size { font: 600 clamp(13px, 1.35vw, 17.5px)/1.2 var(--mono); font-variation-settings: "wdth" 80; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-note { font: 500 clamp(9.5px, .8vw, 11px)/1.3 var(--mono); font-variation-settings: "wdth" 85; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; min-height: 1.3em; }
.hole {
  position: absolute; left: 50%; top: 50%; width: 25.5%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 0; background: transparent; cursor: pointer; padding: 0;
}
.hole:disabled { cursor: default; }
.hole:not(:disabled):hover { background: var(--bar); }
.hole:focus-visible { outline-offset: -4px; }

.note {
  position: absolute; z-index: 1; margin: 0;
  font: 600 10px/1.4 var(--mono); font-variation-settings: "wdth" 85; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.note span { display: block; font-weight: 400; color: var(--ink-2); letter-spacing: .1em; }
.note::before { content: ""; display: block; width: 22px; height: 1px; background: var(--ink); margin-bottom: 6px; }
.n-tl { left: 16px; top: 14px; }
.n-tr { right: 16px; top: 14px; text-align: right; }
.n-tr::before, .n-br::before { margin-left: auto; }
.n-bl { left: 16px; bottom: 14px; }
.n-br { right: 16px; bottom: 14px; text-align: right; }

/* The ledger: the disk's gauge, the folder in view, and its items. */
.ledger { grid-area: ledger; position: relative; }
.ledger-in { position: absolute; inset: 0; display: flex; flex-direction: column; min-height: 0; }
.disk { padding: 14px 16px 12px; border-bottom: 1px solid var(--hair); }
.gauge { display: flex; height: 10px; margin-top: 9px; background: var(--ledger); border: 1px solid var(--hair-2); overflow: hidden; }
.gauge span { display: block; height: 100%; transition: width .5s var(--ease-settle); }
.g-used { background: var(--ink); }
.g-coll { background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px var(--ink); }
.g-trash { background: repeating-linear-gradient(135deg, var(--crimson) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--crimson); }
.gauge-legend {
  display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px;
  font: 500 11px/1.4 var(--mono); font-variation-settings: "wdth" 85; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.lg { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.k { display: inline-block; width: 9px; height: 9px; border: 1px solid var(--ink); }
.k-used { background: var(--ink); }
.k-coll { background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 3px); }
.k-trash { border-color: var(--crimson); background: repeating-linear-gradient(135deg, var(--crimson) 0 1px, transparent 1px 3px); }
.k-free { background: var(--ledger); }

.focus-head { padding: 12px 16px 10px; border-bottom: 1px solid var(--hair); }
.focus-name { font: 650 17px/1.25 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.focus-count { margin-top: 2px; font: 500 11.5px/1.4 var(--mono); font-variation-settings: "wdth" 85; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.rows {
  list-style: none; margin: 0; padding: 4px 0; flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  /* The ruled paper the rows sit on. */
  background: repeating-linear-gradient(to bottom, transparent 0 33px, var(--hair) 33px 34px);
  background-position: 0 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--hair-2) transparent;
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.6rem;
  align-items: center;
  height: 34px;
  background: linear-gradient(90deg, var(--bar) 0 var(--share), transparent var(--share));
  background-size: 100% 33px;
  background-repeat: no-repeat;
}
.row > * { min-width: 0; }
.row.lit { background: var(--bar-lit); background-size: 100% 33px; background-repeat: no-repeat; }
.item {
  display: grid; grid-template-columns: 10px 16px minmax(0, 1fr) auto; align-items: center; gap: 9px;
  height: 33px; padding: 0 8px 0 14px; border: 0; background: transparent; text-align: left; cursor: pointer;
  font: 500 14px/1 var(--sans);
}
.item:focus-visible { outline-offset: -2px; }
.sw { width: 10px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.ic { width: 16px; height: 16px; fill: none; stroke: var(--ink-2); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sz { font: 500 12.5px/1 var(--mono); font-variation-settings: "wdth" 80; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.take, .kept {
  justify-self: end; margin-right: 10px; width: 4.8rem; height: 25px;
  font: 600 10.5px/1 var(--mono); font-variation-settings: "wdth" 85; letter-spacing: .1em; text-transform: uppercase;
  display: grid; place-items: center; white-space: nowrap;
}
.take { border: 1px solid var(--hair-2); border-radius: 999px; background: color-mix(in srgb, var(--ledger) 70%, transparent); cursor: pointer; }
.take:hover { background: var(--ink); color: var(--ledger); border-color: var(--ink); }
.kept { color: var(--ink-3); font-weight: 500; }
.plate:not(.live) .take { visibility: hidden; }

.hidden-note { padding: 11px 16px 13px; border-top: 1px solid var(--hair); }
.hidden-note[hidden] { display: none; }
.hn-h { display: flex; align-items: center; gap: 8px; font: 600 13.5px/1.3 var(--sans); }
.hn-b { margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }

/* The Collector band, and its list. */
.collector {
  grid-area: band;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 10px 16px;
  border-top: 1px solid var(--hair-2);
  background: var(--ledger);
  position: relative;
  transition: background .2s linear;
}
.collector > * { min-width: 0; }
.collector::after {
  content: ""; position: absolute; inset: 4px; border: 2px dashed var(--ink); border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity .15s linear;
}
.collector.target::after { opacity: .45; }
.collector.over { background: var(--ledger-3); }
.collector.over::after { opacity: 1; }
.c-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.c-icon .fill { fill: var(--ink); stroke: none; }
.collector.drop .c-icon svg { animation: drop .55s var(--ease-drop); }
@keyframes drop { 0% { transform: translateY(-7px) scale(.9); } 100% { transform: none; } }
.c-text { display: grid; gap: 2px; font-size: 14.5px; line-height: 1.35; }
.c-text strong { font-weight: 650; }
.c-sub { font-size: 13px; color: var(--ink-2); }
.c-count { font: 600 15px/1.3 var(--mono); font-variation-settings: "wdth" 85; font-variant-numeric: tabular-nums; }
.c-toggle {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 2px 0; cursor: pointer;
  font: 500 14.5px/1.3 var(--sans); font-variant-numeric: tabular-nums;
}
.c-toggle strong { font-family: var(--mono); font-variation-settings: "wdth" 80; font-weight: 650; }
.chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease-settle); }
.c-toggle[aria-expanded="false"] .chev { transform: rotate(180deg); }
.c-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.btn {
  height: 38px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  font: 600 14px/1 var(--sans); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
}
.btn.quiet { background: transparent; border-color: var(--hair-2); }
.btn.quiet:hover { background: var(--bar-lit); }
.btn.danger { background: var(--crimson); color: var(--on-crimson); min-width: 8.5rem; justify-content: center; }
.btn.danger:hover { background: var(--crimson-deep); }
.btn.primary { background: var(--press); color: var(--on-press); }
.btn.primary:hover { filter: brightness(1.15); }
.btn.small { height: 28px; padding: 0 11px; font-size: 12.5px; border-color: var(--hair-2); background: transparent; }
.btn.small:hover { background: var(--bar-lit); }
.btn .keys kbd { font-size: 10px; }

.c-list { grid-area: list; border-top: 1px solid var(--hair-2); background: var(--ledger); padding: 10px 16px 12px; }
.c-list[hidden] { display: none; }
.c-list-h { font: 500 11px/1.4 var(--mono); font-variation-settings: "wdth" 88; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.c-list ul { list-style: none; margin: 0; padding: 0; }
.c-list li {
  display: grid; grid-template-columns: 16px minmax(0, 1fr) auto 6.2rem; align-items: center; gap: 10px;
  padding: 7px 0; border-top: 1px solid var(--hair);
}
.c-list li > * { min-width: 0; }
.c-list li .btn { justify-self: end; width: 6.2rem; justify-content: center; }
.c-nm { display: grid; font-size: 14px; }
.c-path { font: 400 11px/1.4 var(--mono); font-variation-settings: "wdth" 80; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; }

.nojs { grid-area: nojs; padding: 10px 16px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--ink-2); }
.receipt {
  grid-column: 2; margin-top: 14px; display: grid; gap: 4px; justify-self: start;
  padding: 10px 14px 11px; border: 1px dashed var(--hair-2); background: var(--ledger);
  font: 500 11.5px/1.5 var(--mono); font-variation-settings: "wdth" 85; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.receipt[hidden] { display: none; }
.r-h { letter-spacing: .16em; text-transform: uppercase; color: var(--ink); font-weight: 600; }
.r-line time { color: var(--ink); margin-right: .6em; }

.drag-chip {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; max-width: 280px;
  padding: 7px 12px; border-radius: 999px; background: var(--ledger); border: 1px solid var(--hair-2);
  box-shadow: 0 10px 24px -10px rgba(20, 33, 61, .5); font: 500 13px/1 var(--sans);
}
.drag-chip[hidden] { display: none; }
.dragging, .dragging * { cursor: grabbing !important; }

/* ---- The statements below the audit ------------------------------------------------------- */

.sheet { border-top: 1px solid var(--hair-2); padding-block: clamp(52px, 7vw, 104px); }
.spine { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 2.26fr); gap: 28px clamp(28px, 3.2vw, 52px); }
.spine > * { min-width: 0; }
.side { align-self: start; position: sticky; top: 92px; }
.side h2, .wide-head h2 { margin-top: 14px; font: 400 clamp(38px, 3.6vw, 56px)/.98 var(--serif); letter-spacing: -.015em; }
.side h2 em, .wide-head h2 em { font-style: italic; }
.body { max-width: 860px; }
.lede { font: 400 clamp(19px, 1.5vw, 22px)/1.45 var(--sans); color: var(--ink); margin-bottom: 28px; }
.aside { margin-top: 22px; font-size: 14.5px; color: var(--ink-2); }

.statement { width: 100%; border-collapse: collapse; font-size: 16px; }
.statement thead th {
  font: 500 10.5px/1.3 var(--mono); font-variation-settings: "wdth" 88; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2); text-align: left; padding: 0 0 10px; border-bottom: 2px solid var(--ink);
}
.statement thead th:last-child, .statement td:last-child { text-align: right; }
.statement tbody th, .statement tbody td, .statement tfoot th, .statement tfoot td { padding: 15px 18px 15px 0; border-bottom: 1px solid var(--hair-2); vertical-align: baseline; text-align: left; }
.statement tbody th, .statement tfoot th { font-weight: 650; width: 30%; }
.statement td:nth-child(2) { color: var(--ink-2); line-height: 1.5; }
.statement td:last-child {
  padding-right: 0; white-space: nowrap; width: 1%;
  font: 600 12px/1.4 var(--mono); font-variation-settings: "wdth" 85; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}
.statement tfoot th, .statement tfoot td { border-bottom: 4px double var(--ink); padding-top: 16px; }
.statement tfoot tr { border-top: 2px solid var(--ink); }

.two { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 4vw, 64px); max-width: none; }
.two > * { min-width: 0; }
.prose p { max-width: var(--measure); color: var(--ink); }
.prose p + p { margin-top: 1em; }
.prose .aside { color: var(--ink-2); }
.fda { padding: 22px 24px 24px; background: var(--ledger-2); border: 1px solid var(--hair-2); align-self: start; }
.split { margin: 0 0 22px; }
.split-bar { display: flex; height: 22px; border: 1px solid var(--hair-2); }
.split .label { margin-bottom: 8px; }
.split figcaption b { color: var(--ink); font-weight: 600; }
.s-read { flex: 0 0 95.44%; background: linear-gradient(90deg, #5d84c7 0 22%, #3f9aa3 22% 40%, #4f9e5c 40% 55%, #b59a3c 55% 68%, #c77a3d 68% 82%, #b84a52 82% 100%); }
.s-hid { flex: 1; background: var(--hidden); }
.split figcaption { margin-top: 8px; font: 500 11px/1.4 var(--mono); font-variation-settings: "wdth" 85; color: var(--ink-2); }
.steps { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 12px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 15.5px; line-height: 1.45; }
.steps li::before {
  content: counter(st); width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%;
  font: 600 11px/1 var(--mono); margin-top: -1px;
}

.band { background: var(--ledger-2); }
.wide-head { max-width: 900px; margin-bottom: clamp(30px, 4vw, 52px); }
.wide-head h2 { font-size: clamp(46px, 5.6vw, 92px); line-height: .92; }
.sequence { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.sequence li { padding: 22px 26px 4px 0; position: relative; min-width: 0; }
.sequence li + li { padding-left: 26px; border-left: 1px solid var(--hair-2); }
.sequence li::before {
  content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--ledger-2); border: 2px solid var(--ink);
}
.sequence li + li::before { left: -7px; }
.sequence li:last-child::before { background: var(--crimson); border-color: var(--crimson); }
.seq-h { font: 650 18px/1.3 var(--sans); margin-bottom: 8px; }
.sequence p:not(.seq-h) { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.rules-foot { margin-top: clamp(30px, 4vw, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 52px; padding-top: 18px; border-top: 1px solid var(--hair-2); }
.rules-foot p { font-size: 15.5px; display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 4px 12px; align-items: baseline; }
.rules-foot p > * { min-width: 0; }


.keygrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.keygrid li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-width: 0;
  padding: 15px 18px 15px 0; border-bottom: 1px solid var(--hair-2); font-size: 15.5px;
}
.keygrid li:not(:nth-child(3n + 1)) { padding-left: 18px; border-left: 1px solid var(--hair); }
.kg-n { font-weight: 550; }

.terms { margin: 0; display: grid; border-top: 2px solid var(--ink); }
.terms > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--hair-2); }
.terms > div > * { min-width: 0; }
.terms dt { font: 600 11px/1.9 var(--mono); font-variation-settings: "wdth" 88; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.terms dd { margin: 0; font-size: 16.5px; }
.terms.tight > div { grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); }

.stamps { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--hair-2); }
.stamps > div { min-width: 0; padding: 20px 24px 24px 0; }
.stamps > div + div { padding-left: 24px; border-left: 1px solid var(--hair-2); }
.stamps dt { font: 600 11px/1.4 var(--mono); font-variation-settings: "wdth" 88; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.stamps dd { margin: 10px 0 0; font-size: 16.5px; line-height: 1.5; }
#sandbox .wide-head h2 { font-size: clamp(42px, 4.6vw, 72px); }
.account { padding-bottom: clamp(60px, 8vw, 120px); }
.figure { font-size: clamp(76px, 8vw, 132px) !important; line-height: .86 !important; letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.signup { display: grid; gap: 10px; align-content: start; }
.signup-label { font: 400 clamp(28px, 2.4vw, 36px)/1.05 var(--serif); }
.signup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 6px; }
.signup-row > * { min-width: 0; }
.signup input[type="email"] {
  height: 48px; padding: 0 14px; border: 1px solid var(--hair-2); border-bottom: 2px solid var(--ink); border-radius: 6px;
  background: color-mix(in srgb, var(--ledger) 60%, #fff 40%); color: var(--ink); font: 500 16px var(--sans);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .signup input[type="email"] { background: var(--ledger-2); } }
:root[data-theme="dark"] .signup input[type="email"] { background: var(--ledger-2); }
.signup input::placeholder { color: var(--ink-3); }
.signup .btn.primary { height: 48px; padding: 0 22px; font-size: 15px; }
.signup-note { font-size: 14px; color: var(--ink-2); }
.signup-note.bad { color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- The footer --------------------------------------------------------------------------- */

.foot { background: var(--ledger-2); border-top: 2px solid var(--ink); }
.foot-in { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px 28px; padding-block: 30px; }
.foot-in > * { min-width: 0; }
.by { font-size: 14.5px; color: var(--ink-2); white-space: nowrap; }
.by a { color: var(--ink); }
.foot-nav { display: flex; gap: 22px; justify-content: flex-end; font-size: 14.5px; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-mail { font: 500 12.5px/1.4 var(--mono); font-variation-settings: "wdth" 85; color: var(--ink-2); }
.foot-mail a { text-decoration: none; }
.flip { unicode-bidi: bidi-override; direction: rtl; }

/* ---- Plain pages: privacy, terms, support, not found ------------------------------------- */

.doc { padding-block: clamp(36px, 6vw, 88px); }
.doc .spine { align-items: start; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr); }
.doc h1 { margin-top: 14px; font: 400 clamp(42px, 3.9vw, 60px)/.96 var(--serif); letter-spacing: -.018em; }
.doc h1 em { font-style: italic; }
.doc-body { max-width: 720px; }
.doc-body > p:first-child { font-size: 19px; line-height: 1.5; }
.doc-body h2 { margin: 40px 0 10px; padding-top: 14px; border-top: 1px solid var(--hair-2); font: 650 19px/1.3 var(--sans); }
.doc-body p, .doc-body li { font-size: 16.5px; line-height: 1.6; }
.doc-body p + p { margin-top: .8em; }
.doc-body ul, .doc-body ol { margin: .6em 0 0; padding-left: 1.3em; }
.doc-body ul + p, .doc-body ol + p { margin-top: .9em; }
.doc .side .terms { margin-top: 34px; }
.doc .side .terms dd { font-size: 15px; }
.doc-body li + li { margin-top: .4em; }
.doc-body .stamp { margin-top: 12px; font: 500 11.5px/1.5 var(--mono); font-variation-settings: "wdth" 85; color: var(--ink-2); }
.mono { font: 500 .88em/1.4 var(--mono); font-variation-settings: "wdth" 85; }
.doc .terms { margin-top: 26px; }

/* ---- Widths ------------------------------------------------------------------------------- */

@media (max-width: 1240px) {
  .audit { grid-template-columns: minmax(0, 1fr); }
  .intro { position: static; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 44px; margin-bottom: 30px; }
  .intro > * { min-width: 0; }
  .intro .kicker, .intro h1 { grid-column: 1; }
  .intro h1 em { display: inline; }
  .intro .deck { grid-column: 1; max-width: 46ch; }
  .intro .try { grid-column: 2; grid-row: 1 / span 3; margin-top: 4px; }
  .intro .price-line { grid-column: 2; margin-top: 18px; }
  .receipt { grid-column: 1; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .fda { max-width: 560px; }
  .stamps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stamps > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stamps > div:nth-child(n + 3) { border-top: 1px solid var(--hair-2); }
  .sequence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sequence li:nth-child(3) { border-left: 0; padding-left: 0; }
  .sequence li:nth-child(3)::before { left: 0; }
  .sequence li:nth-child(n + 3) { border-top: 1px solid var(--hair-2); margin-top: 18px; }
}
@media (max-width: 1100px) {
  .doc .spine { grid-template-columns: minmax(0, 1fr); }
  .doc .side { position: static; }
}
@media (max-width: 1000px) {
  .spine { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .body { max-width: none; }
  .keygrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keygrid li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .keygrid li:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--hair); }
  .keygrid li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .plate { grid-template-columns: minmax(0, 1fr); grid-template-areas: "path" "chart" "ledger" "list" "band" "nojs"; }
  .chart { border-right: 0; border-bottom: 1px solid var(--hair); }
  .map-box { max-width: 520px; }
  .ledger-in { position: static; }
  .rows { flex: none; overflow: visible; }
  .intro { grid-template-columns: minmax(0, 1fr); }
  .intro .try, .intro .price-line { grid-column: 1; grid-row: auto; }
  .intro .try { margin-top: 24px; }
  .mast-status { display: none; }
  .mast-in { grid-template-columns: minmax(0, 1fr) auto; }
  /* The Collector stays in reach while the list scrolls under it. */
  .collector.has, .collector.counting { position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -10px 24px -18px rgba(20, 33, 61, .55); }
}
@media (max-width: 760px) {
  .mast-nav .wide { display: none; }
  .note { display: none; }
  .tick-label, .flag { font-size: 22px; }
  .chart { padding: 10px 6px 14px; }

  .rules-foot { grid-template-columns: minmax(0, 1fr); }
  .statement thead { display: none; }
  .statement, .statement tbody, .statement tfoot, .statement tr { display: block; }
  .statement tr { padding: 14px 0; border-bottom: 1px solid var(--hair-2); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; }
  .statement tbody tr:first-child { border-top: 2px solid var(--ink); }
  .statement tbody th, .statement tbody td, .statement tfoot th, .statement tfoot td { display: block; padding: 0; border: 0; width: auto; box-shadow: none; }
  .statement td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .statement td:last-child { grid-row: 1; grid-column: 2; text-align: right; width: auto; }
  .statement tfoot tr { border-bottom: 4px double var(--ink); }
  .terms > div, .terms.tight > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .foot-in { grid-template-columns: minmax(0, 1fr) auto; }
  .foot-nav { grid-column: 1 / -1; justify-content: flex-start; grid-row: 2; }
  .foot-mail { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .pathbar { grid-template-columns: auto minmax(0, 1fr); row-gap: 8px; }
  .sample-tag { grid-column: 1 / -1; justify-self: start; }
  .intro h1 { font-size: clamp(50px, 14vw, 64px); }
  .sequence { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 2px solid var(--ink); margin-left: 6px; }
  .sequence li, .sequence li + li { padding: 0 0 26px 22px; border-left: 0; border-top: 0 !important; margin-top: 0 !important; }
  .sequence li::before, .sequence li + li::before, .sequence li:nth-child(3)::before { left: -7px; top: 3px; }
  .keygrid { grid-template-columns: minmax(0, 1fr); }
  .stamps { grid-template-columns: minmax(0, 1fr); }
  .stamps > div, .stamps > div + div { padding: 18px 0; border-left: 0; }
  .stamps > div + div { border-top: 1px solid var(--hair-2); }
  .keygrid li, .keygrid li:nth-child(even) { padding-left: 0; border-left: 0; }
  .collector { grid-template-columns: 26px minmax(0, 1fr); padding: 10px 12px; gap: 10px 12px; }
  .c-actions { grid-column: 1 / -1; justify-content: stretch; }
  .c-actions .btn { flex: 1; justify-content: center; }
  .c-list li { grid-template-columns: 16px minmax(0, 1fr) auto; }
  .c-list li .btn { grid-column: 2 / -1; justify-self: start; }
  .signup-row { grid-template-columns: minmax(0, 1fr); }
  .item { padding-left: 10px; gap: 8px; }
  .take, .kept { margin-right: 8px; }
  .wordmark { font-size: 26px; }
  .mast-cta { padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* A phone has no keyboard: the key hints go, the words say Tap, and the chart moves up. */
.by-touch { display: none; }
@media (hover: none), (max-width: 560px) {
  .by-mouse { display: none; }
  .by-touch { display: inline; }
  li.keyline, .keyline.keyline { display: none !important; }
}
