/* Lead Engine v3 - a prospecting workspace. Light by default (soft blue-grey canvas,
   white surfaces, the blue as the only accent), dark only when a rep picks it. Filters as
   pills across the top, results as a rich table, person pane matching the extension. */

:root {
  /* light by default: a soft blue-grey canvas, white surfaces, blue-tinted lines - never flat white */
  --ground:#F2F5F9; --surface:#FFFFFF; --sunk:#EBF0F6; --line:#E1E7EF; --line-strong:#C9D3DF;
  --ink:#0F172A; --ink-2:#475569; --ink-3:#8494A7;
  --blue:#0B7CDC; --blue-deep:#0866B8; --blue-wash:#E6F1FC; --blue-ring:rgba(11,124,220,.25); --blue-soft:#F0F6FD;
  --ok:#067647; --ok-wash:#EAF8F0;
  --warn:#B54708; --warn-wash:#FFF7E6;
  --bad:#B42318; --bad-wash:#FEF1F0;
  --hs:#C2410C; --hs-wash:#FFF1EA;
  --rail:#FFFFFF; --rail-2:#E6F1FC; --rail-ink:#64748B; --rail-ink-on:#0B7CDC; --rail-line:#E1E7EF;
  --hero-a:#0B7CDC; --hero-b:#0655A0;
  --shadow-1:0 1px 2px rgba(15,23,42,.04), 0 8px 24px -14px rgba(11,124,220,.25);
  --shadow-2:0 2px 6px rgba(15,23,42,.06), 0 28px 70px -28px rgba(15,23,42,.35);
  --r:10px;
  color-scheme:light;
}
:root[data-theme="dark"] {
  --ground:#0F1115; --surface:#161A21; --sunk:#1C212A; --line:#262C36; --line-strong:#343C48;
  --ink:#F1F5F9; --ink-2:#B6C0CD; --ink-3:#7C8797;
  --blue:#4FA9F5; --blue-deep:#8AC6FA; --blue-wash:#12283D; --blue-ring:rgba(79,169,245,.35); --blue-soft:#141C28;
  --ok:#4ADE80; --ok-wash:#0F2A1E;
  --warn:#FBBF24; --warn-wash:#2E2210;
  --bad:#F87171; --bad-wash:#2F1614;
  --hs:#FB923C; --hs-wash:#33200F;
  --rail:#0B1220; --rail-2:#162238; --rail-ink:#94A3B8; --rail-ink-on:#FFFFFF; --rail-line:#1B2535;
  --hero-a:#0B1220; --hero-b:#0B1220;
  --shadow-1:0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.7);
  --shadow-2:0 2px 6px rgba(0,0,0,.5), 0 28px 70px -24px rgba(0,0,0,.85);
  color-scheme:dark;
}

[hidden] { display:none !important; }
* { box-sizing:border-box; }
html, body { height:100%; }
body {
  margin:0; background:var(--ground); color:var(--ink);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size:14px; line-height:1.5; -webkit-font-smoothing:antialiased;
  font-feature-settings:"cv11","ss01";
}
h1, h2, h3 { margin:0; letter-spacing:-.02em; }
h2 { font-size:16px; font-weight:700; }
.sub { color:var(--ink-3); font-size:13px; margin:2px 0 0; }
.mono { font-family:"JetBrains Mono", ui-monospace, Menlo, monospace; font-size:13px; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
:focus-visible { outline:2px solid var(--blue); outline-offset:2px; border-radius:6px; }
svg { display:inline-block; }
.logo { width:28px; height:28px; } .logo.lg { width:36px; height:36px; }
a { color:var(--blue); }

/* ---------------------------------------------------------------- controls */
input, select {
  font:inherit; color:var(--ink); background:var(--surface);
  border:1px solid var(--line-strong); border-radius:8px; padding:9px 11px; width:100%;
}
input:focus, select:focus { border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-ring); outline:none; }
input[type=checkbox] { width:15px; height:15px; accent-color:var(--blue); margin:0; }

