:root {
  color-scheme: dark;
  --bg-deep: #071316;
  --bg-mid: #0a2226;
  --panel: rgba(12, 38, 42, 0.72);
  --panel-strong: rgba(9, 30, 34, 0.9);
  --panel-soft: rgba(19, 54, 59, 0.72);
  --line: rgba(77, 212, 198, 0.32);
  --line-strong: rgba(95, 245, 229, 0.62);
  --text: #e6f7f6;
  --muted: #91bbb8;
  --accent: #4dd4c6;
  --accent-strong: #45f3de;
  --ok: #6ee7d8;
  --warn: #f6d86d;
  --critical: #ff6f8d;
  --shadow: rgba(2, 12, 14, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(77, 212, 198, 0.18), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(50, 151, 163, 0.18), transparent 28%),
    linear-gradient(140deg, var(--bg-deep), var(--bg-mid));
  color: var(--text);
  font-family: Rajdhani, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

code,
time,
.droid-glyph,
.kv-readout,
.readout-log {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.ops-grid {
  background-image:
    linear-gradient(to bottom, rgba(77, 212, 198, 0.055), rgba(77, 212, 198, 0) 45%),
    linear-gradient(rgba(77, 212, 198, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 212, 198, 0.055) 1px, transparent 1px),
    repeating-linear-gradient(0deg, rgba(100, 255, 238, 0.032) 0, rgba(100, 255, 238, 0.032) 1px, transparent 1px, transparent 4px);
  background-size: 100% 100%, 28px 28px, 28px 28px, 100% 100%;
}

.ops-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 14px;
  min-height: 100vh;
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
}

.side-rail,
.monitor-panel,
.agent-card,
.status-grid article,
.droid-monitor .monitor-bezel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(225, 255, 252, 0.09), 0 16px 36px var(--shadow);
  backdrop-filter: blur(14px);
}

.side-rail {
  position: sticky;
  top: 18px;
  align-self: start;
  min-height: calc(100vh - 36px);
  border-radius: 8px;
  padding: 10px;
}

