/* OctoSpy web app, from the Claude Design canvas (16 Oct 2026): warm near-black, hairlines, one sonar-blue accent,
   Geist for the interface, Geist Mono for numbers, Instrument Serif only for verdict lines. */
:root, html[data-theme="dark"] {
  --bg: #0E0F11; --side: #0B0C0E; --surface: rgba(24,26,30,0.55); --solid: #15171A; --raised: rgba(255,255,255,0.055); --track: #2A2E34; --track-2: #3A4048;
  --line: rgba(255,255,255,0.08); --line-2: rgba(255,255,255,0.13); --hair: rgba(255,255,255,0.06); --hover: rgba(255,255,255,0.035);
  --ink: #ECEDEE; --ink-2: #C9CCD1; --muted: #9A9EA6; --faint: #80858E;
  --accent: #5CC8FF; --accent-hi: #9ADCFF; --accent-ink: #04131C; --accent-soft: rgba(92,200,255,0.14);
  --up: #4ADE80; --est: #F5B94A; --down: #FF7A6B; --hot: #FF9A8E; --violet: #A78BFA;
  --av: #23272C; --menu: #17191C; --glass-hi: inset 0 1px 0 var(--hair); --shadow: 0 10px 30px -14px rgba(0,0,0,0.6);
  --glow-1: rgba(92,200,255,0.10); --glow-2: rgba(167,139,250,0.07);
  --sans: Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #F3F5F8; --side: #FBFCFD; --surface: rgba(255,255,255,0.62); --solid: #FFFFFF; --raised: rgba(15,23,42,0.05); --track: #E2E6EC; --track-2: #CBD2DB;
  --line: rgba(15,23,42,0.09); --line-2: rgba(15,23,42,0.15); --hair: rgba(15,23,42,0.07); --hover: rgba(15,23,42,0.035);
  --ink: #0F1720; --ink-2: #334155; --muted: #556070; --faint: #667080;
  --accent: #0277B6; --accent-hi: #015A8A; --accent-ink: #FFFFFF; --accent-soft: rgba(2,119,182,0.10);
  --up: #15803D; --est: #B45309; --down: #DC2626; --hot: #DC2626; --violet: #7C3AED;
  --av: #E6EAF0; --menu: #FFFFFF; --glass-hi: inset 0 1px 0 rgba(255,255,255,0.9); --shadow: 0 10px 30px -16px rgba(15,23,42,0.18);
  --glow-1: rgba(2,132,199,0.10); --glow-2: rgba(124,58,237,0.08);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--sans); }
body { min-height: 100vh; }
/* The glow sits on its own fixed layer, so scrolling does not repaint it. */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(1100px 620px at 88% -8%, var(--glow-1), transparent 62%), radial-gradient(900px 560px at 8% 108%, var(--glow-2), transparent 62%); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
[hidden] { display: none !important; }

