/* ───────────────────────────────────────────────────────────────────
   evaluate.css — PolicyArc evaluator harness (light mode).

   Brand: Primary Blue #4095d1, Dark Navy #192d41, Gold #FFCB05
          (light-mode direction per brand book — white surfaces,
          navy hero band, blue primary, gold reserved for a single
          micro-accent).
   Fonts: Open Sans (300/400/600/700) + JetBrains Mono.
   Tone:  Clean, professional, dense. No editorial drama.
   ─────────────────────────────────────────────────────────────────── */

:root {
  /* Brand */
  --blue:        #4095d1;
  --blue-dark:   #2b6ea0;
  --blue-soft:   #eaf3fb;
  --blue-mute:   rgba(64, 149, 209, 0.18);
  --navy:        #192d41;
  --navy-2:      #1f3a55;
  --gold:        #FFCB05;

  /* Surfaces (light) */
  --bg:          #ffffff;
  --surface:     #f7f9fc;
  --surface-2:   #eef2f7;
  --line:        #e3e8ee;
  --line-strong: #c9d2dd;

  /* Text */
  --ink:         #192d41;     /* primary text — uses navy */
  --ink-soft:    #4a5a6e;     /* secondary text */
  --ink-faint:   #7c8a9c;     /* meta */
  --ink-on-dark: #ffffff;
  --ink-on-dark-soft: rgba(255, 255, 255, 0.78);

  /* Semantic */
  --ok:          #1f883d;
  --ok-soft:     #dafbe1;
  --err:         #cf222e;
  --err-soft:    #ffebe9;
  --warn:        #bf8700;

  /* Type */
  --f-sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Motion */
  --ease: cubic-bezier(0.25, 1, 0.5, 1);

  /* Layout */
  --gutter:    clamp(20px, 4vw, 56px);
  --max:       1180px;
  --bar-h:     92px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--blue-soft); color: var(--ink); }
a { color: var(--blue-dark); }
a:hover { color: var(--navy); }

/* ── Top bar — white, logo on left, status on right ─────────────── */
.bar {
  position: sticky; top: 0; z-index: 50;
  height: var(--bar-h);
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-sans);
  font-size: 13px;
}
.bar-brand { display: flex; align-items: center; gap: 22px; }
/* Logo: the white-fill SVG is used as a CSS mask so we can tint the
   shape via background-color. Bigger + gold for the masthead. */
.bar-logo {
  display: inline-block;
  width: 240px; height: 60px;
  background-color: var(--navy);
  -webkit-mask: var(--bar-logo-src) center / contain no-repeat;
          mask: var(--bar-logo-src) center / contain no-repeat;
  transition: opacity 160ms var(--ease);
}
.bar-brand a:hover .bar-logo { opacity: 0.85; }
/* Footer logo uses the same masked-SVG approach as ``.bar-logo`` but
   smaller + slightly muted ink. The ``--bar-logo-src`` custom prop is
   set inline on the element so the same shared mask trick works. */
.foot-logo {
  display: inline-block;
  width: 140px; height: 36px;
  background-color: var(--ink-soft);
  -webkit-mask: var(--bar-logo-src) center / contain no-repeat;
          mask: var(--bar-logo-src) center / contain no-repeat;
  transition: opacity 160ms var(--ease);
}
.foot-block a:hover .foot-logo { opacity: 0.85; }
.bar-product {
  font-weight: 600; color: var(--ink); font-size: 24px;
  padding-left: 22px; border-left: 1px solid var(--line);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.bar-nav { display: flex; gap: 18px; justify-self: end; align-items: center; flex-wrap: wrap; }
.bar-nav a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: color 160ms var(--ease);
}
.bar-nav a:hover { color: var(--blue-dark); }
/* Two-line story link: small monospaced "Story N" eyebrow stacked on
   the bold kicker. The whole block is the clickable anchor. */
