/* Prospect Finder · Tickmill India — design system v2
   Premium sales-intelligence look: layered dark surfaces with a signal-red brand accent, confident type, brand channel glyphs,
   soft depth, purposeful motion. Light theme via data-theme. Class names are stable for app.js. */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Sora', var(--font);
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-xl: 22px; --radius: 18px; --radius-sm: 12px; --radius-xs: 8px;
  --rail-w: 264px;
  --z-rail: 20; --z-topbar: 30; --z-drawer: 50; --z-toast: 70;
  --ease: cubic-bezier(.2,.7,.2,1);

  --bg: #090b10; --bg-2: #0d1017;
  --surface: #10141c; --surface-2: #161b25; --surface-3: #1d2330; --surface-4: #262d3c;
  --border: rgba(255,255,255,.065); --border-strong: rgba(255,255,255,.13);
  --text: #f3f5f9; --text-2: #aab2c1; --text-3: #6f788b;
  --accent: #ff3b4e; --accent-2: #ff7a3d; --accent-bg: #e62a3f; --accent-soft: rgba(255,59,78,.13); --accent-ring: rgba(255,59,78,.35);
  --good: #22c55e; --warn: #fab219; --serious: #ec835a; --critical: #ef4444; --info: #3987e5;
  --tier-a: #22c55e; --tier-b: #3b82f6; --tier-c: #f59e0b; --tier-d: #64748b;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
  --shadow: 0 1px 0 rgba(255,255,255,.035) inset, 0 20px 50px -30px rgba(0,0,0,.8);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.04) inset, 0 40px 90px -40px rgba(0,0,0,.9);
  --glow: 0 0 0 1px var(--accent-ring), 0 10px 30px -10px rgba(255,59,78,.5);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f5f9; --bg-2: #eef1f6;
  --surface: #ffffff; --surface-2: #f6f8fb; --surface-3: #eceff5; --surface-4: #e1e6ee;
  --border: rgba(15,23,42,.08); --border-strong: rgba(15,23,42,.16);
  --text: #0b1220; --text-2: #445067; --text-3: #6b7589;
  --accent: #e01e33; --accent-2: #f26a2a; --accent-bg: #e01e33; --accent-soft: rgba(224,30,51,.09); --accent-ring: rgba(224,30,51,.28);
  --tier-a: #16a34a; --tier-b: #2563eb; --tier-c: #d97706; --tier-d: #64748b;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 12px 30px -18px rgba(15,23,42,.25);
  --shadow-lg: 0 2px 4px rgba(15,23,42,.05), 0 30px 60px -30px rgba(15,23,42,.3);
  --glow: 0 0 0 1px var(--accent-ring), 0 10px 30px -12px rgba(224,30,51,.35);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 500px at -10% -10%, rgba(255,59,78,.14), transparent 60%), radial-gradient(800px 500px at 110% 110%, rgba(57,135,229,.12), transparent 60%), radial-gradient(600px 400px at 60% -20%, rgba(255,122,61,.07), transparent 60%); }
