@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211;
    --surface: #1c1c1a;
    --surface-2: #252522;
    --ink: #ecebe6;
    --muted: #9b9a93;
    --line: #2f2e2a;
    --accent: #5a9fe6;
    --accent-ink: #0a1624;
    --accent-soft: #18283a;
    --ok: #64c592;
    --ok-soft: #173024;
    --warn: #e2b04a;
    --err: #f08a80;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
}
h2 { margin: 0; }
h3 { margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.brand { text-decoration: none; white-space: nowrap; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs a {
  padding: 7px 12px; border-radius: 999px; color: var(--muted); text-decoration: none;
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.tabs a.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.page-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 640px) {
  main { padding: 16px 12px 64px; }
}

/* ---------- cards & forms ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card + .card { margin-top: 12px; }
.stack > * + * { margin-top: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; }
.check input { width: 18px; height: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer;
}
.btn:disabled { opacity: .55; cursor: progress; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.error { color: var(--err); font-size: 14px; }

/* ---------- chips ---------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: inherit; font-size: 13px; cursor: pointer;
}
.chip .n { color: var(--muted); font-weight: 500; margin-left: 4px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed=true] .n { color: inherit; opacity: .7; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; }
.tag.accent { background: var(--accent-soft); color: var(--accent); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { border: 1px solid var(--line); padding: 12px 14px; }
.stat b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat span { font-size: 12.5px; color: var(--muted); }

/* ---------- jobs ---------- */
.group-title { display: flex; align-items: baseline; gap: 8px; }
.job { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.score { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 3px 7px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- tables ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- side sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 20; }
.sheet {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); z-index: 21; display: flex; flex-direction: column;
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; padding-top: max(16px, env(safe-area-inset-top)); }
.sheet-body { overflow-y: auto; padding: 18px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.icon-btn { border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; }
.person { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.person:first-child { border-top: 0; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700;
}
.composer { border-radius: 12px; padding: 14px; margin-top: 10px; }
.counter { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter.over { color: var(--err); font-weight: 700; }
.section { margin-top: 22px; }
.section:first-child { margin-top: 0; }

/* ---------- auth ---------- */
.auth { margin: 8vh auto 0; }
.auth .brand { margin-bottom: 8px; }
.auth p.lead { text-align: center; color: var(--muted); margin: 0 0 22px; }
.switch { text-align: center; margin-top: 14px; font-size: 14px; }
.switch button { border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- misc ---------- */
.empty { text-align: center; padding: 36px 16px; }
.empty p { color: var(--muted); max-width: 460px; margin: 6px auto 16px; }
.banner { display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 10px 16px; font-size: 14px; z-index: 30;
  max-width: calc(100vw - 32px);
}
.dropzone {
  border: 1.5px dashed var(--line); padding: 22px; text-align: center; cursor: pointer;
}
.dropzone.drag { border-color: var(--accent); }
details summary { cursor: pointer; font-weight: 600; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; gap: 10px; align-items: center; color: var(--muted); padding: 30px 0; justify-content: center; }
.bullets { margin: 4px 0 0; padding-left: 18px; }
.bullets li { margin: 2px 0; }
.card.row + form, .card.row + .card { margin-top: 12px; }
select.mini { width: auto; padding: 5px 8px; font-size: 13px; border-radius: 8px; }
.mini-input { margin-top: 6px; padding: 6px 10px !important; font-size: 13px !important; }
.list li.stacked { flex-direction: column; align-items: stretch; gap: 8px; }
.pre { white-space: pre-wrap; }
a.plain { color: inherit; text-decoration: none; }

/* ===================== v3: command center ===================== */
:root {
  --hero-1: #0a1a33;
  --hero-2: #0d2b57;
  --hero-ink: #e8f0ff;
  --hero-muted: #9fb3d6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --mint: #3fd39d;
    --mint-soft: #12301f;
    --violet: #a497ff;
    --violet-soft: #241f45;
    --amber: #f0b54d;
    --hero-1: #08111f;
    --hero-2: #0c1d38;
  }
}

.mono { font-family: var(--mono); }

/* hero: the agent's live status */
.hero {
  position: relative; overflow: hidden; margin-bottom: 14px;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(120% 140% at 100% 0%, #1c4f9c 0%, transparent 55%),
    linear-gradient(135deg, var(--hero-1), var(--hero-2));
}
.agent-line { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--hero-muted); margin-top: 10px; min-height: 20px; }
.agent-line b { color: #fff; font-weight: 600; }
.pulse.live::after {
  content: ''; position: absolute; border-radius: 50%; border: 2px solid #5fd0a3;
  animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.progress { height: 6px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 10px; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, #5fd0a3, #6aa8ff); border-radius: 99px; transition: width .6s ease; }
.progress.indeterminate > div { width: 35%; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.coverage { display: flex; height: 8px; border-radius: 99px; overflow: hidden; margin-top: 14px; background: rgba(255,255,255,.08); }
.coverage > span { height: 100%; transition: width .8s ease; width: 0; }

/* KPI tiles */
.kpis { display: grid; }
@media (max-width: 720px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { position: relative; overflow: hidden; }
.kpi .num { font-variant-numeric: tabular-nums; margin-top: 6px; }
.kpi .delta { margin-top: 2px; }
.kpi .delta.flat { color: var(--muted); }
.kpi .c-spark { right: 10px; top: 12px; opacity: .9; }
.kpi.clickable { cursor: pointer; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.panel + .panel { margin-top: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
main.wide { max-width: 1180px; }

/* charts */
.c-bars { display: flex; flex-direction: column; gap: 9px; }
.c-row { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.c-row.clickable { cursor: pointer; border-radius: 8px; margin: -3px -6px; padding: 3px 6px; }
.c-row.clickable:hover { background: var(--surface-2); }
.c-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-track { position: relative; height: 10px; background: var(--bar-bg); border-radius: 99px; overflow: hidden; }
.c-bar, .c-bar-hi { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px; transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.c-value { font-family: var(--mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.c-columns { width: 100%; height: auto; display: block; }
.c-col { transform-box: fill-box; transform-origin: bottom; animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.c-col.latest { fill: var(--mint); }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.c-axis { stroke: var(--line); }
.c-tick { font-size: 10px; fill: var(--muted); font-family: var(--mono); }
.c-spark-line { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.c-spark-dot { fill: var(--mint); }
.c-donut { width: 132px; height: 132px; flex: none; }
.c-donut-track { stroke: var(--bar-bg); }
.c-donut-seg { transition: stroke-dasharray .8s ease; }
.c-donut-seg.close { stroke: var(--mint); }
.c-donut-seg.warm { stroke: var(--accent); }
.c-donut-seg.cold { stroke: var(--violet); }
.c-donut-seg.none { stroke: color-mix(in srgb, var(--muted) 35%, transparent); }
.c-donut-num { font-size: 20px; font-weight: 700; fill: var(--ink); }
.c-donut-cap { font-size: 10px; fill: var(--muted); font-family: var(--mono); }
.c-funnel { display: flex; flex-direction: column; gap: 8px; }
.c-funnel-row { display: grid; grid-template-columns: 88px 1fr 64px; gap: 10px; align-items: center; font-size: 13px; }
.c-funnel-track { height: 22px; display: flex; justify-content: center; }
.c-funnel-bar { height: 100%; width: 0; border-radius: 6px; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.c-funnel-value { font-family: var(--mono); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.c-funnel-conv { color: var(--muted); font-size: 10px; }
.c-ring { flex: none; }
.c-ring-arc { transition: stroke-dasharray .8s ease; stroke-linecap: round; }
.c-ring-arc.hi { stroke: var(--mint); } .c-ring-arc.mid { stroke: var(--accent); } .c-ring-num { font-size: 13px; fill: var(--ink); font-family: var(--mono); }

/* live feed */
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; border-radius: 99px; }
.live-pill .pulse { width: 7px; height: 7px; }
.live-pill.off { color: var(--muted); background: var(--surface-2); }
.feed { list-style: none; margin: 0; padding: 0; max-height: 640px; overflow-y: auto; }
.feed li { display: grid; }
.feed li:first-child { border-top: 0; }
.feed li.enter { animation: enter .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes enter { from { opacity: 0; transform: translateY(-8px); background: var(--mint-soft); } to { opacity: 1; transform: none; } }
.ftext { line-height: 1.4; }
.fsample { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.typing { display: inline-flex; gap: 3px; vertical-align: middle; }
.typing i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .4; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.qbadge { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; }
.qbadge.due { background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--amber); }
.qbadge.move { background: var(--violet-soft); color: var(--violet); }
.qbadge.match { background: var(--mint-soft); color: var(--mint); }

/* job cards with score rings */
.job { grid-template-columns: 1fr auto; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.job .job-body { min-width: 0; }
.job.fade-in { animation: enter .45s cubic-bezier(.2, .8, .2, 1) both; }

/* skeleton */
.skeleton { animation: shimmer 1.2s infinite; border-radius: 10px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-hero { height: 150px; border-radius: 18px; margin-bottom: 14px; }
.sk-row { height: 86px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.grid2 > .panel + .panel { margin-top: 0; }
.panel + .stack { margin-top: 14px; }

@media (max-width: 860px) { .feed { max-height: 460px; } }
.chip { white-space: nowrap; flex: none; }
.prose h2 { font-size: 16px; margin-top: 10px; }
.prose ul { padding-left: 20px; margin: 0; }
.prose li { margin: 6px 0; }
.panel.picks { margin-bottom: 14px; }
.step { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-family: var(--mono); flex: none; }
.step.done .step-num { background: var(--mint-soft); color: var(--mint); }
.agent-line.dark { color: var(--muted); }
.agent-line.dark b { color: var(--ink); }
.progress.light { background: var(--surface-2); }
.welcome .panel { margin-top: 14px; }

/* ===================== People by company ===================== */
@media (prefers-color-scheme: dark) {
  :root { --lvl-executive: #a497ff; --lvl-director: #5a9fe6; --lvl-manager: #3f7fbf; --lvl-lead: #3fd39d; --lvl-senior: #2c8a62; --lvl-mid: #56606e; --lvl-entry: #a08547; --lvl-unknown: #3a3935; }
}
.lvl-executive { background: var(--lvl-executive); } .lvl-director { background: var(--lvl-director); }
.lvl-manager { background: var(--lvl-manager); } .lvl-lead { background: var(--lvl-lead); }
.lvl-senior { background: var(--lvl-senior); } .lvl-mid { background: var(--lvl-mid); }
.lvl-entry { background: var(--lvl-entry); } .lvl-unknown { background: var(--lvl-unknown); }
.lvl-bar { display: flex; border-radius: 99px; overflow: hidden; margin: 8px 0 6px; }
.lvl-bar > span { height: 100%; min-width: 3px; }
.lvl-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; font-family: var(--mono); color: var(--muted); }
.lvl-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.seg-btn { font-size: 13px; font-weight: 600; }
.seg-btn[aria-selected=true] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.chev { font-size: 20px; color: var(--muted); transition: transform .2s ease; flex: none; }
.lvl-title { font-weight: 650; font-size: 13px; margin-bottom: 2px; }
.lvl-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.export-steps ol { margin: 0; padding-left: 20px; } .export-steps li { margin: 6px 0; } .export-steps h3 { margin: 2px 0 0; }

/* ===================== job filters ===================== */
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filters select.mini { max-width: 100%; }
.filters select.mini[data-on="1"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.chips.facts { margin-top: 8px; }

/* ===================================================================
   v4 · Mission Control
   Dark ink ground, hairline panels, one mint signal accent.
   This layer overrides the earlier tokens and components.
   =================================================================== */
:root {
  color-scheme: dark;
  --bg: #07090D;
  --surface: #0E1117;
  --surface-2: #151A23;
  --ink: #E8ECF3;
  --ink-2: #C4CBD8;
  --muted: #98A1B3;
  --line: #1E2430;
  --line-2: #2A3240;
  --accent: #7CF5C8;
  --accent-ink: #07090D;
  --accent-soft: #10302A;
  --ok: #7CF5C8;
  --ok-soft: #10302A;
  --warn: #FFB547;
  --err: #FF8A80;
  --mint: #7CF5C8;
  --mint-soft: #10302A;
  --violet: #8AB4FF;
  --violet-soft: #16233D;
  --amber: #FFB547;
  --blue: #8AB4FF;
  --blue-soft: #16233D;
  --bar-bg: #1A202B;
  --radius: 16px;
  --shadow: none;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --rail-w: 248px;
  --lvl-executive: #F5A3C7; --lvl-director: #FFB547; --lvl-manager: #7CF5C8; --lvl-lead: #5FD3E8;
  --lvl-senior: #8AB4FF; --lvl-mid: #B4A7FF; --lvl-entry: #98A1B3; --lvl-unknown: #3A4150;
}

body {
  font: 14.5px/1.55 var(--body);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
::selection { background: color-mix(in srgb, var(--mint) 35%, transparent); }
a { color: var(--mint); text-decoration: none; }
a:hover { color: #B5FBE1; }
h1 { font-family: var(--display); font-weight: 600; font-size: 34px; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 6px; }
h2 { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
h3 { font-family: var(--display); font-weight: 600; font-size: 15px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

/* ---------- shell: rail on desktop, tab bar on phones ---------- */
.rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail-w); z-index: 12;
  display: flex; flex-direction: column; gap: 28px;
  padding: 24px 16px; padding-top: max(24px, env(safe-area-inset-top));
  border-right: 1px solid var(--line); background: rgba(7,9,13,.88); backdrop-filter: blur(10px);
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--mint); display: grid; place-items: center; flex: none; }
.brand .mark span { width: 10px; height: 10px; border-radius: 3px; background: var(--mint); }
.rail-nav { display: flex; flex-direction: column; gap: 2px; }
.rail-nav a {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 10px;
  color: #A3ACBE; font-weight: 500;
}
.rail-nav a:hover { background: rgba(255,255,255,.04); color: var(--ink); }
.rail-nav a.active { background: rgba(124,245,200,.08); color: var(--ink); font-weight: 600; }
.rail-nav a.active svg { stroke: var(--mint); }
.rail-nav svg, .tabbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rail-nav .count { margin-left: auto; font: 500 12px var(--mono); color: var(--mint); }
.rail-nav .count.warn { color: var(--amber); }
.rail-nav .count:empty { display: none; }

.agent-card {
  margin-top: auto; border: 1px solid rgba(124,245,200,.18); border-radius: 14px; display: flex; flex-direction: column;
}
.agent-head { display: flex; align-items: center; gap: 10px; }
.agent-sub { font-size: 13px; color: #A3ACBE; line-height: 1.5; }
.agent-sub b { color: var(--ink); font-weight: 600; }
.agent-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; position: relative; }
.agent-bar > div { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--mint); border-radius: 4px; transition: width .6s ease; }
.agent-bar.indeterminate > div { width: 35%; animation: slide 1.4s ease-in-out infinite; }
.agent-bar.idle { opacity: .4; }
.agent-next { font: 11px var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); position: relative; flex: none; }
.pulse.idle { background: #5B6475; }
.pulse.live::after { border-color: var(--mint); }

body.authed main { margin-left: var(--rail-w); }
main { max-width: none; margin: 0; padding: 32px 40px 64px; }
main > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
main.narrow > * { max-width: 920px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 12;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  padding: 6px 6px max(10px, env(safe-area-inset-bottom));
  background: rgba(11,14,19,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.tabbar a, .tabbar button {
  height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font: 500 11px var(--body); color: #A3ACBE; background: none; border: 0; cursor: pointer;
}
.tabbar a.active { color: var(--mint); }
.tabbar svg { width: 20px; height: 20px; }
.tabbar svg circle { fill: currentColor; stroke: none; }
.tabbar a svg circle { fill: none; stroke: currentColor; }

@media (min-width: 901px) { .tabbar { display: none !important; } }
@media (max-width: 900px) {
  .rail { display: none !important; }
  body.authed main { margin-left: 0; padding-bottom: 110px; }
  main { padding: 20px 16px 96px; padding-top: max(20px, env(safe-area-inset-top)); }
  h1 { font-size: 28px; }
}

/* ---------- surfaces ---------- */
.card, .panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px;
}
.panel-head { margin-bottom: 14px; }
.panel-head h2 { font-size: 19px; }
.banner { background: rgba(124,245,200,.06); border: 1px solid rgba(124,245,200,.2); border-radius: 14px; color: var(--ink-2); }
.empty h2 { margin-bottom: 4px; }

/* ---------- controls ---------- */
.btn { border-radius: 10px; font: 600 14px var(--body);
  background: var(--mint); color: var(--accent-ink); border: 1px solid transparent;
}
.btn:hover { background: #A2F8D9; color: var(--accent-ink); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.secondary:hover { background: rgba(255,255,255,.04); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--mint); height: auto; padding: 6px 8px; }
.btn.ghost:hover { background: rgba(124,245,200,.08); }
.btn.small { font-size: 13px; }
.btn.full { width: 100%; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=search], input[type=number], select, textarea {
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; color: var(--ink);
  padding: 11px 14px;
}
input::placeholder, textarea::placeholder { color: #6E7789; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--mint); outline-offset: 0; border-color: transparent; }
select { color-scheme: dark; }
label { color: var(--ink-2); }
.icon-btn { background: var(--surface-2); color: var(--ink); }

.search-box { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); margin: 0; font-weight: 400; }
.search-box svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; flex: none; }
.search-box input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 0; height: 100%; font-size: 14px; }
.search-box input:focus { outline: none; }
.search-box:focus-within { border-color: var(--mint); }

.chip { background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 500; height: 34px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; }
.chip:hover { border-color: #3A4354; }
.chip[aria-pressed=true] { background: var(--mint); color: var(--accent-ink); border-color: var(--mint); font-weight: 600; }
.chip .n { font-family: var(--mono); font-size: 12px; }

.tag { font: 500 12px var(--body); padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--ink-2); }
.tag.accent, .tag.pay { background: rgba(124,245,200,.1); color: var(--mint); font-family: var(--mono); }
.tag.good { background: rgba(124,245,200,.1); color: var(--mint); }
.tag.blue { background: rgba(138,180,255,.12); color: #A9C7FF; }
.tag.warn { background: rgba(255,181,71,.12); color: var(--amber); }

/* segmented pills and toggle buttons */
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.seg-btn { height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #A3ACBE; font: 500 13px var(--body); cursor: pointer; white-space: nowrap; }
.seg-btn:hover { color: var(--ink); }
.seg-btn[aria-selected=true], .seg-btn[aria-pressed=true] { background: var(--mint); color: var(--accent-ink); font-weight: 600; box-shadow: none; }
.tbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: 600 13px var(--body); cursor: pointer; white-space: nowrap; }
.tbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tbtn[aria-pressed=true] { border-color: var(--mint); background: rgba(124,245,200,.12); color: var(--mint); }
.flabel { font: 11px var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.fselect { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 4px 0 12px; border-radius: 10px; border: 1px solid var(--line); color: #A3ACBE; font: 500 13px var(--body); margin: 0; }
.fselect select { width: auto; background: transparent; border: 0; padding: 0 6px; height: 100%; font-size: 13px; color: var(--ink); }
.fselect.on { border-color: var(--mint); }
.fselect.on select { color: var(--mint); }
.filter-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 12px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.filter-row.sub { gap: 8px; }
.filter-note { margin-left: auto; font-size: 12px; color: var(--muted); }

/* ---------- page heads ---------- */
.page-head { align-items: flex-end; margin-bottom: 22px; }
.greet .eyebrow { color: var(--mint); }
.greet h1 { font-size: 40px; margin-top: 8px; }
.greet p { margin: 6px 0 0; color: #A3ACBE; font-size: 16px; }
@media (max-width: 900px) { .greet h1 { font-size: 30px; } }

/* ---------- KPI tiles ---------- */
.kpis { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.kpi .num { font-family: var(--display); font-size: 36px; font-weight: 600; letter-spacing: -.03em; margin: 0; line-height: 1.05; }
.kpi .delta { font-family: var(--mono); font-size: 12px; color: var(--mint); margin: 0; }
.kpi .c-spark { position: static; width: 100%; height: 32px; margin-top: 4px; }
.kpi.clickable:hover { border-color: rgba(124,245,200,.4); }
.c-spark-line { stroke: var(--mint); stroke-width: 1.5; }
.c-spark-area { fill: rgba(124,245,200,.08); }

/* ---------- home grid ---------- */
.home-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; margin-bottom: 20px; }
.home-row > .wide { flex: 999 1 520px; min-width: 0; }
.home-row > .side { flex: 1 1 340px; min-width: 0; }
.home-row > .half { flex: 1 1 420px; min-width: 0; }
.mv {
  display: flex; gap: 16px; align-items: center; padding: 16px 12px; margin: 0 -12px; width: calc(100% + 24px);
  border: 0; border-top: 1px solid rgba(255,255,255,.05); border-radius: 14px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.mv:first-of-type { border-top: 0; }
.mv:hover { background: rgba(255,255,255,.03); }
.mv-title { font-weight: 600; font-size: 15px; }
.mv-meta { color: #A3ACBE; font-size: 13px; margin: 2px 0 6px; }
.mv .chev { color: var(--muted); font-size: 18px; transform: none; }
.attn { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.05); }
.attn:first-child { border-top: 0; }

.pipe { display: flex; gap: 8px; align-items: flex-end; height: 150px; }
.pipe-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: 100%; min-width: 0; }
.pipe-col b { font: 500 20px var(--mono); }
.pipe-bar { border-radius: 8px 8px 2px 2px; min-height: 4px; transform-origin: bottom; animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.pipe-labels { display: flex; gap: 8px; margin-top: 10px; }
.pipe-labels span { flex: 1; font-size: 12px; color: #A3ACBE; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hire-row { display: grid; grid-template-columns: minmax(80px, 140px) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 0; cursor: pointer; border-radius: 8px; }
.hire-row:hover .hire-name { color: var(--mint); }
.hire-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hire-track { height: 8px; border-radius: 8px; background: rgba(255,255,255,.05); overflow: hidden; }
.hire-track > div { height: 100%; width: 0; background: var(--blue); border-radius: 8px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.hire-val { font: 12px var(--mono); color: #A3ACBE; text-align: right; }

/* live feed */
.live-pill { background: transparent; color: var(--muted); padding: 0; }
.live-pill:not(.off) { color: var(--mint); }
.feed li { gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.05); align-items: start; }
.feed .ftime { font: 11px var(--mono); color: var(--muted); padding-top: 2px; }
.feed .fdot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--mint); }
.feed .fdot.g-network { background: var(--blue); }
.feed .fdot.g-you { background: var(--amber); }
.feed .fdot.g-agent { background: #5B6475; }
.ftext { font-size: 13px; color: var(--ink-2); }
@keyframes enter { from { opacity: 0; transform: translateY(-8px); background: rgba(124,245,200,.06); } to { opacity: 1; transform: none; } }

/* ---------- jobs ---------- */
.jobs-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.jobs-list { flex: 999 1 440px; min-width: 0; }
.job-detail { flex: 1 1 420px; min-width: 0; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--surface); border: 1px solid rgba(124,245,200,.22); border-radius: 20px; padding: 24px; }
.job-detail:empty { display: none; }
@media (max-width: 1180px) { .job-detail { display: none; } }
.job {
  display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 16px; margin-bottom: 8px;
  background: var(--surface); border: 1px solid var(--line);
}
.job:hover { border-color: rgba(124,245,200,.35); transform: none; box-shadow: none; }
.job[aria-current=true] { border-color: rgba(124,245,200,.55); background: rgba(124,245,200,.04); }
.job .c-ring { order: -1; }
.job-title { font-weight: 600; font-size: 15px; color: var(--ink); }
.job-meta { color: #A3ACBE; font-size: 13px; margin-top: 3px; }
.group-title { margin: 26px 0 10px; }
.group-title h2 { font-size: 15px; letter-spacing: 0; }
.c-ring-track { stroke: rgba(255,255,255,.08); }
.c-ring-arc.hi, .c-ring-arc.mid { stroke: var(--mint); }
.c-ring-arc.lo { stroke: #5B6475; }
.c-ring-num { font-weight: 500; }
.panel.picks { background: var(--surface); border-color: rgba(124,245,200,.2); }

.jd-eyebrow { font: 11px var(--mono); color: var(--mint); letter-spacing: .08em; text-transform: uppercase; }
.jd-title { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 6px 0 4px; }
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.fact { border-radius: 12px; background: var(--bg); padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fact span { font: 10px var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.fact b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.fact b.mono { font-family: var(--mono); font-weight: 500; color: var(--mint); }

/* sheet, people rows, misc */
.sheet { background: var(--surface); border-left: 1px solid var(--line); box-shadow: -20px 0 60px rgba(0,0,0,.5); }
.sheet-head { border-bottom: 1px solid var(--line); }
.sheet-backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
.person, .list li, .step { border-top-color: rgba(255,255,255,.05); }
.avatar { background: rgba(124,245,200,.12); color: var(--mint); font-size: 13px; }
.composer { background: var(--bg); border: 1px solid var(--line); }
.toast { background: var(--mint); color: var(--accent-ink); font-weight: 600; border-radius: 12px; }
@media (max-width: 900px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.dropzone { background: var(--bg); border-color: var(--line-2); border-radius: 16px; }
.dropzone.drag { background: rgba(124,245,200,.06); }
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; }
.stat { background: var(--surface); border-color: var(--line); border-radius: 14px; }
.stat b { font-family: var(--display); font-weight: 600; }
.step-num { background: rgba(124,245,200,.1); color: var(--mint); }
.c-bar { background: rgba(138,180,255,.25); }
.c-bar-hi { background: var(--mint); }
.c-col { fill: rgba(138,180,255,.5); }
.c-funnel-bar { background: var(--blue); }
.lvl-bar { background: rgba(255,255,255,.05); height: 8px; gap: 2px; }
.lvl-title { font-family: var(--display); }

/* auth */
.auth { margin-top: 10vh; }
.auth .brand { justify-content: center; font-size: 24px; }
.auth .card { padding: 28px; }
.more-list { display: flex; flex-direction: column; gap: 8px; }
.tabbar button.active { color: var(--mint); }

/* filters fold away on phones */
.filter-wrap > summary { list-style: none; display: none; width: fit-content; }
.filter-wrap > summary::-webkit-details-marker { display: none; }
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.page-head .search-box { flex: 0 1 380px; }
@media (max-width: 900px) {
  .filter-wrap > summary { display: inline-flex; }
  .filter-wrap[open] > summary { margin-bottom: 10px; }
  .filter-row { gap: 10px; }
  .filter-note { margin-left: 0; width: 100%; }
  .page-head .search-box, .page-head .row { flex: 1 1 100%; }
  .page-head .row .search-box { flex: 1 1 auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .num { font-size: 26px; }
  .kpi .c-spark { display: none; }
  .card, .panel { padding: 18px; border-radius: 18px; }
  .home-row { gap: 14px; margin-bottom: 14px; }
  .fact { padding: 10px; }
  .fact b { font-size: 13px; }
}

.btn { height: auto; min-height: 40px; padding: 8px 16px; line-height: 1.2; }
.btn.small { height: auto; min-height: 34px; padding: 6px 12px; }
.btn.ghost { min-height: 0; }
.panel-head { flex-wrap: wrap; }
.filter-row.sub .tbtn { height: 36px; }

@media (min-width: 901px) { .greet .row { flex-wrap: nowrap; } }
.auth { max-width: 440px; }
.brand .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--mint); box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--mint); margin-right: 6px; }

/* ===================== People: company detail + list ===================== */
.page-head .muted b { font-family: var(--mono); color: var(--mint); font-weight: 500; }
.net-legend { flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.net-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.net-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.mono-dim { font: 12px var(--mono); color: var(--muted); }
.net-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.net-detail { flex: 999 1 520px; min-width: 0; background: var(--surface); border: 1px solid rgba(124,245,200,.22); border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; gap: 18px; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
.net-detail:empty { display: none; }
.net-side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.net-side .search-box { height: 44px; }
.net-list { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 1100px) { .net-detail { display: none; } .net-side { flex-basis: 100%; } }
.net-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.net-head h2 { font-size: 22px; margin: 0; }
.co-initial { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); display: grid; place-items: center;
  font: 700 18px var(--display); flex: none; }
.net-detail .lvl-bar, .sheet .lvl-bar { height: 10px; margin: 0; }
.co-mini { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 16px; border-radius: 16px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.co-mini:hover { border-color: rgba(124,245,200,.35); }
.co-mini[aria-current=true] { border-color: rgba(124,245,200,.55); background: rgba(124,245,200,.04); }
.co-mini-top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.co-mini-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.co-mini-roles { margin-left: auto; font: 12px var(--mono); color: var(--mint); white-space: nowrap; }
.co-mini-roles.dim { color: var(--muted); }
.co-mini .lvl-bar { height: 6px; margin: 0; }
.lvl-group { margin-top: 0; display: flex; flex-direction: column; gap: 10px; }
.lvl-title { display: flex; align-items: center; gap: 8px; margin: 0; }
.lvl-title h3 { margin: 0; font-size: 14px; }
.ptiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.ptile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid transparent;
  color: var(--ink); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.ptile:hover { border-color: var(--line-2); }
.pavatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 600 12px var(--body); color: var(--accent-ink); }
.pinfo { display: flex; flex-direction: column; min-width: 0; }
.pinfo b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pinfo span { font-size: 12px; color: #A3ACBE; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmark { margin-left: auto; font: 11px var(--mono); color: var(--mint); flex: none; }
.sheet .lvl-group + .lvl-group, .net-detail .lvl-group + .lvl-group { margin-top: 6px; }
.sheet-body > div > * + * { margin-top: 14px; }
.pavatar.lvl-unknown, .pavatar.lvl-mid.dark { color: var(--ink); }
.net-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.net-tools .search-box { flex: 1 1 200px; height: 44px; }
.net-tools .fselect { height: 44px; }

/* ===================== Companies, Outreach, search ===================== */
input[type=search] {
  padding-left: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2398A1B3' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 14px center;
}
.search-box input[type=search] { padding-left: 0; background-image: none; }
.pulse.live::after { inset: -4px; }
.pipe-conv { display: block; font: normal 11px var(--mono); color: var(--muted); margin-top: 2px; }
.bstat { display: inline-flex; align-items: center; gap: 6px; font: 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; flex: none; }
.bstat.on { color: var(--mint); background: rgba(124,245,200,.1); }
.bstat.wait { color: var(--amber); background: rgba(255,181,71,.1); }
.bstat.wait .pulse { width: 6px; height: 6px; background: var(--amber); }
.bstat.wait .pulse::after { border-color: var(--amber); inset: -3px; }
.bstat.off { color: var(--muted); background: rgba(255,255,255,.05); }

/* Welcome banner in the new look */
.hero {
  background-color: var(--surface);
  background-image:
    linear-gradient(rgba(124,245,200,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,245,200,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  border: 1px solid rgba(124,245,200,.22); border-radius: 20px; padding: 24px; color: var(--ink);
}
.hero .eyebrow { color: var(--mint); }
.hero h1 { font-family: var(--display); font-size: 30px; color: var(--ink); margin: 8px 0 4px; }
.welcome .hero h1 { font-size: 30px; }
.hero p, .hero .agent-line { font-family: var(--body); color: #A3ACBE; }
.hero .agent-line b { color: var(--ink); }
.feed li { grid-template-columns: 58px 10px 1fr; }
.feed .ftime { white-space: nowrap; }
a.seg-btn { display: inline-flex; align-items: center; }
@media (max-width: 900px) { .net-legend { display: none; } }

/* ===================== plan & admin ===================== */
.plan-card { display: flex; flex-direction: column; gap: 12px; border-color: rgba(124,245,200,.22); }
.plan-card h2 { margin: 4px 0 0; display: flex; align-items: center; gap: 10px; font-size: 22px; }
.plan-tag { font-size: 11px; }
.plan-num { text-align: right; font: 14px var(--mono); color: var(--muted); }
.plan-num b { font: 600 28px var(--display); color: var(--ink); letter-spacing: -.02em; }
.plan-num span { display: block; font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.meter { height: 8px; border-radius: 8px; background: rgba(255,255,255,.06); overflow: hidden; }
.meter > div { height: 100%; background: var(--mint); border-radius: 8px; transition: width .6s ease; }
.meter.warn > div { background: var(--amber); }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.tbl th { text-align: left; font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
.tbl td.num { font-family: var(--mono); white-space: nowrap; }
.tbl .fselect { height: 34px; }
.card + .card, .card + div > .card, section.card + section.card { margin-top: 12px; }
.upgrade-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.upgrade-row b { font-size: 14px; }
.upgrade-row.joined { border-color: rgba(124,245,200,.25); }
.interest-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.interest-note { color: var(--ink-2); max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }

/* ===================== Skills in demand ===================== */
.kpi .num.kpi-text { font-size: 22px; line-height: 1.2; }
.gaps-panel { border-color: rgba(255,181,71,.25); margin-bottom: 20px; }
.gap-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.gap-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); margin: 0; font-weight: 400; cursor: pointer; color: var(--ink); }
.gap-item input { width: 18px; height: 18px; accent-color: var(--mint); flex: none; }
.skill-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.skill-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.skill-key i.have { background: var(--mint); } .skill-key i.gap { background: var(--amber); }
.skill-bars { display: flex; flex-direction: column; gap: 4px; }
.skill-row { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr) 110px; gap: 14px; align-items: center; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink); }
.skill-row:hover { background: rgba(255,255,255,.03); color: var(--ink); }
.skill-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.have-dot { width: 16px; height: 16px; border-radius: 50%; background: rgba(124,245,200,.15); color: var(--mint); font-size: 10px; display: grid; place-items: center; flex: none; }
.skill-track { height: 10px; border-radius: 10px; background: rgba(255,255,255,.05); overflow: hidden; }
.skill-track > div { height: 100%; width: 0; border-radius: 10px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.skill-track > .have { background: var(--mint); }
.skill-track > .gap { background: var(--amber); opacity: .85; }
.skill-val { font: 13px var(--mono); text-align: right; white-space: nowrap; }
.skill-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 20px; margin-top: 20px; }
.skill-groups .panel + .panel { margin-top: 0; }
.skill-bars.compact .skill-row { grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) 70px; }
.skill-bars.compact .skill-val .mono-dim { display: none; }
@media (max-width: 900px) {
  .skill-row { grid-template-columns: minmax(96px, 130px) minmax(0, 1fr) 64px; gap: 10px; }
  .skill-row .skill-val .mono-dim { display: none; }
  .skill-groups { grid-template-columns: 1fr; }
}

@media (min-width: 901px) { .page-head > .row { flex-wrap: nowrap; } .page-head > .row .search-box { flex: 0 1 340px; min-width: 220px; } }
.page-head + .chips { margin-bottom: 18px; }
.filter-panel { padding: 12px; }
.filter-panel .filter-note { margin: 0; width: 100%; font-size: 12px; }
.filter-panel .filter-note:empty { display: none; }
.filter-row .fselect, .filter-row .tbtn { height: 38px; }
.page-head .seg { flex: none; }
.tag.out { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }
.more-chip { border-style: dashed; color: var(--mint); }
.area-row { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.rewrite-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rewrite-row .chip { height: 30px; padding: 0 12px; font-size: 12px; }
.composer textarea { min-height: 220px; }

/* ===================== Applied ===================== */
.gmail-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 20px; border-color: rgba(138,180,255,.25); }
.gmail-card.bad { border-color: rgba(255,181,71,.35); }
.gmail-card h3 { margin: 0 0 4px; }
.gmail-card p { margin: 0; max-width: 720px; }
.app-kpis .kpi .num { font-size: 30px; }
.app-kpis .stage-interviewing .num, .app-kpis .stage-offer .num { color: var(--mint); }
.app-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 10px; }
.app-card.stage-offer { border-color: rgba(124,245,200,.5); }
.app-card.stage-interviewing { border-color: rgba(124,245,200,.25); }
.app-card.stage-rejected, .app-card.stage-withdrawn { opacity: .75; }
.app-top { display: flex; gap: 12px; align-items: flex-start; }
.app-top .co-initial { width: 38px; height: 38px; font-size: 15px; border-radius: 10px; }
.app-title { font-weight: 600; font-size: 15px; }
.app-top .chips { margin-top: 6px; }
.app-stage.st-interviewing, .app-stage.st-offer { border-color: var(--mint); }
.app-stage.st-interviewing select, .app-stage.st-offer select { color: var(--mint); }
.app-stage.st-rejected select { color: var(--muted); }
.app-timeline summary { font-size: 13px; color: var(--muted); }
.app-timeline ol { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.app-timeline li { display: grid; grid-template-columns: 52px 10px 1fr; gap: 10px; align-items: start; }
.app-timeline .ftime { font: 11px var(--mono); color: var(--muted); padding-top: 2px; }
.app-timeline .fdot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--blue); }
.app-timeline .fdot.st-interviewing, .app-timeline .fdot.st-offer { background: var(--mint); }
.app-timeline .fdot.st-rejected { background: #5B6475; }
.closed-apps { margin-top: 20px; }
.closed-apps > summary { font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.applied-link { text-decoration: none; }
@media (max-width: 900px) { .gmail-card > .grow { flex-basis: 100%; } }
.co-pick { cursor: pointer; background: transparent; font: 500 13px var(--body); padding-right: 12px; }
.co-pick-val { color: var(--ink); max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-pick.on .co-pick-val { color: var(--mint); }
.co-pick .caret { font-size: 10px; color: var(--muted); }
.co-pick-list { display: flex; flex-direction: column; gap: 2px; max-height: 55vh; overflow-y: auto; }
.co-pick-row { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 10px; margin: 0; font-weight: 400; color: var(--ink); cursor: pointer; }
.co-pick-row:hover { background: rgba(255,255,255,.03); }
.co-pick-row input { width: 18px; height: 18px; accent-color: var(--mint); flex: none; }
.co-pick-foot { position: sticky; bottom: 0; background: var(--surface); padding-top: 10px; border-top: 1px solid var(--line); }
.toast { display: flex; align-items: center; gap: 14px; }
.toast-action { border: 0; background: rgba(7,9,13,.15); color: var(--accent-ink); font: 700 13px var(--body); padding: 4px 10px; border-radius: 8px; cursor: pointer; }
.job.gone, .dismissed-row.gone { opacity: 0; transform: translateX(-12px); transition: opacity .22s ease, transform .22s ease; }
.hidden-link { margin-left: auto; text-decoration: none; }
.dismissed-row { cursor: default; align-items: center; }
.not-int { color: var(--muted); }
.not-int:hover { color: var(--ink); }
.dismissed-row .job-body { flex: 1; min-width: 0; }

/* Applied: who likely filled a closed role */
.app-hire { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 10px; padding: 8px 12px; border-radius: 10px;
  background: rgba(138,180,255,.06); border: 1px solid rgba(138,180,255,.16); font-size: 13px; }
.app-hire.likely { background: rgba(255,181,71,.07); border-color: rgba(255,181,71,.22); }
.app-hire-k { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #8A93A6); }
.app-hire a { color: #A9C7FF; font-weight: 600; }

/* Jobs: roles you've applied to stand out in violet; closed-out ones (rejected/withdrawn) dim to rose */
.job.applied { background: linear-gradient(90deg, rgba(183,156,255,.10), rgba(183,156,255,.02) 60%), var(--surface, #0E1117);
  border-color: rgba(183,156,255,.38); box-shadow: inset 3px 0 0 #B79CFF; }
.job.applied:hover { border-color: rgba(183,156,255,.6); }
.job.applied.st-offer { box-shadow: inset 3px 0 0 var(--mint, #7CF5C8); border-color: rgba(124,245,200,.45); }
.job.applied.st-rejected, .job.applied.st-withdrawn { background: linear-gradient(90deg, rgba(255,122,144,.08), transparent 60%), var(--surface, #0E1117);
  border-color: rgba(255,122,144,.3); box-shadow: inset 3px 0 0 #FF7A90; opacity: .78; }
.tag.applied-tag { background: rgba(183,156,255,.16); color: #CDBBFF; font-weight: 600; }
.tag.applied-tag.st-offer { background: rgba(124,245,200,.14); color: var(--mint, #7CF5C8); }
.tag.applied-tag.st-rejected, .tag.applied-tag.st-withdrawn { background: rgba(255,122,144,.14); color: #FF9DAE; }
.app-timeline a.ev-mail { color: #A9C7FF; text-decoration: none; } .app-timeline a.ev-mail:hover { text-decoration: underline; }

/* Posting picker */
.pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow: auto; }
.pick-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--surface-2, #151A23); border: 1px solid var(--line, #1E2430); border-radius: 12px; padding: 10px 12px; }
.pick-row:hover { border-color: rgba(124,245,200,.4); }
.pick-title { font-weight: 600; font-size: 14px; }
.qbadge.nudge { background: rgba(183,156,255,.16); color: #CDBBFF; }

/* Home: today's moves */
.panel.today { margin-bottom: 16px; border-color: rgba(124,245,200,.22);
  background: radial-gradient(120% 140% at 0% 0%, rgba(124,245,200,.07), transparent 55%), var(--surface); }
.panel.today.all-done { border-color: rgba(124,245,200,.4); }
.today-ring { --p: 0; width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--mint, #7CF5C8) calc(var(--p) * 1%), rgba(255,255,255,.07) 0);
  -webkit-mask: radial-gradient(circle, transparent 12px, #000 13px); mask: radial-gradient(circle, transparent 12px, #000 13px); }
.streak { font-family: 'JetBrains Mono', monospace; font-size: 12px; padding: 5px 10px; border-radius: 999px;
  background: rgba(255,181,71,.12); color: var(--amber, #FFB547); white-space: nowrap; }
.streak b { font-size: 14px; }
.streak.off { background: rgba(255,255,255,.05); color: var(--muted); }
.today-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.today-move { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px;
  background: var(--surface-2, #151A23); border: 1px solid var(--line); }
.today-check { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; border: 1px solid var(--line-2, #2A3240); color: var(--muted); }
.today-move.st-done .today-check { background: var(--mint, #7CF5C8); color: #07090D; border-color: transparent; font-weight: 700; }
.today-move.st-done .today-main, .today-move.st-skipped .today-main { text-decoration: line-through; color: var(--muted); }
.today-move.st-skipped { opacity: .6; }
.today-main { font-weight: 600; margin: 4px 0 2px; }
.today-move .grow { min-width: 0; }
.qbadge.role { background: rgba(124,245,200,.12); color: var(--mint, #7CF5C8); }
.qbadge.reach { background: rgba(138,180,255,.14); color: #A9C7FF; }
.qbadge.follow { background: rgba(255,181,71,.14); color: var(--amber, #FFB547); }

/* Composer: did it go out? */
.ask-sent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px;
  background: rgba(124,245,200,.07); border: 1px solid rgba(124,245,200,.25); font-size: 13px; }

/* Welcome: areas + warm-paths reveal */
.welcome-areas { margin: -4px 0 6px 40px; }
.panel.reveal { text-align: left; border-color: rgba(124,245,200,.3);
  background: radial-gradient(100% 120% at 100% 0%, rgba(138,180,255,.08), transparent 60%), var(--surface); }
.reveal-num { font-family: 'Space Grotesk', sans-serif; font-size: 56px; font-weight: 700; line-height: 1.05; color: var(--mint, #7CF5C8); margin: 6px 0 2px; }
.reveal-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 640px) { .welcome-areas { margin-left: 0; } .reveal-num { font-size: 44px; } }

/* ================= v5 · Calm: fewer things on screen ================= */
/* Sidebar: the agent is a quiet one-line status, not a card to watch. */
.agent-card { padding: 10px 12px; gap: 0; border-color: var(--line); background: transparent; }
.agent-card .agent-sub, .agent-card .agent-bar, .agent-card .agent-next { display: none; }
.agent-head b { font-size: 12px; font-weight: 500; color: var(--muted); }
.rail-nav a.rail-minor { height: 36px; margin-top: 10px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 10px; height: auto; padding-bottom: 8px; }
.rail-nav a.rail-minor.active { color: var(--ink); }

/* Home: a single column with room to breathe. */
.home-simple { max-width: 760px; }
.home-simple .panel { margin-bottom: 18px; }
.home-simple .page-head h1 { margin-bottom: 0; }
.stat-line { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 6px 4px 24px; color: var(--muted); font-size: 14px; }
.stat-link { color: var(--muted); }
.stat-link b { color: var(--ink); font-family: var(--display); font-size: 16px; }
.stat-link:hover { color: var(--ink); }
.stat-link.more { margin-left: auto; color: var(--mint); }

/* Jobs: one toolbar row, a plain list. */
.jobs-toolbar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.jobs-toolbar .filter-wrap { flex: 0 1 auto; }
.jobs-toolbar .filter-wrap > summary { display: inline-flex; }
.jobs-toolbar .filter-wrap[open] { flex: 1 1 100%; order: 5; }
.jobs-toolbar .filter-wrap[open] > summary { margin-bottom: 10px; }
.area-pick select { max-width: 260px; }
.hidden-link { color: var(--muted); align-self: center; }
.hidden-link:empty { display: none; }
.job .chips { margin-top: 6px; }
.job .chips:empty { display: none; }
p.center { text-align: center; padding: 12px 0; }

/* Job detail: one main action. */
.jd-actions { gap: 8px; }
.best-path h3 { margin-bottom: 10px; }
.best-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px;
  background: rgba(124,245,200,.05); border: 1px solid rgba(124,245,200,.25); }
.best-card > .btn { align-self: flex-start; }
.more-wrap { display: flex; flex-direction: column; gap: 6px; }
.more-block { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.more-block > summary { cursor: pointer; padding: 12px 0; font-weight: 500; color: var(--ink-2, #C4CBD8); list-style: none; }
.more-block > summary::-webkit-details-marker { display: none; }
.more-block > summary::after { content: '+'; float: right; color: var(--muted); font-family: var(--mono); }
.more-block[open] > summary::after { content: '–'; }
.more-block[open] { padding-bottom: 12px; }
.net-legend { display: none; }
.jd-actions .not-int { color: var(--muted); }
.jd-actions .not-int:hover { color: var(--ink); }
@media (max-width: 640px) {
  .today-move { flex-wrap: wrap; }
  .today-move .grow { flex: 1 1 calc(100% - 40px); }
  .today-move .ellipsis { white-space: normal; }
  .today-move > .btn { margin-left: 38px; }
  .panel.today .panel-head { flex-wrap: wrap; gap: 10px; }
}

/* Sign in: Google only */
.google-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 600; }
.google-btn:hover { background: #f4f6f8; color: #1f1f1f; }
.g-mark { width: 18px; height: 18px; flex: none; }
.seg.jobs-views { margin-bottom: 12px; width: fit-content; }
.seg.jobs-views .n { margin-left: 6px; font: 500 12px var(--mono); opacity: .75; }
.person-link { color: var(--ink); text-decoration: none; }
.person-link:hover strong, .person-link:hover b { text-decoration: underline; text-underline-offset: 3px; }
.person-link .li-arrow { color: #A9C7FF; font-size: 12px; }
.fit-tiers { margin: 0 0 12px; }
.fit-why { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.fit-why.tier-strong { border-color: rgba(124,245,200,.3); }
.fit-why.tier-low { border-color: rgba(255,122,144,.25); }
.fit-badge { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; }
.fit-badge.tier-strong { background: rgba(124,245,200,.14); color: var(--mint); }
.fit-badge.tier-medium { background: rgba(255,181,71,.14); color: var(--amber); }
.fit-badge.tier-low { background: rgba(255,122,144,.14); color: #FF9DAE; }
.fit-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.fit-list li.ok span { color: var(--mint); }
.fit-list li.bad { color: #FFB3C0; }
.fit-list li.bad span { color: #FF7A90; }
.fit-list li.meh { color: var(--muted); }

/* Profile: step-by-step setup */
.setup { max-width: 760px; }
.setup-progress { display: flex; align-items: center; gap: 14px; margin: -6px 0 18px; color: var(--muted); font-size: 14px; }
.setup-progress b { color: var(--ink); }
.setup-bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.setup-bar > div { height: 100%; background: var(--mint); border-radius: 6px; }
.setup-steps { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.setup-step { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.setup-step[open] { border-color: rgba(124,245,200,.35); }
.setup-step > summary { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; }
.setup-step > summary::-webkit-details-marker { display: none; }
.step-dot { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--mono);
  border: 1px solid var(--line-2, #2A3240); color: var(--muted); }
.setup-step[open] .step-dot { border-color: var(--mint); color: var(--mint); }
.setup-step.done .step-dot { background: var(--mint); color: #07090D; border-color: transparent; }
.step-title { display: block; font-weight: 600; color: var(--ink); }
.step-sum { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.step-state { font-size: 13px; color: var(--mint); }
.setup-step[open] .step-state { display: none; }
.step-body { padding: 0 18px 18px 62px; }
.step-body > .btn { align-self: flex-start; }
.step-body .card { margin: 0; }
.step-tip { padding: 12px 14px; border-radius: 12px; background: rgba(124,245,200,.05); border: 1px solid rgba(124,245,200,.2); gap: 12px; }
.setup-h2 { margin: 8px 0 12px; font-size: 18px; }
@media (max-width: 640px) { .step-body { padding: 0 14px 16px; } .setup-step > summary { padding: 14px; } }
.danger-link { color: var(--muted); } .danger-link:hover { color: #FF7A90; }
.sub-step { display: flex; flex-direction: column; gap: 12px; padding: 14px 0 4px; border-top: 1px solid var(--line); }
.sub-step h4 { margin: 0; font-size: 14px; }
.sub-step > .btn { align-self: flex-start; }
.install-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2, #C4CBD8); }
.install-steps code, .sub-step code { font-family: var(--mono); font-size: 12px; background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 5px; }
.ok-text { color: var(--mint); }
.btn.danger-link { color: var(--muted); } .btn.danger-link:hover { color: #FF7A90; }

/* People → Changes */
.small-kpis { margin-bottom: 16px; }
.change-day { margin-bottom: 16px; }
.change-group { padding: 10px 0 6px; border-top: 1px solid var(--line); }
.change-group:first-of-type { border-top: 0; }
.change-group h3 { font-size: 13px; font-weight: 600; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; color: var(--ink-2, #C4CBD8); }
.change-group h3 .n { font: 500 12px var(--mono); color: var(--muted); }
.change-group.k-moved h3, .change-group.k-promoted h3 { color: var(--mint); }
.change-group.k-removed h3 { color: var(--muted); }
.change-rows { display: flex; flex-direction: column; gap: 6px; }
.change-row { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-radius: 10px; }
.change-row:hover { background: rgba(255,255,255,.02); }
.change-row b { color: var(--ink); font-weight: 600; }
.avatar.small { width: 32px; height: 32px; font-size: 12px; }
.hint-line { color: #A9C7FF; margin-top: 2px; }
.size-steps { display: flex; flex-wrap: wrap; gap: 10px; }
.size-step { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; min-width: 110px; }
.size-step b { font: 600 20px var(--display); }
.size-step .up { color: var(--mint); font: 500 12px var(--mono); }
.size-step .down { color: #FF9DAE; font: 500 12px var(--mono); }

/* Person page */
.person-page { max-width: 820px; }
.back-link { display: inline-block; margin-bottom: 12px; color: var(--muted); }
.person-head h1 { margin: 0 0 4px; font-size: 26px; }
.avatar.big { width: 56px; height: 56px; font-size: 18px; }
.person-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 18px 0 14px; }
.pfact { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.person-edit { gap: 10px; margin-bottom: 10px; }
textarea.notes { min-height: 70px; }
.plink { display: inline-flex; align-items: center; gap: 6px; }
.li-mini { font: 700 10px var(--mono); color: #A9C7FF; border: 1px solid rgba(138,180,255,.35); border-radius: 4px; padding: 0 4px; line-height: 15px; text-decoration: none; }
.li-mini:hover { background: rgba(138,180,255,.12); }
.tl-now { gap: 12px; padding: 4px 0 14px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 6px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.timeline li { position: relative; padding-left: 18px; font-size: 14px; }
.timeline li .tl-dot { position: absolute; left: -7px; top: 4px; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2, #2A3240); display: inline-block; flex: none; }
.tl-dot.now { background: var(--mint); border-color: var(--mint); }
.tl-moved .tl-dot, .tl-promoted .tl-dot { border-color: var(--mint); background: rgba(124,245,200,.25); }
.tl-title .tl-dot { border-color: #8AB4FF; }
.tl-outreach .tl-dot { border-color: var(--amber, #FFB547); }
.tl-removed .tl-dot { border-color: #FF7A90; }
.timeline b { color: var(--ink); }

/* Tailored resume */
.tailor-card { padding: 14px 16px; border: 1px solid rgba(138,180,255,.25); border-radius: 14px; background: rgba(138,180,255,.05); }
.tailor-card .row { gap: 10px; align-items: center; }
.tailor-editor label { display: block; font-weight: 600; margin-bottom: 6px; }
.tailor-ta { width: 100%; margin-bottom: 6px; font-size: 14px; line-height: 1.45; }
.tailor-job { padding: 10px 0; border-top: 1px solid var(--line); }
.tailor-job > .row { margin-bottom: 6px; }
.tailor-skill { gap: 8px; margin-bottom: 6px; }
.tailor-skill input { flex: 1; }
.tailor-changes { padding: 12px 14px; border-radius: 12px; background: rgba(124,245,200,.06); border: 1px solid rgba(124,245,200,.2); }
.tailor-changes h4 { margin: 0 0 6px; font-size: 13px; }
.tailor-changes ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2, #C4CBD8); display: flex; flex-direction: column; gap: 4px; }
.tailor-card .row { flex-wrap: wrap; } .tailor-card .grow { flex: 1 1 240px; }

.company-table-wrap { max-width: 100%; }
.company-table { min-width: max-content; }
.company-table td { max-width: 22rem; overflow-wrap: anywhere; }
.company-table a { text-decoration: underline; }

/* Company record: team picker + one team's chart, most senior first */
.company-page { max-width: 1100px; }
.tp { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 14px; }
.tp > .panel + .panel { margin-top: 0; }
.tp-list { display: flex; flex-direction: column; gap: 2px; padding: 8px; position: sticky; top: 16px; }
.tp-team { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font: inherit; text-align: left; cursor: pointer; }
.tp-team:hover { background: rgba(255,255,255,.04); color: var(--ink); }
.tp-team[aria-current=true] { background: rgba(124,245,200,.1); color: var(--ink); box-shadow: inset 3px 0 0 var(--mint); }
.tp-dot { width: 9px; height: 9px; border-radius: 50%; display: block; }
.tp-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-meta { font: 12px var(--mono); color: var(--muted); white-space: nowrap; }
.tp-chart { min-width: 0; }
.tp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tp-head h2 { margin: 0; font-size: 22px; }
.tp-ladder { display: flex; flex-direction: column; gap: 14px; }
.tp-rung { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: start; }
.tp-label { font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 14px; }
.tp-label span { margin-left: 6px; opacity: .7; }
.tp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.tp-card { display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 9px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); color: var(--ink); text-decoration: none; min-width: 0; }
.tp-card:hover { border-color: var(--mint); }
.tp-card.warm { box-shadow: inset 3px 0 0 var(--mint); }
.tp-who { display: flex; flex-direction: column; min-width: 0; }
.tp-who b { font-size: 14px; }
.tp-who span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-roles { margin-top: 18px; padding: 14px; border: 1px dashed var(--line-2); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; }
.tp-roles-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tp-roles p { margin: 0; }
.tp-role-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-role { font: inherit; font-size: 13px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.tp-role:hover { border-color: var(--mint); }
.tp-note { margin: 16px 0 0; }
@media (max-width: 820px) {
  .tp { grid-template-columns: minmax(0, 1fr); }
  .tp-list { position: static; flex-direction: row; overflow-x: auto; padding: 6px; scrollbar-width: none; }
  .tp-team { width: auto; grid-template-columns: 10px auto auto; flex: none; }
  .tp-rung { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tp-label { padding-top: 0; }
}

/* Companies directory */
.co-dir { max-width: 1040px; }
.co-dir-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.co-dir-head h1 { margin: 0 0 4px; }
.co-dir-head p { margin: 0; }
.co-search { position: relative; flex: 0 1 380px; min-width: 240px; }
.co-search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; }
.co-search input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(124,245,200,.12); }
.co-search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.co-search-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.co-dir .seg-btn { display: inline-flex; align-items: center; text-decoration: none; }
.co-dir .seg-btn .n { font-family: var(--mono); font-size: 12px; opacity: .7; margin-left: 6px; }
.co-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.co-row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 110px auto 16px; align-items: center; gap: 16px; padding: 14px 18px; color: var(--ink); text-decoration: none; transition: background .12s; }
.co-row + .co-row { border-top: 1px solid var(--line); }
.co-row:hover { background: rgba(255,255,255,.03); }
.co-row:hover .co-chev { color: var(--mint); transform: translateX(2px); }
.co-tile { width: 44px; height: 44px; border: 0; color: hsl(var(--h) 70% 78%); background: hsl(var(--h) 45% 22% / .55); }
.co-main { min-width: 0; }
.co-open { color: var(--ink); text-decoration: none; }
.co-open::after { content: ''; position: absolute; inset: 0; }
.co-site { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; max-width: 100%; margin-top: 3px; font-size: 13px; color: var(--muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-site:hover { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.co-globe svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; display: block; }
.co-metric.cap b { font-size: 17px; color: var(--ink); }
.co-metric.cap span { white-space: nowrap; }
.co-metric.cap.zero b { color: var(--muted); }
.co-name { display: block; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.co-facts { display: grid; grid-template-columns: 170px 84px 64px; align-items: center; gap: 16px; }
.co-facts .bstat { justify-self: start; }
.co-metric { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.co-metric b { font: 600 16px var(--mono); font-variant-numeric: tabular-nums; }
.co-metric span { font-size: 11px; color: var(--muted); }
.co-metric.zero b { color: var(--muted); font-weight: 400; }
.co-chev { color: var(--muted); font-size: 20px; transition: transform .12s, color .12s; }
.bstat.err { color: #ff8a80; background: rgba(255,107,107,.1); }
.co-empty { text-align: center; padding: 36px 16px; }
.co-pager { display: flex; justify-content: space-between; align-items: center; }
@media (max-width: 720px) {
  .co-search { flex-basis: 100%; }
  .co-row { grid-template-columns: 40px minmax(0, 1fr) auto 12px; row-gap: 10px; column-gap: 12px; padding: 12px 14px; }
  .co-tile { width: 40px; height: 40px; }
  .co-facts { grid-column: 2 / 5; grid-row: 2; display: flex; flex-wrap: wrap; gap: 6px 14px; }
  .co-metric.cap { grid-column: 3; grid-row: 1; }
  .co-metric.cap b { font-size: 14px; }
  .co-metric.cap span { display: none; }
  .co-metric.cap.zero { visibility: hidden; }
  .co-metric { flex-direction: row; align-items: baseline; gap: 4px; white-space: nowrap; }
  .co-metric b { font-size: 13px; }
  .co-chev { grid-column: 4; grid-row: 1; }
}
.co-tile.big { width: 56px; height: 56px; border-radius: 14px; font-size: 22px; }
