/* DCBC RADAR: dark glass cockpit. Themes are token sets; screens never hard-code colours. */
:root, [data-theme="mono"] {
  --bg: #050506; --bg-2: #0c0c0f;
  --glow-a: rgba(235, 235, 245, .16); --glow-b: rgba(150, 150, 170, .12);
  --glass: rgba(255, 255, 255, .045); --glass-2: rgba(255, 255, 255, .075); --glass-hi: rgba(255, 255, 255, .12);
  --line: rgba(255, 255, 255, .10); --line-2: rgba(255, 255, 255, .18);
  --text: #f2f2f4; --muted: #9b9ba6; --faint: #6b6b75;
  --accent: #f4f4f6; --accent-ink: #0a0a0c; --accent-soft: rgba(244, 244, 246, .12);
  --ok: #34d399; --warn: #fbbf24; --bad: #f87171; --info: #60a5fa;
}
[data-theme="aurora"] { --bg: #04051a; --bg-2: #0a0b26; --glow-a: rgba(124, 58, 237, .42); --glow-b: rgba(37, 99, 235, .38); --accent: #8b6cff; --accent-ink: #ffffff; --accent-soft: rgba(139, 108, 255, .18); --muted: #a3a6c8; --faint: #6c6f96; }
[data-theme="emerald"] { --bg: #020d0a; --bg-2: #061813; --glow-a: rgba(16, 185, 129, .32); --glow-b: rgba(8, 145, 178, .26); --accent: #34d399; --accent-ink: #03140e; --accent-soft: rgba(52, 211, 153, .16); --muted: #9bb8ad; --faint: #5f7b71; }
[data-theme="sunset"] { --bg: #120605; --bg-2: #1d0b09; --glow-a: rgba(249, 115, 22, .34); --glow-b: rgba(219, 39, 119, .30); --accent: #fb923c; --accent-ink: #1a0a04; --accent-soft: rgba(251, 146, 60, .16); --muted: #c4a49a; --faint: #82625a; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.5 "Figtree", system-ui, sans-serif; letter-spacing: .005em;
}
body::before { /* the glow field behind the glass */
  content: ""; position: fixed; inset: -10%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42% 38% at 12% 8%, var(--glow-a), transparent 70%),
    radial-gradient(38% 42% at 92% 22%, var(--glow-b), transparent 72%),
    radial-gradient(50% 40% at 70% 100%, var(--glow-a), transparent 75%),
    linear-gradient(160deg, var(--bg-2), var(--bg) 60%);
  filter: saturate(115%);
}
body::after { /* silky light ribbons, very quiet */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background:
    radial-gradient(120% 60% at 110% 120%, transparent 58%, var(--glass-hi) 59.5%, transparent 61%),
    radial-gradient(120% 70% at -10% -20%, transparent 64%, var(--glass-2) 65.2%, transparent 66.5%);
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, .num { font-family: "Sora", "Figtree", sans-serif; letter-spacing: -.01em; }
h1 { font-size: 1.65rem; font-weight: 600; margin: 0; }
h2 { font-size: 1.08rem; font-weight: 600; margin: 0; }
h3 { font-size: .95rem; font-weight: 600; margin: 0; }
p { margin: 0 0 .6em; }
small, .muted { color: var(--muted); }
.faint { color: var(--faint); }
.ic { flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* glass */
.glass {
  background: var(--glass); border: 1px solid var(--line); border-radius: 18px;
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.reduce-fx .glass, .reduce-fx .side, .reduce-fx .topbar, .reduce-fx .bottomnav, .reduce-fx .pop { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background-color: var(--bg-2); }
.reduce-fx body::after { display: none; }
.pad { padding: 18px 20px; }

/* shell */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; padding: 22px 14px; display: flex; flex-direction: column; gap: 6px;
  border-right: 1px solid var(--line); background: rgba(0, 0, 0, .18); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--line-2); position: relative; overflow: hidden; }
.brand-mark::after { content: ""; position: absolute; inset: 0; background: conic-gradient(from 0deg, transparent 0 300deg, var(--accent) 360deg); opacity: .5; mask: radial-gradient(circle, #000 60%, transparent 61%); }
.brand b { font-family: Sora, sans-serif; font-size: .98rem; display: block; line-height: 1.1; }
.brand small { font-size: .72rem; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--glass); }
.nav a.on { color: var(--accent-ink); background: var(--accent); }
.nav a .count { margin-left: auto; font-size: .75rem; padding: 1px 7px; border-radius: 99px; background: var(--glass-2); color: var(--text); }
.nav a.on .count { background: rgba(0, 0, 0, .15); color: inherit; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 10px 0; border-top: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--line-2); font-family: "Sora", system-ui, sans-serif; font-weight: 600; font-size: .85rem; }

.main { min-width: 0; padding: 0 28px 60px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 16px 0; margin-bottom: 8px; }
.topbar::before { content: ""; position: absolute; inset: 0 -28px; z-index: -1; background: linear-gradient(var(--bg) 30%, transparent); opacity: .85; }
.search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 42px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); color: var(--muted); }