.btn {
  font:inherit; font-weight:600; font-size:13.5px; height:36px; padding:0 14px;
  border-radius:8px; border:1px solid transparent; cursor:pointer; line-height:1;
  display:inline-flex; align-items:center; justify-content:center; gap:7px; white-space:nowrap; text-decoration:none;
}
.btn svg { width:15px; height:15px; }
.btn.primary { background:var(--blue); color:#fff; }
.btn.primary:hover:not(:disabled) { background:var(--blue-deep); }
.btn.ghost { background:var(--surface); color:var(--ink); border-color:var(--line-strong); }
.btn.ghost:hover:not(:disabled) { border-color:var(--ink-3); background:var(--sunk); }
.btn.quiet { background:transparent; color:var(--ink-2); }
.btn.quiet:hover:not(:disabled) { color:var(--ink); background:var(--sunk); }
.btn.small { font-size:12.5px; height:30px; padding:0 11px; border-radius:7px; }
.btn.lg { height:44px; font-size:15px; }
.btn.block { width:100%; }
.btn:disabled { opacity:.45; cursor:default; }
.btn .cost { font-weight:500; opacity:.75; }
.ib { width:32px; height:32px; padding:0; border:0; border-radius:8px; background:transparent; color:var(--ink-3); cursor:pointer;
      display:inline-flex; align-items:center; justify-content:center; }
.ib svg { width:17px; height:17px; }
.ib:hover { background:var(--sunk); color:var(--ink); }
.ib.done { color:var(--ok); }

.spin { width:12px; height:12px; border-radius:50%; flex:0 0 auto; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; animation:rot .8s linear infinite; }
.btn.ghost .spin, .p-busy .spin, .pane .spin { border-color:var(--line-strong); border-top-color:var(--blue); }
@keyframes rot { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .spin { animation-duration:2.4s; } .pane { transition:none; } .skel { animation:none; } }

.msg { font-size:13px; margin:0; min-height:1.2em; color:var(--ink-2); }
.msg.err { color:var(--bad); } .msg.ok { color:var(--ok); } .msg.warn { color:var(--warn); }
.topmsg { padding:8px 28px 0; }
.dym { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.dym-pick { font:inherit; font-size:12.5px; font-weight:600; padding:5px 10px; border-radius:999px; border:1px solid var(--line-strong); background:var(--surface); color:var(--ink); cursor:pointer; }
.dym-pick:hover:not(:disabled) { border-color:var(--blue); color:var(--blue); } .dym-pick:disabled { opacity:.55; cursor:default; }

/* ---------------------------------------------------------------- welcome */
.welcome { min-height:100vh; display:grid; grid-template-columns:1.1fr 1fr; }
.welcome-brand {
  padding:64px 72px; color:#fff; display:flex; flex-direction:column; justify-content:center; gap:22px;
  background:radial-gradient(1000px 600px at -10% -10%, rgba(255,255,255,.22), transparent 60%),
             radial-gradient(900px 500px at 110% 110%, rgba(3,40,80,.45), transparent 55%),
             linear-gradient(160deg, var(--hero-a), var(--hero-b));
}
.wb-mark { display:flex; align-items:center; gap:12px; font-weight:800; font-size:18px; letter-spacing:-.01em; }
.welcome-brand h1 { font-size:44px; font-weight:800; line-height:1.08; letter-spacing:-.03em; }
.welcome-brand p { margin:0; font-size:16px; line-height:1.6; color:rgba(255,255,255,.82); max-width:560px; }
.wb-stats { display:flex; gap:36px; margin-top:12px; }
.wb-stats div { display:flex; flex-direction:column; }
.wb-stats b { font-size:28px; font-weight:800; letter-spacing:-.03em; }
.wb-stats span { font-size:13px; color:rgba(255,255,255,.7); }
.welcome-form { display:grid; place-items:center; padding:32px; }
.welcome-card { width:min(400px,100%); display:flex; flex-direction:column; gap:14px; }
.welcome-card h2 { font-size:26px; font-weight:800; }
.welcome-card p { color:var(--ink-2); margin:0; }
.welcome-msg { font-size:13px; min-height:1.2em; }
@media (max-width:860px) { .welcome { grid-template-columns:1fr; } .welcome-brand { padding:40px 28px; } .welcome-brand h1 { font-size:32px; } }

/* ---------------------------------------------------------------- shell */
.app { min-height:100vh; display:grid; grid-template-columns:72px 1fr; }
.side {
  background:var(--rail); color:var(--rail-ink); display:flex; flex-direction:column; align-items:center;
  padding:14px 0 12px; gap:6px; position:sticky; top:0; height:100vh; border-right:1px solid var(--rail-line);
}
.side-logo { display:block; margin-bottom:14px; }
.side-btn {
  width:56px; height:52px; border:0; border-radius:10px; background:transparent; color:var(--rail-ink); cursor:pointer;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; font:inherit; font-size:10.5px; font-weight:600;
}
.side-btn svg { width:20px; height:20px; }
.side-btn:hover { background:var(--rail-2); color:var(--rail-ink-on); }
.side-btn.active { background:var(--rail-2); color:var(--rail-ink-on); box-shadow:inset 3px 0 0 var(--blue); }
.side-spacer { flex:1; }
.side-credits { position:relative; width:40px; height:40px; margin-bottom:8px; display:grid; place-items:center; }
.ring { width:40px; height:40px; transform:rotate(-90deg); }
.ring-bg { fill:none; stroke:var(--sunk); stroke-width:3; }
.ring-fill { fill:none; stroke:#4FA9F5; stroke-width:3; stroke-linecap:round; stroke-dasharray:97.4; stroke-dashoffset:97.4; transition:stroke-dashoffset .5s ease; }
.ring-fill.hot { stroke:#FBBF24; } .ring-fill.full { stroke:#F87171; }
.ring-text { position:absolute; font-size:9.5px; font-weight:700; color:var(--ink); font-variant-numeric:tabular-nums; }
.side-me { height:44px; }
.me-avatar { width:32px; height:32px; border-radius:50%; background:linear-gradient(135deg,#4FA9F5,#0866B8); color:#fff; font-weight:700; font-size:13px; display:grid; place-items:center; }

.main { min-width:0; display:flex; flex-direction:column; }
.view { display:flex; flex-direction:column; flex:1; }
.topbar {
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  padding:14px 28px; background:var(--surface); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:20; box-shadow:0 1px 0 rgba(11,124,220,.04);
}
.view-title { font-size:18px; font-weight:800; }
.topbar-r { display:flex; align-items:center; gap:10px; }

/* filter pills */
.filters { display:flex; align-items:center; gap:8px; flex-wrap:wrap; flex:1 1 auto; min-width:0; }
.fpill {
  position:relative; display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 10px 0 12px;
  border:1px solid var(--line-strong); border-radius:999px; background:var(--surface); cursor:pointer; min-width:0;
}
.fpill:focus-within { border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-ring); }
.fpill-k { font-size:12.5px; font-weight:600; color:var(--ink-3); white-space:nowrap; }
.fpill select, .fpill input {
  border:0; background:transparent; padding:0; width:auto; font-size:13.5px; font-weight:600; color:var(--ink);
  appearance:none; -webkit-appearance:none; box-shadow:none !important; outline:none; cursor:pointer; max-width:260px; min-width:40px;
}
.fpill input { cursor:text; width:170px; font-weight:500; }
.fpill.grow { flex:1 1 320px; } .fpill.grow input { width:100%; flex:1; }
.fpill-chev { width:14px; height:14px; color:var(--ink-3); pointer-events:none; }
.fpill.on { border-color:var(--blue); background:var(--blue-wash); }
.fpill.on .fpill-k { color:var(--blue); }

.switch { display:inline-flex; align-items:center; gap:8px; cursor:pointer; user-select:none; }
.switch input { position:absolute; opacity:0; width:0; height:0; }
.switch-track { width:34px; height:20px; border-radius:999px; background:var(--line-strong); position:relative; transition:background .15s; }
.switch-track::after { content:""; position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:#fff; transition:transform .15s; box-shadow:0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .switch-track { background:var(--blue); }
.switch input:checked + .switch-track::after { transform:translateX(14px); }
.switch-label { font-size:13px; font-weight:600; color:var(--ink-2); white-space:nowrap; }

/* ---------------------------------------------------------------- results */
.results { margin:16px 28px 40px; background:var(--surface); border:1px solid var(--line); border-radius:14px; overflow:hidden; box-shadow:var(--shadow-1); display:flex; flex-direction:column; }
.results-head { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-start; justify-content:space-between; padding:16px 20px 12px; }
.bulk { display:flex; align-items:center; gap:8px; }

.tablewrap { overflow-x:auto; position:relative; }
table { border-collapse:collapse; width:100%; }
th { text-align:left; padding:8px 14px; font-size:11.5px; font-weight:600; letter-spacing:.03em; text-transform:uppercase; color:var(--ink-3);
     border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--blue-soft); white-space:nowrap; }
td { padding:11px 14px; border-bottom:1px solid var(--line); vertical-align:middle; }
tbody tr:last-child td { border-bottom:0; }
tbody tr:hover { background:var(--blue-soft); }
tr.kb td { background:var(--blue-soft); box-shadow:inset 3px 0 0 var(--line-strong); }
tr.picked { background:var(--blue-wash); }
tr.open td { box-shadow:inset 3px 0 0 var(--blue); }
.c-check { width:40px; } .c-act { width:110px; text-align:right; }
th.c-check, td.c-check { padding-right:4px; }

.who { display:flex; align-items:center; gap:12px; min-width:0; }
.avatar { width:36px; height:36px; border-radius:50%; flex:0 0 auto; display:grid; place-items:center; font-size:12.5px; font-weight:700; letter-spacing:.01em; }
.avatar.lg { width:52px; height:52px; font-size:17px; }
.av-0 { background:#E0F2FE; color:#0369A1; } .av-1 { background:#EDE9FE; color:#6D28D9; } .av-2 { background:#DCFCE7; color:#15803D; }
.av-3 { background:#FFEDD5; color:#C2410C; } .av-4 { background:#FCE7F3; color:#BE185D; } .av-5 { background:#E5E7EB; color:#374151; }
:root[data-theme="dark"] .av-0 { background:#0C2A3D; color:#7DD3FC; } :root[data-theme="dark"] .av-1 { background:#241A47; color:#C4B5FD; }
  :root[data-theme="dark"] .av-2 { background:#0F2A1E; color:#86EFAC; } :root[data-theme="dark"] .av-3 { background:#33200F; color:#FDBA74; }
  :root[data-theme="dark"] .av-4 { background:#3B1329; color:#F9A8D4; } :root[data-theme="dark"] .av-5 { background:#262B33; color:#D1D5DB; }
.person { display:flex; flex-direction:column; gap:1px; min-width:0; }
.name { font-weight:600; color:var(--ink); background:none; border:0; padding:0; font:inherit; font-weight:600; cursor:pointer; text-align:left; }
.name:hover { color:var(--blue); }
.title { font-size:12.5px; color:var(--ink-2); }
.name-row { display:flex; align-items:center; gap:7px; }
.li-link { display:inline-flex; align-items:center; justify-content:center; width:16px; height:16px; border-radius:3px; background:#0A66C2; color:#fff; font-size:9.5px; font-weight:800; text-decoration:none; letter-spacing:-.02em; flex:0 0 auto; }
.li-link:hover { filter:brightness(1.1); }

.co-cell { display:flex; align-items:center; gap:10px; min-width:0; }
.fav { width:28px; height:28px; border-radius:7px; background:var(--sunk); flex:0 0 auto; display:grid; place-items:center; overflow:hidden; border:1px solid var(--line); }
.fav img { width:18px; height:18px; display:block; }
.fav span { font-size:11px; font-weight:700; color:var(--ink-3); }
.co-main { display:flex; flex-direction:column; gap:1px; min-width:0; }
a.co { color:var(--ink); text-decoration:none; font-weight:600; } a.co:hover { color:var(--blue); }
.co { font-weight:600; }
.co-meta { font-size:12px; color:var(--ink-3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:340px; }
.loc { color:var(--ink-2); white-space:nowrap; }
.chips { display:flex; gap:4px; flex-wrap:wrap; margin-top:3px; }

.pill { display:inline-flex; align-items:center; gap:6px; padding:3px 9px; border-radius:999px; font-size:12px; font-weight:600; white-space:nowrap; line-height:1.5; }
.pill::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.p-ok { background:var(--ok-wash); color:var(--ok); }
.p-warn { background:var(--warn-wash); color:var(--warn); }
.p-bad { background:var(--bad-wash); color:var(--bad); }
.p-idle { background:var(--sunk); color:var(--ink-3); }
.p-busy { background:var(--blue-wash); color:var(--blue); } .p-busy::before { display:none; }
.p-hs { background:var(--hs-wash); color:var(--hs); }
.pill.tiny { font-size:11px; padding:1px 7px; } .pill.tiny::before { width:5px; height:5px; }
.pill.nodot::before { display:none; }

.rowact { display:flex; justify-content:flex-end; gap:4px; }

.skel td { padding:14px; }
.skel-bar { height:12px; border-radius:6px; background:linear-gradient(90deg, var(--sunk) 25%, var(--line) 50%, var(--sunk) 75%); background-size:200% 100%; animation:shim 1.2s linear infinite; }
@keyframes shim { to { background-position:-200% 0; } }

.empty { padding:56px 24px 64px; text-align:center; color:var(--ink-2); display:flex; flex-direction:column; align-items:center; gap:8px; }
.empty-art { width:56px; height:56px; margin-bottom:6px; }
.empty-art svg { width:56px; height:56px; color:var(--ink-3); }
.empty h3 { font-size:18px; font-weight:700; color:var(--ink); }
.empty p { margin:0; max-width:460px; }
.starters { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:12px; }
.starter { font:inherit; font-size:13px; font-weight:600; padding:8px 14px; border-radius:999px; border:1px solid var(--line-strong); background:var(--surface); color:var(--ink); cursor:pointer; }
.starter:hover { border-color:var(--blue); color:var(--blue); background:var(--blue-wash); }

.pager { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 20px; border-top:1px solid var(--line); }

/* ---------------------------------------------------------------- saved + activity */
.saved-list, .activity { padding:20px 28px 40px; display:grid; gap:10px; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); align-content:start; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:14px 16px; display:flex; flex-direction:column; gap:6px; box-shadow:var(--shadow-1); }
.card-t { font-weight:700; }
.card-s { font-size:13px; color:var(--ink-2); }
.card-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:6px; }
.card-empty { grid-column:1/-1; }
.activity { grid-template-columns:1fr; gap:0; padding-top:12px; }
.act { display:flex; align-items:center; gap:14px; padding:12px 4px; border-bottom:1px solid var(--line); }
.act-i { width:32px; height:32px; border-radius:8px; display:grid; place-items:center; flex:0 0 auto; }
.act-i svg { width:16px; height:16px; }
.act-main { flex:1; min-width:0; }
.act-t { font-weight:600; } .act-s { font-size:12.5px; color:var(--ink-3); }
.act-when { font-size:12px; color:var(--ink-3); white-space:nowrap; font-variant-numeric:tabular-nums; }

/* ---------------------------------------------------------------- company view */
.company-out { padding:20px 28px 40px; display:grid; gap:16px; grid-template-columns:minmax(0, 1fr); max-width:1100px; }
.cohead { display:flex; align-items:center; gap:16px; }
.cohead .fav { width:52px; height:52px; border-radius:12px; } .cohead .fav img { width:30px; height:30px; }
.cohead h2 { font-size:22px; font-weight:800; }
.facts { display:grid; grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); gap:12px 20px; }
.fact { display:flex; flex-direction:column; gap:1px; min-width:0; }
.fact-k { font-size:11.5px; color:var(--ink-3); }
.fact-v { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.people { display:flex; flex-direction:column; }
.prow { display:flex; align-items:center; gap:12px; padding:11px 0; border-bottom:1px solid var(--line); }
.prow:last-child { border-bottom:0; }
.prow-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.avail { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:6px; }
.avail svg { width:12px; height:12px; }
.av-yes { background:var(--ok-wash); color:var(--ok); } .av-some { background:var(--warn-wash); color:var(--warn); } .av-no { background:var(--sunk); color:var(--line-strong); }

/* ---------------------------------------------------------------- pane */
.scrim { position:fixed; inset:0; background:rgba(15,23,42,.32); z-index:40; backdrop-filter:blur(1px); }
.pane {
  position:fixed; top:0; right:0; bottom:0; width:min(480px, 100%); z-index:50;
  background:var(--surface); border-left:1px solid var(--line); box-shadow:var(--shadow-2);
  transform:translateX(100%); transition:transform .22s ease; overflow-y:auto;
}
.pane.in { transform:none; }
.pane-inner { padding:20px 24px 32px; display:flex; flex-direction:column; }
.pane-top { display:flex; align-items:center; gap:14px; padding-bottom:16px; }
.pane-top .person { flex:1; }
.pane h2 { font-size:19px; font-weight:800; }
.pane .title { font-size:13.5px; }
.pane-sub a { color:inherit; text-decoration:none; } .pane-sub a:hover { color:var(--blue); }

.status { display:flex; align-items:flex-start; gap:10px; padding:12px 14px; border-radius:10px; font-weight:600; font-size:14px; }
.status svg { width:18px; height:18px; flex:0 0 auto; margin-top:1px; }
.status small { display:block; font-weight:400; font-size:12.5px; color:var(--ink-2); margin-top:2px; }
.status.ok { background:var(--ok-wash); color:var(--ok); } .status.warn { background:var(--warn-wash); color:var(--warn); }
.status.bad { background:var(--bad-wash); color:var(--bad); } .status.hs { background:var(--hs-wash); color:var(--hs); }
.status.idle { background:var(--blue-wash); color:var(--blue); }
.status.ok small, .status.warn small, .status.bad small, .status.hs small, .status.idle small { color:var(--ink-2); }

.section { padding:14px 0; border-bottom:1px solid var(--line); }
.section:last-child { border-bottom:0; }
.sec-h { font-size:11.5px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-3); margin:0 0 8px; }
.fields { display:flex; flex-direction:column; }
.frow { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--line); }
.frow:last-child { border-bottom:0; }
.frow-k { flex:0 0 90px; font-size:12.5px; color:var(--ink-2); }
.frow-v { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.frow-v .mono { word-break:break-all; color:var(--ink); }
.frow-v .mono.dim { color:var(--ink-3); font-family:inherit; }
.note { font-size:11.5px; font-weight:600; }
.note.ok { color:var(--ok); } .note.warn { color:var(--warn); } .note.bad { color:var(--bad); } .note.hs { color:var(--hs); }
.pane-actions { display:flex; flex-direction:column; gap:8px; padding-top:14px; }
.pane-note { font-size:12.5px; color:var(--ink-3); margin:0; line-height:1.45; }
.fresh { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:12.5px; color:var(--ink-3); padding-top:10px; }
.hs-bad { font-size:13px; color:var(--bad); font-weight:600; } .hs-good { font-size:13px; color:var(--ok); font-weight:600; }
.links { display:flex; flex-wrap:wrap; gap:6px 14px; }
.link { display:inline-flex; align-items:center; gap:5px; font-size:13px; font-weight:500; color:var(--blue); text-decoration:none; }
.link svg { width:13px; height:13px; } .link:hover { text-decoration:underline; }
.intel-desc { margin:0; font-size:13.5px; color:var(--ink-2); line-height:1.5; }
.news { display:flex; flex-direction:column; gap:6px; margin-top:8px; }
.news-item { font-size:13px; color:var(--ink); text-decoration:none; } .news-item:hover { color:var(--blue); }
details.why { padding-top:12px; }
details.why summary { cursor:pointer; font-size:12.5px; color:var(--ink-2); font-weight:600; list-style:none; }
details.why summary::-webkit-details-marker { display:none; }
details.why summary::before { content:"›"; display:inline-block; margin-right:6px; transition:transform .15s; }
details.why[open] summary::before { transform:rotate(90deg); }
details.why p { font-size:13px; color:var(--ink-2); margin:8px 0 0; }
.src { display:flex; flex-direction:column; gap:4px; margin-top:8px; } .src div { font-size:12.5px; color:var(--ink-3); }

@media (max-width:920px) {
  .app { grid-template-columns:60px 1fr; }
  .side-btn span { display:none; } .side-btn { width:44px; height:44px; }
  .results, .topmsg, .saved-list, .activity, .company-out { margin-left:14px; margin-right:14px; padding-left:0; padding-right:0; }
  .topbar { padding:12px 14px; }
}

/* ---------------------------------------------------------------- v3.1: theme, lists, palette, groups */
.side-tools { display:flex; flex-direction:column; align-items:center; gap:4px; margin-bottom:6px; }
.side-mini { width:40px; height:36px; border:0; border-radius:9px; background:transparent; color:var(--rail-ink); cursor:pointer; display:grid; place-items:center; }
.side-mini svg { width:17px; height:17px; }
.side-mini:hover { background:var(--rail-2); color:var(--rail-ink-on); }
.kbd { display:inline-block; font:inherit; font-size:11px; font-weight:600; padding:1px 6px; border-radius:5px; border:1px solid var(--line-strong); background:var(--surface); color:var(--ink-3); line-height:1.5; }

.lists-wrap { display:grid; grid-template-columns:280px 1fr; gap:16px; padding:20px 28px 40px; align-items:start; }
.lists-nav { display:flex; flex-direction:column; gap:6px; }
.list-item { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 14px; border:1px solid var(--line); border-radius:10px; background:var(--surface); cursor:pointer; text-align:left; font:inherit; color:var(--ink); }
.list-item:hover { border-color:var(--blue); }
.list-item.active { border-color:var(--blue); background:var(--blue-wash); }
.list-item b { font-weight:600; } .list-item span { font-size:12px; color:var(--ink-3); }
.list-new { display:flex; gap:8px; }
.list-new input { flex:1; }
.list-body { background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow-1); overflow:hidden; min-height:200px; }
.list-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px 12px; flex-wrap:wrap; }
.list-actions { display:flex; gap:8px; flex-wrap:wrap; }
.list-empty { padding:40px 20px; text-align:center; color:var(--ink-3); }

.menu { position:fixed; z-index:70; min-width:220px; background:var(--surface); border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow-2); padding:6px; display:flex; flex-direction:column; gap:2px; }
.menu button { font:inherit; text-align:left; border:0; background:transparent; color:var(--ink); padding:8px 10px; border-radius:7px; cursor:pointer; display:flex; justify-content:space-between; gap:12px; }
.menu button:hover { background:var(--blue-soft); color:var(--blue); }
.menu button span { color:var(--ink-3); font-size:12px; }
.menu .menu-h { font-size:11px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-3); padding:6px 10px 2px; }
.menu-scrim { position:fixed; inset:0; z-index:69; }

.cmd-scrim { position:fixed; inset:0; z-index:80; background:rgba(15,23,42,.35); backdrop-filter:blur(2px); display:grid; place-items:start center; padding-top:12vh; }
.cmd { width:min(620px, 92vw); background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow-2); overflow:hidden; }
.cmd-in { display:flex; align-items:center; gap:10px; padding:6px 14px; border-bottom:1px solid var(--line); }
.cmd-in svg { width:18px; height:18px; color:var(--ink-3); }
.cmd-in input { border:0; background:transparent; font-size:16px; padding:10px 0; box-shadow:none !important; }
.cmd-list { max-height:360px; overflow-y:auto; padding:6px; }
.cmd-item { display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:9px; cursor:pointer; font:inherit; border:0; background:transparent; width:100%; text-align:left; color:var(--ink); }
.cmd-item svg { width:16px; height:16px; color:var(--ink-3); flex:0 0 auto; }
.cmd-item.sel, .cmd-item:hover { background:var(--blue-soft); }
.cmd-item.sel svg { color:var(--blue); }
.cmd-item b { font-weight:600; } .cmd-item span { color:var(--ink-3); font-size:12.5px; margin-left:auto; white-space:nowrap; }
.cmd-foot { display:flex; gap:14px; padding:8px 14px; border-top:1px solid var(--line); font-size:12px; color:var(--ink-3); }

.grp-h { display:flex; align-items:center; gap:8px; font-size:11.5px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-3); padding:14px 0 4px; }
.grp-h::after { content:""; flex:1; height:1px; background:var(--line); }
.grp-h .n { color:var(--ink-3); font-weight:500; text-transform:none; letter-spacing:0; }
.list-body table th:first-child, .list-body table td:first-child { min-width:240px; }
.list-body .c-act { width:150px; }
.name { white-space:nowrap; }
.rowact .ib { width:28px; height:28px; }

/* ---------------------------------------------------------------- website visitors */
.website-out { padding:16px 28px 40px; display:flex; flex-direction:column; gap:12px; }
.vstats { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:10px; }
.vstat { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:12px 16px; display:flex; flex-direction:column; gap:2px; }
.vstat b { font-size:22px; font-weight:800; letter-spacing:-.02em; } .vstat span { font-size:12px; color:var(--ink-3); }
.vco { background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow-1); overflow:hidden; }
.vco-head { display:grid; grid-template-columns:auto 1fr auto auto auto auto auto; gap:16px; align-items:center; padding:14px 18px; cursor:pointer; }
.vco-head:hover { background:var(--blue-soft); }
.vco-main { min-width:0; display:flex; flex-direction:column; gap:2px; }
.vco-name { font-weight:700; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.vco-sub { font-size:12.5px; color:var(--ink-3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vnum { display:flex; flex-direction:column; align-items:flex-end; min-width:60px; }
.vnum b { font-weight:700; font-variant-numeric:tabular-nums; } .vnum span { font-size:11px; color:var(--ink-3); text-transform:uppercase; letter-spacing:.03em; }
.vco-body { border-top:1px solid var(--line); padding:14px 18px 16px; display:grid; grid-template-columns:1.2fr 1fr; gap:18px; }
.vco-body h4 { margin:0 0 8px; font-size:11.5px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-3); }
.vpage { display:flex; justify-content:space-between; gap:12px; padding:5px 0; border-bottom:1px solid var(--line); font-size:13px; }
.vpage:last-child { border-bottom:0; } .vpage span { color:var(--ink-3); font-variant-numeric:tabular-nums; }
.vpage .bar { height:4px; border-radius:2px; background:var(--blue); opacity:.6; }
.vperson { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--line); }
.vperson:last-child { border-bottom:0; }
.vco-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.vsetup { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:28px 32px; display:flex; flex-direction:column; gap:12px; max-width:760px; }
.vsetup ol { margin:0; padding-left:20px; display:flex; flex-direction:column; gap:6px; color:var(--ink-2); }
.vsetup code { font-family:"JetBrains Mono", ui-monospace, Menlo, monospace; font-size:12.5px; background:var(--sunk); padding:2px 6px; border-radius:5px; }
.heat { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--line-strong); }
.heat.h2 { background:#93C5FD; } .heat.h3 { background:var(--blue); } .heat.h4 { background:#1D4ED8; box-shadow:0 0 0 3px var(--blue-wash); }
@media (max-width:920px) { .vco-head { grid-template-columns:auto 1fr auto; } .vco-head .vnum:nth-child(n+4) { display:none; } .vco-body { grid-template-columns:1fr; } }

/* ---------------------------------------------------------------- credits */
.side-credits { border:0; background:transparent; cursor:pointer; padding:0; }
.badge { position:absolute; top:6px; right:8px; width:8px; height:8px; border-radius:50%; background:var(--bad); box-shadow:0 0 0 2px var(--rail); }
.side-btn { position:relative; }
.credits-out { padding:16px 28px 40px; display:flex; flex-direction:column; gap:16px; }
.cr-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:12px; }
.cr-rep { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:16px 18px; display:flex; flex-direction:column; gap:10px; box-shadow:var(--shadow-1); }
.cr-rep-head { display:flex; align-items:center; gap:12px; }
.cr-rep-head .person { flex:1; }
.cr-bar { height:8px; border-radius:999px; background:var(--sunk); overflow:hidden; }
.cr-bar i { display:block; height:100%; background:var(--blue); border-radius:999px; }
.cr-bar i.hot { background:var(--warn); } .cr-bar i.full { background:var(--bad); }
.cr-nums { display:flex; justify-content:space-between; font-size:12.5px; color:var(--ink-3); font-variant-numeric:tabular-nums; }
.cr-nums b { color:var(--ink); font-weight:600; }
.cr-ops { font-size:12px; color:var(--ink-3); }
.cr-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.cr-row input { width:110px; padding:6px 9px; font-size:13px; }
.cr-req { display:flex; align-items:center; gap:12px; padding:12px 16px; background:var(--warn-wash); border:1px solid transparent; border-radius:12px; }
.cr-req.done { background:var(--surface); border-color:var(--line); }
.cr-req .person { flex:1; }
.cr-vendors { background:var(--surface); border:1px solid var(--line); border-radius:14px; overflow:hidden; box-shadow:var(--shadow-1); }
.cr-vendor { display:grid; grid-template-columns:auto 1.2fr 1fr 1.4fr auto; gap:14px; align-items:center; padding:12px 18px; border-bottom:1px solid var(--line); }
.cr-vendor:last-child { border-bottom:0; }
.cr-vendor .lbl { font-weight:600; } .cr-vendor .sub { margin:0; }
.cr-dot { width:10px; height:10px; border-radius:50%; background:var(--line-strong); }
.cr-dot.ok { background:var(--ok); } .cr-dot.low { background:var(--warn); box-shadow:0 0 0 3px var(--warn-wash); } .cr-dot.empty { background:var(--bad); box-shadow:0 0 0 3px var(--bad-wash); }
.cr-bal { font-weight:700; font-variant-numeric:tabular-nums; }
.cr-add { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:16px 18px; display:flex; flex-direction:column; gap:10px; }
.cr-add .row { display:grid; grid-template-columns:1fr 1.4fr 1fr auto; gap:8px; }
.cr-key { display:flex; align-items:center; gap:8px; padding:10px 12px; background:var(--blue-wash); border-radius:10px; }
.cr-key code { flex:1; font-family:"JetBrains Mono", ui-monospace, Menlo, monospace; font-size:12.5px; word-break:break-all; }
.pop { position:fixed; z-index:70; width:280px; background:var(--surface); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow-2); padding:14px; display:flex; flex-direction:column; gap:10px; }
.pop h4 { margin:0; font-size:14px; }
.pop .sub { margin:0; }
@media (max-width:920px) { .cr-vendor { grid-template-columns:auto 1fr auto; } .cr-vendor .sub, .cr-vendor .per { display:none; } .cr-add .row { grid-template-columns:1fr; } }

/* ---------------------------------------------------------------- size witnesses */
.witnesses { display:flex; flex-direction:column; gap:4px; }
.witness { display:flex; align-items:center; gap:10px; font-size:13px; padding:6px 0; border-bottom:1px solid var(--line); }
.witness:last-child { border-bottom:0; }
.w-src { flex:0 0 200px; color:var(--ink-2); font-weight:600; }
.w-val { flex:1; font-variant-numeric:tabular-nums; }
.w-link { font-size:12px; }
