/* unlost.money: lost-and-found ledger. Paper, ink, one green for "found", amber for caution. No external resources.
   Scale rules: radius 8px for controls and tags-in-rows, 12px for cards, pill for status tags; spacing in 0.25rem steps;
   type scale xs .78 / sm .875 / base 1 / md 1.125 / lg 1.35 / xl 1.8 / hero clamp. */
:root {
  --paper: #f5f0e3;
  --paper-2: #ece5d2;
  --card: #fcfaf3;
  --ink: #1b1a16;
  --muted: #5d5848;
  --rule: #ddd4be;
  --rule-2: #c8bea4;
  --found: #1d5c39;
  --found-ink: #f6f1e5;
  --found-soft: #e0ebd7;
  --amber: #8a4f00;
  --amber-soft: #f5e5bd;
  --focus: #1d5c39;
  --shadow: 0 1px 0 rgba(70, 52, 12, .07), 0 10px 24px -14px rgba(70, 52, 12, .28);
  --shadow-c: rgba(70, 52, 12, .17);
  --tally-bg: #1d5c39;
  --tally-ink: #f6f1e5;
  --seg-on: #fcfaf3;
  --serif: "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --maxw: 46rem;
  --wide: 68rem;
  --r-ctl: 8px;
  --r-card: 12px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131210;
    --paper-2: #1c1b16;
    --card: #1a1914;
    --ink: #ece6d4;
    --muted: #a8a18b;
    --rule: #2d2a21;
    --rule-2: #5b5646;
    --tally-bg: #143124;
    --tally-ink: #cfe9d9;
    --seg-on: #3b382c;
    --shadow-c: rgba(0, 0, 0, .55);
    --found: #7cc79b;
    --found-ink: #0f1510;
    --found-soft: #172419;
    --amber: #e3a845;
    --amber-soft: #2b2210;
    --focus: #7cc79b;
    --shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 12px 26px -16px rgba(0, 0, 0, .7);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.62 var(--sans); -webkit-font-smoothing: antialiased; }
.page { position: relative; }
[hidden] { display: none !important; }
html[data-lang="en"] [data-l="zh"], html[data-lang="zh"] [data-l="en"] { display: none !important; }
a { color: var(--found); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
code, .mono { font-family: var(--mono); font-size: .88em; white-space: nowrap; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h2 { font-size: 1.8rem; margin-bottom: .75rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 .9rem; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.wide { max-width: var(--wide); }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.fine { font-size: .8rem; line-height: 1.5; color: var(--muted); margin: .9rem 0 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt { margin-top: 1rem; }
.mt0 { margin-top: .25rem; margin-bottom: 0; }

/* tally bar and header */
.tally { background: var(--tally-bg); color: var(--tally-ink); border-bottom: 1px solid var(--rule-2); font-size: .875rem; line-height: 1.45; }
.tally p { margin: 0; padding: .5rem 0; text-wrap: balance; }
.tally .soft { opacity: .78; }
.tally .tl-short { display: none; }
@media (max-width: 40rem) { .tally .tl-more, .tally .soft, .tally .tl-long { display: none; } .tally .tl-short { display: inline; } .tally p { font-size: .8125rem; } }
.top { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0 .25rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font: 600 1.45rem/1 var(--serif); letter-spacing: -.02em; }
.brand img { width: 2rem; height: 2rem; display: block; }
.lang { display: inline-flex; border: 1px solid var(--rule-2); border-radius: 999px; padding: 2px; gap: 2px; }
.lang button { min-height: 2rem; appearance: none; border: 0; background: transparent; color: var(--muted); font: 600 .8rem var(--sans); padding: .3rem .75rem; border-radius: 999px; cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease); }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* buttons, inputs: one family */
.btn { appearance: none; min-height: 2.5rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 600 .9rem/1.2 var(--sans); border-radius: var(--r-ctl); padding: .6rem 1rem; cursor: pointer; white-space: nowrap; transition: background-color .15s var(--ease), transform .12s var(--ease), border-color .15s var(--ease), opacity .15s var(--ease); }
.btn:hover { background: var(--paper-2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--found); border-color: var(--found); color: var(--found-ink); }
.btn.primary:hover { background: var(--found); filter: brightness(1.1); }
.btn.ghost { border-color: var(--rule-2); color: var(--muted); }
.btn.ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn.small { font-size: .8125rem; padding: .4rem .8rem; min-height: 2.25rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn[disabled].busy { cursor: progress; }

/* hero */
.hero { padding: 2.5rem 0 2rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 3.5rem; } .hero { padding: 3rem 0 2.5rem; } }
.eyebrow { font: 600 .75rem var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--found); margin: 0 0 .9rem; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.4rem); line-height: 1.07; letter-spacing: -.028em; }
html[data-lang="zh"] .hero h1 { word-break: keep-all; max-width: 12em; }
.hero .lead { font-size: 1.125rem; max-width: 32rem; margin: 1rem 0 1.75rem; color: var(--ink); }

.finder { max-width: 38rem; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--paper-2); margin-bottom: .9rem; max-width: 100%; }
.seg button { min-height: 2.5rem; appearance: none; border: 0; background: transparent; color: var(--muted); font: 600 .875rem/1.2 var(--sans); padding: .5rem .95rem; border-radius: 7px; cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 2px rgba(70, 52, 12, .18), 0 0 0 1px var(--rule-2); }
.find { display: grid; gap: .5rem; }
.find label { font: 600 .8rem var(--sans); color: var(--muted); }
.bar { display: flex; align-items: stretch; flex-wrap: wrap; gap: .5rem; padding: .35rem; border: 1px solid var(--ink); border-radius: 10px; background: var(--card); box-shadow: var(--shadow); transition: box-shadow .15s var(--ease), outline-color .15s; }
.bar:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.bar input { flex: 1 1 14rem; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 500 .95rem var(--mono); padding: .7rem .6rem; outline: none; }
.bar input::placeholder, textarea::placeholder { color: var(--muted); opacity: .7; }
.bar .paste { border-color: transparent; }
.bar .primary { padding-left: 1.4rem; padding-right: 1.4rem; }
.hint { font-size: .8125rem; color: var(--muted); min-height: 1.3rem; margin: 0; }
.hint.err { color: var(--amber); font-weight: 600; }
.hint .ok { color: var(--found); font-weight: 600; }
.hint .warn { color: var(--amber); font-weight: 600; }

