:root {
  --bg: #05080f;
  --panel: #0b111b;
  --panel-2: #101722;
  --line: rgba(159, 177, 206, .16);
  --text: #f4f7fb;
  --muted: #9ba7b8;
  --green: #22f06b;
  --green-2: #48ff7b;
  --blue: #43a6ff;
  --cyan: #32e6e2;
  --pink: #ff4f7e;
  --violet: #9c5bff;
  --warn: #ffd229;
  --shadow: 0 24px 80px rgba(0, 0, 0, .35);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 75% 0%, rgba(34, 240, 107, .11), transparent 28rem),
    linear-gradient(180deg, #060a12 0%, var(--bg) 55%, #070a0f 100%);
  color: var(--text);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
canvas, table, img, svg { max-width: 100%; }

.site-shell { width: min(1480px, calc(100% - 48px)); margin: 0 auto; }
.topbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.topbar > *, .workspace-top > *, .section-heading > *, .result-layout > *, .lab-grid > *, .studio-grid > * { min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 800; }
.brand-mark {
  width: 30px;
  height: 30px;
  border: 4px solid var(--green);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-shadow: 0 0 22px rgba(34, 240, 107, .32);
  flex: none;
}
.brand-mark:after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2px solid var(--green);
}
.brand-mark.small { width: 32px; height: 32px; border-width: 4px; }
.nav-links { display: flex; gap: 28px; color: var(--muted); font-weight: 650; font-size: 14px; }
.nav-links a { padding: 30px 0 28px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links .active { color: var(--green-2); border-color: var(--green); }
.top-actions, .hero-actions, .toolbar-row, .upload-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.primary-btn, .ghost-btn, .tool-btn, .chip {
  min-height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 800;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
}
.primary-btn {
  border-color: rgba(34, 240, 107, .45);
  background: linear-gradient(135deg, var(--green), #45f16e);
  color: #041008;
  box-shadow: 0 0 30px rgba(34, 240, 107, .2);
}
.large { min-height: 54px; padding-inline: 28px; }
.full { width: 100%; }

.hero-section {
  min-height: calc(100vh - 170px);
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 28px;
  align-items: center;
  padding: 44px 0 24px;
}
.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .96;
  max-width: 780px;
}
.hero-copy h1 span {
  color: var(--green);
  text-shadow: 0 0 30px rgba(34, 240, 107, .28);
}
.hero-copy p { max-width: 580px; color: #c1cad8; font-size: 20px; line-height: 1.55; margin: 0 0 28px; }
.inline-predictor {
  width: min(620px, 100%);
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 28, 42, .82), rgba(8, 13, 21, .92));
}
.inline-predictor > label {
  color: var(--text);
  font-weight: 850;
  text-transform: uppercase;
}
.inline-predictor textarea {
  min-height: 108px;
  width: 100%;
  resize: vertical;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .22);
  padding: 14px;
}
.research-upload {
  display: grid;
  gap: 6px;
  color: var(--muted);
}
.research-upload label, .upload-chip {
  min-height: 42px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed rgba(34, 240, 107, .45);
  border-radius: var(--radius);
  background: rgba(34, 240, 107, .08);
  color: var(--green);
  padding: 0 14px;
  font-weight: 850;
  cursor: pointer;
}
.research-upload input, .upload-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.world-panel {
  position: relative;
  min-width: 0;
  max-width: 100%;
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--radius);
}
.world-panel canvas { width: 100%; height: 100%; min-height: 560px; display: block; }
.signal-card {
  position: absolute;
  min-width: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 24, 36, .82);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.signal-card small { display: block; color: var(--muted); margin-bottom: 8px; }
