:root {
  --page: #fbfaf8;
  --surface: #ffffff;
  --ink: #17181a;
  --ink-2: #55585c;
  --muted: #8a8d91;
  --faint: #a8aaad;
  --line: #e6e5e0;
  --line-2: #d6d5cf;
  --hair: #edece7;
  --hair-2: #f0efeb;
  --wash: #f4f3ef;
  --soft: #f1f0ec;
  --token-wash: #f7faf9;
  --brand: #0f6b6f;
  --brand-deep: #0a4a4d;
  --good: #17703f;
  --critical: #b3261e;
  --warning: #8a5a12;
  --earn: #a8c6c5;
  --grid: #edece7;
  --axis: #17181a;
  --band: #f1f0ec;
  --s1: #0f6b6f;
  --s2: #3f5b9c;
  --s3: #8a4f7d;
  --s4: #8a5a12;
  --s5: #4a6b45;
  --s6: #a1552f;
  --s7: #5a5f73;
  --shadow: 0 12px 28px -14px rgba(0, 0, 0, .3);
  --font: "Libre Franklin", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  color-scheme: light;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 14.5px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  touch-action: manipulation;
}
button { font: inherit; color: inherit; }
a, button { -webkit-tap-highlight-color: rgba(15, 107, 111, .14); }
a { color: var(--brand); }
a:hover { color: var(--brand-deep); }
summary { cursor: pointer; }
summary::-webkit-details-marker { color: var(--muted); }
input { font-family: inherit; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--surface); padding: 10px 14px; z-index: 40; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- header ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--page);
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top);
}
.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.wordmark:hover { color: var(--ink); }
.wm { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.tag { font-size: 12.5px; color: var(--muted); }
.aside { flex: none; font-size: 12.5px; color: var(--muted); }
.searchwrap { position: relative; flex: 1 1 auto; margin-left: 12px; }
.searchwrap input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--ink);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 4px;
}
.searchwrap input::placeholder { color: var(--muted); }
.searchwrap input:focus { border-color: var(--brand); }
.searchwrap input::-webkit-search-decoration,
.searchwrap input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-pop {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  overflow: auto;
  max-height: 360px;
  box-shadow: var(--shadow);
  z-index: 40;
}
.search-pop a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13.5px;
  border-bottom: 1px solid var(--hair-2);
}
.search-pop a:last-child { border-bottom: 0; }
.search-pop a:hover, .search-pop a.active { background: var(--wash); }
.search-pop .tk { font-family: var(--mono); min-width: 52px; }
.search-pop .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-pop .gr { font-size: 12px; color: var(--muted); }

main { max-width: 1320px; margin: 0 auto; padding: 0 28px 60px; min-width: 0; }
main > * { max-width: 100%; min-width: 0; }
main.narrow { max-width: 1080px; padding-bottom: 70px; }
.foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 28px 56px;
}
body[data-kind="home"] .foot { max-width: 1320px; }
.disclaimer { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; max-width: 82ch; }
.built { margin: 12px 0 0; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }

/* ---------- logos ---------- */
.logo {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  overflow: hidden;
}
.logo-mono {
  font-family: var(--mono);
  color: var(--muted);
  line-height: 1;
}
.logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  opacity: 0;
}
.logo.has-img .logo-img { opacity: 1; }
.logo.has-img .logo-mono { visibility: hidden; }
.logo.sm { width: 18px; height: 18px; border-radius: 2px; }
.logo.sm .logo-mono { font-size: 8px; }
.logo.sm .logo-img { padding: 0; }
.logo.md { width: 28px; height: 28px; border-radius: 3px; }
.logo.md .logo-mono { font-size: 11px; }
.logo.md .logo-img { padding: 3px; }
.logo.lg { width: 40px; height: 40px; border-radius: 4px; }
.logo.lg .logo-mono { font-size: 13px; }
.logo.lg .logo-img { padding: 5px; }

