/* ============================================================
   PHOENIX ECHO — live-contract room styles
   Lanes · Models · Gauntlet · River · Heatmap · Trophies
   ============================================================ */

/* ---------- Lane Pulse · three lanes ---------- */
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .lanes { grid-template-columns: 1fr; } }
.lane {
  padding: 16px 18px; border-radius: var(--r-4); position: relative; overflow: hidden;
  background: linear-gradient(165deg, rgba(34,27,22,0.6), rgba(20,15,12,0.6));
  border: 1px solid var(--a-line);
}
.lane__head { display: flex; align-items: center; gap: 9px; }
.lane__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rd-live); box-shadow: 0 0 8px var(--rd-live); }
.lane__head b { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--text-0); }
.lane__proto { margin-left: auto; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rd-half); border: 1px solid rgba(250,204,21,0.3); padding: 2px 8px; border-radius: var(--r-pill); }
.lane__host { font-family: var(--font-mono); font-size: 11px; color: var(--a); margin-top: 4px; }
.lane__row { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.lane__ms b { font-family: var(--font-display); font-size: 22px; color: var(--text-0); display: block; line-height: 1; }
.lane__ms span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rd-live); }
.lane__foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--stroke-0); font-family: var(--font-mono); font-size: 9.5px; color: var(--text-dim); }

/* ---------- Models · Routing ---------- */
.route-meter-wrap { max-width: 720px; }
.route-meter { position: relative; height: 10px; border-radius: var(--r-pill); background: var(--bg-4); overflow: visible; }
.route-meter__fill { height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, #2c7a4f, var(--rd-live)); }
.route-meter__mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text-3); }
.route-meter__mark--target { background: var(--gold-3); box-shadow: 0 0 6px var(--gold-3); }
.route-meter__legend { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }

.fleet-table { border: 1px solid var(--stroke-1); border-radius: var(--r-3); overflow: hidden; }
.fleet-row { display: grid; grid-template-columns: 1.3fr 1.5fr 1fr 0.5fr 0.6fr 1.3fr; gap: 10px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--stroke-0); font-size: 12px; }
.fleet-row:last-child { border-bottom: 0; }
.fleet-row--head { background: rgba(10,8,7,0.45); font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.fleet-row__id { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-0); }
.fleet-row__dim { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
.fleet-row__intent { font-family: var(--font-mono); font-size: 10px; color: var(--rd-half); }
.fleet-row__cloud { font-family: var(--font-mono); font-size: 10px; color: var(--steel-3, #6f9fce); }
.tag--plain { background: var(--bg-3); border-color: var(--stroke-1); color: var(--text-2); }
.rule-role { font-family: var(--font-mono); font-size: 11px; color: var(--gold-4); min-width: 96px; }
.rule-chain { font-family: var(--font-mono); font-size: 11px; color: var(--text-1); }
.gaps { margin: 0; padding-left: 0; list-style: none; }
.gaps li { position: relative; padding: 7px 0 7px 18px; font-size: 12px; color: var(--text-2); border-bottom: 1px solid var(--stroke-0); }
.gaps li:last-child { border-bottom: 0; }
.gaps li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--rd-half); }

/* ---------- Gauntlet ---------- */
.gnt-mission { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--text-0); margin: 4px 0 18px; line-height: 1.25; }
.gnt-builders { display: flex; flex-direction: column; gap: 9px; }
.gnt-builder { display: grid; grid-template-columns: 168px 1fr 42px; gap: 12px; align-items: center; }
.gnt-builder__name { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-2); }
.gnt-builder__bar { height: 7px; border-radius: var(--r-pill); background: var(--bg-4); overflow: hidden; }
.gnt-builder__bar > div { height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, #8a3b22, var(--a, #e8623a)); transition: width 400ms ease; }
.gnt-builder__pct { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); text-align: right; }
.gnt-reviewer { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 13px 16px; border: 1px solid var(--stroke-gold); border-radius: var(--r-3); background: rgba(201,163,92,0.05); }
.gnt-reviewer__label { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-3); }
.gnt-reviewer b { font-family: var(--font-mono); font-size: 12px; color: var(--text-0); }
.gnt-reviewer__note { font-size: 12px; color: var(--text-2); flex: 1; }
.verdict { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; padding: 2px 9px; border-radius: var(--r-pill); border: 1px solid; text-transform: uppercase; }
.verdict--pass { color: var(--rd-live); border-color: rgba(74,222,128,0.4); }
.verdict--hold { color: var(--rd-blocked); border-color: rgba(239,68,68,0.4); }
.verdict--pending { color: var(--rd-half); border-color: rgba(250,204,21,0.35); }
.gnt-runs { display: flex; flex-direction: column; gap: 8px; }
.gnt-run { text-align: left; padding: 12px 14px; border-radius: var(--r-3); border: 1px solid var(--stroke-1); background: rgba(24,19,16,0.5); transition: border-color 120ms, background 120ms; }
.gnt-run:hover { background: rgba(45,36,28,0.55); }
.gnt-run--sel { border-color: var(--a-line); background: var(--a-soft); }
.gnt-run__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gnt-run__id { font-family: var(--font-mono); font-size: 10.5px; color: var(--a); }
.gnt-run__mission { font-size: 12.5px; color: var(--text-1); margin-top: 5px; }
.gnt-run__meta { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-dim); margin-top: 4px; }