.brand-mark {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark span,
.eyebrow,
.agent-card__callsign {
  color: var(--accent-strong);
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: 12px;
  letter-spacing: 0;
}

.brand-mark strong {
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: 16px;
  line-height: 1;
}

.side-nav {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.side-nav a,
.ops-button {
  border: 1px solid rgba(77, 212, 198, 0.35);
  border-radius: 6px;
  background: rgba(5, 20, 22, 0.62);
  color: var(--text);
  font-weight: 700;
  padding: 8px 9px;
  text-decoration: none;
}

.side-nav a {
  font-size: 13px;
}

.side-agent-nav {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.side-agent-nav section {
  display: grid;
  gap: 7px;
}

.side-agent-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(77, 212, 198, 0.16);
  padding-top: 8px;
}

.side-agent-nav__head strong,
.side-agent-nav__head span {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.side-agent-nav__head strong {
  color: var(--accent-strong);
}

.side-agent-nav__list {
  display: grid;
  gap: 3px;
}

.side-agent-nav .agent-row {
  grid-template-columns: 10px minmax(0, 1fr) minmax(38px, auto);
  gap: 8px;
  min-height: 31px;
  padding: 5px 6px;
}

.agent-row--rail {
  color: var(--text);
}

.agent-row--rail a {
  min-width: 0;
  text-decoration: none;
}

.agent-row__select {
  overflow: hidden;
}

.agent-row__details {
  border-left: 1px solid rgba(77, 212, 198, 0.18);
  color: var(--accent-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  padding-left: 5px;
  text-transform: uppercase;
}

.agent-row__details:hover,
.agent-row__details:focus {
  text-decoration: underline;
}

.side-agent-nav .agent-row strong,
.side-agent-nav .agent-row__category,
.side-agent-nav .agent-row__level,
.side-agent-nav .agent-row__state {
  display: none;
}

.side-agent-nav .agent-row__id {
  font-size: 11px;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-nav a:hover,
.ops-button:hover,
.agent-card:hover {
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(225, 255, 252, 0.12), 0 0 24px rgba(77, 212, 198, 0.18);
}

.main-deck {
  min-width: 0;
}

.deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.deck-header--compact {
  margin-bottom: 10px;
}

.deck-header h1 {
  margin: 0;
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.status-grid article {
  border-radius: 8px;
  padding: 16px;
}

.metric {
  display: block;
  color: var(--accent-strong);
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: 34px;
  font-weight: 700;
}

.label,
dt,
.panel-title-row span,
.agent-card small,
.empty-readout {
  color: var(--muted);
}

.command-layout {
  margin-bottom: 14px;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.agent-grid--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agent-roster-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
}

.agent-roster-summary__metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.agent-roster-summary__metrics article {
  min-width: 0;
  border: 1px solid rgba(117, 255, 230, 0.13);
  border-radius: 6px;
  background: rgba(0, 18, 19, 0.36);
  padding: 8px 10px;
}

.agent-roster-summary__metrics span,
.agent-roster-summary__metrics strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-roster-summary__metrics span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.agent-roster-summary__metrics strong {
  color: var(--accent-strong);
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: 20px;
  line-height: 1.1;
  margin-top: 3px;
}

.agent-roster-summary__attention {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.agent-roster-summary__attention strong {
  color: var(--text);
  font-weight: 800;
}

.agent-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 214px;
  overflow: hidden;
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
}

.agent-card::after,
.monitor-panel::after,
.monitor-bezel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(224, 255, 252, 0.035) 0 1px, transparent 1px 5px);
  opacity: 0.72;
}

.agent-card__top,
.agent-card__stats,
.event-head,
.panel-title-row,
.monitor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.agent-card__state {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.agent-card__identity {
  display: grid;
  gap: 4px;
}

.agent-card__identity strong {
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: 20px;
  line-height: 1.15;
}

.agent-card__stats {
  align-items: stretch;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agent-card__stats span {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(77, 212, 198, 0.2);
  border-radius: 6px;
  padding: 8px;
  color: var(--muted);
}

.agent-card__stats strong {
  color: var(--text);
  font-size: 20px;
}

.agent-card__last {
  color: var(--text);
  min-height: 40px;
}

.agent-panel-stack,
.operator-rail {
  display: grid;
  gap: 14px;
}

.operator-rail {
  align-self: start;
  gap: 10px;
}

.agent-filter-panel {
  padding: 12px;
}

.agent-row-list {
  display: grid;
  gap: 7px;
}

.agent-row {
  display: grid;
  grid-template-columns: 12px minmax(108px, 0.7fr) minmax(180px, 1.25fr) minmax(110px, 0.7fr) 42px 82px;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid rgba(77, 212, 198, 0.18);
  border-radius: 6px;
  background: rgba(3, 17, 19, 0.52);
  color: var(--text);
  padding: 8px 10px;
  text-decoration: none;
}

.agent-row:hover {
  border-color: var(--line-strong);
  background: rgba(13, 43, 48, 0.72);
}

.agent-row__id {
  color: var(--accent-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.operator-rail .panel-title-row {
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 8px;
}

.operator-rail .panel-title-row h2 {
  font-size: 13px;
}

.operator-rail .panel-title-row span {
  font-size: 11px;
}

.operator-rail .agent-row-list {
  gap: 5px;
}

.operator-rail .agent-row {
  grid-template-columns: 10px minmax(0, 1fr) 62px;
  gap: 7px;
  min-height: 34px;
  padding: 6px 7px;
}

.operator-rail .agent-row strong,
.operator-rail .agent-row__category,
.operator-rail .agent-row__level {
  display: none;
}

.operator-rail .agent-row__id,
.operator-rail .agent-row__state {
  font-size: 10px;
}

.agent-row.is-selected {
  border-color: var(--accent-strong);
  background: rgba(15, 67, 70, 0.82);
  box-shadow: inset 0 0 0 1px rgba(69, 243, 222, 0.24), 0 0 22px rgba(77, 212, 198, 0.18);
}

.agent-row strong,
.agent-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-row span:not(.agent-row__id):not(.status-led) {
  color: var(--muted);
}

.status-led {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 18px var(--ok);
}

.state-idle .status-led {
  background: var(--muted);
  box-shadow: 0 0 12px rgba(145, 187, 184, 0.55);
}

.state-incident .status-led,
.severity-high .status-led,
.severity-critical .status-led {
  background: var(--critical);
  box-shadow: 0 0 18px var(--critical);
}

.state-approval .status-led {
  background: var(--warn);
  box-shadow: 0 0 18px var(--warn);
}

.state-observing .status-led {
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

.state-running .status-led {
  background: var(--accent-strong);
  box-shadow: 0 0 18px var(--accent-strong);
}

.right-stack,
.detail-stack {
  display: grid;
  gap: 14px;
}

.right-stack {
  align-self: start;
}

.monitor-panel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 16px;
}

.activity-focus {
  display: grid;
  gap: 14px;
  align-self: start;
}

.command-workspace {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.command-center-workbench {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.command-row {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.command-row--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.command-row--one {
  grid-template-columns: minmax(0, 1fr);
}

.command-row > * {
  min-width: 0;
}

.command-stack {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.command-context-row > .monitor-panel {
  min-height: 172px;
}

.command-context-grid {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.05fr) minmax(500px, 0.95fr);
  min-width: 0;
}

.command-context-grid--operations {
  grid-template-columns: minmax(0, 1fr);
}

.command-context-side {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.command-health-dial-panel {
  align-items: center;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.command-health-dial-panel--wide {
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 118px;
  padding: 10px 14px;
}

.command-health-dial-panel--wide .health-dial {
  width: 92px;
}

.command-health-dial-panel--wide .health-dial span {
  font-size: 22px;
}

.command-health-dial-panel--wide .health-dial-copy {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
}

.command-health-dial-panel--wide .health-dial-copy .eyebrow,
.command-health-dial-panel--wide .health-dial-copy h2 {
  grid-column: 1;
}

.command-health-dial-panel--wide .health-dial-copy dl {
  grid-column: 2;
  grid-row: 1 / span 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.command-current-ops-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.command-target-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.current-ops-card {
  border: 1px solid rgba(77, 212, 198, 0.16);
  border-left: 3px solid rgba(77, 212, 198, 0.58);
  border-radius: 0 8px 8px 0;
  background: rgba(2, 12, 14, 0.38);
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
}

.current-ops-card.state-healthy {
  border-left-color: var(--ok);
}

.current-ops-card.state-warning,
.current-ops-card.state-approval {
  border-left-color: var(--warn);
}

.current-ops-card.state-incident {
  border-left-color: var(--critical);
}

.current-ops-card span,
.current-ops-card small {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.current-ops-card strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-target-card {
  border: 1px solid rgba(77, 212, 198, 0.16);
  border-left: 3px solid rgba(77, 212, 198, 0.52);
  border-radius: 0 8px 8px 0;
  background: rgba(2, 12, 14, 0.38);
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
}

.command-target-card.state-healthy,
.command-target-card.state-fresh_healthy {
  border-left-color: var(--ok);
  background: linear-gradient(90deg, rgba(63, 221, 141, 0.08), rgba(2, 12, 14, 0.38) 38%);
}

.command-target-card.state-due,
.command-target-card.state-due_healthy,
.command-target-card.state-never {
  border-left-color: var(--warn);
  background: linear-gradient(90deg, rgba(247, 213, 122, 0.1), rgba(2, 12, 14, 0.38) 38%);
}

.command-target-card.state-stale,
.command-target-card.state-stale_healthy,
.command-target-card.state-degraded {
  border-left-color: var(--warn);
  background: linear-gradient(90deg, rgba(247, 213, 122, 0.14), rgba(2, 12, 14, 0.38) 38%);
}

.command-target-card.state-failing {
  border-left-color: var(--critical);
  background: linear-gradient(90deg, rgba(255, 95, 109, 0.12), rgba(2, 12, 14, 0.38) 38%);
}

.command-target-card.state-disabled,
.command-target-card.state-planned {
  opacity: 0.58;
}

.command-target-card > div:first-child {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.command-target-card span,
.command-target-card small,
.command-target-card dt,
.command-target-card dd {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.command-target-card span,
.command-target-card dt {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.command-target-card strong {
  color: var(--accent-strong);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.command-target-card small {
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-target-card dl {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.command-target-card dl div {
  min-width: 0;
}

.command-target-card dd {
  color: var(--text);
  font-size: 11px;
  margin: 2px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-target-card p {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  line-height: 1.25;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-freshness-strip {
  align-items: center;
  border: 1px solid rgba(77, 212, 198, 0.16);
  border-left: 3px solid var(--accent);
  border-radius: 0 7px 7px 0;
  background: rgba(2, 12, 14, 0.38);
  display: grid;
  gap: 4px;
  grid-column: 1 / -1;
  padding: 8px 10px;
}

.monitor-freshness-strip.state-active {
  border-left-color: var(--ok);
  background: linear-gradient(90deg, rgba(63, 221, 141, 0.08), rgba(2, 12, 14, 0.38) 42%);
}

.monitor-freshness-strip.state-due,
.monitor-freshness-strip.state-overdue {
  border-left-color: var(--warn);
  background: linear-gradient(90deg, rgba(247, 213, 122, 0.1), rgba(2, 12, 14, 0.38) 42%);
}

.monitor-freshness-strip.state-off {
  border-left-color: var(--critical);
  background: linear-gradient(90deg, rgba(255, 95, 109, 0.1), rgba(2, 12, 14, 0.38) 42%);
}

.monitor-freshness-strip strong,
.monitor-freshness-strip span,
.monitor-freshness-strip code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.monitor-freshness-strip strong {
  color: var(--accent-strong);
  font-size: 11px;
  text-transform: uppercase;
}

.monitor-freshness-strip span {
  color: var(--muted);
  font-size: 11px;
}

.monitor-freshness-strip code {
  color: var(--text);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops9-lifecycle-strip {
  border: 1px solid rgba(77, 212, 198, 0.14);
  border-radius: 8px;
  background: rgba(2, 12, 14, 0.3);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 8px;
}

.ops9-lifecycle-strip article {
  align-items: center;
  border: 1px solid rgba(77, 212, 198, 0.14);
  border-radius: 7px;
  background: rgba(2, 12, 14, 0.42);
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 7px 9px;
}

.ops9-lifecycle-strip article.state-complete {
  border-color: rgba(63, 221, 141, 0.3);
}

.ops9-lifecycle-strip article.state-current {
  border-color: rgba(255, 213, 102, 0.38);
}

.ops9-lifecycle-strip span,
.ops9-lifecycle-strip strong {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  text-transform: uppercase;
}

.ops9-lifecycle-strip span {
  border: 1px solid rgba(77, 212, 198, 0.22);
  border-radius: 999px;
  color: var(--muted);
  display: inline-grid;
  flex: 0 0 auto;
  font-size: 9px;
  height: 22px;
  place-items: center;
  width: 22px;
}

.ops9-lifecycle-strip article.state-complete span {
  border-color: rgba(63, 221, 141, 0.34);
  color: var(--ok);
}

.ops9-lifecycle-strip article.state-current span {
  border-color: rgba(255, 213, 102, 0.42);
  color: var(--warn);
}

.ops9-lifecycle-strip strong {
  color: var(--text);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.health-score-breakdown {
  display: grid;
  gap: 4px;
  grid-column: 1 / -1;
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
}

.health-score-breakdown li {
  align-items: center;
  background: rgba(2, 12, 14, 0.42);
  border: 1px solid rgba(77, 212, 198, 0.14);
  border-radius: 6px;
  display: grid;
  gap: 6px;
  grid-template-columns: 54px minmax(150px, 0.36fr) minmax(0, 1fr) auto;
  min-width: 0;
  padding: 5px 7px;
}

.health-state-badge,
.health-score-breakdown em {
  border: 1px solid rgba(77, 212, 198, 0.2);
  border-radius: 999px;
  display: inline-grid;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-style: normal;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  text-transform: uppercase;
}

.health-state-badge {
  margin-left: 8px;
  padding: 4px 7px;
  vertical-align: middle;
}

.health-score-breakdown em {
  color: var(--accent-strong);
  font-size: 10px;
  min-width: 44px;
  padding: 4px 5px;
}

.health-state-badge.state-healthy,
.health-score-breakdown .state-healthy em {
  border-color: rgba(93, 255, 184, 0.28);
  color: var(--ok);
}

.health-state-badge.state-warning,
.health-score-breakdown .state-warning em {
  border-color: rgba(255, 210, 114, 0.28);
  color: var(--warn);
}

.health-state-badge.state-incident,
.health-score-breakdown .state-incident em {
  border-color: rgba(255, 100, 100, 0.32);
  color: var(--critical);
}

.health-state-badge.state-approval,
.health-score-breakdown .state-approval em {
  border-color: rgba(77, 212, 198, 0.3);
  color: var(--accent-strong);
}

.health-score-breakdown strong,
.health-score-breakdown a,
.health-score-breakdown span,
.health-score-breakdown code,
.health-monitor-actions span,
.resolution-lifecycle-list strong,
.resolution-lifecycle-list span,
.resolution-lifecycle-list small {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.health-score-breakdown strong,
.health-score-breakdown a {
  color: var(--accent-strong);
  font-size: 11px;
  text-decoration: none;
}

.health-score-breakdown a:hover {
  text-decoration: underline;
}

.health-score-breakdown span {
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.health-score-breakdown code {
  color: var(--text);
  font-size: 11px;
}

.health-score-breakdown .state-incident code {
  color: var(--critical);
}

.health-score-breakdown .state-warning code,
.health-score-breakdown .state-approval code {
  color: var(--warn);
}

.health-monitor-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 1 / -1;
}

.health-monitor-actions > strong {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  margin-right: 2px;
  text-transform: uppercase;
}

.health-monitor-actions form {
  align-items: center;
  display: flex;
  gap: 6px;
}

.health-monitor-actions span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.health-dial {
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  grid-template-rows: minmax(18px, 0.72fr) auto 3px auto minmax(20px, 0.76fr);
  justify-items: center;
  position: relative;
  text-align: center;
}

.health-dial::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background:
    radial-gradient(circle, rgba(4, 18, 20, 0.96) 0 55%, transparent 56%),
    conic-gradient(var(--ok) var(--health-score), rgba(77, 212, 198, 0.16) 0);
  box-shadow: inset 0 0 22px rgba(69, 243, 222, 0.12), 0 0 24px rgba(77, 212, 198, 0.16);
}

.command-health-dial-panel.state-approval .health-dial::before,
.command-health-dial-panel.state-warning .health-dial::before {
  background:
    radial-gradient(circle, rgba(4, 18, 20, 0.96) 0 55%, transparent 56%),
    conic-gradient(var(--warn) var(--health-score), rgba(77, 212, 198, 0.16) 0);
}

.command-health-dial-panel.state-incident .health-dial::before {
  background:
    radial-gradient(circle, rgba(4, 18, 20, 0.96) 0 55%, transparent 56%),
    conic-gradient(var(--critical) var(--health-score), rgba(77, 212, 198, 0.16) 0);
}

.health-dial span,
.health-dial strong {
  position: relative;
  z-index: 1;
}

.health-dial span {
  align-self: end;
  color: var(--accent-strong);
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: 28px;
  font-weight: 800;
  grid-row: 2;
  line-height: 1;
}

.health-dial strong {
  align-self: start;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  grid-row: 4;
  line-height: 1.05;
  max-width: 48px;
  text-transform: uppercase;
  white-space: normal;
}

.health-dial-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.health-dial-copy h2,
.command-status-panel h2 {
  margin: 0;
  color: var(--text);
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: 15px;
  line-height: 1.25;
}

.health-dial-copy dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
}

.health-dial-copy dl div,
.command-status-meta {
  border: 1px solid rgba(77, 212, 198, 0.16);
  border-radius: 6px;
  background: rgba(2, 12, 14, 0.42);
  min-width: 0;
  padding: 5px 7px;
}

.health-dial-copy dt,
.health-dial-copy dd,
.command-status-meta,
.command-env-card span,
.command-env-card strong,
.command-env-card small {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.health-dial-copy dt,
.command-env-card span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.health-dial-copy dd {
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}

.primary-approval-bar {
  align-items: center;
  background: linear-gradient(90deg, rgba(255, 210, 114, 0.13), rgba(2, 12, 14, 0.68));
  border: 1px solid rgba(255, 210, 114, 0.28);
  border-left: 3px solid var(--warn);
  border-radius: 6px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(116px, 0.22fr) minmax(0, 1fr) auto;
  margin: 0 0 10px;
  padding: 9px 10px;
  position: sticky;
  top: 10px;
  z-index: 20;
}

.primary-approval-bar.state-resolved,
.primary-approval-bar.state-verified {
  background: linear-gradient(90deg, rgba(63, 221, 141, 0.1), rgba(2, 12, 14, 0.68));
  border-color: rgba(63, 221, 141, 0.25);
  border-left-color: var(--ok);
}

.primary-approval-bar.state-executing,
.primary-approval-bar.state-verifying,
.primary-approval-bar.state-approved {
  background: linear-gradient(90deg, rgba(77, 212, 198, 0.1), rgba(2, 12, 14, 0.68));
  border-color: rgba(77, 212, 198, 0.24);
  border-left-color: var(--accent);
}

.primary-approval-bar.state-rejected,
.primary-approval-bar.state-failed {
  background: linear-gradient(90deg, rgba(255, 95, 109, 0.1), rgba(2, 12, 14, 0.68));
  border-color: rgba(255, 95, 109, 0.24);
  border-left-color: var(--critical);
}

.primary-approval-bar.is-empty {
  display: none;
}

.primary-approval-badge,
.primary-approval-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.primary-approval-badge {
  border: 1px solid rgba(255, 210, 114, 0.22);
  border-radius: 6px;
  background: rgba(2, 12, 14, 0.34);
  padding: 7px 8px;
}

.primary-approval-bar strong,
.primary-approval-bar span,
.primary-approval-bar small {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.primary-approval-bar strong {
  color: var(--text);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-approval-bar span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.primary-approval-bar small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-approval-badge span {
  color: var(--warn);
  font-size: 10px;
  font-weight: 900;
}

.primary-approval-badge strong {
  color: var(--accent-strong);
  font-size: 11px;
}

.approval-actions--primary {
  grid-template-columns: 86px 72px;
}

.command-env-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.command-env-card {
  border: 1px solid rgba(77, 212, 198, 0.18);
  border-left: 4px solid rgba(77, 212, 198, 0.45);
  border-radius: 8px;
  background: rgba(3, 17, 19, 0.56);
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 10px;
}

.command-env-card.state-healthy {
  border-left-color: var(--ok);
}

.command-env-card.state-degraded,
.command-env-card.state-unknown {
  border-left-color: var(--warn);
}

.command-env-card.state-failing {
  border-left-color: var(--critical);
}

.command-env-card.state-disabled {
  border-color: rgba(145, 187, 184, 0.16);
  border-left-color: rgba(145, 187, 184, 0.38);
  background: rgba(8, 18, 20, 0.34);
  opacity: 0.62;
}

.command-env-card strong {
  color: var(--accent-strong);
  font-size: 14px;
  line-height: 1;
}

.command-env-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.target-freshness {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2px 0 0;
}

.target-freshness div {
  border: 1px solid rgba(77, 212, 198, 0.12);
  border-radius: 5px;
  background: rgba(2, 12, 14, 0.36);
  min-width: 0;
  padding: 4px;
}

.target-freshness dt,
.target-freshness dd {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.target-freshness dt {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.target-freshness dd {
  color: var(--text);
  font-size: 9px;
  margin: 1px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.target-freshness.state-fresh div:first-child {
  border-color: rgba(89, 224, 166, 0.22);
}

.target-freshness.state-due div,
.target-freshness.state-never div {
  border-color: rgba(247, 213, 122, 0.24);
}

.target-freshness.state-stale div {
  border-color: rgba(255, 95, 109, 0.3);
}

.command-context-side .monitor-panel {
  padding: 12px;
}

.command-context-side .command-env-card-grid {
  gap: 6px;
}

.command-context-side .command-env-card {
  gap: 3px;
  min-height: 64px;
  padding: 8px;
}

.agent-fleet-panel {
  align-content: start;
  display: grid;
  gap: 10px;
}

.agent-fleet-metrics {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.agent-fleet-metrics div {
  min-width: 0;
  border: 1px solid rgba(117, 255, 230, 0.13);
  border-radius: 6px;
  background: rgba(1, 17, 20, 0.34);
  padding: 7px 6px;
}

.agent-fleet-metrics strong,
.agent-fleet-metrics span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-fleet-metrics strong {
  color: var(--accent-strong);
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: 18px;
  line-height: 1;
}

.agent-fleet-metrics span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
  margin-top: 4px;
  text-transform: uppercase;
}

.agent-fleet-list {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  max-height: 178px;
  overflow: auto;
  padding: 0;
}

.agent-fleet-list li {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-width: 0;
  border: 1px solid rgba(117, 255, 230, 0.12);
  border-radius: 6px;
  background: rgba(0, 18, 19, 0.4);
  padding: 7px 8px;
}

.agent-fleet-list strong,
.agent-fleet-list small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-fleet-list strong {
  color: var(--text);
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: 11px;
  line-height: 1.1;
}

.agent-fleet-list small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  margin-top: 2px;
}

.agent-fleet-list a {
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.agent-fleet-list a:hover,
.agent-fleet-list a:focus-visible {
  text-decoration: underline;
}

.command-agent-card {
  align-items: start;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
}

.command-agent-glyph {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  font-weight: 800;
  text-shadow: 0 0 14px rgba(69, 243, 222, 0.52);
}

.command-agent-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.command-agent-copy h2 {
  margin: 0;
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: 16px;
  line-height: 1.15;
}

.command-agent-copy span,
.command-agent-copy p,
.command-agent-copy strong {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  margin: 0;
}

.command-agent-copy span {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  text-transform: uppercase;
}

.command-agent-copy strong {
  color: var(--accent-strong);
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  margin-top: 4px;
}

.command-agent-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
}

.command-panel-head,
.command-status-meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.command-status-panel {
  display: grid;
  gap: 13px;
}

.command-readout-link {
  border: 1px solid rgba(77, 212, 198, 0.32);
  border-radius: 6px;
  color: var(--accent-strong);
  flex: 0 0 auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 9px;
  text-decoration: none;
  text-transform: uppercase;
}

.command-readout-link:hover,
.command-readout-link:focus {
  border-color: var(--line-strong);
  text-decoration: underline;
}

.command-status-meta {
  grid-column: 1 / -1;
  justify-content: flex-start;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.command-status-meta strong {
  color: var(--accent-strong);
}

.command-agent-workbench-panel {
  display: grid;
  gap: 14px;
  min-height: 0;
  padding: 14px;
}

.command-agent-workbench-header {
  align-items: center;
  border-bottom: 1px solid rgba(77, 212, 198, 0.18);
  display: grid;
  gap: 12px;
  grid-template-columns: 58px minmax(0, 1fr) minmax(260px, auto) auto;
  padding-bottom: 12px;
}

.command-agent-workbench-header .command-status-meta {
  grid-column: auto;
  justify-content: flex-start;
  min-width: 0;
  overflow-wrap: anywhere;
}

.command-workbench-main {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.command-workbench-main > section,
.command-chat-panel--bottom {
  border: 1px solid rgba(77, 212, 198, 0.14);
  border-radius: 8px;
  background: rgba(2, 12, 14, 0.34);
  min-width: 0;
  padding: 12px;
}

.command-findings-panel,
.command-actions-panel,
.command-chat-panel,
.command-resolution-panel {
  align-content: start;
  display: grid;
  gap: 10px;
}

.command-findings-panel .readout-log,
.command-approval-list,
.command-chat-list {
  max-height: 220px;
}

.command-approval-list {
  max-height: 180px;
}

.command-approval-list .approval-empty {
  min-height: 0;
  padding: 10px;
}

.execution-state-strip {
  border: 1px solid rgba(77, 212, 198, 0.18);
  border-left: 3px solid var(--accent);
  border-radius: 0 7px 7px 0;
  background: rgba(77, 212, 198, 0.07);
  display: grid;
  gap: 4px;
  padding: 8px 10px;
}

.execution-state-strip.is-empty {
  display: none;
}

.execution-state-strip.state-approved,
.execution-state-strip.state-executing,
.execution-state-strip.state-verifying {
  border-left-color: var(--warn);
  background: rgba(255, 213, 102, 0.08);
}

.execution-state-strip.state-resolved,
.execution-state-strip.state-verified {
  border-left-color: var(--ok);
  background: rgba(63, 221, 141, 0.08);
}

.execution-state-strip.state-failed {
  border-left-color: var(--critical);
  background: rgba(255, 92, 122, 0.08);
}

.execution-state-strip span,
.execution-state-strip small {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.execution-state-strip strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
}

.verification-summary-card {
  border: 1px solid rgba(77, 212, 198, 0.16);
  border-left: 3px solid var(--accent);
  border-radius: 0 7px 7px 0;
  background: rgba(2, 12, 14, 0.38);
  display: grid;
  gap: 7px;
  padding: 9px 10px;
}

.verification-summary-card.is-empty {
  display: none;
}

.verification-summary-card.state-verified {
  border-left-color: var(--ok);
}

.verification-summary-card.state-failed {
  border-left-color: var(--critical);
}

.verification-summary-card__head {
  display: grid;
  gap: 3px;
}

.verification-summary-card span,
.verification-summary-card small {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.verification-summary-card strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
}

.verification-summary-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  margin: 0;
}

.verification-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.verification-check {
  border: 1px solid rgba(77, 212, 198, 0.16);
  border-radius: 6px;
  background: rgba(77, 212, 198, 0.06);
  color: var(--text);
  display: inline-grid;
  gap: 2px;
  min-width: 112px;
  padding: 6px 7px;
  text-decoration: none;
}

.verification-check.state-failed {
  border-color: rgba(255, 92, 122, 0.28);
}

.verification-check.state-passed {
  border-color: rgba(63, 221, 141, 0.22);
}

.verification-check span {
  color: inherit;
  font-size: 9px;
}

.verification-check strong {
  font-size: 11px;
}

.verification-check[href]:hover,
.verification-check[href]:focus-visible {
  border-color: rgba(77, 212, 198, 0.52);
  color: var(--accent-strong);
}

.audit-timeline-card {
  border: 1px solid rgba(77, 212, 198, 0.16);
  border-radius: 7px;
  background: rgba(2, 12, 14, 0.32);
  display: grid;
  gap: 8px;
  padding: 9px 10px;
}

.audit-timeline-card.is-empty {
  display: none;
}

.audit-timeline-card__head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.audit-timeline-card__head span,
.audit-timeline-card__head strong {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.audit-timeline-card__head span {
  color: var(--accent-strong);
}

.audit-timeline-card__head strong {
  color: var(--muted);
}

.audit-timeline-list {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  max-height: 210px;
  overflow: auto;
  padding: 0 4px 0 0;
}

.audit-timeline-list li {
  border-left: 2px solid rgba(77, 212, 198, 0.34);
  background: rgba(2, 12, 14, 0.42);
  display: grid;
  gap: 3px;
  padding: 7px 9px;
}

.audit-timeline-list .state-approved,
.audit-timeline-list .state-executing,
.audit-timeline-list .state-verifying,
.audit-timeline-list .state-approval,
.audit-timeline-list .state-approval_approved,
.audit-timeline-list .state-relay_rerun_monitor_requested,
.audit-timeline-list .state-relay_collect_deeper_logs_requested {
  border-left-color: var(--warn);
}

.audit-timeline-list .state-resolved,
.audit-timeline-list .state-verified,
.audit-timeline-list .state-approved {
  border-left-color: var(--ok);
}

.audit-timeline-list .state-failed,
.audit-timeline-list .state-rejected,
.audit-timeline-list .state-relay_manual_intervention_required {
  border-left-color: var(--critical);
}

.audit-timeline-list time,
.audit-timeline-list small {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.audit-timeline-list strong {
  color: var(--text);
  font-size: 11px;
  line-height: 1.2;
}

.audit-timeline-list span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.resolution-lifecycle-list {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  max-height: 150px;
  overflow: auto;
  padding: 0 4px 0 0;
}

.resolution-lifecycle-list li {
  background: rgba(2, 12, 14, 0.42);
  border: 1px solid rgba(77, 212, 198, 0.14);
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
  display: grid;
  gap: 3px;
  padding: 7px 9px;
}

.resolution-lifecycle-list .state-proposed,
.resolution-lifecycle-list .state-approved,
.resolution-lifecycle-list .state-executing,
.resolution-lifecycle-list .state-verifying {
  border-left-color: var(--warn);
}

.resolution-lifecycle-list .state-verified,
.resolution-lifecycle-list .state-resolved {
  border-left-color: var(--ok);
}

.resolution-lifecycle-list .state-rejected {
  border-left-color: var(--critical);
}

.resolution-lifecycle-list .state-failed {
  border-left-color: var(--critical);
}

.resolution-lifecycle-list strong {
  color: var(--accent-strong);
  font-size: 11px;
  text-transform: uppercase;
}

.resolution-lifecycle-list span,
.resolution-lifecycle-list small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.command-chat-list {
  max-height: 250px;
}

.command-railway-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  grid-column: 1 / -1;
}

.command-workbench-main .command-railway-panel {
  grid-column: auto;
  padding: 12px;
}

.command-workbench-main .railway-service-grid {
  --railway-card-height: 142px;
  --railway-map-gap: 14px;
  padding: 8px 2px 12px;
}

.command-workbench-main .railway-service-card {
  gap: 6px;
  padding: 8px;
}

.railway-service-node[data-service-log-anchor]:not([data-service-log-anchor=""]) .railway-service-card,
.railway-service-node[data-service-error-anchor]:not([data-service-error-anchor=""]) .railway-service-card {
  cursor: pointer;
}

.railway-service-node[data-service-log-anchor]:not([data-service-log-anchor=""]) .railway-service-card:hover,
.railway-service-node[data-service-error-anchor]:not([data-service-error-anchor=""]) .railway-service-card:hover {
  border-color: rgba(77, 212, 198, 0.42);
  box-shadow: inset 0 1px 0 rgba(225, 255, 252, 0.1), 0 0 18px rgba(77, 212, 198, 0.12);
}

.command-evidence-log {
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.command-protocol-panel {
  display: grid;
  gap: 12px;
}

.command-protocol-panel .graph-node-strip {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.command-protocol-panel .protocol-timeline {
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.command-chat-panel--bottom {
  align-self: end;
}

.command-chat-panel--bottom .command-chat-list {
  max-height: 210px;
}

.command-chat-panel--bottom .agent-chat-bar {
  margin-top: 2px;
}

.command-overview-grid {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.7fr) minmax(220px, 0.7fr);
  gap: 14px;
}

.command-overview-grid > .monitor-panel {
  align-self: start;
  max-height: 360px;
}

.command-overview-grid > .monitor-panel > .readout-log {
  max-height: 278px;
  overflow: auto;
  padding-right: 4px;
}

.global-activity-panel {
  min-height: 154px;
}

.agent-workbench {
  display: grid;
  gap: 12px;
  align-content: start;
  grid-template-rows: auto;
  min-height: 0;
}

.agent-workbench--full {
  grid-template-rows: auto auto auto auto;
  min-height: 0;
}

.workbench-header,
.workbench-section-title,
.workbench-status,
.agent-chat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workbench-header {
  border-bottom: 1px solid rgba(77, 212, 198, 0.22);
  padding-bottom: 14px;
}

.workbench-header h2,
.workbench-section-title h3,
.workbench-section-title h4 {
  margin: 0;
  font-family: Orbitron, Rajdhani, sans-serif;
}

.workbench-header h2 {
  font-size: 22px;
}

.workbench-section-title h3 {
  font-size: 16px;
  line-height: 1.2;
}

.workbench-section-title h4 {
  font-size: 12px;
  line-height: 1.2;
}

.workbench-section-title--sub {
  margin-top: 4px;
}

.workbench-header span,
.workbench-section-title span,
.workbench-section-title a {
  color: var(--muted);
  font-size: 12px;
}

.workbench-section-title a {
  text-decoration: none;
}

.workbench-status {
  flex: 0 0 auto;
  justify-content: flex-end;
  color: var(--accent-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.live-feed-status {
  border: 1px solid rgba(77, 212, 198, 0.28);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  padding: 4px 6px;
  text-transform: uppercase;
}

.workbench-readout-link {
  border: 1px solid rgba(77, 212, 198, 0.35);
  border-radius: 6px;
  background: rgba(5, 20, 22, 0.62);
  color: var(--accent-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 7px 9px;
  text-decoration: none;
  text-transform: uppercase;
}

.workbench-readout-link:hover {
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(225, 255, 252, 0.12), 0 0 18px rgba(77, 212, 198, 0.16);
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: 12px;
}

.workbench-top-grid {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  gap: 12px;
}

.ops-workbench-matrix {
  --ops-control-width: 320px;
  display: grid;
  align-items: stretch;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "controls"
    "protocol"
    "monitoring";
}

.ops-workbench-matrix--full {
  --ops-control-width: 350px;
  min-width: 0;
}

.agent-workbench,
.ops-workbench-matrix,
.ops-workbench-matrix > *,
.monitoring-flow-grid,
.monitoring-flow-grid > *,
.command-workspace,
.command-overview-grid > * {
  min-width: 0;
}

.workbench-panel--protocol {
  grid-area: protocol;
}

.workbench-panel--actions {
  grid-area: controls;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.monitoring-flow-grid {
  grid-area: monitoring;
}

.security-posture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.posture-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.posture-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(77, 212, 198, 0.14);
  border-radius: 6px;
  background: rgba(2, 12, 14, 0.42);
  padding: 8px 9px;
}

.posture-list--stacked div {
  grid-template-columns: minmax(0, 1fr) auto;
}

.posture-list--stacked dd:last-child {
  grid-column: 1 / -1;
}

.posture-list dt,
.posture-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.posture-list dt {
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.posture-list dd {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  text-align: right;
}

.posture-list--stacked dd:last-child {
  text-align: left;
}

.posture-target-list {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.posture-target-list li {
  border-left: 2px solid rgba(77, 212, 198, 0.42);
  border-radius: 0 6px 6px 0;
  background: rgba(2, 12, 14, 0.42);
  display: grid;
  gap: 3px;
  padding: 7px 9px;
}

.posture-target-list strong,
.posture-target-list span {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.posture-target-list strong {
  color: var(--accent-strong);
  font-size: 12px;
}

.posture-target-list span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.state-ok {
  color: var(--ok) !important;
}

.state-warn {
  color: var(--warn) !important;
}

.workbench-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.ops-status-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 12px;
  align-items: stretch;
  border: 1px solid rgba(77, 212, 198, 0.26);
  border-left: 4px solid var(--muted);
  border-radius: 7px;
  background: rgba(2, 12, 14, 0.58);
  padding: 11px 12px;
}

.ops-status-summary.state-healthy {
  border-left-color: var(--ok);
}

.ops-status-summary.state-degraded,
.ops-status-summary.state-unknown {
  border-left-color: var(--warn);
}

.ops-status-summary.state-failing {
  border-left-color: var(--critical);
}

.ops-status-summary div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ops-status-summary span,
.ops-status-summary dt,
.ops-status-summary dd {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}

.ops-status-summary strong {
  color: var(--accent-strong);
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ops-status-summary dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.ops-status-summary dt,
.ops-status-summary dd {
  border: 1px solid rgba(77, 212, 198, 0.18);
  background: rgba(4, 18, 20, 0.5);
  padding: 6px 7px;
}

.ops-status-summary dt {
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.ops-status-summary dd {
  color: var(--text);
  border-radius: 0 0 6px 6px;
  grid-row: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.environment-scope-panel {
  border: 1px solid rgba(77, 212, 198, 0.2);
  border-radius: 7px;
  background: rgba(3, 17, 19, 0.28);
  display: grid;
  gap: 9px;
  padding: 10px 12px;
}

.environment-scope-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.environment-scope-chip {
  border: 1px solid rgba(77, 212, 198, 0.16);
  border-left: 3px solid rgba(77, 212, 198, 0.45);
  border-radius: 7px;
  background: rgba(2, 12, 14, 0.48);
  display: grid;
  gap: 3px;
  min-height: 74px;
  padding: 8px 9px;
}

.environment-scope-chip.state-healthy {
  border-left-color: var(--ok);
}

.environment-scope-chip.state-degraded,
.environment-scope-chip.state-unknown {
  border-left-color: var(--warn);
}

.environment-scope-chip.state-failing {
  border-left-color: var(--critical);
}

.environment-scope-chip.state-disabled {
  border-color: rgba(145, 187, 184, 0.16);
  border-left-color: rgba(145, 187, 184, 0.38);
  background: rgba(8, 18, 20, 0.34);
  opacity: 0.62;
}

.environment-scope-chip strong,
.environment-scope-chip span,
.environment-scope-chip small {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.environment-scope-chip strong {
  color: var(--accent-strong);
  font-size: 13px;
  line-height: 1.1;
}

.environment-scope-chip span {
  color: var(--text);
  font-size: 10px;
  line-height: 1.1;
  text-transform: uppercase;
}

.environment-scope-chip small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.workbench-detail-top-grid,
.workbench-detail-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.32fr);
  gap: 12px;
}

.agent-workbench--full {
  overflow-x: visible;
}

.full-current-state-band {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-width: 0;
}

.full-current-card {
  border: 1px solid rgba(77, 212, 198, 0.16);
  border-top: 3px solid rgba(77, 212, 198, 0.58);
  border-radius: 8px;
  background: rgba(2, 12, 14, 0.38);
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
}

.full-current-card.state-healthy,
.full-current-card.state-observing,
.full-current-card.state-verified {
  border-top-color: var(--ok);
}

.full-current-card.state-warning,
.full-current-card.state-approval {
  border-top-color: var(--warn);
}

.full-current-card.state-incident,
.full-current-card.state-failed {
  border-top-color: var(--critical);
}

.full-current-card span,
.full-current-card small {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.full-current-card strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.full-readout-tabs,
.command-tabs {
  border: 1px solid rgba(77, 212, 198, 0.16);
  border-bottom-color: rgba(77, 212, 198, 0.34);
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(180deg, rgba(77, 212, 198, 0.09), rgba(2, 12, 14, 0.34)),
    rgba(2, 12, 14, 0.46);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 7px 7px 0;
}

.full-readout-tabs button,
.command-tabs button {
  border: 1px solid rgba(77, 212, 198, 0.16);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: rgba(2, 12, 14, 0.5);
  color: rgba(202, 235, 232, 0.72);
  cursor: pointer;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  margin: 0 4px 0 0;
  min-height: 38px;
  min-width: 112px;
  padding: 10px 38px 9px 14px;
  position: relative;
  text-transform: uppercase;
}

.full-readout-tabs button strong,
.full-readout-tabs button span,
.command-tabs button strong,
.command-tabs button span {
  display: block;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.full-readout-tabs button strong,
.command-tabs button strong {
  color: inherit;
  font-size: 12px;
}

.full-readout-tabs button span,
.command-tabs button span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  margin-top: 3px;
}

.full-readout-tabs button em,
.command-tabs button em {
  align-items: center;
  border: 1px solid rgba(77, 212, 198, 0.24);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding: 0 5px;
  position: absolute;
  right: 9px;
  top: 9px;
}

.full-readout-tabs button:hover,
.full-readout-tabs button:focus-visible,
.command-tabs button:hover,
.command-tabs button:focus-visible {
  border-color: rgba(77, 212, 198, 0.34);
  background: rgba(77, 212, 198, 0.1);
  color: var(--accent-strong);
}

.full-readout-tabs button.is-active,
.command-tabs button.is-active {
  border-color: rgba(77, 212, 198, 0.44);
  background:
    linear-gradient(180deg, rgba(77, 212, 198, 0.16), rgba(2, 12, 14, 0.88)),
    rgba(2, 12, 14, 0.88);
  box-shadow: inset 0 1px 0 rgba(225, 255, 252, 0.14);
  color: var(--accent-strong);
}

.full-readout-tabs button.is-active span,
.command-tabs button.is-active span {
  color: rgba(202, 235, 232, 0.86);
}

.full-readout-tabs button.is-active em,
.command-tabs button.is-active em {
  border-color: rgba(77, 212, 198, 0.52);
  color: var(--accent-strong);
}

.full-readout-tabs button.is-active::after,
.command-tabs button.is-active::after {
  background: var(--accent-strong);
  bottom: 0;
  content: "";
  height: 3px;
  left: 10px;
  position: absolute;
  right: 10px;
}

.agent-workbench--full .full-tab-panel:not(.is-active) {
  display: none;
}

.command-tab-panel:not(.is-active) {
  display: none;
}

.workbench-primary,
.workbench-run-panel,
.workbench-side,
.workbench-lower-grid,
.workbench-bottom-grid {
  display: grid;
  gap: 12px;
}

.workbench-primary,
.workbench-run-panel,
.workbench-side section,
.workbench-detail-main-grid > section,
.workbench-lower-grid section,
.agent-chat-panel,
.ops-terminal-panel {
  min-width: 0;
  border: 1px solid rgba(77, 212, 198, 0.18);
  border-radius: 7px;
  background: rgba(3, 17, 19, 0.35);
  padding: 12px;
}

.workbench-primary {
  align-content: start;
}

.workbench-run-panel {
  align-content: start;
  gap: 12px;
}

.workbench-panel--actions {
  align-self: stretch;
}

.compact-disclosure > summary {
  cursor: pointer;
  list-style: none;
}

.compact-disclosure > summary::-webkit-details-marker {
  display: none;
}

.compact-disclosure > summary::after {
  content: "OPEN";
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.compact-disclosure[open] > summary::after {
  content: "CLOSE";
}

.permission-disclosure {
  align-self: start;
}

.permission-disclosure:not([open]) {
  min-height: 0;
}

.monitor-log-snippet {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.monitor-log-snippet summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.monitor-log-snippet pre {
  max-height: 420px;
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(77, 212, 198, 0.18);
  border-radius: 6px;
  background: rgba(0, 8, 10, 0.7);
  color: var(--text);
  font-size: 11px;
  line-height: 1.35;
  padding: 8px;
  white-space: pre-wrap;
}

.run-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.run-meta-grid span {
  display: grid;
  align-items: center;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(77, 212, 198, 0.18);
  border-radius: 6px;
  background: rgba(2, 12, 14, 0.42);
  padding: 7px 9px;
}

.run-meta-grid strong {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.run-meta-grid code {
  overflow: hidden;
  color: var(--accent-strong);
  font-size: 12px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-summary,
.run-error {
  margin: 0;
  border-left: 2px solid rgba(77, 212, 198, 0.48);
  background: rgba(4, 18, 20, 0.5);
  border-radius: 0 6px 6px 0;
  padding: 9px 11px;
}

.run-error {
  border-left-color: var(--critical);
  color: var(--critical);
}

.graph-visual-panel {
  display: grid;
  gap: 9px;
}

.graph-node-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(104px, 1fr));
  gap: 7px;
  list-style: none;
  margin: 0;
  overflow-x: auto;
  padding: 0 0 2px;
}

.graph-node {
  border: 1px solid rgba(77, 212, 198, 0.18);
  border-radius: 7px;
  background: rgba(2, 12, 14, 0.48);
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 7px;
}

.graph-node span,
.graph-node small {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  line-height: 1.1;
}

.graph-node strong {
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.graph-node--complete {
  border-color: rgba(71, 255, 201, 0.44);
  box-shadow: inset 0 0 16px rgba(71, 255, 201, 0.08);
}

.graph-node--current {
  border-color: rgba(255, 213, 102, 0.56);
  box-shadow: inset 0 0 16px rgba(255, 213, 102, 0.1);
}

.graph-node--failed {
  border-color: rgba(255, 92, 122, 0.6);
  box-shadow: inset 0 0 16px rgba(255, 92, 122, 0.1);
}

.protocol-timeline {
  max-height: 188px;
  overflow: auto;
  padding-right: 4px;
}

.agent-workbench--full .protocol-timeline {
  max-height: 188px;
}

.protocol-timeline li {
  gap: 4px;
  padding: 7px 9px;
}

.protocol-timeline time,
.protocol-timeline small {
  font-size: 10px;
}

.protocol-timeline strong {
  font-size: 11px;
}

.protocol-timeline span {
  font-size: 11px;
  line-height: 1.3;
}

.workbench-side {
  grid-template-rows: auto;
}

.workbench-side section,
.workbench-detail-main-grid > section,
.workbench-lower-grid section {
  align-content: start;
  display: grid;
  gap: 10px;
}

.workbench-actions {
  display: grid;
  gap: 8px;
}

.ops-action-stack {
  display: grid;
  gap: 7px;
}

.ops-action-stack form {
  align-items: center;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 8px;
}

.ops-action-stack span {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  line-height: 1.25;
}

.workbench-side--ops-control {
  align-content: start;
  align-items: stretch;
}

.workbench-side--ops-control section {
  min-height: 0;
}

.workbench-log {
  max-height: 230px;
  overflow: auto;
  padding-right: 4px;
}

.workbench-actions form,
.workbench-actions button {
  width: 100%;
}

.workbench-actions .ops-button,
.agent-chat-bar .ops-button {
  font-size: 13px;
  line-height: 1.2;
}

.ops-button--compact {
  min-height: 30px;
  padding: 6px 8px;
}

.ops-button--secondary {
  border-color: rgba(145, 187, 184, 0.28);
  color: var(--muted);
}

.approval-list {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  max-height: 190px;
  overflow: auto;
  padding: 0 4px 0 0;
}

.approval-list li {
  border-left: 2px solid var(--warn);
  border-radius: 0 6px 6px 0;
  background: rgba(4, 18, 20, 0.55);
  display: grid;
  gap: 6px;
  padding: 8px 10px;
}

.approval-list time,
.approval-list span {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.3;
}

.approval-list strong {
  color: var(--accent-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.2;
}

.approval-proposal-meta {
  display: grid;
  gap: 4px;
  margin: 0;
}

.approval-proposal-meta div {
  display: grid;
  gap: 2px;
}

.approval-proposal-meta dt {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.approval-proposal-meta dd {
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  line-height: 1.3;
  margin: 0;
  overflow-wrap: anywhere;
}

.approval-actions {
  display: grid;
  grid-template-columns: 156px 88px;
  gap: 6px;
  justify-content: start;
}

.approval-actions form,
.approval-actions button {
  width: 100%;
}

.approval-empty {
  border-left-color: rgba(77, 212, 198, 0.32) !important;
}

.ops-button--disabled,
.ops-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.tool-chip-grid {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 7px;
}

.workbench-lower-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.monitoring-flow-grid {
  display: grid;
  align-items: start;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "findings"
    "evidence"
    "agentlog";
}

.monitoring-flow-grid--basic {
  grid-template-areas:
    "findings"
    "agentlog";
}

.workbench-panel--findings {
  grid-area: findings;
}

.workbench-panel--evidence {
  grid-area: evidence;
}

.workbench-panel--logs {
  grid-area: agentlog;
}

.workbench-panel--findings,
.workbench-panel--evidence {
  min-width: 0;
  border: 1px solid rgba(77, 212, 198, 0.18);
  border-radius: 7px;
  background: rgba(3, 17, 19, 0.35);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.incident-subpanel {
  border-top: 1px solid rgba(77, 212, 198, 0.16);
  display: grid;
  gap: 9px;
  margin-top: 8px;
  padding-top: 10px;
}

.incident-subpanel:not([open]) {
  gap: 0;
  padding-bottom: 0;
}

.workbench-panel--evidence .readout-log,
.workbench-panel--findings .readout-log {
  overflow: auto;
  padding-right: 4px;
}

.workbench-panel--findings .readout-log {
  max-height: 300px;
}

.workbench-panel--evidence .readout-log {
  max-height: 560px;
}

.collector-snapshot-panel {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.railway-service-panel {
  display: grid;
  gap: 8px;
}

.railway-service-grid {
  --railway-card-height: 168px;
  --railway-map-gap: 22px;
  align-items: stretch;
  display: grid;
  gap: var(--railway-map-gap);
  grid-template-columns: repeat(5, minmax(122px, 1fr));
  min-width: 0;
  overflow-x: visible;
  padding: 12px 4px 18px;
  position: relative;
}

.railway-service-links {
  height: 100%;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.railway-service-links path {
  fill: none;
  stroke: rgba(151, 159, 184, 0.72);
  stroke-dasharray: 8 7;
  stroke-linecap: round;
  stroke-width: 2;
}

.railway-service-links circle {
  fill: var(--panel);
  stroke: var(--accent-strong);
  stroke-width: 2;
}

.railway-service-node {
  align-items: stretch;
  display: grid;
  grid-column: var(--map-col, auto);
  grid-row: var(--map-row, auto);
  min-width: 0;
  position: relative;
  z-index: 1;
}

.railway-service-card {
  border: 1px solid rgba(77, 212, 198, 0.18);
  border-top: 3px solid rgba(77, 212, 198, 0.45);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(5, 24, 27, 0.98), rgba(2, 12, 14, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 12px 26px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 8px;
  grid-template-rows: auto 1fr auto;
  min-height: var(--railway-card-height);
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  padding: 9px;
  position: relative;
  z-index: 1;
}

.railway-service-card.state-healthy {
  border-top-color: var(--ok);
}

.railway-service-card.state-deploying {
  border-top-color: var(--accent-strong);
  box-shadow:
    inset 0 0 0 1px rgba(77, 212, 198, 0.08),
    0 0 18px rgba(77, 212, 198, 0.16),
    0 12px 26px rgba(0, 0, 0, 0.22);
}

.railway-service-card.state-degraded,
.railway-service-card.state-unknown {
  border-top-color: var(--warn);
}

.railway-service-card.state-failing {
  border-top-color: var(--critical);
}

.railway-service-card__head {
  align-items: flex-start;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.railway-service-card__head strong,
.railway-service-card__head span,
.railway-service-card dd,
.railway-service-card small {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.railway-service-card__head strong {
  color: var(--accent-strong);
  font-size: 11px;
  line-height: 1.1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.railway-service-card__head span {
  border: 1px solid rgba(77, 212, 198, 0.16);
  border-radius: 999px;
  background: rgba(77, 212, 198, 0.07);
  color: var(--text);
  font-size: 9px;
  justify-self: start;
  padding: 3px 6px;
  text-transform: uppercase;
}

.railway-deployment-pulse {
  animation: railwayDeploymentPulse 1.4s ease-in-out infinite;
  border: 1px solid rgba(77, 212, 198, 0.28);
  border-radius: 999px;
  color: var(--accent-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 8px;
  font-style: normal;
  justify-self: start;
  letter-spacing: 0;
  line-height: 1;
  padding: 3px 6px;
  text-transform: uppercase;
}

@keyframes railwayDeploymentPulse {
  0%,
  100% {
    background: rgba(77, 212, 198, 0.06);
    opacity: 0.72;
  }

  50% {
    background: rgba(77, 212, 198, 0.18);
    opacity: 1;
  }
}

.railway-service-card dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin: 0;
}

.railway-service-card dl div:first-child {
  grid-column: auto;
}

.railway-service-card dl div {
  border: 1px solid rgba(77, 212, 198, 0.12);
  border-radius: 5px;
  background: rgba(5, 24, 27, 0.42);
  min-width: 0;
  padding: 5px;
}

.railway-service-card dl div.metric-error {
  border-color: rgba(255, 95, 109, 0.38);
  background: rgba(255, 95, 109, 0.12);
}

.railway-service-card dt {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.railway-service-card dd {
  color: var(--text);
  font-size: 9px;
  margin: 1px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.railway-service-card dd a {
  color: var(--critical);
  font-weight: 700;
  text-decoration: none;
}

.railway-service-card dd a.railway-service-log-link {
  color: var(--accent);
  font-weight: 600;
}

.railway-service-card dd a:hover,
.railway-service-card dd a:focus {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: underline;
}

.environment-scope-link {
  color: inherit;
  text-decoration: none;
}

.environment-scope-link:hover,
.environment-scope-link:focus {
  color: var(--accent-strong);
  text-decoration: underline;
}

.monitor-check-focus {
  outline: 2px solid rgba(247, 213, 122, 0.85);
  outline-offset: 2px;
}

.railway-service-card small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collector-snapshot-panel .readout-log {
  max-height: 230px;
}

.workbench-panel--evidence .readout-log,
.workbench-panel--findings .readout-log,
.workbench-panel--logs .readout-log {
  font-size: 11px;
  line-height: 1.32;
}

.workbench-panel--evidence .readout-log li,
.workbench-panel--findings .readout-log li,
.workbench-panel--logs .readout-log li {
  gap: 4px;
  padding: 7px 9px;
}

.workbench-panel--evidence .readout-log strong,
.workbench-panel--findings .readout-log strong,
.workbench-panel--logs .readout-log strong {
  font-size: 12px;
}

.workbench-bottom-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
}

.workbench-bottom-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.workbench-lower-grid .readout-log {
  max-height: 170px;
  overflow: auto;
  padding-right: 4px;
}

.workbench-detail-main-grid > section > .readout-log {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.workbench-primary > .empty-readout,
.workbench-side .empty-readout,
.workbench-detail-main-grid .empty-readout,
.workbench-lower-grid .empty-readout {
  display: grid;
  align-items: center;
  min-height: 46px;
}

.agent-chat-panel,
.ops-terminal-panel {
  align-content: start;
  display: grid;
  gap: 10px;
}

.chat-command-panel {
  border: 1px solid rgba(77, 212, 198, 0.18);
  border-radius: 7px;
  background: rgba(2, 12, 14, 0.42);
  display: grid;
  gap: 8px;
  padding: 10px;
}

.chat-command-panel > span {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.chat-command-panel .workbench-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chat-title-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.chat-title-actions form {
  margin: 0;
}

.chat-clear-action {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 0 0 5px;
  text-transform: uppercase;
}

.chat-clear-action::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(77, 212, 198, 0.52);
}

.chat-clear-action:hover,
.chat-clear-action:focus-visible {
  color: var(--accent-strong);
}

.chat-clear-action:focus-visible {
  outline: none;
}

.chat-clear-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.chat-message-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  max-height: 260px;
  overflow: auto;
  padding: 0 4px 0 0;
}

.chat-message {
  border: 1px solid rgba(77, 212, 198, 0.14);
  border-radius: 7px;
  background: rgba(2, 12, 14, 0.48);
  display: grid;
  gap: 6px;
  padding: 9px;
}

.chat-message div,
.terminal-output__head,
.terminal-command-form {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.chat-message strong,
.terminal-output__head strong {
  color: var(--accent-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.chat-message time,
.terminal-output__head span {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
}

.chat-message p {
  margin: 0;
  overflow-wrap: anywhere;
}

.chat-message--user {
  border-color: rgba(255, 213, 102, 0.24);
}

.chat-message.state-queued,
.chat-message.state-running {
  border-color: rgba(255, 213, 102, 0.42);
  box-shadow: inset 0 0 16px rgba(255, 213, 102, 0.08);
}

.chat-message.state-failed {
  border-color: rgba(255, 92, 122, 0.48);
}

.arc7-chat-dock {
  bottom: 18px;
  display: grid;
  justify-items: end;
  pointer-events: none;
  position: fixed;
  right: 18px;
  z-index: 80;
}

.arc7-dock-slot {
  display: grid;
  min-width: 0;
}

.arc7-dock-slot--detail {
  margin-top: 12px;
}

.arc7-chat-dock.is-docked {
  bottom: auto;
  justify-items: stretch;
  pointer-events: auto;
  position: static;
  right: auto;
  width: 100%;
  z-index: 1;
}

.arc7-chat-window {
  border: 1px solid rgba(77, 212, 198, 0.3);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(4, 28, 31, 0.97), rgba(2, 12, 14, 0.98)),
    var(--panel);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.44), 0 0 34px rgba(77, 212, 198, 0.18);
  display: none;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto auto;
  margin-bottom: 12px;
  max-height: min(620px, calc(100vh - 108px));
  overflow: hidden;
  pointer-events: auto;
  position: relative;
  width: min(430px, calc(100vw - 32px));
}

.arc7-chat-dock.is-open .arc7-chat-window {
  display: grid;
}

.arc7-chat-dock.is-docked .arc7-chat-window {
  display: grid;
  margin-bottom: 0;
  max-height: min(720px, calc(100vh - 96px));
  width: 100%;
}

.arc7-chat-header {
  align-items: center;
  border-bottom: 1px solid rgba(77, 212, 198, 0.14);
  background: rgba(77, 212, 198, 0.08);
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  padding: 12px;
}

.arc7-avatar-button,
.arc7-launcher {
  border: 1px solid rgba(77, 212, 198, 0.56);
  border-radius: 999px;
  background: rgba(2, 12, 14, 0.92);
  cursor: pointer;
  display: grid;
  padding: 0;
  place-items: center;
  position: relative;
}

.arc7-avatar-button {
  height: 52px;
  overflow: hidden;
  width: 52px;
}

.arc7-avatar-img,
.arc7-launcher-avatar {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.arc7-chat-title {
  min-width: 0;
}

.arc7-chat-title h3 {
  color: var(--text);
  font-size: 17px;
  line-height: 1.1;
  margin: 0;
}

.arc7-chat-title span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arc7-mode-switch {
  border-bottom: 1px solid rgba(77, 212, 198, 0.12);
  background: rgba(2, 12, 14, 0.42);
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px 12px;
}

.arc7-mode-switch button {
  border: 1px solid rgba(77, 212, 198, 0.18);
  border-radius: 7px;
  background: rgba(2, 12, 14, 0.44);
  color: var(--muted);
  cursor: pointer;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  min-height: 30px;
  text-transform: uppercase;
}

.arc7-mode-switch button:hover,
.arc7-mode-switch button:focus-visible,
.arc7-mode-switch button.is-active {
  border-color: rgba(77, 212, 198, 0.48);
  background: rgba(77, 212, 198, 0.1);
  color: var(--accent-strong);
}

.arc7-close {
  border: 1px solid rgba(77, 212, 198, 0.18);
  border-radius: 7px;
  background: rgba(2, 12, 14, 0.52);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  height: 34px;
  line-height: 1;
  width: 34px;
}

.arc7-portrait-popover {
  border: 1px solid rgba(77, 212, 198, 0.32);
  border-radius: 10px;
  background: rgba(2, 12, 14, 0.97);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42), 0 0 28px rgba(77, 212, 198, 0.18);
  left: 12px;
  padding: 12px;
  position: absolute;
  top: 76px;
  width: 178px;
  z-index: 2;
}

.arc7-portrait-lens {
  border: 1px solid rgba(77, 212, 198, 0.5);
  border-radius: 999px;
  height: 138px;
  overflow: hidden;
  width: 138px;
}

.arc7-portrait-lens img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.arc7-portrait-popover p {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  margin: 10px 0 0;
  text-align: center;
  text-transform: uppercase;
}

.arc7-alert-card {
  border-bottom: 1px solid rgba(255, 213, 102, 0.18);
  background: rgba(255, 213, 102, 0.08);
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.arc7-alert-card strong {
  color: var(--warn);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.arc7-alert-card span,
.arc7-alert-card small {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.arc7-alert-card small {
  color: var(--muted);
}

.arc7-relay-list {
  border-bottom: 1px solid rgba(77, 212, 198, 0.12);
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  max-height: 210px;
  overflow: auto;
  padding: 10px 12px;
}

.arc7-relay-item {
  border: 1px solid rgba(77, 212, 198, 0.18);
  border-radius: 8px;
  background: rgba(77, 212, 198, 0.06);
  display: grid;
  gap: 7px;
  padding: 9px;
}

.arc7-relay-item.state-high,
.arc7-relay-item.state-critical {
  border-color: rgba(255, 213, 102, 0.32);
  background: rgba(255, 213, 102, 0.08);
}

.arc7-relay-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  gap: 8px;
  justify-content: space-between;
  text-transform: uppercase;
}

.arc7-relay-item strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.arc7-relay-item p,
.arc7-relay-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.arc7-relay-explain {
  border-top: 1px solid rgba(77, 212, 198, 0.12);
  display: grid;
  gap: 6px;
  margin: 2px 0 0;
  padding-top: 7px;
}

.arc7-relay-explain div {
  display: grid;
  gap: 5px;
  grid-template-columns: 82px minmax(0, 1fr);
}

.arc7-relay-explain dt {
  color: var(--accent-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.arc7-relay-explain dd {
  color: var(--text);
  font-size: 11px;
  line-height: 1.3;
  margin: 0;
}

.arc7-relay-actions,
.arc7-guided-actions,
.arc7-relay-response-form {
  align-items: center;
  display: flex;
  gap: 8px;
}

.arc7-guided-actions {
  border-top: 1px solid rgba(255, 213, 102, 0.14);
  flex-wrap: wrap;
  padding-top: 8px;
}

.arc7-relay-actions {
  flex-wrap: wrap;
}

.arc7-relay-response-form {
  flex: 1 1 210px;
}

.arc7-relay-response-form input {
  border: 1px solid rgba(77, 212, 198, 0.18);
  border-radius: 7px;
  background: rgba(2, 12, 14, 0.62);
  color: var(--text);
  flex: 1;
  font: inherit;
  min-width: 140px;
  padding: 7px 8px;
}

.arc7-relay-empty {
  color: var(--muted);
  font-size: 12px;
  list-style: none;
}

.arc7-chat-list {
  max-height: none;
  min-height: 180px;
  overflow: auto;
  padding: 12px;
}

.arc7-quick-prompts {
  border-top: 1px solid rgba(77, 212, 198, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 12px 0;
}

.arc7-quick-prompts button {
  border: 1px solid rgba(77, 212, 198, 0.2);
  border-radius: 6px;
  background: rgba(2, 12, 14, 0.52);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  padding: 6px 8px;
}

.arc7-quick-prompts button:hover,
.arc7-quick-prompts button:focus-visible,
.arc7-close:hover,
.arc7-close:focus-visible {
  border-color: rgba(77, 212, 198, 0.48);
  color: var(--accent-strong);
}

.arc7-chat-form {
  border-width: 0;
  border-top: 1px solid rgba(77, 212, 198, 0.14);
  border-radius: 0;
  display: flex;
  gap: 8px;
}

.arc7-launcher {
  box-shadow: 0 0 26px rgba(77, 212, 198, 0.22);
  height: 58px;
  overflow: visible;
  pointer-events: auto;
  width: 58px;
}

.arc7-launcher::before {
  border: 1px solid rgba(77, 212, 198, 0.24);
  border-radius: inherit;
  content: "";
  inset: -5px;
  position: absolute;
}

.arc7-chat-dock.is-open .arc7-launcher {
  display: none;
}

.arc7-chat-dock.is-docked .arc7-launcher {
  display: none;
}

.arc7-launcher-avatar {
  border-radius: inherit;
  overflow: hidden;
}

.arc7-alert-badge {
  align-items: center;
  background: var(--warn);
  border: 1px solid rgba(2, 12, 14, 0.62);
  border-radius: 999px;
  color: #061012;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 6px;
  position: absolute;
  right: -7px;
  top: -7px;
  z-index: 1;
}

.agent-chat-bar,
.terminal-command-form {
  border: 1px solid rgba(77, 212, 198, 0.24);
  border-radius: 7px;
  background: rgba(3, 17, 19, 0.55);
  padding: 10px;
}

.agent-chat-bar textarea,
.terminal-command-form select {
  min-width: 0;
  flex: 1 1 auto;
  border: 1px solid rgba(77, 212, 198, 0.28);
  border-radius: 6px;
  background: rgba(2, 12, 14, 0.72);
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}

.agent-chat-bar textarea {
  min-height: 54px;
  resize: vertical;
}

.agent-chat-bar textarea:focus,
.terminal-command-form select:focus {
  border-color: var(--accent-strong);
  outline: none;
}

.terminal-output-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  max-height: 318px;
  overflow: auto;
  padding: 0 4px 0 0;
}

.terminal-output {
  border: 1px solid rgba(77, 212, 198, 0.14);
  border-radius: 7px;
  background: rgba(2, 12, 14, 0.58);
  display: grid;
  gap: 7px;
  padding: 9px;
}

.terminal-output code,
.terminal-output pre {
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.35;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
}

.terminal-output pre {
  border-top: 1px solid rgba(77, 212, 198, 0.14);
  padding-top: 7px;
}

.terminal-output__stderr {
  color: var(--critical) !important;
}

.activity-history {
  margin-top: 10px;
  border-top: 1px solid rgba(77, 212, 198, 0.18);
  padding-top: 9px;
}

.activity-history summary {
  color: var(--accent-strong);
  cursor: pointer;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.activity-history .readout-log {
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
  padding-top: 9px;
}

.panel-title-row {
  margin-bottom: 12px;
}

.panel-title-row h2,
.matrix-grid h3 {
  margin: 0;
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: 16px;
}

.kv-readout {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 9px 12px;
  margin: 0;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.probe-summary {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 11px;
  line-height: 1.25;
}

.probe-list {
  display: grid;
  gap: 5px 8px;
  grid-template-columns: minmax(80px, 0.38fr) minmax(0, 1fr);
  margin: 0;
}

.probe-list dt {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.probe-list dd {
  color: var(--muted);
  font-size: 10px;
  min-width: 0;
  overflow: hidden;
  padding-left: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.probe-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
}

.probe-ok {
  background: var(--ok);
  box-shadow: 0 0 12px var(--ok);
}

.probe-fail {
  background: var(--critical);
  box-shadow: 0 0 12px var(--critical);
}

.probe-status-panel {
  align-content: start;
  gap: 8px;
  min-height: 0;
  padding: 10px;
}

.probe-status-panel .panel-title-row h2 {
  font-size: 13px;
}

.readout-log {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.readout-log li {
  display: grid;
  gap: 5px;
  border-left: 2px solid rgba(77, 212, 198, 0.48);
  background: rgba(4, 18, 20, 0.5);
  border-radius: 0 6px 6px 0;
  padding: 10px 12px;
}

.activity-focus .readout-log {
  gap: 8px;
}

.activity-focus .readout-log li {
  padding: 12px 14px;
}

.compact-panel .readout-log,
.readout-log--compact {
  gap: 7px;
}

.compact-panel .readout-log li,
.readout-log--compact li {
  padding: 8px 10px;
}

.readout-log time,
.readout-log small,
.event-head span {
  color: var(--muted);
  font-size: 12px;
}

.readout-log strong {
  color: var(--accent-strong);
}

.severity-high,
.severity-critical {
  border-left-color: var(--critical) !important;
}

.severity-medium {
  border-left-color: var(--warn) !important;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
}

.agent-readout-page {
  display: grid;
  gap: 14px;
}

.detail-layout--overview {
  align-items: stretch;
  grid-template-columns: minmax(250px, 0.28fr) minmax(0, 1fr);
  max-height: 126px;
  overflow: hidden;
}

.droid-monitor {
  position: sticky;
  top: 18px;
  align-self: start;
}

.detail-layout--overview .droid-monitor {
  position: static;
  align-self: stretch;
}

.monitor-bezel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 18px;
}

.detail-layout--overview .monitor-bezel {
  height: 100%;
  padding: 6px;
}

.monitor-scan {
  position: absolute;
  inset: -30% 0;
  background: linear-gradient(180deg, transparent, rgba(77, 212, 198, 0.14), transparent);
  animation: monitorSweep 5s linear infinite;
}

.monitor-face {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 430px;
  border: 1px solid rgba(77, 212, 198, 0.24);
  border-radius: 7px;
  padding: 16px;
}

.detail-layout--overview .monitor-face {
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  align-content: start;
  gap: 4px 8px;
  overflow: hidden;
  padding: 7px;
}

.droid-glyph {
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  margin: 18px auto 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent-strong);
  font-size: 44px;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(69, 243, 222, 0.65);
}

.detail-layout--overview .droid-glyph {
  grid-row: 2 / span 2;
  width: 42px;
  height: 42px;
  margin: 0;
  font-size: 14px;
}

.detail-layout--overview .monitor-face h2 {
  align-self: end;
  font-size: 15px;
  text-align: left;
}

.detail-layout--overview .monitor-face p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.detail-layout--overview .monitor-header {
  grid-column: 1 / -1;
  min-height: 0;
}

.monitor-face h2 {
  margin: 0;
  font-family: Orbitron, Rajdhani, sans-serif;
  text-align: center;
}

.monitor-face p {
  margin: 0;
  color: var(--muted);
}

.stat-readout {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(225, 255, 252, 0.09), 0 16px 36px var(--shadow);
  overflow: hidden;
}

.stat-readout div {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
}

.stat-readout span {
  color: var(--muted);
  font-size: 13px;
}

.stat-readout strong {
  color: var(--accent-strong);
  font-family: Orbitron, Rajdhani, sans-serif;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.detail-layout--overview > .monitor-panel {
  overflow: visible;
  padding: 10px;
}

.detail-layout--overview .matrix-grid {
  gap: 6px;
}

.detail-layout--overview .matrix-grid div {
  gap: 4px;
}

.detail-layout--overview .matrix-grid h3 {
  margin: 0;
  font-size: 12px;
}

.detail-layout--overview code {
  font-size: 11px;
  padding: 1px 4px;
}

.agent-readout-page > .agent-workbench {
  min-height: 0;
}

.matrix-grid div {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.matrix-grid h3 {
  flex-basis: 100%;
  color: var(--muted);
}

code {
  max-width: 100%;
  overflow-wrap: anywhere;
  border: 1px solid rgba(77, 212, 198, 0.28);
  border-radius: 5px;
  background: rgba(3, 17, 19, 0.72);
  color: var(--accent-strong);
  padding: 4px 6px;
}

.empty-readout {
  margin: 0;
}

@keyframes monitorSweep {
  from {
    transform: translateY(-45%);
  }
  to {
    transform: translateY(45%);
  }
}

@media (max-width: 1120px) {
  .ops-shell,
  .command-layout,
  .command-current-ops-grid,
  .command-target-strip,
  .ops9-lifecycle-strip,
  .command-overview-grid,
  .command-row--two,
  .detail-layout,
  .full-current-state-band,
  .workbench-grid,
  .workbench-lower-grid,
  .ops-workbench-matrix,
  .monitoring-flow-grid,
  .ops-status-summary {
    grid-template-columns: 1fr;
  }

  .ops-workbench-matrix {
    grid-template-areas:
      "controls"
      "protocol"
      "monitoring";
  }

  .monitoring-flow-grid {
    grid-template-areas:
      "findings"
      "evidence"
      "agentlog";
  }

  .monitoring-flow-grid--basic {
    grid-template-areas:
      "findings"
      "agentlog";
  }

  .side-rail,
  .droid-monitor {
    position: static;
  }

  .side-rail {
    min-height: auto;
  }

  .side-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .agent-grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-roster-summary__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workbench-panel--actions {
    grid-template-columns: 1fr;
  }

  .command-health-dial-panel {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .command-agent-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .command-agent-card .command-readout-link {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .command-status-meta {
    grid-column: 1 / -1;
  }

  .command-agent-workbench-header,
  .command-context-grid,
  .command-workbench-main {
    grid-template-columns: 1fr;
  }

  .primary-approval-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .primary-approval-badge {
    grid-column: 1 / -1;
  }

  .command-agent-workbench-header .command-status-meta {
    grid-column: auto;
  }

  .command-health-dial-panel--wide .health-dial-copy {
    grid-template-columns: 1fr;
  }

  .command-health-dial-panel--wide .health-dial-copy .eyebrow,
  .command-health-dial-panel--wide .health-dial-copy h2,
  .command-health-dial-panel--wide .health-dial-copy dl {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .ops-shell {
    width: min(100% - 20px, 1440px);
  }

  .deck-header,
  .agent-card__top,
  .event-head,
  .panel-title-row,
  .monitor-header,
  .workbench-header,
  .command-panel-head,
  .agent-chat-bar,
  .terminal-command-form {
    align-items: flex-start;
    flex-direction: column;
  }

  .agent-chat-bar textarea,
  .agent-chat-bar button,
  .terminal-command-form select,
  .terminal-command-form button {
    width: 100%;
  }

  .primary-approval-bar {
    grid-template-columns: 1fr;
  }

  .primary-approval-bar small {
    white-space: normal;
  }

  .approval-actions--primary {
    justify-content: start;
  }

  .chat-command-panel .workbench-actions {
    grid-template-columns: 1fr;
  }

  .status-grid,
  .agent-grid,
  .agent-grid--wide,
  .agent-roster-summary__metrics,
  .environment-scope-strip,
  .command-target-strip,
  .command-env-card-grid,
  .ops9-lifecycle-strip,
  .stat-readout,
  .run-meta-grid,
  .workbench-detail-top-grid,
  .workbench-detail-main-grid,
  .workbench-bottom-grid,
  .ops-workbench-matrix,
  .monitoring-flow-grid,
  .ops-status-summary,
  .matrix-grid,
  .kv-readout {
    grid-template-columns: 1fr;
  }

  .graph-node-strip {
    grid-template-columns: repeat(2, minmax(116px, 1fr));
  }

  .command-target-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .railway-service-grid {
    --railway-card-height: 154px;
    --railway-map-gap: 16px;
    grid-template-columns: repeat(2, minmax(126px, 1fr));
    padding-bottom: 20px;
  }

  .railway-service-node {
    grid-column: auto;
    grid-row: auto;
  }

  .railway-service-card {
    padding: 8px;
  }

  .command-health-dial-panel {
    grid-template-columns: 1fr;
  }

  .command-context-side {
    grid-template-columns: 1fr;
  }

  .health-dial {
    width: min(180px, 100%);
    justify-self: center;
  }

  .ops-action-stack form {
    grid-template-columns: 1fr;
  }

  .arc7-chat-dock {
    bottom: 12px;
    right: 12px;
  }

  .arc7-chat-window {
    max-height: calc(100vh - 86px);
    width: calc(100vw - 24px);
  }

  .arc7-chat-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .arc7-chat-header .chat-title-actions,
  .arc7-chat-header form {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .arc7-chat-form {
    align-items: stretch;
  }

  .arc7-chat-list {
    min-height: 150px;
  }

  .agent-row {
    grid-template-columns: 12px minmax(0, 1fr) 62px;
  }

  .agent-row strong,
  .agent-row__category,
  .agent-row__level {
    display: none;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }
}