/* ---------- home ---------- */
.home-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 26px 0 14px;
}
.home-head h1 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 5px; overflow-wrap: anywhere; }
.home-head p { margin: 0; font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.home-head .summary { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }

.table-rule { overflow-x: auto; border-top: 1px solid var(--ink); }
table.ranks {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 1240px;
}
.ranks th, .ranks td {
  padding: 12px 10px;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
}
.ranks th {
  font-family: var(--font);
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  cursor: pointer;
  border-bottom: 1px solid var(--line-2);
  background: var(--page);
  white-space: nowrap;
}
.ranks th.on { color: var(--ink); font-weight: 500; }
.ranks th.left, .ranks td.left { text-align: left; font-variant-numeric: normal; }
.ranks td.left { font-family: var(--font); }
.ranks th.group, .ranks td.group { padding-left: 22px; border-left: 1px solid var(--line); }
.ranks tbody tr { cursor: pointer; border-bottom: 1px solid var(--hair); }
.ranks tbody tr:hover { background: var(--wash); }
.ranks td.rk { color: var(--muted); font-size: 12.5px; }
.ranks td.muted { color: var(--ink-2); }
.co { display: flex; align-items: center; gap: 12px; min-width: 230px; }
.co .nm { display: block; font-weight: 500; letter-spacing: -.01em; font-family: var(--font); white-space: normal; line-height: 1.25; }
.co .tk { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 2px; font-weight: 400; }
.chg.up { color: var(--good); }
.chg.down { color: var(--critical); }
.spark { width: 104px; height: 26px; display: inline-block; vertical-align: middle; }
.best-sym { display: block; font-family: var(--mono); font-size: 13px; }
.best-who { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; font-family: var(--font); }
.home-note { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 16px; font-size: 12px; color: var(--muted); }

.grade {
  display: inline-block;
  min-width: 20px;
  font-family: var(--mono);
  font-size: 13px;
  color: #fff;
  border-radius: 2px;
  padding: 2px 7px;
  text-align: center;
}
.grade.A { background: var(--good); }
.grade.B { background: var(--brand); }
.grade.C { background: var(--warning); }
.grade.D, .grade.F { background: var(--critical); }
.grade.empty { color: var(--muted); background: transparent; padding: 0; }

/* ---------- company ---------- */
.crumb { padding: 18px 0 0; font-size: 13px; }
.crumb a { text-decoration: none; }
.co-head { display: flex; align-items: center; gap: 14px; padding: 16px 0 0; }
.co-head h1 { font-size: 26px; font-weight: 600; letter-spacing: -.025em; margin: 0; overflow-wrap: anywhere; }
.co-head .sym { font-family: var(--mono); font-size: 16px; color: var(--muted); }
.co-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.co-meta { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }

.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-2);
  background: var(--surface);
}
.answers .pane { padding: 22px 24px; }
.answers .share { border-right: 1px solid var(--line); }
.answers .token { background: var(--token-wash); }
.answers .lbl { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.answers .px { font-family: var(--mono); font-size: 34px; letter-spacing: -.03em; line-height: 1; }
.answers .px.sm { font-size: 28px; letter-spacing: -.02em; }
.answers .chg { font-family: var(--mono); font-size: 15px; }
.answers p { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; overflow-wrap: anywhere; }
.headline { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-width: 0; }

.views {
  display: flex;
  gap: 0;
  margin: 26px 0 24px;
  border-bottom: 1px solid var(--line-2);
}
.views button {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 400;
  padding: 10px 18px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.views button[aria-selected="true"] { font-weight: 600; color: var(--ink); border-bottom-color: var(--ink); }

.panel { border: 1px solid var(--line-2); background: var(--surface); }
.panel-top {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: flex-start;
}
.panel-id { flex: 1 1 330px; min-width: 0; }
.panel-id .sym { font-family: var(--mono); font-size: 22px; letter-spacing: -.02em; }
.panel-id .who { font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.panel-id p { margin: 12px 0 0; font-size: 15px; line-height: 1.5; max-width: 50ch; overflow-wrap: anywhere; }
.scorebox { flex: none; display: flex; align-items: center; gap: 14px; }
.scorebox .n { font-family: var(--mono); font-size: 34px; letter-spacing: -.03em; }
.scorebox .of { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

.why-block { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.why-block .lbl { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.why-list { display: flex; flex-direction: column; gap: 10px; }
.why-list .item { display: grid; grid-template-columns: 14px 1fr; gap: 11px; font-size: 14px; line-height: 1.55; }
.why-list .mark { font-family: var(--mono); font-size: 12px; line-height: 1.8; }

.hard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}
.hard .cell { padding: 16px 24px; border-right: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair-2); }
.hard .cell .k { font-size: 12px; color: var(--muted); line-height: 1.4; }
.hard .cell .v { font-family: var(--mono); font-size: 17px; margin-top: 7px; overflow-wrap: anywhere; }
.hard .cell .n { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

.addr-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  padding: 15px 24px;
}
.addr-row .hint { font-size: 12.5px; color: var(--muted); }
.addr-row .hex { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); word-break: break-all; flex: 1 1 240px; }
.addr-row button {
  background: var(--wash);
  border: 1px solid var(--line-2);
  color: var(--ink);
  border-radius: 3px;
  padding: 6px 11px;
  font-size: 12px;
  cursor: pointer;
  flex: none;
}
.addr-row a { font-size: 12.5px; flex: none; }

.break { border-top: 1px solid var(--line); padding: 14px 24px; }
.break summary { font-size: 13px; color: var(--ink-2); }
.break-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  padding: 18px 0 6px;
}
.break .lbl { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.meters { display: flex; flex-direction: column; gap: 9px; }
.meter { display: grid; grid-template-columns: 130px 1fr 40px; gap: 12px; align-items: center; }
.meter .ml { font-size: 12.5px; color: var(--ink-2); }
.meter .mt { height: 3px; background: var(--line); display: block; position: relative; }
.meter .mf { position: absolute; left: 0; top: 0; height: 3px; background: var(--brand); }
.meter .mv { font-family: var(--mono); font-size: 12.5px; text-align: right; }
.weights { font-size: 11.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.terms { display: flex; flex-direction: column; gap: 7px; }
.terms .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--hair-2);
  padding-bottom: 5px;
}
.terms .row span:first-child { color: var(--muted); }

.note-card { border: 1px solid var(--line-2); background: var(--surface); padding: 22px 24px; }
.note-card .t { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.note-card p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.65; max-width: 72ch; }

section { margin-top: 26px; }
section.spaced { margin-top: 34px; }
section > h2 { font-size: 16px; font-weight: 600; margin: 0 0 5px; letter-spacing: -.015em; }
section > .sub { margin: 0 0 4px; font-size: 13.5px; color: var(--ink-2); max-width: 76ch; line-height: 1.6; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0 0; }
.lg { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.lg .key { width: 15px; height: 2px; background: currentColor; display: block; flex: none; }
.lg .key.sq { width: 11px; height: 11px; }
.plot { position: relative; margin-top: 8px; overflow: hidden; }
.plot svg { display: block; width: 100%; height: auto; }
.caption { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.tip {
  position: absolute; pointer-events: none; z-index: 5; min-width: 132px;
  max-width: min(260px, calc(100% - 16px));
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 4px;
  padding: 9px 11px; box-shadow: var(--shadow); font-size: 12.5px; opacity: 0;
}
.tip.on { opacity: 1; }
.tip .th { color: var(--muted); font-size: 11.5px; margin-bottom: 6px; font-family: var(--mono); }
.tip .tr { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.tip .tr .key { width: 12px; height: 2px; flex: none; }
.tip .tr .tv { font-weight: 500; font-variant-numeric: tabular-nums; margin-left: auto; font-family: var(--mono); }
.tip .tr .tn { color: var(--ink-2); }

.row-tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 0 0 14px; }
.row-tools p { margin: 0; font-size: 13.5px; color: var(--ink-2); flex: 1 1 300px; }
.row-tools .hint { font-size: 12.5px; color: var(--muted); }
.btn {
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink-2);
  border-radius: 3px;
  padding: 5px 11px;
  font-size: 12.5px;
  cursor: pointer;
}
.btn.on { border-color: var(--brand); background: var(--brand); color: #fff; }

table.wraps {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 900px;
}
.wraps th {
  text-align: right;
  padding: 10px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  border-bottom: 1px solid var(--line-2);
}
.wraps th:first-child, .wraps th.left { text-align: left; }
.wraps th.center, .wraps td.center { text-align: center; }
.wraps td {
  padding: 13px 10px;
  vertical-align: top;
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.wraps td:first-child, .wraps td.left { text-align: left; font-family: var(--font); font-variant-numeric: normal; }
.wraps tbody tr { cursor: pointer; border-bottom: 1px solid var(--hair); }
.wraps tbody tr:hover { background: var(--wash); }
.wraps tbody tr.open { background: var(--wash); }
.wraps tbody tr.lead { background: var(--token-wash); }
.wraps tbody tr.lead.open { background: var(--wash); }
.tokid { display: flex; align-items: center; gap: 9px; }
.tokid .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.tokid .sym { font-family: var(--mono); font-size: 13.5px; }
.tokid .tag { font-size: 11.5px; color: var(--brand); }
.tok-who { font-size: 12px; color: var(--muted); margin-top: 4px; padding-left: 16px; }
.tok-open { padding: 16px 0 6px 16px; display: flex; flex-direction: column; gap: 14px; }
.tok-open .lbl { font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.tok-open .facts { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.tok-open .facts span { font-size: 12.5px; color: var(--muted); font-family: var(--mono); white-space: nowrap; }
.tok-open .facts span.plain { font-family: var(--font); }
.tok-open .facts b { color: var(--ink); font-weight: 500; }
.tok-open .links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.tok-open .hex { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); word-break: break-all; flex: 1 1 240px; }
.tok-open .detail { font-size: 12px; color: var(--muted); line-height: 1.6; max-width: 76ch; }
.sc-sub { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 4px; }

.warn-block { margin-top: 30px; border-left: 3px solid var(--critical); padding: 2px 0 2px 16px; }
.warn-block h2 { font-size: 15px; font-weight: 600; margin: 0 0 5px; }
.warn-block p { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-2); max-width: 74ch; line-height: 1.6; }
.line-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--hair);
}
.line-row .sym { font-family: var(--mono); font-size: 13px; min-width: 130px; }
.line-row .note { font-size: 12.5px; color: var(--ink-2); flex: 1 1 220px; }
.line-row .hex { font-family: var(--mono); font-size: 11.5px; color: var(--muted); word-break: break-all; flex: 1 1 220px; }
.line-row a { font-size: 12.5px; flex: none; }

details.fold { margin-top: 26px; border-top: 1px solid var(--line); padding: 14px 0 0; }
details.fold + details.fold { margin-top: 14px; }
details.fold summary { font-size: 14px; font-weight: 500; }
details.fold .lead { margin: 10px 0 12px; font-size: 13px; color: var(--ink-2); max-width: 74ch; line-height: 1.6; }
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  padding: 16px 0 0;
}
.method-grid .k { font-size: 13.5px; font-weight: 500; }
.method-grid .w { font-family: var(--mono); color: var(--muted); font-weight: 400; }
.method-grid .q { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; line-height: 1.55; }
details.fold .foot-note { margin: 18px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; max-width: 82ch; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  border: 1px solid var(--line-2);
  background: var(--surface);
}
.stat-grid .cell { padding: 15px 18px; border-right: 1px solid var(--hair-2); }
.stat-grid .k { font-size: 12px; color: var(--muted); }
.stat-grid .v { font-family: var(--mono); font-size: 18px; margin-top: 6px; }
.stat-grid .n { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.prose { margin: 20px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; max-width: 80ch; }

.sec-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: baseline;
  justify-content: space-between;
}
.sec-head h2 { font-size: 16px; font-weight: 600; margin: 0; letter-spacing: -.015em; }
.pills { display: flex; gap: 6px; }

.income { margin-top: 12px; border-top: 1px solid var(--ink); }
.income-row {
  display: grid;
  grid-template-columns: 90px 1fr 110px 110px 70px;
  gap: 16px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--hair);
  font-size: 13px;
}
.income-row .per { font-family: var(--mono); color: var(--ink-2); }
.income-row .bars { display: flex; flex-direction: column; gap: 4px; }
.income-row .bar { height: 6px; display: block; }
.income-row .bar.rev { background: var(--brand); }
.income-row .bar.earn { background: var(--earn); }
.income-row .num { font-family: var(--mono); text-align: right; }
.income-row .num.sub { color: var(--ink-2); }
.income-row .num.faint { color: var(--muted); }
.income-key { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.income-key span { display: inline-flex; align-items: center; gap: 7px; }
.income-key i { width: 12px; height: 6px; display: block; }
.income-key i.rev { background: var(--brand); }
.income-key i.earn { background: var(--earn); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 32px;
  padding: 14px 0 0;
}
.facts .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 13px;
}
.facts .row span:first-child { color: var(--muted); }
.facts .row span:last-child { font-family: var(--mono); }

.hidden { display: none; }
.empty { padding: 26px; text-align: center; color: var(--ink-2); }
.phone-only { display: none; }
.home-mobile, .wrap-cards { display: none; }
.sortbar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 0 0 12px;
  margin: 0 -4px 4px;
  scrollbar-width: none;
}
.sortbar::-webkit-scrollbar { display: none; }
.sortbar .btn { flex: none; }
.home-list { border-top: 1px solid var(--ink); }
.hc {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 4px 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
  color: inherit;
  min-height: 56px;
}
.hc:active { background: var(--wash); }
.hc-rk { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 8px; text-align: right; }
.hc-mid { min-width: 0; }
.hc .co { min-width: 0; }
.hc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.hc-right { text-align: right; padding-top: 2px; flex: none; }
.hc-right .best-sym { margin-top: 6px; font-size: 12px; white-space: nowrap; }
.hc-right .best-who { display: none; }
.wcard {
  border-bottom: 1px solid var(--hair);
  padding: 14px 0;
  cursor: pointer;
}
.wcard.lead { background: var(--token-wash); margin: 0 -12px; padding: 14px 12px; }
.wcard.open { background: var(--wash); margin: 0 -12px; padding: 14px 12px; }
.wcard-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.wcard-meta { font-size: 12.5px; color: var(--ink-2); margin: 6px 0 0 16px; }
.wcard-nums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-top: 12px;
  font-size: 12.5px;
}
.wcard-nums .k { color: var(--muted); font-size: 11.5px; }
.wcard-nums .v { font-family: var(--mono); margin-top: 2px; }
.swipe-hint { display: none; }

