/* LensLedger styles */
/* Layout: sticky header with page tabs · hero + live stats · VPN strip · filter rail + ranked price cards · ads in rail and feed · mobile VPN bar */
:root {
  --bg: #F3F4F6;
  --surface: #FFFFFF;
  --fg: #15181D;
  --muted: #5D6470;
  --line: #DADDE3;
  --accent: #C93A22;
  --accent-ink: #FFFFFF;
  --accent-soft: #F8E3DE;
  --good: #1D7A4E;
  --good-soft: #DDF1E6;
  --bad: #A4361F;
  --ad-bg: #EBEDF1;
  --vpn: #17324D;
  --vpn-ink: #FFFFFF;
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101216; --surface: #181B21; --fg: #ECEEF2; --muted: #9AA1AD; --line: #2A2F38;
    --accent: #FF6A4D; --accent-ink: #15181D; --accent-soft: #3A1F1A;
    --good: #5FD09A; --good-soft: #17301F; --bad: #FF8A70; --ad-bg: #1E2229;
    --vpn: #1F3A57; --vpn-ink: #ECEEF2; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101216; --surface: #181B21; --fg: #ECEEF2; --muted: #9AA1AD; --line: #2A2F38;
  --accent: #FF6A4D; --accent-ink: #15181D; --accent-soft: #3A1F1A;
  --good: #5FD09A; --good-soft: #17301F; --bad: #FF8A70; --ad-bg: #1E2229;
  --vpn: #1F3A57; --vpn-ink: #ECEEF2; color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 15px; line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px 20px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand b { font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-size: 22px; letter-spacing: -0.01em; }
.brand i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }
nav.tabs { display: flex; gap: 4px; }
nav.tabs a { text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
nav.tabs a[aria-current="page"] { background: var(--fg); color: var(--bg); }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 16px; min-width: 0; }
.search input { flex: 1; border: 0; background: transparent; padding: 8px 0; outline: none; min-width: 0; }
.search kbd { font-family: var(--font-mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.mycountry { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.mycountry select { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 7px 10px; color: var(--fg); }

.hero { padding-block: 32px 20px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: end; }
h1 { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: clamp(32px, 5vw, 54px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 12px; text-wrap: balance; }
h1 em { font-style: normal; color: var(--accent); }
.lead { margin: 0; color: var(--muted); max-width: 62ch; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 14px; min-width: 0; }
.stat b { display: block; font-family: var(--font-mono); font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.stat span { font-size: 12px; color: var(--muted); }

.ad { background: var(--ad-bg); border: 1px dashed var(--line); border-radius: var(--radius); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 12px; padding: 14px; }
.ad small { display: block; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; margin-bottom: 4px; }
.ad.leader { min-height: 90px; margin-bottom: 16px; }
.ad.tower { min-height: 600px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
.ad.feed { grid-column: 1 / -1; min-height: 100px; }
.ad.article { min-height: 250px; margin-block: 24px; }

/* VPN strip (spot 4) */
.vpnstrip { background: var(--vpn); color: var(--vpn-ink); border-radius: var(--radius); padding: 14px 18px; display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin-bottom: 20px; }
.vpnstrip .txt { flex: 1 1 280px; min-width: 0; }
.vpnstrip b { font-family: var(--font-display); font-stretch: 95%; font-size: 18px; display: block; }
.vpnstrip span { font-size: 13px; opacity: .85; }
.vpnstrip .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; opacity: .7; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; padding: 9px 14px; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.light { background: var(--vpn-ink); color: var(--vpn); }

.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; padding-block: 8px 80px; align-items: start; }
aside.filters { display: grid; gap: 22px; align-self: stretch; align-content: start; }
.fgroup h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 5px 11px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.reset { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font-weight: 600; font-size: 13px; text-align: left; }
.board { display: grid; gap: 6px; font-size: 13px; }
.board div { display: grid; grid-template-columns: 28px 1fr auto; gap: 4px 8px; align-items: center; }
.board .bar { height: 6px; border-radius: 3px; background: var(--accent); grid-column: 2 / 4; opacity: .8; }
.board code { font-family: var(--font-mono); color: var(--muted); font-size: 11px; }
.board .n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.sponsor { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; }
.sponsor .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sponsor h4 { margin: 0; font-family: var(--font-display); font-stretch: 95%; font-size: 18px; font-weight: 800; }
.sponsor p { margin: 0; font-size: 13px; color: var(--muted); }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .count { font-weight: 600; }
.toolbar select { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 7px 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card.featured { box-shadow: 0 0 0 1px var(--accent) inset; border-color: var(--accent); }
.card .head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.card h2 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.25; }
.card .sub { color: var(--muted); font-size: 12px; }
.gap { text-align: right; flex-shrink: 0; }
.gap b { display: block; font-family: var(--font-mono); font-size: 20px; color: var(--accent); letter-spacing: -0.02em; line-height: 1; }
.gap span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.star { border: 0; background: none; cursor: pointer; padding: 2px; color: var(--muted); font-size: 18px; line-height: 1; }
.star[aria-pressed="true"] { color: var(--accent); }
table.rank { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.rank td { padding: 6px 4px; border-top: 1px solid var(--line); vertical-align: baseline; }
.rank td.r { font-family: var(--font-mono); color: var(--muted); width: 28px; }
.rank td.c { width: 100%; }
.rank td.c code { font-family: var(--font-mono); font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; margin-right: 6px; }
.rank td.p { font-family: var(--font-mono); font-weight: 700; text-align: right; white-space: nowrap; }
.rank td.p small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.rank tr.first td.p { color: var(--good); }
.rank tr.last td.p { color: var(--bad); }
.rank tr.skip td { border-top: 1px dashed var(--line); color: var(--muted); text-align: center; font-size: 11px; padding: 2px; }
.rank tr.mine td { background: var(--accent-soft); }
.rank .tax { display: block; font-size: 11px; color: var(--muted); }
.uslist { border-top: 1px solid var(--line); padding-top: 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.uslist strong { font-family: var(--font-mono); font-size: 24px; letter-spacing: -0.02em; }
.uslist span { font-size: 12px; color: var(--muted); }
.soon { font-size: 13px; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 8px 10px; }
.soon a { color: var(--accent); font-weight: 600; }
.yours { font-size: 13px; background: var(--good-soft); color: var(--good); border-radius: 8px; padding: 8px 10px; }
.yours.miss { background: var(--bg); color: var(--muted); }
.card .actions { display: flex; gap: 8px; margin-top: auto; }
.card .actions .btn.primary { flex: 1; }
.empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
mark { background: var(--accent-soft); color: inherit; border-radius: 2px; }

/* Newsletter (spot 10) */
.news { grid-column: 1 / -1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; }
.news .txt { flex: 1 1 260px; min-width: 0; }
.news b { font-family: var(--font-display); font-stretch: 95%; font-size: 20px; display: block; }
.news span { color: var(--muted); font-size: 14px; }
.news form { display: flex; gap: 8px; flex: 1 1 300px; flex-wrap: wrap; }
.news input { flex: 1 1 180px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; background: var(--bg); }
.news .msg { width: 100%; font-size: 13px; color: var(--muted); margin: 0; }

/* Article pages */
.page { max-width: 860px; padding-block: 32px 80px; }
.page h2 { font-family: var(--font-display); font-stretch: 92%; font-size: 26px; margin: 36px 0 10px; text-wrap: balance; }
.page p, .page li { max-width: 68ch; }
.page ol li { margin-bottom: 8px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.vpn { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
.vpn th, .vpn td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.vpn th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.vpn tr:last-child td { border-bottom: 0; }
.vpn td b { font-size: 15px; }
.vpn .pick { font-family: var(--font-mono); font-size: 10px; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; display: block; }
.note { font-size: 13px; color: var(--muted); }
.spots { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.spot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 6px; }
.spot b { font-size: 16px; }
.spot span { font-size: 13px; color: var(--muted); }
.copyrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.copyrow code { font-family: var(--font-mono); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; user-select: all; }

/* Mobile VPN bar (spot 8) */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--vpn); color: var(--vpn-ink); padding-bottom: env(safe-area-inset-bottom, 0px); display: none; }
.mbar .wrap { display: flex; align-items: center; gap: 10px; padding-block: 10px; }
.mbar .t { flex: 1; min-width: 0; font-size: 13px; }
.mbar .t small { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.mbar .x { background: none; border: 0; color: inherit; font-size: 20px; cursor: pointer; padding: 4px 6px; }

footer:not(.site) { border-top: 1px solid var(--line); padding-block: 28px 90px; color: var(--muted); font-size: 13px; }
footer:not(.site) .wrap { display: grid; gap: 8px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .ad.tower { display: none; }
  .mbar:not([hidden]) { display: block; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .stats .stat:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform .15s ease, box-shadow .15s ease; }
  .card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
}

.btn.outline { background: transparent; color: inherit; border-color: currentColor; }
.more { color: var(--accent); font-weight: 600; text-decoration: none; }
.spot .price { color: var(--fg); font-weight: 600; }
.ad.live { background: transparent; border: 0; padding: 0; display: block; }
nav.tabs { flex-wrap: wrap; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.page .tablewrap { margin-block: 16px; }
table.data { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; font-variant-numeric: tabular-nums; }
.data th, .data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.data th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.data td.num { font-family: var(--font-mono); font-weight: 700; text-align: right; white-space: nowrap; }
.data tr:last-child td { border-bottom: 0; }
.data tr.first td.num { color: var(--good); } .data tr.last td.num { color: var(--bad); }
.keyfig { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-block: 20px; }
.keyfig div { background: var(--surface); padding: 14px; min-width: 0; }
.keyfig b { display: block; font-family: var(--font-mono); font-size: 22px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.keyfig span { font-size: 12px; color: var(--muted); }
.faq h3 { font-size: 16px; margin: 20px 0 4px; }
.faq p { margin: 0; }
.vpnstrip.inline { margin-block: 24px; }
.guidelist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 20px; }
.guidelist a { display: grid; gap: 6px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.guidelist a:hover { border-color: var(--accent); }
.guidelist b { font-size: 16px; } .guidelist span { font-size: 13px; color: var(--muted); }
.legal h2 { font-size: 20px; }
.legal p, .legal li { color: var(--fg); }
.contact-page { max-width: 1080px; }
.contact-intro { padding: 10px 0 22px; }
.contact-eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.contact-intro h1 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 58px); line-height: 1.05; margin: 12px 0 14px; letter-spacing: -.035em; }
.contact-intro .lead { color: var(--muted); font-size: 18px; max-width: 65ch; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 12px 0 20px; }
.contact-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: 0 8px 28px rgb(0 0 0 / 3%); min-width: 0; }
.contact-panel h2 { margin: 10px 0; font-size: 24px; }
.contact-panel p { color: var(--muted); margin: 8px 0 16px; }
.contact-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 24px; }
.contact-panel .copyrow code { background: var(--bg); font-size: 13px; overflow-wrap: anywhere; }
.contact-panel .contact-note { font-size: 13px; margin: 14px 0 0; }
.contact-phone { display: inline-block; margin-top: 6px; font-size: 22px; font-weight: 700; color: var(--accent); }
.contact-compose { display: grid; grid-template-columns: 1fr 1.35fr; gap: 32px; }
.contact-compose h2 { margin-top: 12px; }
#messageComposer { display: grid; gap: 14px; }
#messageComposer label { display: grid; gap: 6px; font-size: 14px; font-weight: 650; }
#messageComposer input, #messageComposer select, #messageComposer textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; color: var(--fg); font-size: 15px; }
#messageComposer textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
#composeStatus { font-size: 13px; color: var(--good); }
.contact-fallback { display: block; width: 100%; min-height: 125px; }
.contact-disclaimer { grid-column: 1/-1; font-size: 13px; border-top: 1px solid var(--line); padding-top: 14px; margin: 0 !important; }
.contact-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 6px 4px 14px; }
.contact-bottom h2 { font-size: 21px; }
.contact-bottom p { color: var(--muted); }
@media (max-width: 760px) { .contact-grid, .contact-compose, .contact-bottom, .contact-form-row { grid-template-columns: 1fr; } .contact-panel { padding: 20px; } }
.notice { background: var(--accent-soft); border-radius: 8px; padding: 10px 14px; font-size: 13px; }

/* header extras */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cur select { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 7px 8px; font-size: 13px; font-weight: 600; color: var(--fg); }
.menubtn { display: none; margin-left: auto; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; width: 40px; height: 38px; font-size: 18px; cursor: pointer; }
@media (max-width: 760px) {
  .menubtn { display: inline-flex; align-items: center; justify-content: center; }
  .top .wrap { gap: 10px; }
  nav.tabs { display: none; width: 100%; flex-direction: column; gap: 2px; order: 5; }
  header.top.open nav.tabs { display: flex; }
  nav.tabs a { border-radius: 8px; padding: 10px 12px; }
  .cur { order: 2; }
}
/* footer */
footer.site { background: var(--surface); border-top: 1px solid var(--line); padding-block: 40px 96px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.fcols { display: grid; grid-template-columns: minmax(0,1.6fr) repeat(4, minmax(0,1fr)) minmax(0,1.4fr); gap: 28px; }
.fcols > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fcols h4 { margin: 0 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--fg); }
.fcols a { color: var(--muted); text-decoration: none; }
.fcols a:hover { color: var(--accent); }
.fbrand p { margin: 0; max-width: 34ch; }
.fbrand .brand { color: var(--fg); }
.fupd { font-family: var(--font-mono); font-size: 12px; }
.social { display: flex; gap: 8px; flex-wrap: wrap; }
.social a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--fg); }
.fnews p { margin: 0; }
.fnews form { display: grid; gap: 8px; }
.fnews input { border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; background: var(--bg); min-width: 0; }
.fnews .msg { font-size: 12px; }
.fbottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; display: grid; gap: 8px; font-size: 12px; }
.fbottom p { margin: 0; max-width: 120ch; }
@media (max-width: 1000px) { .fcols { grid-template-columns: repeat(3, minmax(0,1fr)); } .fbrand, .fnews { grid-column: 1 / -1; } }
@media (max-width: 520px) { .fcols { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
/* share, back to top, misc */
.share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-block: 24px 8px; font-size: 13px; color: var(--muted); }
.share a, .share button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--fg); cursor: pointer; }
.totop { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: 18px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
code.iso { font-family: var(--font-mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; margin-right: 4px; }
.rank td.c a { text-decoration: none; } .rank td.c a:hover { text-decoration: underline; }
.card .foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.card .foot a { color: var(--muted); }
a.chip { text-decoration: none; }

@media (max-width: 640px) { header.top { position: static; } }
@media (max-width: 520px) { .keyfig { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .keyfig div:last-child { grid-column: 1 / -1; } }
