/* Signal Desk — ported from apps/buying_intent_lead_gen/client/index.css.
   Slate base, amber identity (job-board), cyan community, mono data. */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  --ink: #0a0d13;
  --surface: #10151d;
  --panel: #161d27;
  --line: #222b37;
  --edge: #303b4a;
  --fg: #e7ecf3;
  --dim: #97a3b2;
  --faint: #5c6877;
  --warm: #f2a63c;
  --cool: #44c8dd;
  --good: #57c98a;
  --bad: #e56a7b;
  --radius: 0.5rem;
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 14px;
}
a { color: var(--warm); text-decoration: none; }
a:hover { text-decoration: underline; }

* { scrollbar-width: thin; scrollbar-color: var(--edge) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: var(--line); border-radius: 9999px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--edge); }
::selection { background: color-mix(in srgb, var(--warm) 30%, transparent); color: var(--fg); }

.eyebrow { font-family: var(--font-mono); font-size: 10.5px; line-height: 1; text-transform: uppercase; letter-spacing: 0.16em; color: var(--faint); }
.mono { font-family: var(--font-mono); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; }

/* Layout: fixed sidebar + content */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; flex: 0 0 220px; background: #0b0f16; border-right: 1px solid var(--line);
  padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--fg); margin-bottom: 2px; }
.brand .dot { color: var(--warm); }
.brand-sub { font-size: 11px; color: var(--faint); margin-bottom: 22px; }
.nav a { display: block; padding: 8px 10px; border-radius: var(--radius); color: var(--dim); font-size: 13px; margin-bottom: 2px; }
.nav a:hover { background: var(--panel); color: var(--fg); text-decoration: none; }
.nav a.active { background: color-mix(in srgb, var(--warm) 12%, transparent); color: var(--warm); }
.content { flex: 1 1 auto; padding: 24px 28px; max-width: 100%; overflow-x: hidden; }

.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.page-title { font-size: 22px; }

/* Panels / cards */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.grid { display: grid; gap: 14px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .label { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-mono); }
.stat .value { font-size: 26px; font-family: var(--font-display); font-weight: 600; margin-top: 4px; }

/* Feature inventory */
.feature-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.feature-section { min-width: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 10px; }
.section-head h2 { font-size: 16px; }
.feature-list { display: flex; flex-direction: column; gap: 10px; }
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 180px); gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px; }
.feature-row.planned { background: color-mix(in srgb, var(--surface) 80%, var(--ink)); }
.feature-row h3 { font-size: 14px; margin-top: 8px; }
.feature-row p { color: var(--dim); margin: 5px 0 0; line-height: 1.45; }
.feature-area { color: var(--faint); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.feature-surface { color: var(--faint); font-size: 11px; text-align: right; overflow-wrap: anywhere; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); color: var(--fg); font-size: 13px; cursor: pointer; font-family: var(--font-sans); }
.btn:hover { border-color: var(--edge); text-decoration: none; }
.btn.primary { background: var(--warm); color: #1b1206; border-color: var(--warm); font-weight: 600; }
.btn.cool { background: color-mix(in srgb, var(--cool) 16%, transparent); border-color: color-mix(in srgb, var(--cool) 40%, transparent); color: var(--cool); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 4px 8px; font-size: 12px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chrome-download { gap: 8px; background: #eef4fb; border-color: #c9d5e2; color: #111827; font-weight: 600; }
.chrome-download:hover { border-color: #ffffff; box-shadow: 0 0 0 2px color-mix(in srgb, var(--cool) 18%, transparent); }
.chrome-logo { display: inline-flex; width: 20px; height: 20px; flex: 0 0 20px; }
.chrome-logo svg { display: block; width: 100%; height: 100%; }

/* Forms */
input, select, textarea {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink);
  color: var(--fg); padding: 8px 10px; font-size: 13px; font-family: var(--font-sans); outline: none;
}
textarea { font-family: var(--font-mono); font-size: 12px; line-height: 1.5; resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { border-color: var(--edge); box-shadow: 0 0 0 2px color-mix(in srgb, var(--warm) 25%, transparent); }
label { display: block; font-size: 12px; color: var(--dim); margin: 12px 0 4px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-family: var(--font-mono); border: 1px solid var(--line); color: var(--dim); }
.badge.job { color: var(--warm); border-color: color-mix(in srgb, var(--warm) 38%, transparent); background: color-mix(in srgb, var(--warm) 12%, transparent); }
.badge.community { color: var(--cool); border-color: color-mix(in srgb, var(--cool) 38%, transparent); background: color-mix(in srgb, var(--cool) 12%, transparent); }
.badge.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 38%, transparent); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.badge.good { color: var(--good); border-color: color-mix(in srgb, var(--good) 38%, transparent); background: color-mix(in srgb, var(--good) 12%, transparent); }
.score { font-family: var(--font-mono); font-weight: 600; }
.score.good { color: var(--good); } .score.mid { color: var(--warm); } .score.low { color: var(--bad); }

/* Segmented control */
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.segmented a { padding: 6px 14px; font-size: 13px; color: var(--dim); }
.segmented a:hover { background: var(--panel); text-decoration: none; }
.segmented a.active { background: var(--panel); color: var(--fg); }

/* Kanban */
.board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.column { flex: 0 0 270px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.column h3 { font-size: 12px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.column .col-body { padding: 10px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 220px); overflow-y: auto; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.card:hover { border-color: var(--edge); }
.card .co { font-weight: 600; font-size: 13px; }
.card .ttl { color: var(--dim); font-size: 12px; margin: 3px 0; }
.card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; }
.card .sub { font-size: 11px; color: var(--faint); font-family: var(--font-mono); }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }
td.num { font-family: var(--font-mono); text-align: right; }

.muted { color: var(--dim); }
.faint { color: var(--faint); }
.flash { padding: 8px 12px; border-radius: var(--radius); font-size: 13px; margin-bottom: 12px; }
.flash.ok { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); border: 1px solid color-mix(in srgb, var(--good) 40%, transparent); }
.flash.err { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); }
.flash.warn { background: color-mix(in srgb, var(--warm) 14%, transparent); color: var(--warm); border: 1px solid color-mix(in srgb, var(--warm) 40%, transparent); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1 1 auto; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.center-card { max-width: 420px; margin: 12vh auto; }
pre.draft { white-space: pre-wrap; background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; font-family: var(--font-mono); font-size: 12px; }

@media (max-width: 980px) {
  .feature-board { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-surface { text-align: left; }
}