@media (max-width: 860px) {
  .topbar-inner {
    padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
    gap: 12px;
  }
  main {
    padding: 0 max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left));
  }
  .foot {
    padding: 8px max(16px, env(safe-area-inset-right)) max(48px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }
  .aside { display: none; }
  .tag { display: none; }
  .answers { grid-template-columns: 1fr; }
  .answers .share { border-right: 0; border-bottom: 1px solid var(--line); }
  .income-row { grid-template-columns: 72px 1fr 88px; }
  .income-row .num.sub, .income-row .num.faint { display: none; }
  .views button { flex: 1; text-align: center; min-height: 44px; padding: 12px 10px; white-space: nowrap; }
  .btn { min-height: 36px; padding: 8px 12px; }
  .addr-row button { min-height: 40px; padding: 8px 14px; }
  .searchwrap input { font-size: 16px; min-height: 44px; }
  .search-pop { max-height: min(70vh, 420px); }
  .search-pop a { min-height: 44px; padding: 12px 14px; }
  .hard .cell { padding: 14px 16px; }
  .panel-top, .why-block, .addr-row, .break, .note-card, .answers .pane { padding-left: 16px; padding-right: 16px; }
  .table-rule { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
}

@media (max-width: 720px) {
  .desk-only { display: none !important; }
  .phone-only { display: block; }
  .home-desk, .wrap-table { display: none; }
  .home-mobile, .wrap-cards { display: block; }
  table.ranks, table.wraps { min-width: 0; }
  .swipe-hint { display: none; }
  .home-head {
    padding: 18px 0 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .home-head > * { min-width: 0; max-width: 100%; }
  .home-head h1 { font-size: 20px; }
  .co { min-width: 0; }
  .hard { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid .cell { border-bottom: 1px solid var(--hair-2); }
  .line-row { flex-direction: column; gap: 4px; align-items: flex-start; padding: 12px 0; }
  .line-row .sym { min-width: 0; }
  .tok-open .facts span { white-space: normal; }
  .scorebox .n { font-size: 28px; }
}

@media (max-width: 640px) {
  .topbar-inner { flex-wrap: wrap; gap: 8px 12px; }
  .searchwrap { flex: 1 1 100%; margin-left: 0; order: 3; }
  .search-pop .gr { display: none; }
  .search-pop { left: 0; right: 0; }
}

@media (max-width: 560px) {
  .meter { grid-template-columns: 96px 1fr 36px; }
  .co-head { gap: 10px; }
  .co-head h1 { font-size: 20px; }
  .co-head .sym { font-size: 14px; }
  .answers .px { font-size: 26px; }
  .answers .px.sm { font-size: 22px; }
  .answers .pane { padding: 16px; }
  .wcard-nums { grid-template-columns: 1fr 1fr; }
  .break-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}