.signal-card strong { color: var(--green); font-size: 26px; }
.signal-one { top: 62px; left: 70px; }
.signal-two { top: 70px; right: 20px; }
.signal-three { bottom: 120px; left: 72px; }
.signal-four { right: 0; bottom: 114px; }

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.metric-strip div { display: grid; gap: 6px; }
.metric-strip strong { font-size: 26px; }
.metric-strip span { color: var(--muted); }
.ticker, .section-panel, .prediction-card, .pricing-grid article, .advantage-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 28, 42, .82), rgba(8, 13, 21, .92));
  box-shadow: var(--shadow);
}
.ticker {
  min-height: 56px;
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 0 22px;
  overflow-x: auto;
  white-space: nowrap;
}
.ticker span { color: #cbd3df; }
.ticker b, .green-text { color: var(--green); }
.pink, .pink-text { color: var(--pink) !important; }
.blue-text { color: var(--blue); }
.cyan-text { color: var(--cyan); }
.warn-text { color: var(--warn) !important; }
.live-dot, .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--green); }
.dot.blue { background: var(--blue); }
.dot.violet { background: var(--violet); }
.dot.pink { background: var(--pink); }
.section-panel { padding: 24px; margin-top: 18px; }
.section-panel, .hero-copy, .chat-main, .lab-main, .sidebar { min-width: 0; overflow-wrap: anywhere; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}
.section-heading.tight { margin-bottom: 14px; }
.section-heading h2, .section-panel h2 { margin: 0; font-size: 19px; text-transform: uppercase; }
.section-heading p { margin: 6px 0 0; color: var(--muted); }
.section-heading a { color: var(--green); font-weight: 800; }
.filter-row, .suggestion-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.chip { min-height: 34px; padding: 0 16px; color: var(--muted); }
.chip.active { color: var(--green); border-color: rgba(34, 240, 107, .45); background: rgba(34, 240, 107, .12); }
.prediction-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prediction-card { padding: 18px; min-height: 300px; display: flex; flex-direction: column; gap: 12px; }
.card-top, .prediction-card footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.tag, .verified, .pending {
  font-size: 11px;
  font-weight: 850;
  border-radius: 5px;
  padding: 6px 9px;
  text-transform: uppercase;
}
.tag.green, .verified { color: var(--green); background: rgba(34, 240, 107, .12); border: 1px solid rgba(34, 240, 107, .35); }
.tag.pink { color: var(--pink); background: rgba(255, 79, 126, .12); border: 1px solid rgba(255, 79, 126, .35); }
.tag.blue { color: var(--blue); background: rgba(67, 166, 255, .12); border: 1px solid rgba(67, 166, 255, .35); }
.tag.cyan { color: var(--cyan); background: rgba(50, 230, 226, .12); border: 1px solid rgba(50, 230, 226, .35); }
.pending { color: var(--warn); background: rgba(255, 210, 41, .12); }
.prediction-card h3 { margin: 4px 0 0; font-size: 19px; line-height: 1.35; }
.prediction-card p, .prediction-card footer, small { color: var(--muted); }
.chance { font-size: 38px; margin-top: auto; }
.chance span { display: block; font-size: 15px; color: currentColor; }
.sparkline { height: 54px; border-bottom: 1px solid rgba(255, 255, 255, .1); background-size: 100% 100%; background-repeat: no-repeat; }
.sparkline.green { background-image: linear-gradient(160deg, transparent 55%, rgba(34,240,107,.2)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 70'%3E%3Cpolyline points='0,52 16,32 32,45 48,22 64,35 80,30 96,19 112,24 128,18 144,26 160,12 176,17 192,8 208,13 224,6 240,10' fill='none' stroke='%2322f06b' stroke-width='3'/%3E%3C/svg%3E"); }
.sparkline.pink { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 70'%3E%3Cpolyline points='0,52 18,20 35,18 54,29 74,16 92,21 110,9 130,34 150,28 166,40 184,36 202,43 222,32 240,39' fill='none' stroke='%23ff4f7e' stroke-width='3'/%3E%3C/svg%3E"); }
.sparkline.blue { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 70'%3E%3Cpolyline points='0,35 20,18 38,43 60,48 82,39 103,51 125,42 145,50 167,36 188,25 210,20 240,22' fill='none' stroke='%2343a6ff' stroke-width='3'/%3E%3C/svg%3E"); }
.sparkline.cyan { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 70'%3E%3Cpolyline points='0,56 20,42 40,48 60,31 80,36 100,27 120,30 140,19 160,24 180,14 200,18 220,10 240,8' fill='none' stroke='%2332e6e2' stroke-width='3'/%3E%3C/svg%3E"); }

.workbench-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, .9fr); gap: 18px; }
.simulation-panel textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  color: var(--text);
  background: rgba(0, 0, 0, .18);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.suggestion-row button, .tool-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  border-radius: var(--radius);
  min-height: 38px;
  padding: 0 14px;
}
.toolbar-row { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; }
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 18px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; color: var(--muted); }
.steps li:before { counter-increment: step; content: counter(step); color: var(--green); font-weight: 900; }
.steps strong { color: var(--text); display: block; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 18px; }
.model-list, .activity-list, .accuracy-stats, .info-list { display: grid; gap: 10px; }
.model-list div, .activity-list div, .driver-panel div, .info-list span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}
.model-list b, .activity-list small, .driver-panel b { color: var(--green); }
.accuracy-card { display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 24px; }
.accuracy-ring, .probability-ring {
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: conic-gradient(var(--green) 0 76%, rgba(255,255,255,.08) 76% 100%);
  position: relative;
}
.accuracy-ring:after, .probability-ring:after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #0d141f;
}
.accuracy-ring span, .accuracy-ring small, .probability-ring span, .probability-ring small { position: relative; z-index: 1; }
.accuracy-ring span, .probability-ring span { font-size: 46px; font-weight: 850; }
.accuracy-ring small, .probability-ring small { display: block; width: 110px; color: var(--muted); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pricing-grid article { padding: 22px; position: relative; }
.pricing-grid h3 { margin: 0 0 10px; font-size: 21px; }
.pricing-grid strong { display: block; font-size: 30px; margin-bottom: 10px; }
.pricing-grid p { color: var(--muted); min-height: 46px; }
.pricing-grid .featured { border-color: rgba(34, 240, 107, .5); }
.pricing-grid .featured > span { position: absolute; top: -12px; right: 18px; padding: 6px 10px; border-radius: 5px; background: var(--green); color: #041008; font-size: 12px; font-weight: 850; }
.template-grid, .variable-grid, .studio-grid, .scenario-grid, .source-grid, .score-grid, .blueprint-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.template-grid article, .studio-card, .scenario-grid article, .source-grid article, .blueprint-steps article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
  padding: 18px;
}
.template-grid span {
  color: var(--green);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 12px;
}
.template-grid h3, .studio-card h3, .scenario-grid h3 { margin: 10px 0; }
.template-grid p, .scenario-grid p, .studio-card p { color: var(--muted); line-height: 1.5; }

.app-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
  transition: grid-template-columns .22s ease;
}
.decision-console {
  height: 100vh;
  overflow: hidden;
}
.app-body.sidebar-collapsed { grid-template-columns: 0 1fr; }
.sidebar {
  border-right: 1px solid var(--line);
  background: rgba(4, 8, 15, .78);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow: hidden;
  transition: transform .22s ease, opacity .18s ease;
  z-index: 5;
}
.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sidebar-toggle, .sidebar-open-tab {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  padding: 0 10px;
  font-weight: 850;
}
.sidebar-toggle:hover, .sidebar-open-tab:hover { color: var(--green); border-color: rgba(34,240,107,.45); }
.sidebar-open-tab {
  position: fixed;
  left: 12px;
  top: 96px;
  z-index: 20;
  display: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 12px 8px;
  min-height: 72px;
  background: rgba(14, 22, 34, .96);
  box-shadow: var(--shadow);
}
.app-body.sidebar-collapsed .sidebar {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}
.app-body.sidebar-collapsed .sidebar-open-tab { display: inline-flex; }
.side-nav, .recent-block { display: grid; gap: 8px; }
.side-nav a {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #d6deeb;
  border-radius: var(--radius);
  padding: 0 14px;
}
.side-nav a span { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--green); }
.side-nav a.active, .side-nav a:hover { background: rgba(255, 255, 255, .07); }
.recent-block { border-top: 1px solid var(--line); padding-top: 22px; }
.recent-block h3 { margin: 0 0 8px; color: var(--muted); text-transform: uppercase; font-size: 13px; }
.recent-block a { color: #dce4ef; line-height: 1.4; padding: 8px 0; }
.recent-decision {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  padding: 10px;
}
.recent-decision span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.recent-decision strong {
  color: #eef5ff;
  font-size: 13px;
  line-height: 1.3;
}
.recent-decision small {
  color: var(--muted);
}
.profile-card {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.profile-card > span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #203143, #1b9b72);
  font-weight: 850;
}
.profile-card small { display: block; margin-top: 4px; }
.profile-card b { margin-left: auto; color: var(--green); border: 1px solid rgba(34, 240, 107, .35); padding: 5px 8px; border-radius: 5px; font-size: 12px; }
.chat-main, .lab-main { min-width: 0; display: flex; flex-direction: column; }
.workspace-top {
  min-height: 80px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 32px;
}
.workspace-top small { display: block; margin-top: 5px; }
.workspace-top > div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.credit-pill { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; font-weight: 850; }
.chat-thread { width: min(1120px, calc(100% - 48px)); margin: 24px auto 0; flex: 1; }
.chat-thread { padding-bottom: 150px; }
.product-tabs, .category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.product-tabs button, .category-tabs button, .research-btn {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 0 14px;
  font-weight: 850;
}
.product-tabs button.active, .category-tabs button.active, .research-btn {
  border-color: rgba(34,240,107,.5);
  background: rgba(34,240,107,.12);
  color: var(--green);
}
.research-btn.compact { min-height: 42px; white-space: nowrap; }
.user-bubble {
  margin-left: auto;
  max-width: 650px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #182231, #111923);
  font-size: 18px;
  line-height: 1.5;
}
.ai-label { display: flex; align-items: center; gap: 10px; margin: 26px 0 8px; }
.ai-intro { color: var(--muted); margin: 0 0 18px 44px; }
.result-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: linear-gradient(180deg, rgba(18, 28, 42, .9), rgba(8, 13, 21, .94));
}
.result-layout { display: grid; grid-template-columns: 190px 1fr 330px; gap: 28px; align-items: center; }
.result-layout h3 { margin: 0 0 16px; font-size: 20px; line-height: 1.5; }
.clean-list { color: var(--muted); line-height: 1.8; }
.breakdown { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.breakdown h4 { margin: 0 0 12px; text-transform: uppercase; }
.breakdown div { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; }
.analysis-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .9fr); gap: 14px; }
.followup-panel { margin-bottom: 14px; }
.intake-panel, .missing-panel, .blueprint-panel, .score-panel { margin-bottom: 14px; }
.source-grid article strong, .blueprint-steps strong { display: block; margin-bottom: 8px; }
.source-grid article span, .blueprint-steps span { color: var(--muted); line-height: 1.45; }
.confidence-pill {
  border: 1px solid rgba(34,240,107,.35);
  border-radius: var(--radius);
  color: var(--green);
  padding: 8px 10px;
  font-weight: 850;
  white-space: nowrap;
  flex: none;
}
.missing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.missing-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: #dbe7f6;
  padding: 8px 12px;
  font-weight: 750;
}
.missing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.research-status, .score-grid {
  display: grid;
  gap: 10px;
}
.research-status div, .score-grid div, .blueprint-summary div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255,255,255,.03);
}
.research-status span, .score-grid span, .blueprint-summary span { color: var(--muted); }
.research-status b, .score-grid b, .blueprint-summary strong { color: var(--green); }
.blueprint-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.blueprint-summary strong { font-size: 34px; }
.blueprint-steps small {
  color: var(--green);
  font-weight: 850;
  text-transform: uppercase;
}
.outcome-panel p { color: var(--muted); line-height: 1.5; }
.outcome-form {
  display: grid;
  gap: 12px;
}
.outcome-form input, .outcome-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .18);
  color: var(--text);
  padding: 12px;
}
.outcome-form textarea {
  min-height: 90px;
  resize: vertical;
}
.outcome-choice button.active {
  color: var(--green);
  border-color: rgba(34,240,107,.55);
  background: rgba(34,240,107,.12);
}
.variable-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
}
.variable-grid input, .studio-card input, .studio-card textarea, .studio-card select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .18);
  color: var(--text);
  padding: 10px 12px;
}
.studio-main { padding: 24px; max-width: 100%; overflow: hidden; }
.studio-main > .section-panel:first-child { margin-top: 0; }
.studio-card label { display: grid; gap: 8px; color: var(--muted); margin-bottom: 12px; font-weight: 750; }
.studio-card textarea { min-height: 126px; resize: vertical; }
.saved-table { width: 100%; border-collapse: collapse; }
.saved-table th, .saved-table td { border-bottom: 1px solid var(--line); padding: 14px 10px; text-align: left; }
.saved-table th { color: var(--muted); font-size: 13px; text-transform: uppercase; }
.scenario-grid article strong { font-size: 28px; color: var(--green); }
.chart-panel canvas, .molecule-preview canvas { width: 100%; display: block; }
.recommendations ul { color: var(--muted); line-height: 1.8; margin-bottom: 0; }
.prompt-bar {
  width: min(1120px, calc(100% - 48px));
  margin: 16px auto 22px;
  min-height: 74px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111925;
  align-items: center;
}
.prompt-bar input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0 8px;
  font-size: 18px;
}
.prompt-bar small {
  grid-column: 1 / -1;
  color: var(--muted);
  margin-left: 4px;
}
.prediction-composer {
  position: fixed;
  right: 24px;
  bottom: 18px;
  width: min(980px, calc(100vw - 368px));
  z-index: 18;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .52);
}
.prediction-composer small { display: none; }
.prediction-composer .primary-btn { min-width: 88px; }
.sidebar-collapsed .prediction-composer {
  width: min(980px, calc(100vw - 72px));
}