/* Shell: the sidebar stays put while the page scrolls; it collapses to icons (html.navmin) and is a menu on phones */
.shell { display: flex; min-height: 100vh; }
.side { width: 240px; flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; background: var(--side); border-right: 1px solid var(--line); padding: 14px 12px 12px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; transition: width .2s ease; }
.sidetop { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.brandmark { display: flex; align-items: center; gap: 10px; padding: 4px 6px; font-weight: 600; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; min-width: 0; }
.brandmark:hover { color: var(--ink); }
.iconbtn { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 8px; border: 0; background: transparent; color: var(--faint); cursor: pointer; }
.iconbtn:hover { background: var(--hair); color: var(--ink); }
.mobonly { display: none; }
.search { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; text-align: left; }
.search:hover { border-color: var(--line-2); color: var(--ink); }
.search span.lbl:not(.kbd) { flex: 1; white-space: nowrap; }
.search .kbd { flex: none; }
.kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; color: var(--ink); }
.navs { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav h6 { margin: 0; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding: 0 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 10px; border-radius: 8px; font-size: 14px; color: var(--muted); min-width: 0; }
.nav a .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--hover); }
.nav a.on { background: var(--raised); color: var(--ink); font-weight: 500; box-shadow: inset 0 1px 0 var(--hair); }
.nav .ic { flex: none; opacity: .85; }
.nav .count { margin-left: auto; font: 11px var(--mono); padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.nav .count.hot { background: rgba(255,122,107,0.16); color: var(--hot); }
.nav .n { margin-left: auto; font-size: 11px; color: var(--faint); }
.accrow { display: flex; align-items: center; gap: 2px; }
.accrow > a { flex: 1; }
.acct { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--faint); cursor: pointer; transition: transform .2s; }
.acct:hover { color: var(--ink); background: var(--hair); }
.acct[aria-expanded="true"] { transform: rotate(90deg); }
.sub { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 2px 19px; padding-left: 8px; border-left: 1px solid var(--hair); }
.sub a { min-height: 32px; font-size: 13px; padding: 5px 8px; }
.sub .av { width: 18px; height: 18px; flex: none; border-radius: 5px; background: var(--av); color: var(--ink-2); font-size: 10px; font-weight: 600; display: grid; place-items: center; }
.sub .dotu { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #FF7A6B; flex: none; }
.sub .ic { width: 16px; height: 16px; }
.wsbox { position: relative; border-top: 1px solid var(--hair); padding-top: 10px; }
.ws { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; border-radius: 10px; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.ws:hover, .ws[aria-expanded="true"] { background: var(--raised); }
.ws .dot { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 13px; display: grid; place-items: center; font-weight: 600; flex: none; }
.ws .wsname { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ws .wsname b { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws .wsname small { font-size: 11px; color: var(--faint); text-transform: capitalize; }
.ws .wschev { color: var(--faint); display: grid; }
.wsmenu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: var(--menu); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 1px; box-shadow: 0 18px 48px -12px rgba(0,0,0,0.7); z-index: 30; min-width: 220px; }
.wsmenu[hidden] { display: none; }
.wsmenu .who { font-size: 12px; color: var(--faint); padding: 6px 10px 8px; overflow: hidden; text-overflow: ellipsis; }
.wsmenu a, .wsmenu button { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 10px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-2); font: 13px var(--sans); cursor: pointer; text-align: left; }
.wsmenu a:hover, .wsmenu button:hover { background: var(--hair); color: var(--ink); }
.wsmenu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
/* Collapsed: icons only, names as tooltips */
html.navmin .side { width: 64px; padding-left: 10px; padding-right: 10px; }
html.navmin .side .lbl, html.navmin .nav h6 { display: none; }
html.navmin .sidetop { flex-direction: column; }
html.navmin #collapseNav svg { transform: rotate(180deg); }
html.navmin .brandmark { padding: 4px; }
html.navmin .search { justify-content: center; padding: 7px; }
html.navmin .nav a { justify-content: center; padding: 6px; }
html.navmin .nav .count { position: absolute; margin: 0; transform: translate(12px, -10px); padding: 0 5px; font-size: 10px; }
html.navmin .nav a { position: relative; }
html.navmin .sub { margin-left: 0; padding-left: 0; border-left: 0; }
html.navmin .ws { justify-content: center; padding: 6px 0; }
html.navmin .wsmenu { left: 0; right: auto; }
.main { flex: 999 1 560px; min-width: 0; padding: 24px 32px 56px; display: flex; flex-direction: column; gap: 24px; }

/* Type */
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.crumbs i { color: var(--faint); font-style: normal; }
h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
h1 small { font: 400 14px var(--mono); color: var(--muted); letter-spacing: 0; }
h2 { margin: 0; font-size: 15px; font-weight: 600; }
.verdict { margin: 0; font: 400 18px/1.5 var(--sans) !important; color: var(--ink-2); max-width: 78ch; letter-spacing: -0.005em; text-wrap: pretty; }
.eyebrow { font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.head .title { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.col { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.grow3 { flex: 3 1 460px; } .grow2 { flex: 2 1 320px; }
.live { display: flex; align-items: center; gap: 8px; font: 12px var(--mono); color: var(--muted); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--up); flex: none; }

/* Surfaces */
/* Glass: translucent fill, top highlight and soft shadow over the page's glow. No backdrop blur on cards: behind them is only a smooth gradient, and dozens of blurred layers made pages heavy. */
.card, .kpi, .tablebox, .xstep, .rstages button { box-shadow: var(--glass-hi), var(--shadow); background-image: linear-gradient(180deg, var(--hover), transparent 60%); }
.card .card, .card .kpi, .card .tablebox { box-shadow: var(--glass-hi); background-image: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card.flush { padding: 0; gap: 0; overflow: hidden; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.kpi .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.kpi .v { font: 21px var(--mono); font-variant-numeric: tabular-nums; }
.kpi .n { font-size: 12px; color: var(--muted); }
.kpi .n.up { color: var(--up); } .kpi .n.down { color: var(--down); }

/* Chips: where a number came from */
.chip { display: inline-flex; align-items: center; gap: 5px; font: 10px var(--mono); padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.chip.obs { background: rgba(74,222,128,0.12); color: var(--up); }
.chip.pub { background: rgba(92,200,255,0.12); color: var(--accent); }
.chip.est { border: 1px dashed var(--est); color: var(--est); }
.chip.warn { background: rgba(245,185,74,0.14); color: var(--est); }
.chip.grey { background: var(--raised); color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--raised); color: var(--ink); font-size: 14px; cursor: pointer; box-shadow: inset 0 1px 0 var(--hair); white-space: nowrap; }
.btn:hover { color: var(--ink); border-color: var(--line-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border: 0; font-weight: 500; box-shadow: none; }
.btn.primary:hover { filter: brightness(1.08); color: var(--accent-ink); }
.btn.ghost { background: transparent; border: 0; box-shadow: none; color: var(--muted); padding: 0 8px; }
.btn.small { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-size: 13px; }
.pills { display: flex; gap: 4px; flex-wrap: wrap; }
.pills button { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.pills button.on { background: var(--raised); color: var(--ink); }

/* Feed */
.feed .item { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--hair); align-items: start; }
.feed .item:last-child { border-bottom: 0; }
.feed .badge { width: 36px; height: 32px; border-radius: 8px; display: grid; place-items: center; font: 11px var(--mono); }
.badge.down { background: rgba(255,122,107,0.14); color: var(--down); } .badge.new { background: var(--accent-soft); color: var(--accent); }
.badge.up { background: rgba(74,222,128,0.13); color: var(--up); } .badge.grey { background: var(--av); color: var(--ink); }
.feed .what { font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.feed .what b { font-weight: 600; }
.feed .acts { display: flex; gap: 6px; padding-top: 6px; flex-wrap: wrap; }
.feed time { font: 11px var(--mono); color: var(--faint); white-space: nowrap; }
.list .li { padding: 14px 18px; border-bottom: 1px solid var(--hair); display: flex; flex-direction: column; gap: 4px; }
.list .li:last-child { border-bottom: 0; }
.list .li small { font-size: 12px; color: var(--faint); }
.empty { padding: 28px 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.empty p { margin: 0; color: var(--muted); max-width: 60ch; }

/* Tables */
.tablebox { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 500; padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 0 16px; height: 42px; border-bottom: 1px solid var(--hair); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
tbody tr.click { cursor: pointer; } tbody tr.click:hover { background: var(--hover); }
s.was { color: var(--faint); }

/* Tracker strip, bars */
.tracker { display: flex; gap: 3px; height: 36px; }
.tracker div { flex: 1 1 0; border-radius: 3px; background: var(--track-2); }
.tracker .re { background: var(--accent); } .tracker .out { background: var(--down); } .tracker .px { background: var(--est); } .tracker .none { background: var(--raised); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.steps { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.steps div { display: flex; gap: 10px; align-items: center; }
.steps .s { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--up); }
.steps .s.run { background: transparent; border: 2px solid var(--accent); }
.steps .s.warn { background: var(--est); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.tags span { padding: 4px 9px; border-radius: 6px; background: var(--raised); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; color: var(--muted); }
.input { height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-family: var(--mono); font-size: 14px; min-width: 0; }
.bigform { width: 100%; max-width: 720px; display: flex; gap: 8px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -16px rgba(0,0,0,0.6); }
.bigform input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 0; background: transparent; font-size: 17px; outline: none; }
.bigform .btn { height: 48px; padding: 0 20px; font-size: 15px; font-weight: 600; border-radius: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--raised); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.tile .v { font: 22px var(--mono); }
.tile small { font-size: 11px; color: var(--faint); }
.note { font-size: 13px; color: var(--ink-2); line-height: 1.55; background: var(--raised); border-radius: 10px; padding: 12px 14px; }
.bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; }
.stage { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.stage div { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.stage i { height: 4px; border-radius: 2px; background: var(--track); display: block; }
.stage i.done { background: var(--accent); }
.stage small { font: 11px var(--mono); color: var(--faint); }

/* Palette, toast */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; z-index: 50; }
.palette { width: 100%; max-width: 560px; background: var(--menu); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(0,0,0,0.7); overflow: hidden; }
.palette input { width: 100%; height: 52px; padding: 0 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 16px; outline: none; }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
.palette li { padding: 9px 12px; border-radius: 8px; display: flex; justify-content: space-between; gap: 10px; cursor: pointer; font-size: 14px; }
.palette li.on { background: var(--raised); }
.palette li small { color: var(--faint); font: 11px var(--mono); }
#toast { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: 20px; background: var(--menu); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 14px; font-size: 13px; z-index: 60; box-shadow: 0 18px 40px -16px rgba(0,0,0,0.7); }

/* OctoSpy 2.0: Home KPIs, New players, Funnels */
.nav .count.new { background: var(--accent-soft); color: var(--accent); }
.nav .count:not(.new) { background: rgba(255,122,107,0.16); color: var(--hot); }
.kpis.four { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
a.kpi { color: var(--ink); transition: border-color .2s, background .2s; }
a.kpi:hover { border-color: rgba(92,200,255,0.4); background: var(--raised); color: var(--ink); }
.kpi.hot { border-color: rgba(255,122,107,0.3); } .kpi.hot .v { color: var(--hot); }
.kpi.cool { border-color: rgba(92,200,255,0.3); } .kpi.cool .v { color: var(--accent); }
.chip.new { background: var(--accent-soft); color: var(--accent); }
.chip.up { background: rgba(74,222,128,0.12); color: var(--up); }
.niches { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.nchip { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--raised); }
.nchip .x { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--faint); cursor: pointer; font-size: 14px; }
.nchip .x:hover { background: var(--hair); color: var(--ink); }
.nadd { flex: 0 1 260px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px dashed var(--line-2); background: transparent; color: var(--ink); font-size: 13px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { min-height: 40px; padding: 10px 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.npgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 14px; }
.np { gap: 14px; }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--av); display: grid; place-items: center; font-weight: 600; }
.facts > div { display: flex; flex-direction: column; gap: 3px; }
.facts small { font-size: 11px; color: var(--faint); }
.insight { font-size: 13px; line-height: 1.5; color: var(--ink-2); padding: 10px 12px; border-radius: 10px; background: var(--raised); }
.np .foot { border-top: 1px solid var(--hair); padding-top: 12px; flex-wrap: wrap; }
.bars { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.barrow { display: grid; grid-template-columns: 120px 1fr 40px; gap: 10px; align-items: center; }
.barrow .track { height: 8px; border-radius: 4px; background: var(--raised); overflow: hidden; }
.barrow .track i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }

/* Funnel X-ray and Replicate */
.xsteps { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.xstep { text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 5px; min-height: 104px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; }
.xstep .k { font-size: 11px; color: var(--faint); } .xstep b { font-weight: 600; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.xstep .p { font-size: 11px; color: var(--faint); overflow-wrap: anywhere; } .xstep .m { font-size: 12px; color: var(--muted); }
.xstep.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 4px var(--accent-soft); } .xstep.on .k { color: var(--accent); }
.xstep.dashed { border-style: dashed; border-color: var(--line-2); }
.phone { border-radius: 28px; border: 1px solid var(--line-2); background: var(--solid); padding: 16px 12px 18px; display: flex; flex-direction: column; gap: 6px; }
.phone .blk { display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 8px; background: var(--surface); border-left: 3px solid; }
.phone .blk.bad { background: rgba(255,122,107,0.08); }
.phone .nm { flex: 1; min-width: 0; font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone .rl { font-size: 9px; }
.foldline { display: flex; align-items: center; gap: 6px; font: 10px var(--mono); color: var(--est); }
.foldline span { flex: 1; border-top: 1px dashed rgba(245,185,74,0.6); }
.shotbox { align-items: center; padding: 12px; } .shotbox img { width: 100%; max-width: 300px; border-radius: 14px; display: block; }
.vchip { display: inline-block; font: 11px var(--mono); padding: 2px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.rstages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 8px; overflow-x: auto; }
.rstages li { display: flex; }
.rstages button { flex: 1; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-height: 76px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); border-top: 3px solid var(--faint); background: var(--surface); color: var(--ink-2); font: inherit; }
.rstages button span { font-size: 11px; } .rstages button b { font-size: 14px; } .rstages button small { font-size: 12px; color: var(--muted); }
.rstages button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.rstages button.done { border-top-color: var(--up); }
.rpick { cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.rpick.on { border-color: rgba(92,200,255,0.5); background: var(--accent-soft); }
.rpick .box { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 13px; border: 1px solid var(--line-2); color: var(--faint); }
.rpick.on .box { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.rrow { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1.3fr) 130px; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--hair); align-items: start; }
.rrow.skipped { opacity: .55; }
.rtext { width: 100%; min-height: 64px; padding: 8px 10px; font: 13px/1.5 var(--sans); resize: vertical; }
.ck { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(74,222,128,0.14); color: var(--up); }
.ck.open { background: rgba(245,185,74,0.16); color: var(--est); }
.rpreview { width: 300px; max-width: 100%; border-radius: 28px; border: 1px solid var(--line-2); background: #F7F4EE; color: #1B1D1F; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.rpreview small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #6B6F75; } .rpreview p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; }

/* Settings */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2px 18px; }
.rule { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; border-bottom: 1px solid var(--hair); font-size: 13px; cursor: pointer; }
.rule input[type=checkbox], .switch input { width: 18px; height: 18px; accent-color: var(--accent); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }

/* Competitor tabs */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tabs a { min-height: 40px; padding: 10px 12px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.tabs { overflow-x: auto; flex-wrap: nowrap; }
.filters { flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.chart { margin: 0; gap: 10px; }
.chart figcaption { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.cbars { display: flex; align-items: flex-end; gap: 4px; height: 130px; }
.cbar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 3px; }
.cbar span { font-size: 10px; color: var(--muted); } .cbar i { display: block; width: 100%; border-radius: 4px 4px 1px 1px; background: rgba(92,200,255,0.55); }
.clabels { display: flex; justify-content: space-between; gap: 4px; font-size: 10px; color: var(--faint); }
.clabels span { flex: 1; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.takeaways { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); }
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.pcard { display: flex; flex-direction: column; gap: 6px; color: var(--ink); font-size: 13px; }
.pcard .pimg { position: relative; aspect-ratio: 1; border-radius: 12px; background: var(--surface); overflow: hidden; border: 1px solid var(--line); }
.pcard img { width: 100%; height: 100%; object-fit: cover; }
.pcard .rk { position: absolute; left: 6px; top: 6px; font-size: 11px; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,0.65); color: #fff; }
.pcard .rk b.up { color: var(--up); } .pcard .rk b.down { color: var(--down); }
.pcard .pt { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
img.thumb { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; display: block; }
dialog.drawer { margin: 0 0 0 auto; box-shadow: -20px 0 60px -20px rgba(0,0,0,.5); height: 100vh; max-height: 100vh; width: min(640px, 100vw); border: 0; border-left: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 24px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
dialog.drawer::backdrop { background: rgba(0,0,0,0.55); }
.adgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.adcard { gap: 8px; }
.adimg { width: 100%; max-height: 260px; object-fit: cover; border-radius: 10px; background: var(--raised); }
.ranklist { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.ranklist div { display: grid; grid-template-columns: minmax(0, 1fr) 60px 28px; gap: 8px; align-items: center; }
.ranklist span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-2); }
.ranklist i { height: 6px; border-radius: 3px; background: var(--accent); display: block; }
.ranklist b { text-align: right; font-weight: 400; color: var(--muted); }
.chcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 14px; }
.facts { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; }
.facts > div span:last-child { overflow-wrap: anywhere; }

/* Compare */
.cmpcell { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 110px; }
.cmpcell i { display: block; height: 4px; border-radius: 2px; background: rgba(92,200,255,0.45); }
.cmpcell .best { color: var(--up); font-weight: 600; }

/* Funnel diagnosis */
.diag { gap: 18px; }
.ring { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ring span { width: 80px; height: 80px; border-radius: 50%; background: var(--solid); display: grid; place-items: center; align-content: center; }
.ring b { font: 600 26px var(--mono); line-height: 1; } .ring small { font-size: 10px; color: var(--faint); }
.sbar { display: grid; grid-template-columns: 130px 1fr 28px; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.sbar i { display: block; height: 6px; border-radius: 3px; background: var(--raised); overflow: hidden; } .sbar i b { display: block; height: 100%; background: var(--accent); }
.fp { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 16px; font-size: 13px; }
.fp div { display: flex; flex-direction: column; gap: 2px; } .fp span:first-child { font-size: 11px; }
.plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.plan .card { gap: 4px; padding: 14px; } .plan ul { margin: 4px 0 0; padding-left: 16px; font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }

@media (max-width: 760px) {
  .shell { flex-direction: column; }
  .side, html.navmin .side { position: sticky; top: 0; z-index: 40; width: 100%; height: auto; max-height: 100vh; padding: 10px 14px; gap: 10px; border-right: 0; border-bottom: 1px solid var(--hair); }
  html.navmin .side .lbl, html.navmin .nav h6 { display: revert; }
  .side:not(.open) .search, .side:not(.open) .navs, .side:not(.open) .wsbox { display: none; }
  .mobonly { display: grid; } .deskonly { display: none; }
  .sidetop, html.navmin .sidetop { flex-direction: row; }
  .main { padding: 18px 16px 48px; }
  .kpis, .kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .verdict { font-size: 16px !important; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .rrow { grid-template-columns: 1fr; }
  .rrow > span.faint { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .running { animation: blink 1.6s ease-in-out infinite; }
  @keyframes blink { 50% { opacity: 0.45; } }
}

html.navmin .wsmenu { position: fixed; left: 72px; right: auto; bottom: 12px; }

.feed .item[data-href]:not([data-href='']) { cursor: pointer; } .feed .item[data-href]:not([data-href='']):hover { background: var(--hover); }
.feed .item.fresh { box-shadow: inset 3px 0 0 #FF7A6B; }
.np .foot { margin-top: auto; }
html.navmin .nav .count { width: 8px; height: 8px; padding: 0; font-size: 0; transform: translate(10px, -9px); }

/* 18 Oct 2026: top bar and theme switch, logos, sortable tables with a column picker, product and collection cards,
   Home charts and competitor cards, Overview donuts, settings sections */
.mainwrap { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.mainwrap .main { flex: none; padding-top: 6px; }
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: 6px; padding: 14px 32px 0; }
.topbar .iconbtn { position: relative; width: 36px; height: 36px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 10px; }
.topbar .iconbtn:hover { color: var(--ink); border-color: var(--line-2); }
.bellc { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--down); color: #fff; font-size: 10px; display: grid; place-items: center; }
html[data-theme="dark"] .i-moon, html[data-theme="light"] .i-sun { display: none; }
.hero { margin: 0; font-size: clamp(30px, 5vw, 46px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; max-width: 820px; text-wrap: balance; }

/* Logos: the icon over the first letter; a missing icon leaves the letter */
.logo { --sz: 28px; position: relative; width: var(--sz); height: var(--sz); flex: none; border-radius: 8px; background: var(--av); color: var(--ink-2); display: inline-grid; place-items: center; overflow: hidden; font-size: calc(var(--sz) * 0.45); line-height: 1; vertical-align: middle; }
.logo b { font-weight: 600; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 10%; }
.logo.xs, .logo.av { --sz: 18px; border-radius: 5px; } .logo.md { --sz: 40px; border-radius: 11px; } .logo.lg { --sz: 56px; border-radius: 15px; box-shadow: var(--shadow); }
.feed .what .logo.xs { margin: -2px 4px 0 0; }
.who { display: inline-flex; align-items: center; gap: 10px; }
.apps { display: flex; flex-wrap: wrap; gap: 6px; }
.app { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 8px; background: var(--raised); font-size: 12px; color: var(--ink-2); max-width: 100%; }
.app .logo { --sz: 22px; border-radius: 6px; }
.app > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td .app { background: transparent; padding: 0; }

/* Tables: header buttons sort, the Columns menu shows and hides */
.tbl { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tbar { position: relative; z-index: 6; display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 30px; }
.colpick { position: relative; }
.colpick summary { list-style: none; } .colpick summary::-webkit-details-marker { display: none; }
.colpick .ic { width: 15px; height: 15px; }
.colmenu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--menu); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; min-width: 210px; max-height: 340px; overflow: auto; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.colmenu label { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 4px 10px; border-radius: 8px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.colmenu label:hover { background: var(--hover); color: var(--ink); }
.colmenu input { accent-color: var(--accent); width: 16px; height: 16px; }
.sortbtn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; color: inherit; font: inherit; border-radius: 4px; }
.sortbtn:hover, .sortbtn.on { color: var(--ink); }
.sortbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sortbtn .arr { font-size: 10px; opacity: 0.4; } .sortbtn.on .arr { opacity: 1; color: var(--accent); }
th { background: var(--hover); }
td.tdimg { width: 52px; } td.tdwide { min-width: 220px; }
.thumb.ph { display: grid; place-items: center; background: var(--raised); font-weight: 600; color: var(--muted); }
.acts { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.linkbtn.danger { color: var(--down); }
.status { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(74,222,128,0.3); background: rgba(74,222,128,0.08); color: var(--up); font-size: 13px; font-weight: 500; white-space: nowrap; }
.status.small { height: 26px; padding: 0 8px; font-size: 12px; gap: 6px; }

/* Segmented switches */
.segrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--raised); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button, .segopt { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 500 13px var(--sans); cursor: pointer; }
.seg button:hover, .segopt:hover { color: var(--ink); }
.seg button[aria-pressed="true"], .segopt:has(input:checked) { background: var(--solid); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.18), var(--glass-hi); }
.seg button .mono { font-size: 11px; color: var(--faint); }
.seg .ic { width: 16px; height: 16px; }
.segopt input { position: absolute; opacity: 0; pointer-events: none; }
.segopt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Product and collection cards */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 14px; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.card.pc, .card.cc { padding: 10px 10px 14px; gap: 6px; text-align: left; cursor: pointer; color: var(--ink); font: inherit; transition: transform 0.15s ease, border-color 0.15s ease; }
.card.pc:hover, .card.cc:hover, .card.scard:hover { border-color: var(--line-2); transform: translateY(-2px); color: var(--ink); }
.pc .pimg { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--raised); margin-bottom: 4px; }
.pc .pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tagoff { position: absolute; left: 8px; top: 8px; font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--down); color: #fff; }
.tagso { position: absolute; right: 8px; top: 8px; font-size: 11px; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,0.72); color: #fff; }
.pc .pt, .cc .pt { font-size: 13px; font-weight: 500; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pc .pp { font-size: 14px; } .pc small { font-size: 12px; }
.upt { color: var(--up); font-size: 12px; }
.cc .cimg { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--raised); font-size: 30px; color: var(--faint); margin-bottom: 4px; }
.cc .cimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cdesc { font-size: 12px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pol { flex-direction: row; align-items: center; gap: 12px; }
.pol .col { flex: 1; }

/* Home */
.kpi .top { justify-content: flex-start; }
.kpi .ki { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); flex: none; }
.kpi .ki .ic { width: 15px; height: 15px; }
.kpi.hot .ki { background: rgba(255,122,107,0.14); color: var(--hot); }
.kfoot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.kpi.upn .n { color: var(--up); }
.grow3 > .chart, .grow2 > .card, .grow3 > .card { flex: 1; }
.stack { display: flex; align-items: flex-end; gap: 3px; height: 150px; }
.stack .sc { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; gap: 1px; border-radius: 4px; }
.stack .sc:hover { background: var(--hover); }
.stack .sc i { display: block; width: 100%; border-radius: 3px; min-height: 2px; }
.stack.quiet .sc i { background: var(--track); }
.hbars { display: flex; flex-direction: column; gap: 4px; }
.hbar { display: grid; grid-template-columns: 18px minmax(60px, 130px) minmax(40px, 1fr) 36px 34px; gap: 10px; align-items: center; min-height: 36px; padding: 4px 6px; border-radius: 8px; color: var(--ink-2); font-size: 13px; }
.hbar:hover { background: var(--hover); color: var(--ink); }
.hbar .nm { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hbar .tr { height: 8px; border-radius: 4px; background: var(--raised); overflow: hidden; }
.hbar .tr i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--violet), var(--accent)); }
.hbar b { text-align: right; font-weight: 500; } .hbar small { text-align: right; font-size: 11px; }
.scards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 14px; }
.card.scard { color: var(--ink); gap: 14px; transition: transform 0.15s ease, border-color 0.15s ease; }
.sch { display: flex; align-items: center; gap: 12px; }
.sch .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sch .nm b, .sch .nm small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sch .nm b { font-weight: 600; }
.scm { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; }
.scm div { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .scm small { font-size: 11px; color: var(--faint); } .scm b { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scs { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; border-top: 1px solid var(--hair); padding-top: 10px; }
.card.addcard { align-items: center; justify-content: center; text-align: center; border-style: dashed; min-height: 170px; gap: 6px; color: var(--ink); }
.addcard .plus { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--accent-soft); color: var(--accent); }
.chip.hot { background: rgba(255,122,107,0.16); color: var(--hot); }

/* Overview */
.about { gap: 10px; } .about p { margin: 0; color: var(--ink-2); max-width: 90ch; }
.facts-row { display: flex; flex-wrap: wrap; gap: 6px; } .facts-row span { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--raised); color: var(--muted); }
.donuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 18px; }
.donut { margin: 0; display: flex; align-items: center; gap: 14px; min-width: 0; }
.dring { position: relative; width: 96px; height: 96px; flex: none; display: grid; place-items: center; }
.dring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--g); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 13px), #000 calc(100% - 12px)); mask: radial-gradient(farthest-side, transparent calc(100% - 13px), #000 calc(100% - 12px)); }
.dring span { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.dring b { font-size: 18px; font-weight: 600; } .dring small { font-size: 10px; color: var(--faint); }
.donut figcaption { display: flex; flex-direction: column; gap: 5px; font-size: 12px; min-width: 0; flex: 1; }
.donut figcaption > b { font-size: 13px; margin-bottom: 2px; }
.donut figcaption span { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; color: var(--muted); }
.donut figcaption i { width: 10px; height: 10px; border-radius: 3px; }
.donut figcaption em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cval { display: flex; align-items: baseline; gap: 8px; } .cval .mono { font-size: 20px; } .cval small { font-size: 12px; }
.cval .up { color: var(--up); } .cval .down { color: var(--down); }
.cbar i { background: linear-gradient(to top, var(--accent-soft), var(--accent)); }

/* Settings */
.setwrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.setnav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; }
.setnav a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; border: 1px solid transparent; }
.setnav a:hover { background: var(--hover); color: var(--ink); }
.setnav a.on { background: var(--surface); color: var(--ink); font-weight: 500; border-color: var(--line); box-shadow: var(--glass-hi); }
.setnav .ic { flex: none; opacity: 0.85; }
.setbody { gap: 16px; max-width: 840px; }
.tile small { font-size: 11px; color: var(--faint); }

@media (max-width: 760px) {
  .mainwrap { flex: 1 1 auto; }
  .topbar { position: fixed; top: 10px; right: 56px; z-index: 45; padding: 0; }
  .topbar .iconbtn { width: 32px; height: 32px; }
  .setwrap { grid-template-columns: 1fr; }
  .setnav { flex-direction: row; overflow-x: auto; position: static; }
  .setnav a { white-space: nowrap; }
  .hbar { grid-template-columns: 18px minmax(50px, 90px) minmax(30px, 1fr) 30px 30px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .card.pc, .card.cc, .card.scard { transition: none; } .card.pc:hover, .card.cc:hover, .card.scard:hover { transform: none; } }

.scm div:nth-child(4) { grid-column: 1 / -1; }
textarea.input { height: auto; padding: 8px 10px; font-family: var(--sans); line-height: 1.5; }
.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px 20px; }
.meter { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.meter i { display: block; height: 6px; border-radius: 3px; background: var(--raised); overflow: hidden; }
.meter i b { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
table.plans td.cur, table.plans th.cur { background: var(--accent-soft); }
.goalbar { height: 10px; border-radius: 5px; background: var(--raised); overflow: hidden; }
.goalbar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--accent), var(--up)); }
