:root {
  --bg: #0a0a0c;
  --panel: #131316;
  --panel-2: #1c1c20;
  --line: #27272c;
  --line-2: #37373e;
  --text: #f4f4f5;
  --dim: #a1a1aa;
  --faint: #85858f;
  --mint: #5fe3a1;
  --mint-ink: #06130c;
  --amber: #f0c05a;
  --coral: #ff8a7d;
  --blue: #7fb4ff;
  --mint-wash: rgba(95, 227, 161, .12);
  --amber-wash: rgba(240, 192, 90, .13);
  --coral-wash: rgba(255, 138, 125, .13);
  --grey-wash: rgba(161, 161, 170, .12);
  --radius: 14px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 6px; }
main:focus, aside:focus { outline: none; }
[hidden] { display: none !important; }
.offscreen { position: fixed; left: -9999px; top: 0; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.dim { color: var(--dim); }
.up { color: var(--mint); }
.down { color: var(--coral); }
.warn-t { color: var(--amber); }
.nil { color: var(--faint); }
.inline { color: var(--mint); }
.inline:hover { text-decoration: underline; }

/* Top bar. The blur sits on a layer of its own so the phone tab bar inside can still pin to the screen. */
.bar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.bar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 10, 12, .82); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); }
.bar-in { max-width: 1120px; margin: 0 auto; height: 60px; padding: 0 20px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 16px; letter-spacing: -.01em; flex: none; }
.brand img { display: block; border-radius: 7px; }
.nav { position: relative; display: flex; gap: 2px; flex: 1; }
.nav svg { display: none; }
.nav a { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 10px; color: var(--dim); font-weight: 550; font-size: 14px; transition: color .2s; white-space: nowrap; }
.nav a:hover, .nav a.on { color: var(--text); }
.nav a b { font-weight: 600; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.nav a b:empty { display: none; }
.nav a.on b { color: var(--mint); }
.unread { min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--mint); color: var(--mint-ink); font: 650 11px/18px var(--sans); text-align: center; font-variant-numeric: tabular-nums; }
.nav .thumb { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--panel-2); border-radius: 10px; transition: transform .34s var(--ease), width .34s var(--ease); }
.short, .cell small.age-s, .cell small.x-s { display: none; }
.fresh { display: flex; align-items: center; gap: 7px; color: var(--dim); font-size: 13px; white-space: nowrap; flex: none; }
.fresh i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: pulse 2.4s ease-in-out infinite; }
.fresh.off i { background: var(--amber); animation: none; }
@keyframes pulse { 50% { opacity: .35; } }