:root[data-theme="light"] body::before { background: radial-gradient(900px 500px at -10% -10%, rgba(224,30,51,.07), transparent 60%), radial-gradient(800px 500px at 110% 110%, rgba(42,120,214,.08), transparent 60%); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
svg.g { width: 16px; height: 16px; flex: 0 0 auto; }
.num, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-xs); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(400%); } }
@keyframes toastin { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- layout */
.app { display: grid; grid-template-columns: var(--rail-w) 1fr; min-height: 100vh; }
.app.rail-collapsed { grid-template-columns: 76px 1fr; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 20px 16px; border-right: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(18px); z-index: var(--z-rail); }
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 8px; color: var(--accent); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 24px -10px rgba(255,59,78,.7); }
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; color: var(--text); line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.brand-text small { color: var(--text-3); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }
.rail-group { display: flex; flex-direction: column; gap: 4px; }
.rail-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text-2); font-weight: 500; font-size: 14px; transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease); position: relative; cursor: pointer; }
.rail-link .i { width: 20px; height: 20px; opacity: .85; }
.rail-link:hover { background: var(--surface-2); color: var(--text); }
.rail-link.active { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.rail-link.active .i { color: var(--accent); opacity: 1; }
.rail-count { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--text-2); background: var(--surface-3); padding: 2px 8px; border-radius: 999px; }
.rail-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.engine-pill { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: 0 0 auto; }
.engine-pill.running .pulse-dot { background: var(--good); animation: pulse 1.4s infinite; }
.app.rail-collapsed .brand-text, .app.rail-collapsed .rail-link span, .app.rail-collapsed .rail-count, .app.rail-collapsed .engine-pill span:last-child, .app.rail-collapsed #theme-toggle span { display: none; }
.app.rail-collapsed .rail-link { justify-content: center; padding: 12px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: var(--z-topbar); display: flex; align-items: center; gap: 14px; padding: 14px 32px; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); }
.search-wrap { flex: 1; display: flex; align-items: center; gap: 10px; max-width: 620px; padding: 0 14px; height: 42px; border-radius: 13px; background: var(--surface); border: 1px solid var(--border); color: var(--text-3); transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.search-wrap:focus-within { border-color: var(--accent-ring); box-shadow: 0 0 0 4px var(--accent-soft); color: var(--text-2); }
.search-wrap input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font-size: 14px; min-width: 0; }
.search-wrap input::placeholder { color: var(--text-3); }
.topbar-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.view { padding: 30px 32px 72px; max-width: 1600px; width: 100%; }
.view > * { animation: rise .4s var(--ease) both; }
.view > *:nth-child(2) { animation-delay: .05s; } .view > *:nth-child(3) { animation-delay: .1s; } .view > *:nth-child(4) { animation-delay: .15s; }