.intelligence-main {
  height: 100vh;
  overflow: hidden;
}
.workspace-console {
  min-height: 0;
  height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: minmax(520px, 1.15fr) minmax(500px, .85fr);
  gap: 18px;
  padding: 18px;
  overflow: hidden;
}
.conversation-panel, .intelligence-panel {
  min-width: 0;
  min-height: 0;
}
.conversation-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.workspace-tabs {
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 13, 21, .74);
  padding: 14px;
}
.workspace-tabs .product-tabs, .workspace-tabs .category-tabs {
  margin-bottom: 0;
}
.workspace-tabs .product-tabs {
  margin-bottom: 10px;
}
.conversation-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 28, 42, .86), rgba(8, 13, 21, .96));
  box-shadow: var(--shadow);
  padding: 18px;
}
.message-thread {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 4px 6px 4px 0;
}
.message-row {
  max-width: min(620px, 92%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: rgba(255,255,255,.035);
}
.message-row span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.message-row p {
  margin: 0;
  line-height: 1.5;
}
.message-row.user {
  justify-self: end;
  background: linear-gradient(180deg, #182231, #111923);
}
.message-row.ai {
  justify-self: start;
  border-color: rgba(34,240,107,.22);
}
.message-row.ai span {
  color: var(--green);
}
.conversation-panel .prediction-composer {
  position: static;
  width: 100%;
  margin: 0;
  flex: none;
  box-shadow: var(--shadow);
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "upload research"
    "input run";
}
.conversation-panel .prediction-composer .upload-chip {
  grid-area: upload;
  width: 100%;
  white-space: nowrap;
}
.conversation-panel .prediction-composer .research-btn {
  grid-area: research;
  white-space: nowrap;
}
.conversation-panel .prediction-composer input {
  grid-area: input;
  min-width: 0;
}
.conversation-panel .prediction-composer .primary-btn {
  grid-area: run;
  min-width: 88px;
}
.conversation-panel .prediction-composer small {
  display: none;
}
.intelligence-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  overflow-y: auto;
  padding-right: 4px;
}
.empty-intelligence-state,
.active-intelligence-state {
  display: grid;
  gap: 14px;
}
[hidden] {
  display: none !important;
}
.intelligence-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 13, 21, .96);
  padding: 16px 18px;
  box-shadow: 0 14px 36px rgba(0,0,0,.3);
}
.intelligence-header h2 {
  margin: 0;
  text-transform: uppercase;
  font-size: 19px;
}
.intelligence-header p {
  margin: 6px 0 0;
  color: var(--muted);
}
.intelligence-panel .section-panel,
.intelligence-panel .result-panel {
  margin-top: 0;
}
.example-question-grid {
  display: grid;
  gap: 10px;
}
.example-question-grid button {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
  color: #eef5ff;
  font: inherit;
  font-weight: 750;
  line-height: 1.35;
  padding: 13px 14px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.example-question-grid button:hover {
  border-color: rgba(34, 240, 107, .55);
  background: rgba(34, 240, 107, .08);
  transform: translateY(-1px);
}
.build-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.build-columns article,
.demo-intelligence-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
  padding: 16px;
}
.build-columns h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.build-columns ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  color: #dbe7f6;
}
.build-columns li:before {
  content: "✓ ";
  color: var(--green);
  font-weight: 900;
}
.demo-intelligence-card {
  background:
    linear-gradient(180deg, rgba(34, 240, 107, .13), rgba(18, 28, 42, .9)),
    rgba(255, 255, 255, .035);
  box-shadow: var(--shadow);
}
.demo-intelligence-card small {
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
}
.demo-intelligence-card h3 {
  margin: 8px 0 14px;
  font-size: 24px;
}
.demo-factor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.demo-factor-list span {
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 999px;
  padding: 7px 10px;
  color: #e8f2ff;
  background: rgba(5, 8, 15, .42);
}
.demo-outcome {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.demo-outcome span {
  color: var(--muted);
}
.demo-outcome strong {
  color: var(--green);
  font-size: 22px;
}
.start-prediction-card {
  background: rgba(255,255,255,.035);
}
.start-prediction-card .demo-outcome strong {
  color: var(--muted);
  font-size: 18px;
}
.engine-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 28, 42, .9), rgba(8, 13, 21, .94));
  box-shadow: var(--shadow);
  padding: 18px;
}
.engine-score-row {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.engine-card .probability-ring span {
  font-size: 36px;
}
.engine-card .probability-ring:after {
  inset: 14px;
}
.engine-summary h3 {
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.45;
}
.engine-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.engine-metrics span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
  color: var(--muted);
  padding: 9px;
  font-size: 13px;
  overflow-wrap: normal;
}
.engine-metrics b {
  display: block;
  margin-top: 4px;
  color: var(--green);
}
.forecast-quality-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.forecast-quality-grid span {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  padding: 9px;
  font-size: 12px;
}
.forecast-quality-grid b {
  display: block;
  margin-top: 4px;
  color: var(--text);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.simulation-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.simulation-status span {
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  padding: 9px;
  font-size: 12px;
  font-weight: 750;
}
.simulation-status b {
  display: block;
  margin-top: 4px;
  color: var(--text);
}
.prediction-run-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.prediction-run-status span,
.key-factors {
  border: 1px solid rgba(34, 240, 107, .25);
  border-radius: 8px;
  background: rgba(34, 240, 107, .055);
  padding: 9px;
}
.prediction-run-status span:before {
  content: "+";
  color: var(--green);
  font-weight: 900;
  margin-right: 6px;
}
.prediction-run-status span.warning {
  border-color: rgba(255, 207, 102, .35);
  background: rgba(255, 207, 102, .07);
}
.prediction-run-status span.warning:before {
  content: "!";
  color: #ffcf66;
}
.prediction-run-status span.running {
  border-color: rgba(96, 165, 250, .38);
  background: rgba(96, 165, 250, .08);
}
.prediction-run-status span.running:before {
  content: "...";
  color: #93c5fd;
}
.prediction-run-status b,
.prediction-run-status small {
  display: block;
}
.prediction-run-status b {
  color: #eef5ff;
  font-size: 12px;
}
.prediction-run-status small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 11px;
}
.key-factors {
  margin-top: 10px;
}
.monte-carlo-progress {
  margin-top: 10px;
  border: 1px solid rgba(96, 165, 250, .32);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(96, 165, 250, .09), rgba(255,255,255,.025));
  padding: 11px;
}
.monte-carlo-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #eef5ff;
  font-weight: 850;
}
.monte-carlo-progress b {
  color: var(--green);
}
.simulation-progress-bar {
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .24);
  background: rgba(0,0,0,.24);
  overflow: hidden;
  margin-top: 10px;
}
.simulation-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255,255,255,.18) 0 20%, transparent 20% 40%, rgba(255,255,255,.18) 40% 60%, transparent 60% 100%),
    linear-gradient(90deg, #22f06b, #93c5fd);
  background-size: 42px 100%, 100% 100%;
  transition: width .35s ease;
}
.monte-carlo-progress.running .simulation-progress-bar span {
  animation: simulationFlow .75s linear infinite;
}
.monte-carlo-progress.running {
  box-shadow: 0 0 0 1px rgba(96,165,250,.08), 0 0 28px rgba(34,240,107,.08);
}
.monte-carlo-progress small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
@keyframes simulationFlow {
  from { background-position: 0 0, 0 0; }
  to { background-position: 42px 0, 0 0; }
}
.key-factors strong {
  display: block;
  margin-bottom: 7px;
  color: #eef5ff;
}
.key-factors ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.key-factors li {
  margin: 4px 0;
}
.simulation-actions {
  display: grid;
  grid-template-columns: minmax(150px, max-content) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.simulation-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.simulation-actions .ghost-btn {
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}
.intelligence-panel .source-grid,
.intelligence-panel .score-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.intelligence-panel .blueprint-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.intelligence-bottom {
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
}
.variable-progress, .activity-feed, .outcome-loop, .resolve-grid {
  display: grid;
  gap: 10px;
}
.variable-progress div, .activity-feed div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
  padding: 12px;
}
.variable-progress span, .activity-feed span {
  color: #dbe7f6;
}
.variable-progress b, .activity-feed b {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.variable-progress .done b, .activity-feed .done b {
  color: var(--green);
}
.variable-progress .pending b, .activity-feed .running b {
  color: var(--warn);
}
.variable-progress .done span:before, .activity-feed .done span:before {
  content: "✓ ";
  color: var(--green);
}
.variable-progress .pending span:before, .activity-feed .running span:before {
  content: "⟳ ";
  color: var(--warn);
}
.expected-outcome {
  margin-top: 14px;
  border: 1px solid rgba(34,240,107,.35);
  border-radius: var(--radius);
  background: rgba(34,240,107,.08);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.expected-outcome span {
  color: var(--muted);
}
.expected-outcome strong {
  color: var(--green);
  font-size: 28px;
}
.outcome-main .section-panel:first-child {
  margin-top: 0;
}
.outcome-loop {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.outcome-loop article, .resolve-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
  padding: 16px;
}
.outcome-loop span {
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: rgba(34,240,107,.12);
  color: var(--green);
  font-weight: 850;
  margin-bottom: 12px;
}
.outcome-loop strong, .resolve-card strong {
  display: block;
  margin-bottom: 8px;
}
.outcome-loop small, .resolve-card span {
  color: var(--muted);
  line-height: 1.45;
}
.resolve-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.resolve-card {
  display: grid;
  gap: 12px;
}
.resolve-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
}
.resolve-card input, .resolve-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0,0,0,.18);
  color: var(--text);
  padding: 12px;
}
.resolve-card textarea {
  min-height: 94px;
  resize: vertical;
}

