/* LP Receipt. Plain CSS, no build step.
   The page is a printed statement: no cards, no shadows, structure comes from rules.
   The interface is ink on paper; colour is reserved for data (gain, loss, chart series).
   The receipt is the only object on the page. */

:root {
  color-scheme: light;
  --bg: #fcfcfa;
  --surface: #fcfcfa;
  --paper: #f1f0ea;
  --ink: #121211;
  --ink-2: #45443f;
  --muted: #74726b;
  --line: #e2e0d8;
  --line-strong: #bdbab0;
  --s1: #2a78d6;
  --s2: #eb6834;
  --pos: #0b7a53;
  --neg: #c2332b;
  --pos-fill: #1baf7a;
  --neg-fill: #e34948;
  --warn: #9a6400;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #101110; --surface: #101110; --paper: #1a1b19; --ink: #eeede8; --ink-2: #c2c1b8; --muted: #8f8d85;
    --line: #2a2b28; --line-strong: #4d4d47; --s1: #3987e5; --s2: #d95926;
    --pos: #3cc592; --neg: #f08080; --pos-fill: #199e70; --neg-fill: #e66767; --warn: #e0a640;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101110; --surface: #101110; --paper: #1a1b19; --ink: #eeede8; --ink-2: #c2c1b8; --muted: #8f8d85;
  --line: #2a2b28; --line-strong: #4d4d47; --s1: #3987e5; --s2: #d95926;
  --pos: #3cc592; --neg: #f08080; --pos-fill: #199e70; --neg-fill: #e66767; --warn: #e0a640;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--ink); color: var(--bg); }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; color: inherit; }
a, button { transition: background-color .15s, color .15s, border-color .15s, text-decoration-color .15s; }
.mono, .num, .r-val, .rate-v, .cal-v, .tick, .end-value { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted, .sub { color: var(--muted); }
.sub { font-size: 14px; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
:is(button, a, input, summary):focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

#app { max-width: 1080px; margin: 0 auto; padding: 0 20px 72px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--ink); }
.brand { color: var(--ink); text-decoration: none; font: 600 15px var(--mono); }
.top-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { width: 28px; height: 28px; display: inline-grid; place-items: center; border: 0; background: transparent; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { color: var(--ink); }

/* segmented control: language, chart period */
.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg button { border: 0; background: transparent; padding: 4px 11px; font: 500 12.5px var(--mono); cursor: pointer; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--ink); }
.seg button:hover { color: var(--ink); background: var(--paper); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* hero */
.hero { padding: 60px 0 44px; }
.hero h1 { font-size: clamp(30px, 4.8vw, 48px); line-height: 1.06; letter-spacing: -.03em; font-weight: 600; max-width: 21ch; text-wrap: balance; }
.lead { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }
.search { display: flex; margin-top: 28px; max-width: 640px; }
.search input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 0; border: 1px solid var(--ink); border-right: 0; background: transparent; color: var(--ink); font: 15px var(--mono); }
.search input::placeholder { color: var(--muted); }
.search input:focus-visible { outline-offset: -3px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 0; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn.primary { height: 48px; padding: 0 22px; font-size: 15px; background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
/* secondary actions are plain underlined text, not a second kind of button */
.btn.ghost { height: auto; padding: 0; border: 0; font-size: 14px; font-weight: 400; color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.btn.ghost:hover { background: transparent; color: var(--ink); text-decoration-color: currentColor; }
.link { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-strong); cursor: pointer; font-size: inherit; }
.link:hover { text-decoration-color: currentColor; }
.form-msg { margin-top: 10px; color: var(--neg); font-size: 14px; }
.safe { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* states */
.state { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 0; color: var(--ink-2); border-top: 2px solid var(--ink); }
.state > .spinner { margin-right: 8px; }
.state:has(> .spinner) { flex-direction: row; align-items: baseline; gap: 0; }
.state.small { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; flex-wrap: wrap; border-top: 0; }
.state.small:has(> .spinner) { justify-content: flex-start; gap: 0; }
.state-err { color: var(--neg); }
/* a block cursor, as if the receipt is still printing */
.spinner { width: 8px; height: 15px; background: currentColor; display: inline-block; vertical-align: -2px; margin-right: 8px; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } html { scroll-behavior: auto; } a, button { transition: none; } }
.banner { margin: 0 0 10px; font: 12.5px var(--mono); color: var(--muted); }

/* sections: wallet summary and one per pool */
.summary, .card { border-top: 2px solid var(--ink); padding-top: 18px; }
.cards { display: grid; }
.card { margin-top: 72px; scroll-margin-top: 16px; }
.sum-head, .card-head, .block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.sum-head { margin-bottom: 28px; }
.sum-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.card-head { margin-bottom: 30px; }
.card-head h2 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.card-head .sub { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.card-head .sub > span { display: inline-flex; align-items: center; gap: 8px; }
.chain { font: 400 12.5px var(--mono); color: var(--muted); margin-left: 6px; letter-spacing: 0; white-space: nowrap; }
/* status labels: a small square carries the state, the text stays ink */
.pill { display: inline-flex; align-items: center; gap: 6px; font: 12.5px var(--mono); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; background: var(--line-strong); flex: none; }
.pill.ok::before { background: var(--pos-fill); }
.pill.warn::before { background: var(--warn); }
.pill.bad::before, .pill.tier-red::before { background: var(--neg-fill); }
.pill.tier-green::before { background: var(--pos-fill); }
.pill.tier-yellow::before { background: var(--warn); }

.ep + .ep { margin-top: 32px; padding-top: 24px; border-top: 1px dashed var(--line-strong); }
.ep-head { margin-bottom: 22px; }
.ep-head h3, .big { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.08; letter-spacing: -.028em; font-weight: 600; color: var(--ink); text-wrap: balance; }
.amt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.amt.up { color: var(--pos); }
.amt.down { color: var(--neg); }
.ep-head .sub { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.ep-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); grid-template-areas: "why receipt" "extra receipt"; grid-template-rows: auto 1fr; gap: 28px 56px; align-items: start; }
.ep-grid > .why { grid-area: why; }
.ep-receipt { grid-area: receipt; }
.ep-extra { grid-area: extra; min-width: 0; }
.why { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 17px; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.why li:first-child { color: var(--ink); font-weight: 500; }

/* disclosure: closed positions, tables, deposits */
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.ep-closed summary, .more summary { display: flex; align-items: baseline; gap: 10px; }
.ep-closed summary::before, .more summary::before { content: "+"; font: 500 16px var(--mono); color: var(--muted); flex: none; width: 10px; }
.ep-closed details[open] > summary::before, .more[open] > summary::before { content: "\2212"; }
.ep-closed details[open] > summary { margin-bottom: 22px; }
.ep-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.ep-sum b { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.ep-sum .sub { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }

/* the three rates, read top to bottom as a ladder */
.rates { margin: 0; border-top: 1px solid var(--ink); }
.rate { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline; padding: 11px 0 12px; border-bottom: 1px solid var(--line); }
.rate dt { font-size: 15px; font-weight: 500; }
.rate dd { margin: 0; }
.rate-v { font-size: 18px; font-weight: 600; text-align: right; }
.rate-h { grid-column: 1 / -1; font-size: 13px; line-height: 1.45; color: var(--muted); max-width: 54ch; }
.rates-meta { margin-top: 10px; font: 12.5px var(--mono); color: var(--muted); }

/* receipt */
.receipt { background: var(--paper); padding: 20px 20px 28px; font-size: 14px; position: relative;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, radial-gradient(circle at 8px 0, #000 7px, transparent 7.5px) bottom left / 16px 8px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, radial-gradient(circle at 8px 0, #000 7px, transparent 7.5px) bottom left / 16px 8px repeat-x; }
.r-head { display: flex; justify-content: space-between; gap: 12px; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 1px dashed var(--line-strong); margin-bottom: 8px; }
.r-sub { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 16px 0 4px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.r-row { display: grid; grid-template-columns: minmax(0, 1fr) 60px auto; align-items: start; gap: 10px; padding: 7px 0; }
.r-row.total, .r-row.subtotal { grid-template-columns: minmax(0, 1fr) auto; }
.r-label { display: grid; gap: 2px; color: var(--ink); font: 13.5px/1.4 var(--mono); }
.r-hint { font: 12px/1.4 var(--sans); color: var(--muted); }
.r-val { text-align: right; white-space: nowrap; font-weight: 600; min-width: 84px; }
/* money in / out / now: label, dotted leader, amount */
.r-row.plain { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; }
.r-row.plain::before { content: ""; order: 2; flex: 1; min-width: 16px; border-bottom: 1px dotted var(--line-strong); transform: translateY(-3px); }
.r-row.plain .r-label { order: 1; }
.r-row.plain .r-val { order: 3; min-width: 0; font-weight: 500; }
.r-row.total { border-top: 1px solid var(--ink); margin-top: 8px; padding-top: 10px; font-size: 16px; }
.r-row.total .r-label { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.r-row.total .r-val { font-weight: 600; }
.r-row.subtotal { border-top: 1px dashed var(--line-strong); border-bottom: 1px dashed var(--line-strong); margin: 4px 0; }
.r-row.subtotal .r-label { font-weight: 600; }
.r-actions { margin-top: 14px; font-size: 13px; text-align: right; color: var(--ink-2); }
.bar { display: grid; grid-template-columns: 1fr 1fr; height: 8px; margin-top: 6px; }
.bar-half { display: flex; height: 100%; }
.bar-left { justify-content: flex-end; border-right: 1px solid var(--ink-2); }
.bar i { display: block; height: 100%; min-width: 2px; }
.bar i.neg { background: var(--neg-fill); }
.bar i.pos { background: var(--pos-fill); }

/* blocks inside a position */
.block { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.block h4 { font-size: 16px; font-weight: 600; letter-spacing: -.005em; }
.block-head { margin-bottom: 12px; align-items: flex-start; }
.more > summary { font-weight: 500; }
.mini-title { font-size: 13px; color: var(--muted); margin: 18px 0 2px; }

/* charts */
.chart { position: relative; }
.chart-plot { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart-empty { padding: 28px 0; color: var(--muted); font-size: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 14px; height: 3px; display: inline-block; }
.swatch-bold { height: 4px; }
.grid { stroke: var(--line); stroke-width: 1; }
.axis-zero { stroke: var(--line-strong); stroke-width: 1.2; }
.tick { fill: var(--muted); font-size: 11px; }
.line { stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.line-bold { stroke-width: 2.6; }
.area { opacity: .13; }
.dot { stroke: var(--surface); stroke-width: 2; }
.end-label { fill: var(--ink-2); font-size: 12px; font-family: var(--sans); }
.end-value { fill: var(--ink); font-size: 12px; font-weight: 600; }
.cross { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.event { stroke: var(--surface); stroke-width: 1.5; }
.event-add { fill: var(--ink); }
.event-remove { fill: var(--muted); }
.tip { position: absolute; z-index: 2; pointer-events: none; min-width: 190px; background: var(--bg); border: 1px solid var(--ink); padding: 8px 10px; font-size: 13px; }
.tip-time { color: var(--muted); font: 12px var(--mono); margin-bottom: 4px; }
.tip-row { display: flex; justify-content: space-between; gap: 14px; }
.tip-row span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.tip-row b { font-family: var(--mono); font-weight: 600; }

/* day by day: a ruled grid, shading carries the size of the day */
.cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); margin-top: 14px; padding: 1px 0 0 1px; }
.cal-cell { margin: -1px 0 0 -1px; padding: 6px 8px 7px; display: grid; gap: 1px; border: 1px solid var(--line); }
.cal-d { font-size: 11.5px; color: var(--muted); }
.cal-v { font-size: 13px; font-weight: 500; color: var(--ink); }
.cal-cell.pos.l1 { background: color-mix(in srgb, var(--pos-fill) 9%, transparent); }
.cal-cell.pos.l2 { background: color-mix(in srgb, var(--pos-fill) 19%, transparent); }
.cal-cell.pos.l3 { background: color-mix(in srgb, var(--pos-fill) 31%, transparent); }
.cal-cell.pos.l4 { background: color-mix(in srgb, var(--pos-fill) 45%, transparent); }
.cal-cell.neg.l1 { background: color-mix(in srgb, var(--neg-fill) 9%, transparent); }
.cal-cell.neg.l2 { background: color-mix(in srgb, var(--neg-fill) 19%, transparent); }
.cal-cell.neg.l3 { background: color-mix(in srgb, var(--neg-fill) 31%, transparent); }
.cal-cell.neg.l4 { background: color-mix(in srgb, var(--neg-fill) 45%, transparent); }

/* token mix */
.mix-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 10px; font-size: 14px; }
.mix-l { color: var(--muted); }
.mix-bar { display: flex; height: 10px; gap: 2px; }
.mix-bar i { display: block; height: 100%; }
.mix-a { background: var(--ink); }
.mix-b { background: var(--line-strong); }
.mix-t { font: 12.5px var(--mono); color: var(--ink-2); white-space: nowrap; }
.block > .sub { margin-top: 8px; }
.block > .sub .pill { margin-left: 6px; }

/* tables */
.table-wrap { overflow-x: auto; margin-top: 14px; }
.ep-extra > .table-wrap { margin-top: 0; }
.data-table { margin-top: 14px; font-size: 14px; }
.data-table > summary { font-weight: 400; color: var(--ink-2); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 400; color: var(--muted); font-size: 13px; padding: 0 10px 7px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; white-space: nowrap; }
.tbl .num { text-align: right; padding-right: 0; padding-left: 10px; }
.tbl tbody:first-child tr:first-child td { border-top: 1px solid var(--ink); }
.cell-sub { display: block; font-size: 12.5px; color: var(--muted); }
.sum-tbl td:first-child { white-space: normal; }
.sum-tbl td:first-child a { font-weight: 500; }
.summary > .sub { margin-top: 18px; }

/* glossary: heading in the margin, numbered entries beside it */
.glossary { margin-top: 96px; border-top: 2px solid var(--ink); padding-top: 18px; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 20px 56px; align-items: start; }
.glossary h2 { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
.gloss-list { list-style: none; margin: 0; padding: 0; counter-reset: gloss; }
.gloss-list li { counter-increment: gloss; display: grid; grid-template-columns: 34px minmax(0, 1fr); padding: 0 0 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.gloss-list li::before { content: counter(gloss); font: 13px/1.9 var(--mono); color: var(--muted); grid-row: 1 / span 2; }
.gloss-list h3 { font-size: 16px; font-weight: 600; }
.gloss-list p { font-size: 15px; color: var(--ink-2); max-width: 60ch; margin-top: 3px; text-wrap: pretty; }
.note { font-size: 13.5px; color: var(--muted); max-width: 64ch; grid-column: 2; }
.foot { margin-top: 72px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.foot .ref { color: var(--ink); }

/* ───────── two tools, one header ───────── */
.nav { display: flex; gap: 22px; margin: 0 auto 0 30px; font: 13px var(--mono); }
.nav a { color: var(--muted); text-decoration: none; padding: 3px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.seg a { padding: 4px 11px; font: 500 12.5px var(--mono); color: var(--ink-2); text-decoration: none; }
.seg a + a { border-left: 1px solid var(--ink); }
.seg a:hover { color: var(--ink); background: var(--paper); }
.seg a[aria-current="true"] { background: var(--ink); color: var(--bg); }

/* ───────── pool check ───────── */
.crumb { margin: 30px 0 14px; font: 13px var(--mono); color: var(--muted); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.card.first { margin-top: 0; }
.ep-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; }
.summary > .why { margin-top: -6px; }

.board-tools { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; margin: 30px 0 4px; }
.board-tools input[type="search"] { height: 36px; width: min(320px, 100%); padding: 0 10px; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: 14px var(--sans); -webkit-appearance: none; appearance: none; }
.board-tools input[type="search"]::placeholder { color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--ink); width: 15px; height: 15px; margin: 0; }
.board-tools .sub { margin-left: auto; font: 12.5px var(--mono); }
.th-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.th-sort:hover, th[aria-sort="ascending"] .th-sort, th[aria-sort="descending"] .th-sort { color: var(--ink); }
.board td:first-child a { font-weight: 500; }
.board td:first-child { white-space: normal; min-width: 180px; }

/* when it trades: one bar per time slot; a hatched slot had no swaps */
.strip-row { display: flex; align-items: flex-end; gap: 1px; margin-top: 14px; border-bottom: 1px solid var(--line-strong); touch-action: pan-y; }
.strip-b { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; }
.strip-b i { display: block; width: 100%; background: var(--ink); }
.strip-b.quiet { background: repeating-linear-gradient(135deg, transparent 0 3px, var(--line-strong) 3px 4px); }
.strip-b.on i { background: var(--s1); }
.strip-b.on.quiet { background-color: var(--paper); }
.strip-axis { display: flex; justify-content: space-between; margin-top: 5px; }
.strip-axis .tick { color: var(--muted); font-size: 11px; }
.rates-note { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--muted); max-width: 60ch; }

/* fine print: label, then the fact and its meaning */
.fine { margin-top: 16px; max-width: 780px; }
.fine .rate { grid-template-columns: minmax(120px, 210px) minmax(0, 1fr); }
.rate-t { font-size: 15px; font-weight: 500; }
.rate-t .pill { font: inherit; color: var(--ink); }
.fine .rate-h { grid-column: 2; }

.changed { margin: 0 0 26px; padding: 12px 14px 10px; border: 1px solid var(--ink); max-width: 780px; }
.changed-t { font-weight: 600; font-size: 15px; }
.changed ul { margin: 6px 0 8px; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 15px; }
.changed li span { color: var(--ink-2); }
.changed b { font: 500 14px var(--mono); }
.changed .sub { font-size: 12.5px; }

@media (max-width: 860px) {
  .ep-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "why" "receipt" "extra"; grid-template-rows: auto; }
  .glossary { grid-template-columns: minmax(0, 1fr); }
  .note { grid-column: 1; }
}
@media (max-width: 520px) {
  #app { padding: 0 16px 48px; }
  .hero { padding: 36px 0 32px; }
  .search { flex-direction: column; gap: 8px; }
  .search input { flex: none; border-right: 1px solid var(--ink); }
  .btn.primary { width: 100%; }
  .card { margin-top: 56px; }
  .r-row { grid-template-columns: minmax(0, 1fr) auto; }
  .r-row .bar { display: none; }
  .receipt { padding: 16px 14px 24px; }
  .mix-row { grid-template-columns: 70px minmax(0, 1fr); }
  .mix-t { grid-column: 1 / -1; }
  .why { font-size: 16px; }
  .glossary { margin-top: 64px; }
  .nav { margin-left: 16px; gap: 14px; }
  .fine .rate { grid-template-columns: minmax(0, 1fr); }
  .fine .rate-h { grid-column: 1; }
  .board-tools .sub { margin-left: 0; }
}