/* ---- buttons / inputs */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: 13.5px; cursor: pointer; transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); white-space: nowrap; }
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: linear-gradient(135deg, var(--accent-bg), var(--accent-2)); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -12px rgba(255,59,78,.8); }
.btn.primary:hover { filter: brightness(1.06); box-shadow: 0 14px 30px -12px rgba(255,59,78,.9); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.small { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
.btn.icon-only { width: 40px; padding: 0; justify-content: center; }
.btn.small.icon-only { width: 32px; }
.btn.danger { color: var(--critical); }
.input, select.input, textarea.input { width: 100%; height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 14px; transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
textarea.input { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus { outline: 0; border-color: var(--accent-ring); box-shadow: 0 0 0 4px var(--accent-soft); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12px; font-weight: 600; color: var(--text-2); letter-spacing: .02em; }
.field .hint, .hint { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 13.5px; color: var(--text-2); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 40px; height: 23px; border-radius: 999px; background: var(--surface-4); border: 1px solid var(--border); position: relative; transition: background .18s var(--ease); flex: 0 0 auto; }
.switch .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .18s var(--ease); }
.switch input:checked + .track { background: var(--good); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(17px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- page header */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.page-head h1 { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.025em; margin: 0; line-height: 1.1; }
.page-head p { margin: 8px 0 0; color: var(--text-2); font-size: 14.5px; max-width: 72ch; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- cards & grids */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; min-width: 0; position: relative; overflow: hidden; transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.card.hover:hover, .kpi:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2 { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.card-head .sub { color: var(--text-3); font-size: 12.5px; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.kpi .ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); margin-bottom: 8px; }
.kpi .ico.red { background: var(--accent-soft); color: var(--accent); } .kpi .ico.green { background: rgba(34,197,94,.14); color: var(--good); } .kpi .ico.blue { background: rgba(57,135,229,.14); color: var(--info); } .kpi .ico.amber { background: rgba(250,178,25,.14); color: var(--warn); } .kpi .ico.violet { background: rgba(144,133,233,.16); color: var(--s7); }
.kpi .label { font-size: 11.5px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.kpi .value { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.kpi .delta { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.kpi .delta.up { color: var(--good); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.empty { padding: 32px 18px; text-align: center; color: var(--text-3); font-size: 13.5px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); }
.empty strong { display: block; color: var(--text-2); margin-bottom: 4px; font-weight: 600; }

/* ---- hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-bottom: 16px; }
.hero-main { padding: 28px 30px; background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, var(--accent)) 0%, var(--surface) 55%, color-mix(in srgb, var(--surface) 94%, var(--info)) 100%); overflow: hidden; }
.hero-main::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,59,78,.22), transparent 65%); pointer-events: none; }
.hero h1 { font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 10px; line-height: 1.08; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0 0 18px; color: var(--text-2); font-size: 15px; max-width: 56ch; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-side { display: flex; flex-direction: column; gap: 14px; }
.funnel { display: flex; flex-direction: column; gap: 9px; }
.fstep { display: grid; grid-template-columns: 150px 1fr 64px; gap: 12px; align-items: center; font-size: 13px; }
.fstep .lbl { color: var(--text-2); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.fstep .lbl i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: 0 0 auto; }
.fstep .track { display: block; height: 14px; border-radius: 7px; background: var(--surface-3); overflow: hidden; }
.fstep .fill { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, transparent), var(--c)); transition: width .8s var(--ease); min-width: 2px; }
.fstep .val { text-align: right; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.statline { display: flex; gap: 12px; flex-wrap: wrap; }
.statline .pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.statline .pill b { color: var(--text); font-family: var(--font-mono); }

/* ---- charts */
.viz { width: 100%; height: auto; display: block; overflow: visible; }
.viz text { fill: var(--text-3); font-family: var(--font-mono); font-size: 10.5px; }
.viz .axis { stroke: var(--border-strong); }
.viz rect.bar { transition: opacity .15s; } .viz rect.bar:hover { opacity: .8; }
.hbars { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(28px, .8fr) repeat(var(--ncols, 1), auto); column-gap: 10px; row-gap: 9px; align-items: center; font-size: 13px; width: 100%; }
.hbars .hh { font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); padding-bottom: 4px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.hbars .hh.r { text-align: right; }
.hbars .hl { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; font-weight: 500; min-width: 0; }
.hbars .hb .track { display: block; height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.hbars .hb .fill { display: block; height: 100%; border-radius: 5px; transition: width .6s var(--ease); min-width: 2px; }
.hbars .hv { text-align: right; color: var(--text); font-family: var(--font-mono); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-score { display: inline-block; min-width: 30px; padding: 1px 7px; border-radius: 7px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; text-align: center; color: #fff; background: var(--tier-d); }
.mini-score.tA { background: var(--tier-a); } .mini-score.tB { background: var(--tier-b); } .mini-score.tC { background: var(--tier-c); color: #1a1200; }
.swatch { width: 9px; height: 9px; border-radius: 3px; display: inline-block; flex: 0 0 auto; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-2); margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--surface-4); border: 1px solid var(--border-strong); color: var(--text); padding: 6px 10px; border-radius: 8px; font-size: 12px; font-family: var(--font-mono); box-shadow: var(--shadow); transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; }

/* ---- chips & badges */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-3); color: var(--text-2); border: 1px solid transparent; white-space: nowrap; }
.chip.on { background: var(--accent-soft); color: var(--text); border-color: var(--accent-ring); }
.chip.btn-chip { cursor: pointer; transition: background .15s, color .15s; }
.chip.btn-chip:hover { background: var(--surface-4); color: var(--text); }
.chip.strong { color: var(--text); background: rgba(34,197,94,.16); }
.chip.risk { color: var(--critical); background: rgba(239,68,68,.14); }
.chip.comp { color: var(--text); background: rgba(201,133,0,.2); }
.badge-ch { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; font-weight: 500; }
.badge-ch .g { color: var(--c, var(--text-3)); }
.tier { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: #fff; background: var(--tier-d); }
.tier.A { background: var(--tier-a); } .tier.B { background: var(--tier-b); } .tier.C { background: var(--tier-c); color: #1a1200; }
.score-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 6px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border); font-family: var(--font-mono); font-weight: 600; font-size: 13px; }
.score-pill .tier { width: 20px; height: 20px; border-radius: 6px; font-size: 11px; }
.ring { width: 44px; height: 44px; position: relative; flex: 0 0 auto; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .bg { stroke: var(--surface-3); }
.ring .fg { stroke: var(--tier-b); stroke-linecap: round; transition: stroke-dasharray .6s var(--ease); }
.ring.A .fg { stroke: var(--tier-a); } .ring.C .fg { stroke: var(--tier-c); } .ring.D .fg { stroke: var(--tier-d); }
.ring .n { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #fff; background: var(--c, var(--surface-3)); flex: 0 0 auto; position: relative; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--c, #000) 70%, transparent); }
.avatar .g { width: 18px; height: 18px; color: #fff; }
.avatar.lg { width: 56px; height: 56px; border-radius: 16px; } .avatar.lg .g { width: 26px; height: 26px; }

/* ---- filters & table */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.filters .input { width: auto; min-width: 150px; height: 36px; font-size: 13px; }
.filters .range { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); padding: 0 6px; }
.filters input[type=range] { accent-color: var(--accent); width: 120px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table.grid { width: 100%; border-collapse: collapse; min-width: 960px; table-layout: auto; }
table.grid td select.input { height: 32px; font-size: 12.5px; padding-right: 26px; min-width: 130px; }
table.grid th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--text-3); padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.grid td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 13.5px; }
table.grid tbody tr { cursor: pointer; transition: background .12s; }
table.grid tbody tr:hover { background: var(--surface-2); }
table.grid tbody tr.sel { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; font-size: 14px; }
.who .meta { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; display: flex; gap: 6px; align-items: center; }
.who .meta .hd { font-family: var(--font-mono); }
.who .hd { color: var(--text-3); font-size: 12px; font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.sig { display: flex; flex-wrap: nowrap; gap: 4px; max-width: 300px; overflow: hidden; }
.sig .chip { flex: 0 0 auto; }
.sig .more { color: var(--text-3); font-size: 12px; font-family: var(--font-mono); align-self: center; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px; color: var(--text-3); font-size: 13px; }
.pager .pages { display: flex; gap: 6px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); min-height: 14px; }

/* ---- list rows */
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .12s; border-radius: 10px; }
.row:hover { background: var(--surface-2); }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.news .row { align-items: flex-start; cursor: default; }
.news .t { white-space: normal; line-height: 1.35; font-weight: 500; }
.news a.row:hover .t { color: var(--accent); }
.rank { font-family: var(--font-display); font-weight: 700; color: var(--text-3); width: 22px; text-align: center; font-size: 13px; }

/* ---- kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-height: 340px; display: flex; flex-direction: column; }
.col-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.col-head .n { font-family: var(--font-mono); color: var(--text-3); font-size: 12px; background: var(--surface-3); padding: 1px 8px; border-radius: 999px; }
.col-body { display: flex; flex-direction: column; gap: 8px; padding: 0 10px 12px; min-height: 120px; transition: background .15s; border-radius: 0 0 var(--radius) var(--radius); }
.col-body.over { background: var(--accent-soft); }
.kcard { background: var(--surface-2); border: 1px solid var(--border); border-radius: 13px; padding: 12px 13px; cursor: grab; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.kcard:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow); }
.kcard.dragging { opacity: .5; }
.kcard .top { display: flex; align-items: center; gap: 9px; }
.kcard .nm { font-weight: 600; font-size: 13.5px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcard .meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }

/* ---- engine / connectors */
.conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.conn { display: flex; flex-direction: column; gap: 12px; }
.conn .top { display: flex; align-items: center; gap: 12px; }
.conn h3 { margin: 0; font-size: 15px; font-family: var(--font-display); font-weight: 600; flex: 1; }
.conn p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.conn .foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); margin-top: auto; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }
.status.ok { color: var(--good); } .status.key { color: var(--warn); } .status.off { color: var(--text-3); } .status.run { color: var(--info); }
.console { background: #06080c; color: #d7dbe3; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; font-family: var(--font-mono); font-size: 12.3px; line-height: 1.65; height: 380px; overflow: auto; }
:root[data-theme="light"] .console { background: #0b1220; color: #e2e8f0; }
.console .ln { display: grid; grid-template-columns: 64px 86px 1fr; gap: 10px; }
.console .ts { color: #6f7686; } .console .cn { color: #86b6ef; } .console .warn .msg { color: #fab219; } .console .error .msg { color: #ff7b7b; } .console .new .msg { color: #7ee2a8; }
.progress { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; width: 30%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 3px; animation: slide 1.4s infinite var(--ease); }
.pack { display: flex; flex-direction: column; gap: 6px; }
.pack textarea { min-height: 110px; font-family: var(--font-mono); font-size: 12.5px; }

/* ---- drawer */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: calc(var(--z-drawer) - 1); backdrop-filter: blur(3px); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(680px, 100vw); background: var(--surface); border-left: 1px solid var(--border); z-index: var(--z-drawer); transform: translateX(100%); transition: transform .3s var(--ease); box-shadow: -30px 0 80px -30px rgba(0,0,0,.7); overflow: hidden; }
.drawer:not([hidden]) { transform: translateX(0); }
.drawer-inner { height: 100%; overflow: auto; padding: 0 26px 48px; display: flex; flex-direction: column; gap: 20px; }
.d-head { display: flex; align-items: flex-start; gap: 14px; position: sticky; top: 0; z-index: 2; margin: 0 -26px; padding: 22px 26px 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, var(--accent)) 0%, var(--surface) 100%); border-bottom: 1px solid var(--border); }
.d-head h2 { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.d-head .sub { color: var(--text-3); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; align-items: center; }
.d-close { margin-left: auto; }
.d-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.d-kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 13px; }
.d-kpi .l { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.d-kpi .v { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-top: 3px; }
.section { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.section h3 { margin: 0 0 12px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); font-weight: 700; }
.breakdown { display: flex; flex-direction: column; gap: 8px; }
.bk { display: grid; grid-template-columns: 110px 1fr 46px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--text-2); }
.bk .track { display: block; height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.bk .fill { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--s1) 60%, transparent), var(--s1)); }
.bk .fill.neg { background: var(--critical); }
.bk .val { text-align: right; font-family: var(--font-mono); }
.reasons { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 13.5px; display: flex; flex-direction: column; gap: 5px; }
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contact { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; cursor: pointer; min-width: 0; transition: border-color .15s; }
.contact:hover { border-color: var(--border-strong); }
.contact .k { color: var(--text-3); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; flex: 0 0 auto; }
.contact .v { font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.timeline { display: flex; flex-direction: column; gap: 10px; border-left: 2px solid var(--border); margin-left: 6px; padding-left: 14px; }
.tl { position: relative; font-size: 13px; color: var(--text-2); }
.tl::before { content: ''; position: absolute; left: -20px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.tl .when { color: var(--text-3); font-size: 11.5px; font-family: var(--font-mono); }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--text-2); max-height: 180px; overflow: auto; white-space: pre-wrap; line-height: 1.5; }
.outreach-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; white-space: pre-wrap; line-height: 1.55; max-height: 340px; overflow: auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---- misc pages */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.call-row { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.call-row:hover { background: var(--surface-2); }
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: var(--z-toast); }
.toast { background: var(--surface-4); border: 1px solid var(--border-strong); color: var(--text); padding: 11px 14px; border-radius: 12px; font-size: 13px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; animation: toastin .25s var(--ease); max-width: 420px; }
.toast.good { border-color: rgba(34,197,94,.5); } .toast.bad { border-color: rgba(239,68,68,.6); }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; align-items: start; }
.kv { display: flex; flex-direction: column; gap: 12px; }
.team-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.team-row .grow { flex: 1; } .team-row .role { color: var(--text-3); font-size: 12.5px; }

/* ---- responsive */
@media (max-width: 1280px) { .kpis { grid-template-columns: repeat(3, 1fr); } .span-3, .span-4, .span-5 { grid-column: span 6; } .span-7, .span-8 { grid-column: span 12; } .hero { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; } .rail { position: fixed; left: 0; top: 0; width: var(--rail-w); transform: translateX(-100%); transition: transform .25s var(--ease); background: var(--surface); }
  .app.rail-open .rail { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); } .rail-toggle { display: inline-flex !important; }
  .view, .topbar { padding-left: 16px; padding-right: 16px; } .kpis { grid-template-columns: repeat(2, 1fr); } .span-3, .span-4, .span-5, .span-6 { grid-column: span 12; }
  .two, .contacts, .d-controls, .d-kpis { grid-template-columns: 1fr 1fr; } .topbar-actions .btn span { display: none; } .topbar-actions .btn { width: 40px; padding: 0; justify-content: center; }
  .hbars { column-gap: 10px; } .fstep { grid-template-columns: 110px 1fr 48px; } .hero h1 { font-size: 28px; } .page-head h1 { font-size: 26px; }
}
@media (min-width: 901px) { .rail-toggle { display: none; } }
@media (max-width: 560px) { .kpis, .two, .d-kpis, .contacts, .d-controls { grid-template-columns: 1fr; } }

/* Reach and conversion panel */
.card.reach { margin-bottom: 14px; }
.reach-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; }
.reach-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--text-3); margin: 2px 0 10px; }
table.grid.mini { min-width: 0; }
table.grid.mini th { position: static; padding: 8px 8px; background: transparent; letter-spacing: .06em; }
table.grid.mini td { padding: 9px 8px; font-size: 13px; white-space: nowrap; }
table.grid.mini th:first-child, table.grid.mini td:first-child { padding-left: 2px; }
table.grid.mini tbody tr { cursor: default; }
table.grid.mini th.num, table.grid.mini td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.grid.mini td small { color: var(--text-3); font-size: 11px; margin-left: 4px; }
table.grid.mini tr.cold td { color: var(--text-3); }
table.grid.mini tr.cold .tier { opacity: .55; }
.ch-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.reach .hint { margin: 10px 2px 0; }
.conv { display: flex; flex-direction: column; gap: 10px; }
.conv-step small { display: block; color: var(--text-3); font-size: 11.5px; margin: 3px 2px 0; }
.conv-bar { width: var(--w); min-width: 62%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: linear-gradient(90deg, var(--accent-soft), transparent); border: 1px solid var(--accent-ring); font-size: 13px; }
.conv-bar b { font-size: 17px; font-family: 'Sora', sans-serif; }
@media (max-width: 1180px) { .reach-grid { grid-template-columns: 1fr; } }

