:root {
  --bg: #0b0f14;
  --bg-2: #0f141b;
  --panel: #121922;
  --panel-2: #17202b;
  --line: #1e2834;
  --line-2: #2b3846;
  --text: #e6ecf2;
  --muted: #8b9aab;
  --faint: #5d6c7d;
  --accent: #c6f135;
  --accent-ink: #0b0f14;
  --accent-soft: rgba(198, 241, 53, .12);
  --sec: #ffb340;
  --sec-soft: rgba(255, 179, 64, .12);
  --upd: #6fa8ff;
  --upd-soft: rgba(111, 168, 255, .12);
  --crit: #ff6363;
  --crit-soft: rgba(255, 99, 99, .12);
  --cc: #b892ff;
  --cc-soft: rgba(184, 146, 255, .12);
  --grid: rgba(255, 255, 255, .035);
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 10px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f5f7; --bg-2: #eceff3; --panel: #ffffff; --panel-2: #f7f9fb;
    --line: #e1e6eb; --line-2: #cfd7df; --text: #0d1621; --muted: #556373; --faint: #8794a2;
    --accent: #3f6b00; --accent-ink: #f6ffe0; --accent-soft: rgba(110, 170, 0, .14);
    --sec: #a35a00; --sec-soft: rgba(255, 166, 0, .14);
    --upd: #1f5fd1; --upd-soft: rgba(31, 95, 209, .1);
    --crit: #c42727; --crit-soft: rgba(196, 39, 39, .09);
    --cc: #6b3fcf; --cc-soft: rgba(107, 63, 207, .1);
    --grid: rgba(13, 22, 33, .045); --shadow: 0 20px 50px rgba(16, 30, 50, .16);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f3f5f7; --bg-2: #eceff3; --panel: #ffffff; --panel-2: #f7f9fb;
  --line: #e1e6eb; --line-2: #cfd7df; --text: #0d1621; --muted: #556373; --faint: #8794a2;
  --accent: #3f6b00; --accent-ink: #f6ffe0; --accent-soft: rgba(110, 170, 0, .14);
  --sec: #a35a00; --sec-soft: rgba(255, 166, 0, .14);
  --upd: #1f5fd1; --upd-soft: rgba(31, 95, 209, .1);
  --crit: #c42727; --crit-soft: rgba(196, 39, 39, .09);
  --cc: #6b3fcf; --cc-soft: rgba(107, 63, 207, .1);
  --grid: rgba(13, 22, 33, .045); --shadow: 0 20px 50px rgba(16, 30, 50, .16);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  background-attachment: fixed;
}
a { color: inherit; }
code, kbd, pre, .mono { font-family: var(--mono); }
code { font-size: .92em; padding: .08em .35em; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line); }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-in { max-width: 1180px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 5px); gap: 3px; align-items: end; height: 18px; }
.brand-mark i { display: block; width: 5px; background: var(--accent); border-radius: 1px; }
.brand-mark i:nth-child(1) { height: 8px; opacity: .55; }
.brand-mark i:nth-child(2) { height: 13px; opacity: .8; }
.brand-mark i:nth-child(3) { height: 18px; }
.brand-name { font: 600 16px/1 var(--mono); letter-spacing: -.02em; white-space: nowrap; }
.brand-tld { color: var(--faint); }
.seg { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); margin-left: auto; }
.seg button {
  border: 0; background: none; padding: 6px 12px; border-radius: 6px; font-weight: 500; font-size: 14px; color: var(--muted);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.seg button[aria-selected="true"] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg-n { font: 500 11px/1 var(--mono); color: var(--faint); }
.seg button[aria-selected="true"] .seg-n { color: var(--accent); }
.top-actions { display: flex; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.has-token { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

main { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; padding: 64px 0 36px; }
.eyebrow { margin: 0 0 10px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; }
.lede { margin: 16px 0 0; font-size: 17px; color: var(--muted); max-width: 520px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.stats div { padding: 16px 18px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats dt { font: 500 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--faint); }
.stats dd { margin: 8px 0 0; font: 600 24px/1 var(--mono); letter-spacing: -.03em; }
.stats dd small { display: block; margin-top: 6px; font: 400 12px/1.2 var(--sans); color: var(--muted); letter-spacing: 0; }

/* ---------- latest ---------- */
.band { padding: 8px 0 28px; }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; font-weight: 600; }
.band-head p { margin: 0; font-size: 13.5px; }
.latest { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .latest { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .latest { grid-template-columns: 1fr; } }
.lcard {
  position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel);
  padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.lcard.primary { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: inset 0 2px 0 var(--accent); }
.lcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lcard-line { font: 500 12px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lcard-title { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.lcard-build { font: 500 13px/1 var(--mono); color: var(--muted); }
.lcard-build b { color: var(--text); font-weight: 600; }
.lcard-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }

/* ---------- buttons, pills ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--panel-2); font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--faint); }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn-accent:hover { filter: brightness(1.06); border-color: var(--accent); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); padding: 0 8px; }
.btn-ghost:hover { color: var(--text); border-color: var(--line); }
.btn-sm { height: 30px; font-size: 13px; padding: 0 10px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px;
  font: 500 11.5px/1 var(--mono); white-space: nowrap; border: 1px solid transparent;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.t-patch { color: var(--accent); background: var(--accent-soft); }
.pill.t-security { color: var(--sec); background: var(--sec-soft); }
.pill.t-update, .pill.t-ga { color: var(--upd); background: var(--upd-soft); }
.pill.t-cc, .pill.t-free { color: var(--cc); background: var(--cc-soft); }
.pill.t-withdrawn { color: var(--crit); background: var(--crit-soft); }
.pill.latest-pill { color: var(--text); background: transparent; border-color: var(--line-2); }
.pill.latest-pill::before { background: var(--accent); }

/* ---------- lookup ---------- */
.lookup { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin: 4px 0 40px; overflow: hidden; }
.lookup-in { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: center; padding: 22px 24px; }
.lookup-copy p { margin: 6px 0 0; font-size: 14px; }
.lookup-form { display: flex; gap: 8px; }
.lookup-form input, .search input, #tokenInput {
  flex: 1; min-width: 0; height: 42px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-2);
  background: var(--bg-2); font-family: var(--mono); font-size: 14px; outline: none;
}
.lookup-form input:focus, .search input:focus, #tokenInput:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lookup-form .btn { height: 42px; padding: 0 18px; }
.lookup-result { border-top: 1px solid var(--line); padding: 22px 24px 24px; background: var(--bg-2); }
.lr-head { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.lr-status { display: flex; align-items: center; gap: 12px; }
.lr-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px var(--accent-soft); background: var(--accent); }
.lr-dot.warn { background: var(--sec); box-shadow: 0 0 0 4px var(--sec-soft); }
.lr-dot.bad { background: var(--crit); box-shadow: 0 0 0 4px var(--crit-soft); }
.lr-status strong { font-size: 17px; letter-spacing: -.01em; }
.lr-status span { display: block; font-size: 13.5px; color: var(--muted); }
.lr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.lr-box { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 14px 16px; min-width: 0; }
.lr-box h4 { margin: 0 0 10px; font: 500 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--faint); }
.path { list-style: none; margin: 0; padding: 0; }
.path li { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; padding: 5px 0; font-size: 14px; position: relative; }
.path li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--line-2); justify-self: center; background: var(--panel); z-index: 1; }
.path li::after { content: ""; position: absolute; left: 6px; top: 50%; height: 100%; width: 2px; background: var(--line); }
.path li:last-child::after { display: none; }
.path li.cur::before { border-color: var(--faint); background: var(--faint); }
.path li.tgt::before { border-color: var(--accent); background: var(--accent); }
.path a { text-decoration: none; }
.path a:hover { text-decoration: underline; }
.path .mono { color: var(--muted); font-size: 12.5px; }
.vib-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vib-chip { font: 500 12px/1 var(--mono); padding: 6px 8px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); }
.vib-chip.crit { border-color: color-mix(in srgb, var(--crit) 50%, var(--line)); color: var(--crit); }
.lr-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---------- toolbar ---------- */
.list-wrap { padding-bottom: 80px; }
.toolbar {
  position: sticky; top: 61px; z-index: 10; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 12px 0; background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.search { position: relative; flex: 1 1 300px; display: flex; }
.search svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input { height: 38px; padding-left: 36px; padding-right: 36px; }
.search kbd { position: absolute; right: 10px; top: 50%; translate: 0 -50%; font-size: 11px; color: var(--faint); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel);
  font-size: 13px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { color: var(--text); border-color: var(--line-2); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--accent); }
