:root {
  --ink: #101310;
  --ink-raised: #181c18;
  --ink-soft: #242a24;
  --paper: #eee9d9;
  --paper-dim: #aaa999;
  --acid: #c9f24a;
  --signal: #ff6640;
  --blueprint: #73c8ff;
  --line: rgba(238, 233, 217, 0.17);
  --line-strong: rgba(238, 233, 217, 0.34);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }

html { background: var(--ink); color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background:
    radial-gradient(circle at 70% -20%, rgba(201, 242, 74, 0.08), transparent 32rem),
    linear-gradient(115deg, transparent 0 66%, rgba(255, 102, 64, 0.035) 66% 67%, transparent 67%),
    var(--ink);
  font-family: "Avenir Next", Avenir, sans-serif;
  letter-spacing: 0.01em;
}

button, a { font: inherit; }
button { color: inherit; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(16, 19, 16, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  align-self: stretch;
  width: 72px;
  color: var(--ink);
  background: var(--acid);
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
}

.brand-type {
  padding: 0 24px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.system-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 24px;
  color: var(--paper-dim);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.inbox-link, .pipeline-link {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 20px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--paper-dim);
  text-decoration: none;
}
.inbox-link span, .pipeline-link span { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 50%; background: var(--acid); color: var(--ink); font-weight: 900; }
.pipeline-link span { background: var(--blueprint); }
.inbox-link:hover, .inbox-link:focus-visible, .pipeline-link:hover, .pipeline-link:focus-visible { color: var(--paper); outline: none; }

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 14px var(--acid);
  animation: pulse 1.8s ease-in-out infinite;
}

.strip-divider { color: var(--line-strong); }

.refresh-button {
  align-self: stretch;
  padding: 0 22px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.14em;
}

.refresh-button:hover,
.refresh-button:focus-visible { color: var(--ink); background: var(--paper); outline: none; }

main { padding: 44px clamp(22px, 4vw, 72px) 80px; }

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.6fr);
  gap: 7vw;
  align-items: center;
  margin-bottom: 42px;
}