/* batch input */
.drop { border: 1px solid var(--ink); border-radius: 10px; background: var(--card); box-shadow: var(--shadow); transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.drop:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.drop.over { border-style: dashed; border-color: var(--found); background: var(--found-soft); }
.drop textarea { display: block; width: 100%; resize: vertical; min-height: 9rem; max-height: 22rem; border: 0; background: transparent; color: var(--ink); font: 500 .8125rem/1.6 var(--mono); padding: .8rem .9rem; outline: none; }
.drop-bar { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; padding: .5rem .75rem; border-top: 1px dashed var(--rule-2); }
.drop-hint { font-size: .8rem; color: var(--muted); }
@media (hover: none) { .drop-hint { display: none; } }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }

/* ledger ticket (hero right): a luggage tag. Two clipped layers (ink, then paper) so the border follows the chamfer; the punched hole is a mask. */
.ticket-wrap { position: relative; filter: drop-shadow(0 14px 14px var(--shadow-c)); }
.ticket-wrap::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 30px; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--paper); }
.ticket { --c: 34px; background: var(--ink); padding: 1.5px;
  clip-path: polygon(0 var(--c), var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%);
  -webkit-mask: radial-gradient(circle at 50% 30px, transparent 0 9.5px, #000 10px); mask: radial-gradient(circle at 50% 30px, transparent 0 9.5px, #000 10px); }
.ticket-in { --ci: 33.1px; background: var(--card); padding: 0 1.4rem 1.2rem;
  clip-path: polygon(0 var(--ci), var(--ci) 0, calc(100% - var(--ci)) 0, 100% var(--ci), 100% 100%, 0 100%);
  -webkit-mask: radial-gradient(circle at 50% 28.5px, transparent 0 11px, #000 11.5px); mask: radial-gradient(circle at 50% 28.5px, transparent 0 11px, #000 11.5px); }
.ticket-title { margin: 0; padding: 3.15rem 0 .8rem; text-align: center; font: 600 .75rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.ticket-rows { margin: 0; }
.trow { padding: 1rem 0 .9rem; border-bottom: 1px dashed var(--rule-2); }
.trow dt { font: 600 .8125rem var(--sans); color: var(--muted); margin-bottom: .1rem; }
.trow dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .65rem; }
.trow dd b { font: 600 1.9rem/1.15 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.trow dd span { font-size: .8125rem; color: var(--muted); }
.trow.lead-row dd b { font-size: 2.5rem; color: var(--found); }
.ticket-foot { margin: 0; padding-top: .9rem; font: .75rem/1.5 var(--mono); color: var(--muted); }
@media (max-width: 40rem) {
  .trow { padding: .8rem 0 .7rem; }
  .trow dd b { font-size: 1.6rem; }
  .trow.lead-row dd b { font-size: 2.1rem; }
  .ticket-title { padding-bottom: .65rem; }
}

/* trust band */
.trustband { border-block: 1px solid var(--rule-2); background: var(--paper-2); }
.trust { list-style: none; margin: 0; padding: 0; display: grid; }
.trust li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .1rem .7rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.trust li:last-child { border-bottom: 0; }
.trust svg { width: 1.3rem; height: 1.3rem; margin-top: .2rem; color: var(--found); }
.trust b { display: block; font: 600 .9375rem/1.35 var(--sans); }
.trust span { color: var(--muted); font-size: .875rem; line-height: 1.5; text-wrap: pretty; }
@media (min-width: 52rem) { .trust { grid-template-columns: repeat(3, 1fr); } .trust li { border-bottom: 0; padding: 1.05rem 1.5rem 1.05rem 0; } .trust li + li { border-left: 1px solid var(--rule); padding-left: 1.5rem; } }

/* results */
#results { padding-top: 1.5rem; scroll-margin-top: 1rem; }
#results:empty { padding: 0; }
.sum { display: grid; gap: .6rem; border-top: 3px double var(--ink); padding: 1.2rem 0 .5rem; }
.sum h2 { margin: 0; font-size: 1.35rem; }
.sum-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.25rem; }
.sum .tot { font: 600 2.4rem/1.1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--found); }
.sum .tot-l { font: 600 .8125rem var(--sans); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .25rem 0 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; gap: .5rem; align-items: baseline; border: 1px solid var(--rule-2); border-radius: 999px; padding: .2rem .75rem; font-size: .8125rem; background: var(--card); }
.chips b { font-variant-numeric: tabular-nums; }
.sumline { font-size: .8125rem; color: var(--muted); margin: .25rem 0 1rem; }
.note { overflow-wrap: anywhere; border-left: 4px solid var(--rule-2); background: var(--paper-2); padding: .8rem 1rem; border-radius: 0 var(--r-ctl) var(--r-ctl) 0; margin: 0 0 1rem; font-size: .9375rem; }
.note.warn { border-color: var(--amber); background: var(--amber-soft); }
.note.ok { border-color: var(--found); background: var(--found-soft); }

.card { background: var(--card); border: 1px solid var(--rule-2); border-radius: var(--r-card); padding: 1.15rem 1.25rem 1rem; margin: 0 0 1rem; box-shadow: var(--shadow); position: relative; }
.card::before { content: ""; position: absolute; left: 0; top: 1rem; bottom: 1rem; width: 4px; border-radius: 0 3px 3px 0; background: var(--found); }
.card.claimed { background: var(--found-soft); }
.card header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; align-items: baseline; }
.card h3 { margin: 0; font-size: 1.2rem; }
.val { font: 600 1.45rem/1.1 var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.01em; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .65rem 0 .2rem; }
.tag { display: inline-flex; align-items: center; font: 600 .75rem/1.35 var(--sans); border: 1px solid var(--rule-2); border-radius: 999px; padding: .2rem .65rem; color: var(--muted); background: transparent; }
.tag.open { color: var(--found-ink); background: var(--found); border-color: var(--found); }
.tag.done { color: var(--found); background: var(--found-soft); border-color: var(--found); }
.tag.none { color: var(--muted); }
.tag.anyone { color: var(--found); border-color: var(--found); }
.tag.owner { color: var(--amber); border-color: var(--amber); }
.assets { list-style: none; margin: .5rem 0 .1rem; padding: 0; }
.assets li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px dotted var(--rule-2); font-variant-numeric: tabular-nums; }
.assets li:last-child { border-bottom: 0; }
.assets .amt { font-family: var(--mono); font-size: .9rem; overflow-wrap: anywhere; }
.what { margin: .6rem 0 .5rem; max-width: 48rem; }
.steps-box { margin: .5rem 0 0; border-top: 1px solid var(--rule); }
.steps-box > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; font: 600 .9rem var(--sans); color: var(--found); }
.steps-box > summary::-webkit-details-marker { display: none; }
.steps-box > summary::after { content: ""; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease); }
.steps-box[open] > summary::after { transform: rotate(-135deg); }
.steps-box > summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.steps-body { padding: 0 0 .25rem; max-width: 48rem; animation: fade .22s var(--ease) both; }
.who { margin: 0 0 .75rem; font-size: .9rem; color: var(--muted); }
ol.steps { margin: 0; padding-left: 1.3rem; }
ol.steps > li { margin: 0 0 .7rem; padding-left: .2rem; }
ol.steps > li::marker { font-weight: 700; color: var(--found); }
h4 { font: 600 .8125rem var(--sans); color: var(--muted); margin: 1rem 0 .4rem; }
.kv { margin: .4rem 0 .2rem; display: grid; gap: .35rem; }
.kv .row { display: grid; grid-template-columns: 1fr auto; gap: .25rem .5rem; align-items: start; border: 1px solid var(--rule); border-radius: var(--r-ctl); background: var(--paper); padding: .45rem .6rem; }
.kv .lab { grid-column: 1 / -1; font: 600 .75rem var(--sans); color: var(--muted); }
.kv .v { font: .8rem/1.5 var(--mono); overflow-wrap: anywhere; min-width: 0; }
.kv .v.clamp { max-height: 4.5em; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.kv .btns { display: flex; gap: .35rem; align-items: start; }
.what a { white-space: nowrap; }
@media (max-width: 40rem) { .btools .check { flex: 1 0 100%; } .kv .row { grid-template-columns: minmax(0, 1fr); } .kv .btns { grid-row: 3; } }
.copy, .more { min-height: 1.9rem; appearance: none; border: 1px solid var(--rule-2); background: var(--card); color: var(--ink); border-radius: 6px; font: 600 .75rem var(--sans); padding: .25rem .55rem; cursor: pointer; align-self: start; white-space: nowrap; transition: background-color .15s var(--ease), transform .12s var(--ease); }
.copy:hover, .more:hover { background: var(--paper-2); }
.copy:active, .more:active { transform: scale(.97); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.1rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px dotted var(--rule-2); font-size: .8125rem; color: var(--muted); }
.reveal { animation: rise .32s var(--ease) both; }

/* batch results */
.bsum { display: grid; gap: .75rem; border-top: 3px double var(--ink); padding: 1.2rem 0 .75rem; }
.bsum h2 { margin: 0; font-size: 1.35rem; }
.stats { display: grid; gap: 0; border: 1px solid var(--rule-2); border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow); }
.stat { padding: .9rem 1.1rem; border-bottom: 1px dashed var(--rule-2); }
.stat:last-child { border-bottom: 0; }
.stat .k { font: 600 .8125rem var(--sans); color: var(--muted); }
.stat .n { font: 600 1.9rem/1.15 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .n.g { color: var(--found); }
.stat .s { font-size: .8125rem; color: var(--muted); }
@media (min-width: 44rem) { .stats { grid-template-columns: repeat(3, 1fr); } .stat { border-bottom: 0; border-right: 1px dashed var(--rule-2); } .stat:last-child { border-right: 0; } }
.btools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: .25rem 0 .75rem; }
.btools .grow { flex: 1; }
.check { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 1.15rem; height: 1.15rem; margin: 0; border: 1.5px solid var(--muted); border-radius: 4px; background: var(--card); display: grid; place-content: center; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.check input::after { content: ""; width: .6rem; height: .32rem; border-left: 2px solid var(--found-ink); border-bottom: 2px solid var(--found-ink); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; transition: opacity .12s var(--ease); }
.check input:checked { background: var(--found); border-color: var(--found); }
.check input:checked::after { opacity: 1; }
.progress { display: grid; gap: .5rem; padding: 1rem 0; }
.progress .track { height: 6px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.progress .fill { height: 100%; width: 0; background: var(--found); transition: width .2s var(--ease); }
.progress p { margin: 0; font-size: .9rem; }
.btable { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .9rem; font-variant-numeric: tabular-nums; }
.btable th { text-align: left; font: 600 .75rem var(--sans); color: var(--muted); border-bottom: 2px solid var(--ink); padding: .5rem .6rem; white-space: nowrap; }
.btable th.a { width: 30rem; padding-left: 1.7rem; }
.btable th.c { width: 4.75rem; }
.btable th.m { width: 7.5rem; }
.btable th.s { width: 8.75rem; }
.btable th.n, .btable td.n { text-align: right; }
.btable td { padding: .65rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.btable tr.brow { transition: background-color .15s var(--ease); }
.btable tr.brow.has:hover { background: var(--paper-2); cursor: pointer; }
.btable tr.brow[aria-expanded="true"] { background: var(--paper-2); }
.btable td.a { min-width: 0; }
.btable td.f { color: var(--muted); font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btable .acell { display: flex; align-items: center; gap: .25rem .6rem; flex-wrap: wrap; }
.btable .addr { font: .8125rem/1.4 var(--mono); overflow-wrap: anywhere; word-break: break-all; }
.tog { appearance: none; border: 0; background: transparent; color: inherit; padding: 0; display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; text-align: left; }
.chev { width: .5rem; height: .5rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .2s var(--ease); flex: none; }
.brow[aria-expanded="true"] .chev { transform: rotate(45deg); }
.dot { width: .5rem; flex: none; }
.btable td.s { white-space: nowrap; }
.btable td.m { font-weight: 600; }
.btable tr.detail > td { padding: .5rem .75rem 1rem; background: var(--paper-2); border-bottom: 1px solid var(--rule-2); }
.btable tr.detail .card { box-shadow: none; background: var(--card); }
.btable tr.detail .card:last-child { margin-bottom: 0; }
.btable tr.none .addr { color: var(--muted); }
.btable .l { display: none; }
@media (max-width: 63.99rem) { .btable { table-layout: auto; } .btable th.f, .btable td.f { display: none; } .btable th.a { width: auto; } }
@media (max-width: 43.99rem) {
  .btable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .btable, .btable tbody { display: block; }
  .btable tr.brow { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "a a a" "f f f" "s c m"; gap: .3rem .75rem; padding: .85rem .1rem; border-bottom: 1px solid var(--rule); align-items: center; }
  .btable tr.brow td { display: block; padding: 0; border: 0; min-width: 0; }
  .btable tr.brow td.a { grid-area: a; }
  .btable tr.brow td.f { display: block; grid-area: f; white-space: normal; }
  .btable tr.brow.none td.f { display: none; }
  .btable tr.brow td.s { grid-area: s; }
  .btable tr.brow td.c { grid-area: c; font-size: .8125rem; color: var(--muted); text-align: left; }
  .btable tr.brow td.m { grid-area: m; font-size: 1rem; }
  .btable .l { display: inline; color: var(--muted); font-weight: 400; margin-right: .3rem; }
  .btable tr.detail { display: block; }
  .btable tr.detail > td { display: block; border-radius: 0 0 var(--r-card) var(--r-card); padding: .5rem .5rem .8rem; }
}

/* sections */
section.sec { padding: 3.25rem 0 .5rem; }
section.sec > .wrap > h2, section.sec > .wrap > .split > div > h2 { margin-bottom: .9rem; }
.intro { max-width: 40rem; color: var(--ink); }
#coverage .small { max-width: 52rem; }
.split { display: grid; gap: 1.75rem 3.5rem; align-items: start; }
@media (min-width: 52rem) { .split { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }

/* how it works */
.flow { list-style: none; counter-reset: s; margin: 1.25rem 0 1.5rem; padding: 0; display: grid; border: 1px solid var(--ink); border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow); }
.flow li { counter-increment: s; position: relative; padding: 1.15rem 1.3rem 1.1rem; border-bottom: 1px dashed var(--rule-2); }
.flow li:last-child { border-bottom: 0; }
.flow h3 { font-size: 1.15rem; margin: .7rem 0 .25rem; }
.flow h3::before { content: counter(s); display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; margin-right: .55rem; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 .75rem var(--sans); vertical-align: .12em; }
.flow p { margin: 0; font-size: .9rem; color: var(--muted); max-width: 22rem; }
.viz { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; min-height: 2.1rem; }
.chip { display: inline-flex; align-items: baseline; gap: .1rem; padding: .3rem .6rem; border: 1px solid var(--rule-2); border-radius: var(--r-ctl); background: var(--paper); font-size: .8125rem; }
.chip b { color: var(--found-ink); background: var(--found); border-radius: 4px; padding: 0 .3rem; margin-right: .1rem; font-weight: 600; }
.chip i { font-style: normal; color: var(--muted); opacity: .6; }
.chip.open { color: var(--found); border-color: var(--found); background: var(--found-soft); }
.flow .chip b { margin: 0 .1rem; }
@media (min-width: 52rem) {
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow li { border-bottom: 0; border-right: 1px dashed var(--rule-2); }
  .flow li:last-child { border-right: 0; }
  .flow li:not(:last-child)::after { content: "\2192"; position: absolute; right: -.85rem; top: 1.15rem; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border: 1px solid var(--rule-2); border-radius: 50%; background: var(--card); color: var(--muted); font-size: .85rem; line-height: 1; z-index: 1; }
}
.limits { max-width: 46rem; }
.limits p { font-size: .9375rem; }

/* coverage */
.tablewrap { overflow-x: auto; }
table.cov { width: 100%; max-width: 52rem; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
table.cov th { text-align: left; font: 600 .75rem var(--sans); color: var(--muted); border-bottom: 2px solid var(--ink); padding: .5rem .5rem; }
table.cov td { padding: .55rem .5rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.cov tbody tr:last-child td { border-bottom: 0; }
table.cov th.n, table.cov td.n { text-align: right; white-space: nowrap; }
table.cov td.f { width: 100%; }
.share { display: block; height: 3px; margin-top: .45rem; }
.share i { display: block; height: 100%; width: 0; min-width: 3px; background: var(--found); border-radius: 2px; transition: width .6s var(--ease); }
.pct { display: block; font-size: .75rem; color: var(--muted); }

/* messages, security */
.callout { border: 1px solid var(--ink); border-radius: var(--r-card); padding: 1.1rem 1.25rem; background: var(--card); box-shadow: var(--shadow); }
.callout-name { font: 600 1.6rem/1.2 var(--serif); margin: .15rem 0 .4rem; }
.callout .addr { font-family: var(--mono); font-size: .8125rem; overflow-wrap: anywhere; color: var(--muted); }
.never { list-style: none; margin: 0 0 .9rem; padding: 0; }
.never li { position: relative; padding: .45rem 0 .45rem 1.75rem; border-bottom: 1px solid var(--rule); }
.never li:last-child { border-bottom: 0; }
.never li::before { content: ""; position: absolute; left: .15rem; top: 1rem; width: .8rem; height: 2px; background: var(--amber); transform: rotate(45deg); }
.never li::after { content: ""; position: absolute; left: .15rem; top: 1rem; width: .8rem; height: 2px; background: var(--amber); transform: rotate(-45deg); }
.official { border-left: 4px solid var(--found); padding: .25rem 0 .25rem 1.25rem; }
.official p { font-size: 1.0625rem; }
ul.plain { padding-left: 1.2rem; margin: 0 0 .9rem; }
ul.plain li { margin: 0 0 .35rem; }
ol.plain { padding-left: 1.3rem; margin: 0 0 .9rem; }
ol.plain li { margin: 0 0 .4rem; }

details.faq { border-top: 1px solid var(--rule-2); padding: .85rem 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--rule-2); }
details.faq summary { cursor: pointer; font: 600 1.02rem var(--sans); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; flex: none; width: .55rem; height: .55rem; border-right: 2px solid var(--found); border-bottom: 2px solid var(--found); transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease); }
details.faq[open] summary::after { transform: rotate(-135deg); }
details.faq summary:hover { color: var(--found); }
details.faq > div { padding-top: .6rem; animation: fade .22s var(--ease) both; max-width: 46rem; }

footer.site { margin-top: 3.5rem; border-top: 3px double var(--ink); padding: 1.6rem 0 3.5rem; font-size: .875rem; color: var(--muted); }
footer.site b { color: var(--ink); }
.foot-grid { display: grid; gap: 1rem 3rem; }
@media (min-width: 52rem) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 60rem) { .foot-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 1rem 3.5rem; } }
.donate p { margin: 0 0 .6rem; }
.donate .dbox { display: flex; gap: .9rem; align-items: center; margin: .25rem 0 .6rem; }
.donate .qr { flex: none; width: 111px; height: 111px; border-radius: 8px; border: 1px solid var(--rule-2); background: #fff; }
.donate .dcol { min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.donate .addr { white-space: normal; word-break: break-all; display: block; margin: 0; color: var(--ink); }
.donate .dact { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; }
.donate .copy[hidden] { display: none; }
.donate .copy .c1, .donate .copy.done .c0 { display: none; }
.donate .copy.done .c1 { display: inline; }
.donate .d2 { margin-top: .9rem; }

.spinner { display: inline-block; width: 1rem; height: 1rem; border: 2px solid var(--rule-2); border-top-color: var(--found); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: .5rem; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .spinner { border-top-color: var(--rule-2); }
}
@media (max-width: 30rem) {
  .copy, .more { min-height: 2.25rem; padding: .3rem .8rem; }
  .hero { padding-top: 1.75rem; }
  .bar .primary { flex: 1 1 100%; }
  .actions { flex-wrap: nowrap; }
  .actions .primary { flex: 1; }
  .bar .paste { margin-left: auto; }
  .seg { display: flex; }
  .seg button { flex: 1; padding-left: .5rem; padding-right: .5rem; }
  .card { padding: 1rem .95rem .9rem; }
  .trow.lead-row dd b { font-size: 2.2rem; }
  h2 { font-size: 1.55rem; }
  .sum .tot { font-size: 2rem; }
}
.small.muted { overflow-wrap: anywhere; }

/* v2: phone trust points under the search box, free-claim note, approval box, failed rows, pager */
.trust-mini { display: none; }
@media (max-width: 51.99rem) {
  .trust-mini { display: grid; gap: .5rem; list-style: none; margin: 1.1rem 0 0; padding: 0; }
  .trust-mini li { display: flex; align-items: center; gap: .6rem; font: 600 .875rem/1.3 var(--sans); }
  .trust-mini svg { width: 1.15rem; height: 1.15rem; color: var(--found); flex: none; }
  .trustband .trust li:not(:nth-child(2)) { display: none; }
}
.tag.err { color: var(--amber); border-color: var(--amber); background: var(--amber-soft); }
.tag.warn { color: var(--amber); border-color: var(--amber); }
.free-note { margin: .5rem 0 .75rem; padding: .6rem .85rem; border-left: 4px solid var(--found); background: var(--found-soft); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; font-size: .9rem; line-height: 1.5; }
.free-note[data-free="no"] { border-left-color: var(--rule-2); background: var(--paper-2); }
.approval { margin: .6rem 0 .25rem; padding: .8rem 1rem; border: 1px solid var(--amber); border-radius: var(--r-ctl); background: var(--amber-soft); }
.approval p { margin: 0 0 .5rem; }
.approval .ap-t { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.ap-d { margin: 0 0 .6rem; display: grid; gap: .5rem; }
.ap-d dt { font: 600 .75rem var(--sans); color: var(--muted); margin-bottom: .1rem; }
.ap-d dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; font-size: .8125rem; }
.ap-d code { white-space: normal; overflow-wrap: anywhere; word-break: break-all; min-width: 0; }
.ap-d dd { min-width: 0; }
.approval { overflow-wrap: anywhere; }
.note.bfail { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.btable .retry-row { display: flex; margin: .35rem 0 0; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: .75rem 0 1rem; }
.pager .pg-info { font-size: .8125rem; color: var(--muted); text-align: center; }
.pager .btn[disabled] { opacity: .45; cursor: default; }
@media (max-width: 43.99rem) {
  /* Copy sits on the address row instead of wrapping onto a line of its own */
  .btable .acell { flex-wrap: nowrap; align-items: flex-start; gap: .4rem; }
  .btable .acell .tog, .btable .acell > .addr { flex: 1 1 auto; min-width: 0; }
  .btable .acell .copy { flex: none; min-height: 1.6rem; padding: .15rem .5rem; }
  .btable tr.brow td.s { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
  .btable .retry-row { display: inline-flex; margin: 0; }
}
@media (max-width: 40rem) {
  /* long inline contract addresses in card notes must wrap instead of running off the screen */
  .card p code, .card li code, .card .note code { white-space: normal; overflow-wrap: anywhere; word-break: break-all; }
}