.bar-storylink {
  display: inline-flex; flex-direction: column;
  gap: 1px;
  padding: 4px 10px;
  line-height: 1.15;
  border-radius: 4px;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.bar-storylink:hover { background: var(--blue-soft); color: var(--navy); }
.bar-storylink .bar-chapter {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}
.bar-storylink:hover .bar-chapter { color: var(--blue-dark); }
.bar-storylink .bar-kicker {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.bar-storylink:hover .bar-kicker { color: var(--navy); }
.bar-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 160ms var(--ease), color 160ms var(--ease), background 160ms var(--ease);
}
.bar-toggle:hover { color: var(--blue-dark); border-color: var(--line-strong); }
.bar-toggle input { accent-color: var(--blue); margin: 0; cursor: pointer; }
.bar-toggle input:checked + span { color: var(--blue-dark); font-weight: 600; }
.bar-status {
  /* Stacked: row 1 is "● Connected"; row 2 is the clickable AS URL
     that doubles as the admin-portal launcher. */
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 2px;
  font-family: var(--f-mono); font-size: 11.5px;
  color: var(--ink-soft);
  padding-left: 18px; border-left: 1px solid var(--line);
  min-width: 0;
}
.bar-status .status-line {
  display: inline-flex; align-items: center; gap: 8px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--line-strong);
}
.status-dot.is-on { background: var(--ok); }
.status-as-url {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 600;
  max-width: 360px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: inline-flex; align-items: baseline; gap: 4px;
}
.status-as-url:hover { color: var(--navy); text-decoration: underline; }
.status-launch { color: var(--ink-faint); font-weight: 400; }
.status-as-url:hover .status-launch { color: var(--blue-dark); }

/* ── Hero band — flat navy, single-line headline ─────────────────── */
.hero {
  background: var(--navy);
  color: var(--ink-on-dark);
  padding: 56px var(--gutter) 48px;
  border-bottom: 1px solid var(--navy-2);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}