.eyebrow,
.label {
  margin: 0 0 14px;
  color: var(--acid);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.eyebrow { position: relative; z-index: 1; margin-bottom: 24px; }

h1 {
  max-width: 780px;
  margin: 0;
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: clamp(5rem, 9.5vw, 9.5rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.74;
  text-transform: uppercase;
}

.goal-panel {
  position: relative;
  padding: 26px 0 0;
  border-top: 5px solid var(--paper);
}

.goal-panel::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 0;
  width: 32%;
  height: 5px;
  background: var(--signal);
}

.goal-copy { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.goal-copy strong { font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif; font-size: 4rem; line-height: 0.8; }
.goal-copy small { font-size: 1rem; letter-spacing: 0.08em; }
.goal-track { height: 10px; margin: 26px 0 12px; overflow: hidden; background: var(--ink-soft); }
.goal-track span { display: block; width: 0; height: 100%; background: var(--acid); transition: width 700ms cubic-bezier(.16,.84,.28,1); }
.goal-panel > p { margin: 0; color: var(--paper-dim); font-size: 0.78rem; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.metric {
  position: relative;
  min-height: 142px;
  padding: 24px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--ink-raised);
}

.metric:last-child { border-right: 0; }
.metric > span { display: block; color: var(--paper-dim); font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.61rem; letter-spacing: 0.16em; }
.metric strong { display: block; margin-top: 12px; font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif; font-size: 4.6rem; line-height: 0.9; }
.metric small { color: var(--paper-dim); font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.1em; }
.metric::after { content: ""; position: absolute; right: -34px; bottom: -56px; width: 110px; height: 110px; border: 18px solid var(--line); border-radius: 50%; }
.metric-running strong { color: var(--blueprint); }
.metric-complete strong { color: var(--acid); }
.metric-blocked strong { color: var(--signal); }

.operator-inbox {
  margin-top: 54px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(105deg, rgba(201, 242, 74, .07), rgba(24, 28, 24, .76) 40%);
  box-shadow: var(--shadow);
}
.inbox-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.inbox-heading > p { margin: 0; color: var(--paper-dim); font-size: .72rem; }
.questions-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.question-card { padding: 28px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(16, 19, 16, .52); color: var(--paper); }
.question-card:nth-child(2n) { border-right: 0; }
.question-meta { display: flex; gap: 6px; margin-bottom: 16px; }
.question-meta span { padding: 5px 7px; border: 1px solid var(--line-strong); color: var(--paper-dim); font-family: "SFMono-Regular", Consolas, monospace; font-size: .5rem; letter-spacing: .11em; }
.question-app { margin: 0 0 8px; color: var(--acid); font-family: "SFMono-Regular", Consolas, monospace; font-size: .58rem; letter-spacing: .13em; text-transform: uppercase; }
.question-card h3 { max-width: 28ch; margin: 0 0 12px; font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif; font-size: clamp(2rem, 3vw, 3rem); line-height: .95; text-transform: uppercase; }
.question-context { max-width: 68ch; margin: 0 0 22px; color: var(--paper-dim); font-size: .76rem; line-height: 1.55; }
.question-card fieldset { margin: 22px 0 18px; padding: 0; border: 0; }
.question-card legend, .question-answer-label > span { display: block; margin-bottom: 9px; color: var(--paper-dim); font-family: "SFMono-Regular", Consolas, monospace; font-size: .5rem; letter-spacing: .13em; }
.question-options { display: flex; flex-wrap: wrap; gap: 7px; }
.question-option input { position: absolute; opacity: 0; pointer-events: none; }
.question-option span { display: block; padding: 9px 11px; border: 1px solid var(--line-strong); color: var(--paper-dim); cursor: pointer; font-size: .7rem; }
.question-option input:checked + span { border-color: var(--acid); background: var(--acid); color: var(--ink); }
.question-option input:focus-visible + span { outline: 2px solid var(--paper); outline-offset: 2px; }
.question-answer-label textarea { width: 100%; resize: vertical; padding: 12px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--ink); color: var(--paper); font: inherit; font-size: .78rem; line-height: 1.5; }
.question-answer-label textarea:focus { border-color: var(--acid); outline: 0; }
.question-default { margin: 10px 0 0; color: var(--paper-dim); font-family: "SFMono-Regular", Consolas, monospace; font-size: .48rem; letter-spacing: .08em; }
.question-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.question-actions button { padding: 11px 14px; border: 0; background: var(--acid); color: var(--ink); cursor: pointer; font-family: "SFMono-Regular", Consolas, monospace; font-size: .55rem; font-weight: 900; letter-spacing: .1em; }
.question-actions button:hover, .question-actions button:focus-visible { background: var(--paper); outline: none; }
.question-actions button:disabled { cursor: wait; opacity: .55; }
.question-error { margin: 0; color: #ff9d85; font-size: .68rem; }
.inbox-clear { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 22px 26px; }
.inbox-clear > span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--acid); border-radius: 50%; color: var(--acid); }
.inbox-clear strong, .inbox-clear small { display: block; }
.inbox-clear strong { font-family: "SFMono-Regular", Consolas, monospace; font-size: .65rem; letter-spacing: .12em; }
.inbox-clear small { margin-top: 4px; color: var(--paper-dim); }
.resolved-strip { grid-column: 1 / -1; display: flex; align-items: stretch; overflow-x: auto; border-top: 1px solid var(--line); }
.resolved-strip > p { min-width: 150px; margin: 0; padding: 16px 18px; color: var(--paper-dim); font-family: "SFMono-Regular", Consolas, monospace; font-size: .49rem; letter-spacing: .12em; }
.resolved-strip article { min-width: 220px; padding: 13px 18px; border-left: 1px solid var(--line); }
.resolved-strip span, .resolved-strip strong { display: block; }
.resolved-strip span { color: var(--paper-dim); font-size: .55rem; }
.resolved-strip strong { margin-top: 4px; overflow: hidden; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }

.idea-pipeline {
  margin-top: 54px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(112deg, rgba(99, 196, 255, .08), rgba(24, 28, 24, .78) 44%);
  box-shadow: var(--shadow);
}
.pipeline-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.pipeline-heading-copy { max-width: 520px; text-align: right; }
.pipeline-heading-copy strong { color: var(--blueprint); font: 800 .62rem "SFMono-Regular", Consolas, monospace; letter-spacing: .12em; }
.pipeline-heading-copy p { margin: 7px 0 0; color: var(--paper-dim); font-size: .7rem; line-height: 1.5; }
.pipeline-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pipeline-card { display: flex; min-width: 0; flex-direction: column; gap: 22px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(16, 19, 16, .48); }
.pipeline-card:nth-child(2n) { border-right: 0; }
.pipeline-card[data-priority="next"] { box-shadow: inset 4px 0 var(--acid); }
.pipeline-card[data-priority="park"] { opacity: .72; box-shadow: inset 4px 0 var(--signal); }
.pipeline-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.pipeline-card-head h3 { margin: 9px 0 0; font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif; font-size: clamp(2.4rem, 4vw, 3.5rem); line-height: .9; text-transform: uppercase; }
.pipeline-badges { display: flex; flex-wrap: wrap; gap: 6px; color: var(--paper-dim); font: .5rem "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.pipeline-badges span { padding: 6px 7px 5px; border: 1px solid var(--line-strong); }
.pipeline-badges .research-pick { border-color: var(--acid); color: var(--acid); }
.pipeline-price { color: var(--paper); font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif; font-size: 2.2rem; line-height: .9; white-space: nowrap; }
.pipeline-pitch { margin: 0; color: var(--paper); font-size: .8rem; line-height: 1.65; }
.pipeline-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); }
.pipeline-context div { padding: 14px; border-right: 1px solid var(--line); }
.pipeline-context div:last-child { border-right: 0; }
.pipeline-context span, .pipeline-feedback legend, .pipeline-comment span { display: block; margin-bottom: 7px; color: var(--paper-dim); font: .48rem "SFMono-Regular", Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.pipeline-context p { margin: 0; color: var(--paper-dim); font-size: .68rem; line-height: 1.55; }
.pipeline-feedback { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.pipeline-feedback fieldset { margin: 0 0 14px; padding: 0; border: 0; }
.priority-options { display: grid; grid-template-columns: repeat(3, 1fr); }
.priority-option { position: relative; }
.priority-option input { position: absolute; opacity: 0; }
.priority-option span { display: grid; min-height: 42px; place-items: center; border: 1px solid var(--line-strong); border-right: 0; color: var(--paper-dim); cursor: pointer; font: 800 .52rem "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }
.priority-option:last-child span { border-right: 1px solid var(--line-strong); }
.priority-option input:checked + span { border-color: var(--acid); background: var(--acid); color: var(--ink); }
.priority-option input:focus-visible + span { outline: 2px solid var(--paper); outline-offset: 2px; }
.pipeline-comment textarea { width: 100%; min-height: 84px; resize: vertical; padding: 12px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--ink); color: var(--paper); font: .74rem/1.5 "Avenir Next", Avenir, sans-serif; }
.pipeline-comment textarea:focus { border-color: var(--blueprint); outline: 0; }
.pipeline-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.pipeline-actions button { padding: 11px 14px; border: 0; background: var(--blueprint); color: var(--ink); cursor: pointer; font: 900 .52rem "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; }
.pipeline-actions button:hover, .pipeline-actions button:focus-visible { background: var(--paper); outline: 0; }
.pipeline-actions button:disabled { cursor: wait; opacity: .55; }
.pipeline-saved { margin: 0; color: var(--acid); font: .5rem "SFMono-Regular", Consolas, monospace; }
.pipeline-empty { display: grid; grid-column: 1 / -1; min-height: 150px; place-items: center; padding: 36px; text-align: center; }
.pipeline-empty strong { display: block; color: var(--blueprint); font: 800 .64rem "SFMono-Regular", Consolas, monospace; letter-spacing: .12em; }
.pipeline-empty p { max-width: 52ch; margin: 9px 0 0; color: var(--paper-dim); font-size: .72rem; line-height: 1.55; }

.control-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin: 54px 0 24px;
}

.section-heading { display: flex; align-items: flex-start; gap: 14px; }
.section-heading > span { color: var(--signal); font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.65rem; }
.section-heading p { margin: 0 0 3px; color: var(--paper-dim); font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.59rem; letter-spacing: 0.16em; }
.section-heading h2,
.activity-header h2 { margin: 0; font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif; font-size: 2rem; text-transform: uppercase; }

.filters { display: flex; border: 1px solid var(--line-strong); }
.filter { padding: 10px 14px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--paper-dim); cursor: pointer; font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.58rem; letter-spacing: 0.12em; }
.filter:last-child { border-right: 0; }
.filter:hover, .filter:focus-visible { color: var(--paper); outline: none; }
.filter.active { color: var(--ink); background: var(--acid); }

.floor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.jobs-grid { display: grid; gap: 18px; }

.job-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(420px, 1.15fr);
  gap: 34px;
  width: 100%;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(100deg, var(--ink-raised), rgba(24, 28, 24, 0.72));
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(0,0,0,.18);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.job-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--blueprint); }
.job-card[data-status="blocked"]::before { background: var(--signal); }
.job-card[data-status="complete"]::before { background: var(--acid); }
.job-card:hover, .job-card:focus-visible { transform: translateX(5px); border-color: var(--paper-dim); outline: none; background: var(--ink-soft); }

