:root {
  --bg: #0d1017;
  --bar: #0a0e15;
  --panel: #141c27;
  --panel2: #182231;
  --panel3: #202b3a;
  --line: #303c4d;
  --line2: #4b5b70;
  --text: #eef3f5;
  --soft: #c9d4dc;
  --muted: #9ca9b5;
  --dim: #6f7d89;
  --green: #37c978;
  --green-bg: #123525;
  --amber: #ffbd55;
  --amber-bg: #392b16;
  --red: #ff6671;
  --red-bg: #3b1e27;
  --cyan: #62d7e7;
  --cyan-bg: #12343c;
  --blue: #86acff;
  --blue-bg: #192949;
  --violet: #c79bff;
  --violet-bg: #2d2442;
  --shadow: rgba(0, 0, 0, .34);
  --side-bg: rgba(8, 12, 18, .94);
  --top-bg: rgba(12, 16, 23, .9);
  --control-bg: #121a25;
  --nav-hover-bg: #172231;
  --embedded-bg: #0b1018;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7f9;
  --bar: #ffffff;
  --panel: #ffffff;
  --panel2: #eef1f5;
  --panel3: #e6ebf2;
  --line: #d7dde6;
  --line2: #b9c4d3;
  --text: #18202b;
  --soft: #334155;
  --muted: #697383;
  --dim: #8792a3;
  --green: #1f9d55;
  --green-bg: #e8f7ee;
  --amber: #b7791f;
  --amber-bg: #fff4d6;
  --red: #d92d3f;
  --red-bg: #fff0f1;
  --cyan: #0f8da3;
  --cyan-bg: #e8f8fb;
  --blue: #315fcb;
  --blue-bg: #e8efff;
  --violet: #7c3fc5;
  --violet-bg: #f1e9ff;
  --shadow: rgba(15, 23, 42, .12);
  --side-bg: rgba(246, 247, 249, .94);
  --top-bg: rgba(255, 255, 255, .92);
  --control-bg: #f8fafc;
  --nav-hover-bg: #e8eef8;
  --embedded-bg: #ffffff;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 260px),
    linear-gradient(135deg, rgba(98,215,231,.045), rgba(255,189,85,.032) 46%, rgba(55,201,120,.035)),
    var(--bg);
  font: 13px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  letter-spacing: 0;
}
:root[data-theme="light"] body {
  background:
    linear-gradient(180deg, rgba(15,23,42,.045), rgba(15,23,42,0) 260px),
    linear-gradient(135deg, rgba(15,141,163,.035), rgba(183,121,31,.026) 46%, rgba(31,157,85,.032)),
    var(--bg);
}
:root[data-theme="light"] .segmented,
:root[data-theme="light"] .search input,
:root[data-theme="light"] .panel,
:root[data-theme="light"] .operator-card,
:root[data-theme="light"] .kpi,
:root[data-theme="light"] .sprint-tab,
:root[data-theme="light"] .scope-picker-btn,
:root[data-theme="light"] .sprint-picker,
:root[data-theme="light"] .drawer,
:root[data-theme="light"] .drawer-collapse,
:root[data-theme="light"] .detail-card,
:root[data-theme="light"] .detail-field {
  background: var(--panel);
}
:root[data-theme="light"] .operator-card.primary,
:root[data-theme="light"] .sprint-tab.inflight,
:root[data-theme="light"] .sprint-tab.active {
  background: color-mix(in srgb, var(--cyan-bg) 36%, var(--panel));
}
:root[data-theme="light"] input,
:root[data-theme="light"] .closed-step,
:root[data-theme="light"] .scope-candidate,
:root[data-theme="light"] .adjacent-item,
:root[data-theme="light"] .quiet-completion,
:root[data-theme="light"] .actor,
:root[data-theme="light"] .operator-card,
:root[data-theme="light"] .kpi,
:root[data-theme="light"] .sprint-tab,
:root[data-theme="light"] .cmd,
:root[data-theme="light"] .row {
  background: #ffffff;
  color: var(--text);
}
:root[data-theme="light"] .panel {
  border-color: rgba(148,163,184,.28);
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
}
:root[data-theme="light"] .panel-head,
:root[data-theme="light"] .closed-flow,
:root[data-theme="light"] .closed-footer {
  border-color: rgba(148,163,184,.26);
}
:root[data-theme="light"] .panel-title,
:root[data-theme="light"] .closed-step strong,
:root[data-theme="light"] .cmd strong,
:root[data-theme="light"] .sentinel-state strong,
:root[data-theme="light"] .actor strong {
  color: var(--text);
}
:root[data-theme="light"] .panel-sub,
:root[data-theme="light"] .closed-footer p,
:root[data-theme="light"] .closed-step .step-detail,
:root[data-theme="light"] .cmd span,
:root[data-theme="light"] .scope-candidate span,
:root[data-theme="light"] .adjacent-item span,
:root[data-theme="light"] .quiet-completion span {
  color: var(--muted);
}
:root[data-theme="light"] .closed-flow,
:root[data-theme="light"] .closed-footer,
:root[data-theme="light"] .evidence-collapsed,
:root[data-theme="light"] .hero-workspace > aside .panel {
  background: #ffffff;
}
:root[data-theme="light"] .closed-step,
:root[data-theme="light"] .scope-candidate,
:root[data-theme="light"] .adjacent-item,
:root[data-theme="light"] .quiet-completion,
:root[data-theme="light"] .cmd,
:root[data-theme="light"] .actor {
  border-color: rgba(148,163,184,.30);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow: 0 8px 20px rgba(15,23,42,.06);
}
:root[data-theme="light"] .closed-step:hover,
:root[data-theme="light"] .cmd:hover {
  border-color: rgba(15,141,163,.42);
  background: linear-gradient(180deg, rgba(236,253,255,.98), rgba(255,255,255,.96));
}
:root[data-theme="light"] .closed-step:after {
  color: rgba(15,141,163,.48);
}

.fleet-lens {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 18px;
  padding: 18px 20px 28px;
}
.fleet-head,
.fleet-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.fleet-head h2,
.fleet-section-head h3,
.fleet-head p,
.fleet-section-head p { margin: 0; }
.fleet-head h2 { font-size: 20px; }
.fleet-section-head h3 { font-size: 15px; }
.fleet-head p,
.fleet-section-head p { color: var(--muted); }
.fleet-eyebrow {
  display: block;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}
.fleet-head-actions { display: flex; align-items: center; gap: 8px; }
.fleet-head-actions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--control-bg);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.fleet-head-actions button:hover,
.fleet-head-actions button:focus-visible { border-color: var(--cyan); outline: none; }
.fleet-state {
  min-width: 76px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
}
.fleet-state.is-current { border-color: color-mix(in srgb, var(--green) 55%, var(--line)); color: var(--green); }
.fleet-state.is-unavailable { border-color: color-mix(in srgb, var(--red) 55%, var(--line)); color: var(--red); }
.fleet-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
}
.fleet-kpi {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}
.fleet-kpi:last-child { border-right: 0; }
.fleet-kpi span { display: block; color: var(--muted); font-size: 11px; }
.fleet-kpi strong { display: block; margin-top: 2px; font-size: 18px; }
.fleet-agents { display: grid; gap: 10px; }
.fleet-agent-list { border-top: 1px solid var(--line); }
.fleet-agent-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.25fr) minmax(150px, 1fr) minmax(160px, 1fr) minmax(240px, 1.8fr);
  gap: 14px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.fleet-agent-row:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.fleet-agent-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fleet-agent-identity img { width: 30px; height: 30px; object-fit: contain; }