/* Page */
.page { max-width: 1120px; margin: 0 auto; padding: 30px 20px 24px; min-height: 60vh; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.head h1 { font-size: 30px; line-height: 1.12; font-weight: 700; letter-spacing: -.022em; }
.head p { margin-top: 5px; color: var(--dim); }
.seg { display: inline-flex; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; flex: none; }
.seg button { padding: 5px 12px; border-radius: 7px; color: var(--dim); font-size: 13px; font-weight: 550; white-space: nowrap; transition: background .2s, color .2s; }
.seg button.on { background: var(--panel-2); color: var(--text); }
.seg button b { font-weight: 600; color: var(--faint); margin-left: 5px; font-variant-numeric: tabular-nums; }
.empty { padding: 52px 20px; text-align: center; color: var(--dim); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.note { color: var(--dim); font-size: 13.5px; margin-bottom: 10px; }

.search { position: relative; margin-bottom: 12px; }
.search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; fill: none; stroke: var(--faint); stroke-width: 1.6; stroke-linecap: round; }
.search input { width: 100%; height: 40px; padding: 0 12px 0 35px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; color: var(--text); font: inherit; outline: none; transition: border-color .2s; }
.search input::placeholder { color: var(--faint); }
.search input:focus { border-color: var(--line-2); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.alerts { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.alerts::-webkit-scrollbar, .chiprow::-webkit-scrollbar, .links::-webkit-scrollbar, .pseg::-webkit-scrollbar { display: none; }
.alert { flex: none; display: flex; flex-direction: column; gap: 0; padding: 8px 12px; min-width: 112px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; font-size: 12.5px; transition: background .15s; }
a.alert:hover { background: var(--panel-2); }
.alert .k { color: var(--dim); font-size: 11.5px; }
.alert b { font-size: 14px; font-weight: 650; }
.alert .meta { color: var(--faint); font-variant-numeric: tabular-nums; }

.controls { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
/* Wraps on a wide screen, where a mouse wheel has no way along a row with its scrollbar hidden; sideways on a phone. */
.chiprow { display: flex; flex-wrap: wrap; gap: 6px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; }
.fchip { flex: none; padding: 6px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; color: var(--dim); font-size: 13px; font-weight: 550; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.fchip:hover { color: var(--text); }
.fchip b { margin-left: 6px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.fchip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.fchip.on b { color: rgba(10, 10, 12, .6); }
.sort { flex: none; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--faint); }
.sort select { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 5px 8px; font: 550 13px var(--sans); outline: none; }

/* The list */
.labels, .coin-main { display: grid; grid-template-columns: 44px 40px minmax(0, 1fr) 92px 92px 62px 44px; column-gap: 14px; align-items: center; }
.labels { padding: 0 148px 8px 16px; font-size: 12px; color: var(--faint); }
.labels span:nth-child(2) { grid-column: 2 / span 2; }
.labels span:nth-child(4), .labels span:nth-child(5), .labels span:nth-child(6) { text-align: right; white-space: nowrap; }
.coins, .rows { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.coins:empty { display: none; }
.coin, li.r { display: flex; align-items: center; border-top: 1px solid var(--line); transition: background .12s; }
.coin:first-child, li.r:first-child { border-top: 0; }
.coin:hover, li.r:hover { background: var(--panel-2); }
.coin:active, li.r:active { background: var(--line); }
.coin.top { box-shadow: inset 2px 0 0 var(--mint); }
.coin-main { flex: 1; min-width: 0; padding: 13px 0 13px 16px; }
.acts { flex: none; width: 148px; padding-right: 14px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.star { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--dim); transition: background .15s, color .15s, border-color .15s; }
.star svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.star:hover { color: var(--amber); border-color: var(--amber); }
.star.on, .coin:hover .star.on, li.r:hover .star.on { color: var(--amber); border-color: var(--amber); background: var(--amber-wash); }
.star.on svg { fill: currentColor; }

.ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.ring svg { display: block; }
.ring b { position: absolute; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ring circle { fill: none; stroke-width: 3.2; stroke-linecap: round; }
.ring .track { stroke: var(--line-2); }
.ring.hi .value { stroke: var(--mint); }
.ring.hi b { color: var(--mint); }
.ring.mid .value { stroke: var(--amber); }
.ring.lo .value { stroke: var(--faint); }
.ring.lo b { color: var(--dim); }
.ring.no b { color: var(--coral); font-size: 14px; }

.avatar { position: relative; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--panel-2); color: var(--dim); font-weight: 650; flex: none; border: 1px solid var(--line); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.who { min-width: 0; }
.names { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.names b { font-size: 16px; font-weight: 650; letter-spacing: -.005em; flex: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.names span { color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.names em { font-style: normal; font-size: 11px; font-weight: 650; color: var(--mint-ink); background: var(--mint); padding: 1px 7px; border-radius: 20px; flex: none; }
.line { color: var(--dim); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.chips:empty { display: none; }
.chip { display: inline-block; font-size: 12px; font-weight: 550; padding: 1px 8px; border-radius: 20px; white-space: nowrap; background: var(--grey-wash); color: var(--dim); }
.chip.g { color: var(--mint); background: var(--mint-wash); }
.chip.y { color: var(--amber); background: var(--amber-wash); }
.chip.r { color: var(--coral); background: var(--coral-wash); }
.chip-wrap .chip { white-space: normal; }
.trend { height: 34px; }
.spark { display: block; width: 100%; height: 100%; }
.spark polyline { fill: none; stroke: var(--faint); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark circle { fill: var(--mint); }
.cell { text-align: right; font-variant-numeric: tabular-nums; }
.cell b { font-weight: 600; }
.cell small { display: block; font-size: 11.5px; line-height: 1.3; white-space: nowrap; }
.since b { font-size: 15.5px; }
.age b { color: var(--dim); font-weight: 500; }

.copy { text-align: center; padding: 6px 11px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.coin:hover .copy, li.r:hover .copy, .coin:hover .star, li.r:hover .star { background: var(--bg); }
.copy:hover { border-color: var(--mint); color: var(--mint); }
.copy.done, .coin:hover .copy.done, li.r:hover .copy.done { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); }
.copy.big { background: var(--mint); color: var(--mint-ink); border-color: var(--mint); padding: 7px 14px; }
.copy.big:hover { color: var(--mint-ink); filter: brightness(1.08); }

/* Followed coins and What's running */
.r-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 11px 0 11px 14px; }
.r-main .who { flex: 1; }
.r-end { text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.r-end b { font-weight: 650; }
.r-end small { display: block; font-size: 12px; color: var(--dim); white-space: nowrap; }
.line.full { white-space: normal; }
.starcount { margin: 8px 0 22px; text-align: right; }
.block { margin-bottom: 30px; }
.block h2 { font-size: 19px; font-weight: 680; letter-spacing: -.012em; margin-bottom: 10px; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.theme { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
.theme b { display: block; font-weight: 650; }
.theme span { color: var(--mint); font-size: 13px; }
.theme small { display: block; color: var(--dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14px; align-items: center; }
.stat-row:first-child { border-top: 0; }

/* Coin page */
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .3s; }
.scrim.open { opacity: 1; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 31; width: min(560px, 100vw); overflow-y: auto; background: var(--panel); border-left: 1px solid var(--line); overscroll-behavior: contain; transform: translateX(100%); transition: transform .38s var(--ease); }
.panel.open { transform: none; }
.p-bar { position: sticky; top: 0; z-index: 3; background: rgba(19, 19, 22, .88); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); padding: 12px 18px 10px; border-bottom: 1px solid var(--line); }
.grab { display: none; }
.p-id { display: flex; align-items: center; gap: 11px; }
.p-id .avatar { width: 38px; height: 38px; }
.p-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.p-name b { font-size: 17px; font-weight: 680; letter-spacing: -.012em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-name span { color: var(--dim); font-size: 13px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.close { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--panel-2); color: var(--dim); flex: none; }
.close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.close:hover { color: var(--text); }
.pseg { position: relative; display: flex; margin-top: 11px; padding: 2px; background: var(--bg); border-radius: 9px; overflow-x: auto; scrollbar-width: none; }
.pseg button { position: relative; z-index: 1; flex: 1 0 auto; padding: 5px 11px; font-size: 13px; font-weight: 550; color: var(--dim); white-space: nowrap; transition: color .2s; }
.pseg button.on { color: var(--text); }
.pseg .thumb { position: absolute; left: 0; top: 2px; bottom: 2px; width: 0; background: var(--line-2); border-radius: 7px; transition: transform .3s var(--ease), width .3s var(--ease); }
.p-body, .p-pad { padding: 16px 18px 6px; }
.p-pad { padding: 16px 18px 6px; }
.p-fine { padding: 8px 18px 28px; }
.p-gone { padding: 70px 20px; text-align: center; color: var(--dim); }
.pill { display: inline-flex; flex: none; align-items: center; padding: 5px 11px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 20px; font-size: 13px; font-weight: 550; white-space: nowrap; }
.pill:hover { border-color: var(--dim); }
.p-gone .pill { margin-top: 14px; }

.hero { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
.hero .ring b { font-size: 26px; }
.hero .ring circle { stroke-width: 2.8; }
.hero-text b { display: block; font-size: 18px; font-weight: 680; letter-spacing: -.012em; line-height: 1.25; }
.hero-text span { display: block; color: var(--dim); font-size: 13.5px; }
.hero-text .run { display: inline; font-size: inherit; font-weight: 550; color: var(--mint); }
.hero-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 14px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.hero-stats div { background: var(--panel-2); padding: 9px 11px; }
.hero-stats dt { font-size: 12px; color: var(--dim); }
.hero-stats dd { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.hero-stats small { display: block; font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-stats.one { grid-template-columns: minmax(0, 1fr); }
.links { display: flex; gap: 6px; align-items: center; overflow-x: auto; margin-top: 12px; padding-bottom: 2px; scrollbar-width: none; }
.sec .links { margin-top: 0; flex-wrap: wrap; }
.ca { color: var(--faint); flex: none; margin-right: 4px; cursor: pointer; }
.chips.roomy { margin: 13px 0 0; }
.callout { margin-top: 12px; padding: 10px 12px; background: var(--grey-wash); color: var(--text); border-radius: 11px; font-size: 14px; }
.callout small { display: block; margin-top: 2px; font-size: 13px; opacity: .85; }
.callout.goes { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; text-align: left; line-height: 1.4; }
.callout.goes::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: 3px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); opacity: .7; }
.what { display: block; width: 100%; margin-top: 12px; padding: 0; text-align: left; font-size: 14.5px; line-height: 1.45; color: var(--text); }
/* On the inside: Safari and every iPhone browser don't clamp a button. */
.what > span { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.what:hover { color: var(--dim); }
.tab-h { font-size: 18px; font-weight: 680; letter-spacing: -.012em; margin-bottom: 8px; }
.callout.g { background: var(--mint-wash); color: var(--mint); }
.callout.y { background: var(--amber-wash); color: var(--amber); }
.callout.r { background: var(--coral-wash); color: var(--coral); }
.sec { margin-top: 24px; position: relative; }
.sec.lean { margin-top: 18px; }
.sec.tab-top { margin-top: 0; }
.tab-top.bare + .sec { margin-top: 8px; }
.sec h3 .chip { margin-left: 6px; font-size: 12px; font-weight: 550; vertical-align: 1px; white-space: normal; }
.sec-next { margin-top: 20px; }
.sec p + p, .sec p + .pts, .sec .post + .post { margin-top: 8px; }
.sec h3 { font-size: 15px; font-weight: 680; letter-spacing: -.008em; margin-bottom: 8px; }
.sec h3 span { color: var(--dim); font-weight: 500; margin-left: 5px; font-size: 13.5px; }
.sec h4 { font-size: 13px; font-weight: 600; color: var(--dim); margin: 13px 0 5px; }
.sec b { font-weight: 600; }
.lead { font-weight: 600; }
.traits { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.traits span { font-size: 12px; padding: 1px 8px; border-radius: 20px; background: var(--grey-wash); color: var(--dim); }
.traits + p { margin-top: 9px; }
.post { display: block; margin-top: 9px; padding: 10px 12px; background: var(--panel-2); border-radius: 11px; font-size: 13.5px; color: var(--dim); overflow-wrap: anywhere; }
a.post:hover { background: var(--line); }
.post b { color: var(--text); font-weight: 600; }
.post span { margin-left: 6px; font-size: 12px; color: var(--faint); }
.post p { margin-top: 3px; }
.pts { display: grid; gap: 1px; }
.pt { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; padding: 4px 0; font-size: 14.5px; }
.pt i { width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; background: var(--grey-wash); color: var(--dim); }
.pt.ok i { background: var(--mint-wash); color: var(--mint); }
.pt.warn i { background: var(--amber-wash); color: var(--amber); }
.pt.bad i { background: var(--coral-wash); color: var(--coral); }
.pt small { display: block; color: var(--dim); font-size: 13px; line-height: 1.4; margin-top: 1px; }
.lines { display: grid; gap: 3px; font-size: 14.5px; }
.lines li { overflow-wrap: anywhere; }
.more summary { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; padding: 3px 0; cursor: pointer; list-style: none; font-size: 13px; font-weight: 550; color: var(--dim); }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint); transform: rotate(-45deg); transition: transform .25s var(--ease); }
.more[open] summary::after { transform: rotate(45deg); }
.more .lines, .more .pts { margin-top: 3px; }
/* On the first screen "N more" sits at the end of the heading's line. */
.lean > .more > summary { position: absolute; top: -7px; right: 0; margin: 0; padding: 8px 0 8px 14px; }
.lean:has(> .more) h3 { padding-right: 64px; }
.pt > div, .sec p { overflow-wrap: anywhere; } /* a full address or link wraps instead of widening the page on a phone */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats div { background: var(--panel); padding: 9px 12px; }
.stats dt { font-size: 12px; color: var(--dim); }
.stats dd { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stats dd.g { color: var(--mint); }
.stats dd.r { color: var(--coral); }
.stats small { display: block; font-size: 11.5px; color: var(--faint); }
.stats:not(.three) div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.stats + p { margin-top: 9px; }
.p-pad .stats { margin-top: 14px; }
.group { background: var(--panel-2); border-radius: 12px; overflow: hidden; }
.group.scroll { overflow-x: auto; margin-top: 8px; }
.bars { padding: 4px 12px; }
.bar-row { display: grid; grid-template-columns: 136px minmax(0, 1fr) 42px; align-items: center; gap: 10px; padding: 6px 0; font-size: 13.5px; }
.bar-row svg { display: block; width: 100%; height: 6px; }
.bar-row .t { fill: var(--line-2); }
.bar-row .v { fill: var(--mint); }
.bar-row b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--dim); }
.disc { border-top: 1px solid var(--line); }
.disc:first-of-type { border-top: 0; }
.disc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; cursor: pointer; font-weight: 600; font-size: 14.5px; }
.disc summary::-webkit-details-marker { display: none; }
.disc summary span small { display: block; font-weight: 400; font-size: 12.5px; color: var(--dim); }
.disc summary em { flex: none; font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--dim); display: flex; align-items: center; gap: 5px; }
.disc summary em::after { content: ""; width: 7px; height: 7px; margin-left: 5px; border-right: 1.6px solid var(--faint); border-bottom: 1.6px solid var(--faint); transform: rotate(-45deg); transition: transform .25s var(--ease); }
.disc[open] summary em::after { transform: rotate(45deg); }
.disc em i { font-style: normal; font-size: 11.5px; font-weight: 650; padding: 0 6px; border-radius: 20px; }
.disc em i.ok { background: var(--mint-wash); color: var(--mint); }
.disc em i.warn { background: var(--amber-wash); color: var(--amber); }
.disc em i.bad { background: var(--coral-wash); color: var(--coral); }
.disc .pts, .disc .group, .disc > p { margin-bottom: 11px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 11.5px; font-weight: 500; color: var(--faint); padding: 8px 10px; white-space: nowrap; }
td { padding: 7px 10px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.n { text-align: right; }
.tag { font-size: 11px; font-weight: 550; padding: 0 6px; border-radius: 20px; background: var(--grey-wash); color: var(--dim); }
.tag.g { background: var(--mint-wash); color: var(--mint); }
.tag.y { background: var(--amber-wash); color: var(--amber); }
.tag.r { background: var(--coral-wash); color: var(--coral); }
.split { display: block; width: 100%; height: 8px; margin-top: 12px; border-radius: 4px; overflow: hidden; }
.split .r { fill: var(--coral); }
.split .y { fill: var(--amber); }
.split .b { fill: var(--blue); }
.split .g { fill: var(--mint); }
.legend { display: flex; flex-wrap: wrap; gap: 3px 14px; margin-top: 9px; font-size: 13px; color: var(--dim); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.legend i.r { background: var(--coral); }
.legend i.y { background: var(--amber); }
.legend i.b { background: var(--blue); }
.legend i.g { background: var(--mint); }
.legend b { color: var(--text); font-weight: 600; }
.fine { font-size: 12.5px; color: var(--faint); margin-top: 14px; }

.foot { max-width: 1120px; margin: 0 auto; padding: 8px 20px 34px; color: var(--faint); font-size: 12.5px; }

/* The door: the pitch, paying, the access link, the pass page */
body.gated .nav, body.gated .fresh, body.gated .passpill { display: none; }
.passpill { flex: none; padding: 3px 10px; border-radius: 20px; background: var(--panel-2); color: var(--dim); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.passpill:hover { color: var(--text); }
.notice { max-width: 1120px; margin: 12px auto -14px; padding: 9px 14px; width: calc(100% - 40px); background: var(--amber-wash); color: var(--amber); border-radius: 11px; font-size: 14px; }
.notice a { text-decoration: underline; font-weight: 600; }
.gate { max-width: 440px; margin: 0 auto; padding: 22px 0 12px; }
.backin { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; padding: 10px 13px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--dim); }
.gate h1 { font-size: 38px; line-height: 1.08; font-weight: 700; letter-spacing: -.028em; }
.pay h1, .done h1 { font-size: 30px; }
.intro { margin-top: 10px; color: var(--dim); font-size: 16.5px; line-height: 1.45; }
.feats { display: grid; gap: 11px; margin: 22px 0 26px; }
.feats li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.35; }
.feats i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; background: var(--mint-wash); color: var(--mint); }
.spacer { height: 22px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 10px; }
.plan { display: flex; flex-direction: column; gap: 1px; padding: 13px 15px; text-align: left; background: var(--panel); border: 1.5px solid var(--line); border-radius: 15px; transition: border-color .18s, background .18s; }
.plan span { font-size: 14px; color: var(--dim); }
.plan b { font-size: 27px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan small { min-height: 18px; font-size: 12.5px; font-weight: 600; color: var(--mint); }
.plan.on { border-color: var(--mint); background: var(--mint-wash); }
.seg.wide { display: flex; margin-top: 10px; }
.seg.wide button { flex: 1; padding: 7px 12px; }
.cta { display: block; width: 100%; margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--mint); color: var(--mint-ink); font-size: 16px; font-weight: 650; text-align: center; transition: filter .15s, transform .1s; }
.cta:hover { filter: brightness(1.06); }
.cta:active { transform: scale(.985); }
.cta[disabled] { opacity: .6; cursor: default; }
.err { margin-top: 10px; color: var(--coral); font-size: 14px; text-align: center; }
.center { text-align: center; }
.textbtn { display: block; margin: 16px auto 0; padding: 6px 10px; color: var(--dim); font-size: 14px; font-weight: 550; }
.textbtn:hover { color: var(--text); }
.textbtn.left { margin: 0 0 8px -10px; }
.minihead { margin: 26px 0 10px; font-size: 15px; font-weight: 680; }
.field { width: 100%; height: 50px; margin-top: 18px; padding: 0 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; color: var(--text); font: 15px var(--sans); outline: none; }
.field:focus { border-color: var(--line-2); }
.qr { width: min(250px, 70vw); margin: 18px auto 2px; padding: 6px; background: #fff; border-radius: 18px; }
.qr svg { display: block; width: 100%; height: auto; }
.qr rect { fill: #fff; }
.qr path { fill: #000; }
.sendrows { margin-top: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sendrows div { display: flex; align-items: center; gap: 10px; padding: 9px 13px; border-top: 1px solid var(--line); min-height: 48px; }
.sendrows div:first-child { border-top: 0; }
.sendrows span { color: var(--dim); font-size: 13.5px; flex: none; width: 82px; }
.sendrows b { flex: 1; min-width: 0; font-weight: 650; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sendrows .copy { flex: none; padding: 5px 10px; }
.wait { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; font-size: 14.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.wait i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: pulse 1.4s ease-in-out infinite; flex: none; }
.tick { width: 60px; height: 60px; margin: 6px auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--mint-ink); font-size: 30px; font-weight: 700; }
.done { text-align: center; }
.keybox { margin-top: 20px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; text-align: left; }
.keybox h3 { font-size: 15px; font-weight: 680; }
.keybox p { margin-top: 3px; color: var(--dim); font-size: 13.5px; }
.keybox code { display: block; margin: 10px 0; padding: 9px 11px; background: var(--bg); border-radius: 10px; font: 12.5px var(--mono); color: var(--dim); overflow-wrap: anywhere; }
.keybox .copy { width: 100%; padding: 10px 14px; }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 50; transform: translateX(-50%); width: max-content; max-width: min(420px, calc(100vw - 32px)); padding: 10px 14px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; font-size: 14px; text-align: center; }

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

/* Narrower windows */
@media (max-width: 980px) {
  .labels { display: none; }
  .coin-main { grid-template-columns: 44px 40px minmax(0, 1fr) 92px 62px 44px; }
  .trend { display: none; }
  .nav a { padding: 7px 10px; }
}

/* Phones: a card per coin, the sections along the bottom, and the coin page as a sheet. */
@media (max-width: 760px) {
  .bar-in { height: 52px; padding: 0 16px; justify-content: space-between; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; gap: 0; background: rgba(19, 19, 22, .9); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-top: 1px solid var(--line); padding: 6px 6px calc(4px + env(safe-area-inset-bottom)); }
  .nav .thumb, .nav a b { display: none; }
  .nav a span b { display: inline; font-size: inherit; color: inherit; }
  .unread { position: absolute; top: -2px; left: calc(50% + 6px); min-width: 16px; font-size: 10px; line-height: 16px; padding: 0 4px; }
  .nav a { flex: 1; flex-direction: column; gap: 1px; justify-content: center; padding: 3px 2px; font-size: 10.5px; font-weight: 500; }
  .nav a.on { color: var(--mint); }
  .nav svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .full { display: none; }
  .short { display: inline; }
  .page { padding: 18px 16px 12px; }
  .head { flex-direction: column; align-items: stretch; gap: 11px; margin-bottom: 13px; }
  .head h1 { font-size: 28px; }
  .head .seg { align-self: flex-start; }
  .controls { flex-direction: column; align-items: stretch; gap: 9px; }
  .chiprow { flex-wrap: nowrap; }
  .chiprow, .alerts { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .sort { align-self: flex-end; }
  .coins, .rows { background: none; border: 0; border-radius: 0; overflow: visible; display: grid; gap: 10px; }
  .coin, .coin:first-child { display: block; position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
  .coin:hover { background: var(--panel); }
  .coin:active { background: var(--panel-2); }
  .coin-main { grid-template-columns: 40px minmax(0, 1fr) 44px; column-gap: 11px; padding: 13px 13px 12px; }
  .who { display: contents; }
  .coin-main .avatar { grid-column: 1; grid-row: 1; }
  .names { grid-column: 2; grid-row: 1; flex-wrap: wrap; column-gap: 7px; row-gap: 0; }
  .names b { max-width: 100%; }
  .names span { flex: 1 1 100%; }
  .coin-main .ring { grid-column: 3; grid-row: 1; }
  .line { grid-column: 1 / -1; grid-row: 2; margin-top: 9px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .chips { grid-column: 1 / -1; grid-row: 3; margin-top: 8px; }
  .trend, .age, .since { display: none; }
  .mc { grid-column: 1 / -1; grid-row: 4; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; text-align: left; margin-top: 10px; min-height: 44px; padding: 6px 148px 0 0; }
  .mc small { display: inline; }
  .cell small.age-s { display: inline; color: var(--dim); }
  .cell small.x-s { display: inline; font-weight: 600; }
  .acts { position: absolute; right: 13px; bottom: 12px; width: auto; padding: 0; }
  .copy { padding: 7px 15px; }
  .star { width: 44px; height: 44px; border-radius: 11px; }
  .star svg { width: 20px; height: 20px; }
  li.r, li.r:first-child { position: relative; display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
  li.r:hover { background: var(--panel); }
  .r-main { padding: 12px 13px; padding-right: 13px; flex-wrap: wrap; }
  /* At most the room beside the picture (40 px and the 12 px gap), so a long name ellipsizes there instead of knocking the ticker onto a line of its own. A shorter name's row is laid out as it was. */
  .r-main .names { max-width: calc(100% - 52px); }
  li.r .line { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; }
  li.r .acts { position: static; padding: 0 13px 12px; }
  li.r .copy { width: 100%; }
  /* My coins: the same card as a coin on the list, the multiple and the buttons on the last line. */
  .mine .r-end { flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; text-align: left; min-height: 44px; margin-top: 2px; padding: 6px 148px 0 0; }
  .mine li.r .acts { position: absolute; right: 13px; bottom: 12px; padding: 0; }
  .mine li.r .copy { width: auto; }
  .foot { padding: 4px 16px calc(92px + env(safe-area-inset-bottom)); }
  .panel { top: 10px; left: 0; right: 0; width: 100vw; border-left: 0; border-radius: 16px 16px 0 0; transform: translateY(102%); z-index: 40; }
  .scrim { z-index: 39; }
  .p-bar { padding: 6px 14px 9px; border-radius: 16px 16px 0 0; }
  .grab { display: block; width: 38px; height: 5px; margin: 0 auto 8px; border-radius: 3px; background: var(--line-2); }
  .p-body, .p-pad { padding: 14px 14px 6px; }
  .p-fine { padding: 8px 14px calc(26px + env(safe-area-inset-bottom)); }
  .pseg button { flex: 0 0 auto; }
  .hero-stats dd { font-size: 16px; }
  .hero .ring svg { width: 58px; height: 58px; }
  .hero .ring b { font-size: 20px; }
  .hero-text b { font-size: 17px; }
  .hero-text .run { display: block; }
  .hero-text .run i { display: none; }
  .hero-stats { margin-top: 11px; }
  .hero-stats div { padding: 7px 10px; }
  .sec.lean { margin-top: 14px; }
  .sec.lean h3 { margin-bottom: 5px; }
  .lean .pt { padding: 2px 0; }
  /* What each warning means is in Every check on the Safety tab; the first screen is the warnings themselves. */
  .lean > .pts .pt small { display: none; }
  .callout { font-size: 13.5px; }
  .callout.goes { padding: 8px 10px; }
  .what { margin-top: 10px; }
  .hero-stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .hero-stats small { white-space: normal; }
  .bar-row { grid-template-columns: 112px minmax(0, 1fr) 40px; }
}

/* The 44 px star left the ticker too little room on narrow phones: it can take a second line rather than an ellipsis. */
@media (max-width: 400px) {
  .p-name b { white-space: normal; overflow-wrap: anywhere; }
}