/* ---------- Worklog River ---------- */
.river-filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.river-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid var(--stroke-1); background: rgba(24,19,16,0.5); color: var(--text-2); font-size: 11.5px; transition: border-color 120ms, background 120ms; }
.chip:hover { background: rgba(45,36,28,0.6); color: var(--text-0); }
.chip--on { border-color: var(--a-line, var(--accent-line)); background: var(--a-soft, var(--accent-soft)); color: var(--text-0); }
.river { display: flex; flex-direction: column; }
.river-row { display: grid; grid-template-columns: 48px 118px 92px 1fr; gap: 12px; align-items: baseline; padding: 11px 4px; border-bottom: 1px solid var(--stroke-0); }
.river-row:last-child { border-bottom: 0; }
.river-row__t { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); }
.river-row__agent { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; font-family: var(--font-mono); font-size: 10.5px; color: var(--a); text-align: left; }
.river-row__agent:hover { text-decoration: underline; }
.river-row__level { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.river-row__level--info { color: var(--text-3); }
.river-row__level--tool { color: var(--steel-3, #6f9fce); }
.river-row__level--decision { color: var(--rd-live); }
.river-row__level--blocker { color: var(--rd-blocked); }
.river-row__level--handoff { color: var(--gold-3); }
.river-row__level--assumption { color: var(--rd-half); }
.river-row__text { font-size: 12.5px; color: var(--text-1); line-height: 1.45; }
.river-empty { padding: 28px 0; text-align: center; font-size: 12.5px; color: var(--text-3); }

/* ---------- Readiness Heatmap ---------- */
.heat-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.heat-legend__item { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.heat-cellswatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.heat-group { margin-bottom: 24px; }
.heat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 7px; }
.heat-cell { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: var(--r-2); border: 1px solid; min-width: 0; }
.heat-cell__method { font-family: var(--font-mono); font-size: 8px; font-weight: 600; letter-spacing: 0.06em; opacity: 0.75; flex-shrink: 0; }
.heat-cell__path { font-family: var(--font-mono); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heat-cell[data-state="live"], .heat-cellswatch[data-state="live"]         { background: rgba(74,222,128,0.10); border: 1px solid rgba(74,222,128,0.36); color: var(--rd-live); }
.heat-cell[data-state="half"], .heat-cellswatch[data-state="half"]         { background: rgba(250,204,21,0.08); border: 1px solid rgba(250,204,21,0.30); color: var(--rd-half); }
.heat-cell[data-state="scaffold"], .heat-cellswatch[data-state="scaffold"] { background: rgba(251,146,60,0.07); border: 1px solid rgba(251,146,60,0.26); color: var(--rd-scaffold); }
.heat-cell[data-state="mock"], .heat-cellswatch[data-state="mock"]         { background: rgba(96,165,250,0.07); border: 1px solid rgba(96,165,250,0.28); color: var(--rd-mock); }
.heat-cell[data-state="blocked"], .heat-cellswatch[data-state="blocked"]   { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.32); color: var(--rd-blocked); }
.heat-cell[data-state="needs"], .heat-cellswatch[data-state="needs"]       { background: rgba(132,120,98,0.07); border: 1px solid rgba(132,120,98,0.3); color: var(--rd-needs); }
.heat-cell[data-state="unreachable"]                                      { background: rgba(239,68,68,0.12); border: 1px dashed rgba(239,68,68,0.48); color: var(--rd-blocked); }

/* ---------- Gauntlet side panel ---------- */
.gnt-panel__scroll { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 16px; }
.gnt-exec { display: flex; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--a-line); border-radius: var(--r-4); background: linear-gradient(165deg, var(--a-soft), rgba(20,15,12,0.4)); }
.gnt-exec__av { width: 54px; height: 54px; border-radius: var(--r-3); box-shadow: 0 0 20px var(--a-glow); }
.gnt-exec__id { display: flex; flex-direction: column; gap: 3px; }
.gnt-exec__label { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--a); }
.gnt-exec__id b { font-family: var(--font-mono); font-size: 13px; color: var(--text-0); }
.gnt-panel__mission { font-size: 12px; color: var(--text-2); line-height: 1.45; padding: 0 2px; }
.gnt-panel__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gnt-panel__col { display: flex; flex-direction: column; gap: 8px; }
.gnt-agent { padding: 10px 11px; border: 1px solid var(--stroke-1); border-radius: var(--r-3); background: rgba(24,19,16,0.55); display: flex; flex-direction: column; gap: 7px; }
.gnt-agent__sig { color: var(--a); }
.gnt-agent__name { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gnt-agent__pct { font-family: var(--font-mono); font-size: 9px; color: var(--text-3); text-align: right; }
.gnt-panel__witness { display: flex; align-items: baseline; gap: 8px; padding: 11px 13px; border: 1px dashed var(--stroke-2); border-radius: var(--r-3); font-size: 11px; color: var(--text-3); }
.gnt-panel__witness span:first-child { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.gnt-panel__witness b { color: var(--gold-4); font-family: var(--font-mono); font-size: 11px; }

/* ---------- Trophy Wall ---------- */
.trophies { display: flex; flex-direction: column; gap: 8px; }
.trophy { display: flex; align-items: baseline; gap: 14px; padding: 12px 15px; border: 1px solid var(--stroke-1); border-radius: var(--r-3); background: rgba(24,19,16,0.5); }
.trophy__sha { font-family: var(--font-mono); font-size: 10px; color: var(--a); flex-shrink: 0; }
.trophy__body { flex: 1; min-width: 0; }
.trophy__what { font-size: 12.5px; color: var(--text-0); }
.trophy__detail { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.trophy__t { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-dim); flex-shrink: 0; }

/* Lane cards: the dot is a liveness indicator, so it must not be green until the
   lane has answered. */
.lane__head[data-measured="no"] .lane__dot{background:var(--text-dim);box-shadow:none}
.lane__head[data-measured="no"] .lane__proto{color:var(--text-dim)}
.lane__nospark{font-family:var(--font-mono);font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--text-dim)}
