:root {
  --bg: #070a14;
  --bg-2: #0d1324;
  --panel: rgba(16, 24, 44, 0.88);
  --panel-solid: #10182c;
  --panel-raised: #17233f;
  --panel-edge: rgba(168, 196, 240, 0.22);
  --panel-edge-bright: rgba(114, 232, 255, 0.48);
  --ink: #f8fafc;
  --muted: #c2d0e4;
  --subtle: #9cb0cc;
  --candle: #70e8ff;
  --candle-strong: #32ccf0;
  --candle-soft: rgba(112, 232, 255, 0.16);
  --ecto: #5ef2b8;
  --low: #5ef2b8;
  --medium: #fbbf24;
  --high: #fb923c;
  --critical: #fb7185;
  --violet: #c49dff;
  --radius: 18px;
  --radius-small: 12px;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", Consolas, "SFMono-Regular", monospace;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(960px 620px at 90% -8%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(760px 540px at 14% 102%, rgba(50, 204, 240, 0.14), transparent 62%),
    radial-gradient(560px 420px at 52% 35%, rgba(94, 242, 184, 0.05), transparent 68%),
    var(--bg);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, [role="tab"] { -webkit-tap-highlight-color: transparent; }

.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(128, 178, 240, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 178, 240, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.app-shell { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 288px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 26px 18px 20px;
  background: linear-gradient(180deg, rgba(9, 14, 29, 0.96), rgba(7, 11, 23, 0.94));
  border-right: 1px solid var(--panel-edge);
  backdrop-filter: blur(22px);
  overflow-y: auto;
}

.brand { display: flex; align-items: center; gap: 13px; padding: 0 10px 26px; }
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(112, 232, 255, 0.45);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(112, 232, 255, 0.24), rgba(196, 157, 255, 0.16));
  box-shadow: 0 0 28px rgba(112, 232, 255, 0.2);
}
.brand-mark svg { width: 26px; height: 26px; fill: var(--candle); }
.brand-mark svg rect { fill: #f8fafc; }
.brand h1 { margin: 0; font-family: var(--serif); font-size: 1.55rem; letter-spacing: 0.01em; color: var(--ink); }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 0.84rem; }

.sidebar-label { padding: 0 12px 10px; color: var(--subtle); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.tabs { display: grid; gap: 6px; }
.tabs button {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}
.tabs button:hover { color: var(--ink); background: rgba(112, 232, 255, 0.09); border-color: rgba(168, 196, 240, 0.14); }
.tabs button[aria-selected="true"] {
  color: var(--ink);
  background: linear-gradient(90deg, rgba(112, 232, 255, 0.2), rgba(196, 157, 255, 0.08));
  border-color: rgba(112, 232, 255, 0.35);
  box-shadow: inset 3px 0 0 var(--candle), 0 8px 24px rgba(0, 0, 0, 0.22);
}
.nav-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(168, 196, 240, 0.12);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 700;
}
.tabs button[aria-selected="true"] .nav-icon { color: #05131f; background: var(--candle); }
.nav-copy { display: grid; gap: 1px; line-height: 1.25; }
.nav-copy b { font-size: 0.92rem; font-weight: 650; color: inherit; }
.nav-copy small { color: var(--subtle); font-size: 0.77rem; }
.tabs button[aria-selected="true"] .nav-copy small { color: var(--muted); }
.count {
  min-width: 26px;
  height: 23px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(168, 196, 240, 0.18);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tabs button[aria-selected="true"] .count { color: #05131f; background: var(--candle); }

.operator-card {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--panel-edge);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(23, 35, 63, 0.82), rgba(13, 20, 38, 0.88));
}
.operator-heading { display: flex; align-items: center; gap: 10px; }
.operator-heading > div { display: grid; }
.operator-heading b { font-size: 0.92rem; color: var(--ink); }
.operator-heading small { color: var(--muted); font-size: 0.78rem; }
.operator-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #05141c;
  background: linear-gradient(145deg, var(--candle), var(--ecto));
  font-weight: 800;
  font-size: 0.9rem;
}
label { display: grid; gap: 6px; color: var(--muted); font-size: 0.82rem; font-weight: 600; }
input, textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--panel-edge);
  border-radius: 10px;
  padding: 10px 11px;
  color: var(--ink);
  background: #070d1b;
  font-size: 0.88rem;
}
input::placeholder, textarea::placeholder { color: #8aa0be; }
.identity-status { min-height: 1.1em; color: var(--critical); font-size: 0.8rem; font-weight: 600; }

.workspace { min-width: 0; }
.topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(22px, 3vw, 44px);
  border-bottom: 1px solid var(--panel-edge);
  background: rgba(8, 12, 26, 0.84);
  backdrop-filter: blur(18px);
}
.eyebrow { margin: 0 0 4px; color: var(--candle); font-size: 0.76rem; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.topbar h2 { margin: 0; font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 600; color: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.ledger-badge, button {
  border: 1px solid var(--panel-edge-bright);
  border-radius: 11px;
  padding: 10px 15px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(112, 232, 255, 0.22), rgba(112, 232, 255, 0.1));
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  transition: 160ms ease;
}
button:hover { border-color: var(--candle); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28); }
button:disabled { opacity: 0.48; cursor: not-allowed; transform: none; box-shadow: none; }
.secondary-button, button.ghost {
  background: rgba(23, 35, 63, 0.9);
  border-color: var(--panel-edge);
  color: var(--ink);
}
.secondary-button:hover, button.ghost:hover { background: rgba(31, 47, 84, 0.95); border-color: var(--panel-edge-bright); }
.ledger-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.84rem;
  font-weight: 650;
  background: rgba(16, 24, 44, 0.92);
  border-color: var(--panel-edge);
}
.ledger-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--subtle); }
.ledger-badge.ok { border-color: rgba(94, 242, 184, 0.42); }
.ledger-badge.ok .dot { background: var(--ecto); box-shadow: 0 0 12px rgba(94, 242, 184, 0.9); }
.ledger-badge.bad { border-color: rgba(251, 113, 133, 0.55); }
.ledger-badge.bad .dot { background: var(--critical); box-shadow: 0 0 12px rgba(251, 113, 133, 0.9); }

