/* Hero demo: a looping "screen recording" built from the product's own UI language.
   Self-contained component: markup = the <figure class="demo" data-demo> block in index.html,
   behaviour = demo.js. It reads the page's colour tokens (--fg, --raised, --st-*, --term-*)
   and falls back to Monochrome Ink light values if they are missing.
   Timeline attributes (read by demo.js):
     data-t="a-b[,c-d]"  visible from a ms to b ms (b empty = to the end of the loop)
     data-act="a-b"      "active" state (rail item)
     data-cur="ms"       the pointer travels to this element at ms
     data-press="ms"     pressed state for 260 ms
   Elements with .fx fade/slide; other timed elements simply appear (terminal lines). */

.demo {
  container-type: inline-size;
  container-name: demo;
  min-width: 0;
  --d-ease: cubic-bezier(.2, 0, 0, 1);
}

/* ---------- Stage ---------- */
.demo-stage {
  position: relative;
  aspect-ratio: 16 / 11;
  font-size: clamp(9.5px, 1.4cqi, 14px);
  line-height: 1.4;
  color: var(--fg, #171717);
  user-select: none;
}
.demo-stage .ic { width: 1.25em; height: 1.25em; fill: currentColor; vertical-align: -.25em; }
.demo-stage .sic { width: 1em; height: 1em; }
.demo-stage .chip { height: auto; padding: .25em .5em; font-size: .9em; gap: .3em; border-radius: .4em; }
.d-mono { font-family: var(--font-mono); }

/* Timed elements. No JS: index.html already carries the still frame's .is-on classes. */
.demo-stage [data-t]:not(.is-on):not(.fx) { display: none !important; }
.demo-stage .fx {
  transition: opacity .35s var(--d-ease), transform .5s var(--d-ease), visibility 0s linear 0s;
}
.demo-stage .fx:not(.is-on) {
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--d-ease), transform .45s var(--d-ease), visibility 0s linear .45s;
}

