/* Soma Sourcing. Tokens and type follow soma-hq's "Quiet Intelligence": a calm near-black canvas, violet
   from the crown for identity and interaction, amber reserved for attention. */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight-latin.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
  color-scheme: dark;
  --canvas: #07080c;
  --ink-900: #0b0d13; --ink-850: #10131b; --ink-800: #151924; --ink-700: #232937;
  --ink-600: #7d8698; --ink-500: #8891a5; --ink-400: #a3abbd; --ink-300: #bfc5d2; --ink-200: #d6dae2;
  --ink-100: #eceef2; --ink-050: #f7f8fa;
  --violet-300: #d6c6f9; --violet-400: #c3aaf7; --violet-500: #a685f2; --violet-600: #8560e0;
  --amber-400: #f5cb84; --sage-400: #86d3ab; --rose-400: #f0a3a3;
  --crown-light: #c9b4f4; --crown-mid: #9d7bea; --crown-deep: #6f4dbb; --crown-shadow: #4a3184; --crown-highlight: #ddd0fa;
  --surface: linear-gradient(180deg, rgba(24, 28, 40, 0.85), rgba(16, 19, 27, 0.85));
  --surface-solid: #10131b;
  --hairline: rgba(157, 123, 234, 0.16);
  --hairline-neutral: rgba(232, 234, 239, 0.09);
  --tint: rgba(236, 238, 242, 0.06);
  --tint-strong: rgba(236, 238, 242, 0.11);
  --recess: rgba(11, 13, 19, 0.55);
  --recess-edge: rgba(236, 238, 242, 0.11);
  --violet-wash: rgba(166, 133, 242, 0.1);
  --violet-edge: rgba(166, 133, 242, 0.36);
  --amber-wash: rgba(224, 168, 80, 0.08);
  --amber-edge: rgba(224, 168, 80, 0.32);
  --rose-wash: rgba(232, 120, 120, 0.09);
  --rose-edge: rgba(232, 120, 120, 0.34);
  --sage-wash: rgba(122, 184, 147, 0.12);
  --card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  --scrim: rgba(7, 8, 12, 0.6);
  /* Section pills, shared with soma-hq (Calendar hues: purple LP, brown Founder, green BizDev). */
  --pill-lp-fill: rgba(139, 110, 246, 0.2); --pill-lp-edge: rgb(160, 130, 250); --pill-lp-ink: rgb(213, 203, 255);
  --pill-founder-fill: rgba(190, 132, 74, 0.2); --pill-founder-edge: rgb(198, 142, 86); --pill-founder-ink: rgb(238, 204, 170);
  --pill-bizdev-fill: rgba(74, 182, 122, 0.2); --pill-bizdev-edge: rgb(90, 196, 136); --pill-bizdev-ink: rgb(186, 235, 206);
  --pill-talent-fill: rgba(112, 170, 230, 0.2); --pill-talent-edge: rgb(140, 192, 234); --pill-talent-ink: rgb(196, 224, 248);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --radius: 14px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --canvas: #fbf7f0;
    --ink-900: #f5eee3; --ink-850: #efe7db; --ink-800: #e9e0d2; --ink-700: #e3dbcf;
    --ink-600: #68604f; --ink-500: #665d52; --ink-400: #574f46; --ink-300: #4e463d; --ink-200: #403a33;
    --ink-100: #332e29; --ink-050: #2a2622;
    --violet-300: #5b3fa8; --violet-400: #5f43b0; --violet-500: #6d4fc0; --violet-600: #7a5cd0;
    --amber-400: #8a5a14; --sage-400: #2f7a52; --rose-400: #a33a3a;
    --surface: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 252, 247, 0.9));
    --surface-solid: #fffcf7;
    --hairline: rgba(109, 79, 192, 0.18); --hairline-neutral: rgba(42, 38, 34, 0.1);
    --tint: rgba(42, 38, 34, 0.05); --tint-strong: rgba(42, 38, 34, 0.09);
    --recess: rgba(42, 38, 34, 0.04); --recess-edge: rgba(42, 38, 34, 0.14);
    --violet-wash: rgba(109, 79, 192, 0.08); --violet-edge: rgba(109, 79, 192, 0.32);
    --card-shadow: 0 1px 2px rgba(42, 38, 34, 0.06), 0 8px 24px -14px rgba(42, 38, 34, 0.18);
    --scrim: rgba(42, 38, 34, 0.25);
    --pill-lp-ink: rgb(80, 52, 170); --pill-founder-ink: rgb(120, 70, 25); --pill-bizdev-ink: rgb(30, 110, 66);
    --pill-talent-ink: rgb(30, 90, 150);
  }
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body {
  margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink-200);
  font: 14px/1.5 var(--font-sans); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1100px 620px at 10% -10%, rgba(133, 96, 224, 0.14), transparent 68%),
    radial-gradient(820px 480px at 94% 2%, rgba(140, 192, 234, 0.06), transparent 66%);
  background-attachment: fixed;
}
[hidden] { display: none !important; }
a { color: var(--violet-400); text-decoration: none; }
a:hover { color: var(--violet-300); text-decoration: underline; }
h1, h2, h3 { margin: 0; color: var(--ink-050); font-weight: 500; }
h1 { font: 400 1.9rem/1.15 var(--font-display); letter-spacing: -0.015em; }
h2 { font-size: 0.95rem; letter-spacing: 0.01em; }
h3 { font-size: 0.85rem; color: var(--ink-300); }
.muted { color: var(--ink-500); }
.dim { color: var(--ink-600); }
.small { font-size: 0.82rem; }
.mono { font-family: var(--font-mono); font-size: 0.78rem; }
.eyebrow { margin: 0 0 4px; font: 500 0.72rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--violet-400); }
.count { font: 400 0.8rem var(--font-mono); color: var(--ink-500); margin-left: 6px; }

