/* ── Allpad ─────────────────────────────────────────────────
   Pale sky, soft white cards, one ink, and the objects do the
   talking. Apricot is the only accent and it only ever marks the
   thing being priced.
   ──────────────────────────────────────────────────────── */

:root {
  --sky-0: #D6E8F7;
  --sky-1: #E7F1FA;
  --sky-2: #F2F8FD;
  --paper: #F7FBFF;
  --card: #FFFFFF;
  --ink: #10151C;
  --ink-2: #4A5462;
  --ink-3: #8994A3;
  --ink-4: #B7C0CC;
  --line: rgba(16, 21, 28, .08);
  --line-2: rgba(16, 21, 28, .05);
  --accent: #D2622F;
  --accent-soft: #FBE6D9;
  --up: #17935B;
  --up-soft: #DDF1E6;
  --down: #D5463C;
  --down-soft: #F8E1DE;
  --sh-1: 0 1px 2px rgba(16, 32, 56, .04), 0 6px 20px rgba(16, 32, 56, .05);
  --sh-2: 0 16px 48px rgba(16, 32, 56, .10);
  --r: 22px;
  --r-sm: 14px;
  --maxw: 1180px;
  --sans: "Poppins", ui-rounded, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --ease: cubic-bezier(.22, .68, 0, 1);
  --gut: 40px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg, canvas { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }

h1, h2, h3 { font-weight: 400; letter-spacing: -.035em; margin: 0; line-height: 1.02; }
h1 { font-size: clamp(2.8rem, 7.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.06; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { width: min(var(--maxw), calc(100% - var(--gut))); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.up { color: var(--up); }
.dn { color: var(--down); }
.micro { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* ── nav ──────────────────────────────────────────────────── */

.nav { position: sticky; top: 0; z-index: 50; padding-top: 14px; pointer-events: none; }
.nav .wrap { display: flex; justify-content: space-between; gap: 12px; }
.pillbox {
  pointer-events: auto; display: flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-radius: 16px; padding: 6px; box-shadow: var(--sh-1);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.02rem; letter-spacing: -.03em; padding: 4px 10px 4px 8px; }
.brand img { height: 19px; width: auto; }
.navlinks { display: flex; }
.navlinks a { font-size: .84rem; color: var(--ink-2); padding: 7px 11px; border-radius: 10px; transition: background .2s, color .2s; }
.navlinks a:hover { background: rgba(16, 21, 28, .05); color: var(--ink); }
.navlinks a.on { color: var(--ink); background: rgba(16, 21, 28, .05); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  font-size: .86rem; font-weight: 500; padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(16, 21, 28, .18); }
.btn.ghost { background: transparent; color: var(--ink); border-color: transparent; }
.btn.ghost:hover { background: rgba(16, 21, 28, .05); box-shadow: none; }
.btn.light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.big { font-size: .95rem; padding: 13px 24px; }
.btn:disabled { background: rgba(16, 21, 28, .08); border-color: transparent; color: var(--ink-3); cursor: not-allowed; transform: none; box-shadow: none; }
.btn.busy { opacity: .55; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--ink-2);
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
  backdrop-filter: blur(8px);
}
.chip b { font-weight: 600; color: var(--ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); flex: none; }
.dot.on { background: var(--up); box-shadow: 0 0 0 3px rgba(23, 147, 91, .16); }
.dot.warn { background: var(--accent); box-shadow: 0 0 0 3px rgba(210, 98, 47, .16); }

/* ── hero ─────────────────────────────────────────────────── */

.hero {
  position: relative; min-height: 100svh; margin-top: -70px; padding: 150px 0 90px;
  display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(90% 55% at 50% 108%, rgba(251, 214, 190, .75), rgba(251, 214, 190, 0) 70%),
    linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 45%, var(--paper) 100%);
}
.hero canvas.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .wrap { position: relative; z-index: 2; text-align: center; }
.hero h1 { max-width: 12ch; margin: 0 auto; }
.hero h1 .word { color: var(--accent); display: inline-block; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.hero h1 .word.out { opacity: 0; transform: translateY(14px); }
.hero .sub { font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--ink-2); max-width: 42ch; margin: 22px auto 30px; }
.hero .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.hero .chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 30px; }

/* ── the statement that reads itself ──────────────────────── */

.readout { padding: clamp(90px, 14vw, 170px) 0; }
.readout p {
  font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.22; letter-spacing: -.03em;
  max-width: 24ch; margin: 0 auto; text-align: center;
}
.readout .w { color: var(--ink-4); transition: color .3s; }
.readout .w.lit { color: var(--ink-2); }
.readout .w.key.lit { color: var(--ink); font-weight: 600; }

/* ── sections ─────────────────────────────────────────────── */

.sec { padding: clamp(70px, 10vw, 130px) 0; position: relative; }
.sec-h { text-align: center; max-width: 40ch; margin: 0 auto clamp(34px, 5vw, 56px); }
.sec-h p { color: var(--ink-2); margin-top: 14px; }
.sec-h.left { text-align: left; margin-left: 0; }
.row-h { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.link { font-size: .86rem; color: var(--ink-2); }
.link:hover { color: var(--ink); }

/* floating objects between sections */
.bob { position: absolute; width: 64px; height: 64px; pointer-events: none; animation: bob 5s ease-in-out infinite; z-index: 1; filter: drop-shadow(0 10px 14px rgba(16, 32, 56, .12)); }
.bob.l { width: 88px; height: 88px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }

/* ── four things ──────────────────────────────────────────── */

.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.thing {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 18px 16px; box-shadow: var(--sh-1); cursor: pointer;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.thing:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.thing .obj { height: 132px; display: grid; place-items: center; margin: -4px 0 10px; }
.thing .obj img { height: 124px; width: auto; transition: transform .6s var(--ease); }
.thing:hover .obj img { transform: rotate(-6deg) scale(1.06); }
.thing .top { display: flex; justify-content: space-between; align-items: baseline; }
.thing .name { font-weight: 600; letter-spacing: -.02em; }
.thing .tk { font-family: var(--mono); font-size: .66rem; color: var(--ink-3); }
.thing .val { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.thing .v { font-family: var(--mono); font-size: 1.3rem; letter-spacing: -.03em; }
.thing .ch { font-family: var(--mono); font-size: .78rem; }
.thing .desc { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── the pot ──────────────────────────────────────────────── */

.pot { max-width: 820px; margin: 0 auto; }
.pot-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.bar {
  position: relative; height: 92px; border-radius: 18px; overflow: hidden; display: flex;
  box-shadow: inset 0 0 0 1px var(--line); background: var(--card);
}
.bar .side { display: grid; place-items: center; font-weight: 600; font-size: .9rem; letter-spacing: .02em; transition: flex-basis .9s var(--ease); min-width: 0; overflow: hidden; }
.bar .side.u { background: var(--up-soft); color: var(--up); }
.bar .side.d { background: var(--down-soft); color: var(--down); }
.bar .side span { white-space: nowrap; }
.bar .side small { display: block; font-family: var(--mono); font-weight: 400; font-size: .72rem; opacity: .8; text-align: center; }
.knob { position: absolute; top: -12px; bottom: 0; width: 2px; background: var(--ink); transform: translateX(-1px); transition: left .9s var(--ease); pointer-events: none; }
.knob::before { content: ""; position: absolute; top: 0; left: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.pot-foot { display: flex; justify-content: space-between; margin-top: 8px; }
.pot-cap { text-align: center; color: var(--ink-2); margin: 22px 0 0; min-height: 1.6em; }
.pot-ctl { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; margin-top: 26px; }
.pot-ctl input { width: min(320px, 70vw); }
.law { text-align: center; margin-top: 34px; }

.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-row button { font-family: var(--mono); font-size: .74rem; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; transition: all .2s; }
.chips-row button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips-row button.has:not(.on) { border-color: rgba(210, 98, 47, .5); color: var(--accent); }

input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; height: 24px; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; background: var(--line); border-radius: 3px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); margin-top: -7.5px; border: 3px solid #fff; box-shadow: var(--sh-1); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; }

/* ── three ways it can go / the freeze ────────────────────── */

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trio > div { padding: 6px 30px 0; border-left: 1px solid var(--line); }
.trio > div:first-child { border-left: 0; padding-left: 0; }
.trio h3 { font-size: 1.7rem; font-weight: 400; letter-spacing: -.03em; margin-bottom: 10px; }
.trio p { color: var(--ink-2); font-size: .92rem; margin: 0; }

.clock { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: stretch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); padding: 26px; }
.count { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 8px; }
.count > div { background: var(--sky-2); border-radius: var(--r-sm); padding: 16px 8px; text-align: center; }
.count b { display: block; font-weight: 300; font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.count span { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.timeline { position: relative; margin: 26px 4px 8px; height: 64px; }
.timeline .rail { position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: var(--line); }
.timeline .shut { position: absolute; top: 12px; height: 22px; border-radius: 11px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(210, 98, 47, .3); }
.timeline .tick { position: absolute; top: 16px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; border: 2px solid var(--ink-3); }
.timeline .tick.hot { border-color: var(--accent); background: var(--accent); }
.timeline .lab { position: absolute; top: 40px; transform: translateX(-50%); font-family: var(--mono); font-size: .66rem; color: var(--ink-3); white-space: nowrap; }
.rules { display: grid; gap: 0; }
.rules div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.rules div:last-child { border-bottom: 0; }
.rules span:first-child { color: var(--ink-2); }
.rules span:last-child { font-family: var(--mono); font-size: .82rem; text-align: right; }

/* ── the carousel ─────────────────────────────────────────── */

.rail-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: 196px; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 20px 22px;
  scrollbar-width: none; cursor: grab; margin: 0 calc((100vw - min(var(--maxw), 100vw - var(--gut))) / -2);
  padding-inline: calc((100vw - min(var(--maxw), 100vw - var(--gut))) / 2);
}
.rail-scroll::-webkit-scrollbar { display: none; }
.rail-scroll.drag { cursor: grabbing; scroll-snap-type: none; }
.tile {
  scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px 14px 12px; box-shadow: var(--sh-1); user-select: none; transition: transform .35s var(--ease);
}
.tile:hover { transform: translateY(-3px); }
.tile .th { display: flex; align-items: center; gap: 8px; }
.tile .th img { width: 38px; height: 38px; flex: none; pointer-events: none; }
.tile .th b { font-weight: 600; font-size: .9rem; letter-spacing: -.02em; line-height: 1.2; }
.tile .tv { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.tile .tv .mono:first-child { font-size: 1.05rem; }
.tile .tv .mono:last-child { font-size: .74rem; }
.tile svg { width: 100%; height: 34px; margin-top: 6px; }
.tile svg path { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.tile .per { font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; margin-top: 4px; }
.progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; width: 20%; background: var(--ink); border-radius: 3px; transition: transform .15s linear; }

/* ── the board ────────────────────────────────────────────── */

.seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.seg button { font-size: .78rem; background: transparent; border: 0; padding: 6px 13px; border-radius: 999px; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--ink); color: #fff; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line-2); font-size: .88rem; vertical-align: middle; }
td.r, th.r { text-align: right; }
tbody tr { cursor: pointer; transition: background .2s; }
tbody tr:hover { background: rgba(255, 255, 255, .7); }
.nm { display: flex; align-items: center; gap: 10px; }
.nm img { width: 30px; height: 30px; flex: none; }
.nm b { display: block; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.nm small { color: var(--ink-3); font-size: .72rem; }
.tkr { font-family: var(--mono); font-size: .72rem; color: var(--ink-2); }
.spark { width: 110px; height: 26px; }
.spark path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.src { font-family: var(--mono); font-size: .68rem; color: var(--ink-3); white-space: nowrap; }
.src:hover { color: var(--ink); }
.more { display: flex; justify-content: center; margin-top: 22px; }

/* ── faq ──────────────────────────────────────────────────── */

.faq { max-width: 760px; margin: 0 auto; }
.q { border-bottom: 1px solid var(--line); }
.q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; font-weight: 600; font-size: 1.02rem; letter-spacing: -.02em; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: "+"; font-weight: 300; font-size: 1.5rem; line-height: 1; color: var(--ink-2); transition: transform .3s var(--ease); }
.q[open] summary::after { transform: rotate(45deg); }
.q .a { color: var(--ink-2); font-size: .94rem; padding: 0 0 20px; max-width: 64ch; }
.q .a p:last-child { margin: 0; }

/* ── footer ───────────────────────────────────────────────── */

footer { padding: 70px 0 34px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.foot p { color: var(--ink-2); font-size: .86rem; max-width: 30ch; margin: 12px 0 16px; }
.foot h4 { margin: 0 0 12px; font-family: var(--mono); font-weight: 400; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.foot a { display: block; font-size: .86rem; color: var(--ink-2); padding: 3px 0; }
.foot a:hover { color: var(--ink); }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); }
.addr { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 12px; font-family: var(--mono); font-size: .7rem; color: var(--ink-2); cursor: pointer; max-width: 100%; }
.addr span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr .do { background: var(--ink); color: #fff; border-radius: 999px; padding: 3px 9px; font-size: .66rem; flex: none; }

/* ── reveal ───────────────────────────────────────────────── */

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in-view { opacity: 1; transform: none; }

/* ── the app ──────────────────────────────────────────────── */

.apppage { background: linear-gradient(180deg, var(--sky-1), var(--paper) 420px); min-height: 100vh; }
.desk { width: min(1360px, calc(100% - 32px)); margin: 20px auto 0; display: grid; grid-template-columns: 300px minmax(0, 1fr) 310px; gap: 16px; align-items: start; }
.col { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--sh-1); }
.col-h { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.search { width: 100%; border: 1px solid var(--line); background: var(--sky-2); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: .88rem; outline: none; margin-bottom: 10px; }
.search:focus { border-color: var(--ink-4); background: #fff; }
.seg.full { display: flex; width: 100%; margin-bottom: 10px; }
.seg.full button { flex: 1; padding: 6px 4px; font-size: .74rem; }
.list { max-height: calc(100vh - 280px); overflow-y: auto; display: grid; gap: 2px; margin-right: -8px; padding-right: 4px; }
.li { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; text-align: left; transition: background .2s; }
.li:hover { background: var(--sky-2); }
.li.on { background: var(--sky-1); }
.li img { width: 32px; height: 32px; flex: none; }
.li .n { flex: 1; min-width: 0; font-size: .86rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.li .n small { display: block; font-family: var(--mono); font-size: .62rem; color: var(--ink-3); font-weight: 400; }
.li .v { font-family: var(--mono); font-size: .76rem; text-align: right; line-height: 1.25; }
.li .v small { display: block; font-size: .64rem; }
.livedot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: 2px; }

.ticket-head { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.ticket-head .big { width: 84px; height: 84px; flex: none; }
.ticket-head h2 { font-size: 2rem; }
.ticket-head .t { flex: 1; min-width: 0; }
.ticket-head .t small { color: var(--ink-3); font-size: .78rem; display: block; margin-top: 2px; }
.ticket-head .last { text-align: right; }
.ticket-head .last .v { font-family: var(--mono); font-size: 1.7rem; letter-spacing: -.04em; }

.chart { position: relative; margin-top: 12px; }
.chart svg { width: 100%; height: 220px; overflow: visible; }
.chart .grid { stroke: var(--line-2); }
.chart .yl, .chart .xl { font-family: var(--mono); font-size: 9.5px; fill: var(--ink-3); }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart .area { fill: url(#fillg); }
.chart .endpt { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.chart .xh { stroke: var(--ink-4); stroke-dasharray: 3 3; }
.chart .xd { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: crosshair; }
.tip { position: absolute; pointer-events: none; min-width: 110px; background: var(--ink); color: #fff; border-radius: 10px; padding: 7px 10px; box-shadow: var(--sh-2); }
.tip b { display: block; font-family: var(--mono); font-weight: 500; font-size: .84rem; }
.tip span { font-size: .7rem; opacity: .7; }
.chart-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: .66rem; color: var(--ink-3); }

.field { margin-top: 20px; }
.field > .k { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.field > .k b { font-family: var(--sans); font-weight: 600; font-size: .9rem; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.note { font-size: .76rem; color: var(--ink-3); margin: 6px 0 0; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.sidebtn { border: 1px solid var(--line); background: var(--card); border-radius: var(--r-sm); padding: 13px 15px; text-align: left; cursor: pointer; transition: all .2s; }
.sidebtn b { display: block; font-weight: 600; }
.sidebtn span { font-size: .76rem; color: var(--ink-3); }
.sidebtn.u.on { background: var(--up-soft); border-color: rgba(23, 147, 91, .45); color: var(--up); }
.sidebtn.d.on { background: var(--down-soft); border-color: rgba(213, 70, 60, .45); color: var(--down); }
.sidebtn.on span { color: inherit; opacity: .8; }
.amount { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 15px; background: var(--sky-2); }
.amount:focus-within { border-color: var(--ink-4); background: #fff; }
.amount input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.5rem; letter-spacing: -.03em; }
.amount em { font-style: normal; font-family: var(--mono); font-size: .74rem; color: var(--ink-3); }
.out { margin-top: 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 2px 15px; }
.krow { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .86rem; }
.krow:last-child { border-bottom: 0; }
.krow .k { color: var(--ink-2); }
.krow .v { font-family: var(--mono); font-size: .82rem; text-align: right; }
.scen { width: 100%; margin-top: 6px; }
.scen td { padding: 8px 0; font-size: .84rem; cursor: default; }
.scen tr:hover { background: none; }
.notice { display: flex; align-items: center; gap: 14px; background: var(--accent-soft); border-radius: var(--r-sm); padding: 13px 15px; margin-top: 16px; }
.notice[hidden] { display: none; }
.notice b { display: block; font-size: .88rem; }
.notice span { font-size: .78rem; color: var(--ink-2); }
.notice .btn { flex: none; padding: 8px 14px; }
.wide { width: 100%; margin-top: 18px; padding: 15px; font-size: .92rem; }
.status { font-family: var(--mono); font-size: .7rem; color: var(--ink-3); min-height: 1.5em; margin: 10px 0 0; }
.status.bad { color: var(--down); }
.status.good { color: var(--up); }
.fine { font-size: .74rem; color: var(--ink-3); margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line-2); }
.fine code { font-family: var(--mono); font-size: .95em; color: var(--ink-2); }
.pots { display: grid; gap: 12px; }
.pot-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: .86rem; }
.pot-row .pb { grid-column: 1 / -1; height: 10px; border-radius: 99px; background: var(--sky-2); overflow: hidden; }
.pot-row .pb i { display: block; height: 100%; border-radius: 99px; transition: width .6s var(--ease); }
.pot-row.u .pb i { background: var(--up); }
.pot-row.d .pb i { background: var(--down); }
.count.small b { font-size: 1.9rem; }
.count.small > div { padding: 10px 4px; }
.vrow { display: flex; gap: 8px; margin-top: 12px; }
.vrow .btn { flex: 1; }
.empty-state { text-align: center; padding: 12px 6px 4px; }
.empty-state img { width: 72px; height: 72px; margin: 0 auto 6px; }
.empty-state p { font-size: .82rem; color: var(--ink-2); margin: 0; }

.sheet { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; }
.sheet[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(16, 24, 36, .32); backdrop-filter: blur(6px); }
.sheet-card { position: relative; width: min(380px, calc(100% - 32px)); background: #fff; border-radius: var(--r); padding: 20px; box-shadow: var(--sh-2); }
.sheet-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sheet-h h3 { font-size: 1.1rem; }
.sheet-x { border: 0; background: var(--sky-2); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.wopt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; margin-bottom: 8px; text-align: left; }
.wopt:hover { background: var(--sky-2); }
.wopt img { width: 30px; height: 30px; border-radius: 8px; }
.wopt b { flex: 1; font-weight: 500; }
.wopt small { color: var(--ink-3); font-size: .74rem; }
.sheet-note { font-size: .76rem; color: var(--ink-3); margin: 8px 0 0; }

/* ── docs ─────────────────────────────────────────────────── */

.docs { width: min(1100px, calc(100% - 40px)); margin: 30px auto 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 50px; }
.toc { position: sticky; top: 90px; align-self: start; }
.toc a { display: block; font-size: .86rem; color: var(--ink-2); padding: 5px 0; }
.toc a:hover { color: var(--ink); }
.doc { max-width: 70ch; padding-bottom: 80px; }
.doc h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 10px 0 16px; }
.doc .lead { font-size: 1.1rem; color: var(--ink-2); }
.doc section { padding-top: 34px; margin-top: 34px; border-top: 1px solid var(--line); }
.doc h2 { font-size: 1.9rem; margin-bottom: 14px; }
.doc p, .doc li { color: var(--ink-2); }
.doc code, .doc .mono { font-family: var(--mono); font-size: .86em; background: var(--sky-2); border-radius: 6px; padding: 1px 5px; color: var(--ink); }
.doc ul { padding-left: 18px; }
.doc li { margin-bottom: 8px; }
.doc table { margin: 16px 0; }
.doc td { cursor: default; }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 14px 16px; margin: 18px 0; }
.callout b { display: block; margin-bottom: 4px; }
.callout p { margin: 0; }

/* ── responsive ───────────────────────────────────────────── */

@media (max-width: 1100px) {
  .desk { grid-template-columns: 270px minmax(0, 1fr); }
  .desk > .side-col { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .navlinks { display: none; }
  .four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trio { grid-template-columns: 1fr; gap: 26px; }
  .trio > div { border-left: 0; padding: 0; }
  .clock { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: 1fr; }
  .toc { position: static; display: none; }
  .hide-md { display: none; }
}
@media (max-width: 780px) {
  .desk { grid-template-columns: 1fr; }
  .ticket-col { order: -1; }
  .list { max-height: 340px; }
  .ticket-head .big { width: 60px; height: 60px; }
  .ticket-head h2 { font-size: 1.5rem; }
}
@media (max-width: 560px) {
  :root { --gut: 32px; }
  .four { gap: 10px; }
  .thing { padding: 12px; }
  .thing .obj { height: 96px; }
  .thing .obj img { height: 90px; }
  .thing .v { font-size: 1.05rem; }
  .hide-sm { display: none; }
  .bob { display: none; }
  .row-h { flex-direction: column; align-items: flex-start; }
  .foot { grid-template-columns: 1fr; }
  .nav .pillbox.right .btn.ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
.foot > div, .foot-base > * { min-width: 0; }
.addr span:first-child { min-width: 0; }
.doc table { display: block; overflow-x: auto; max-width: 100%; }
@media (max-width: 900px) { .docs { grid-template-columns: minmax(0, 1fr); } }
.doc p, .doc li { overflow-wrap: anywhere; }
.notice .btn[hidden], .chip[hidden] { display: none; }
.foot a.brand { display: inline-flex; padding: 0; color: var(--ink); font-size: 1.02rem; }