.lab-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(360px, .9fr); gap: 18px; padding: 24px; }
.upload-panel h2 span, .setup-panel h2 span { color: var(--green); }
.drop-zone {
  min-height: 210px;
  border: 1px dashed rgba(159, 177, 206, .35);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
  padding: 20px;
}
.file-types { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; color: var(--green); font-weight: 850; }
.upload-actions { justify-content: center; margin-top: 18px; }
.advantage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.advantage-grid article { padding: 20px; display: grid; gap: 8px; }
.advantage-grid span { color: var(--muted); line-height: 1.45; }
.simulation-list { display: grid; gap: 12px; }
.sim-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}
.sim-row small { display: block; margin-top: 6px; }
.sim-row button { min-height: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.04); color: var(--text); padding: 0 14px; }
.molecule-thumb {
  height: 58px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 25% 35%, #57a7ff 0 4px, transparent 5px),
    radial-gradient(circle at 48% 52%, #ff4f7e 0 5px, transparent 6px),
    radial-gradient(circle at 72% 30%, #fff 0 3px, transparent 4px),
    linear-gradient(135deg, rgba(67,166,255,.18), rgba(34,240,107,.08));
  border: 1px solid var(--line);
}
.molecule-thumb.crystal { background: repeating-linear-gradient(45deg, rgba(255,79,126,.25) 0 6px, rgba(67,166,255,.14) 6px 12px); }
.molecule-thumb.line { background: linear-gradient(135deg, transparent, rgba(50,230,226,.18)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 70'%3E%3Cpolyline points='8,45 28,25 48,42 68,20 92,37 112,18' fill='none' stroke='%2332e6e2' stroke-width='3'/%3E%3C/svg%3E"); }
.molecule-thumb.protein { background: radial-gradient(circle at 30% 40%, rgba(34,240,107,.6), transparent 20px), radial-gradient(circle at 70% 55%, rgba(50,230,226,.5), transparent 22px), #07111c; }
.setup-panel { display: grid; gap: 14px; }
.setup-panel label { display: grid; gap: 8px; color: var(--muted); font-weight: 700; }
.setup-panel select, .setup-panel input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(0, 0, 0, .18);
  padding: 0 12px;
}
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.segmented button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
}
.segmented .active { color: var(--green); border-color: rgba(34, 240, 107, .55); }
.molecule-preview h3 { text-transform: uppercase; font-size: 15px; margin-top: 16px; }
.preview-tools { display: flex; justify-content: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.preview-tools button { min-width: 48px; min-height: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.04); color: var(--text); }

.auth-shell .topbar { margin-bottom: 44px; }
.auth-layout {
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  align-items: center;
  gap: 42px;
  padding: 28px 0 70px;
}
.auth-copy {
  max-width: 720px;
}
.auth-kicker {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(34,240,107,.35);
  border-radius: var(--radius);
  color: var(--green);
  padding: 0 12px;
  font-weight: 850;
  text-transform: uppercase;
  font-size: 12px;
}
.auth-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .96;
}
.auth-copy p {
  max-width: 590px;
  color: #c1cad8;
  font-size: 20px;
  line-height: 1.55;
}
.auth-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.auth-proof div, .auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 28, 42, .84), rgba(8, 13, 21, .94));
  box-shadow: var(--shadow);
}
.auth-proof div {
  padding: 16px;
  display: grid;
  gap: 6px;
}
.auth-proof strong {
  color: var(--green);
  font-size: 28px;
}
.auth-proof span { color: var(--muted); }
.auth-card {
  padding: 28px;
}
.auth-form {
  display: grid;
  gap: 14px;
}
.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
}
.auth-form input {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .2);
  color: var(--text);
  padding: 0 14px;
}
.auth-form input:focus {
  outline: 0;
  border-color: rgba(34,240,107,.62);
  box-shadow: 0 0 0 3px rgba(34,240,107,.12);
}
.auth-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.auth-message.success { color: var(--green); }
.auth-message.error { color: var(--pink); }
.auth-switch {
  margin: 18px 0 0;
  color: var(--muted);
}
.auth-switch a, .active-action { color: var(--green); }

