:root {
  --ink: #0f172a;
  --muted: #667085;
  --bg: #f7f3ec;
  --panel: #fffaf2;
  --line: #e6dccd;
  --purple: #6d28d9;
  --purple-dark: #4c1d95;
  --teal: #0f766e;
  --amber: #b45309;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(109, 40, 217, 0.13), transparent 25%),
    radial-gradient(circle at 80% 0%, rgba(20, 184, 166, 0.12), transparent 26%),
    var(--bg);
}
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 56px; }
.hero { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: stretch; margin-bottom: 24px; }
.eyebrow, .kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; color: var(--purple); margin: 0 0 10px; }
h1 { font-size: clamp(42px, 7vw, 78px); line-height: .92; letter-spacing: -0.07em; margin: 0; max-width: 870px; }
h2 { font-size: 26px; line-height: 1; letter-spacing: -0.04em; margin: 0; }
.hero-copy { font-size: 19px; max-width: 720px; color: var(--muted); line-height: 1.55; margin: 18px 0 0; }
.hero-card, .panel { background: rgba(255, 250, 242, 0.88); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.hero-card { padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 235px; background: linear-gradient(145deg, #0f172a, #2e1065); color: white; }
.hero-card span { color: #c4b5fd; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; }
.hero-card strong { font-size: 34px; line-height: 1; letter-spacing: -0.05em; margin: 8px 0; }
.hero-card p { color: #ddd6fe; line-height: 1.45; margin: 0; }
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: 0.85fr 1.15fr; }
.lower { margin-top: 20px; grid-template-columns: 1.1fr 0.9fr !important; }
.panel { padding: 24px; }
.panel-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 18px; }
label { display: block; font-weight: 800; margin-bottom: 9px; }
textarea, input, select {
  width: 100%; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink);
  padding: 16px; font: inherit; line-height: 1.4; outline: none;
}
textarea:focus, input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(109, 40, 217, .12); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
button { font: inherit; cursor: pointer; }
.primary, .ghost, .danger, .approve {
  border: 0; border-radius: 999px; padding: 12px 17px; font-weight: 850;
}
.primary { background: var(--purple); color: #fff; }
.approve { background: var(--teal); color: #fff; }
.ghost { background: #efe7dc; color: var(--ink); }
.danger { background: #fee2e2; color: #991b1b; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ideas-list { display: grid; gap: 10px; }
.idea-card {
  width: 100%; border: 1px solid var(--line); background: white; border-radius: 22px; padding: 16px; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: transform .12s, border-color .12s;
}
.idea-card:hover, .idea-card.active { transform: translateY(-1px); border-color: rgba(109,40,217,.6); }
.idea-card strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.idea-card span.idea-tagline { display: block; color: var(--muted); margin-top: 3px; }
.score-pill { border-radius: 999px; background: #ede9fe; color: var(--purple-dark); font-weight: 900; min-width: 58px; text-align: center; padding: 9px 12px; }
.score-pill.hot { background: #d1fae5; color: #065f46; }
.score-pill.mid { background: #fef3c7; color: #92400e; }
.score-pill.low { background: #fee2e2; color: #991b1b; }
.detail-empty, .manifest-empty { min-height: 280px; display: grid; place-items: center; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 22px; padding: 20px; }
.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.score-box { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.score-box span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.score-box strong { font-size: 24px; }
.copy-block { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 15px; margin: 12px 0; }
.copy-block h3 { margin: 0 0 8px; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--purple); }
.copy-block p, .copy-block li { color: #344054; line-height: 1.5; }
ul { margin: 10px 0 0 20px; padding: 0; }
pre { background: #0b1020; color: #e5e7eb; padding: 16px; border-radius: 18px; max-height: 420px; overflow: auto; font-size: 12px; line-height: 1.55; }
.checklist { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.checklist li { margin-bottom: 8px; }
@media (max-width: 900px) {
  .hero, .grid.two, .lower { grid-template-columns: 1fr !important; }
  .hero-card { min-height: 170px; }
  .panel-head { display: block; }
  .score-grid { grid-template-columns: 1fr; }
}
.tabs { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 20px; }
.tab { border:1px solid var(--line); background:rgba(255,250,242,.82); color:var(--ink); padding:10px 16px; border-radius:999px; font-weight:850; }
.tab.active { background:var(--ink); color:white; border-color:var(--ink); }
.tab-panel { display:none; }
.tab-panel.active { display:block; }
.lower-panel { margin-top:20px; }
.pipeline-actions { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:8px; }
.agents-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:20px; }
.agent-card { border:1px solid var(--line); background:white; border-radius:20px; padding:16px; text-align:left; min-height:150px; display:flex; flex-direction:column; gap:8px; }
.agent-card:hover { border-color:rgba(109,40,217,.6); }
.agent-card .agent-top { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.agent-card strong { font-size:18px; }
.agent-card p { color:var(--muted); margin:0; line-height:1.4; font-size:13px; }
.status-dot { font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.06em; padding:6px 8px; border-radius:999px; background:#f1f5f9; color:#475569; }
.status-dot.complete { background:#d1fae5; color:#065f46; }
.status-dot.running { background:#ede9fe; color:#5b21b6; }
.agent-actions { margin-top:auto; display:flex; gap:8px; }
.agent-actions button { border:0; border-radius:999px; padding:8px 10px; font-weight:800; background:#efe7dc; }
.output-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:14px; }
.metric { background:white; border:1px solid var(--line); border-radius:16px; padding:12px; }
.metric span { color:var(--muted); display:block; font-size:11px; text-transform:uppercase; letter-spacing:.08em; font-weight:800; }
.metric strong { font-size:21px; }
.cost-line { display:flex; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); padding:10px 0; }
.cost-line:last-child { border-bottom:0; }
@media (max-width:900px){ .agents-grid,.output-grid{grid-template-columns:1fr;} }