.banner {
  margin: 16px clamp(22px, 3vw, 44px) 0;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 13px;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.14), rgba(251, 191, 36, 0.06));
}
.banner-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(251, 191, 36, 0.58);
  border-radius: 50%;
  color: #fde68a;
  font-family: var(--serif);
  font-weight: 700;
}
.banner > div { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; font-size: 0.86rem; }
.banner strong { color: #fde68a; }
.banner span { color: #eef2ff; }

main { width: min(1480px, 100%); margin: 0 auto; padding: 24px clamp(22px, 3vw, 44px) 45vh; }
.hero {
  position: relative;
  min-height: 280px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(270px, 0.7fr);
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(112, 232, 255, 0.28);
  border-radius: 24px;
  background:
    radial-gradient(640px 360px at 14% 112%, rgba(50, 204, 240, 0.22), transparent 62%),
    radial-gradient(480px 340px at 88% 36%, rgba(196, 157, 255, 0.22), transparent 68%),
    linear-gradient(130deg, #131f3b, #0b1326 60%, #10172f);
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(112, 232, 255, 0.06) 50%, transparent 58%);
}
.hero-copy { position: relative; z-index: 2; max-width: 740px; }
.hero h2 {
  margin: 8px 0 14px;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero h2 span {
  background: linear-gradient(120deg, var(--candle), var(--ecto));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy > p:not(.eyebrow) { max-width: 640px; margin: 0; color: var(--muted); font-size: clamp(0.98rem, 1.35vw, 1.1rem); }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-actions > button {
  color: #03151d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--candle), var(--ecto));
  font-size: 0.9rem;
  font-weight: 750;
  padding: 11px 18px;
  box-shadow: 0 10px 28px rgba(94, 242, 184, 0.2);
}
.hero-actions > button.secondary-button {
  color: var(--ink);
  background: rgba(18, 29, 55, 0.92);
  border: 1px solid var(--panel-edge-bright);
  box-shadow: none;
}
.hero-state {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(94, 242, 184, 0.34);
  border-radius: 999px;
  background: rgba(94, 242, 184, 0.11);
  color: #dcfce7;
  font-size: 0.85rem;
}
.live-signal {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ecto);
  box-shadow: 0 0 0 5px rgba(94, 242, 184, 0.15), 0 0 14px rgba(94, 242, 184, 0.9);
}

.trust-orbit { position: relative; width: min(300px, 100%); aspect-ratio: 1; justify-self: center; }
.orbit-ring {
  position: absolute;
  inset: 16%;
  border: 1px dashed rgba(112, 232, 255, 0.34);
  border-radius: 50%;
  animation: orbitSpin 28s linear infinite;
}
.ring-two {
  inset: 4%;
  border-style: solid;
  border-color: rgba(196, 157, 255, 0.24);
  animation-direction: reverse;
  animation-duration: 40s;
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.orbit-ring::before, .orbit-ring::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--candle);
  box-shadow: 0 0 14px var(--candle);
}
.orbit-ring::before { top: 13%; right: 13%; }
.orbit-ring::after { bottom: 10%; left: 20%; background: var(--violet); box-shadow: 0 0 14px var(--violet); }
.orbit-core {
  position: absolute;
  inset: 31%;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(112, 232, 255, 0.55);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 232, 255, 0.24), rgba(11, 18, 36, 0.96) 72%);
  box-shadow: 0 0 46px rgba(112, 232, 255, 0.24);
}
.orbit-core span { font-family: var(--mono); font-size: 1.08rem; font-weight: 800; color: var(--candle); letter-spacing: 0.06em; }
.orbit-core small { color: var(--muted); font-size: 0.72rem; }
.orbit-node {
  position: absolute;
  min-width: 54px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--panel-edge-bright);
  border-radius: 999px;
  background: var(--panel-raised);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 750;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.36);
}
.node-agent { left: 2%; top: 46%; color: var(--candle); border-color: rgba(112, 232, 255, 0.45); }
.node-policy { right: 2%; top: 22%; color: var(--violet); border-color: rgba(196, 157, 255, 0.45); }
.node-proof { right: 4%; bottom: 16%; color: var(--ecto); border-color: rgba(94, 242, 184, 0.45); }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.metric {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--panel-edge);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(20, 30, 54, 0.9), rgba(12, 19, 36, 0.9));
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
}
.metric-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--candle);
  background: var(--candle-soft);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 800;
}
.critical-icon { color: var(--critical); background: rgba(251, 113, 133, 0.16); }
.agent-icon { color: var(--violet); background: rgba(196, 157, 255, 0.16); }
.protected-icon { color: var(--ecto); background: rgba(94, 242, 184, 0.16); }
.metric > div { min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; width: 100%; }
.metric small { color: var(--muted); font-size: 0.84rem; font-weight: 600; }
.metric strong { grid-column: 2; grid-row: 1 / span 2; font-family: var(--serif); font-size: 2.15rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.metric p { margin: 2px 0 0; color: var(--subtle); font-size: 0.78rem; line-height: 1.3; }
.attention-metric.has-attention {
  border-color: rgba(251, 146, 60, 0.55);
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.18), rgba(16, 24, 44, 0.92));
}
.attention-metric.has-attention .metric-icon { color: #ffedd5; background: rgba(251, 146, 60, 0.28); }

.control-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr); gap: 16px; margin-bottom: 30px; }
.control-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(19, 28, 50, 0.9), rgba(12, 18, 35, 0.92));
}
.section-heading, .panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.section-heading h3, .panel-heading h2 { margin: 0; font-family: var(--serif); font-weight: 600; color: var(--ink); }
.section-heading h3 { font-size: 1.25rem; }
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid rgba(94, 242, 184, 0.35);
  border-radius: 999px;
  background: rgba(94, 242, 184, 0.1);
  color: var(--ecto);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.live-chip span { width: 7px; height: 7px; border-radius: 50%; background: var(--ecto); box-shadow: 0 0 10px var(--ecto); }