.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.iconbtn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line); color: var(--text); cursor: pointer; position: relative; }
.iconbtn:hover { background: var(--glass-2); }
.dot { position: absolute; top: 8px; right: 9px; min-width: 8px; height: 8px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 0 3px var(--bg); }
.date { color: var(--muted); font-size: .85rem; margin-right: 6px; }

/* page head */
.head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 6px 0 20px; }
.head p { margin: 4px 0 0; color: var(--muted); }
.head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--glass-2); color: var(--text); font: 500 .9rem "Figtree", system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--glass-hi); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.sm { height: 32px; padding: 0 11px; font-size: .82rem; border-radius: 9px; }
.btn.lg { height: 50px; padding: 0 22px; font-size: 1rem; border-radius: 14px; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); }
.btn.wa { background: #25d366; color: #052e16; border-color: transparent; font-weight: 600; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
label { display: block; font-size: .8rem; color: var(--muted); margin: 0 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); color: var(--text); border-radius: 11px; padding: 10px 12px; font: inherit; outline: none;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
select option { background: var(--bg-2); color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: var(--line-2); background: rgba(0, 0, 0, .35); }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field { margin-bottom: 14px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: .9rem; margin: 6px 0 12px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.stat .num { font-size: 1.9rem; font-weight: 600; line-height: 1; }
.stat .lab { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.stat .sub { font-size: .74rem; color: var(--faint); }
.stat .sub.alert { color: var(--bad); }
.stat .sym { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--line); }

/* grid */
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px 10px; }
.card-head .link { margin-left: auto; font-size: .82rem; color: var(--muted); }
.card-head .link:hover { color: var(--text); }

/* lead rows */
.list { list-style: none; margin: 0; padding: 0 8px 8px; }
.lrow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 13px; }
.lrow:hover { background: var(--glass); }
.lrow .who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .who span { display: block; color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .end { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: .78rem; }
.tier { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--glass-2); color: var(--muted); }
.tier.t1 { color: var(--ok); }
.tier.t1.mob { color: #25d366; }
.tier.t2 { color: var(--info); }
.tier.t3 { color: var(--warn); }

/* score bar: colour follows the percentage */
.score { display: inline-flex; align-items: center; gap: 8px; font: 600 .82rem "Sora", system-ui, sans-serif; }
.score .bar { width: 64px; height: 6px; border-radius: 99px; background: var(--glass-2); overflow: hidden; }
.score .bar i { display: block; height: 100%; border-radius: inherit; background: var(--c); box-shadow: 0 0 10px var(--c); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .76rem; font-weight: 500; border: 1px solid color-mix(in srgb, var(--c, #999) 45%, transparent); color: color-mix(in srgb, var(--c, #999) 80%, white); background: color-mix(in srgb, var(--c, #999) 14%, transparent); white-space: nowrap; }
.src { font-size: .72rem; color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; border-radius: 99px; white-space: nowrap; }

/* table list (leads page) */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: none; }
.tabs a { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: .85rem; white-space: nowrap; }
.tabs a.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.tabs a span { opacity: .7; margin-left: 4px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters select, .filters input { width: auto; min-width: 140px; height: 38px; padding-top: 0; padding-bottom: 0; }
.filters input[type=search] { flex: 1; min-width: 200px; }
.ltable { width: 100%; border-collapse: collapse; }
.ltable th { text-align: left; font-weight: 500; font-size: .76rem; color: var(--faint); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ltable td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .9rem; }
.ltable tr:last-child td { border-bottom: 0; }
.ltable tbody tr { cursor: pointer; }
.ltable tbody tr:hover td { background: var(--glass); }
.ltable .who b { display: block; font-weight: 600; }
.ltable .who span { color: var(--muted); font-size: .82rem; }
.quick { display: flex; gap: 6px; }
.quick a { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); }
.quick a:hover { color: var(--text); background: var(--glass-2); }
.quick a.wa:hover { color: #25d366; }
.pager { display: flex; gap: 8px; justify-content: space-between; align-items: center; padding: 14px; color: var(--muted); font-size: .85rem; }

/* lead page */
.lead-top { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.lead-top .ident { flex: 1; min-width: 240px; }
.lead-top h1 { font-size: 1.6rem; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; color: var(--muted); font-size: .86rem; }
.need { font-size: 1.02rem; line-height: 1.55; }
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cta .btn { height: 54px; font-size: 1rem; border-radius: 14px; }
.cta .wide { grid-column: span 2; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; color: var(--muted); padding: 6px 12px; border-radius: 9px; font: 500 .82rem "Figtree", system-ui, sans-serif; cursor: pointer; }
.seg button.on { background: var(--glass-hi); color: var(--text); }
.msgbox { width: 100%; min-height: 170px; font-size: .95rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding: 10px 0; }
.timeline li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin: 7px 3px; background: var(--c, var(--faint)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, #888) 15%, transparent); }
.timeline .t { font-size: .9rem; }
.timeline .w { font-size: .76rem; color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--glass); color: var(--text); padding: 6px 12px; border-radius: 99px; font: 500 .8rem "Figtree", system-ui, sans-serif; cursor: pointer; }
.chip:hover { background: var(--glass-2); }
.chip.on { background: var(--accent); color: var(--accent-ink); }
details.box > summary { cursor: pointer; list-style: none; padding: 14px 20px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
details.box > summary::-webkit-details-marker { display: none; }
details.box[open] > summary { color: var(--text); }
.stack > * + * { margin-top: 16px; }

/* flash & toasts */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; border: 1px solid var(--line-2); background: var(--glass-2); font-size: .9rem; }
.flash.err { border-color: color-mix(in srgb, var(--bad) 50%, transparent); color: #fecaca; }
.flash.ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%) translateY(20px); opacity: 0; transition: .25s; z-index: 80; padding: 12px 18px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); font-size: .9rem; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* popovers & sheets */
.pop { position: absolute; right: 0; top: 50px; width: 320px; padding: 14px; border-radius: 16px; background: color-mix(in srgb, var(--bg-2) 82%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 20px 60px rgba(0, 0, 0, .55); z-index: 50; display: none; }
.pop.open { display: block; }
.swatches { display: flex; gap: 10px; align-items: center; margin: 10px 0 14px; }
.sw { width: 40px; height: 40px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; position: relative; }
.sw.on { border-color: var(--text); }
.sw[data-t="mono"] { background: linear-gradient(135deg, #f4f4f6, #3a3a40); }
.sw[data-t="aurora"] { background: linear-gradient(135deg, #8b6cff, #1d4ed8); }
.sw[data-t="emerald"] { background: linear-gradient(135deg, #34d399, #0e7490); }
.sw[data-t="sunset"] { background: linear-gradient(135deg, #fb923c, #db2777); }
.sw.custom { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); overflow: hidden; }
.sw.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.notes-list a, .notes-list div { display: block; padding: 10px; border-radius: 10px; font-size: .86rem; }
.notes-list a:hover { background: var(--glass); }
.notes-list .u b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: middle; }
.sheet { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .55); }
.sheet.open { display: flex; }
.sheet .glass { width: min(520px, 100%); margin: 16px; padding: 22px; background: color-mix(in srgb, var(--bg-2) 88%, transparent); }

/* bottom nav (mobile) */
.bottomnav { display: none; }

/* settings */
.set-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.set-nav a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-size: .9rem; }
.set-nav a.on, .set-nav a:hover { background: var(--glass-2); color: var(--text); }
.engine { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.engine:last-child { border-bottom: 0; }
.badge { font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.badge.free { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.badge.paid { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.switch { position: relative; width: 42px; height: 24px; border-radius: 99px; background: var(--glass-2); border: 1px solid var(--line-2); cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: .2s; }
.switch.on { background: var(--accent); }
.switch.on::after { left: 20px; background: var(--accent-ink); }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; }
.map-table td, .map-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: .86rem; vertical-align: top; }
.sure-high { color: var(--ok); } .sure-medium { color: var(--warn); } .sure-low, .sure-none { color: var(--faint); }
.counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.counts div { padding: 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.counts b { display: block; font: 600 1.5rem "Sora", system-ui, sans-serif; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty h3 { color: var(--text); margin-bottom: 6px; }

/* sign-in: the one orchestrated moment */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(420px, 100%); padding: 34px 30px; }
.radar { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px; position: relative; border: 1px solid var(--line-2); background: radial-gradient(circle, transparent 32%, var(--line) 33%, transparent 34.5%, transparent 64%, var(--line) 65%, transparent 66.5%); }
.radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 290deg, var(--accent) 360deg); opacity: .55; animation: sweep 3.2s linear infinite; }
.radar i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); top: 24%; left: 64%; box-shadow: 0 0 10px var(--accent); animation: ping 3.2s ease-out infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes ping { 0%, 70% { opacity: 0; } 78% { opacity: 1; } 100% { opacity: .2; } }
.auth h1 { text-align: center; font-size: 1.7rem; }
.auth .tag { text-align: center; color: var(--muted); margin: 4px 0 26px; }

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

@media (max-width: 1100px) { .cols { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 0 16px 100px; }
  .topbar::before { inset: 0 -16px; }
  .date, .search { display: none; }
  .topbar .mbrand { display: flex !important; }
  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; padding: 6px; border-radius: 20px; background: color-mix(in srgb, var(--bg-2) 70%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 14px; color: var(--muted); font-size: .68rem; }
  .bottomnav a.on { color: var(--accent-ink); background: var(--accent); }
  .ltable thead { display: none; }
  .ltable, .ltable tbody, .ltable tr, .ltable td { display: block; width: 100%; }
  .ltable tr { display: grid; grid-template-columns: 34px 1fr auto; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .ltable td { border: 0; padding: 0; }
  .ltable td.hide-m { display: none; }
  .ltable td.c-tier { grid-row: span 2; }
  .ltable td.c-score { text-align: right; }
  .set-grid { grid-template-columns: 1fr; }
  .set-nav { display: flex; overflow-x: auto; gap: 4px; }
  .set-nav a { white-space: nowrap; }
  .pop { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; }
  h1 { font-size: 1.4rem; }
  .kv { grid-template-columns: 100px 1fr; }
}

/* late overrides */
button, input, select, textarea { font-family: inherit; }
.search input[type=search] { flex: 1; background: none; border: 0; padding: 0; height: 100%; color: var(--text); font: inherit; outline: none; }
.brand b, .stat .num, .lrow .num { font-family: "Sora", system-ui, sans-serif; }

.mfilter { display: none; }
@media (max-width: 900px) {
  .mfilter { display: inline-flex; }
  .filters .opt { display: none; }
  .filters.show .opt { display: block; width: 100%; }
  .filters input[type=search] { min-width: 0; }
}