button, select, input, textarea { font: inherit; color: inherit; }
button {
  cursor: pointer; border: 1px solid var(--recess-edge); background: var(--tint); color: var(--ink-100);
  border-radius: 9px; padding: 7px 14px; min-height: 34px; transition: background 0.15s, border-color 0.15s;
}
button:hover:not(:disabled) { background: var(--tint-strong); }
button:disabled { opacity: 0.45; cursor: default; }
button.primary { background: var(--violet-600); border-color: var(--violet-500); color: #fff; font-weight: 600; }
button.primary:hover:not(:disabled) { background: var(--violet-500); }
button.ghost { background: transparent; }
button.danger { color: var(--rose-400); border-color: var(--rose-edge); }
button.small, .chips button { padding: 3px 10px; min-height: 26px; font-size: 0.8rem; }
button[aria-pressed="true"] { background: var(--violet-wash); border-color: var(--violet-edge); color: var(--violet-300); }
:focus-visible { outline: 2px solid var(--violet-500); outline-offset: 2px; }
input, select, textarea {
  background: var(--recess); border: 1px solid var(--recess-edge); border-radius: 9px; padding: 7px 10px;
  min-height: 34px; color: var(--ink-100);
}
textarea { width: 100%; resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: var(--ink-600); }

.bar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 28px;
  padding: 12px max(16px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid var(--hairline-neutral);
  background: color-mix(in srgb, var(--canvas) 82%, transparent); backdrop-filter: blur(12px);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-050); font: 400 1.2rem var(--font-display); text-decoration: none !important; }
.tabs { display: flex; gap: 2px; flex: 1; }
.tabs a { padding: 6px 12px; border-radius: 8px; color: var(--ink-400); text-decoration: none; }
.tabs a:hover { color: var(--ink-100); background: var(--tint); }
.tabs a.active { color: var(--ink-050); background: var(--tint-strong); }
main { max-width: 1180px; margin: 0 auto; padding: 28px 16px 80px; }
.view { display: grid; gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--hairline-neutral); border-radius: var(--radius);
  box-shadow: var(--card-shadow); padding: 18px 20px;
}
.card h2 { margin-bottom: 10px; }
details.card > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary h2 { margin: 0; }
details.card > summary::before { content: "›"; color: var(--ink-500); transition: transform 0.15s; display: inline-block; }
details.card[open] > summary::before { transform: rotate(90deg); }
details.card[open] > summary { margin-bottom: 12px; }
.notice { border-radius: 10px; padding: 10px 14px; font-size: 0.9rem; }
.notice.error { background: var(--rose-wash); border: 1px solid var(--rose-edge); color: var(--rose-400); }
.notice.attention { background: var(--amber-wash); border: 1px solid var(--amber-edge); color: var(--amber-400); }

.hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 26px 28px;
  background: linear-gradient(135deg, rgba(133, 96, 224, 0.14), transparent 60%), var(--surface); border-color: var(--hairline); }
.hero p { margin: 6px 0 0; max-width: 620px; }
.hero-actions { display: flex; gap: 8px; }
.hero-actions button.primary { padding: 10px 22px; font-size: 1rem; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }

.progress-list, .finds, .plain-list, .people, .activity { list-style: none; margin: 0; padding: 0; }
.progress-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hairline-neutral); }
.progress-list li:first-child { border-top: 0; }
.progress-list .bar-track { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.progress-list .bar-fill { height: 100%; background: linear-gradient(90deg, var(--violet-600), var(--violet-400)); border-radius: 99px; transition: width 0.3s; }
.progress-list .state { font: 400 0.75rem var(--font-mono); color: var(--ink-500); }
.progress-list .state.running { color: var(--violet-400); }
.progress-list .state.blocked { color: var(--amber-400); }
.finds li { padding: 8px 0; border-top: 1px solid var(--hairline-neutral); display: flex; gap: 10px; align-items: center; }
.finds li:first-child { border-top: 0; }
.finds button { all: unset; cursor: pointer; color: var(--ink-050); font-family: var(--font-display); font-size: 1.02rem; }
.finds button:hover { color: var(--violet-300); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 500; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.pill.lp { background: var(--pill-lp-fill); color: var(--pill-lp-ink); }
.pill.founder { background: var(--pill-founder-fill); color: var(--pill-founder-ink); }
.pill.bizdev { background: var(--pill-bizdev-fill); color: var(--pill-bizdev-ink); }
.pill.talent { background: var(--pill-talent-fill); color: var(--pill-talent-ink); }
.tag { display: inline-block; font-size: 0.75rem; padding: 1px 8px; border-radius: 6px; background: var(--tint); color: var(--ink-300); margin: 2px 4px 2px 0; white-space: nowrap; }
.tag.good { background: var(--sage-wash); color: var(--sage-400); }
.tag.warn { background: var(--amber-wash); color: var(--amber-400); }
.tag.bad { background: var(--rose-wash); color: var(--rose-400); }
.tag.unknown { font-style: italic; color: var(--ink-600); background: transparent; border: 1px dashed var(--recess-edge); }

.browser { border-radius: 10px; overflow: hidden; border: 1px solid var(--recess-edge); background: var(--recess); min-height: 120px; display: grid; place-items: center; }
.browser img { width: 100%; display: block; }
.browser p { padding: 30px; text-align: center; }
.activity { font: 400 0.8rem/1.6 var(--font-mono); color: var(--ink-400); max-height: 320px; overflow: auto; }
.activity li { padding: 2px 0; }
.footnote { font-size: 0.78rem; color: var(--ink-600); margin: 4px 2px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.toolbar-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar-right input[type="search"] { width: 260px; }
.segments { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--recess); border: 1px solid var(--recess-edge); flex-wrap: wrap; }
.segments button { border: 0; background: transparent; color: var(--ink-400); min-height: 30px; padding: 4px 12px; }
.segments button[aria-selected="true"] { background: var(--tint-strong); color: var(--ink-050); }
.segments .n { font: 400 0.72rem var(--font-mono); color: var(--ink-600); margin-left: 5px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.presets button { font-size: 0.8rem; min-height: 28px; padding: 3px 11px; border-radius: 999px; }
.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 4; display: grid; min-width: 210px; padding: 6px; border-radius: 10px; background: var(--surface-solid); border: 1px solid var(--recess-edge); box-shadow: var(--card-shadow); }
.menu-list button { border: 0; background: transparent; text-align: left; }
.menu-list button:hover { background: var(--tint); }

.people { display: grid; gap: 8px; }
.person {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; cursor: pointer;
  padding: 12px 16px; border-radius: 12px; border: 1px solid var(--hairline-neutral); background: var(--surface);
}
.person:hover { border-color: var(--violet-edge); }
.person.passed { opacity: 0.55; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 500 0.85rem var(--font-sans); color: var(--violet-300); background: color-mix(in srgb, var(--violet-600) 18%, var(--ink-800)); }
.person .name { font: 400 1.08rem var(--font-display); color: var(--ink-050); }
.person .headline { color: var(--ink-500); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .facts { margin-top: 4px; }
.person .side { text-align: right; display: grid; gap: 4px; justify-items: end; }
.score { font: 500 1.1rem var(--font-mono); color: var(--ink-050); }
.date { font: 400 0.72rem var(--font-mono); color: var(--ink-600); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.section-head p { margin: 6px 0 0; max-width: 680px; }
.new-program { display: flex; gap: 8px; }
.programs { display: grid; gap: 12px; }
.program-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.program-head .title { display: flex; align-items: center; gap: 10px; }
.program-head .title strong { font: 400 1.15rem var(--font-display); color: var(--ink-050); }
.program-meta { margin: 8px 0 0; color: var(--ink-500); font-size: 0.85rem; }
.program-form { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline-neutral); }
.program-form label { display: grid; gap: 5px; font-size: 0.8rem; color: var(--ink-400); }
.program-form .two { display: grid; grid-template-columns: 1fr 160px; gap: 10px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.85rem; color: var(--ink-400); }
.switch input { appearance: none; width: 36px; height: 20px; min-height: 0; padding: 0; border-radius: 99px; background: var(--tint-strong); position: relative; cursor: pointer; transition: background 0.15s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-300); transition: transform 0.15s; }
.switch input:checked { background: var(--violet-600); }
.switch input:checked::after { transform: translateX(16px); background: #fff; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }

.dropzone { display: grid; place-items: center; gap: 4px; padding: 34px; text-align: center; cursor: pointer; border-style: dashed; border-color: var(--violet-edge); }
.dropzone input { display: none; }
.dropzone.over { background: var(--violet-wash); }
.plain-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--hairline-neutral); font-size: 0.88rem; }

.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 9; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); z-index: 10; background: var(--surface-solid); border-left: 1px solid var(--hairline); box-shadow: -30px 0 80px -30px rgba(0, 0, 0, 0.6); overflow-y: auto; }
.drawer-inner { padding: 24px 26px 60px; display: grid; gap: 18px; }
.drawer-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.drawer h1 { font-size: 1.7rem; }
.drawer .links { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.88rem; margin-top: 6px; }
.decision { display: flex; gap: 6px; flex-wrap: wrap; }
.facts-grid { display: grid; grid-template-columns: max-content 1fr; gap: 0; border: 1px solid var(--hairline-neutral); border-radius: 12px; overflow: hidden; }
.facts-grid > div { padding: 9px 12px; border-top: 1px solid var(--hairline-neutral); }
.facts-grid > div:nth-child(-n+2) { border-top: 0; }
.facts-grid .k { color: var(--ink-500); font-size: 0.82rem; background: var(--recess); }
.fact-value { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.fact-value .v { color: var(--ink-050); }
.fact-actions { display: inline-flex; gap: 4px; }
.fact-actions button { min-height: 24px; padding: 1px 8px; font-size: 0.72rem; border-radius: 6px; }
.quote { margin: 6px 0 0; padding: 6px 10px; border-left: 2px solid var(--violet-edge); background: var(--recess); border-radius: 0 8px 8px 0; color: var(--ink-300); font-size: 0.82rem; white-space: pre-wrap; }
.finding { border: 1px solid var(--hairline-neutral); border-radius: 12px; padding: 12px; display: grid; gap: 6px; }
.finding.excluded { opacity: 0.6; }
.finding .head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.finding .head strong { color: var(--ink-050); font-weight: 500; }
.finding .meta { font-size: 0.76rem; color: var(--ink-600); }
.corroborate { display: grid; gap: 6px; }
.empty { padding: 40px; text-align: center; color: var(--ink-500); border: 1px dashed var(--recess-edge); border-radius: var(--radius); }
@media (max-width: 700px) {
  .bar { gap: 12px; flex-wrap: wrap; }
  .tabs { order: 3; flex-basis: 100%; overflow-x: auto; }
  .toolbar-right input[type="search"] { width: 100%; }
  .person { grid-template-columns: 36px minmax(0, 1fr); }
  .person .side { grid-column: 2; justify-items: start; text-align: left; }
  .program-form .two { grid-template-columns: 1fr; }
}

/* Person sections: Education, Current, Past experience, Reason for interest. */
.section-card { border: 1px solid var(--hairline-neutral); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.section-head-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.section-head-row h3 { display: flex; align-items: center; gap: 6px; }
.section-head-row button { min-height: 26px; padding: 2px 10px; font-size: 0.78rem; }
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.entries li { color: var(--ink-100); font-size: 0.92rem; }
.entries details { margin-top: 2px; }
.section-card textarea { margin-top: 4px; }

/* Home: each program lists its searches; the one Run today starts from is marked. */
.queries { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.queries li { font: 400 0.78rem var(--font-mono); color: var(--ink-300); background: var(--recess); border: 1px solid var(--recess-edge); border-radius: 7px; padding: 3px 8px; }
.queries li.next { border-color: var(--violet-edge); color: var(--violet-300); }
.run-progress { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-top: 10px; }
.run-progress .bar-track { height: 5px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.run-progress .bar-fill { height: 100%; background: linear-gradient(90deg, var(--violet-600), var(--violet-400)); border-radius: 99px; transition: width 0.3s; }
.run-progress .state { font: 400 0.75rem var(--font-mono); color: var(--violet-400); }
.run-progress .state.blocked { color: var(--amber-400); }
.new-program { justify-content: flex-end; }
.drawer h1 a { color: var(--ink-050); }
.drawer h1 a:hover { color: var(--violet-300); }

/* Exclusions: CSV format documentation. */
.doc { display: grid; gap: 10px; font-size: 0.88rem; color: var(--ink-300); }
.doc p { margin: 0; }
.doc ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
table.schema { border-collapse: collapse; font-size: 0.8rem; width: 100%; border: 1px solid var(--hairline-neutral); border-radius: 8px; overflow: hidden; }
table.schema th, table.schema td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--hairline-neutral); }
table.schema th { background: var(--recess); color: var(--ink-400); font-weight: 500; }
.new-program.menu { display: flex; justify-content: flex-end; }
.new-program .menu-list { top: auto; bottom: calc(100% + 6px); min-width: 180px; }
.new-program .menu-list button { padding: 8px 10px; }
.flags { margin: 6px 0; padding-left: 18px; }

/* Talent program: rules behind its reasons for interest. */
fieldset.rules { border: 1px solid var(--hairline-neutral); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; margin: 0; }
fieldset.rules legend { padding: 0 6px; color: var(--ink-300); font-size: 0.85rem; }
fieldset.rules p { margin: 0; }
.program-form label.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.program-form label.inline input { width: 90px; }
.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 700px) { .two-lists { grid-template-columns: 1fr; } }

/* X: search chips, the source label on run progress, and the X tag on people. */
.queries.x li { border-style: dashed; }
.x-mark { font-weight: 600; color: var(--ink-050); }
.run-progress { grid-template-columns: 64px 1fr auto; }
.run-progress .source { font: 500 0.72rem var(--font-mono); color: var(--ink-400); }
.tag.x-tag { font-weight: 600; background: var(--ink-800); color: var(--ink-050); }
.program-form fieldset legend label.switch { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-100); font-size: 0.88rem; }
.program-form .two { align-items: start; }