.job-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.platform-badge, .status-badge { padding: 6px 8px 5px; border: 1px solid var(--line-strong); font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.54rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.status-badge { color: var(--blueprint); border-color: color-mix(in srgb, var(--blueprint) 45%, transparent); }
[data-status="blocked"] .status-badge { color: var(--signal); border-color: var(--signal); }
[data-status="complete"] .status-badge { color: var(--acid); border-color: var(--acid); }
.job-card h3 { margin: 0 0 8px; font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif; font-size: clamp(2.2rem, 4vw, 3.7rem); line-height: 0.9; text-transform: uppercase; }
.job-pitch { max-width: 48ch; margin: 0; color: var(--paper-dim); font-size: 0.8rem; line-height: 1.55; }
.job-card-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--acid); font-family: "SFMono-Regular", Consolas, monospace; font-size: .5rem; font-weight: 800; letter-spacing: .13em; }
.job-card-cta b { font-size: .8rem; transition: transform 180ms ease; }
.job-card:hover .job-card-cta b, .job-card:focus-visible .job-card-cta b { transform: translate(3px, -3px); }

.stage-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.stage-name { color: var(--paper); font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.stage-time, .repair-count { color: var(--paper-dim); font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.58rem; }
.stage-rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.stage-segment { height: 9px; background: var(--ink-soft); transition: background 400ms ease, transform 400ms ease; }
.stage-segment.passed { background: var(--blueprint); }
[data-status="complete"] .stage-segment.passed { background: var(--acid); }
[data-status="blocked"] .stage-segment.current { background: var(--signal); }
.stage-segment.current { transform: scaleY(1.55); background: var(--paper); }
.stage-labels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 8px; }
.stage-labels span { overflow: hidden; color: var(--paper-dim); font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.46rem; letter-spacing: 0.05em; text-overflow: ellipsis; text-transform: uppercase; }

.agent-strip { display: flex; gap: 7px; margin-top: 24px; }
.agent-chip { display: flex; gap: 7px; align-items: center; padding: 7px 9px; background: rgba(255,255,255,.035); color: var(--paper-dim); font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.52rem; }
.agent-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.agent-chip.running { color: var(--paper); }
.agent-chip.running i { background: var(--acid); box-shadow: 0 0 10px var(--acid); }
.agent-chip.failed i { background: var(--signal); }

.blocked-reason { grid-column: 1 / -1; margin: -8px 0 0; padding: 12px 14px; border-left: 3px solid var(--signal); background: rgba(255, 102, 64, 0.08); color: #ffc2b3; font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.64rem; line-height: 1.5; }

.empty-state { padding: 70px 30px; border: 1px dashed var(--line-strong); color: var(--paper-dim); text-align: center; font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.7rem; letter-spacing: 0.12em; }

.activity-panel { position: sticky; top: 96px; border: 1px solid var(--line-strong); background: rgba(24, 28, 24, 0.72); box-shadow: var(--shadow); }
.activity-header { display: flex; align-items: center; justify-content: space-between; padding: 22px; border-bottom: 1px solid var(--line); }
.activity-header .label { margin-bottom: 4px; }
.event-count { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--ink); background: var(--paper); font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif; font-weight: 900; }
.activity-list { max-height: 540px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.activity-item { display: grid; grid-template-columns: 11px 1fr; gap: 13px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border-bottom: 0; }
.activity-pin { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--blueprint); }
.activity-item[data-tone="success"] .activity-pin { background: var(--acid); }
.activity-item[data-tone="danger"] .activity-pin { background: var(--signal); }
.activity-item p { margin: 0 0 5px; font-size: 0.7rem; line-height: 1.4; }
.activity-item small { color: var(--paper-dim); font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.52rem; }