.variable-intake-panel {
  display: grid;
  gap: 14px;
}
.intake-anchor {
  scroll-margin-top: 16px;
}
.variable-fields-anchor {
  scroll-margin-top: 12px;
}
.variable-intake-panel:not([hidden]) {
  border-color: rgba(34, 240, 107, .42);
}
.prediction-type-card {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(34,240,107,.24);
  border-radius: 8px;
  background: rgba(34,240,107,.065);
}
.prediction-type-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.prediction-type-card b {
  color: var(--green);
  font-size: 15px;
}
.prediction-type-card small {
  color: var(--text);
  line-height: 1.35;
}
.visibility-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}
.visibility-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.visibility-card b {
  display: block;
  margin-top: 3px;
  color: #eef5ff;
}
.visibility-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dbe7f6;
  font-weight: 800;
  cursor: pointer;
}
.visibility-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}
.visibility-toggle span {
  color: #dbe7f6;
  font-size: 12px;
  text-transform: none;
}
.readiness-bar {
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  border: 1px solid var(--line);
}
.readiness-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green), #7cf7bd);
  transition: width .25s ease;
}
.variable-intake-form {
  display: grid;
  gap: 10px;
}
.variable-field {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}
.variable-field label {
  display: grid;
  gap: 6px;
}
.variable-field span {
  font-weight: 900;
  color: var(--text);
}
.variable-field small {
  color: var(--muted);
  line-height: 1.35;
}
.variable-field input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(219, 231, 246, .85);
  border-radius: 8px;
  background: #f3f7ff;
  color: #07111f;
  padding: 0 11px;
  font-weight: 750;
}
.variable-field input::placeholder {
  color: #64748b;
}
.variable-field input:focus {
  outline: 0;
  border-color: rgba(34,240,107,.64);
  box-shadow: 0 0 0 3px rgba(34,240,107,.12);
}
.variable-field-actions {
  display: grid;
  grid-template-columns: minmax(96px, .28fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.variable-field-actions .secondary-btn {
  min-height: 38px;
  padding: 0 12px;
}
.variable-save-status {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.empty-variable-field {
  border-color: rgba(34,240,107,.28);
  background: rgba(34,240,107,.07);
}
.simulation-depth-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.simulation-depth-picker button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}
.simulation-depth-picker button.active {
  border-color: rgba(34,240,107,.55);
  background: rgba(34,240,107,.12);
  color: var(--green);
}
.simulation-depth-picker span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}
.collected-list {
  display: grid;
  gap: 8px;
}
.collected-variable {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(34,240,107,.22);
  background: rgba(34,240,107,.07);
}
.collected-variable span {
  color: var(--text);
  font-weight: 800;
}
.collected-variable b {
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
}
.intake-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.ghost-btn {
  min-height: 42px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}
.ghost-btn:hover {
  border-color: rgba(34,240,107,.42);
}

@media (max-width: 1180px) {
  .hero-section, .workbench-grid, .dashboard-grid, .analysis-grid, .lab-grid, .auth-layout { grid-template-columns: 1fr; }
  .decision-console {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .intelligence-main { height: auto; overflow: visible; }
  .workspace-console {
    height: auto;
    overflow: visible;
    grid-template-columns: 1fr;
  }
  .conversation-card { min-height: 460px; }
  .message-thread { max-height: 420px; }
  .intelligence-panel {
    overflow: visible;
    padding-right: 0;
  }
  .prediction-grid, .pricing-grid, .template-grid, .variable-grid, .studio-grid, .scenario-grid, .source-grid, .score-grid, .blueprint-steps { grid-template-columns: repeat(2, 1fr); }
  .result-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 640px) {
  .site-shell { width: min(100% - 40px, 1480px); }
  .topbar { height: auto; padding: 18px 0; flex-wrap: wrap; }
  .top-actions { width: 100%; justify-content: flex-start; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; gap: 18px; }
  .nav-links a { flex: 0 0 auto; }
  .hero-section { min-height: auto; padding-top: 30px; }
  .hero-copy h1 { font-size: clamp(32px, 9.5vw, 38px); max-width: 330px; }
  .hero-copy p { font-size: 17px; max-width: 330px; overflow-wrap: anywhere; }
  .hero-actions .large { width: min(100%, 330px); }
  .inline-predictor { width: min(100%, 330px); }
  .world-panel, .world-panel canvas { min-height: 380px; }
  .world-panel { width: 100%; }
  .world-panel canvas, .molecule-preview canvas { width: 100%; height: auto; }
  .signal-card { position: static; margin: 8px; display: inline-block; }
  .metric-strip, .prediction-grid, .pricing-grid, .template-grid, .variable-grid, .studio-grid, .scenario-grid, .source-grid, .score-grid, .blueprint-steps, .blueprint-summary, .advantage-grid, .accuracy-card { grid-template-columns: 1fr; }
  .auth-layout { padding-top: 6px; gap: 24px; }
  .auth-copy h1 { font-size: clamp(34px, 10vw, 44px); max-width: 330px; }
  .auth-copy p { font-size: 17px; max-width: 330px; }
  .auth-proof { grid-template-columns: 1fr; max-width: 330px; }
  .auth-card { padding: 20px; }
  .app-body { display: block; }
  .app-body.sidebar-collapsed .sidebar { display: none; }
  .sidebar-open-tab { top: 80px; }
  .sidebar { max-width: 100vw; padding: 24px 18px; }
  .workspace-top { max-width: 100vw; }
  .workspace-top { align-items: flex-start; padding: 18px; flex-direction: column; }
  .workspace-top small { max-width: 330px; overflow-wrap: anywhere; }
  .workspace-console { padding: 14px; gap: 14px; }
  .workspace-tabs { padding: 12px; }
  .conversation-card { min-height: 430px; padding: 14px; }
  .message-row { max-width: 100%; }
  .intelligence-header { position: static; flex-direction: column; }
  .compact-result .result-layout,
  .engine-score-row,
  .engine-metrics,
  .forecast-quality-grid,
  .simulation-status,
  .simulation-actions,
  .build-columns,
  .intelligence-panel .source-grid,
  .intelligence-panel .score-grid,
  .intelligence-panel .blueprint-steps,
  .intelligence-bottom,
  .outcome-loop,
  .resolve-grid { grid-template-columns: 1fr; }
  .section-panel h2, .section-heading h2 { font-size: 17px; overflow-wrap: anywhere; }
  .chat-thread, .prompt-bar { width: calc(100% - 28px); }
  .prompt-bar { grid-template-columns: 1fr; }
  .prediction-composer { left: 14px; right: 14px; bottom: 14px; width: auto; }
  .prompt-bar .primary-btn, .upload-chip { width: 100%; }
  .studio-main, .lab-grid { padding: 14px; max-width: 100vw; overflow: hidden; }
  .saved-table { display: block; overflow-x: auto; white-space: nowrap; }
  .setup-panel select { min-width: 0; }
  .segmented { grid-template-columns: 1fr; }
  .sim-row { grid-template-columns: 64px 1fr; }
  .sim-row b, .sim-row button { grid-column: 2; justify-self: start; }
}