/* Account menu and the Google sign-in page. */
.account { display: flex; align-items: center; gap: 10px; }
.account span { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.signin main { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.signin-card { width: min(400px, 100%); display: grid; justify-items: center; gap: 14px; padding: 36px 28px; text-align: center; }
.signin-card h1 { font-size: 1.7rem; }
.signin-card p { margin: 0; }
.signin-card .notice { width: 100%; text-align: left; }
.google-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 44px;
  margin-top: 4px; padding: 0 16px; border-radius: 10px; background: #fff; color: #1f1f1f !important;
  border: 1px solid #dadce0; font-weight: 600; text-decoration: none !important;
}
.google-button:hover { background: #f4f6fb; }
@media (max-width: 700px) { .account span { display: none; } }

/* Campaigns: source tag, per-search yield and retire button, open slots, retired searches. */
.source-tag { font: 500 0.7rem var(--font-mono); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--recess-edge); color: var(--ink-300); }
.source-tag.x { border-style: dashed; color: var(--ink-100); }
.queries li { display: inline-flex; align-items: center; gap: 6px; }
.queries .yield { font-size: 0.7rem; color: var(--sage-400); }
.queries li.stalled { border-color: var(--amber-edge); color: var(--amber-400); }
.stalled-note { margin: 8px 0 0; color: var(--amber-400); }
.program-form .two-small { display: grid; grid-template-columns: 1fr 120px 130px; gap: 10px; }
@media (max-width: 700px) { .program-form .two-small { grid-template-columns: 1fr 1fr; } }

/* Campaign sections, each holding its agents. */
#programs { display: grid; gap: 26px; }
.campaign { display: grid; gap: 10px; }
.campaign-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.campaign-head .title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.campaign-head h2 { font: 400 1.35rem var(--font-display); margin: 0; }
.campaign .agents { display: grid; gap: 10px; }
.campaign-form { margin-top: 0; border-top: 0; padding-top: 18px; }
.campaign-form label > span { font-size: 0.78rem; }
.empty-agents { margin: 0; padding: 14px 18px; border: 1px dashed var(--hairline-neutral); border-radius: var(--radius); }

/* Exclude by link. */
.exclude-links { display: grid; gap: 10px; }
.exclude-links label { display: grid; gap: 4px; }
.exclude-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.exclude-row button { min-height: 44px; padding: 0 22px; }
.exclude-links.over { border-color: var(--violet-edge); background: var(--violet-wash); }
@media (max-width: 700px) { .exclude-row { grid-template-columns: 1fr; } }
#exclude-result { margin: 0; color: var(--sage-400); }
#exclude-result.warn { color: var(--amber-400); }
.runner-note { margin: 8px 0 0; }
.run-progress .state.needs_runner { color: var(--ink-500); }
