:root {
  color-scheme: dark;
  --surface-base: #080c12;
  --surface-raised: #0d141e;
  --surface-interactive: #121c29;
  --surface-overlay: #101824;
  --border: #263448;
  --border-soft: #1b2736;
  --text-primary: #f4f7fb;
  --text-secondary: #c5cfdd;
  --text-muted: #95a2b4;
  --text-subtle: #6f7f94;
  --status-info: #79a3ff;
  --status-success: #62dfad;
  --status-warning: #f0c45c;
  --status-danger: #ff777d;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --control-height: 44px;

  /* Compatibility aliases while shared components migrate to semantic tokens. */
  --bg: var(--surface-base);
  --surface: var(--surface-raised);
  --surface-2: var(--surface-interactive);
  --surface-3: #162233;
  --text: var(--text-primary);
  --muted: var(--text-muted);
  --muted-2: var(--text-subtle);
  --blue: #4f7cff;
  --blue-2: #2f5ef4;
  --green: var(--status-success);
  --amber: var(--status-warning);
  --red: var(--status-danger);
  --radius: var(--radius-lg);
  --shadow: 0 16px 44px rgba(0, 0, 0, .18);
}

* { box-sizing: border-box; }
html { background: var(--bg); min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% -12%, rgba(70, 107, 190, .055), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .46; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 18px var(--space-4) calc(88px + env(safe-area-inset-bottom));
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 56px;
  margin-bottom: var(--space-4);
}
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-interactive);
  box-shadow: inset 0 1px rgba(255,255,255,.035);
  font-weight: 800;
}
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.micro-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.brand-lockup h1 { margin: 1px 0 0; font-size: 20px; line-height: 1.05; letter-spacing: -.025em; }
.owner-bar { display: flex; align-items: center; gap: var(--space-2); }
.pill, .status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(8, 12, 18, .42);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}
button.pill { min-width: var(--control-height); min-height: var(--control-height); padding-inline: 13px; cursor: pointer; }
.ok { color: var(--green) !important; }
.running { color: var(--status-info) !important; }
.warn { color: var(--amber) !important; }
.error { color: var(--red) !important; }
.neutral { color: var(--muted) !important; }
.profile-button {
  display: grid;
  place-items: center;
  width: var(--control-height);
  height: var(--control-height);
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(8, 12, 18, .42);
  cursor: pointer;
}
.profile-dot { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, #8fb3ff, #62dfad); }
.logout-copy { display: none; }

.app-nav {
  position: fixed;
  z-index: 30;
  left: 14px;
  right: 14px;
  bottom: calc(8px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: rgba(9, 14, 21, .95);
  box-shadow: 0 10px 34px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}
.nav-item {
  min-height: 54px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.nav-item > span { font-size: 17px; line-height: 1; }
.nav-item small { font-size: 10px; font-weight: 650; }
.nav-item.active { color: var(--text); background: var(--surface-interactive); }
.nav-item.active > span { color: var(--status-info); }

.tab-panel { animation: panel-in .18s ease-out; }
@keyframes panel-in { from { opacity: .55; transform: translateY(2px); } to { opacity: 1; transform: none; } }
.card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: inset 0 1px rgba(255,255,255,.012);
}
.section-head, .page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.compact-head h2, .page-title { margin: 0; font-size: 18px; line-height: 1.25; letter-spacing: -.025em; }
.page-head { margin: 4px 0 var(--space-4); }
.page-title { margin-top: 2px; font-size: 28px; line-height: 1.15; }
.muted { color: var(--muted); }
.compact { margin: 0; font-size: 12px; }

.hero-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 20px;
  margin-bottom: var(--space-4);
  overflow: hidden;
}
.hero-copy { min-width: 0; }
.hero-nav {
  display: block;
  margin-top: 6px;
  font-size: clamp(46px, 12vw, 64px);
  line-height: .98;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
}
.nav-change { max-width: 680px; margin-top: 9px; color: var(--muted); font-weight: 500; font-size: 12px; line-height: 1.4; }
.nav-change.positive { color: var(--muted); }
.nav-change.negative { color: var(--red); }
.nav-change.warning { color: var(--amber); }
.sparkline { min-height: 0; align-self: center; }
.sparkline:empty { display: none; }
.sparkline svg { display: block; width: 100%; height: 56px; overflow: visible; }
.sparkline polyline { stroke: var(--green); stroke-width: 2; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.stat-chip {
  min-height: 46px;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 6px 12px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}
.stat-chip + .stat-chip { padding-left: 14px; border-left: 1px solid var(--border-soft); }
.stat-chip strong { font-size: 21px; font-variant-numeric: tabular-nums; }
.stat-chip span { color: var(--muted); font-size: 12px; }

.live-command-card {
  width: 100%;
  display: block;
  padding: 17px 18px;
  margin-bottom: var(--space-4);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.live-command-card:hover { border-color: #33445d; background: #0f1723; }
.live-command-card h2 { margin: 4px 0 0; font-size: 20px; }
.overview-cycle-card[data-cycle-state="running"], .overview-cycle-card[data-cycle-state="queued"] { border-color: rgba(121,163,255,.42); background: rgba(79,124,255,.045); }
.overview-cycle-card[data-cycle-state="needs_attention"] { border-color: rgba(255,119,125,.42); }
.overview-cycle-card[data-cycle-state="complete"] { border-color: rgba(98,223,173,.28); }
.overview-cycle-card .progress-line { margin-top: 14px; }
.overview-cycle-card .progress-line span { background: var(--status-info); }
.overview-cycle-card[data-cycle-state="complete"] .progress-line span { background: var(--green); }
.overview-cycle-state { display: flex; align-items: center; gap: 8px; }
.overview-cycle-chevron { color: var(--muted); font-size: 23px; line-height: 1; }
.human-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 7px;
  margin: 15px 0 11px;
}
.role-chip {
  min-width: 0;
  min-height: 54px;
  display: grid;
  grid-template-columns: 8px 1fr;
  grid-template-rows: auto auto;
  column-gap: 7px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(8,13,20,.55);
  text-align: left;
  cursor: pointer;
}
.role-chip strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.role-chip small { grid-column: 2; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.role-state-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.role-chip.ok { border-color: rgba(98,223,173,.28); }
.role-chip.running { border-color: rgba(79,124,255,.55); background: rgba(35,76,158,.12); }
.role-chip.error { border-color: rgba(255,119,125,.42); }
.role-chip.warn { border-color: rgba(240,196,92,.2); }
.progress-line { height: 4px; overflow: hidden; border-radius: 999px; background: #1a2532; }
.progress-line span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .35s ease; }

.decision-card {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 15px;
  padding: 18px;
  margin-bottom: var(--space-4);
}
.decision-main h2 { margin: 5px 0 13px; font-size: 22px; line-height: 1.22; letter-spacing: -.035em; }
.decision-actions { display: grid; gap: 8px; }
.decision-line { display: grid; grid-template-columns: 16px minmax(0,1fr); gap: 8px; align-items: start; color: var(--text-secondary); }
.decision-line span { color: var(--green); font-size: 12px; font-weight: 900; line-height: 1.55; }
.decision-line p { margin: 0; font-size: 13px; line-height: 1.45; }
.decision-cta {
  width: 100%;
  min-height: var(--control-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0 0;
  border: 0;
  border-top: 1px solid var(--border-soft);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}
.decision-cta:hover { color: var(--text); }
.decision-cta span:first-child { font-size: 13px; font-weight: 600; }
.decision-cta span:last-child { color: var(--text); font-size: 22px; }

.overview-lower-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.funnel-card, .trajectory-card { padding: 16px 18px; }
.funnel-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 12px; }
.funnel-flow > span { display: grid; gap: 2px; }
.funnel-flow strong { font-size: 23px; font-variant-numeric: tabular-nums; }
.funnel-flow small { color: var(--muted); font-size: 11px; text-transform: none; letter-spacing: 0; }
.funnel-flow b { color: var(--muted-2); font-size: 17px; font-weight: 500; }
.trajectory-card summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.trajectory-card summary::-webkit-details-marker { display: none; }
.trajectory-card summary strong { display: block; margin-top: 5px; font-size: 19px; }
.trajectory-negative { color: var(--red); }
.trajectory-positive { color: var(--green); }
.trajectory-details { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.trajectory-details div { display: grid; gap: 2px; }
.trajectory-details span { color: var(--muted); font-size: 11px; }
.trajectory-details strong { font-size: 14px; }

.primary-compact {
  min-height: var(--control-height);
  padding: 0 15px;
  border: 1px solid #6087ff;
  border-radius: var(--radius-md);
  background: #315de2;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}
.cycles-card { overflow: hidden; }
.cycles-header { display: none; }
.command-cycle-list { display: grid; }
.cycle-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) auto;
  gap: 8px 10px;
  align-items: center;
  padding: 15px;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.cycle-row:last-child { border-bottom: 0; }
.cycle-row:hover { background: rgba(65,111,245,.045); }
.cycle-date { display: grid; font-size: 12px; font-weight: 650; }
.cycle-date small { margin-top: 2px; color: var(--blue); font-size: 9px; text-transform: uppercase; }
.cycle-decision { font-size: 14px; }
.market-pill { justify-self: end; padding: 3px 7px; border-radius: 7px; background: #172131; color: #bac7d8; font-size: 10px; white-space: nowrap; }
.cycle-funnel { color: #d7e0ec; font-variant-numeric: tabular-nums; }
.cycle-funnel b { color: var(--muted-2); }
.cycle-row > span:nth-child(5), .cycle-row > span:nth-child(6) { color: var(--muted); font-size: 11px; }
.cycle-row .status { justify-self: start; }
.row-chevron { justify-self: end; color: var(--muted); font-size: 21px; }
.empty-state { min-height: 160px; display: grid; place-content: center; gap: 4px; padding: 30px; text-align: center; }
.empty-state span { color: var(--muted); font-size: 12px; }

.command-cycle-detail { display: grid; gap: 12px; }
.cycle-detail-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; }
.back-button {
  width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; font-size: 20px;
}
.cycle-detail-title h2 { margin: 2px 0 0; font-size: 24px; letter-spacing: -.035em; }
.outcome-summary-card { padding: 18px; }
.outcome-labels { display: flex; flex-wrap: wrap; gap: 7px; }
.outcome-pill { padding: 5px 9px; border: 1px solid var(--border-soft); border-radius: 999px; color: #b6c3d4; background: #0c131d; font-size: 11px; font-weight: 700; }
.outcome-pill.primary { color: #a8c1ff; border-color: rgba(79,124,255,.35); background: rgba(79,124,255,.09); }
.outcome-copy { margin: 14px 0 0; color: #c4cfdd; }
.role-detail-card { overflow: hidden; }
.role-list { display: grid; }
.role-row { border-bottom: 1px solid var(--border-soft); }
.role-row:last-child { border-bottom: 0; }
.role-row > button {
  width: 100%; min-height: 62px; display: grid; grid-template-columns: 10px minmax(80px,.8fr) minmax(0,2fr) auto auto; gap: 10px; align-items: center; padding: 12px 15px; border: 0; background: transparent; text-align: left; cursor: pointer;
}
.role-row > button:hover { background: rgba(65,111,245,.04); }
.role-icon { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.role-row p { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.role-output { padding: 0 16px 16px 35px; color: #cbd5e3; }
.role-output > p { margin: 0 0 12px; }
.role-metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.role-metrics > span { padding: 9px; border: 1px solid var(--border-soft); border-radius: 10px; background: rgba(6,10,16,.35); }
.role-metrics small { display: block; color: var(--muted); text-transform: capitalize; }
.role-metrics strong { display: block; margin-top: 3px; overflow-wrap: anywhere; font-size: 12px; }
.role-output details { margin-top: 12px; }
.role-output summary { color: var(--muted); cursor: pointer; }
.record-preview { display: grid; gap: 8px; margin-top: 9px; }
.record-preview pre { max-height: 250px; margin: 0; padding: 10px; overflow: auto; border-radius: 9px; background: #070b10; color: #b8c5d7; font-size: 10px; white-space: pre-wrap; }

.system-overview-card, .controls-card, .safety-card { padding: 18px; margin-bottom: 12px; }
.health-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; margin-top: 15px; }
.health-tile { min-height: 112px; display: grid; place-items: center; align-content: center; gap: 3px; padding: 12px; border: 1px solid var(--border-soft); border-radius: 13px; background: rgba(7,12,18,.34); text-align: center; }
.health-icon { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 5px; border: 1px solid currentColor; border-radius: 50%; background: rgba(255,255,255,.015); }
.health-tile small { color: var(--muted); font-size: 10px; }
.health-tile strong { max-width: 145px; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.scope-control { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 12px; }
.scope-label { color: var(--muted); font-size: 11px; }
.scope-switch { display: grid; grid-template-columns: repeat(3,1fr); min-width: min(100%, 330px); padding: 3px; border: 1px solid var(--border-soft); border-radius: 11px; background: #090e15; }
.scope-option { min-height: 34px; padding: 0 9px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; }
.scope-option.active { background: #192536; color: var(--text); }
.system-actions { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
.cycle-action {
  min-height: 72px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0,1fr) !important;
  align-items: center !important;
  gap: 11px !important;
  padding: 13px 14px !important;
  border-radius: 12px !important;
  text-align: left !important;
}
.cycle-action.primary-action { grid-column: auto !important; border-color: #5078f4 !important; background: linear-gradient(135deg, #3768f0, #2852d3) !important; color: white !important; }
.cycle-action.secondary-action { border: 1px solid var(--border-soft) !important; background: #111a26 !important; }
.action-icon { width: 25px; display: grid; place-items: center; font-size: 18px; }
.cycle-action > span:last-child { display: grid; gap: 2px; }
.action-label { font-weight: 750; }
.cycle-action small { color: rgba(226,234,246,.62); font-size: 10px; font-weight: 450; }
.control-feedback { min-height: 25px; display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.feedback-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.control-request-label { color: var(--muted); margin-left: auto; font-size: 10px; }
.safety-list { display: grid; margin-top: 10px; }
.safety-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 11px; align-items: center; min-height: 60px; border-bottom: 1px solid var(--border-soft); }
.safety-row:last-child { border-bottom: 0; }
.safety-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #131e2b; }
.safety-row div { display: grid; gap: 1px; }
.safety-row div small { color: var(--muted); font-size: 10px; }
.system-disclosure { border-top: 1px solid var(--border-soft); padding: 14px 0 0; margin-top: 6px; }
.system-disclosure summary { color: var(--muted); cursor: pointer; font-size: 12px; }
.settings-list { display: grid; margin-top: 10px; }
.settings-list > div { display: grid; grid-template-columns: 1fr minmax(0,1.3fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.settings-list > div:last-child { border-bottom: 0; }
.settings-list span { color: var(--muted); font-size: 11px; }
.settings-list strong { text-align: right; overflow-wrap: anywhere; font-size: 11px; }
.error-item { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px; align-items: start; min-width: 0; padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.error-item p { min-width: 0; max-width: 100%; margin: 3px 0 0; overflow-wrap: anywhere; font-size: 11px; }
.legacy-bindings { display: none !important; }

@media (max-width: 420px) {
  .shell { padding-inline: 16px; }
  .topbar { margin-bottom: 14px; }
  .hero-card { padding: 18px; }
  .hero-nav { font-size: 48px; }
  .human-progress { grid-template-columns: repeat(3,1fr); gap: 5px; }
  .role-chip { min-height: 49px; padding: 7px; column-gap: 5px; }
  .role-chip strong { font-size: 10px; }
  .role-chip small { font-size: 8px; }
  .decision-card { padding: 16px 18px; }
  .decision-main h2 { font-size: 21px; }
  .decision-line p { font-size: 13px; }
  .cycle-row { grid-template-columns: 1fr auto; }
  .cycle-row > * { display: none; }
  .cycle-row .cycle-date, .cycle-row .cycle-decision, .cycle-row .status, .cycle-row .row-chevron { display: inline-flex; }
  .cycle-row .cycle-date { grid-column: 1; }
  .cycle-row .status { grid-column: 2; grid-row: 1; }
  .cycle-row .cycle-decision { grid-column: 1; grid-row: 2; }
  .cycle-row .row-chevron { grid-column: 2; grid-row: 2; }
  .role-row > button { grid-template-columns: 9px minmax(76px,1fr) auto auto; }
  .role-row p { display: none; }
  .role-output { padding-left: 15px; }
  .system-actions { grid-template-columns: 1fr 1fr; }
  .cycle-action { min-height: 66px !important; padding: 10px !important; gap: 7px !important; }
  .action-icon { width: 20px; }
  .cycle-action small { display: none; }
}

@media (min-width: 700px) {
  .shell { padding: 24px 24px 40px 104px; }
  .app-nav {
    position: fixed;
    top: 103px;
    bottom: auto;
    left: max(18px, calc((100vw - 1180px) / 2 + 22px));
    right: auto;
    width: 58px;
    display: grid;
    grid-template-columns: 1fr;
    padding: 5px;
    border-radius: 16px;
  }
  .nav-item { min-height: 52px; }
  .nav-item small { position: absolute; left: -9999px; }
  .profile-button { width: auto; min-width: 44px; padding: 0 12px; grid-template-columns: auto auto; gap: 8px; }
  .logout-copy { display: inline; font-size: 11px; color: var(--muted); }
  .hero-card { grid-template-columns: minmax(0,1.2fr) minmax(200px,.8fr); align-items: end; }
  .hero-meta { grid-column: 1 / -1; max-width: 430px; }
  .overview-lower-grid { grid-template-columns: 1fr 1fr; }
  .human-progress { grid-template-columns: repeat(6,1fr); }
  .health-grid { grid-template-columns: repeat(4,1fr); }
  .cycles-header {
    display: grid;
    grid-template-columns: minmax(120px,1.25fr) minmax(90px,1fr) minmax(80px,.8fr) minmax(75px,.7fr) 55px 60px 90px 20px;
    gap: 10px;
    padding: 10px 15px;
    color: var(--muted-2);
    border-bottom: 1px solid var(--border-soft);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .05em;
  }
  .cycle-row { grid-template-columns: minmax(120px,1.25fr) minmax(90px,1fr) minmax(80px,.8fr) minmax(75px,.7fr) 55px 60px 90px 20px; }
  .cycle-row > span:nth-child(5), .cycle-row > span:nth-child(6) { font-size: 12px; color: #c8d3e1; }
  .role-metrics { grid-template-columns: repeat(3,1fr); }
}

@media (min-width: 1050px) {
  .shell { padding-left: 112px; }
  .hero-card { grid-template-columns: 1fr 320px; }
  .overview-lower-grid { grid-template-columns: 1.05fr .95fr; }
  .system-overview-card, .controls-card, .safety-card { padding: 22px; }
  .system-actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

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