.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 14px;
}
.hero-eyebrow .pip {
  color: var(--gold);
  margin-right: 6px;
}
.hero h1 {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0 0 12px;
  color: #fff;
  max-width: 22ch;
}
.hero h1 strong { font-weight: 600; }
.hero-lede {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-on-dark-soft);
  max-width: 60ch;
  margin: 0;
}
.hero-aside {
  font-family: var(--f-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  text-align: right;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
}
.hero-aside span::before {
  content: "›  "; color: var(--blue); opacity: 0.7;
}

/* ── Section primitives ──────────────────────────────────────────── */
.section { padding: 56px var(--gutter); border-bottom: 1px solid var(--line); }
.section-inner { max-width: var(--max); margin: 0 auto; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  font-weight: 600;
  margin: 0 0 10px;
}
h2.section-title {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}
.section-lede {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 66ch;
}

/* ── Configure section ───────────────────────────────────────────── */
.configure { background: var(--surface); }
.configure-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 48px;
  align-items: start;
}
.warning {
  margin-top: 18px;
  padding: 14px 16px;
  background: #fff7d1;
  border: 1px solid #f0d77a;
  color: #6e4d00;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.55;
}
.warning strong { color: #5a3e00; }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px 28px;
}
.card h3 {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.configure-form { display: grid; gap: 18px; }
.configure-form.attention {
  animation: shake 0.5s var(--ease);
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(3px); }
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex; justify-content: space-between; align-items: baseline;
}
.field input {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 14px;
  padding: 10px 12px;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.field input::placeholder { color: var(--ink-faint); }
.reveal {
  background: transparent; color: var(--blue-dark); border: 0;
  font: inherit;
  cursor: pointer;
  padding: 0;
  font-weight: 600;
  font-size: 12px;
}
.reveal:hover { color: var(--navy); }
.reveal[aria-pressed="true"] { color: var(--navy); }

.form-actions { display: flex; gap: 14px; align-items: center; padding-top: 4px; }

.btn-primary, .btn-secondary {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 160ms var(--ease), color 160ms var(--ease),
              border-color 160ms var(--ease);
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-secondary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { color: var(--blue-dark); border-color: var(--blue); }
.btn-quiet {
  background: transparent; border: 0;
  color: var(--ink-soft);
  font-family: var(--f-sans); font-size: 13px;
  cursor: pointer;
  padding: 10px 4px;
}
.btn-quiet:hover { color: var(--err); }

.form-msg {
  min-height: 20px;
  font-size: 13px;
  color: var(--ink-soft);
}
.form-msg.is-ok { color: var(--ok); }
.form-msg.is-err { color: var(--err); }
.form-msg.is-busy { color: var(--blue-dark); }

/* ── Stories ─────────────────────────────────────────────────────── */
.stories { padding: 0; }
.story {
  padding: 56px var(--gutter);
  border-bottom: 1px solid var(--line);
  /* Anchor jumps from the top-bar story links land on the story's
     top edge. The bar is sticky at ``--bar-h`` so without
     scroll-margin the story header sits behind it; an extra 24px
     gives breathing room above the title so the Run button is in
     view. */
  scroll-margin-top: calc(var(--bar-h) + 24px);
}
.story:nth-of-type(even) { background: var(--surface); }
.story-inner { max-width: var(--max); margin: 0 auto; }
.story-head { margin-bottom: 28px; }
.story-head-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; margin-bottom: 12px;
}
.story-head-row > div:first-child { min-width: 0; }
.story-head-row .btn-primary { flex-shrink: 0; }
.story-head-row .story-actions { flex-shrink: 0; }
.story-tag {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.story-intro { max-width: 70ch; }

/* ── Op rows ─────────────────────────────────────────────────────── */
.ops {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.op {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.story:nth-of-type(even) .ops { border-top-color: var(--line-strong); }
.story:nth-of-type(even) .op { border-bottom-color: var(--line-strong); }

.op-glyph {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-faint);
  padding-top: 4px;
  position: relative;
  font-weight: 500;
}
.op-num { display: block; }
.op-state-icon {
  position: absolute;
  top: 4px; left: -2px;
  width: 20px; height: 20px;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  display: none;
}
.op[data-state="running"] .op-state-icon {
  display: block;
  border-color: transparent;
  border-top-color: var(--blue);
  animation: spin 0.7s linear infinite;
}
.op[data-state="running"] .op-num { opacity: 0; }
.op[data-state="ok"] .op-num { color: var(--ok); }
.op[data-state="fail"] .op-num { color: var(--err); }
@keyframes spin { to { transform: rotate(360deg); } }

.op-body { min-width: 0; }
.op-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.op-label {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}
.op-elapsed {
  font-size: 12px;
  color: var(--ink-faint);
  font-family: var(--f-mono);
  flex-shrink: 0;
}
.op-hint {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.op-result {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  line-height: 1.55;
}
.story:nth-of-type(even) .op-result { background: var(--bg); }
.op[data-state="ok"]   .op-result { border-left-color: var(--ok); }
.op[data-state="fail"] .op-result { border-left-color: var(--err); }

.op-summary {
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0 0 10px;
  color: var(--ink);
}
.op[data-state="fail"] .op-summary { color: var(--err); }

.op-log {
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.op-log li { padding: 3px 0; }
.op-log li + li { border-top: 1px dashed var(--line); }
.op-log li.log-audit { padding: 5px 0; }
.op-log li.log-audit a {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 12px;
}
.op-log li.log-audit a:hover .lopen { color: var(--blue-dark); text-decoration: underline; }
.op-log li.log-audit .lid {
  color: var(--blue-dark);
  font-weight: 600;
  background: var(--blue-soft);
  padding: 1px 7px;
  border-radius: 3px;
}
.op-log li.log-audit .levt { color: var(--ink-soft); }
.op-log li.log-audit .ldec {
  padding: 1px 7px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.op-log li.log-audit .ldec-allow { color: var(--ok); background: var(--ok-soft); }
.op-log li.log-audit .ldec-deny  { color: var(--err); background: var(--err-soft); }
.op-log li.log-audit .ldec-error { color: var(--err); background: var(--err-soft); }
.op-log li.log-audit .lopen { color: var(--ink-faint); font-size: 11px; margin-left: auto; }

/* ── Flat log: narrative + audit rows interleaved ────────────────── */
.op-log li.log-narrative {
  padding: 6px 0 4px;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 13.5px;
  line-height: 1.5;
  display: flex; align-items: baseline; gap: 8px;
}
.op-log li.log-narrative .narrative-text { flex: 1; }
.op-log li.log-narrative.is-err { color: var(--err); }
.op-log li.log-narrative code {
  background: var(--blue-soft);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--blue-dark);
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
}

.op-log code {
  background: var(--blue-soft);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--blue-dark);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
}

.op-detail-wrap { margin-top: 10px; }
.op-detail summary {
  font-family: var(--f-sans);
  font-size: 12px;
  color: var(--blue-dark);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  padding: 4px 0;
}
.op-detail summary::-webkit-details-marker { display: none; }
.op-detail summary::before { content: "▸  "; transition: transform 160ms var(--ease); }
.op-detail[open] summary::before { content: "▾  "; }
.op-detail-json {
  margin: 8px 0 0;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}

.op-audit {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.op-audit-lbl { margin-right: 8px; color: var(--ink-faint); font-family: var(--f-mono); font-size: 11.5px; }
.op-audit-list a {
  color: var(--blue-dark);
  text-decoration: none;
  margin-right: 10px;
  font-family: var(--f-mono);
  font-weight: 500;
}
.op-audit-list a:hover { text-decoration: underline; color: var(--navy); }

.op-admin-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-dark);
  text-decoration: none;
}
.op-admin-link:hover { text-decoration: underline; color: var(--navy); }

.op-action {
  padding-top: 2px;
  display: flex; flex-direction: column;
  align-items: stretch; gap: 8px;
}

/* Discrete diagram pill. Lives in ``op-action`` under the Run button
   (per-step) or in ``story-actions`` next to "Run Story N". When the
   matching diagram slot is closed (default), this pill is the only
   handle to open it. Click toggles. */
.op-action-diagram {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--f-sans);
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 160ms var(--ease), background 160ms var(--ease),
              border-color 160ms var(--ease);
}
.op-action-diagram:hover {
  color: var(--blue-dark);
  border-color: var(--blue);
  background: var(--blue-soft);
}
.op-action-diagram.is-open {
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-color: var(--blue-mute);
}
.op-action-diagram-icon {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1;
}
.op-action-diagram-label { letter-spacing: 0.03em; }
body.no-diagrams .op-action-diagram { display: none; }

/* Story-actions: stack the diagram pill under "Run Story N" with a
   small gap so the visual rhythm matches the per-step column. */
.story-actions {
  display: flex; flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.btn-run {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 7px 16px;
  cursor: pointer;
  min-width: 78px;
  transition: all 160ms var(--ease);
}
.btn-run:hover { color: var(--blue-dark); border-color: var(--blue); }
.btn-run:disabled { opacity: 0.5; cursor: not-allowed; }
.op[data-state="ok"]   .btn-run::after { content: " · re-run"; opacity: 0.6; font-weight: 400; }
.op[data-state="fail"] .btn-run::after { content: " · retry";  opacity: 0.6; font-weight: 400; }
/* Guide ops don't run — they reveal a static walkthrough. Suppress the
   re-run / retry suffix so the button can sensibly toggle Show / Hide. */
.op[data-kind="guide"][data-state="ok"]   .btn-run::after,
.op[data-kind="guide"][data-state="fail"] .btn-run::after { content: none; }

/* ── Guide-kind op: walkthrough card ─────────────────────────────── */
.op[data-kind="guide"] .op-result { padding: 0; background: transparent; border: 0; }
.walkthrough {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 24px;
  display: grid;
  gap: 18px;
}
.walkthrough-row { display: grid; gap: 8px; }
.walkthrough-row .wlabel {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  font-weight: 600;
}
.walkthrough-code {
  display: flex; align-items: stretch; gap: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.walkthrough-code code {
  flex: 1;
  padding: 10px 14px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink);
  overflow-x: auto;
  white-space: nowrap;
  background: transparent;
}
.walkthrough-code.is-multiline {
  align-items: stretch;
}
.walkthrough-code.is-multiline code {
  white-space: pre;
  line-height: 1.55;
  padding: 12px 14px;
}

/* ── Per-client tab strip in the walkthrough ─────────────────────── */
.walkthrough-tabs {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg);
}
.walkthrough-tabs .tab-row {
  display: flex;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.walkthrough-tabs .tab {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 12px 18px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.walkthrough-tabs .tab:hover { color: var(--blue-dark); }
.walkthrough-tabs .tab.is-active {
  color: var(--blue-dark);
  border-bottom-color: var(--blue);
  background: var(--bg);
}
.walkthrough-tabs .tab-panel {
  display: none;
  padding: 18px;
  gap: 16px;
  flex-direction: column;
}
.walkthrough-tabs .tab-panel.is-active { display: flex; }
.walkthrough-tabs .walkthrough-row { display: grid; gap: 8px; }
.walkthrough-copy {
  border: 0; border-left: 1px solid var(--line);
  background: var(--bg);
  color: var(--blue-dark);
  font-family: var(--f-sans);
  font-size: 12px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 600;
}
.walkthrough-copy:hover { background: var(--blue-soft); }
.walkthrough-copy.is-copied { color: var(--ok); }

.walkthrough-prompt-wrap {
  display: flex; align-items: stretch; gap: 0;
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  border-radius: 0 4px 4px 0;
  overflow: hidden;
}
.walkthrough-prompt {
  flex: 1;
  padding: 12px 14px;
  font-style: italic;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.55;
}
.walkthrough-copy-prompt {
  border-left: 1px solid var(--blue-mute);
}
.walkthrough-steps {
  list-style: none;
  counter-reset: walkstep;
  padding: 0; margin: 0;
  display: grid;
  gap: 12px;
}
.walkthrough-steps li {
  counter-increment: walkstep;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  align-items: baseline;
}
.walkthrough-steps li::before {
  content: counter(walkstep, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--blue-dark);
  font-weight: 600;
  padding-top: 3px;
}
/* Inline `code` inside step descriptions — kept tight, wraps with the
   sentence rather than punching it onto separate lines. */
.walkthrough-steps code {
  font-family: var(--f-mono);
  font-size: 12px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 3px;
  white-space: normal;
  word-break: break-word;
}

/* ── Observe & Control panel ─────────────────────────────────────── */
.observe {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 0 4px 4px 0;
  display: grid;
  gap: 14px;
}
.observe-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
}
.observe-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.observe-head .eyebrow { margin: 0; color: var(--blue-dark); }
.observe p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.observe-actions {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 13px;
}
.observe-actions a {
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 600;
}
.observe-actions a:hover { text-decoration: underline; color: var(--navy); }
.observe-actions a::after { content: "  ↗"; font-weight: 400; color: var(--ink-faint); }

.story-foot {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 18px;
  padding-top: 22px;
}
.story-foot-hint {
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* Story locked when not configured — visibly inert with a banner that
   sticks at the top of the stories section. Clicking a Run button in
   this state scrolls back to the configure form (handled in JS). */
body.not-configured .story {
  position: relative;
  opacity: 0.55;
  filter: saturate(0.4);
  transition: opacity 220ms var(--ease), filter 220ms var(--ease);
}
body.not-configured .story::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(25, 45, 65, 0.015) 0 12px,
    rgba(25, 45, 65, 0.04) 12px 13px
  );
  pointer-events: none;
}
body.not-configured .op-action,
body.not-configured [data-run-story] { cursor: not-allowed; }
body.not-configured .op-action .btn-run,
body.not-configured [data-run-story] {
  border-color: var(--line);
  color: var(--ink-faint);
  background: var(--surface);
}
body.not-configured .stories::before {
  content: "🔒 Connect your AS above to unlock the evaluation stories.";
  display: block;
  padding: 16px var(--gutter);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  background: linear-gradient(0deg, var(--blue-soft), var(--blue-soft));
  border-bottom: 1px solid var(--blue-mute);
  text-align: center;
  position: sticky;
  top: var(--bar-h);
  z-index: 40;
}

/* ── Telemetry — moved to bottom, collapsible ─────────────────────── */
.telemetry {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 28px var(--gutter);
}
.telemetry-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
.telemetry-head {
  display: flex; flex-direction: column; gap: 8px;
}
.telemetry-head .lbl {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}
.telemetry-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.telemetry-head .dotline {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
}
.telemetry-head .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--line-strong);
}
.telemetry-head .dot.is-on { background: var(--ok); }
.telemetry-head .dot.is-busy { background: var(--blue); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.telemetry-feed {
  list-style: none;
  margin: 0; padding: 0;
  max-height: 260px;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.55;
}
.telemetry-feed li {
  padding: 8px 14px;
  color: var(--ink);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}
.telemetry-feed li:last-child { border-bottom: 0; }
.telemetry-feed li .t { color: var(--ink-faint); font-weight: 500; min-width: 70px; }
.telemetry-feed li.is-ok .t { color: var(--ok); }
.telemetry-feed li.is-fail .t { color: var(--err); }
.telemetry-feed li.is-info .t { color: var(--blue-dark); }
.telemetry-feed li.telem-empty {
  color: var(--ink-faint);
  font-style: italic;
  display: block;
  text-align: center;
  padding: 18px;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.foot {
  padding: 28px var(--gutter) 22px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-block { display: flex; align-items: center; gap: 16px; }
.foot-tagline {
  font-size: 13px;
  color: var(--ink-soft);
  font-family: var(--f-sans);
}
.foot-links {
  display: flex; flex-wrap: wrap; gap: 22px;
  align-items: center;
}
.foot-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 160ms var(--ease);
}
.foot-links a:hover { color: var(--blue-dark); }

/* Copyright row — sits beneath the main footer flex, with a thin
   divider above so it reads as a separate band. */
.foot-copy {
  max-width: var(--max);
  margin: 18px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-faint);
  font-family: var(--f-sans);
}
.foot-copy-meta { color: var(--ink-faint); }

/* ── Per-step diagram (inline mini schematic) ────────────────────── */
.op-diagram {
  margin-top: 12px;
  padding: 10px 12px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  gap: 6px;
}
.op-diagram[data-empty="true"] { display: none; }
body.no-diagrams .op-diagram { display: none; }
.op-diagram-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-faint);
}
.op-diagram-expand {
  background: transparent; border: 0;
  color: var(--blue-dark);
  font-family: var(--f-sans); font-size: 11.5px; font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
}
.op-diagram-expand:hover { background: var(--blue-soft); color: var(--navy); }
.op-diagram-actions { display: inline-flex; align-items: center; gap: 6px; }
.op-diagram-toggle {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  width: 22px; height: 22px;
  border-radius: 4px;
  padding: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.op-diagram-toggle:hover { color: var(--blue-dark); border-color: var(--blue); }
.op-diagram svg { display: block; width: 100%; height: auto; max-height: 320px; }
/* Collapsed = fully hidden in the page flow. The pill button in the
   ``op-action`` (or story-head) is now the sole open/close handle, so
   the in-body strip vanishes when closed — discrete by default. */
.op-diagram.is-collapsed,
.story-diagram.is-collapsed { display: none; }

/* Story-level diagram — sits inside .story-head, after the intro. */
.story-diagram {
  margin-top: 18px;
  padding: 10px 12px 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  display: grid;
  gap: 6px;
}
.story-diagram[data-empty="true"] { display: none; }
body.no-diagrams .story-diagram { display: none; }
.story-diagram svg { display: block; width: 100%; height: auto; max-height: 460px; }
.story-diagram-head .op-diagram-head { padding-bottom: 0; }

/* Shared node + edge styles (mini + modal) */
.dg-node rect {
  fill: var(--bg);
  stroke: var(--line-strong);
  stroke-width: 1.2;
}
.dg-node text {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
  text-anchor: middle;
  dominant-baseline: middle;
}
.dg-node.is-active rect {
  fill: var(--blue-soft);
  stroke: var(--blue);
}
.dg-node.is-active text { fill: var(--navy); }
.dg-node.is-dim rect {
  fill: var(--surface-2);
  stroke: var(--line);
}
.dg-node.is-dim text { fill: var(--ink-faint); }

/* PolicyArc-controlled components (AS, Gateway, OPA): keep the active
   blue fill, just swap the edge to gold so an evaluator can tell
   "platform" boxes from "your environment" boxes at a glance without
   the heavy navy treatment overpowering the diagram. */
.dg-node.is-pa rect { stroke: var(--gold); stroke-width: 2; }
.dg-node.is-pa.is-dim rect { stroke: var(--gold); stroke-width: 1.4; opacity: 0.55; }

/* Example chips — small "child" nodes hanging off a parent (MCP
   Client / IdP / Resource Server) on the story-level diagram. Used to
   ground abstract names ("MCP Client") in concrete vendors ("Claude /
   Cursor / …"). Hidden by default; the per-story "examples" toggle
   re-renders the SVG with these on. */
.dg-example-chip rect {
  fill: var(--bg);
  stroke: var(--line-strong);
  stroke-dasharray: 3 2;
  stroke-width: 1;
}
.dg-example-chip text {
  font-family: var(--f-sans);
  font-size: 10.5px;
  fill: var(--ink-soft);
  text-anchor: middle;
  dominant-baseline: middle;
  font-weight: 500;
}
.dg-example-line {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 2 3;
  fill: none;
}

/* "examples ▾" toggle in the story-diagram head. Quieter than expand. */
.op-diagram-examples {
  background: transparent;
  border: 0;
  color: var(--ink-soft);
  font-family: var(--f-sans); font-size: 11.5px; font-weight: 500;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
}
.op-diagram-examples:hover { color: var(--blue-dark); background: var(--blue-soft); }
.op-diagram-examples[data-on="1"] { color: var(--blue-dark); background: var(--blue-soft); font-weight: 600; }
.dg-edge {
  stroke: var(--line-strong);
  stroke-width: 1.4;
  fill: none;
  marker-end: url(#dg-arrow-mute);
}
.dg-edge.is-active {
  stroke: var(--blue);
  stroke-width: 1.6;
  marker-end: url(#dg-arrow-active);
}
.dg-edge.is-deny {
  stroke: var(--err);
  stroke-dasharray: 4 3;
  marker-end: url(#dg-arrow-deny);
}
.dg-edge.is-dashed {
  /* Used for indirect/discovery hops (e.g. SPIRE issues SVID, AS pulls
     JWKS) — same colour as the kind, but dashed so the eye reads it as
     trust plumbing rather than a per-call hot path. */
  stroke-dasharray: 5 4;
}
.dg-edge-label {
  font-family: var(--f-mono);
  font-size: 11px;
  fill: var(--ink-soft);
  text-anchor: middle;
  /* White halo behind labels so they stay legible when they pass close
     to (or briefly cross) a node rect. */
  paint-order: stroke fill;
  stroke: var(--bg);
  stroke-width: 3;
  stroke-linejoin: round;
}
.dg-edge.is-active + .dg-edge-label,
.dg-edge-label.is-active { fill: var(--blue-dark); font-weight: 600; }
.dg-edge-label.is-deny { fill: var(--err); font-weight: 600; }

/* ── Diagram expand modal ────────────────────────────────────────── */
.diagram-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.diagram-modal[hidden] { display: none; }
.diagram-modal-scrim {
  position: absolute; inset: 0;
  background: rgba(25, 45, 65, 0.55);
  backdrop-filter: blur(2px);
}
.diagram-modal-card {
  position: relative;
  width: min(820px, 100%);
  max-height: 92vh;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(25, 45, 65, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.diagram-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.diagram-modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.diagram-modal-close {
  background: transparent; border: 0;
  font-size: 24px; line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0 6px;
}
.diagram-modal-close:hover { color: var(--err); }
.diagram-modal-body {
  padding: 20px 22px;
  overflow: auto;
  background: var(--surface);
}
.diagram-modal-body svg { display: block; width: 100%; height: auto; }
.diagram-modal-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.diagram-caption {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ── Pinned telemetry (fixed-bottom strip) ───────────────────────── */
.pinned-telemetry {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -6px 18px rgba(25, 45, 65, 0.08);
  font-family: var(--f-mono);
  font-size: 12px;
  max-height: 30vh;
  display: flex;
  flex-direction: column;
}
.pinned-telemetry[hidden] { display: none; }
.pinned-telemetry-head {
  display: flex; align-items: center; gap: 14px;
  padding: 6px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 11px;
}
.pinned-collapse {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  cursor: pointer;
  width: 22px; height: 22px;
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  font-family: var(--f-mono);
  line-height: 1;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.pinned-collapse:hover { color: var(--blue-dark); border-color: var(--blue); }
.pinned-collapse-icon { font-size: 11px; }
.pinned-telemetry-head .lbl {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.pinned-telemetry-head .pinned-status { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); }
.pinned-telemetry-head .dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--line-strong);
  display: inline-block;
}
.pinned-telemetry-head .dot.is-on { background: var(--ok); }
.pinned-telemetry-head .dot.is-busy { background: var(--blue); animation: pulse 1s ease-in-out infinite; }
.pinned-clear, .pinned-jump {
  margin-left: auto;
  background: transparent; border: 0;
  font-family: inherit; font-size: 11px;
  color: var(--ink-soft);
  text-decoration: none;
  cursor: pointer;
}
.pinned-diagrams {
  margin-left: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--f-mono);
  font-size: 10.5px;
  padding: 2px 10px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.pinned-diagrams:hover { color: var(--blue-dark); border-color: var(--blue); }
.pinned-diagrams[data-open="1"] {
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-color: var(--blue-mute);
}
.pinned-diagrams[data-open="1"] #pinned-diagrams-state { font-weight: 700; }
.pinned-clear { margin-left: 12px; }
.pinned-jump { margin-left: 14px; color: var(--blue-dark); font-weight: 600; }
.pinned-clear:hover { color: var(--err); }
.pinned-jump:hover { text-decoration: underline; }
/* "↓ latest" appears only when the user has scrolled up — i.e. paused
   follow-mode. Clicking returns the feed to following the newest line. */
.pinned-jump-latest {
  margin-left: 14px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-mute);
  color: var(--blue-dark);
  font-family: var(--f-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.pinned-jump-latest:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.pinned-feed {
  list-style: none;
  margin: 0; padding: 4px var(--gutter) 8px;
  overflow-y: auto;
  flex: 1;
  display: grid;
  gap: 2px;
  align-content: end; /* newest stays at bottom */
}
.pinned-feed li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  color: var(--ink);
  line-height: 1.45;
}
.pinned-feed li .t { color: var(--ink-faint); }
.pinned-feed li.is-ok .t { color: var(--ok); }
.pinned-feed li.is-fail .t { color: var(--err); }
.pinned-feed li.is-info .t { color: var(--blue-dark); }
.pinned-feed li.pinned-empty {
  display: block; text-align: center;
  color: var(--ink-faint); font-style: italic;
  padding: 8px;
}

/* Inline live preview — visible only in compact mode. The newest event
   slides into the header strip so the pinned bar stays a single row. */
.pinned-live {
  display: none; /* default; compact mode flips to inline-flex */
  min-width: 0;
  flex: 1;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink);
  align-items: baseline;
  gap: 10px;
}
.pinned-live .t { color: var(--ink-faint); flex-shrink: 0; }
.pinned-live.is-ok   .t { color: var(--ok); }
.pinned-live.is-fail .t { color: var(--err); }
.pinned-live.is-info .t { color: var(--blue-dark); }
.pinned-live .m {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* Compact mode: preview replaces the feed; the strip is a single row. */
.pinned-telemetry.is-compact { max-height: none; }
.pinned-telemetry.is-compact .pinned-live { display: inline-flex; }
.pinned-telemetry.is-compact .pinned-feed { display: none; }
.pinned-telemetry.is-compact .pinned-jump-latest { display: none; }
.pinned-telemetry.is-compact .pinned-jump { display: none; }
.pinned-telemetry.is-compact .pinned-clear { display: none; }

/* Lift surrounding chrome only when the strip is expanded — compact
   mode is thin enough that the existing footer padding is fine. */
body.has-pinned-telemetry.pinned-expanded .foot      { padding-bottom: calc(32px + 30vh); }
body.has-pinned-telemetry.pinned-expanded .telemetry { padding-bottom: calc(28px + 30vh); }
body.has-pinned-telemetry:not(.pinned-expanded) .foot      { padding-bottom: 44px; }
body.has-pinned-telemetry:not(.pinned-expanded) .telemetry { padding-bottom: 40px; }

/* ── Focus rings ─────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-aside { text-align: left; }
  .configure-inner { grid-template-columns: 1fr; gap: 28px; }
  .telemetry-inner { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .bar { grid-template-columns: auto 1fr; }
  .bar-nav { display: none; }
  .op { grid-template-columns: 32px 1fr; }
  .op-action { grid-column: 1 / -1; padding-top: 12px; }
  .btn-run { width: 100%; }
  .walkthrough-code code { white-space: pre-wrap; word-break: break-all; }
  .pinned-telemetry { max-height: 40vh; font-size: 11px; }
  .pinned-feed li { grid-template-columns: 60px 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