.flow-map { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 6px; margin-top: 24px; }
.flow-step { min-width: 0; display: grid; justify-items: center; gap: 10px; text-align: center; }
.flow-step > div { display: grid; gap: 2px; min-width: 0; }
.flow-step b { font-size: 0.85rem; color: var(--ink); line-height: 1.25; }
.flow-step small { color: var(--muted); font-size: 0.76rem; line-height: 1.3; }
.flow-symbol {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--panel-edge-bright);
  border-radius: 50%;
  background: #0d182f;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 0 0 6px rgba(112, 232, 255, 0.04);
}
.agent-symbol { color: var(--violet); border-color: rgba(196, 157, 255, 0.5); }
.policy-symbol { color: var(--medium); border-color: rgba(251, 191, 36, 0.5); }
.human-symbol { color: var(--candle); border-color: rgba(112, 232, 255, 0.6); }
.execute-symbol { color: var(--ecto); border-color: rgba(94, 242, 184, 0.5); }
.active-step .flow-symbol { box-shadow: 0 0 0 6px rgba(112, 232, 255, 0.1), 0 0 28px rgba(112, 232, 255, 0.25); }
.flow-line {
  width: clamp(14px, 1.8vw, 38px);
  height: 2px;
  margin-top: 24px;
  position: relative;
  background: linear-gradient(90deg, rgba(112, 232, 255, 0.18), rgba(112, 232, 255, 0.72), rgba(112, 232, 255, 0.18));
}
.flow-line::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: rgba(112, 232, 255, 0.8); }
.flow-line i { position: absolute; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--candle); box-shadow: 0 0 10px var(--candle); animation: travel 2.8s linear infinite; }
@keyframes travel { from { left: 0; } to { left: calc(100% - 6px); } }