/* ===================================================================================================
   v3 polish (14-Nov): live 24/7 engine hero, calmer chrome, sharper hierarchy. Overrides above.
   =================================================================================================== */
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@keyframes flowline { to { background-position: 200% 0; } }
@keyframes fadein { from { opacity: .4; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* chrome */
.topbar { padding: 12px 32px; gap: 12px; }
.live-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--good); background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.28); white-space: nowrap; }
.live-chip i, .live-badge i, .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: livepulse 1.8s infinite; display: inline-block; flex: 0 0 auto; }
.engine-pill.live .pulse-dot { background: var(--good); animation: livepulse 1.8s infinite; }
.engine-pill.live { color: var(--text); }
.rail-link.active::before { content: ''; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(var(--accent), var(--accent-2)); }
.card { background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, #fff 4%), var(--surface) 120px); }
:root[data-theme="light"] .card { background: var(--surface); }
.card-head h2 { font-size: 15.5px; }
.kpi .value { font-size: 30px; }
.tier.xs { width: 20px; height: 20px; border-radius: 6px; font-size: 11px; flex: 0 0 auto; }
.avatar.xs { width: 24px; height: 24px; border-radius: 8px; box-shadow: none; } .avatar.xs .g { width: 13px; height: 13px; }

/* live hero */
.live-hero { padding: 26px 28px 22px; margin-bottom: 16px; border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
  background: radial-gradient(700px 260px at 0% 0%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%), radial-gradient(600px 300px at 100% 100%, color-mix(in srgb, var(--info) 10%, transparent), transparent 70%), var(--surface); }
.lh-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 9px; border-radius: 999px; background: rgba(34,197,94,.12); color: var(--good); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lh-when { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.lh-when span { font-family: var(--font-mono); color: var(--text); font-size: 12px; }
.lh-cta { margin-left: auto; display: flex; gap: 6px; }
.lh-title { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 16px 0 8px; }
.lh-title em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lh-sub { margin: 0 0 20px; color: var(--text-2); font-size: 14.5px; max-width: 80ch; }
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lane { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 14px; border-radius: 16px; background: color-mix(in srgb, var(--surface-2) 85%, transparent); border: 1px solid var(--border); overflow: hidden; min-width: 0; }
.lane::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--lc), transparent); background-size: 200% 100%; animation: flowline 3s linear infinite; opacity: .9; }
.lane-h { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.lane-h .step { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 11.5px; color: #fff; background: var(--lc); }
.lane-state { margin-left: auto; font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--text-3); padding: 3px 9px; border-radius: 999px; background: var(--surface-3); white-space: nowrap; }
.lane-state.on { color: var(--good); background: rgba(34,197,94,.12); }
.lane-state.on::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; animation: livepulse 1.8s infinite; }
.lane-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lane-big b { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.lane-big span { color: var(--text-2); font-size: 13px; } .lane-big span b { font-size: 13px; font-family: var(--font-mono); letter-spacing: 0; font-weight: 600; color: var(--text); }
.spark { width: 100%; height: 46px; display: block; }
.lane-now { min-height: 30px; display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.now-k { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.now-t { color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.now-v { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex: 1; cursor: pointer; animation: fadein .45s var(--ease) both; }
.now-v .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.now-v .when { margin-left: auto; color: var(--text-3); font-size: 11.5px; white-space: nowrap; font-family: var(--font-mono); }
.lane-foot { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--text-3); margin-top: auto; border-top: 1px solid var(--border); padding-top: 10px; }
.lane-foot b { color: var(--text); }
#ln-d-foot { flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.lane-foot .next { color: var(--text-2); }
.lane-foot .bar { height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; } .lane-foot .bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--s6) 60%, transparent), var(--good)); transition: width .8s var(--ease); }
.chans { display: flex; gap: 5px; flex-wrap: wrap; }
.chan { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; padding: 2px 8px 2px 6px; border-radius: 999px; background: var(--surface-3); color: var(--text-3); }
.chan .g { width: 12px; height: 12px; } .chan.on { color: var(--good); background: rgba(34,197,94,.12); }
.lane-goal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lane-goal div { padding: 8px 10px; border-radius: 10px; background: var(--surface-3); display: flex; flex-direction: column; }
.lane-goal b { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.1; } .lane-goal span { font-size: 11px; color: var(--text-3); }
.flow { display: flex; align-items: stretch; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border-strong); overflow-x: auto; scrollbar-width: none; }
.flow::-webkit-scrollbar { display: none; }
.flow-step { flex: 1 1 0; min-width: 92px; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); display: flex; flex-direction: column; }
.flow-step b { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.15; } .flow-step span { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.flow-step.goal { border-color: var(--accent-ring); background: var(--accent-soft); } .flow-step.goal span { color: var(--text-2); }
.flow-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-3); flex: 0 0 auto; gap: 1px; }
.flow-arrow .i { width: 15px; height: 15px; } .flow-arrow small { font-size: 10px; color: var(--text-3); }

/* live activity */
.row.act { padding: 9px 6px; gap: 10px; }
.act-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); flex: 0 0 auto; }
.act-ic .g { width: 15px; height: 15px; }
#live-sub { display: inline-flex; align-items: center; gap: 7px; color: var(--good); }

@media (max-width: 1100px) { .lanes { grid-template-columns: 1fr; } .lane-big b { font-size: 34px; } }
@media (max-width: 900px) { .topbar { padding: 10px 16px; } .live-hero { padding: 20px 16px 16px; } .lh-cta { margin-left: 0; width: 100%; } .lh-cta .btn { flex: 1; justify-content: center; } .live-chip { display: none; } .rail-link.active::before { display: none; } }
@media (max-width: 560px) { .lh-when { flex-basis: calc(100% - 80px); } .lh-ap { display: none; } .flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } .flow-arrow { display: none; } .flow-step { min-width: 0; } .lh-sub { font-size: 14px; } }