.chip .n { font: 500 11px/1 var(--mono); color: var(--faint); }
.chip .sw { width: 7px; height: 7px; border-radius: 50%; }
.result-meta { margin: 14px 0 8px; font: 500 12.5px/1.3 var(--mono); color: var(--faint); }

/* ---------- release list ---------- */
.releases { list-style: none; margin: 0; padding: 0; position: relative; }
.rel { position: relative; padding-left: 30px; }
.rel::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.rel:first-child::before { top: 26px; }
.rel:last-child::before { bottom: calc(100% - 26px); }
.rel-dot { position: absolute; left: 2px; top: 21px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--bg); background: var(--accent); box-shadow: 0 0 0 1px var(--line-2); }
.rel[data-type="security"] .rel-dot { background: var(--sec); }
.rel[data-type="update"] .rel-dot, .rel[data-type="ga"] .rel-dot { background: var(--upd); }
.rel[data-type="cc"] .rel-dot, .rel[data-type="free"] .rel-dot { background: var(--cc); }
.rel[data-type="withdrawn"] .rel-dot { background: var(--crit); }
.rel-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); margin-bottom: 10px; transition: border-color .15s; }
.rel-card:hover { border-color: var(--line-2); }
.rel.open .rel-card { border-color: var(--line-2); }
.rel.flash .rel-card { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 3px transparent; } }
.rel-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer; }
.rel-main { min-width: 0; }
.rel-row1 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.rel-title { font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; margin: 0; }
.rel-build { font: 600 13.5px/1 var(--mono); color: var(--text); padding: 4px 7px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); }
.rel-row2 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 7px; font-size: 13px; color: var(--muted); }
.profile { display: inline-flex; align-items: center; gap: 6px; font: 400 12.5px/1.3 var(--mono); color: var(--muted); min-width: 0; max-width: 100%; }
.profile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-mini { border: 0; background: none; padding: 2px; color: var(--faint); display: inline-grid; place-items: center; border-radius: 4px; }
.copy-mini:hover { color: var(--text); background: var(--panel-2); }
.copy-mini svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sev { display: inline-flex; gap: 10px; font: 500 12px/1 var(--mono); }
.sev b { font-weight: 600; color: var(--text); }
.sev .c { color: var(--crit); }
.cats { display: inline-flex; gap: 4px; }
.cat { font: 500 11px/1 var(--mono); padding: 3px 6px; border-radius: 4px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.rel-note { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.rel[data-type="withdrawn"] .rel-note { color: var(--crit); }
.rel-actions { display: flex; align-items: center; gap: 6px; }
.chev { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; color: var(--faint); }
.chev svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.rel.open .chev svg { transform: rotate(180deg); }
.rel-body { border-top: 1px solid var(--line); }
.rel-body-in { padding: 4px 0 6px; }

/* ---------- VIB table ---------- */
.vt-wrap { overflow-x: auto; }
.vt { width: 100%; border-collapse: collapse; font-size: 13px; }
.vt th { text-align: left; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 12px 16px 10px; white-space: nowrap; }
.vt td { padding: 9px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.vt tr:hover td { background: var(--panel-2); }
.vt .vn { font: 600 13px/1.35 var(--mono); white-space: nowrap; }
.vt .vv a, .vt .vb a { font: 400 12.5px/1.35 var(--mono); text-decoration: none; color: var(--text); border-bottom: 1px dashed var(--line-2); }
.vt .vv a:hover, .vt .vb a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.vt .vs { color: var(--muted); min-width: 200px; }
.vt .vc { white-space: nowrap; }
.vt .sevc { font: 500 12px/1 var(--mono); }
.vt .sevc.critical { color: var(--crit); }
.vt tr.hit td { background: var(--accent-soft); }
.vt .muted { font-size: 12.5px; }
.body-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 10px; border-top: 1px solid var(--line); }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* ---------- modal ---------- */
.modal { border: 1px solid var(--line-2); border-radius: 14px; padding: 0; background: var(--panel); color: var(--text); width: min(760px, calc(100vw - 32px)); box-shadow: var(--shadow); }
.modal-sm { width: min(480px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(5, 8, 12, .6); backdrop-filter: blur(3px); }
.modal-in { padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.modal h3 { margin: 0; font: 600 17px/1.3 var(--mono); letter-spacing: -.02em; word-break: break-all; }
.modal .eyebrow { margin-bottom: 8px; }
.modal p { margin: 0; font-size: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 8px 10px 10px; font-size: 13.5px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.opts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--muted); }
.opts label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.opts input { accent-color: var(--accent); width: 15px; height: 15px; }
.code { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-size: 12.8px; line-height: 1.65; color: var(--text); white-space: pre; }
.code pre .c { color: var(--faint); }
.code pre .k { color: var(--accent); }
.code pre .t { color: var(--sec); }
.copy-btn { position: absolute; top: 10px; right: 10px; height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel); font-size: 12.5px; font-weight: 500; }
.copy-btn:hover { border-color: var(--accent); }
.hint { font-size: 13px !important; color: var(--muted); }
.hint a { color: var(--accent); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
#tokenInput { width: 100%; flex: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% 20px; opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); font-size: 13.5px; font-weight: 500; padding: 9px 14px; border-radius: 8px;
  transition: opacity .2s, translate .2s; z-index: 50; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 32px 24px 40px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot p { margin: 10px 0 0; font-size: 13.5px; max-width: 380px; }
.foot-links { display: grid; gap: 8px; font-size: 13.5px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; }
  .lookup-in { grid-template-columns: 1fr; gap: 14px; }
  .lr-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .top-in { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .top-actions { margin-left: auto; }
  .seg { order: 3; width: 100%; margin-left: 0; }
  .seg button { flex: 1; justify-content: center; }
  .brand-name { font-size: 14px; }
  .brand-tld { display: none; }
  .seg button { padding: 6px 9px; font-size: 13px; }
  .seg-n { display: none; }
  .icon-btn { width: 34px; height: 34px; }
  main { padding: 0 16px; }
  .stats dd { font-size: 19px; }
  .stats div { padding: 12px; }
  .lookup-in, .lookup-result { padding: 18px 16px; }
  .lookup-form { flex-direction: column; }
  .toolbar { position: static; }
  html { scroll-padding-top: 112px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .rel { padding-left: 22px; }
  .rel::before { left: 4px; }
  .rel-dot { left: -1px; }
  .rel-head { grid-template-columns: 1fr; padding: 12px 14px; }
  .rel-actions { justify-content: flex-start; flex-wrap: wrap; }
  .chev { display: none; }
  .vt thead { display: none; }
  .vt, .vt tbody, .vt tr, .vt td { display: block; width: 100%; }
  .vt tr { padding: 10px 14px; border-top: 1px solid var(--line); }
  .vt td { border: 0; padding: 2px 0; min-width: 0 !important; }
  .vt .vn { font-size: 13.5px; }
  .vt td[data-l]::before { content: attr(data-l); display: inline-block; width: 74px; font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
  .vt .vs { display: block; padding: 2px 0 4px; }
  .vt .vs::before { display: none !important; }
  .modal-in { padding: 18px 16px; }
  .foot-in { padding: 28px 16px 36px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