.fleet-agent-identity strong,
.fleet-agent-identity span,
.fleet-agent-field strong,
.fleet-agent-field span { display: block; overflow-wrap: anywhere; }
.fleet-agent-identity span,
.fleet-agent-field span { color: var(--muted); font-size: 11px; }
.fleet-agent-field { min-width: 0; }
.fleet-activity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.fleet-activity i { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.fleet-activity--busy i { background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent); }
.fleet-activity--idle i { background: var(--cyan); }
.fleet-activity--stale i { background: var(--amber); }
.fleet-activity strong,
.fleet-activity span { display: block; overflow-wrap: anywhere; }
.fleet-activity span { color: var(--muted); font-size: 11px; }
.fleet-profile-history {
  grid-column: 1 / -1;
  min-width: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.fleet-profile-history summary {
  min-height: 36px;
  padding: 9px 0;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.fleet-profile-history ol { margin: 0; padding: 0; list-style: none; }
.fleet-profile-history.is-empty,
.fleet-profile-history.is-unavailable {
  padding: 9px 0 0;
  font-size: 11px;
}
.fleet-profile-history.is-unavailable { color: var(--red); }
.fleet-profile-history.is-unavailable strong,
.fleet-profile-history.is-unavailable span { display: block; }
.fleet-profile-entry {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(120px, .8fr) minmax(190px, 1.35fr) minmax(170px, 1.2fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  font-size: 11px;
}
.fleet-profile-entry--material_downgrade { border-left: 3px solid var(--red); padding-left: 8px; }
.fleet-profile-entry--classification_required { border-left: 3px solid var(--amber); padding-left: 8px; }
.fleet-profile-transition strong,
.fleet-profile-transition span,
.fleet-profile-ranks strong,
.fleet-profile-ranks span,
.fleet-profile-source strong,
.fleet-profile-source span,
.fleet-profile-catalog strong,
.fleet-profile-catalog span { display: block; overflow-wrap: anywhere; }
.fleet-profile-transition strong,
.fleet-profile-ranks strong,
.fleet-profile-source strong,
.fleet-profile-catalog strong { color: var(--text); }
.fleet-profile-sprints {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fleet-profile-sprint {
  padding: 3px 6px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.fleet-empty,
.fleet-unavailable {
  padding: 18px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.fleet-unavailable { border-left: 4px solid var(--red); }
.fleet-unavailable strong,
.fleet-unavailable span { display: block; }
.fleet-lens .crew-overview { width: 100%; }

@media (max-width: 900px) {
  .fleet-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet-kpi { border-bottom: 1px solid var(--line); }
  .fleet-agent-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fleet-profile-entry { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .fleet-lens { padding: 14px 12px 24px; }
  .fleet-head { align-items: stretch; flex-direction: column; }
  .fleet-head-actions { justify-content: space-between; }
  .fleet-head-actions button { min-height: 44px; }
  .fleet-kpis { grid-template-columns: 1fr 1fr; }
  .fleet-agent-row { grid-template-columns: 1fr; gap: 8px; padding: 12px 8px; }
  .fleet-profile-history summary { min-height: 44px; }
  .fleet-profile-entry { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .fleet-activity--busy i { animation: none; }
}
:root[data-theme="light"] .sentinel-state {
  border-color: rgba(183,121,31,.34);
  background: linear-gradient(180deg, rgba(255,247,237,.96), rgba(255,255,255,.94));
  color: var(--text);
}
:root[data-theme="light"] .sentinel-state strong {
  color: #92400e;
}
:root[data-theme="light"] .sprint-tab.inflight {
  background: linear-gradient(180deg, rgba(22,163,74,.10), rgba(255,255,255,.88)), #ffffff;
}
:root[data-theme="light"] .sprint-tab.active {
  background: linear-gradient(180deg, rgba(15,141,163,.12), rgba(255,255,255,.90)), #ffffff;
}
:root[data-theme="light"] .scope-work-scroll:before {
  background: linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,0));
}
:root[data-theme="light"] .scope-work-scroll:after {
  background: linear-gradient(270deg, rgba(255,255,255,.98), rgba(255,255,255,0));
}
:root[data-theme="light"] .scope-work-strip .sprint-tab:not(.active) {
  opacity: .78;
  filter: saturate(.54) contrast(.88) brightness(1.04);
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(244,248,251,.72)),
    color-mix(in srgb, var(--panel2) 58%, #ffffff);
  border-color: rgba(148,163,184,.24);
  color: color-mix(in srgb, var(--text) 70%, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), 0 8px 24px rgba(15,23,42,.08);
}
:root[data-theme="light"] .scope-work-strip .sprint-tab.inflight:not(.active) {
  border-color: rgba(31,157,85,.20);
  box-shadow: inset 4px 0 0 rgba(31,157,85,.36), inset 0 0 0 1px rgba(255,255,255,.70), 0 8px 24px rgba(15,23,42,.08);
}
:root[data-theme="light"] .scope-work-strip .sprint-tab:not(.active) .tag {
  background: rgba(255,255,255,.46);
  border-color: rgba(148,163,184,.24);
  color: color-mix(in srgb, var(--muted) 62%, #ffffff);
}
:root[data-theme="light"] .scope-work-strip .sprint-tab:not(.active):hover,
:root[data-theme="light"] .scope-work-strip .sprint-tab:not(.active):focus-visible {
  opacity: .94;
  filter: saturate(.72) contrast(.94) brightness(1.02);
  color: var(--text);
}
:root[data-theme="light"] .drawer,
:root[data-theme="light"] .graph-plan-window,
:root[data-theme="light"] .graph-unblock-window {
  background: color-mix(in srgb, var(--panel) 94%, transparent);
}
:root[data-theme="light"] .agent-status-header__group,
:root[data-theme="light"] .operator-strip,
:root[data-theme="light"] .scope-block,
:root[data-theme="light"] .wait-panel,
:root[data-theme="light"] .closed-scene,
:root[data-theme="light"] .detail-stack,
:root[data-theme="light"] .row {
  background: var(--panel);
}
:root[data-theme="light"] .agent-status-chip,
:root[data-theme="light"] .agent-status-header__summary,
:root[data-theme="light"] .agent-status-header__seat,
:root[data-theme="light"] .closed-agent,
:root[data-theme="light"] .closed-relation-label,
:root[data-theme="light"] .graph-node-label,
:root[data-theme="light"] .graph-edge-marker,
:root[data-theme="light"] .closed-scene-hud {
  background: color-mix(in srgb, var(--panel2) 74%, var(--panel));
  color: var(--text);
}
:root[data-theme="light"] .closed-graph,
:root[data-theme="light"] .active-graph {
  background: transparent;
  box-shadow: none;
}
:root[data-theme="light"] .closed-scene {
  background:
    radial-gradient(circle at 22% 28%, rgba(15,141,163,.09), transparent 30%),
    radial-gradient(circle at 78% 38%, rgba(31,157,85,.07), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(237,242,247,.96));
}
:root[data-theme="light"] .active-scene {
  background:
    radial-gradient(circle at 18% 42%, rgba(183,121,31,.11), transparent 24%),
    radial-gradient(circle at 82% 38%, rgba(15,141,163,.10), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(237,242,247,.97));
}
:root[data-theme="light"] .closed-scene:before {
  background-image:
    linear-gradient(rgba(15,141,163,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,141,163,.055) 1px, transparent 1px);
  opacity: .48;
}
:root[data-theme="light"] .closed-webgl {
  mix-blend-mode: multiply;
}
:root[data-theme="light"] .artifact,
:root[data-theme="light"] .evidence-cta,
:root[data-theme="light"] .tag,
:root[data-theme="light"] .pill {
  background: color-mix(in srgb, var(--cyan-bg) 28%, var(--panel));
}
:root[data-theme="light"] .plan-item {
  background: #ffffff;
  border-color: rgba(148,163,184,.28);
  color: var(--text);
}
:root[data-theme="light"] .plan-item:hover {
  background: color-mix(in srgb, var(--cyan-bg) 20%, #ffffff);
  border-color: rgba(15,141,163,.38);
}
:root[data-theme="light"] .plan-item.good .plan-mark {
  color: #166534;
  border-color: rgba(31,157,85,.36);
  background: #ecfdf5;
  box-shadow: 0 0 16px rgba(31,157,85,.14);
}
:root[data-theme="light"] .plan-item.warn .plan-mark {
  color: #92400e;
  border-color: rgba(183,121,31,.34);
  background: #fff7ed;
}
:root[data-theme="light"] .plan-item.bad .plan-mark {
  color: #9f1239;
  border-color: rgba(217,45,63,.32);
  background: #fff1f2;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 72px minmax(0, 1fr); }
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 12px 10px;
  background: var(--side-bg);
  border-right: 1px solid var(--line);
  display: grid;
  align-content: start;
  gap: 10px;
}
.nav {
  display: grid;
  gap: 8px;
}
.nav button {
  position: relative;
  width: 52px;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  gap: 2px;
}
.nav button strong { font-size: 16px; line-height: 1; }
.nav button span { font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.nav button[data-section="sprints"],
.nav button[data-section="sentinel"] { position: relative; }
.nav button[data-section="sentinel"] { justify-items: start; padding: 0 4px; }
.nav button[data-section="sentinel"] strong { justify-self: center; }
.nav button[data-section="sentinel"] > .nav-label { width: 100%; overflow: hidden; text-align: left; white-space: nowrap; font-size: 8px; letter-spacing: 0; }
.nav button .nav-unread { position: absolute; top: -8px; right: -8px; display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border: 2px solid var(--side-bg); border-radius: 999px; padding: 0 4px; background: #df3548; color: #fff; font-size: 10px; font-weight: 900; line-height: 1; letter-spacing: 0; text-transform: none; box-shadow: 0 0 0 1px rgba(255,111,125,.38); }
.nav button .nav-unread[hidden] { display: none; }
.nav button .nav-unread.degraded,
.roof-warning.degraded { background: #692937; color: #ffd9dd; border-color: #a34c5d; }
.nav button.active,
.nav button:hover {
  color: var(--text);
  border-color: var(--line2);
  background: var(--nav-hover-bg);
}
.main { min-width: 0; }
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: var(--top-bg);
  backdrop-filter: blur(18px);
}
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 22px 10px;
}
.title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.title-code {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid rgba(98,215,231,.42);
  display: grid;
  place-items: center;
  background: rgba(98,215,231,.08);
  color: var(--cyan);
  font-size: 18px;
  font-weight: 850;
  flex: 0 0 auto;
}
h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: 0;
}
.subline {
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.pill,
.mode,
.icon-btn {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--control-bg);
  color: var(--soft);
  padding: 6px 9px;
}
.generated-pill {
  white-space: nowrap;
  color: var(--muted);
}
.icon-btn {
  width: 34px;
  padding: 0;
}
.icon-btn:hover,
.pill.action:hover,
.mode button:hover {
  border-color: rgba(98,215,231,.54);
  color: var(--text);
}
.pill.refresh-degraded {
  color: #ffdc98;
  border-color: rgba(255,189,85,.62);
}
.pill.refresh-stale {
  color: #ffd9dd;
  border-color: rgba(255,92,110,.72);
  background: rgba(105,41,55,.42);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(55,201,120,.14);
}
.status-dot.waiting { background: var(--amber); box-shadow: 0 0 0 3px rgba(255,189,85,.14); }
.status-dot.risk { background: var(--red); box-shadow: 0 0 0 3px rgba(255,102,113,.14); }
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px 14px;
}
.segmented {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #0d141e;
}
.segmented button {
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  min-height: 30px;
  padding: 5px 10px;
}
.segmented button:last-child { border-right: 0; }
.segmented button.active {
  color: var(--text);
  background: var(--cyan-bg);
}
.search {
  width: min(330px, 42vw);
  min-width: 190px;
}
.search input {
  width: 100%;
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0a1018;
  color: var(--text);
  padding: 0 10px;
}
.authority-filter {
  display: inline-grid;
  gap: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}
.authority-filter select {
  min-height: 32px;
  max-width: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a1018;
  color: var(--text);
  padding: 4px 28px 4px 8px;
  font-size: 11px;
  text-transform: none;
}
.content {
  padding: 14px 20px 38px;
  min-width: 0;
}
.operator-strip {
  display: grid;
  grid-template-columns: minmax(360px, 1.55fr) minmax(96px, .34fr) minmax(122px, .42fr) minmax(104px, .36fr);
  gap: 7px;
  margin-bottom: 8px;
}
.operator-card {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), #111923;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
}
.operator-card.primary {
  border-color: rgba(98,215,231,.38);
  background: linear-gradient(180deg, rgba(98,215,231,.09), rgba(255,255,255,.01)), #111923;
}
.operator-card strong {
  flex: 0 1 auto;
  min-width: 0;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operator-card span {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operator-card:not(.primary) span {
  flex: 0 0 auto;
  max-width: 68px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 9px;
}
.overview-band {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.kpi {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #121a24;
  padding: 7px 9px;
  display: grid;
  align-content: center;
  gap: 2px;
}
.kpi span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.kpi strong {
  font-size: 18px;
  line-height: 1.05;
}
.kpi.good strong { color: #a6f4c5; }
.kpi.warn strong { color: #ffd893; }
.kpi.bad strong { color: #ffb1b7; }
.sprint-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.sprint-tab {
  position: relative;
  min-width: 0;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111923;
  color: var(--text);
  text-align: left;
  padding: 8px 10px 8px 13px;
  display: grid;
  gap: 5px;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, filter .16s ease, opacity .16s ease, background .16s ease;
  overflow: hidden;
}
.sprint-tab:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--green);
  border-radius: 8px 0 0 8px;
}
.sprint-tab.wait:before { background: var(--amber); }
.sprint-tab.risk:before { background: var(--red); }
.sprint-tab.done:before { background: var(--blue); }
.sprint-tab.inflight {
  border-color: rgba(94,255,171,.62);
  background: linear-gradient(180deg, rgba(94,255,171,.075), rgba(255,255,255,.012)), #101821;
  box-shadow: inset 0 0 0 1px rgba(94,255,171,.13), 0 0 22px rgba(55,201,120,.10);
}
.sprint-tab.inflight:before { background: #5effab; }
.sprint-tab.inflight.active {
  border-color: rgba(94,255,171,.9);
  box-shadow: inset 0 0 0 1px rgba(94,255,171,.34), 0 0 0 3px rgba(94,255,171,.16), 0 0 38px rgba(55,201,120,.22);
}
.sprint-tab.active {
  border-color: rgba(98,215,231,.96);
  box-shadow: inset 0 0 0 1px rgba(98,215,231,.32), 0 0 0 3px rgba(98,215,231,.16), 0 0 32px rgba(98,215,231,.22);
}
.sprint-tab.active:after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid rgba(98,215,231,.72);
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 22px rgba(98,215,231,.20);
}
.sprint-tab.inflight.active:after {
  border-color: rgba(94,255,171,.76);
  box-shadow: 0 0 24px rgba(94,255,171,.22);
}
.scope-warning-count {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border: 2px solid var(--panel);
  border-radius: 999px;
  padding: 0 4px;
  background: #df3548;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 0 0 1px rgba(255,111,125,.38), 0 4px 12px rgba(0,0,0,.28);
  pointer-events: none;
}
.sprint-tab.has-warning-count .sprint-tab-top { padding-right: 22px; }
.sprint-tab.draggable { cursor: grab; }
.sprint-tab.draggable:active,
.sprint-tab.dragging { cursor: grabbing; }
.sprint-tab.dragging {
  opacity: .72;
  transform: scale(.985);
}
.sprint-tab.drag-over {
  border-color: rgba(98,215,231,.95);
  box-shadow: inset 0 0 0 1px rgba(98,215,231,.28), 0 0 0 3px rgba(98,215,231,.14);
}
.sprint-tab-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.sprint-tab strong {
  min-width: 0;
  font-size: 12px;
  line-height: 1.1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sprint-tab-top .tag {
  flex: 0 0 auto;
  max-width: 98px;
}
.meta-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.sprint-tab .meta-row {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.sprint-tab .meta-row .tag {
  display: block;
  min-width: 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-height: 20px;
  padding: 2px 6px;
  border: 1px solid #2b3747;
  border-radius: 6px;
  background: #0d141d;
  color: var(--muted);
  font-size: 10.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag.good { color: #a8f2c6; border-color: rgba(55,201,120,.35); background: rgba(55,201,120,.08); }
.tag.warn { color: #ffdc98; border-color: rgba(255,189,85,.36); background: rgba(255,189,85,.08); }
.tag.bad { color: #ffb3ba; border-color: rgba(255,102,113,.36); background: rgba(255,102,113,.08); }
.tag.info { color: #b9f2f9; border-color: rgba(98,215,231,.36); background: rgba(98,215,231,.08); }
.more {
  display: grid;
  place-items: center;
  border-style: dashed;
  text-align: center;
}
.more strong { display: block; color: var(--cyan); font-size: 18px; }
.more span { display: block; color: var(--muted); font-size: 10px; }
.scope-block {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(98,215,231,.26);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(98,215,231,.055), rgba(255,255,255,.01)), #111923;
  padding: 10px;
  display: grid;
  gap: 9px;
}
.project-band {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}
.project-band-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
}
.project-band-head strong { font-size: 15px; }
.project-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.project-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 0;
  border-left: 3px solid var(--cyan);
  background: transparent;
  padding: 10px 12px;
  color: var(--text);
  text-align: left;
}
.project-card.active { background: var(--cyan-bg); }
.project-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.project-card-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card-meta { display: flex; gap: 5px; flex-wrap: wrap; }
.project-kx {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--cyan);
  padding: 0;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  text-align: left;
}
.project-kx:hover { color: var(--text); }
.scope-block-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.scope-kicker {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.scope-kicker-spaced { margin-top: 8px; }
.scope-block-title {
  display: block;
  font-size: 17px;
  line-height: 1.12;
}
.scope-block-meta,
.scope-block-note {
  display: none;
}
.scope-actions {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.scope-dormancy-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid rgba(98,215,231,.28);
  border-radius: 8px;
  background: rgba(98,215,231,.045);
  color: var(--muted);
  padding: 4px 8px;
  font-size: 11px;
  white-space: nowrap;
}
.scope-dormancy-control output { color: var(--text); font-weight: 800; }
.scope-dormancy-control input { width: 82px; accent-color: var(--cyan); cursor: ew-resize; }
.scope-picker-btn {
  min-height: 30px;
  border: 1px solid rgba(98,215,231,.38);
  border-radius: 8px;
  background: rgba(98,215,231,.08);
  color: var(--text);
  padding: 5px 9px;
}
.scope-picker-btn:hover { border-color: rgba(98,215,231,.66); background: rgba(98,215,231,.14); }
.scope-work-scroll {
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  isolation: isolate;
}
.scope-work-scroll:before,
.scope-work-scroll:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: 42px;
  pointer-events: none;
}
.scope-work-scroll:before {
  left: 0;
  background: linear-gradient(90deg, rgba(17,25,35,.98), rgba(17,25,35,0));
}
.scope-work-scroll:after {
  right: 0;
  background: linear-gradient(270deg, rgba(17,25,35,.98), rgba(17,25,35,0));
}
.scope-work-scroll.at-left:before,
.scope-work-scroll.at-right:after,
.scope-work-scroll.no-scroll:before,
.scope-work-scroll.no-scroll:after {
  opacity: 0;
}
.scope-work-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 34px 3px;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overscroll-behavior-x: contain;
  contain: layout paint;
}
.scope-scroll-cue {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 28px;
  height: 46px;
  transform: translateY(-50%);
  border: 1px solid rgba(98,215,231,.36);
  border-radius: 8px;
  background: rgba(6,11,17,.78);
  color: var(--cyan);
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(0,0,0,.24);
}
.scope-scroll-cue.left { left: 0; }
.scope-scroll-cue.right { right: 0; }
.scope-scroll-cue[hidden] { display: none; }
.scope-work-strip .sprint-tab {
  flex: 0 0 clamp(176px, 19vw, 238px);
  min-height: 56px;
}
.scope-work-strip .sprint-tab:not(.active) {
  opacity: .70;
  filter: saturate(.64) contrast(.92) brightness(.84);
  border-color: rgba(126,144,164,.28);
  background:
    linear-gradient(180deg, rgba(48,58,71,.62), rgba(29,36,47,.72)),
    #202836;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 8px 22px rgba(0,0,0,.20);
}
.scope-work-strip .sprint-tab.inflight:not(.active) {
  border-color: rgba(94,255,171,.24);
  box-shadow: inset 4px 0 0 rgba(94,255,171,.28), inset 0 0 0 1px rgba(94,255,171,.055), 0 8px 22px rgba(0,0,0,.22);
}
.scope-work-strip .sprint-tab:not(.active):hover,
.scope-work-strip .sprint-tab:not(.active):focus-visible {
  opacity: .90;
  filter: saturate(.86) contrast(.96) brightness(.94);
}
.scope-work-strip .sprint-tab.active {
  z-index: 2;
  opacity: 1;
  filter: none;
}
.scope-work-strip .sprint-tab.more { flex-basis: 132px; }
.sprint-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(3,7,12,.68);
  backdrop-filter: blur(9px);
}
.sprint-picker-backdrop.open { display: grid; }
.sprint-lifecycle-menu {
  position: fixed;
  z-index: 86;
  display: none;
  min-width: 196px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: rgba(15,21,31,.98);
  box-shadow: 0 18px 52px rgba(0,0,0,.46);
  padding: 5px;
}
.sprint-lifecycle-menu.open { display: grid; }
.sprint-lifecycle-menu button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  padding: 7px 9px;
  text-align: left;
}
.sprint-lifecycle-menu button:hover,
.sprint-lifecycle-menu button:focus-visible { background: rgba(98,215,231,.12); }
.sprint-lifecycle-menu button.danger { color: #ffd180; }
.sprint-lifecycle-backdrop {
  position: fixed;
  inset: 0;
  z-index: 87;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(3,7,12,.68);
  backdrop-filter: blur(9px);
}
.sprint-lifecycle-backdrop.open { display: grid; }
.sprint-lifecycle-dialog {
  width: min(560px, calc(100vw - 42px));
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: rgba(15,21,31,.99);
  box-shadow: 0 28px 90px rgba(0,0,0,.55), 0 0 38px rgba(98,215,231,.10);
  overflow: hidden;
}
.sprint-lifecycle-head {
  border-bottom: 1px solid var(--line);
  padding: 14px 15px 12px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.sprint-lifecycle-head strong { display: block; font-size: 17px; }
.sprint-lifecycle-head span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.sprint-lifecycle-body { padding: 14px 15px 15px; display: grid; gap: 12px; }
.sprint-lifecycle-body p { margin: 0; color: var(--muted); line-height: 1.45; }
.sprint-lifecycle-note-label { display: grid; gap: 6px; color: var(--text); font-size: 12px; font-weight: 760; }
.sprint-lifecycle-note {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border: 1px solid var(--line2);
  border-radius: 6px;
  background: rgba(5,10,16,.54);
  color: var(--text);
  padding: 9px;
  font: inherit;
  line-height: 1.4;
}
.sprint-lifecycle-note:focus { outline: none; border-color: rgba(98,215,231,.78); box-shadow: 0 0 0 2px rgba(98,215,231,.12); }
.sprint-lifecycle-footer {
  border-top: 1px solid var(--line);
  padding: 11px 15px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.sprint-lifecycle-footer button { min-height: 32px; }
.sprint-lifecycle-submit.danger { border-color: rgba(255,185,68,.62); background: rgba(255,185,68,.14); color: #ffd180; }
.sprint-picker {
  width: min(820px, calc(100vw - 42px));
  max-height: min(760px, calc(100vh - 42px));
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: rgba(15,21,31,.98);
  box-shadow: 0 28px 90px rgba(0,0,0,.55), 0 0 38px rgba(98,215,231,.10);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}
.sprint-picker-head {
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sprint-picker-head strong { display: block; font-size: 16px; }
.sprint-picker-head span { color: var(--muted); font-size: 12px; }
.sprint-picker-body { padding: 12px; overflow: auto; }
.sprint-picker-list { display: grid; gap: 8px; }
.picker-row {
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101821;
  color: var(--text);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  text-align: left;
}
.picker-row:hover,
.picker-row.active { border-color: rgba(98,215,231,.64); background: rgba(98,215,231,.07); }
.picker-row.inflight {
  border-color: rgba(94,255,171,.46);
  background: linear-gradient(180deg, rgba(94,255,171,.06), rgba(255,255,255,.01)), #101821;
}
.picker-row.inflight.active { border-color: rgba(94,255,171,.82); box-shadow: inset 0 0 0 1px rgba(94,255,171,.14); }
.picker-row strong { display: block; line-height: 1.16; }
.picker-row span { color: var(--muted); font-size: 12px; }
.picker-row-status { display: inline-flex; align-items: center; gap: 7px; }
.picker-warning-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border: 1px solid #ff6671;
  border-radius: 999px;
  padding: 0 4px;
  background: #df3548;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(255,111,125,.28);
}
.replay-inline {
  display: none;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid rgba(98,215,231,.28);
  border-radius: 8px;
  background: rgba(98,215,231,.06);
  padding: 3px 7px;
}
.replay-inline.open { display: inline-flex; }
.replay-inline input { width: 120px; accent-color: var(--cyan); }
.replay-inline span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.closed-agent { cursor: grab; }
.closed-agent.is-dragging { cursor: grabbing; border-color: rgba(98,215,231,.85); box-shadow: 0 18px 42px rgba(0,0,0,.32), 0 0 42px rgba(98,215,231,.24); }
.closed-scene.dragging-node { cursor: grabbing; }
.focus {
  border: 1px solid rgba(98,215,231,.30);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(98,215,231,.075), rgba(255,255,255,.012)), rgba(20,28,39,.94);
  padding: 9px 12px;
}
.focus-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}
.focus-title { font-size: 18px; line-height: 1.1; font-weight: 830; }
.focus-meta { color: var(--muted); margin-top: 3px; }
.focus-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.hero-workspace {
  margin-bottom: 12px;
}
.stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.panel {
  border: 1px solid var(--line);
  background: rgba(20, 28, 39, .95);
  border-radius: 8px;
  box-shadow: 0 16px 42px var(--shadow);
  min-width: 0;
}
.panel-head {
  min-height: 46px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-title {
  font-weight: 760;
  font-size: 14px;
}
.panel-sub {
  color: var(--muted);
  font-size: 12px;
}
.panel-body { padding: 12px; }
.sprint-plan-panel .panel-head {
  min-height: 42px;
}
.sprint-plan-body {
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-auto-rows: max-content;
  gap: 6px;
  padding: 8px 10px;
  box-sizing: border-box;
  scrollbar-width: thin;
  align-content: start;
  overscroll-behavior: contain;
}
.plan-item {
  appearance: none;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(8,13,19,.58);
  color: var(--text);
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 22px minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: center;
  text-align: left;
  min-width: 360px;
  cursor: pointer;
}
.plan-item:hover {
  border-color: rgba(98,215,231,.45);
  background: rgba(98,215,231,.055);
}
.plan-mark {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  color: #93a4b8;
}
.plan-item.good .plan-mark {
  color: #081018;
  border-color: rgba(55,201,120,.72);
  background: #7cf0a5;
  box-shadow: 0 0 18px rgba(55,201,120,.32);
}
.plan-item.warn .plan-mark { color: #ffdc98; border-color: rgba(255,189,85,.48); background: rgba(255,189,85,.08); }
.plan-item.bad .plan-mark { color: #ff8f9a; border-color: rgba(255,92,110,.48); background: rgba(255,92,110,.08); }
.plan-main { min-width: 0; display: grid; gap: 2px; }
.plan-main strong { display: flex; align-items: center; gap: 7px; min-width: 0; }
.plan-main strong > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-phase {
  flex: 0 0 auto;
  min-width: 28px;
  border: 1px solid rgba(98,215,231,.34);
  border-radius: 6px;
  background: rgba(98,215,231,.08);
  color: #bdeff5;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
}
.plan-main strong,
.plan-main span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.plan-main span { color: var(--muted); font-size: 11px; }
.plan-main .plan-effort {
  color: #bdeff5;
  font-variant-numeric: tabular-nums;
}
.plan-empty {
  border: 1px dashed rgba(98,215,231,.28);
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
  background: rgba(98,215,231,.04);
}
.panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.sprint-plan-window-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}
.sprint-plan-window-layer > .graph-plan-window {
  pointer-events: auto;
}
body[data-agentos-section]:not([data-agentos-section="sprints"]) .sprint-plan-window-layer {
  display: none;
}
body.graph-maximized .sprint-plan-window-layer {
  z-index: 94;
}
.graph-plan-window {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 55;
  width: min(34%, 460px);
  height: min(46%, 360px);
  min-width: 300px;
  min-height: 132px;
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 28px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  box-sizing: border-box;
  resize: both;
  overflow: hidden;
  background: rgba(13, 20, 30, .94);
  backdrop-filter: blur(10px);
}
.graph-plan-window .panel-head {
  cursor: move;
  user-select: none;
  padding: 8px 9px;
  gap: 8px;
}
.graph-plan-window .panel-title {
  font-size: 13px;
}
.graph-plan-window .panel-sub {
  max-width: 220px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.graph-plan-window .panel-body {
  min-height: 0;
  overflow: auto;
}
.graph-plan-window.is-collapsed {
  min-height: 0;
  height: auto !important;
  resize: none;
}
.graph-plan-window.is-collapsed .sprint-plan-body {
  display: none;
}
.graph-plan-window.dragging-window {
  opacity: .92;
  cursor: grabbing;
}
.graph-plan-window .panel-actions {
  gap: 5px;
  flex-wrap: nowrap;
}
.plan-scroll-cue {
  color: #9bdde7;
  border-color: rgba(98,215,231,.34);
}
.graph-unblock-window {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 18;
  width: min(34%, 460px);
  min-width: 300px;
  max-width: calc(100% - 28px);
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(12, 13, 12, .94);
  border-color: rgba(255, 189, 85, .42);
  box-shadow: 0 24px 60px rgba(0,0,0,.38), 0 0 24px rgba(255,189,85,.08);
  backdrop-filter: blur(10px);
}
.graph-unblock-window .panel-head {
  cursor: move;
  user-select: none;
  padding: 9px 12px;
  border-bottom: 0;
}
.graph-unblock-window .panel-title {
  font-size: 13px;
}
.graph-unblock-window .panel-sub {
  max-width: 500px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.graph-unblock-window .panel-actions {
  gap: 5px;
  flex-wrap: nowrap;
}
.graph-unblock-window.is-collapsed .unblock-body {
  display: none;
}
.graph-unblock-window.is-collapsed {
  width: fit-content !important;
  min-width: 0;
  max-width: min(540px, calc(100% - 28px));
  resize: none;
}
.graph-unblock-window.is-collapsed .panel-head {
  gap: 12px;
  padding: 8px 10px 8px 12px;
}
.graph-unblock-window.is-collapsed .panel-head > div {
  max-width: min(50vw, 420px);
  min-width: 0;
}
.graph-unblock-window.dragging-window {
  opacity: .92;
  cursor: grabbing;
}
.unblock-body {
  padding: 0 12px 12px;
  display: grid;
  gap: 5px;
}
.unblock-body strong {
  font-size: 15px;
}
.unblock-body span {
  color: var(--muted);
  line-height: 1.25;
}
.wait-panel {
  min-width: 0;
}
.wait-panel .panel-body {
  padding: 0;
}
body.graph-maximized {
  overflow: hidden;
}
.graph-maximized::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 86;
  background:
    radial-gradient(circle at 50% 42%, rgba(98,215,231,.12), transparent 34%),
    rgba(3, 7, 12, .76);
}
.graph-maximized .wait-panel {
  position: fixed;
  inset: 14px;
  z-index: 90;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-color: rgba(98,215,231,.72);
  background: rgba(12, 18, 27, .98);
  box-shadow: 0 30px 80px rgba(0,0,0,.58), 0 0 46px rgba(98,215,231,.16);
}
.graph-maximized .wait-panel .panel-head {
  min-height: 58px;
  background: linear-gradient(180deg, rgba(17,28,40,.96), rgba(12,18,27,.92));
}
.graph-maximized .wait-panel .panel-body {
  min-height: 0;
  display: grid;
  overflow: hidden;
  padding: 14px;
}
.graph-maximized .wait-panel .graph {
  grid-template-columns: minmax(190px, .78fr) minmax(320px, 1.44fr) minmax(190px, .78fr);
  gap: 16px;
  min-height: 0;
  height: calc(100vh - 116px);
}
.graph-maximized .wait-panel .graph.closed-mode,
.graph-maximized .wait-panel .graph.active-mode {
  grid-template-columns: minmax(0, 1fr);
}
.graph-maximized .wait-panel .graph.closed-mode #waiters,
.graph-maximized .wait-panel .graph.active-mode #waiters {
  display: grid;
  min-height: 0;
}
.graph-maximized .lane,
.graph-maximized .edge-stage {
  overflow: auto;
  min-height: 0;
  padding: 8px;
  scrollbar-width: thin;
}
.graph-maximized .edge {
  min-height: 132px;
}
.graph-maximized .closed-graph {
  min-height: 0;
  height: 100%;
}
.graph-maximized .closed-scene {
  min-height: calc(100vh - 202px);
}
.graph {
  position: relative;
  min-height: 460px;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 12px;
}
.graph.closed-mode {
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(340px, 44vh, 520px);
}
.graph.active-mode {
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(500px, calc(100vh - 345px), 700px);
}
.graph.closed-mode.replay-mode {
  min-height: clamp(500px, calc(100vh - 345px), 700px);
}
.graph.closed-mode #waiters,
.graph.active-mode #waiters {
  display: block;
  min-width: 0;
}
.graph.closed-mode #edges,
.graph.closed-mode #producers,
.graph.active-mode #edges,
.graph.active-mode #producers {
  display: none;
}
.lane {
  display: grid;
  gap: 10px;
  align-content: start;
}
.closed-graph {
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 0;
  overflow: hidden;
}
.active-graph {
  background: transparent;
}
.active-graph .closed-head {
  align-items: center;
}
.active-graph .closed-head h2 {
  font-size: 21px;
}
.active-graph .closed-head p {
  max-width: 620px;
}
.graph-maximized .active-graph {
  min-height: 0;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}
.graph-maximized .active-scene {
  min-height: calc(100vh - 168px);
}
.graph-maximized .active-graph .closed-flow,
.graph-maximized .active-graph .closed-footer {
  display: none;
}
.closed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.closed-head > div {
  min-width: 0;
}
.closed-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.05;
  white-space: nowrap;
}
.closed-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.closed-scene {
  position: relative;
  height: clamp(390px, calc(100vh - 470px), 540px);
  min-height: 340px;
  max-height: min(72vh, 740px);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(98,215,231,.10), transparent 32%),
    linear-gradient(180deg, rgba(8,13,19,.56), rgba(8,13,19,.18));
  overflow: hidden;
  resize: vertical;
}
.active-scene {
  height: clamp(420px, calc(100vh - 455px), 560px);
}
.closed-scene:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(98,215,231,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98,215,231,.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 76%);
}
.closed-webgl {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity .2s ease;
}
.closed-scene.webgl-ready .closed-webgl { opacity: 1; }
.closed-scene.webgl-ready:before { opacity: .22; }
.closed-scene.webgl-fallback .closed-scene-hud .status-dot { background: var(--amber); }
.active-scene .closed-scene-hud .status-dot { background: var(--amber); }
.active-scene.webgl-ready .closed-webgl { opacity: 1; }
.active-scene.webgl-ready:before { opacity: .22; }
.active-scene.webgl-fallback .closed-scene-hud .status-dot { background: var(--red); }
.active-scene {
  background:
    radial-gradient(circle at 18% 42%, rgba(255,189,85,.12), transparent 22%),
    radial-gradient(circle at 82% 38%, rgba(98,215,231,.13), transparent 24%),
    radial-gradient(circle at 50% 82%, rgba(55,201,120,.10), transparent 26%),
    linear-gradient(180deg, rgba(8,13,19,.72), rgba(4,8,13,.94));
}
.active-scene:after { content: none; }
.closed-labels {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.closed-labels .closed-agent {
  pointer-events: auto;
}
.closed-scene-hud {
  position: absolute;
  left: 14px;
  top: 12px;
  z-index: 8;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  max-width: calc(100% - 28px);
  color: var(--soft);
  font-size: 12px;
  padding: 5px 8px;
  border: 1px solid rgba(98,215,231,.16);
  border-radius: 8px;
  background: rgba(6,11,17,.62);
  backdrop-filter: blur(7px);
}
.closed-scene-hud b { color: var(--text); }
.closed-scene-hud .status-dot { background: var(--green); }
.closed-arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .72;
  z-index: 2;
}
.closed-scene.webgl-ready .closed-arcs { opacity: .66; }
.closed-arcs path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.closed-arcs .good { stroke: rgba(55,201,120,.72); filter: drop-shadow(0 0 8px rgba(55,201,120,.30)); }
.closed-arcs .info { stroke: rgba(98,215,231,.62); filter: drop-shadow(0 0 8px rgba(98,215,231,.24)); }
.closed-arcs .owner-link { stroke: rgba(255,189,85,.88); stroke-width: 2.8; filter: drop-shadow(0 0 10px rgba(255,189,85,.35)); }
.closed-arcs .review-link { stroke: rgba(199,155,255,.70); filter: drop-shadow(0 0 8px rgba(199,155,255,.24)); }
.closed-agent {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  z-index: 6;
  width: clamp(82px, 5.6vw, 104px);
  min-height: 58px;
  border: 1px solid rgba(98,215,231,.30);
  border-radius: 8px;
  background: rgba(13,20,29,.90);
  color: var(--text);
  text-align: left;
  padding: 5px 6px 6px;
  box-shadow: 0 12px 30px rgba(0,0,0,.28), 0 0 22px rgba(98,215,231,.10);
  display: grid;
  gap: 3px;
  overflow: hidden;
}
.closed-scene.webgl-ready .closed-agent {
  background: rgba(9,14,21,.72);
  backdrop-filter: blur(6px);
}
.closed-agent:hover { border-color: rgba(98,215,231,.72); }
.closed-agent .agent-top,
.closed-agent .agent-name-row,
.closed-agent .actor-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.closed-agent .agent-top {
  display: grid;
  gap: 3px;
}
.closed-agent .agent-name-row {
  align-items: start;
}
.closed-agent strong {
  min-width: 0;
  font-size: 12px;
  line-height: 1.02;
  overflow-wrap: anywhere;
}
.closed-agent .provider-tag {
  flex: 0 0 auto;
  max-width: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.closed-agent .actor-line,
.closed-agent .actor-work {
  color: var(--muted);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.closed-agent .actor-card-meta {
  justify-content: start;
  flex-wrap: nowrap;
  gap: 3px;
}
.closed-agent .actor-card-meta .tag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.closed-agent.good {
  border-color: rgba(55,201,120,.42);
  box-shadow: 0 18px 42px rgba(0,0,0,.30), 0 0 34px rgba(55,201,120,.18);
}
.closed-agent.review {
  border-color: rgba(199,155,255,.38);
  box-shadow: 0 18px 42px rgba(0,0,0,.30), 0 0 34px rgba(199,155,255,.12);
}
.closed-agent.owner {
  border-color: rgba(255,189,85,.42);
  box-shadow: 0 18px 42px rgba(0,0,0,.30), 0 0 34px rgba(255,189,85,.14);
}
.closed-agent.active-node {
  min-height: 132px;
}
.active-scene .closed-agent.active-node {
  width: clamp(88px, 6vw, 112px);
  min-height: 58px;
  padding: 5px 6px 6px;
  border-radius: 8px;
  background: rgba(7,12,18,.76);
  box-shadow: 0 16px 36px rgba(0,0,0,.30), 0 0 26px rgba(98,215,231,.12);
}
.active-scene .closed-agent.active-node:after { content: none; }
.active-scene .closed-agent.active-node .agent-top { gap: 3px; }
.active-scene .closed-agent.active-node strong { font-size: 12px; }
.active-scene .closed-agent.active-node .provider-tag { display: none; }
.active-scene .closed-agent.active-node .actor-line { font-size: 8.5px; letter-spacing: .045em; }
.active-scene .closed-agent.active-node .actor-work {
  min-height: 15px;
  max-width: 100%;
  padding: 0 4px;
  border-color: rgba(255,255,255,.07);
  background: rgba(255,255,255,.026);
  font-size: 8.5px;
}
.active-scene .closed-agent.active-node .actor-card-meta { display: none; }
.closed-agent.active-node .actor-line {
  color: var(--soft);
}
.closed-agent.active-node.waiter {
  border-color: rgba(255,189,85,.54);
  box-shadow: 0 18px 42px rgba(0,0,0,.30), 0 0 34px rgba(255,189,85,.18);
}
.closed-agent.active-node.producer {
  border-color: rgba(98,215,231,.58);
  box-shadow: 0 18px 42px rgba(0,0,0,.30), 0 0 34px rgba(98,215,231,.18);
}
.active-scene .closed-agent.active-node.waiter {
  box-shadow: 0 18px 42px rgba(0,0,0,.30), 0 0 42px rgba(255,189,85,.22);
}
.active-scene .closed-agent.active-node.producer {
  box-shadow: 0 18px 42px rgba(0,0,0,.30), 0 0 42px rgba(98,215,231,.24);
}
.closed-relation-label {
  position: absolute;
  z-index: 7;
  left: var(--x);
  top: var(--y);
  max-width: min(164px, 15vw);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(98,215,231,.34);
  border-radius: 8px;
  background: rgba(8,13,19,.82);
  color: var(--soft);
  padding: 5px 6px;
  font-size: 10px;
  line-height: 1.15;
  pointer-events: auto;
  box-shadow: 0 10px 26px rgba(0,0,0,.26), 0 0 18px rgba(98,215,231,.10);
}
.closed-scene.webgl-ready .closed-relation-label {
  background: rgba(8,13,19,.82);
  backdrop-filter: blur(7px);
}
.graph-suggestion {
  position: absolute;
  left: 14px;
  top: 48px;
  z-index: 8;
  max-width: min(360px, calc(100% - 28px));
  border: 1px solid rgba(255,189,85,.30);
  border-radius: 8px;
  background: rgba(20,16,9,.72);
  color: var(--soft);
  padding: 7px 9px;
  box-shadow: 0 14px 32px rgba(0,0,0,.25), 0 0 26px rgba(255,189,85,.10);
}
.graph-suggestion strong {
  display: block;
  color: var(--text);
  font-size: 12px;
}
.graph-suggestion span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}
.closed-relation-label strong {
  display: block;
  color: var(--text);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.closed-relation-label span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.closed-relation-label.good {
  border-color: rgba(55,201,120,.38);
  box-shadow: 0 10px 26px rgba(0,0,0,.26), 0 0 18px rgba(55,201,120,.12);
}
.closed-relation-label.owner-link {
  border-color: rgba(255,189,85,.55);
  color: #ffdf9f;
  box-shadow: 0 10px 26px rgba(0,0,0,.26), 0 0 20px rgba(255,189,85,.18);
}
.active-scene .closed-relation-label {
  width: 32px;
  height: 22px;
  max-width: 32px;
  border-radius: 999px;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(5,9,14,.78);
  text-align: center;
  color: var(--cyan);
}
.active-scene .closed-relation-label:before { content: "..."; font-weight: 900; letter-spacing: .08em; line-height: 1; }
.active-scene .closed-relation-label strong,
.active-scene .closed-relation-label span,
.active-scene .closed-relation-label small { display: none; }

.closed-agent.graph-chip .provider-tag {
  display: none;
}
.closed-agent.graph-chip .actor-line {
  max-width: 100%;
  font-size: 8.5px;
  letter-spacing: .045em;
}
.closed-agent.graph-chip .actor-work {
  max-width: 100%;
}
.closed-agent.graph-chip .tag {
  min-height: 15px;
  padding: 0 4px;
  font-size: 8.5px;
}
.closed-relation-label {
  width: 26px;
  height: 20px;
  min-width: 26px;
  max-width: 26px;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0;
  background: rgba(5,10,15,.78);
}
.closed-relation-label::before {
  content: "...";
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .04em;
}
.closed-relation-label.owner-link::before { color: var(--amber); }
.closed-relation-label.good::before { color: #8cf3bc; }
.closed-relation-label strong,
.closed-relation-label span,
.closed-relation-label small {
  display: none;
}

.closed-flow {
  display: flex;
  gap: 10px;
  align-items: stretch;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  padding: 12px;
  padding-bottom: 12px;
  scrollbar-width: thin;
}
.closed-step {
  position: relative;
  flex: 0 0 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10,15,22,.72);
  padding: 10px;
  min-height: 122px;
  color: var(--text);
  text-align: left;
  display: grid;
  align-content: start;
  gap: 7px;
  overflow: hidden;
}
.closed-step:hover { border-color: rgba(98,215,231,.52); }
.closed-step:after {
  content: "->";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(98,215,231,.75);
  font-weight: 900;
}
.closed-step:last-child:after { display: none; }
.closed-step strong {
  display: block;
  font-size: 13px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.closed-step .step-detail {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.28;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}
.closed-step .tag {
  justify-self: start;
}
.closed-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 12px;
}
.closed-footer p {
  margin: 0;
  color: var(--muted);
}
.closed-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: end;
}
.closed-actions .cmd {
  min-height: 50px;
  padding: 8px;
}
.quiet-live {
  min-height: clamp(300px, 40vh, 460px);
  border: 1px solid rgba(55,201,120,.36);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(55,201,120,.11), rgba(98,215,231,.035)),
    rgba(8,13,19,.66);
  padding: 16px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
}
.quiet-live-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.quiet-live-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}
.quiet-live-head p {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 72ch;
}
.quiet-live .status-dot {
  background: var(--green);
}
.quiet-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.quiet-metric {
  min-height: 70px;
  border: 1px solid rgba(55,201,120,.22);
  border-radius: 8px;
  background: rgba(8,13,19,.42);
  padding: 9px 10px;
}
.quiet-metric span {
  display: block;
  color: var(--dim);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.quiet-metric strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.quiet-completions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}
.quiet-completion {
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10,15,22,.72);
  color: var(--text);
  text-align: left;
  padding: 9px 10px;
  display: grid;
  gap: 6px;
  overflow: hidden;
}
.quiet-completion strong {
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.quiet-completion span {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quiet-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: end;
}
.quiet-actions .cmd {
  min-height: 50px;
  padding: 8px;
}
.scope-selector,
.adjacent-attention {
  border: 1px solid rgba(98,215,231,.18);
  border-radius: 8px;
  background: rgba(8,13,19,.36);
  padding: 10px;
  display: grid;
  gap: 8px;
}
.closed-graph > .adjacent-attention {
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  padding: 12px;
}
.scope-selector-head,
.adjacent-attention-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}
.scope-selector-head strong,
.adjacent-attention-head strong {
  display: block;
  line-height: 1.2;
}
.scope-selector-head span,
.adjacent-attention-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.scope-candidates,
.adjacent-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.scope-candidate,
.adjacent-item {
  flex: 0 0 240px;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10,15,22,.72);
  color: var(--text);
  text-align: left;
  padding: 9px 10px;
  display: grid;
  gap: 5px;
  overflow: hidden;
}
.scope-candidate.current {
  border-color: rgba(55,201,120,.42);
  box-shadow: 0 0 18px rgba(55,201,120,.12);
}
.scope-candidate strong,
.adjacent-item strong {
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.scope-candidate span,
.adjacent-item span {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adjacent-item.active {
  border-color: rgba(255,189,85,.45);
  box-shadow: 0 0 18px rgba(255,189,85,.14);
}
.replay-audit-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.graph-maximized .quiet-live {
  min-height: 0;
  height: 100%;
  overflow: auto;
}
.actor {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101821;
  padding: 10px;
  text-align: left;
  color: var(--text);
  display: grid;
  gap: 6px;
}
.actor:hover {
  border-color: rgba(98,215,231,.56);
}
.actor .who {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
}
.actor strong { font-size: 13px; }
.actor .who strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.actor .who .tag {
  flex: 0 0 auto;
  max-width: 86px;
}
.actor small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.actor .meta-row .tag {
  max-width: 100%;
}
.actor.current { border-color: rgba(98,215,231,.52); background: rgba(98,215,231,.07); }
.actor.waiting { border-color: rgba(255,189,85,.42); background: rgba(255,189,85,.07); }
.actor.review { border-color: rgba(199,155,255,.42); background: rgba(199,155,255,.07); }
.edge-stage {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 4px 0;
}
.edge {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101821;
  min-height: 104px;
  padding: 10px;
  text-align: left;
  color: var(--text);
  display: grid;
  gap: 8px;
}
.edge:hover {
  border-color: rgba(255,189,85,.55);
}
.edge-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--soft);
}
.edge-line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.arrow {
  color: var(--amber);
  font-weight: 900;
}
.edge-title { font-weight: 760; }
.edge-detail {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.edge-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.edge-metrics div {
  border: 1px solid #293646;
  border-radius: 7px;
  background: rgba(7,10,15,.30);
  padding: 5px 6px;
}
.edge-metrics span {
  display: block;
  color: var(--dim);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.edge-metrics strong {
  display: block;
  font-size: 12px;
  margin-top: 2px;
}
.list {
  display: grid;
  gap: 8px;
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101821;
  padding: 8px 10px;
  color: var(--text);
  text-align: left;
}
.row:hover { border-color: rgba(98,215,231,.50); }
.row strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row span { color: var(--muted); font-size: 12px; }
.artifact {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  border: 1px solid rgba(98,215,231,.32);
  border-radius: 7px;
  background: rgba(98,215,231,.07);
  color: #c7f6fb;
  padding: 3px 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.artifact.plan-work-item.done {
  border-color: rgba(137, 155, 170, .28);
  background: rgba(137, 155, 170, .06);
  color: var(--muted);
  opacity: .68;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.artifact.plan-work-item.active {
  border-color: rgba(255, 189, 85, .48);
  background: rgba(255, 189, 85, .08);
}
.artifact.plan-work-item.blocked {
  border-color: rgba(255, 92, 110, .48);
  background: rgba(255, 92, 110, .08);
  color: #ffd3d8;
}
.artifact.plan-work-item.deferred {
  border-color: rgba(137, 155, 170, .28);
  color: var(--muted);
}
.evidence-collapsed .panel-head {
  border-bottom: 0;
}
.evidence-cta {
  appearance: none;
  border: 1px solid rgba(98,215,231,.34);
  background: rgba(98,215,231,.08);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.evidence-cta:hover {
  border-color: rgba(98,215,231,.64);
  background: rgba(98,215,231,.14);
}
.evidence-drawer-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.evidence-drawer-list .row {
  width: 100%;
  text-align: left;
}
.sentinel {
  display: grid;
  gap: 9px;
}
.sentinel-state {
  border: 1px solid rgba(255,189,85,.36);
  border-radius: 8px;
  background: rgba(255,189,85,.075);
  padding: 10px;
  display: grid;
  gap: 7px;
}
.sentinel-state strong { color: #ffe0a4; }
.cmd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.cmd {
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101821;
  color: var(--text);
  padding: 9px;
  text-align: left;
  display: grid;
  gap: 4px;
}
.cmd strong { color: var(--soft); }
.cmd span { color: var(--muted); font-size: 11px; }
.cmd:hover { border-color: rgba(98,215,231,.55); background: rgba(98,215,231,.06); }
.graph-max-hint {
  display: none;
}
.closed-graph {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.active-graph {
  background: transparent;
}
.closed-scene {
  border: 0;
  background:
    linear-gradient(180deg, rgba(13,21,30,.84), rgba(6,10,16,.94)),
    repeating-linear-gradient(0deg, rgba(101,215,232,.045) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(101,215,232,.04) 0 1px, transparent 1px 34px);
}
.closed-scene:before {
  opacity: .30;
  background-image:
    linear-gradient(rgba(155,240,214,.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155,240,214,.046) 1px, transparent 1px);
  background-size: 34px 34px;
}
.closed-agent {
  isolation: isolate;
  width: clamp(82px, 5.6vw, 104px);
  min-height: 58px;
  border-radius: 7px;
  background: rgba(8,13,19,.82);
  padding: 5px 6px 6px;
  box-shadow: 0 18px 38px rgba(0,0,0,.32), 0 0 28px rgba(101,215,232,.10);
}
.closed-agent:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(101,215,232,.70);
  box-shadow: 0 0 18px rgba(101,215,232,.45);
}
.closed-agent.good:before { background: rgba(93,204,165,.82); box-shadow: 0 0 18px rgba(93,204,165,.45); }
.closed-agent.owner:before,
.closed-agent.active-node.waiter:before { background: rgba(255,189,85,.88); box-shadow: 0 0 18px rgba(255,189,85,.45); }
.closed-agent.review:before { background: rgba(199,155,255,.82); box-shadow: 0 0 18px rgba(199,155,255,.40); }
.closed-agent.active-node.producer:before { background: rgba(101,215,232,.88); box-shadow: 0 0 18px rgba(101,215,232,.48); }
.closed-agent.active-node {
  min-height: 116px;
}
.closed-agent strong {
  font-size: 12px;
}
.closed-agent .agent-name-row {
  gap: 6px;
}
.closed-agent .provider-tag,
.closed-agent .actor-card-meta .tag {
  min-height: 17px;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 10px;
}
.closed-agent .actor-line {
  color: var(--soft);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.closed-agent .actor-work {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 5px;
  background: rgba(255,255,255,.035);
  padding: 1px 4px;
  color: #aeb9c8;
  font-size: 8.5px;
}
.closed-relation-label {
  max-width: min(164px, 15vw);
  border-radius: 7px;
  padding: 5px 6px;
  background: rgba(6,10,16,.84);
}
.closed-relation-label small {
  display: none;
}
.closed-flow {
  min-height: 102px;
  border-top: 1px solid var(--line);
  padding: 12px;
  padding-bottom: 12px;
}
.closed-step {
  flex-basis: 216px;
  min-height: 112px;
  background: rgba(8,13,19,.62);
}
.graph-maximized .wait-panel .graph.closed-mode,
.graph-maximized .wait-panel .graph.active-mode {
  min-height: 0;
}
.graph-maximized .closed-scene {
  height: calc(100vh - 202px) !important;
  min-height: calc(100vh - 202px);
  max-height: none;
  resize: none;
}
.graph-maximized .closed-flow {
  min-height: 104px;
}
.drawer {
  position: fixed;
  right: 18px;
  top: 86px;
  width: min(440px, calc(100vw - 36px));
  max-height: calc(100vh - 108px);
  z-index: 60;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: rgba(15, 21, 31, .98);
  box-shadow: 0 24px 80px rgba(0,0,0,.48);
  display: none;
  overflow: hidden;
}
.drawer.open { display: grid; }
.drawer-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}
.drawer-title {
  font-weight: 800;
  font-size: 15px;
}
.drawer-kind {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 3px;
}
.drawer-body {
  padding: 14px;
  overflow: auto;
}
.detail-stack {
  display: grid;
  gap: 10px;
}
.detail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12,18,27,.72);
  padding: 10px;
  display: grid;
  gap: 8px;
}
.detail-card h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
}
.detail-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.detail-field {
  min-height: 54px;
  border: 1px solid rgba(98,215,231,.20);
  border-radius: 8px;
  background: rgba(8,13,19,.42);
  padding: 8px;
}
.detail-field span {
  display: block;
  color: var(--dim);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.detail-field strong {
  display: block;
  margin-top: 4px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.detail-table {
  display: grid;
  gap: 6px;
}
.detail-table .row {
  min-height: 40px;
}
.chip-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.source-chip {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #101821;
  color: var(--soft);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 70;
  min-width: min(520px, calc(100vw - 40px));
  border: 1px solid rgba(98,215,231,.42);
  border-radius: 8px;
  background: rgba(14, 22, 32, .98);
  color: var(--text);
  padding: 10px 12px;
  box-shadow: 0 18px 54px rgba(0,0,0,.42);
  display: none;
}
.toast.show { display: block; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Richard 2026-07-07 graph acceptance pass: single semantic WebGL graph layer. */
.sprint-graph-scene {
  min-height: 340px;
  cursor: grab;
  isolation: isolate;
}
.sprint-graph-scene:active { cursor: grabbing; }
.graph-maximized .sprint-graph-scene { min-height: calc(100vh - 170px); }
.sprint-graph-scene .closed-webgl {
  opacity: 1;
  z-index: 1;
}
.sprint-graph-scene .closed-arcs,
.sprint-graph-scene .closed-relation-label { display: none !important; }
.graph-label-layer,
.graph-edge-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}
.graph-edge-layer { z-index: 7; }
.graph-node-label,
.graph-edge-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  border: 1px solid rgba(98,215,231,.28);
  background: rgba(8,13,19,.66);
  color: var(--text);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0,0,0,.30), 0 0 18px rgba(98,215,231,.09);
}
.graph-node-label {
  width: 96px;
  min-height: 48px;
  border-radius: 8px;
  padding: 6px 7px 6px 19px;
  display: grid;
  gap: 3px;
  text-align: left;
  overflow: hidden;
}
.graph-node-label.has-family-icon { padding-left: 28px; }
.graph-node-label.has-family-icon::before { display: none; }
.graph-family-icon {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 17px;
  height: 17px;
  border-radius: 4px;
  object-fit: contain;
  box-shadow: 0 0 12px rgba(155,240,214,.24);
  pointer-events: none;
}
.graph-node-label::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 9px;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .86;
  box-shadow: 0 0 12px currentColor;
}
.graph-node-label.kind-sprint::before { border-radius: 2px; transform: rotate(45deg); }
.graph-node-label.kind-projection::before { border-radius: 2px; }
.graph-node-label.kind-human::before {
  width: 8px;
  height: 8px;
  border-width: 2px;
  border-color: #ff9b8f;
  box-shadow: 0 0 14px rgba(255,155,143,.76);
}
.graph-node-label.kind-script::before {
  border-radius: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.graph-node-label.kind-sentinel::before {
  border-radius: 0;
  clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
}
.graph-node-label strong {
  display: block;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.graph-node-label .node-role {
  display: block;
  color: var(--soft);
  font-size: 9px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.graph-node-label .node-state {
  justify-self: start;
  max-width: 100%;
  border: 1px solid rgba(98,215,231,.28);
  border-radius: 6px;
  padding: 2px 5px;
  color: var(--soft);
  font-size: 9px;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.graph-node-label.good { border-color: rgba(55,201,120,.58); box-shadow: 0 0 24px rgba(55,201,120,.13), 0 12px 30px rgba(0,0,0,.30); }
.graph-node-label.owner,
.graph-node-label.waiter { border-color: rgba(255,189,85,.68); box-shadow: 0 0 28px rgba(255,189,85,.17), 0 12px 30px rgba(0,0,0,.30); }
.graph-node-label.review { border-color: rgba(199,155,255,.68); box-shadow: 0 0 28px rgba(199,155,255,.14), 0 12px 30px rgba(0,0,0,.30); }
.graph-node-label.human {
  border-color: rgba(255,155,143,.82);
  background: rgba(35,16,18,.76);
  box-shadow: 0 0 30px rgba(255,155,143,.20), 0 12px 30px rgba(0,0,0,.30);
}
.graph-node-label.bad { border-color: rgba(255,92,110,.72); box-shadow: 0 0 30px rgba(255,92,110,.18), 0 12px 30px rgba(0,0,0,.30); }
.graph-node-label.sentinel,
.graph-node-label.script {
  border-style: dashed;
  border-color: rgba(98,215,231,.78);
  background: rgba(7,23,27,.70);
}
.graph-node-label.is-session-busy {
  background: rgba(18, 72, 46, .78);
  filter: drop-shadow(0 0 7px rgba(55, 201, 120, .68));
}
.graph-node-label.is-owned-compute .node-state {
  border-color: rgba(255,189,85,.78);
  color: #ffd88d;
}
.graph-node-label.is-sprint-master {
  outline: 2px solid rgba(55,201,120,.96);
  outline-offset: 5px;
  box-shadow: 0 0 12px rgba(55,201,120,.86), 0 0 36px rgba(55,201,120,.38), 0 12px 30px rgba(0,0,0,.30);
}
.graph-node-label.is-dragging { opacity: .84; cursor: grabbing; }
.graph-edge-marker {
  min-width: 42px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #9bf0d6;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: grab;
}
.graph-edge-marker.is-dragging { opacity: .84; cursor: grabbing; }
.graph-edge-marker.owner-link { border-color: rgba(255,189,85,.70); color: #ffd88d; }
.graph-edge-marker.review-link { border-color: rgba(199,155,255,.70); color: #d6b8ff; }
.graph-edge-marker.sentinel { border-color: rgba(98,215,231,.86); color: #7eedff; }
.graph-edge-marker:hover,
.graph-node-label:hover { border-color: rgba(155,240,214,.96); }
@media (prefers-reduced-motion: reduce) {
  .graph-node-label.is-session-busy {
    filter: drop-shadow(0 0 8px rgba(55, 201, 120, .72));
  }
}
.sprint-graph-scene .closed-scene-hud {
  top: 10px;
  left: 12px;
  max-width: min(720px, calc(100% - 24px));
  padding: 5px 8px;
  font-size: 12px;
}
.sprint-graph-scene .graph-suggestion {
  left: 12px;
  top: 54px;
  max-width: min(430px, calc(100% - 24px));
  padding: 9px 11px;
  font-size: 12px;
  background: rgba(12, 11, 7, .64);
  backdrop-filter: blur(7px);
}
.sprint-graph-scene .graph-suggestion strong { font-size: 14px; }
.sprint-graph-scene .graph-suggestion span { font-size: 12px; line-height: 1.25; }
.compact-replay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.compact-replay-head h2 { font-size: 17px; }
.compact-replay-head p { max-width: 640px; }
.drawer {
  min-width: 320px;
  min-height: 128px;
  resize: both;
  display: none;
  grid-template-rows: auto minmax(0, 1fr);
}
.drawer.open { display: grid; }
.drawer.document-view {
  width: min(880px, calc(100vw - 36px));
  height: min(760px, calc(100vh - 108px));
}
.drawer.dragging-window { opacity: .92; user-select: none; }
.drawer.collapsed {
  height: auto !important;
  min-height: 0;
  resize: none;
}
.drawer.collapsed .drawer-body { display: none; }
.drawer-head { cursor: move; user-select: none; }
.drawer-tools { display: inline-flex; gap: 7px; align-items: center; }
.drawer-tools .close { flex: 0 0 auto; }
.drawer-collapse {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #101821;
  color: var(--soft);
  font-weight: 900;
}
.project-document-list {
  display: grid;
  gap: 8px;
}
.project-document-row {
  width: 100%;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 13, 19, .54);
  color: var(--text);
  padding: 10px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}
.project-document-row:hover,
.project-document-row:focus-visible {
  border-color: var(--cyan);
  background: rgba(98, 215, 231, .08);
  outline: none;
}
.project-document-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.project-document-copy strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.project-document-copy > span {
  color: var(--muted);
  font: 11px/1.35 var(--mono);
  overflow-wrap: anywhere;
}
.project-document-row > .tag { flex: 0 0 auto; }
.project-document-empty,
.project-document-loading {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.kx-document-shell {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}
.kx-document-toolbar {
  position: sticky;
  top: -14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 21, 31, .98);
}
.kx-document-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.kx-document-meta strong,
.kx-document-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kx-document-meta strong { font: 12px/1.3 var(--mono); }
.kx-document-meta span { color: var(--muted); font-size: 11px; }
.kx-document-content {
  width: min(100%, 920px);
  color: var(--text);
  font-size: 14px;
  line-height: 1.58;
  overflow-wrap: anywhere;
}
.kx-document-content h1,
.kx-document-content h2,
.kx-document-content h3,
.kx-document-content h4,
.kx-document-content h5,
.kx-document-content h6 {
  margin: 1.45em 0 .55em;
  line-height: 1.22;
}
.kx-document-content h1:first-child,
.kx-document-content h2:first-child { margin-top: 0; }
.kx-document-content h1 { font-size: 26px; }
.kx-document-content h2 { font-size: 21px; color: var(--cyan); }
.kx-document-content h3 { font-size: 17px; }
.kx-document-content h4,
.kx-document-content h5,
.kx-document-content h6 { font-size: 14px; }
.kx-document-content p { margin: .55em 0; }
.kx-document-content nav {
  margin: .8em 0 1.1em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 5px 12px;
}
.kx-document-content nav strong { grid-column: 1 / -1; }
.kx-document-content nav a,
.kx-document-content nav span {
  display: block;
  color: var(--cyan);
  text-decoration: none;
}
.kx-document-content nav a:hover,
.kx-document-content nav a:focus-visible { text-decoration: underline; }
.kx-document-content ul,
.kx-document-content ol { margin: .6em 0; padding-left: 1.6em; }
.kx-document-content li { margin: .25em 0; }
.kx-document-content dl {
  margin: .7em 0;
  display: grid;
  grid-template-columns: minmax(110px, .35fr) minmax(0, 1fr);
  gap: 5px 12px;
}
.kx-document-content dt { color: var(--muted); }
.kx-document-content dd { margin: 0; }
.kx-document-content blockquote {
  margin: .8em 0;
  border-left: 3px solid var(--cyan);
  padding: .2em 0 .2em 12px;
  color: var(--soft);
}
.kx-document-content pre {
  max-width: 100%;
  margin: .7em 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 10, 16, .82);
  padding: 11px 12px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.5 var(--mono);
}
.kx-document-content code { font-family: var(--mono); }
.kx-document-content table {
  width: 100%;
  margin: .8em 0;
  border-collapse: collapse;
  font-size: 12px;
}
.kx-document-content th,
.kx-document-content td {
  border: 1px solid var(--line);
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}
.kx-document-content th { background: rgba(98, 215, 231, .08); }
.edge-queue-list { display: grid; gap: 7px; }
.edge-queue-list .row strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1180px) {
  .workspace { grid-template-columns: 1fr; }
  .operator-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sprint-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiet-metrics,
  .quiet-completions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .closed-graph { min-height: auto; }
  .closed-scene { height: clamp(390px, 50vh, 540px); }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: static;
    height: auto;
    grid-template-columns: auto 1fr;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav {
    display: flex;
    overflow: auto;
  }
  .topline,
  .toolbar { align-items: stretch; flex-direction: column; }
  .top-actions { justify-content: flex-start; }
  .search { width: 100%; }
  .authority-filter, .authority-filter select { width: 100%; max-width: none; }
  .project-strip { grid-template-columns: 1fr; }
  .operator-strip,
  .sprint-tabs,
  .kpis,
  .quiet-metrics,
  .quiet-completions,
  .detail-grid,
  .graph,
  .cmd-grid {
    grid-template-columns: 1fr;
  }
  .graph { min-height: auto; }
  .graph.closed-mode,
  .graph.active-mode,
  .closed-graph { min-height: auto; }
  .closed-scene {
    height: 560px;
    min-height: 560px;
    max-height: none;
    resize: none;
  }
  .closed-agent { width: 176px; }
  .closed-flow { grid-template-columns: 1fr; }
  .closed-step:after { display: none; }
  .closed-footer { grid-template-columns: 1fr; }
  .closed-actions { justify-content: start; }
  .content { padding: 14px; }
  .subline { white-space: normal; }
  .drawer.document-view {
    left: 8px !important;
    right: 8px !important;
    top: 72px !important;
    width: calc(100vw - 16px) !important;
    height: calc(100vh - 80px) !important;
  }
  .project-document-row,
  .kx-document-toolbar { align-items: stretch; flex-direction: column; }
  .project-document-row > .tag { align-self: start; }
}
.lens-panel[hidden] { display: none !important; }
.embedded-lens-panel {
  min-height: calc(100vh - 116px);
  padding: 14px;
}
.embedded-lens-shell {
  display: grid;
  grid-template-rows: auto auto minmax(520px, 1fr);
  min-height: calc(100vh - 144px);
  border: 1px solid rgba(107, 222, 235, 0.22);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 22px 70px var(--shadow);
}
.embedded-lens-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, color-mix(in srgb, var(--panel2) 82%, transparent), color-mix(in srgb, var(--panel) 62%, transparent));
}
.embedded-lens-title { display: grid; gap: 2px; min-width: 0; }
.embedded-lens-title strong { font-size: 20px; letter-spacing: .01em; }
.embedded-lens-title span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.embedded-lens-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.context-sentinel {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) repeat(4, minmax(140px, 1fr));
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel2) 58%, transparent);
}
.context-sentinel-heading {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.context-sentinel-heading strong {
  color: var(--cyan);
  font-size: 13px;
}
.context-sentinel-heading span,
.context-sentinel-row span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.context-sentinel-row {
  min-width: 0;
  display: grid;
  gap: 4px;
  border-left: 3px solid rgba(98,215,231,.66);
  border-radius: 0 8px 8px 0;
  background: rgba(98,215,231,.06);
  padding: 7px 8px;
}
.context-sentinel-row.warn { border-left-color: #ffb84a; background: rgba(255,184,74,.07); }
.context-sentinel-row.good { border-left-color: #5dcca5; background: rgba(93,204,165,.07); }
.context-sentinel-row b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1180px) {
  .context-sentinel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .context-sentinel-heading { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .context-sentinel { grid-template-columns: 1fr; }
}
.embedded-lens-frame {
  width: 100%;
  min-height: 520px;
  height: 100%;
  border: 0;
  background: var(--embedded-bg);
}
body[data-agentos-section="fleet"] .toolbar,
body[data-agentos-section="sentinel"] .toolbar,
body[data-agentos-section="kx"] .toolbar,
body[data-agentos-section="dr"] .toolbar { display: none; }
body[data-agentos-section="fleet"] .top,
body[data-agentos-section="sentinel"] .top,
body[data-agentos-section="kx"] .top,
body[data-agentos-section="dr"] .top { padding-bottom: 10px; }
body[data-agentos-section="fleet"] .embedded-lens-shell { grid-template-rows: minmax(620px, 1fr); }
body[data-agentos-section="sentinel"] .embedded-lens-shell { grid-template-rows: minmax(620px, 1fr); }
body[data-agentos-section="dr"] .embedded-lens-shell { grid-template-rows: minmax(620px, 1fr); }
body[data-agentos-section="fleet"] .top-actions #replayBtn,
body[data-agentos-section="sentinel"] .top-actions #replayBtn,
body[data-agentos-section="kx"] .top-actions #replayBtn,
body[data-agentos-section="dr"] .top-actions #replayBtn { display: none; }

.basecamp-roof {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bar);
  color: var(--soft);
}
.roof-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.roof-brand strong { color: var(--text); letter-spacing: .02em; }
.roof-brand b { color: var(--cyan); }
.roof-brand em { color: var(--amber); font-style: normal; }
.roof-warning {
  min-width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 1px solid #ff6671;
  border-radius: 999px;
  background: #df3548;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}
.roof-warning[hidden] { display: none; }
.roof-warning:focus-visible,
.nav-unread:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.warning-tooltip {
  position: fixed;
  z-index: 120;
  width: min(420px, calc(100vw - 16px));
  max-height: min(320px, calc(100vh - 16px));
  overflow: auto;
  border: 1px solid var(--line2);
  border-radius: 8px;
  padding: 9px 11px;
  background: var(--panel);
  color: var(--soft);
  box-shadow: 0 16px 42px var(--shadow);
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.warning-tooltip[hidden] { display: none; }
.roof-mark {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(98,215,231,.48);
  border-radius: 7px;
  background: var(--cyan-bg);
  color: var(--cyan);
  font-weight: 900;
}
.roof-theme {
  border: 1px solid var(--line2);
  border-radius: 7px;
  background: var(--control-bg);
  color: var(--soft);
  padding: 5px 10px;
}
.shell { min-height: calc(100vh - 42px); }
.side { top: 42px; height: calc(100vh - 42px); }
.top { top: 0; }
.unported-placeholder {
  margin: 24px;
  min-height: 260px;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 28px;
  border: 1px dashed var(--line2);
  border-radius: 12px;
  background: var(--panel);
  text-align: center;
}
.unported-placeholder strong { color: var(--amber); font-size: 18px; }
.unported-placeholder span { color: var(--muted); }
.cmd:disabled { cursor: not-allowed; opacity: .55; }
@media (max-width: 820px) {
  .basecamp-roof { padding-inline: 10px; }
  .roof-brand span:not(.roof-mark), .roof-brand em { display: none; }
  .shell { min-height: calc(100vh - 42px); }
  .side { position: static; top: auto; height: auto; padding: 8px 10px; display: block; }
  .top { position: static; }
  .topline { align-items: center; flex-direction: row; flex-wrap: wrap; padding: 10px 14px 6px; }
  .title { flex: 1 1 220px; }
  .title > div:last-child { min-width: 0; max-width: calc(100% - 48px); }
  .title-code { width: 38px; height: 38px; }
  .title h1 { width: 100%; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 19px; }
  .subline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top-actions { flex: 1 1 auto; justify-content: flex-start; }
  #fixturePill { max-width: 180px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .toolbar { align-items: center; flex-direction: row; flex-wrap: wrap; padding: 0 14px 10px; }
  .search { width: auto; min-width: 120px; flex: 1 1 140px; }
  .authority-filter { flex: 1 1 150px; }
  .operator-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .operator-card.primary { grid-column: 1 / -1; }
  .wait-panel > .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .wait-panel > .panel-head .panel-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .graph-plan-window {
    position: absolute;
    top: auto !important;
    right: 14px !important;
    bottom: 14px;
    left: auto !important;
    width: min(360px, calc(100% - 28px)) !important;
    height: auto !important;
    max-height: min(44vh, 360px);
    resize: none;
  }
  .graph-plan-window .panel-head { min-width: 0; overflow: hidden; }
  .graph-plan-window .panel-head > div { min-width: 0; }
  .graph-plan-window .panel-actions { flex: 0 0 auto; }
  .overview-band, .kpis, .focus { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
}

/* Sentinel L2: scoped import of the frozen BC1 Sentinel visual contract. */
.sentinel-lens-panel { padding: 0; overflow: hidden; }
.sentinel-lens {
  --sentinel-critical: var(--red);
  --sentinel-warn: var(--amber);
  --sentinel-good: var(--green);
  --sentinel-info: var(--cyan);
  --sentinel-quiet: var(--dim);
  min-height: calc(100vh - 42px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel2) 86%, #06090d), var(--bg) 240px);
}
:root[data-theme="light"] .sentinel-lens {
  background: linear-gradient(180deg, #eef3f7, var(--bg) 240px);
}
.sentinel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px 12px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  flex-wrap: wrap;
}
.sentinel-eyebrow {
  color: var(--sentinel-info);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.sentinel-top h2 { margin: 3px 0; font-size: 23px; letter-spacing: 0; }
.sentinel-top p { margin: 0; max-width: 780px; color: var(--muted); line-height: 1.4; }
.sentinel-top-actions,
.sentinel-tabs,
.sentinel-view-tools { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.sentinel-top-actions { position: relative; }
.sentinel-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--sentinel-critical) 48%, var(--line));
  border-radius: 7px;
  padding: 5px 9px;
  background: color-mix(in srgb, var(--sentinel-critical) 9%, var(--panel2));
  font-weight: 750;
}
.sentinel-status-chip.current {
  border-color: color-mix(in srgb, var(--sentinel-good) 48%, var(--line));
  background: color-mix(in srgb, var(--sentinel-good) 9%, var(--panel2));
}
.sentinel-status-chip.degraded,
.sentinel-status-chip.stale,
.sentinel-status-chip.unavailable {
  border-color: color-mix(in srgb, var(--sentinel-warn) 55%, var(--line));
  background: color-mix(in srgb, var(--sentinel-warn) 9%, var(--panel2));
}
.sentinel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sentinel-critical);
  box-shadow: 0 0 9px color-mix(in srgb, var(--sentinel-critical) 55%, transparent);
}
.sentinel-status-chip.current .sentinel-dot { background: var(--sentinel-good); box-shadow: 0 0 9px color-mix(in srgb, var(--sentinel-good) 55%, transparent); }
.sentinel-status-chip.degraded .sentinel-dot,
.sentinel-status-chip.stale .sentinel-dot,
.sentinel-status-chip.unavailable .sentinel-dot { background: var(--sentinel-warn); box-shadow: 0 0 9px color-mix(in srgb, var(--sentinel-warn) 55%, transparent); }
.sentinel-icon,
.sentinel-tab,
.sentinel-filter-reset,
.sentinel-queue-mode button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel2);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.sentinel-icon { width: 34px; height: 34px; font-size: 17px; }
.sentinel-icon:hover,
.sentinel-tab:hover,
.sentinel-filter-reset:hover:not(:disabled),
.sentinel-queue-mode button:hover {
  border-color: color-mix(in srgb, var(--sentinel-info) 60%, var(--line));
  background: color-mix(in srgb, var(--sentinel-info) 8%, var(--panel2));
}
.sentinel-queue-mode { display: flex; align-items: center; }
.sentinel-queue-mode button {
  min-height: 34px;
  border-radius: 0;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.sentinel-queue-mode button:first-child { border-radius: 7px 0 0 7px; }
.sentinel-queue-mode button:last-child { margin-left: -1px; border-radius: 0 7px 7px 0; }
.sentinel-queue-mode button.active {
  position: relative;
  color: var(--sentinel-info);
  border-color: color-mix(in srgb, var(--sentinel-info) 55%, var(--line));
  background: color-mix(in srgb, var(--sentinel-info) 10%, var(--panel2));
}
.sentinel-critical-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 9px;
  background: var(--panel2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.sentinel-critical-filter:has(input:checked) {
  color: var(--sentinel-critical);
  border-color: color-mix(in srgb, var(--sentinel-critical) 55%, var(--line));
  background: color-mix(in srgb, var(--sentinel-critical) 9%, var(--panel2));
}
.sentinel-critical-filter input { width: 14px; height: 14px; margin: 0; accent-color: var(--sentinel-critical); }
.sentinel-agent-filter { position: relative; }
.sentinel-agent-filter summary {
  display: flex;
  align-items: center;
  min-height: 34px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 9px;
  background: var(--panel2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.sentinel-agent-filter summary::-webkit-details-marker { display: none; }
.sentinel-agent-filter summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.sentinel-agent-filter[open] summary { color: var(--sentinel-info); border-color: color-mix(in srgb, var(--sentinel-info) 55%, var(--line)); }
.sentinel-agent-filter[open] summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.sentinel-agent-filter-menu {
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 5px);
  width: 250px;
  max-height: min(360px, 65vh);
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--sentinel-info) 42%, var(--line));
  border-radius: 7px;
  background: var(--panel);
  box-shadow: 0 14px 38px var(--shadow);
  padding: 7px;
}
.sentinel-agent-filter-head { padding: 3px 4px 7px; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.sentinel-agent-options { display: grid; gap: 2px; }
.sentinel-agent-option {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border-radius: 5px;
  padding: 6px 5px;
  cursor: pointer;
}
.sentinel-agent-option:hover { background: color-mix(in srgb, var(--sentinel-info) 8%, transparent); }
.sentinel-agent-option input { width: 14px; height: 14px; margin: 0; accent-color: var(--sentinel-info); }
.sentinel-agent-option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.sentinel-agent-option small { color: var(--muted); font-size: 10px; }
.sentinel-filter-reset { min-height: 34px; padding: 5px 9px; color: var(--muted); font-size: 11px; font-weight: 800; }
.sentinel-filter-reset:not(:disabled) { color: var(--sentinel-info); }
.sentinel-filter-reset:disabled { opacity: .45; cursor: default; }
.sentinel-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.sentinel-metric { min-width: 0; padding: 10px 13px; background: var(--panel); }
.sentinel-metric span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; font-weight: 850; }
.sentinel-metric strong { display: block; margin-top: 4px; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sentinel-metric small { display: block; margin-top: 2px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sentinel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.sentinel-tab { padding: 6px 10px; color: var(--muted); font-weight: 750; }
.sentinel-tab.active { color: var(--text); border-color: color-mix(in srgb, var(--sentinel-info) 60%, var(--line)); background: color-mix(in srgb, var(--sentinel-info) 12%, var(--panel2)); }
.sentinel-freshness { color: var(--muted); font-size: 12px; }
.sentinel-aperture-field { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.sentinel-aperture-field select {
  min-height: 30px;
  max-width: 220px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px 24px 4px 7px;
  background: var(--panel2);
  color: var(--text);
  font: 11px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: none;
}
.sentinel-aperture-field[hidden] { display: none; }
.sentinel-layout { display: grid; grid-template-columns: 310px minmax(480px, 1fr) 340px; min-height: 620px; }
.sentinel-rail,
.sentinel-detail,
.sentinel-recovery { min-width: 0; }
.sentinel-rail { border-right: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 88%, transparent); }
.sentinel-detail { padding: 14px; }
.sentinel-recovery { border-left: 1px solid var(--line); padding: 14px; background: color-mix(in srgb, var(--panel) 84%, transparent); }
.sentinel-section-head { padding: 12px 13px 9px; border-bottom: 1px solid var(--line); }
.sentinel-section-head strong,
.sentinel-panel-head strong { display: block; font-size: 14px; }
.sentinel-section-head span,
.sentinel-panel-head span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.sentinel-incident-list { display: grid; min-width: 0; max-height: calc(100vh - 278px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.sentinel-incident {
  position: relative;
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--sentinel-quiet);
  background: transparent;
  padding: 11px 12px;
  color: var(--text);
  cursor: pointer;
}
.sentinel-incident:hover { background: color-mix(in srgb, var(--sentinel-info) 6%, transparent); }
.sentinel-incident.active { z-index: 1; background: color-mix(in srgb, var(--cyan) 11%, transparent); box-shadow: inset 0 0 0 2px var(--cyan), 0 0 14px color-mix(in srgb, var(--cyan) 35%, transparent); }
.sentinel-incident.critical { border-left-color: var(--sentinel-critical); }
.sentinel-incident.warning { border-left-color: var(--sentinel-warn); }
.sentinel-incident-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.sentinel-incident-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sentinel-incident p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.sentinel-incident-meta { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-width: 0; }
.sentinel-incident-ref,
.sentinel-incident-agents {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 5px;
  color: var(--muted);
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.sentinel-incident-ref { flex: 0 0 auto; color: var(--sentinel-info); border-color: color-mix(in srgb, var(--sentinel-info) 38%, var(--line)); }
.sentinel-incident-agents { flex: 1 1 auto; }
.sentinel-incident-empty { padding: 20px 14px; color: var(--muted); line-height: 1.5; }
.sentinel-incident-pager { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 9px 10px; background: var(--panel); box-shadow: 0 -8px 18px var(--shadow); }
.sentinel-incident-pager[hidden] { display: none; }
.sentinel-incident-pager span { color: var(--muted); font-size: 10px; }
.sentinel-incident-pager button { border: 1px solid color-mix(in srgb, var(--sentinel-info) 48%, var(--line)); border-radius: 6px; background: color-mix(in srgb, var(--sentinel-info) 9%, var(--panel2)); padding: 5px 8px; color: var(--sentinel-info); font-size: 10px; font-weight: 850; cursor: pointer; }
.sentinel-badge { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 2px 7px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.sentinel-badge-critical,
.sentinel-badge-warning { color: var(--sentinel-critical); border-color: color-mix(in srgb, var(--sentinel-critical) 50%, var(--line)); background: color-mix(in srgb, var(--sentinel-critical) 9%, transparent); }
.sentinel-badge-passed,
.sentinel-badge-read-only { color: var(--sentinel-good); border-color: color-mix(in srgb, var(--sentinel-good) 48%, var(--line)); }
.sentinel-badge-unavailable,
.sentinel-badge-planned { color: var(--sentinel-warn); border-color: color-mix(in srgb, var(--sentinel-warn) 48%, var(--line)); background: color-mix(in srgb, var(--sentinel-warn) 8%, transparent); }
.sentinel-badge-detected { color: var(--sentinel-info); border-color: color-mix(in srgb, var(--sentinel-info) 48%, var(--line)); }
.sentinel-view { display: none; }
.sentinel-view.active { display: block; }
.sentinel-hero { min-width: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--sentinel-critical) 44%, var(--line)); border-left: 5px solid var(--sentinel-critical); border-radius: 8px; background: color-mix(in srgb, var(--sentinel-critical) 7%, var(--panel)); padding: 14px; }
.sentinel-hero.warning { border-color: color-mix(in srgb, var(--sentinel-warn) 48%, var(--line)); border-left-color: var(--sentinel-warn); background: color-mix(in srgb, var(--sentinel-warn) 7%, var(--panel)); }
.sentinel-hero.empty { border-color: color-mix(in srgb, var(--sentinel-good) 48%, var(--line)); border-left-color: var(--sentinel-good); background: color-mix(in srgb, var(--sentinel-good) 7%, var(--panel)); }
.sentinel-hero-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sentinel-hero-copy { min-width: 0; }
.sentinel-hero h3 { margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.sentinel-hero p { margin: 7px 0 0; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.sentinel-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.sentinel-time { border-left: 2px solid var(--line); padding-left: 8px; }
.sentinel-time span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; font-weight: 850; }
.sentinel-time b { display: block; margin-top: 3px; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.sentinel-panel { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); overflow: hidden; }
.sentinel-panel-flush { margin-top: 0; }
.sentinel-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 11px; border-bottom: 1px solid var(--line); }
.sentinel-rows { display: grid; min-width: 0; }
.sentinel-row { display: grid; min-width: 0; gap: 4px; padding: 10px 11px; border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent); }
.sentinel-row:last-child { border-bottom: 0; }
.sentinel-row-top { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sentinel-row p { margin: 0; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.sentinel-path { font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--sentinel-info); white-space: normal; overflow-wrap: anywhere; }
.sentinel-recovery-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sentinel-recovery h3 { margin: 0; font-size: 15px; }
.sentinel-recovery-intro { margin: 5px 0 12px; color: var(--muted); line-height: 1.45; }
.sentinel-clear-action,
.sentinel-scope-card { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 10px; margin-bottom: 10px; }
.sentinel-clear-action { border-left: 3px solid var(--sentinel-critical); }
.sentinel-clear-action strong,
.sentinel-scope-card strong { display: block; }
.sentinel-clear-action span,
.sentinel-scope-card span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.sentinel-clear-action code,
.sentinel-scope-card code { display: block; margin-top: 5px; color: var(--sentinel-info); font-size: 10px; overflow-wrap: anywhere; }
.sentinel-scope-title { margin-top: 18px; }
.sentinel-focus-mode .sentinel-rail,
.sentinel-focus-mode .sentinel-toolbar { display: none; }
.sentinel-focus-mode .sentinel-layout { grid-template-columns: minmax(0, 1fr) 340px; }
.sentinel-focus-mode .sentinel-detail { max-width: 1200px; width: 100%; margin: auto; }

@media (max-width: 1080px) {
  .sentinel-layout { grid-template-columns: 260px minmax(400px, 1fr); }
  .sentinel-recovery { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .sentinel-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sentinel-focus-mode .sentinel-layout { grid-template-columns: 1fr; }
  .sentinel-focus-mode .sentinel-recovery { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .sentinel-lens { min-height: auto; }
  .sentinel-top { padding: 12px; }
  .sentinel-top-actions { width: 100%; }
  .sentinel-status-chip { flex: 1 1 100%; }
  .sentinel-agent-filter { position: static; }
  .sentinel-agent-filter-menu { top: auto; left: 10px; right: 10px; width: auto; }
  .sentinel-toolbar { align-items: flex-start; flex-direction: column; }
  .sentinel-view-tools { width: 100%; }
  .sentinel-aperture-field { flex: 1 1 140px; }
  .sentinel-aperture-field select { width: 100%; max-width: none; }
  .sentinel-freshness { width: 100%; white-space: normal; }
  .sentinel-layout { grid-template-columns: 1fr; }
  .sentinel-rail { border-right: 0; }
  .sentinel-incident-list { max-height: 360px; }
  .sentinel-detail,
  .sentinel-recovery { padding: 10px; }
  .sentinel-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sentinel-timeline { grid-template-columns: 1fr; }
}
