* { box-sizing: border-box; }
:root {
  --lg-ink: #e8f4ff;
  --lg-muted: #8aa0b8;
  --lg-night: #071019;
  --lg-panel: rgba(12, 22, 34, 0.88);
  --lg-accent: #66e3ff;
  --lg-ok: #6ee7b7;
}
body {
  font-family: "Segoe UI", "IBM Plex Sans", system-ui, sans-serif;
  margin: 0;
  padding: 1rem;
  color: #0f1b2a;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(102, 227, 255, 0.12), transparent 55%),
    linear-gradient(180deg, #0b1520 0%, #122033 28%, #e8eef5 28%, #f0f3f7 100%);
  min-height: 100vh;
}
.container { max-width: 920px; margin: 0 auto; }
header { margin-bottom: 1.25rem; color: var(--lg-ink); }
header h1 { margin: 0 0 0.25rem; font-size: 1.65rem; letter-spacing: -0.02em; }
header p { margin: 0; color: var(--lg-muted); font-size: 0.9rem; max-width: 42rem; }
code { background: #eee; padding: 0.1rem 0.3rem; border-radius: 3px; font-size: 0.85em; }

.form-section, .list-section { background: #fff; padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.form-section h2, .list-section h2 { margin: 0 0 0.75rem; font-size: 1.1rem; }

.funnel-section {
  background: var(--lg-panel);
  color: var(--lg-ink);
  padding: 1rem 1.25rem 1.25rem;
  border-radius: 14px;
  margin-bottom: 1rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(102, 227, 255, 0.22);
  border-left: 4px solid #166534;
}
.funnel-section h2 { margin: 0 0 0.35rem; font-size: 1.15rem; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; color: #e9f7ff; }
.funnel-section .ingest-hint { color: #a8bdd4; }
.funnel-clock { font-size: 0.75rem; font-weight: 500; color: var(--lg-ok); letter-spacing: 0.02em; }
.funnel-pot { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 0.5rem; margin-top: 0.75rem; }
.funnel-cell { background: rgba(240, 253, 244, 0.94); border: 1px solid #dcfce7; padding: 0.5rem 0.6rem; border-radius: 6px; color: #14532d; }
.funnel-cell .n { display: block; font-size: 1.35rem; font-weight: 650; color: #14532d; line-height: 1.1; }
.funnel-cell .l { display: block; font-size: 0.72rem; color: #3f6212; margin-top: 0.15rem; text-transform: uppercase; letter-spacing: 0.03em; }
.funnel-cell.warn { background: #fff7ed; border-color: #ffedd5; }
.funnel-cell.warn .n { color: #9a3412; }
.funnel-cell.warn .l { color: #c2410c; }
.funnel-cell.ok { background: #ecfdf5; border-color: #a7f3d0; }
.funnel-next { margin: 0.75rem 0 0; font-size: 0.9rem; color: #d7e7f8; }
.funnel-next strong { font-weight: 600; color: #fff; }
.funnel-price { margin: 0.5rem 0 0; font-size: 0.85rem; color: #b6c9de; }

/* --- Stage visual2 (wizard parity) --- */
.funnel-wizard-rail {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(200px, 0.85fr);
  gap: 0.85rem;
  align-items: stretch;
  margin: 0.85rem 0 0.35rem;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(102, 227, 255, 0.2);
  background: transparent;
  color: var(--lg-ink);
  overflow: hidden;
}
.funnel-wizard-rail--stage { min-height: 360px; }
.funnel-wizard-stage {
  position: relative;
  min-height: 360px;
  border-radius: 14px;
  overflow: hidden;
  background: #071019;
  isolation: isolate;
}
.funnel-wizard-stage--bg,
.funnel-wizard-stage--photo {
  background-color: #071019;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 40%;
  min-height: 360px;
}
.funnel-scene-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s ease, transform 8s ease;
  filter: saturate(1.05) contrast(1.04);
  z-index: 0;
  pointer-events: none;
}
.funnel-scene-bg-image.is-active { opacity: 0.94; }
.funnel-scene-bg-image.loaded { transform: scale(1); }
.funnel-wizard-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,16,25,0.2) 0%, transparent 30%, transparent 70%, rgba(7,16,25,0.45) 100%),
    linear-gradient(180deg, rgba(7,16,25,0.2) 0%, transparent 40%, rgba(7,16,25,0.55) 100%);
}
.funnel-parallax-far {
  position: absolute;
  inset: -8%;
  z-index: 1;
  opacity: 0.45;
  mix-blend-mode: screen;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease-out;
  pointer-events: none;
}
.funnel-wizard-stage[data-stage='light'] .funnel-parallax-far { opacity: 0.28; mix-blend-mode: soft-light; }
.funnel-parallax-mid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transition: transform 0.35s ease-out;
  background: radial-gradient(ellipse 45% 35% at 48% 58%, rgba(102, 227, 255, 0.12), transparent 70%);
}
.funnel-wizard-stage[data-stage='alert'] .funnel-parallax-mid {
  background: radial-gradient(ellipse 50% 40% at 50% 45%, rgba(255,107,122,0.2), transparent 70%);
}
.funnel-wizard-stage--transparent {
  background:
    radial-gradient(circle at 50% 88%, rgba(22, 101, 52, 0.08), transparent 55%),
    transparent;
}
.funnel-wizard-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(78% );
  transform: translateX(-50%) translateY(4px);
  max-width: min(280px, 86%);
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  background: rgba(7, 16, 25, 0.92);
  color: #e8f4ff;
  font-size: 0.74rem;
  line-height: 1.35;
  border: 1px solid rgba(102, 227, 255, 0.28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.funnel-wizard-bubble.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.funnel-wizard-figure {
  position: absolute;
  left: 50%;
  bottom: 2%;
  z-index: 4;
  width: min(340px, 78%);
  height: min(400px, 94%);
  transform: translateX(calc(-50% + var(--parallax-x, 0px))) translateY(var(--parallax-y, 0px));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent !important;
  cursor: pointer;
  transition: transform 0.22s ease;
}
.funnel-wizard-figure.guardian-hero {
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.55));
}
/* Soft dark silhouette behind gems so robe reads even if a frame is sparse */
.funnel-wizard-underlay {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 42%;
  height: 58%;
  transform: translateX(-50%);
  border-radius: 42% 42% 38% 38%;
  background: radial-gradient(ellipse at 50% 40%, rgba(12, 22, 40, 0.55), rgba(8, 14, 28, 0.22) 70%, transparent 85%);
  pointer-events: none;
  z-index: 0;
  filter: blur(6px);
}
.funnel-wizard-stage[data-stage='alert'] .funnel-wizard-underlay {
  background: radial-gradient(ellipse at 50% 40%, rgba(18, 28, 48, 0.72), rgba(12, 18, 32, 0.35) 70%, transparent 85%);
  width: 48%;
  height: 62%;
}
.funnel-wizard-img {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
  background: transparent !important;
  image-rendering: auto;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.18s ease, filter 0.25s ease;
  pointer-events: none;
}
.funnel-wizard-img.is-front,
.funnel-wizard-img.loaded {
  opacity: 1;
}
/* Filled pack frames + hero: true alpha, NO screen/lighten (hollow on Alert). */
.funnel-wizard-img.pack-sprite,
.funnel-wizard-img.funnel-wizard-img--solid,
.funnel-wizard-img.hero-art {
  mix-blend-mode: normal !important;
  filter: contrast(1.04) saturate(1.08) drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}
.funnel-wizard-img.funnel-wizard-img--blend {
  /* Legacy class kept for cache; force solid compositing */
  mix-blend-mode: normal !important;
}
.funnel-wizard-stage[data-stage='light'] .funnel-wizard-img.pack-sprite,
.funnel-wizard-stage[data-stage='light'] .funnel-wizard-img.funnel-wizard-img--solid,
.funnel-wizard-stage[data-stage='light'] .funnel-wizard-img.hero-art,
.funnel-wizard-stage[data-stage='alert'] .funnel-wizard-img.pack-sprite,
.funnel-wizard-stage[data-stage='alert'] .funnel-wizard-img.funnel-wizard-img--solid,
.funnel-wizard-stage[data-stage='alert'] .funnel-wizard-img.hero-art {
  mix-blend-mode: normal !important;
  filter: contrast(1.06) saturate(1.06) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.4));
}
.funnel-wizard-figure.wiz-hopping {
  animation: funnel-celebrate 0.7s ease-in-out 1 !important;
}
.funnel-wizard-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(165deg, rgba(14, 28, 44, 0.95), rgba(8, 16, 26, 0.98));
  border-left: 1px solid rgba(102, 227, 255, 0.15);
}
.funnel-wizard-meta .wiz-peer {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--lg-accent);
  margin-left: 0;
}
.funnel-wizard-figure[data-state="idle"] { animation: funnel-breathe 3.2s ease-in-out infinite; }
.funnel-wizard-figure[data-state="listening"] { animation: funnel-breathe 2.4s ease-in-out infinite; }
.funnel-wizard-figure[data-state="thinking"] { animation: funnel-think 1.6s ease-in-out infinite; }
.funnel-wizard-figure[data-state="working"] { animation: funnel-work 0.9s ease-in-out infinite; }
.funnel-wizard-figure[data-state="alert"] { outline: 2px solid #ffb020; animation: funnel-alert 1.1s ease-in-out infinite; }
.funnel-wizard-figure[data-state="celebrating"] { animation: funnel-celebrate 0.75s ease-in-out infinite; }
.funnel-wizard-figure[data-state="walk"] { animation: funnel-walk 0.7s ease-in-out infinite; }
.funnel-wizard-figure[data-state="hop"] { animation: funnel-celebrate 0.7s ease-in-out infinite; }
.funnel-wizard-figure[data-state="lean"] { animation: funnel-breathe 2s ease-in-out infinite; }
.funnel-wizard-meta strong { display: block; font-size: 1.05rem; color: #f2f8ff; }
.funnel-wizard-meta small { display: block; margin-top: 0.15rem; color: var(--lg-muted); font-size: 0.75rem; line-height: 1.4; }

.funnel-intent-suggestions,
.bridge-intent-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
  width: 100%;
}
.bridge-intent-chip {
  appearance: none;
  border: 1px solid rgba(102, 227, 255, 0.35);
  border-radius: 999px;
  background: rgba(102, 227, 255, 0.1);
  color: #d7f7ff;
  font: 600 0.78rem/1.2 inherit;
  padding: 0.45rem 0.75rem;
  min-height: 40px;
  max-width: 100%;
  text-align: left;
  cursor: pointer;
}
.bridge-intent-chip:hover,
.bridge-intent-chip:focus-visible {
  background: rgba(102, 227, 255, 0.22);
  border-color: rgba(102, 227, 255, 0.55);
  outline: none;
}
.bridge-intent-chip--primary {
  border-color: rgba(102, 227, 255, 0.55);
  background: rgba(102, 227, 255, 0.18);
}
.funnel-intent-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
  align-items: stretch;
}
.funnel-intent-row input {
  flex: 1 1 140px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(102, 227, 255, 0.28);
  background: rgba(7, 16, 25, 0.75);
  color: #e9f7ff;
  padding: 0.55rem 0.75rem;
  font: 500 0.88rem/1.2 inherit;
}
.funnel-intent-row input::placeholder { color: #7a90a8; }
.funnel-intent-btn,
.funnel-intent-row > button {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(102, 227, 255, 0.4);
  background: rgba(102, 227, 255, 0.16);
  color: #e9f7ff;
  font: 650 0.85rem/1 system-ui, sans-serif;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
}
.funnel-intent-btn:hover { background: rgba(102, 227, 255, 0.28); }

.stage-bg-switcher,
.funnel-stage-bg-switcher {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(102, 227, 255, 0.28);
  background: rgba(7, 16, 25, 0.72);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}
.stage-bg-switcher .stage-bg-hint,
.stage-bg-switcher .stage-bg-label {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lg-muted);
  padding: 0 0.2rem;
}
.stage-bg-switcher button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #d7e7f8;
  font: 650 0.7rem/1 system-ui, sans-serif;
  padding: 0.32rem 0.55rem;
  cursor: pointer;
}
.stage-bg-switcher button[aria-pressed='true'] {
  background: rgba(102, 227, 255, 0.22);
  border-color: rgba(102, 227, 255, 0.45);
  color: #e9f7ff;
}

.godmode-hidden-chrome,
.wizard-session-dock.godmode-hidden-chrome,
.wizard-session-badge.godmode-hidden-chrome,
.wizard-session-hotspots.godmode-hidden-chrome {
  display: none !important;
}

@keyframes funnel-breathe {
  50% { transform: translateX(calc(-50% + var(--parallax-x, 0px))) translateY(calc(3px + var(--parallax-y, 0px))); }
}
@keyframes funnel-think {
  50% { transform: translateX(calc(-50% + var(--parallax-x, 0px))) translateY(calc(2px + var(--parallax-y, 0px))) scale(1.02); }
}
@keyframes funnel-work {
  50% { transform: translateX(calc(-50% + 3px + var(--parallax-x, 0px))) translateY(var(--parallax-y, 0px)); }
}
@keyframes funnel-walk {
  0%, 100% { transform: translateX(calc(-50% - 6px + var(--parallax-x, 0px))) translateY(var(--parallax-y, 0px)); }
  50% { transform: translateX(calc(-50% + 6px + var(--parallax-x, 0px))) translateY(calc(-2px + var(--parallax-y, 0px))); }
}
@keyframes funnel-alert {
  0%, 100% { outline-color: #ffb020; transform: translateX(calc(-50% + var(--parallax-x, 0px))) translateY(var(--parallax-y, 0px)) scale(1); }
  50% { outline-color: rgba(255, 176, 32, 0.35); transform: translateX(calc(-50% + var(--parallax-x, 0px))) translateY(calc(-3px + var(--parallax-y, 0px))) scale(1.03); }
}
@keyframes funnel-celebrate {
  50% { transform: translateX(calc(-50% + var(--parallax-x, 0px))) translateY(calc(-6px + var(--parallax-y, 0px))) scale(1.04); }
}
@media (max-width: 720px) {
  .funnel-wizard-rail {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .funnel-wizard-stage--bg,
  .funnel-wizard-stage--photo,
  .funnel-wizard-rail--stage {
    min-height: 260px;
  }
  .funnel-wizard-figure {
    width: min(220px, 70%);
    height: min(260px, 86%);
    min-width: 48px;
  }
  .funnel-wizard-bubble {
    max-width: min(260px, 88vw);
    font-size: 0.7rem;
    bottom: 82%;
  }
  .funnel-wizard-meta {
    border-left: 0;
    border-top: 1px solid rgba(102, 227, 255, 0.15);
  }
  .funnel-wizard-meta small { font-size: 0.7rem; }
  .funnel-pot {
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  }
  .stage-bg-switcher { top: 0.5rem; left: 0.5rem; max-width: calc(100% - 1rem); }
}
@media (max-width: 420px) {
  .container { padding: 0; }
  .funnel-section { padding: 0.85rem 0.9rem; }
  .funnel-wizard-stage--bg,
  .funnel-wizard-stage--photo { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .funnel-wizard-figure { animation: none !important; }
  .funnel-wizard-figure.wiz-hopping { animation: none !important; }
  .funnel-scene-bg-image { transition: opacity 0.2s ease; }
  .funnel-parallax-far, .funnel-parallax-mid { transition: none; }
}

.wizard-brains-panel {
  margin: 0.65rem 0 0.25rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(102, 227, 255, 0.22);
  background: rgba(10, 20, 32, 0.92);
  color: var(--lg-ink);
}
.wizard-brains-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.wizard-brains-head strong { color: #e9f7ff; }
.wizard-brains-strip {
  font: 0.72rem/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #8aa0b8;
}
.wizard-brains-strip[data-ok="1"] { color: #6ee7b7; }
.wizard-brains-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.5rem; }
.wiz-btn {
  appearance: none;
  border: 1px solid rgba(102, 227, 255, 0.35);
  background: rgba(102, 227, 255, 0.12);
  color: #e9f7ff;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font: 600 0.85rem/1.2 system-ui, sans-serif;
  min-height: 44px;
  cursor: pointer;
}
.wiz-btn--apply { background: rgba(110, 231, 183, 0.16); border-color: #6ee7b7; color: #d1fae5; }
.wizard-conjure-list { font-size: 0.82rem; color: #d7e7f8; }
.wiz-sug-list { list-style: none; margin: 0; padding: 0; }
.wiz-sug {
  display: grid;
  gap: 0.15rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}
.wiz-sug code { font-size: 0.78rem; color: #5eead4; }
.wiz-sug--high { border-left: 3px solid #dc2626; padding-left: 0.45rem; }
.wiz-sug--medium { border-left: 3px solid #d97706; padding-left: 0.45rem; }
.wiz-sug--low { border-left: 3px solid #64748b; padding-left: 0.45rem; }
.wiz-ai-hint {
  white-space: pre-wrap;
  background: #0b1724;
  color: #dbeafe;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  margin: 0.5rem 0 0;
}
.wiz-honesty, .wiz-empty { color: #6b7280; font-size: 0.78rem; margin: 0.4rem 0 0; }
@media (max-width: 720px) {
  .wizard-brains-actions { flex-direction: column; }
  .wiz-btn { width: 100%; }
}

.registry-section { background: #fff; padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); border-left: 4px solid #7c2d12; }
.registry-section h2 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.registry-list { margin: 0.5rem 0 0.75rem; padding-left: 1.25rem; font-size: 0.85rem; color: #374151; }
.registry-list li { margin-bottom: 0.35rem; }
.registry-workflow { border-top: 1px solid #eee; padding-top: 0.75rem; }
.registry-contact { padding: 0.65rem 0; border-bottom: 1px solid #eee; font-size: 0.88rem; }
.registry-contact:last-child { border-bottom: none; }
.registry-contact .email { font-weight: 600; }
.registry-contact .locs { color: #6b7280; font-size: 0.8rem; margin-top: 0.2rem; }
.registry-contact.sample { opacity: 0.65; }
.registry-contact .step { display: inline-block; background: #fff7ed; color: #9a3412; font-size: 0.72rem; padding: 0.1rem 0.35rem; border-radius: 3px; margin-left: 0.35rem; }

.operator-section { background: #fff; padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); border-left: 4px solid #1d4ed8; }
.operator-section h2 { margin: 0 0 0.35rem; font-size: 1.1rem; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.operator-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.75rem 0 0; }
.operator-actions a { font-size: 0.85rem; color: #1d4ed8; }
.operator-actions button:disabled { opacity: 0.45; cursor: not-allowed; }
.operator-subhead { margin: 1rem 0 0.35rem; font-size: 0.95rem; font-weight: 600; color: #1e3a8a; }
.deliver-block { margin: 0.5rem 0 0; font-size: 0.9rem; color: #9a3412; }
.deliver-block.ok { color: #166534; }
.founder-secret-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0.75rem 0 0.25rem;
  font-size: 0.85rem;
  color: #64748b;
}
.founder-secret-row input {
  flex: 1 1 14rem;
  min-width: 12rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: inherit;
}
#op-founder-deliver { border-color: #0f766e; }
.funnel-cell.bad { background: #fef2f2; border-color: #fecaca; }
.funnel-cell.bad .n { color: #991b1b; }
.funnel-cell.bad .l { color: #b91c1c; }
label { display: block; margin-bottom: 0.5rem; }
label input { margin-left: 0.5rem; padding: 0.35rem 0.5rem; width: 100%; max-width: 280px; }
button { padding: 0.4rem 0.75rem; cursor: pointer; background: #333; color: #fff; border: none; border-radius: 4px; }
.lead-remove { margin-left: 0.5rem; background: #6b7280; font-size: 0.8rem; }
button:hover { background: #555; }
#refresh { margin-bottom: 0.75rem; }
#calc-readout { margin: 0.75rem 0 0; color: #333; font-size: 0.9rem; }
.message { margin-top: 0.5rem; font-size: 0.9rem; }
.message.success { color: #0a0; }
.message.error { color: #c00; }

#lead-list { font-size: 0.9rem; }
.lead-item { padding: 0.75rem 0; border-bottom: 1px solid #eee; }
.lead-summary { margin: 0 0 0.2rem; }
.lead-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.45rem; }
.lead-actions .lead-remove { margin-left: 0; }
.lead-item:last-child { border-bottom: none; }
.lead-item .email { font-weight: 500; }
.lead-item .meta { color: #666; font-size: 0.85em; }
.lead-item .score { font-size: 0.8em; color: #0a0; margin-left: 0.25rem; }
.lead-item .tier { font-size: 0.75em; padding: 0.1rem 0.35rem; border-radius: 4px; margin-left: 0.25rem; }
.lead-item .tier-hot { background: #fee; color: #c00; }
.lead-item .tier-warm { background: #ffeaa7; color: #666; }
.lead-item .tier-cold { background: #e8f4f8; color: #333; }

.ingest-section { background: #fff; padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.ingest-section h2 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.ingest-hint { margin: 0 0 0.75rem; color: #555; font-size: 0.85rem; }
.ingest-section textarea { width: 100%; padding: 0.5rem; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; font-size: 0.9rem; resize: vertical; min-height: 60px; }
.ingest-actions { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.5rem; flex-wrap: wrap; }
.ingest-actions input { padding: 0.35rem 0.5rem; border: 1px solid #ddd; border-radius: 4px; font-size: 0.9rem; min-width: 200px; }
.ingest-actions button { padding: 0.4rem 0.75rem; cursor: pointer; background: #4b5563; color: #fff; border: none; border-radius: 4px; font-size: 0.85rem; }
.ingest-actions button:hover { background: #111827; }
.ingest-status { margin-top: 0.4rem; font-size: 0.85rem; color: #555; }
.ingest-status.error { color: #c00; }
.ingest-status.success { color: #0a0; }

.ai-section { background: #fff; padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); border-left: 4px solid #0ea5e9; }
.ai-section h2 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.ai-hint { margin: 0 0 0.75rem; color: #555; font-size: 0.85rem; }
.ai-row { display: flex; gap: 0.5rem; align-items: flex-start; margin-bottom: 0.5rem; }
.ai-row textarea { flex: 1; padding: 0.5rem; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; font-size: 0.9rem; resize: vertical; min-height: 52px; }
.ai-row button { padding: 0.5rem 1rem; cursor: pointer; background: #0ea5e9; color: #fff; border: none; border-radius: 4px; white-space: nowrap; }
.ai-row button:hover { background: #0284c7; }
.osint-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #eee; }
.osint-label { font-size: 0.85rem; color: #555; }
.osint-row select { padding: 0.35rem 0.5rem; border: 1px solid #ddd; border-radius: 4px; font-size: 0.9rem; min-width: 180px; }
.osint-row button { padding: 0.4rem 0.75rem; cursor: pointer; background: #059669; color: #fff; border: none; border-radius: 4px; font-size: 0.85rem; }
.osint-row button:hover { background: #047857; }
.ai-status { font-size: 0.85rem; margin-top: 0.25rem; }
.ai-status.error { color: #c00; }
.ai-response { margin-top: 0.75rem; padding: 0.75rem; background: #f8fafc; border-radius: 6px; font-size: 0.9rem; line-height: 1.45; }
.ai-response .ai-text { margin: 0; }
#feed-matrix { overflow-x: auto; margin-top: 0.75rem; }
#feed-matrix table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
#feed-matrix th, #feed-matrix td { text-align: left; padding: 0.35rem 0.4rem; border-bottom: 1px solid #eee; }
#feed-matrix caption { text-align: left; font-weight: 600; margin-bottom: 0.35rem; }


.founder-funds {
  margin: 0.75rem 0 0.25rem;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--line, #e5e7eb);
}
.founder-funds-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0.5rem 0;
}
.founder-funds-row input {
  flex: 1 1 10rem;
  min-width: 8rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 4px;
  background: var(--surface, #fff);
  color: inherit;
}
.fund-list { margin-top: 0.5rem; }
.fund-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line, #e5e7eb);
  font-size: 0.9rem;
}
.fund-planes {
  margin: 0.35rem 0 0.5rem;
  padding: 0.4rem 0;
}
.fund-planes strong { font-weight: 600; }