.drawer-scrim { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.76); backdrop-filter: blur(8px); }
.job-drawer { position: fixed; inset: 0 0 0 auto; z-index: 31; width: min(1120px, 96vw); padding: 34px clamp(24px, 4vw, 62px) 90px; overflow-y: auto; transform: translateX(102%); background: var(--paper); color: var(--ink); box-shadow: -20px 0 100px rgba(0,0,0,.62); transition: transform 330ms cubic-bezier(.16,.84,.28,1); }
.job-drawer.open { transform: translateX(0); }
.drawer-close { position: sticky; top: 0; z-index: 3; display: block; margin: 0 0 54px auto; padding: 9px 0 6px 18px; border: 0; border-bottom: 2px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; font-family: "SFMono-Regular", Consolas, monospace; font-size: .6rem; letter-spacing: .12em; }
.drawer-hero { position: relative; padding: 0 0 34px; }
.drawer-hero::after { content: "DOSSIER"; position: absolute; z-index: -1; right: 0; top: 20px; color: rgba(16,19,16,.045); font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif; font-size: clamp(7rem, 18vw, 14rem); font-weight: 900; line-height: .7; letter-spacing: -.04em; }
.drawer-kicker { color: #5f6159; font-family: "SFMono-Regular", Consolas, monospace; font-size: .63rem; letter-spacing: .14em; }
.job-drawer h2 { max-width: 760px; margin: 16px 0 10px; font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif; font-size: clamp(4.7rem, 9vw, 8.5rem); line-height: .76; letter-spacing: -.045em; text-transform: uppercase; }
.drawer-subtitle { margin: 0 0 28px; color: #5f6159; font-family: "SFMono-Regular", Consolas, monospace; font-size: .63rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.drawer-pitch { max-width: 72ch; margin: 0; font-family: "Avenir Next", Avenir, sans-serif; font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.62; }
.drawer-facts { display: grid; grid-template-columns: 1.1fr .8fr .8fr .7fr; margin-top: 38px; border: 1px solid rgba(16,19,16,.35); }
.drawer-facts > div { min-width: 0; padding: 16px; border-right: 1px solid rgba(16,19,16,.2); }
.drawer-facts > div:last-child { border-right: 0; }
.drawer-facts span, .brief-grid span, .scope-grid > article > span, .readiness-grid > article > span, .forecast-head span { display: block; margin-bottom: 7px; color: #64675d; font-family: "SFMono-Regular", Consolas, monospace; font-size: .5rem; letter-spacing: .13em; }
.drawer-facts strong { display: block; overflow-wrap: anywhere; font-size: .78rem; line-height: 1.4; }
.drawer-section { margin-top: 58px; padding-top: 24px; border-top: 3px solid var(--ink); }
.drawer-section-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 26px; }
.drawer-section-heading > span { color: #e15131; font-family: "SFMono-Regular", Consolas, monospace; font-size: .62rem; font-weight: 800; }
.drawer-section-heading p { margin: 0 0 3px; color: #64675d; font-family: "SFMono-Regular", Consolas, monospace; font-size: .52rem; letter-spacing: .16em; }
.drawer-section-heading h3 { margin: 0; font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif; font-size: clamp(2rem, 4vw, 3rem); line-height: .95; text-transform: uppercase; }
.screenshot-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-shot { min-width: 0; margin: 0; }
.product-shot a { display: grid; place-items: center; min-height: 280px; padding: 16px; overflow: hidden; border: 1px solid rgba(16,19,16,.28); background: #171a17; box-shadow: 0 18px 40px rgba(16,19,16,.16); }
.product-shot img { display: block; max-width: 100%; max-height: 600px; object-fit: contain; transition: transform 280ms cubic-bezier(.16,.84,.28,1); }
.product-shot a:hover img, .product-shot a:focus-visible img { transform: scale(1.025); }
.product-shot figcaption { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; color: #45483f; font-family: "SFMono-Regular", Consolas, monospace; font-size: .58rem; letter-spacing: .11em; text-transform: uppercase; }
.product-shot figcaption span { color: #e15131; font-weight: 900; }
.image-modal { width: min(1500px, 96vw); max-width: none; height: min(94vh, 1100px); max-height: none; padding: 54px 24px 24px; overflow: hidden; border: 1px solid var(--line-strong); background: #101310; color: var(--paper); box-shadow: 0 30px 120px rgba(0,0,0,.8); }
.image-modal::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(10px); }
.image-modal-close { position: absolute; top: 16px; right: 22px; padding: 8px 0 5px 18px; border: 0; border-bottom: 1px solid var(--paper); background: transparent; color: var(--paper); cursor: pointer; font: .58rem "SFMono-Regular", Consolas, monospace; letter-spacing: .12em; }
.image-modal figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; width: 100%; height: 100%; margin: 0; }
.image-modal img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.image-modal figcaption { padding-top: 13px; color: var(--paper-dim); font: .56rem "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.screenshot-empty { display: grid; place-items: center; min-height: 230px; padding: 34px; border: 1px dashed rgba(16,19,16,.38); text-align: center; }
.screenshot-empty span { font: 800 .62rem "SFMono-Regular", Consolas, monospace; letter-spacing: .14em; }
.screenshot-empty p { max-width: 46ch; margin: 10px 0 0; color: #64675d; font-size: .78rem; line-height: 1.55; }
.brief-grid { display: grid; grid-template-columns: 1.15fr .85fr; border: 1px solid rgba(16,19,16,.25); }
.brief-grid article { padding: 24px; border-right: 1px solid rgba(16,19,16,.2); border-bottom: 1px solid rgba(16,19,16,.2); }
.brief-grid article:nth-child(2) { border-right: 0; }
.brief-grid article:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.brief-grid p { max-width: 66ch; margin: 0; font-size: .9rem; line-height: 1.65; }
.brief-grid .brief-lead p { font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.7rem); font-weight: 800; line-height: 1.02; text-transform: uppercase; }
.reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(16,19,16,.28); }
.reason-card { min-width: 0; padding: 24px; border-right: 1px solid rgba(16,19,16,.2); }
.reason-card:last-child { border-right: 0; }
.reason-card > span { display: block; color: #e15131; font: 800 .58rem "SFMono-Regular", Consolas, monospace; }
.reason-card h4 { margin: 26px 0 10px; font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif; font-size: 1.6rem; line-height: 1; text-transform: uppercase; }
.reason-card p { margin: 0; color: #4d5048; font-size: .75rem; line-height: 1.62; }
.authorization-note { margin: 14px 0 0; padding-left: 14px; border-left: 3px solid #e15131; color: #5a5d54; font: .58rem/1.5 "SFMono-Regular", Consolas, monospace; }
.forecast-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.forecast-head strong { display: block; font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif; font-size: 4rem; line-height: .8; }
.forecast-head p { max-width: 42ch; margin: 0; color: #5f6159; font-size: .72rem; line-height: 1.5; text-align: right; }
.table-scroll { width: 100%; overflow-x: auto; }
.forecast-table, .run-table { width: 100%; border-collapse: collapse; font-family: "SFMono-Regular", Consolas, monospace; font-size: .62rem; }
.forecast-table th, .forecast-table td, .run-table th, .run-table td { padding: 12px 9px; border-bottom: 1px solid rgba(16,19,16,.16); text-align: left; white-space: nowrap; }
.forecast-table thead th, .run-table th { color: #64675d; font-size: .48rem; letter-spacing: .1em; }
.forecast-table tbody th { font-size: .58rem; text-transform: uppercase; }
.forecast-table tbody tr:nth-child(2) { background: rgba(201,242,74,.24); }
.forecast-note { margin: 12px 0 0; color: #64675d; font-size: .66rem; line-height: 1.55; }
.scope-grid, .readiness-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.scope-grid > article, .readiness-grid > article { padding: 22px; border: 1px solid rgba(16,19,16,.25); }
.scope-excluded { background: rgba(16,19,16,.045); }
.detail-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.detail-list li { position: relative; padding-left: 18px; color: #3e413a; font-size: .76rem; line-height: 1.5; }
.detail-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: #739600; }
.scope-excluded .detail-list li::before, .readiness-grid article:first-child .detail-list li::before { background: #e15131; }
.verification-summary { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin-top: 18px; padding: 18px 20px; background: var(--ink); color: var(--paper); }
.verification-summary strong { color: var(--acid); font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif; font-size: 2.2rem; }
.verification-summary p, .verification-summary span { margin: 0; }
.verification-summary p { font-size: .72rem; }
.verification-summary span { color: var(--paper-dim); font: .52rem "SFMono-Regular", Consolas, monospace; text-transform: uppercase; }
.verification-checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.verification-chip { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid rgba(16,19,16,.24); color: #55584f; font: .49rem "SFMono-Regular", Consolas, monospace; text-transform: uppercase; }
.verification-chip i { width: 6px; height: 6px; border-radius: 50%; background: #e15131; }
.verification-chip.passed i { background: #739600; }
.source-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid rgba(16,19,16,.25); }
.source-links a { position: relative; min-width: 0; padding: 18px 44px 18px 18px; border-right: 1px solid rgba(16,19,16,.2); border-bottom: 1px solid rgba(16,19,16,.2); color: var(--ink); text-decoration: none; }
.source-links a:nth-child(2n) { border-right: 0; }
.source-links span, .source-links strong { display: block; }
.source-links span { color: #64675d; font: .48rem "SFMono-Regular", Consolas, monospace; letter-spacing: .11em; }
.source-links strong { margin-top: 5px; overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.source-links b { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); }
.source-links a:hover, .source-links a:focus-visible { background: var(--ink); color: var(--paper); outline: none; }
.drawer-empty { margin: 0; color: #64675d; font-size: .76rem; line-height: 1.55; }
.dossier-ops { margin-bottom: 30px; }
.drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.drawer-data { padding: 14px; border: 1px solid rgba(16,19,16,.25); }
.drawer-data span { display: block; margin-bottom: 5px; color: #64675d; font-family: "SFMono-Regular", Consolas, monospace; font-size: .52rem; letter-spacing: .1em; text-transform: uppercase; }
.drawer-data strong { font-size: .82rem; overflow-wrap: anywhere; }
.dossier-ops .run-table { margin-top: 18px; }
.run-table td strong, .run-table td small { display: block; }
.run-table td small { margin-top: 4px; color: #64675d; font-size: .48rem; }
.execution-policy { margin-top: 18px; padding: 18px; border: 1px solid rgba(16,19,16,.28); background: rgba(16,19,16,.045); }
.execution-policy > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.execution-policy > div:first-child span { color: #64675d; font: .5rem "SFMono-Regular", Consolas, monospace; letter-spacing: .12em; }
.execution-policy > div:first-child strong { color: #b13f27; font: 800 .56rem "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; text-align: right; }
.execution-policy[data-locked="true"] > div:first-child strong { color: #5c7800; }
.execution-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; border: 1px solid rgba(16,19,16,.18); }
.execution-route { min-width: 0; padding: 14px; border-right: 1px solid rgba(16,19,16,.18); }
.execution-route:last-child { border-right: 0; }
.execution-route[data-active="false"] { background: rgba(225,81,49,.07); opacity: .68; }
.execution-route span, .execution-route strong, .execution-route p { display: block; }
.execution-route span { color: #64675d; font: .46rem "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.execution-route strong { margin-top: 7px; font-size: .76rem; }
.execution-route p { margin: 5px 0 0; color: #64675d; font: .5rem/1.45 "SFMono-Regular", Consolas, monospace; }

.error-banner { position: fixed; right: 20px; bottom: 20px; z-index: 40; max-width: 390px; padding: 14px 18px; border: 1px solid var(--signal); background: #2c1711; color: #ffd3c8; font-family: "SFMono-Regular", Consolas, monospace; font-size: .65rem; box-shadow: var(--shadow); }

.login-page { min-height: 100vh; overflow-x: hidden; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(360px, 640px); grid-template-rows: auto 1fr auto; gap: 40px 8vw; align-items: center; padding: 36px clamp(24px, 6vw, 100px); }
.login-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; font-family: "SFMono-Regular", Consolas, monospace; font-size: .68rem; font-weight: 700; letter-spacing: .19em; }
.login-brand span { display: grid; place-items: center; width: 50px; height: 50px; background: var(--acid); color: var(--ink); font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif; font-size: 1.3rem; letter-spacing: 0; }
.login-card { grid-column: 2; padding: clamp(30px, 5vw, 64px); border: 1px solid var(--line-strong); background: rgba(24, 28, 24, .84); box-shadow: var(--shadow); }
.login-card h1 { font-size: clamp(4.2rem, 9vw, 7.5rem); }
.login-copy { max-width: 42ch; margin: 34px 0; color: var(--paper-dim); line-height: 1.6; }
.login-form label { display: block; margin-bottom: 9px; color: var(--paper-dim); font-family: "SFMono-Regular", Consolas, monospace; font-size: .55rem; letter-spacing: .14em; }
.login-form input { width: 100%; padding: 15px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--ink); color: var(--paper); font: 1rem "SFMono-Regular", Consolas, monospace; }
.login-form input:focus { border-color: var(--acid); outline: 0; }
.login-form button { width: 100%; display: flex; justify-content: space-between; margin-top: 12px; padding: 15px; border: 0; background: var(--acid); color: var(--ink); cursor: pointer; font-family: "SFMono-Regular", Consolas, monospace; font-size: .62rem; font-weight: 900; letter-spacing: .11em; }
.login-form button:hover, .login-form button:focus-visible { background: var(--paper); outline: 0; }
.login-error { margin: 12px 0 0; color: #ff9d85; font-size: .72rem; }
.login-footnote { grid-column: 1 / -1; margin: 0; color: var(--paper-dim); font-family: "SFMono-Regular", Consolas, monospace; font-size: .5rem; letter-spacing: .15em; }

@keyframes pulse { 0%, 100% { opacity: .5; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.2); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 980px) {
  .masthead { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .floor-grid { grid-template-columns: 1fr; }
  .activity-panel { position: static; }
  .questions-list { grid-template-columns: 1fr; }
  .pipeline-list { grid-template-columns: 1fr; }
  .pipeline-card { border-right: 0; }
  .question-card { border-right: 0; }
  .reason-grid { grid-template-columns: 1fr; }
  .reason-card { border-right: 0; border-bottom: 1px solid rgba(16,19,16,.2); }
  .reason-card:last-child { border-bottom: 0; }
}

@media (max-width: 680px) {
  .topbar { min-height: 58px; }
  .brand-mark { width: 58px; }
  .brand-type { display: none; }
  .system-strip { gap: 8px; padding-left: 12px; }
  .inbox-link, .pipeline-link { padding: 0 8px; font-size: 0; }
  .inbox-link span, .pipeline-link span { font-size: .62rem; }
  .strip-divider, #connection-label { display: none; }
  .refresh-button { padding: 0 12px; }
  main { padding: 34px 16px 60px; }
  h1 { font-size: clamp(4.4rem, 23vw, 7rem); }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 132px; padding: 17px; }
  .metric strong { font-size: 3.6rem; }
  .control-row { align-items: flex-start; flex-direction: column; }
  .inbox-heading { align-items: flex-start; flex-direction: column; }
  .pipeline-heading { align-items: flex-start; flex-direction: column; }
  .pipeline-heading-copy { text-align: left; }
  .question-card { padding: 22px; }
  .pipeline-card { padding: 22px; }
  .pipeline-card-head { flex-direction: column; }
  .pipeline-price { max-width: 100%; font-size: 1.8rem; white-space: normal; overflow-wrap: anywhere; }
  .pipeline-context { grid-template-columns: 1fr; }
  .pipeline-context div { border-right: 0; border-bottom: 1px solid var(--line); }
  .pipeline-context div:last-child { border-bottom: 0; }
  .filters { width: 100%; overflow-x: auto; }
  .filter { flex: 1; padding-inline: 10px; }
  .job-card { grid-template-columns: 1fr; gap: 28px; padding: 22px; }
  .job-card h3 { font-size: 2.8rem; }
  .stage-labels span { font-size: .4rem; }
  .agent-strip { flex-wrap: wrap; }
  .job-drawer { width: 100vw; padding: 22px 16px 70px; }
  .drawer-close { margin-bottom: 36px; }
  .drawer-facts { grid-template-columns: 1fr 1fr; }
  .drawer-facts > div { border-bottom: 1px solid rgba(16,19,16,.2); }
  .drawer-facts > div:nth-child(2n) { border-right: 0; }
  .screenshot-gallery, .scope-grid, .readiness-grid, .source-links { grid-template-columns: 1fr; }
  .product-shot a { min-height: 220px; padding: 10px; }
  .brief-grid { grid-template-columns: 1fr; }
  .brief-grid article, .brief-grid article:nth-child(2), .brief-grid article:last-child { grid-column: 1; border-right: 0; border-bottom: 1px solid rgba(16,19,16,.2); }
  .brief-grid article:last-child { border-bottom: 0; }
  .forecast-head { align-items: flex-start; flex-direction: column; }
  .forecast-head p { text-align: left; }
  .verification-summary { grid-template-columns: 1fr; gap: 5px; }
  .source-links a { border-right: 0; }
  .drawer-grid { grid-template-columns: 1fr; }
  .execution-policy > div:first-child { align-items: flex-start; flex-direction: column; }
  .execution-policy > div:first-child strong { text-align: left; }
  .execution-routes { grid-template-columns: 1fr; }
  .execution-route { border-right: 0; border-bottom: 1px solid rgba(16,19,16,.18); }
  .execution-route:last-child { border-bottom: 0; }
  .login-shell { display: block; min-height: 100vh; padding: 22px 16px 40px; }
  .login-card { margin-top: 54px; padding: 28px 22px; }
  .login-footnote { margin-top: 34px; }
}
