.walkthrough {
  padding-block: clamp(43px, 4.5vw, 72px) clamp(55px, 6vw, 92px);
  border-top: 1px solid var(--rule);
}
.walkHeading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.walkHeading p { max-width: 50ch; color: var(--muted); }
.walkPlayer {
  --walk-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --walk-rule: #c6d4e1;
  overflow: clip;
  border: 1px solid var(--walk-rule);
  border-radius: 8px;
  background: #fff;
}
.walkPlayer [hidden] { display: none !important; }
.walkScreen { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(245px, 1fr); }
.walkDiagram {
  position: relative;
  container-type: inline-size;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  min-width: 0;
  padding: 7%;
  background-color: #edf3f9;
  background-image: radial-gradient(circle, #bccfe0 .8px, transparent .9px);
  background-size: 14px 14px;
}
.walkDrawing { display: none; }
.is-ready .walkDiagram { padding: 0; display: block; }
.is-ready .walkDrawing { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.is-ready .walkTerminal, .is-ready .walkAllowlist { position: absolute; }
.walkTerminal {
  width: min(100%, 370px);
  overflow: hidden;
  border-radius: 6px;
  color: #e3ecf8;
  background: #172331;
  box-shadow: 0 8px 16px -8px #243f60a8;
  font: 500 clamp(12px, 1.9cqw, 15px)/1.55 var(--walk-mono);
}
.walkTerminalBar {
  display: flex;
  align-items: center;
  gap: .65em;
  padding: .55em .95em;
  color: #deebf7;
  background: #293c50;
  font-size: .91em;
}
.walkTerminalBar .icon { width: 1.25em; height: 1.25em; }
.walkPower { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: #80dcb8; }
.walkLines { height: 9.45em; padding: .8em .95em; }
.walkLines > div { white-space: pre; }
.walkLines [data-kind="brand"] { color: #fff; font-weight: 700; }
.walkLines [data-kind="brand"]::before {
  content: "";
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-right: .5em;
  vertical-align: -.12em;
  background: #c3deff;
  mask: url("assets/codex.svg") center / contain no-repeat;
}
.walkLines [data-kind="prompt"] { color: #b9d9ff; }
.walkLines [data-kind="deny"] { color: #ffada8; }
.walkLines :is([data-kind="allow"], [data-kind="deny"]):last-child span {
  padding: 1px 3px;
  border-radius: 3px;
  background: #862634;
  color: #fff;
}
.walkLines [data-kind="allow"]:last-child span { background: #08603c; }
.walkLines [data-kind="ok"], .walkLines [data-kind="allow"] { color: #98e5ba; }
.walkLines [data-kind="muted"] { color: #afc3d5; }
.walkLines .is-typing::after {
  content: "";
  display: inline-block;
  width: .5em;
  height: 1em;
  margin-left: 2px;
  vertical-align: -.12em;
  background: currentColor;
}
.walkDiagram[data-power="off"] .walkPower { background: #9aa8b6; }
.walkDiagram[data-power="off"] .walkTerminalBar { background: #37424d; }
.walkAllowlist {
  max-width: 100%;
  padding: 5px 10px 7px;
  border: 1px solid #adc3d5;
  border-radius: 4px;
  background: #f4f9fd;
  color: #334e64;
  line-height: 1.35;
}
.walkAllowlist strong { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 650; }
.is-ready .walkAllowlist { padding: 0; border: 0; background: transparent; }
.walkBrokerRoute { margin-top: 6px; padding-top: 5px; border-top: 1px solid #adc3d5; }
.walkBrokerRoute > span { font-size: 12px; color: var(--muted); }
.walkAllowlist ul { display: flex; flex-wrap: wrap; gap: 1px 7px; margin: 0; padding: 0; list-style: none; }
.walkAllowlist li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 4px;
  border-radius: 3px;
  font: 500 clamp(11px, 1.54cqw, 12px)/1.35 var(--walk-mono);
  white-space: nowrap;
}
.walkAllowlist li::before { content: ""; width: 6px; height: 6px; border: 1px solid #728da3; border-radius: 50%; }
.walkAllowlist li.is-match { background: #bceccb; color: #105736; }
.walkAllowlist li.is-match::before {
  width: 7px; height: 4px; margin-top: -2px; border: solid currentColor;
  border-width: 0 0 2px 2px; border-radius: 0; transform: rotate(-45deg);
}
.walkDrawing {
  --gate-stroke: #5688ad;
  --gate-fill: #accfe8;
  --walk-signal: #1668a4;
  color: #355871;
}
.walkDiagram[data-tone="check"] .walkDrawing { --gate-stroke: #3376ac; --gate-fill: #92c8f0; }
.walkDiagram[data-tone="deny"] .walkDrawing { --gate-stroke: #aa3b44; --gate-fill: #f5b5b6; --walk-signal: #b63743; }
.walkDiagram[data-tone="pass"] .walkDrawing { --gate-stroke: #267756; --gate-fill: #a4dcc2; --walk-signal: #087143; }
.walkDiagram[data-tone="off"] .walkDrawing { --gate-stroke: #677d8f; --gate-fill: #c5d0da; }
.walkNotes { align-self: center; min-width: 0; padding: clamp(21px, 2.7vw, 42px); }
.walkChapters { margin: 0; padding: 0; list-style: none; }
.walkChapters li + li { margin-top: 1.4em; }
.is-ready .walkChapters { display: grid; }
.is-ready .walkChapters li { grid-area: 1 / 1; margin: 0; }
.is-ready .walkChapters [aria-hidden="true"] { visibility: hidden; }
.walkChapters h3 { font-size: clamp(23px, 2vw, 30px); line-height: 1.12; font-weight: 630; letter-spacing: -.03em; }
.walkChapters p { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.walkChapters code { font: .93em var(--walk-mono); color: var(--ink); }
.walkReadout { margin-top: 22px; border-top: 1px solid var(--walk-rule); }
.walkReadout > div { display: grid; grid-template-columns: 48px 1fr; align-items: baseline; gap: 8px; margin-top: 8px; }
.walkReadout dt { color: var(--muted); font-size: 12px; }
.walkReadout dd { font: 500 13px/1.5 var(--walk-mono); overflow-wrap: anywhere; }
.walkReadout [data-field="result"] { font-weight: 700; color: var(--blue); }
.walkReadout [data-tone="deny"] { color: #a52d38; }
.walkReadout [data-tone="pass"] { color: #08603c; }
.walkControls, .walkTransport, .walkPicker { display: flex; align-items: center; }
.walkControls { justify-content: space-between; gap: 16px 32px; padding: 9px clamp(14px, 2vw, 28px); border-top: 1px solid var(--walk-rule); }
.walkTransport { flex: 1; min-width: 0; gap: clamp(8px, 1.35vw, 18px); }
.walkPlay {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 82px; min-height: 42px; padding: 6px 10px;
  border: 0; border-radius: 4px; background: var(--blue); color: white; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1;
}
.walkPlay:hover { background: #064b7b; }
.walkPlay .icon { width: 16px; height: 16px; }
.walkSeek { flex: 1; min-width: 40px; height: 36px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.walkTime { white-space: nowrap; color: #425465; font: 12px var(--walk-mono); font-variant-numeric: tabular-nums; }
.walkPicker { gap: 8px; color: var(--muted); font-size: 13px; }
.walkPicker select {
  min-width: 0; max-width: 100%; min-height: 42px; padding: 6px;
  border: 1px solid #bac9d6; border-radius: 4px; background: white; color: var(--ink); font: inherit; cursor: pointer;
}
.walkPlayer {
  --shimmer-dur: 2000ms;
  --shimmer-base: #b9cddd;
  --shimmer-highlight: #fff;
  --shimmer-band: 400%;
  --shimmer-ease: linear;
}
.t-shimmer {
  position: relative;
  display: inline-block;
  color: var(--shimmer-base);
}
.t-shimmer::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    90deg,
    transparent          0%,
    transparent         40%,
    var(--shimmer-highlight) 50%,
    transparent         60%,
    transparent        100%
  );
  background-size: var(--shimmer-band) 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: t-shimmer var(--shimmer-dur) var(--shimmer-ease) infinite;
}
@keyframes t-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}
.walkPlayer:not(.is-playing) .t-shimmer::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .t-shimmer::before { animation: none !important; }
}
@media (max-width: 860px) {
  .walkHeading { display: grid; gap: 12px; }
  .walkScreen { grid-template-columns: 1fr; }
  .walkNotes { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
  .walkReadout { align-self: center; margin-top: 0; border-top: 0; }
  .walkReadout > div:first-child { margin-top: 0; }
}
@media (max-width: 600px) {
  .walkNotes { display: block; padding: 19px 16px; }
  .walkChapters p { margin-top: 8px; font-size: 14px; }
  .walkReadout { margin-top: 14px; padding-top: 5px; border-top: 1px solid var(--walk-rule); }
  .walkReadout > div, .walkReadout > div:first-child { margin-top: 4px; }
  .walkControls { flex-wrap: wrap; gap: 6px; }
  .walkTransport { flex-basis: 100%; }
  .walkPicker { width: 100%; justify-content: space-between; }
  .walkPicker select { flex: 1; }
}
@media (forced-colors: active) {
  .walkTerminal, .walkPlay, .walkAllowlist li.is-match { outline: 1px solid CanvasText; }
}
