:root {
  --bg: #0f1419;
  --panel: #1a222c;
  --ink: #e7eef7;
  --muted: #9aabbd;
  --accent: #3d9a78;
  --warn: #c9853f;
  --line: #2a3542;
  --danger: #c45b5b;
  --manual: #8a5a2b;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, #1c2b33 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #24301f 0%, transparent 50%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

.top, .safety, .controls, .grid, .story, .fixture, .gates, .metric, .notifications,
.architecture, .presenter-strip, .event-lab, .guided-demo, .live-ops, .execute-demo, .live-pr {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

h1 { margin: 0 0 0.4rem; font-size: 1.75rem; font-weight: 600; }
h2 { margin: 0 0 0.75rem; font-size: 1.05rem; font-weight: 600; }
h3 { margin: 0 0 0.35rem; font-size: 0.95rem; }
.lede, .hint { color: var(--muted); margin: 0; line-height: 1.45; font-size: 0.95rem; }
.pane-why {
  color: var(--muted);
  margin: 0 0 0.55rem;
  line-height: 1.4;
  font-size: 0.88rem;
}
.pane-why strong { color: #c5d2e0; font-weight: 600; }
.layer-plain { display: inline; }

.metric {
  border-bottom: 1px solid var(--line);
  padding-top: 1rem;
  padding-bottom: 1.1rem;
}
.metric-grid {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  background: linear-gradient(135deg, #1a2f28 0%, var(--panel) 55%);
  border: 1px solid #2f5a45;
  border-radius: 10px;
  padding: 1rem 1.15rem;
}
.metric-stat-block {
  text-align: center;
  padding: 0.35rem 0.25rem;
}
.metric-stat {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #8fd4b0;
  line-height: 1;
}
.metric-stat-label {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.35;
}
.metric-copy p { margin: 0 0 0.55rem; line-height: 1.45; }
.metric-copy p:last-child { margin-bottom: 0; }
.metric-claim { font-size: 1.02rem; color: var(--ink); }
.metric-hypothesis { font-size: 0.92rem; color: var(--muted); }
.metric-source {
  font-size: 0.78rem;
  color: #7f93a6;
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
  margin-top: 0.15rem !important;
}
.metric-source a { color: #8fd4b0; }
@media (max-width: 900px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric-stat-block { text-align: left; }
}

.health {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  min-width: 220px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.story {
  border-bottom: 1px solid var(--line);
}
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: stretch;
  margin-bottom: 0.85rem;
}
.compare-col {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem 1rem;
}
.compare-col.before {
  border-color: #5a4030;
  background: linear-gradient(180deg, #221910 0%, #161b22 100%);
}
.compare-col.after {
  border-color: #2f5a45;
  background: linear-gradient(180deg, #14241c 0%, #161b22 100%);
}
.compare-arrow {
  align-self: center;
  color: var(--muted);
  font-size: 1.4rem;
}
.flow-caption {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0 0 0.85rem;
}
.flow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.85rem;
}
.legend-swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.legend-swatch::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  border: 1px solid transparent;
}
.legend-swatch.role-human::before,
.flow-node.role-human { background: #3a2430; border-color: #c45b8a; }
.legend-swatch.role-controller::before,
.flow-node.role-controller { background: #1a2f3a; border-color: #3d8fbf; }
.legend-swatch.role-cursor::before,
.flow-node.role-cursor { background: #1f3a2e; border-color: #3d9a78; }
.legend-swatch.role-github::before,
.flow-node.role-github { background: #243040; border-color: #6b849c; }
.legend-swatch.role-durable::before,
.flow-node.role-durable { background: #2a2840; border-color: #8a7cc8; }
.legend-swatch.role-bottleneck::before,
.flow-node.role-bottleneck {
  background: #3a2a14;
  border-color: #c9853f;
  box-shadow: inset 0 0 0 1px rgba(201, 133, 63, 0.25);
}

.flow-diagram { margin-top: 0.25rem; }
.flow-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.flow-node {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--ink);
  outline: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.flow-node:hover,
.flow-node:focus-visible {
  box-shadow: 0 0 0 2px rgba(141, 212, 176, 0.35);
  transform: translateY(-1px);
}
.flow-node.loop-end {
  border-style: dashed;
  font-weight: 600;
}
.loop-hint {
  display: inline-block;
  margin-left: 0.35rem;
  color: #e0b57a;
  font-size: 0.78rem;
}
.flow-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 1.1rem;
  position: relative;
  margin: 0.1rem 0;
}
.flow-arrow-line {
  display: block;
  width: 2px;
  height: 0.85rem;
  background: #5a6d80;
  position: relative;
}
.flow-arrow-line::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #5a6d80;
  transform: translateX(-50%);
}
.flow-connector.branch-split {
  min-height: 1.85rem;
  justify-content: center;
}
.branch-fork {
  position: absolute;
  right: 0;
  top: 42%;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 38%;
  pointer-events: none;
}
.branch-fork-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #5a6d80, #c45b8a);
  position: relative;
}
.branch-fork-line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid #c45b8a;
  transform: translateY(-50%);
}
.branch-label {
  font-size: 0.68rem;
  color: #f0a8c8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}
.flow-branch {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(10.5rem, 0.72fr);
  gap: 0.75rem;
  align-items: start;
}
.flow-track.human-lane {
  border: 1px dashed #c45b8a;
  border-radius: 10px;
  background: rgba(58, 36, 48, 0.45);
  padding: 0.55rem 0.6rem 0.65rem;
  margin-top: 0;
  gap: 0.45rem;
}
.lane-heading {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #f0a8c8;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0 0 0.15rem;
}
.lane-heading-kicker {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c98aa8;
}
.flow-node.escalate-step {
  box-shadow: inset 0 0 0 1px rgba(196, 91, 138, 0.35);
}
.lane-note {
  margin: 0;
  font-size: 0.7rem;
  color: #c9a0b4;
  line-height: 1.35;
}
.flow-note {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: #7f93a6;
  line-height: 1.35;
}
.stage-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  line-height: 1.45;
  font-size: 0.9rem;
}

.fixture-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 900px) {
  .fixture-grid, .compare { grid-template-columns: 1fr; }
  .compare-arrow { display: none; }
  .flow-branch { grid-template-columns: 1fr; }
  .flow-track.human-lane {
    border-left: 1px dashed #c45b8a;
    border-top: 1px dashed #c45b8a;
  }
  .branch-fork {
    position: static;
    width: auto;
    justify-content: center;
    margin: 0.15rem 0 0.35rem;
  }
  .branch-fork-line {
    max-width: 3rem;
  }
}
.fixture-preview {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}

.gates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
}
.gate-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
}
.blocked { margin: 0.4rem 0 0; padding-left: 1.1rem; color: var(--warn); }
.blocked .ok { color: var(--accent); }

.safety ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}
.safety li::before {
  content: "✓ ";
  color: var(--accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.primary-path { margin-top: 1rem; }

button {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font: inherit;
}
button:hover { border-color: var(--accent); }
button.primary { background: #244f40; border-color: var(--accent); }
button.warn { background: #3a2a18; border-color: var(--warn); }
button.ghost { opacity: 0.8; }

.log, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  overflow: auto;
  max-height: 280px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.log { min-height: 4rem; white-space: pre-wrap; font-family: "IBM Plex Mono", ui-monospace, monospace; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  padding-bottom: 3rem;
}

.row {
  border-bottom: 1px solid var(--line);
  padding: 0.45rem 0;
}
.row:last-child { border-bottom: 0; }
.tag {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: #243040;
  margin-right: 0.35rem;
  font-size: 0.75rem;
}
.tag.demo { background: #3a3420; color: #e6d089; }
.tag.cursor { background: #203528; color: #9ad4b0; }
.tag.ok { background: #1f3a2e; color: #8fd4b0; }
.tag.warn { background: #3a2e1f; color: #e0b57a; }
.tag.bad { background: #3a1f1f; color: #e08a8a; }
.tag.escalate { background: #4a2a3a; color: #f0a8c8; }
.meta { color: var(--muted); }
code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.85em; }

.policy-banner {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #2f5a45;
  background: #16261f;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}
.policy-banner strong { color: #8fd4b0; }

.row.escalate-row {
  border-left: 3px solid #c45b8a;
  padding-left: 0.65rem;
  background: rgba(74, 42, 58, 0.35);
  border-radius: 0 6px 6px 0;
}
.row.resolved-row {
  border-left: 3px solid var(--accent);
  padding-left: 0.65rem;
}
.row.focus-row {
  outline: 1px solid #2f5a45;
  border-radius: 8px;
  background: rgba(61, 154, 120, 0.08);
}

.readiness-banner {
  margin-bottom: 0.75rem;
}
.readiness-card {
  background: linear-gradient(135deg, #1a2833 0%, var(--panel) 60%);
  border: 1px solid #2f4a5a;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.state-legend {
  margin-bottom: 0.85rem;
}
.legend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .legend-grid { grid-template-columns: 1fr; }
}

.notifications {
  border-bottom: 1px solid var(--line);
}
.notif-badge {
  display: inline-block;
  min-width: 1.4rem;
  padding: 0.1rem 0.45rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: #3a2a18;
  color: #f0c48a;
  font-size: 0.78rem;
  font-weight: 600;
  vertical-align: middle;
}
.notif-badge.has-unread {
  background: #3a1f1f;
  color: #e08a8a;
}
.notif-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.notif-toolbar select {
  margin-left: 0.35rem;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.25rem 0.4rem;
  font: inherit;
}
.notif-inbox { max-height: 360px; }
.notif-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 0.75rem;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0;
}
.notif-row:last-child { border-bottom: 0; }
.notif-row.unread { border-left: 3px solid var(--warn); padding-left: 0.55rem; }
.notif-row.high { border-left-color: var(--danger); }
.notif-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
  min-width: 8.5rem;
}
.notif-actions button,
.notif-actions .btn-link {
  padding: 0.3rem 0.55rem;
  font-size: 0.78rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  cursor: pointer;
}
.notif-actions .btn-link:hover,
.notif-actions button:hover {
  border-color: var(--ink);
}
.notif-row.deep-link-hit {
  outline: 2px solid var(--accent, #2a6f97);
  outline-offset: 2px;
  background: color-mix(in srgb, var(--accent, #2a6f97) 8%, transparent);
}

/* Architecture sequence diagram */
.architecture {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.seq-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #141b22 0%, #10161c 100%);
  padding: 0.75rem;
}
.seq-diagram {
  width: 100%;
  min-width: 760px;
  height: auto;
  display: block;
}
.seq-actor { stroke-width: 1; }
.seq-actor.role-github { fill: #243040; stroke: #6b849c; }
.seq-actor.role-controller { fill: #1a2f3a; stroke: #3d8fbf; }
.seq-actor.role-durable { fill: #2a2840; stroke: #8a7cc8; }
.seq-actor.role-cursor { fill: #1f3a2e; stroke: #3d9a78; }
.seq-actor.role-discord { fill: #2a2440; stroke: #7a6fd0; }
.seq-actor.role-human {
  fill: #3a2430;
  stroke: #c45b8a;
  stroke-width: 1.5;
}
.seq-lifeline.role-human { stroke: #6a3a50; stroke-dasharray: 2 5; }
.seq-boundary {
  fill: rgba(61, 143, 191, 0.06);
  stroke: #2f4a5a;
  stroke-dasharray: 5 4;
}
.seq-boundary-label {
  fill: #7f93a6;
  font-size: 11px;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}
.seq-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 0.75rem 0 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.seq-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.seq-swatch {
  display: inline-block;
  width: 1.1rem;
  height: 0.55rem;
  border-radius: 2px;
  border: 1px solid transparent;
  flex-shrink: 0;
}
.seq-swatch.human { background: #3a2430; border-color: #c45b8a; height: 0.7rem; width: 0.7rem; border-radius: 4px; }
.seq-swatch.system { background: #243040; border-color: #6b849c; height: 0.7rem; width: 0.7rem; border-radius: 2px; }
.seq-swatch.solid { background: #9aabbd; }
.seq-swatch.async {
  background: transparent;
  border-color: transparent;
  background-image: repeating-linear-gradient(90deg, #c9853f 0 4px, transparent 4px 7px);
  border-bottom: 2px solid transparent;
  height: 0.35rem;
  align-self: center;
}
.seq-swatch.human-path {
  background: transparent;
  background-image: repeating-linear-gradient(90deg, #c45b8a 0 4px, transparent 4px 7px);
  height: 0.35rem;
  align-self: center;
}
.seq-notes {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}
.seq-notes strong { color: var(--ink); }
@media (max-width: 720px) {
  .seq-diagram { min-width: 680px; }
  .seq-wrap { padding: 0.5rem; }
}

/* Presenter strip + Event lab (hidden by default) */
.presenter-strip {
  border-top: 1px solid var(--line);
  padding-bottom: 0.5rem;
}
.presenter-actions { margin-top: 0.55rem; }

.guided-demo {
  border: 1px solid #2f5a45;
  border-radius: 10px;
  background: linear-gradient(180deg, #14241c 0%, #161b22 100%);
  margin: 0.5rem auto 0.75rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.live-ops {
  border: 1px solid #3d5a7a;
  border-radius: 10px;
  background: #161b22;
  margin: 0.5rem auto 0.75rem;
  padding: 1rem 1.1rem;
}
.guided-demo[hidden], .live-ops[hidden] { display: none !important; }
.guided-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}
.guided-header h2 { margin: 0 0 0.35rem; }
.guided-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.guided-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.guided-step-btn {
  width: 100%;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  text-align: left;
  background: rgba(26, 34, 44, 0.55);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
  cursor: pointer;
}
.guided-step-btn:hover { border-color: var(--accent); }
.guided-step-btn:focus-visible {
  outline: 2px solid #8fd4b0;
  outline-offset: 2px;
}
.guided-step.is-current .guided-step-btn,
.guided-step-btn.is-recommended {
  border-color: var(--accent);
  background: #1a2f28;
  box-shadow: inset 3px 0 0 var(--accent);
}
.guided-step.is-done .guided-step-btn {
  opacity: 0.72;
}
.guided-num {
  flex: 0 0 1.4rem;
  font-weight: 700;
  color: #8fd4b0;
  font-variant-numeric: tabular-nums;
}
.guided-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.guided-copy strong { font-size: 0.92rem; }
.guided-next {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: #8fd4b0;
}

.event-lab {
  border: 1px dashed #5a4030;
  border-radius: 10px;
  background: #16120e;
  margin-bottom: 1rem;
}
.event-lab[hidden] { display: none !important; }
.event-lab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.event-lab-header h2 { margin: 0; }
.demo-trail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #5a4030;
  border-radius: 8px;
  background: rgba(26, 34, 44, 0.55);
}
.trail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}
.trail-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
  color: #e0b57a;
}
.event-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
  margin: 0.85rem 0;
}
.event-group {
  background: rgba(26, 34, 44, 0.7);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}
.event-group.deviation-group {
  border-color: #5a4030;
}
.event-group h3 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e0b57a;
}
.event-group .btn-row { margin: 0.35rem 0 0; }
.stacked-btns {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}
.stacked-btns button {
  width: 100%;
  text-align: left;
  white-space: normal;
  line-height: 1.35;
}
.cursor-goto {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.btn-copy-goto {
  padding: 0.2rem 0.45rem !important;
  font-size: 0.72rem !important;
}
.meta.muted { opacity: 0.85; }

/* Pitch / Execute tabs */
.demo-tabs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 0;
  display: flex;
  gap: 0.35rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(15, 20, 25, 0.97) 60%, rgba(15, 20, 25, 0.85));
  backdrop-filter: blur(6px);
}
.demo-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0.55rem 1rem;
  border-radius: 8px 8px 0 0;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}
.demo-tab:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
.demo-tab.is-active {
  color: var(--ink);
  background: var(--panel);
  border-color: var(--line);
  border-bottom-color: var(--panel);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.tab-panel[hidden] { display: none !important; }
.tab-panel.is-active { display: block; }

.execute-demo,
.live-pr {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}
.execute-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.execute-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.auto-merge-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 0.88rem;
  cursor: pointer;
  user-select: none;
}
.auto-merge-toggle input { accent-color: var(--accent); }
.execute-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.execute-step-btn {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  text-align: left;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.execute-step-btn:hover:not(:disabled) { border-color: #3d5a4a; }
.execute-step-btn:disabled { opacity: 0.55; cursor: wait; }
.execute-step.is-done .execute-step-btn { border-color: #2f5a45; }
.execute-step.is-running .execute-step-btn { border-color: var(--warn); }
.execute-step.is-error .execute-step-btn { border-color: var(--danger); }
.execute-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #24332c;
  color: #8fd4b0;
  font-weight: 700;
  font-size: 0.85rem;
}
.execute-copy { display: flex; flex-direction: column; gap: 0.15rem; }
.execute-copy strong { font-size: 0.95rem; }
.execute-status {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.execute-step.is-done .execute-status { color: #8fd4b0; }
.execute-step.is-running .execute-status { color: var(--warn); }
.execute-step.is-error .execute-status { color: var(--danger); }
.execute-next { color: var(--muted); margin: 0.85rem 0 0.5rem; font-size: 0.9rem; }
.execute-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.execute-links a.btn-link {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #8fd4b0;
  text-decoration: none;
  font-size: 0.85rem;
}
.execute-links a.btn-link:hover { border-color: #3d5a4a; }

@media (max-width: 900px) {
  .demo-trail { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .demo-trail { grid-template-columns: 1fr; }
  .guided-header { flex-direction: column; }
  .execute-step-btn { grid-template-columns: auto 1fr; }
  .execute-status { grid-column: 2; }
}