.activity-list { display: grid; gap: 8px; margin-top: 14px; }
.activity-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(168, 196, 240, 0.12);
  border-radius: 11px;
  background: rgba(8, 13, 27, 0.7);
}
.activity-dot {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--candle);
  background: var(--candle-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
}
.activity-item > div { min-width: 0; display: grid; gap: 1px; }
.activity-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.84rem; font-family: var(--mono); color: var(--ink); }
.activity-item small { color: var(--muted); font-size: 0.76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-time { color: var(--subtle); font-size: 0.74rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

.panel { scroll-margin-top: 20px; margin-bottom: 34px; min-width: 0; }
.command-deck, .history-deck {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  margin-bottom: 34px;
}
.command-deck .panel, .history-deck .panel { margin-bottom: 0; }
.command-deck .grid, .history-deck .grid { grid-template-columns: 1fr; }
.command-deck .panel-heading, .history-deck .panel-heading { flex-direction: column; align-items: flex-start; gap: 6px; }
.command-deck .panel-heading > p, .history-deck .panel-heading > p { max-width: none; }
.panel-heading { align-items: end; padding: 8px 0 16px; border-bottom: 1px solid var(--panel-edge); margin-bottom: 18px; }
.panel-heading h2 { font-size: clamp(1.38rem, 2vw, 1.85rem); }
.panel-heading > p, .panel-heading > div > p:not(.eyebrow) { max-width: 560px; margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 16px; }

@media (max-width: 1180px) {
  .command-deck, .history-deck { grid-template-columns: 1fr; }
}

.empty {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 36px;
  border: 1px dashed rgba(168, 196, 240, 0.34);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(16, 24, 44, 0.52);
}
.empty-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 50%; color: var(--ecto); background: rgba(94, 242, 184, 0.14); font-size: 1.3rem; }
.empty h3 { margin: 0 0 6px; color: var(--ink); font-family: var(--serif); font-size: 1.3rem; }
.empty p { margin: 0 0 16px; max-width: 440px; font-size: 0.92rem; }

.pact {
  --risk: var(--muted);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 16px 18px;
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  background:
    radial-gradient(320px 120px at 0% 0%, color-mix(in srgb, var(--risk) 10%, transparent), transparent 65%),
    linear-gradient(150deg, #131e38, #0c1427);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}
.pact::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: var(--radius) 0 0 var(--radius); background: var(--risk); box-shadow: 0 0 16px var(--risk); }
.pact.risk-low { --risk: var(--low); }
.pact.risk-medium { --risk: var(--medium); }
.pact.risk-high { --risk: var(--high); }
.pact.risk-critical { --risk: var(--critical); border-color: rgba(251, 113, 133, 0.36); }
.pact-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.omen, .status { font-size: 0.74rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.omen {
  padding: 4px 10px;
  border: 1px solid color-mix(in srgb, var(--risk) 55%, transparent);
  border-radius: 999px;
  color: var(--risk);
  background: color-mix(in srgb, var(--risk) 14%, transparent);
}
.status { color: var(--muted); }
.status.approved { color: var(--candle); }
.status.redeemed { color: var(--ecto); }
.status.rejected, .status.broken { color: #fda4af; }
.action-summary { padding: 12px 13px; border: 1px solid rgba(168, 196, 240, 0.2); border-radius: 12px; background: #070d1c; display: grid; gap: 5px; }
.action-head-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.action-tool { color: var(--candle); font-size: 0.84rem; font-weight: 700; }
.agent-pill { padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(196, 157, 255, 0.35); color: #e9d5ff; background: rgba(196, 157, 255, 0.14); font-family: var(--mono); font-size: 0.73rem; font-weight: 700; }
.target-line { margin: 0; font-family: var(--mono); font-size: 1.04rem; font-weight: 750; color: var(--ink); overflow-wrap: anywhere; }
.arg-preview { margin: 0; color: var(--subtle); font-family: var(--mono); font-size: 0.76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.env {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.3);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  vertical-align: middle;
}
.env.prod { color: #fecdd3; background: rgba(251, 113, 133, 0.18); border-color: rgba(251, 113, 133, 0.4); }
.why { margin: 0; padding-left: 11px; border-left: 2px solid rgba(112, 232, 255, 0.38); color: var(--muted); font-size: 0.87rem; }
.pact-meta-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 0.78rem; color: var(--subtle); }
.meta-pill, .meta-timer { color: var(--subtle); font-variant-numeric: tabular-nums; }
.meta-pill { color: var(--muted); }
.compact-details { border-top: 1px solid rgba(168, 196, 240, 0.14); padding-top: 9px; }
.details-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; color: var(--subtle); font-size: 0.76rem; }
.approval-progress { display: grid; gap: 8px; }
.progress-copy { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.8rem; }
.progress-copy b { color: var(--ink); }
.progress-track { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(168, 196, 240, 0.16); }
.progress-track span { display: block; height: 100%; width: var(--progress); border-radius: inherit; background: var(--risk); box-shadow: 0 0 10px var(--risk); }
.signatures { display: flex; gap: 6px; flex-wrap: wrap; }
.sig { padding: 4px 9px; border: 1px solid rgba(94, 242, 184, 0.36); border-radius: 999px; color: #d1fae5; background: rgba(94, 242, 184, 0.12); font-size: 0.76rem; font-weight: 600; }
.sig.empty-slot { color: var(--muted); border-color: var(--panel-edge); border-style: dashed; background: transparent; }
.breach { margin: 0; padding: 11px 12px; border: 1px solid rgba(251, 113, 133, 0.4); border-radius: 10px; color: #ffe4e6; background: rgba(251, 113, 133, 0.13); font-size: 0.84rem; }
.breach ul { margin: 6px 0 0; padding-left: 18px; font-family: var(--mono); }
details { border-top: 1px solid rgba(168, 196, 240, 0.16); padding-top: 11px; }
details summary { color: var(--candle); cursor: pointer; font-size: 0.83rem; font-weight: 600; }
pre, .code {
  margin: 9px 0 0;
  padding: 12px 13px;
  overflow-x: auto;
  border: 1px solid var(--panel-edge);
  border-radius: 10px;
  color: #e2ecf8;
  background: #060b16;
  font-family: var(--mono);
  font-size: 0.81rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.hash { color: var(--subtle); font-family: var(--mono); font-size: 0.77rem; overflow-wrap: anywhere; }
.pact-actions { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: auto; }
.pact-actions button { min-height: 40px; font-size: 0.84rem; font-weight: 700; justify-content: center; }
.pact-actions .approve { color: #03151d; background: linear-gradient(135deg, var(--candle), var(--ecto)); border-color: transparent; }
button.danger { color: #ffe4e6; border-color: rgba(251, 113, 133, 0.45); background: rgba(251, 113, 133, 0.14); }
button.danger:hover { border-color: var(--critical); background: rgba(251, 113, 133, 0.24); }

.verify { min-height: 1.6em; margin-bottom: 12px; font-size: 0.9rem; font-weight: 600; }
.verify.ok { color: var(--ecto); }
.verify.bad, .error, #redeem-result.bad { color: #fda4af; }
.table-wrap { overflow-x: auto; border: 1px solid var(--panel-edge); border-radius: var(--radius); }
table.ledger { width: 100%; border-collapse: collapse; background: rgba(16, 24, 44, 0.86); font-size: 0.84rem; }
.ledger th, .ledger td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(168, 196, 240, 0.12); white-space: nowrap; }
.ledger tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
.ledger tbody tr:hover { background: rgba(112, 232, 255, 0.06); }
.ledger th { color: var(--muted); background: var(--panel-solid); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.mono, .ledger td.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.etype { padding: 3px 8px; border-radius: 6px; color: #e9d5ff; background: rgba(196, 157, 255, 0.18); font-weight: 650; }
.etype.pact-broken, .etype.pact-rejected { color: #fecdd3; background: rgba(251, 113, 133, 0.18); }
.etype.pact-sealed, .etype.pact-redeemed { color: #bbf7d0; background: rgba(94, 242, 184, 0.18); }

.how { max-width: none; }
.ritual { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 0; }
.ritual li { min-width: 0; padding: 17px; border: 1px solid var(--panel-edge); border-radius: 15px; background: linear-gradient(160deg, rgba(19, 28, 50, 0.9), rgba(12, 18, 35, 0.92)); }
.ritual li > span { display: block; margin-bottom: 14px; color: var(--candle); font-family: var(--mono); font-size: 0.82rem; font-weight: 700; }
.ritual h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }
.ritual p { margin: 0; color: var(--muted); font-size: 0.84rem; }
.integration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.integration-grid > div { min-width: 0; padding: 20px; border: 1px solid var(--panel-edge); border-radius: var(--radius); background: rgba(16, 24, 44, 0.86); }
.integration-grid h3 { margin-top: 0; font-family: var(--serif); font-size: 1.15rem; }

code { font-family: var(--mono); }
dialog { width: min(580px, calc(100vw - 28px)); padding: 26px; border: 1px solid var(--panel-edge-bright); border-radius: 20px; color: var(--ink); background: #10192e; box-shadow: 0 35px 100px rgba(0, 0, 0, 0.72); }
dialog::backdrop { background: rgba(3, 6, 15, 0.8); backdrop-filter: blur(7px); }
dialog h2 { margin: 4px 0 8px; font-family: var(--serif); font-size: 1.4rem; }
.dialog-kicker { color: var(--candle); font-size: 0.76rem; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; }
.muted { color: var(--muted); font-size: 0.88rem; }
.hash-block { display: block; margin: 14px 0; padding: 11px 12px; border: 1px solid var(--panel-edge); border-radius: 10px; color: var(--candle); background: #060b16; font-family: var(--mono); font-size: 0.8rem; overflow-wrap: anywhere; }
textarea { resize: vertical; font-family: var(--mono); font-size: 0.84rem; }
dialog .actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 16px; }
.error { min-height: 1.3em; margin: 6px 0; font-size: 0.84rem; font-weight: 600; }
#redeem-result.ok { color: var(--ecto); font-weight: 600; }
#redeem-result { white-space: pre-wrap; font-size: 0.86rem; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 22px; max-width: min(640px, calc(100vw - 28px)); transform: translateX(-50%); padding: 13px 18px; border: 1px solid var(--panel-edge-bright); border-radius: 12px; color: var(--ink); background: #162442; box-shadow: var(--shadow); font-size: 0.88rem; font-weight: 600; }
.toast.bad { border-color: rgba(251, 113, 133, 0.65); }
.footer { display: flex; justify-content: space-between; gap: 15px; padding: 20px clamp(22px, 3vw, 44px) 32px; border-top: 1px solid var(--panel-edge); color: var(--subtle); font-size: 0.82rem; }

button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--candle); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Lucide icons, spin & tooltips ---------- */
.lucide { width: 16px; height: 16px; flex: 0 0 auto; }
.nav-icon .lucide, .metric-icon .lucide { width: 18px; height: 18px; }
.flow-symbol .lucide { width: 20px; height: 20px; }
button, .omen, .agent-pill, .meta-pill, .meta-timer, .artifact-card b, .run-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tabs button { display: grid; }
.ledger-badge { display: inline-flex; }
.spin { animation: lucideSpin 1s linear infinite; }
@keyframes lucideSpin { to { transform: rotate(360deg); } }

[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 40;
  width: max-content;
  max-width: 290px;
  padding: 7px 10px;
  border: 1px solid var(--panel-edge-bright);
  border-radius: 9px;
  background: #0a1224;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.info-tip {
  display: inline-flex;
  align-items: center;
  color: var(--candle);
  cursor: help;
}

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 236px minmax(0, 1fr); }
  .flow-map { grid-template-columns: repeat(4, 1fr); }
  .flow-line { display: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .control-grid { grid-template-columns: 1fr; }
  .ritual { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 780px) {
  .app-shell { display: block; }
  .sidebar { position: relative; width: 100%; height: auto; padding: 14px; overflow: visible; }
  .brand { padding-bottom: 13px; }
  .sidebar-label { display: none; }
  .tabs { grid-template-columns: repeat(6, minmax(84px, 1fr)); overflow-x: auto; }
  .tabs button { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 4px; padding: 8px; text-align: center; }
  .nav-copy small, .tabs .count { display: none; }
  .nav-copy b { font-size: 0.74rem; }
  .operator-card { margin-top: 12px; grid-template-columns: 1fr 1fr; }
  .operator-heading { grid-column: 1 / -1; }
  .identity-status { grid-column: 1 / -1; }
  .topbar { align-items: flex-start; padding: 15px; }
  .topbar-actions { align-items: flex-end; flex-direction: column-reverse; }
  .ledger-badge { padding: 8px 10px; }
  #ledger-badge-text { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .banner { margin: 12px 15px 0; }
  main { padding: 15px 15px 40px; }
  .hero { min-height: 0; grid-template-columns: 1fr; padding: 26px 20px; }
  .trust-orbit { display: none; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { padding: 14px; }
  .metric-icon { display: none; }
  .flow-map { grid-template-columns: 1fr 1fr; gap: 16px; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .integration-grid { grid-template-columns: 1fr; }
  .ritual { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
}

@media (max-width: 470px) {
  .metrics { grid-template-columns: 1fr; }
  .operator-card { grid-template-columns: 1fr; }
  .operator-heading, .identity-status { grid-column: auto; }
  .topbar h2 { font-size: 1.15rem; }
  .topbar .eyebrow { display: none; }
  .hero h2 { font-size: 2rem; }
  .pact-actions { grid-template-columns: 1fr; }
}

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

.progress-fill.progress-0 { width: 0; }
.progress-fill.progress-50 { width: 50%; }
.progress-fill.progress-100 { width: 100%; }

.panel:focus { outline: 2px solid rgba(112, 232, 255, 0.45); outline-offset: 8px; }

/* ---------- live agent run ---------- */
select {
  width: 100%;
  border: 1px solid var(--panel-edge);
  border-radius: 10px;
  padding: 10px 11px;
  color: var(--ink);
  background-color: #070d1b;
  font-size: 0.88rem;
}
option { background-color: #0b1222; color: var(--ink); }
option:disabled { color: #7e92b0; }

.run-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  margin-bottom: 18px;
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(19, 28, 50, 0.9), rgba(12, 18, 35, 0.92));
}
.run-goal textarea { font-family: var(--sans); font-size: 0.94rem; }
.run-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.run-options label.check { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; font-size: 0.85rem; color: var(--ink); padding-bottom: 2px; font-weight: 500; }
.run-options label.check input { width: auto; accent-color: var(--candle); }
.run-note { margin: 0; color: var(--muted); font-size: 0.84rem; min-height: 1.1em; }
.run-note.warn { color: #fde68a; }
.run-actions { display: flex; gap: 10px; }
.run-actions #run-start { color: #03151d; border-color: transparent; background: linear-gradient(135deg, var(--candle), var(--ecto)); font-weight: 750; }

.run-view { display: grid; gap: 15px; }
.run-summary {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border: 1px solid var(--panel-edge); border-radius: var(--radius);
  background: linear-gradient(135deg, #131e38, #0c1427);
}
.run-summary h3 { margin: 6px 0 4px; font-family: var(--serif); font-size: 1.24rem; color: var(--ink); }
.run-summary p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.run-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--panel-edge); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); }
.badge.live { color: #bbf7d0; border-color: rgba(94, 242, 184, 0.5); background: rgba(94, 242, 184, 0.14); }
.badge.scripted { color: #fde68a; border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.12); }
.run-status { padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--candle); background: var(--candle-soft); }
.run-status.waiting_human { color: #ffedd5; background: rgba(251, 146, 60, 0.24); }
.run-status.completed { color: #bbf7d0; background: rgba(94, 242, 184, 0.2); }
.run-status.failed, .run-status.cancelled { color: #fecdd3; background: rgba(251, 113, 133, 0.22); }

.run-callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; border: 1px solid rgba(251, 146, 60, 0.55); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(16, 24, 44, 0.92));
}
.run-callout b { display: block; font-size: 0.98rem; color: var(--ink); }
.run-callout span { color: var(--muted); font-size: 0.86rem; }
.run-callout button { color: #03151d; border-color: transparent; background: linear-gradient(135deg, var(--candle), var(--ecto)); font-weight: 750; }
.run-callout button.danger { color: #ffe4e6; border-color: rgba(251, 113, 133, 0.5); background: rgba(251, 113, 133, 0.16); }
.callout-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.custom-llm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(112, 232, 255, 0.28);
  border-radius: 13px;
  background: rgba(7, 13, 27, 0.72);
}
.custom-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
#custom-action-dialog label { margin-bottom: 10px; }
@media (max-width: 780px) {
  .custom-llm, .custom-action-grid { grid-template-columns: 1fr; }
}

.run-status-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.run-live-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border: 1px solid rgba(196, 157, 255, 0.45);
  border-radius: 13px;
  background: linear-gradient(90deg, rgba(196, 157, 255, 0.14), rgba(112, 232, 255, 0.08));
  color: var(--ink);
}
.run-live-bar.waiting_human {
  border-color: rgba(251, 146, 60, 0.55);
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.16), rgba(16, 24, 44, 0.92));
}
.live-bar-copy { display: grid; min-width: 0; }
.live-bar-copy b { font-size: 0.9rem; color: var(--ink); }
.live-bar-copy small { font-size: 0.76rem; color: var(--muted); }
.run-live-bar .step-timer { margin-left: auto; }

.run-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.run-steps::before {
  content: "";
  position: absolute;
  left: 33px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(94, 242, 184, 0.45), rgba(112, 232, 255, 0.25));
  pointer-events: none;
}
.run-step {
  --tone: var(--muted);
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 15px;
  border: 1px solid var(--panel-edge);
  border-left: 3px solid var(--tone);
  border-radius: 13px;
  background: rgba(16, 24, 44, 0.92);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.run-step.done { --tone: var(--ecto); }
.run-step.blocked { --tone: var(--candle); }
.run-step.waiting { --tone: var(--high); border-color: rgba(251, 146, 60, 0.5); box-shadow: 0 0 24px rgba(251, 146, 60, 0.12); }
.run-step.running { --tone: var(--violet); border-color: rgba(196, 157, 255, 0.55); box-shadow: 0 0 24px rgba(196, 157, 255, 0.16); }
.run-step.failed { --tone: var(--critical); }
.step-icon {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--tone) 55%, transparent);
  border-radius: 10px;
  color: var(--tone);
  background: #0d1528;
}
.run-step.running .step-icon { animation: pulse 1.2s ease-in-out infinite; }
.run-step.waiting .step-icon { animation: waitPulse 1.5s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(196, 157, 255, 0.2); } }
@keyframes waitPulse { 50% { box-shadow: 0 0 0 6px rgba(251, 146, 60, 0.22); } }
.step-body { min-width: 0; display: grid; gap: 5px; }
.step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.step-head b { font-size: 0.9rem; color: var(--ink); }
.agent-chip { padding: 2px 8px; border-radius: 999px; font-family: var(--mono); font-size: 0.72rem; font-weight: 700; color: #e9d5ff; background: rgba(196, 157, 255, 0.18); }
.agent-chip.human { color: #cffafe; background: rgba(112, 232, 255, 0.18); }
.agent-chip.adapter { color: #bbf7d0; background: rgba(94, 242, 184, 0.18); }
.step-timer {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(168, 196, 240, 0.12);
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}
.step-timer.live { color: var(--candle); background: rgba(112, 232, 255, 0.16); }
.step-state { margin-left: auto; color: var(--tone); font-size: 0.73rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.step-detail { margin: 0; color: var(--muted); font-size: 0.84rem; overflow-wrap: anywhere; }
.step-inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.step-inline-actions .quick-approve { color: #03151d; border-color: transparent; background: linear-gradient(135deg, var(--candle), var(--ecto)); font-weight: 750; padding: 7px 12px; font-size: 0.82rem; }
.step-inline-actions .danger { padding: 7px 12px; font-size: 0.82rem; }
.step-more { border-top: 0; padding-top: 2px; }
.step-more summary { font-size: 0.76rem; color: var(--subtle); }
.step-meta { color: var(--subtle); font-size: 0.75rem; font-family: var(--mono); }
.step-list { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.82rem; }
.step-list b { color: var(--ink); font-weight: 650; }
.run-step pre { margin-top: 6px; font-size: 0.78rem; }

.artifact-card {
  display: grid; gap: 7px; padding: 18px 20px; border: 1px solid rgba(94, 242, 184, 0.45);
  border-radius: var(--radius); background: linear-gradient(135deg, rgba(94, 242, 184, 0.14), rgba(16, 24, 44, 0.92));
}
.artifact-card b { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); }
.artifact-card code { color: var(--ecto); font-size: 0.82rem; overflow-wrap: anywhere; }
.artifact-card span { color: var(--muted); font-size: 0.86rem; }
.run-empty { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed rgba(168, 196, 240, 0.34); border-radius: var(--radius); background: rgba(16, 24, 44, 0.52); }
.run-empty h3 { margin: 0 0 6px; color: var(--ink); font-family: var(--serif); font-size: 1.24rem; }

@media (max-width: 780px) {
  .run-options { grid-template-columns: 1fr; }
  .run-options label.check { padding-bottom: 0; }
}

.proof-json { max-height: 46vh; overflow: auto; font-size: 0.8rem; }
#proof-dialog { width: min(720px, calc(100vw - 28px)); }

.hero-actions > button.secondary-button { color: var(--ink); background: rgba(18, 29, 55, 0.92); border: 1px solid var(--panel-edge-bright); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
#reviewer-name[readonly] { color: var(--candle); cursor: not-allowed; }

.integration-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.integration-grid > div { display: grid; align-content: start; gap: 8px; }
.integration-grid button[data-copy] { justify-self: start; }