/* ---------- App window ---------- */
.d-app {
  position: absolute; inset: 0 0 4% 0;
  display: flex; flex-direction: column;
  background: var(--surface, #fafafa);
  border-radius: 1em;
  box-shadow: var(--shadow-overlay, none);
  overflow: hidden;
}
.d-app { isolation: isolate; } /* view z-order stays inside the window; the phone stays above it */
.d-app::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: var(--bg, #f4f4f4); opacity: 0; transition: opacity .4s var(--d-ease);
}
.demo-stage:has(.d-phone.is-on) .d-app::after { opacity: .4; }

.d-top {
  display: flex; align-items: center; gap: .7em;
  height: 3.3em; padding: 0 1em; flex: none;
  border-bottom: 1px solid var(--border, #e0e0e0);
}
.d-mark { width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.d-mark circle { fill: currentColor; stroke: none; }
.d-word { font-weight: 800; letter-spacing: -.02em; }
.d-org { padding: .2em .6em; border-radius: .5em; background: var(--selected, #ececec); font-weight: 600; font-size: .92em; }
.d-search {
  margin-left: auto; display: inline-flex; align-items: center; gap: .6em;
  padding: .35em .7em; min-width: 14em; border-radius: .55em;
  border: 1px solid var(--border, #e0e0e0); background: var(--raised, #fff); color: var(--fg-muted, #575757);
}
.d-search kbd { margin-left: auto; font-size: .85em; padding: .05em .35em; border-radius: .3em; border: 1px solid var(--border, #e0e0e0); }
.d-avatar {
  display: inline-grid; place-items: center; width: 2em; height: 2em; border-radius: 50%;
  background: var(--accent, #171717); color: var(--on-accent, #fafafa); font-weight: 700; font-size: .85em;
}

.d-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 9.2em minmax(0, 1fr); }
.d-rail { display: flex; flex-direction: column; gap: .2em; padding: .8em .5em; border-right: 1px solid var(--border, #e0e0e0); }
.d-nav {
  display: flex; align-items: center; gap: .6em; padding: .5em .6em; border-radius: .55em;
  color: var(--fg-muted, #575757);
  transition: background-color .2s linear, color .2s linear, box-shadow .2s linear;
}
.d-nav b { font-weight: 500; }
.d-nav.is-act { background: var(--selected, #ececec); color: var(--fg, #171717); }
.d-nav.is-act b { font-weight: 700; }
.d-nav.is-pressed { background: var(--hover, #f0f0f0); }

.d-main { position: relative; min-width: 0; overflow: hidden; }
.d-view { position: absolute; inset: 0; padding: 1.1em 1.3em; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.d-view:not(.is-on) { transform: translateY(.8em); }
/* Views hand over by covering: the incoming view (opaque) fades in on top while the
   outgoing one stays put underneath, so no frame is blank and two screens never mix. */
.d-view { background: var(--surface, #fafafa); }
.demo-stage .d-view.is-on { z-index: 1; transition: opacity .14s linear, transform .3s var(--d-ease), visibility 0s; }
.demo-stage .d-view:not(.is-on) { z-index: 0; transform: none; transition: opacity 0s linear .3s, visibility 0s linear .3s; }

.d-head { display: flex; align-items: center; flex-wrap: wrap; gap: .6em; margin-bottom: .8em; }
.d-title { font-weight: 700; font-size: 1.18em; letter-spacing: -.01em; margin-right: .2em; }
.d-seg { margin-left: auto; display: inline-flex; padding: .15em; border-radius: .55em; background: var(--selected, #ececec); }
.d-seg > * { padding: .25em .7em; border-radius: .45em; }
.d-seg b { background: var(--raised, #fff); font-weight: 600; box-shadow: var(--shadow-raised, none); }
.d-seg span { color: var(--fg-muted, #575757); }
.d-pill {
  display: inline-flex; align-items: center; gap: .4em; padding: .25em .6em; border-radius: 999px;
  border: 1px solid var(--border, #e0e0e0); background: var(--raised, #fff);
  font-size: .88em; color: var(--fg-muted, #575757);
}
.d-hint { display: flex; justify-content: space-between; gap: 1em; color: var(--fg-muted, #575757); font-size: .92em; margin-bottom: .5em; }

/* Scene 1: issues */
.d-issue {
  display: grid; grid-template-columns: 5.6em minmax(0, 1fr) auto 5.6em; align-items: center; gap: .35em .8em;
  padding: .6em .8em; border-bottom: 1px solid var(--border, #e0e0e0);
}
.d-owner { grid-column: 4; grid-row: 1; justify-self: end; }
.d-issue--top { background: var(--raised, #fff); border-radius: .6em; border: 1px solid var(--border-control, #858585); }
.d-key { font-family: var(--font-mono); font-weight: 600; font-size: .95em; }
.d-ititle { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-prio { display: inline-flex; align-items: center; gap: .45em; color: var(--fg-muted, #575757); font-size: .92em; }
.d-reasons { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: .35em; }
.d-reasons span { padding: .15em .5em; border-radius: .4em; background: var(--selected, #ececec); font-size: .85em; }
.d-start, .d-started { grid-column: 4; grid-row: 1; justify-self: end; }
.d-start {
  display: inline-flex; align-items: center; gap: .35em; padding: .38em .75em; border-radius: .5em;
  background: var(--accent, #171717); color: var(--on-accent, #fafafa); font-weight: 600;
  border: 1px solid var(--accent, #171717);
  transition: transform .15s var(--d-ease), background-color .15s linear;
}
.d-start .ic { width: .9em; height: .9em; vertical-align: 0; }
.d-start--ghost { background: transparent; color: var(--fg, #171717); border-color: var(--border-control, #858585); }
.d-start.is-pressed { transform: scale(.94); background: var(--accent-hover, #333); }
.d-sync {
  margin-top: .9em; display: flex; flex-wrap: wrap; align-items: center; gap: .5em .9em;
  padding: .6em .8em; border-radius: .6em; border: 1px dashed var(--border-control, #858585); font-size: .92em;
}
.d-foot { order: 2; margin-top: auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3em 1em; padding-top: .7em; border-top: 1px solid var(--border, #e0e0e0); color: var(--fg-muted, #575757); font-size: .88em; }
.d-sync .d-mono { color: var(--fg-muted, #575757); }

/* Scenes 2–4: board */
.d-grid {
  flex: 1; min-height: 0; display: grid; gap: .6em;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  grid-template-rows: repeat(3, minmax(0, 1fr));
}
.d-lane {
  min-width: 0; min-height: 0; overflow: hidden;
  padding: .6em .7em; border-radius: .7em;
  background: var(--raised, #fff); border: 1px solid var(--border, #e0e0e0);
}
.d-lane { display: flex; flex-direction: column; }
.d-lane--main { grid-row: 1 / span 3; }
.d-steps { display: flex; flex-wrap: wrap; gap: .35em; margin: .6em 0 0; padding: 0; list-style: none; }
.d-steps li {
  display: inline-flex; align-items: center; gap: .35em; padding: .2em .6em; border-radius: 999px;
  border: 1px dashed var(--border-control, #858585); color: var(--fg-muted, #575757); font-size: .85em;
}
.d-steps li.is-done { border-style: solid; border-color: var(--border, #e0e0e0); color: var(--fg, #171717); }
.d-steps li.is-done::before {
  content: ""; width: .55em; height: .3em; margin-top: -.15em;
  border-left: 1.5px solid var(--st-done, #2f7a35); border-bottom: 1.5px solid var(--st-done, #2f7a35); transform: rotate(-45deg);
}
.d-steps li.is-act { border-style: solid; border-color: var(--fg, #171717); color: var(--fg, #171717); font-weight: 600; }
.d-tail {
  flex: 1; min-height: 0; margin-top: .45em; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  font: .86em/1.5 var(--font-mono); color: var(--term-fg, #1f1f1f);
}
.d-tail p { margin: 0; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.d-lane-head { display: flex; align-items: center; flex-wrap: wrap; gap: .5em; }
.d-lane-name { font-weight: 600; }
.d-lane-model { margin-left: auto; font-family: var(--font-mono); font-size: .88em; color: var(--fg-muted, #575757); }
.d-term {
  flex: 1; min-height: 0; margin-top: .6em; padding: .6em .75em;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  background: var(--term-bg, #fcfcfc); color: var(--term-fg, #1f1f1f);
  border: 1px solid var(--border, #e0e0e0); border-radius: .55em;
  font: .93em/1.55 var(--font-mono);
}
.t-line { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.t-old { opacity: .62; }
.t-line.is-on { animation: d-line-in .28s var(--d-ease) both; }
.t-caret { display: inline-block; width: .55em; height: 1.05em; vertical-align: -.2em; background: var(--term-fg, #1f1f1f); animation: d-blink 1.1s steps(2, start) infinite; }
@keyframes d-line-in { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
@keyframes d-blink { to { visibility: hidden; } }
.demo[data-playing="false"] .t-caret { animation: none; }

/* Scene 4: preview + PR panel */
.d-ship {
  position: absolute; top: 0; right: 0; bottom: 0; width: 38%;
  padding: 1em; display: flex; flex-direction: column; gap: .6em;
  background: var(--surface, #fafafa);
  box-shadow: var(--shadow-overlay, none);
}
.d-ship:not(.is-on) { transform: translateX(104%); }
.d-tabs { display: flex; gap: 1.1em; border-bottom: 1px solid var(--border, #e0e0e0); }
.d-tabs > * { padding: .2em 0 .55em; color: var(--fg-muted, #575757); }
.d-tabs b { color: var(--fg, #171717); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent, #171717); }
.d-url {
  display: flex; align-items: center; gap: .45em; padding: .4em .6em; border-radius: .5em;
  background: var(--raised, #fff); border: 1px solid var(--border, #e0e0e0);
  font-family: var(--font-mono); font-size: .88em; overflow-wrap: anywhere;
}
.d-preview { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: .6em; padding: .7em .9em; border-radius: .7em; background: var(--raised, #fff); border: 1px solid var(--border, #e0e0e0); }
.d-pv-title { font-weight: 700; font-size: 1.1em; }
.d-pv-row { display: flex; align-items: center; justify-content: space-between; gap: .5em; }
.d-switch { position: relative; width: 2.3em; height: 1.3em; border-radius: 999px; background: var(--accent, #171717); flex: none; }
.d-switch--off { background: var(--border-control, #858585); }
.d-switch--off::after { right: auto; left: .18em; }
.d-pv-bar { display: flex; justify-content: space-between; align-items: center; font-size: .78em; font-weight: 600; color: var(--fg-muted, #575757); }
.d-pv-bar i { width: 1.4em; height: .5em; border-radius: .2em; background: var(--border-control, #858585); }
.d-switch::after { content: ""; position: absolute; right: .18em; top: .18em; width: .94em; height: .94em; border-radius: 50%; background: var(--on-accent, #fafafa); }
.d-pv-note { color: var(--fg-muted, #575757); font-size: .86em; }
.d-pv-banner { padding: .5em .6em; border-radius: .45em; background: var(--selected, #ececec); font-size: .92em; }
.d-pv-banner.is-on { animation: d-line-in .3s var(--d-ease) both; }
.d-share { display: flex; align-items: center; gap: .45em; font-weight: 600; font-size: .95em; }
.d-share .d-mono { margin-left: auto; font-weight: 500; color: var(--fg-muted, #575757); }
.d-share.is-on { animation: d-line-in .3s var(--d-ease) both; }
.d-pr {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .15em .55em; align-items: center;
  padding: .65em .75em; border-radius: .7em;
  background: var(--raised, #fff); border: 1px solid var(--border-control, #858585);
}
.d-pr:not(.is-on) { transform: translateY(.8em); }
.d-pr .ic { grid-row: span 3; color: var(--st-done, #2f7a35); width: 1.4em; height: 1.4em; }
.d-pr-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-pr-meta { color: var(--fg-muted, #575757); font-size: .88em; }

/* Scene 5: insights */
.d-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--border, #e0e0e0); }
.d-kpi { display: grid; gap: .15em; padding: .8em .8em .8em 0; min-width: 0; }
.d-kpi + .d-kpi { padding-left: .8em; border-left: 1px solid var(--border, #e0e0e0); }
.d-kpi span { color: var(--fg-muted, #575757); font-size: .88em; }
.d-kpi b { font-size: 1.75em; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.d-kpi em { font-style: normal; color: var(--fg-muted, #575757); font-size: .85em; }
.d-ins-grid { flex: 1; min-height: 0; margin-top: 1em; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.6em; }
.d-chart { min-height: 0; display: flex; flex-direction: column; gap: .5em; }
.d-proj { display: flex; flex-direction: column; gap: .55em; min-width: 0; }
.d-proj p { margin: 0; display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 1.6em; gap: .6em; align-items: center; font-size: .9em; }
.d-proj i { height: .55em; border-radius: .15em; background: var(--hover, #f0f0f0); position: relative; overflow: hidden; }
.d-proj i::after { content: ""; position: absolute; inset: 0; width: calc(var(--w) * 100%); background: var(--chart, #525252); }
.d-proj b { text-align: right; font-variant-numeric: tabular-nums; }
.d-chart-label { color: var(--fg-muted, #575757); font-size: .9em; }
.d-bars { flex: 1; min-height: 4em; max-height: 9em; display: flex; align-items: flex-end; gap: .35em; border-bottom: 1px solid var(--border-control, #858585); }
.d-bars i { flex: 1; height: calc(var(--h) * 100%); background: var(--chart, #525252); border-radius: .2em .2em 0 0; transform-origin: bottom; }
.d-bars .d-bar-today { background: var(--accent, #171717); }
.d-bars .d-bar-today:not(.is-on) { transform: scaleY(0); }
.d-feed { margin-top: .8em; display: grid; }
.d-feed p { display: flex; align-items: center; gap: .55em; padding: .55em 0; border-top: 1px solid var(--border, #e0e0e0); }
.d-feed p.is-on { animation: d-line-in .3s var(--d-ease) both; }

/* Scene 3: phone */
.d-phone {
  position: absolute; z-index: 2; right: 3%; top: 12%; height: 86%;
  font-size: 1em;
}
.d-phone:not(.is-on) { transform: translateY(105%); }
.d-notif {
  position: absolute; z-index: 1; top: 2.2em; left: .45em; right: .45em;
  display: grid; gap: .2em; padding: .6em .7em; border-radius: 1em;
  background: var(--raised, #fff); border: 1px solid var(--border-control, #858585);
  font-size: .88em;
}
.d-notif:not(.is-on) { transform: translateY(-160%); }
.d-notif-app { font-weight: 700; font-size: .9em; color: var(--fg-muted, #575757); }
.d-phone .phone-item.is-on { animation: d-line-in .3s var(--d-ease) both; }
/* While the phone is up, the lane cards it would cut and the view switch beside it step back. */
.d-grid > .d-lane:not(.d-lane--main), .d-board .d-head .d-seg { transition: opacity .25s linear; }
.demo-stage:has(.d-phone.is-on) .d-grid > .d-lane:not(.d-lane--main),
.demo-stage:has(.d-phone.is-on) .d-board .d-head .d-seg { opacity: 0; }

/* Pointer */
.d-cursor {
  position: absolute; left: 0; top: 0; z-index: 3; width: 1.7em; height: 1.7em;
  fill: var(--fg, #171717); stroke: var(--surface, #fafafa); stroke-width: 1.2; stroke-linejoin: round;
  transform: translate(var(--cx, 60cqi), var(--cy, 30cqi));
  transition: transform .75s var(--d-ease), opacity .3s linear, visibility 0s;
}
.d-cursor.is-pressed { transform: translate(var(--cx, 60cqi), var(--cy, 30cqi)) scale(.88); transition-duration: .12s; }

/* ---------- Controls ---------- */
.demo-bar { display: flex; gap: 8px; margin-top: 14px; }
.demo-play {
  flex: none; display: inline-grid; place-items: center; width: 44px; min-height: 44px; padding: 0;
  border-radius: var(--r-md, 7px); border: 1px solid var(--border-control, #858585);
  background: var(--raised, #fff); color: var(--fg, #171717); cursor: pointer;
}
.demo-play:hover, .demo-play:active { background: var(--hover, #f0f0f0); }
.demo-play .ic { width: 18px; height: 18px; }
.demo-play .ic-play { display: none; }
.demo[data-playing="false"] .demo-play .ic-play { display: inline; }
.demo[data-playing="false"] .demo-play .ic-pause { display: none; }
.demo-steps { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.demo-steps button {
  position: relative; width: 100%; height: 100%; min-height: 44px;
  display: flex; align-items: flex-start; gap: 6px; padding: 8px 10px 14px; text-align: left;
  border-radius: var(--r-md, 7px); border: 1px solid var(--border, #e0e0e0);
  background: var(--raised, #fff); color: var(--fg-muted, #575757);
  font: 500 .8125rem/1.25 var(--font-sans); cursor: pointer;
  transition: border-color .12s linear, color .12s linear, background-color .12s linear;
}
.demo-steps button:hover, .demo-steps button:active { background: var(--hover, #f0f0f0); color: var(--fg, #171717); }
.demo-steps button[aria-current="step"] { color: var(--fg, #171717); border-color: var(--border-control, #858585); font-weight: 600; }
.step-n { font-weight: 700; font-size: .8125rem; line-height: 1.55; font-variant-numeric: tabular-nums; }
.step-bar { position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--border, #e0e0e0); overflow: hidden; }
.step-bar::after { content: ""; position: absolute; inset: 0; background: var(--fg, #171717); transform-origin: left; transform: scaleX(var(--p, 0)); }
.demo-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 10px; font-size: .8125rem; color: var(--fg-muted, #575757); }
.demo-now { display: none; font-weight: 600; color: var(--fg, #171717); }

@container demo (min-width: 900px) {
  .demo-stage { aspect-ratio: auto; height: min(56.25cqi, 540px); font-size: clamp(11px, 1.15cqi, 13.5px); }
}
.demo:not(.is-live) .demo-bar { display: none; }

/* ---------- Narrow container: one window at a time ---------- */
@container demo (max-width: 600px) {
  .demo-stage { aspect-ratio: 4 / 5; font-size: clamp(10px, 3.05cqi, 12.5px); }
  .d-app { inset: 0; }
  .d-search, .d-org { display: none; }
  .d-avatar { margin-left: auto; }
  .d-body { grid-template-columns: minmax(0, 1fr); }
  .d-rail { display: none; }
  .d-view { padding: .9em; }
  .d-issue { grid-template-columns: minmax(0, 1fr) auto; }
  .d-issue .d-key { grid-column: 1; }
  .d-issue .d-ititle { grid-column: 1 / -1; grid-row: 2; white-space: normal; }
  .d-issue .d-prio { display: none; }
  .d-start, .d-started { grid-column: 2; grid-row: 1; }
  .d-reasons { grid-column: 1 / -1; grid-row: 3; }
  .d-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .d-grid > .d-lane:not(.d-lane--main) { display: none; }
  .d-lane--main { grid-row: 1; }
  .d-ship { width: 100%; top: 32%; }
  .d-ship:not(.is-on) { transform: translateY(104%); }
  .d-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-kpi:nth-child(3) { padding-left: 0; border-left: 0; }
  .d-kpi:nth-child(n+3) { border-top: 1px solid var(--border, #e0e0e0); }
  .d-bars { height: 5em; }
  .d-ins-grid { grid-template-columns: minmax(0, 1fr); gap: .8em; }
  .d-proj p:nth-child(n+4) { display: none; }
  .d-phone { right: auto; left: 50%; top: 4%; height: 92%; translate: -50% 0; }
  .demo-stage:has(.d-phone.is-on) .d-app::after { opacity: .85; }
  .d-phone:not(.is-on) { transform: translateY(105%); }
  .d-cursor { display: none; }
  .step-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .demo-steps button { justify-content: center; padding: 8px 4px 14px; }
  .step-bar { left: 8px; right: 8px; }
  .demo-now { display: inline; }
}

/* ---------- Reduced motion: no transitions, no loops ---------- */
.demo.is-reduced *, .demo.is-reduced *::before, .demo.is-reduced *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .demo *, .demo *::before, .demo *::after { transition: none !important; animation: none !important; }
}
/* Dark theme: overlay edges (DS §3.15); light relies on the shadow alone. */
:root[data-theme="dark"] .d-app { border: 1px solid var(--border); }
:root[data-theme="dark"] .d-ship { border-left: 1px solid var(--border); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .d-app { border: 1px solid var(--border); }
  :root:not([data-theme="light"]) .d-ship { border-left: 1px solid var(--border); }
}
@media (forced-colors: active) {
  .d-app, .d-lane, .demo-steps button { border: 1px solid CanvasText; box-shadow: none; }
  .step-bar::after { background: Highlight; }
}
