.reading section .depth-choice .depth-premise {
  max-width: 72ch;
  margin: .65rem 0 1.15rem;
  font-size: 1rem;
  line-height: 1.5;
}
.depth-scenarios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.depth-scenario { display: flex; flex-direction: column; min-width: 0; }
.depth-scenario + .depth-scenario { border-left: 1px solid var(--line); padding-left: 1.3rem; }
.depth-choice .depth-scenario h4 { margin: 0 0 .65rem; font: 640 1.04rem/1.3 var(--sans); letter-spacing: -.015em; }
.depth-scenario h4 span { display: block; margin-top: .15rem; font: 450 .9rem/1.35 var(--sans); color: var(--ink-2); }
.depth-plot {
  display: block;
  width: 100%;
  height: auto;
  background: var(--soft);
  border-radius: 4px;
  font: 13px var(--sans);
}
.depth-axis { fill: var(--ink-2); }
.depth-coverage { fill: var(--recovered); font-weight: 650; }
.depth-node { fill: var(--panel); stroke: var(--edge); }
.depth-wire, .depth-input-link, .depth-circuit { fill: none; stroke: var(--edge); stroke-width: 1.3; }
.depth-addition { color: var(--refuse); }
.depth-station.is-watched .depth-addition { color: var(--edge); }
.depth-write-link { fill: none; stroke: currentColor; stroke-width: 1.7; }
.depth-sum { fill: var(--soft); stroke: var(--edge); }
.depth-plus { fill: none; stroke: var(--ink-2); }
.depth-carried, .depth-output-tip { fill: none; stroke: var(--edge); stroke-width: 2; }
.depth-station.has-carry .depth-carried, .depth-output-tip { stroke: var(--refuse); }
.depth-monitor[data-watch="all"] .depth-output-tip { stroke: var(--edge); }
.depth-station.is-watched .depth-risk { opacity: 0; }
.depth-watch-ring { opacity: 0; pointer-events: none; fill: none; stroke: var(--recovered); stroke-width: 2.5; stroke-dasharray: 5 3; }
.depth-station.is-watched .depth-watch-ring { opacity: 1; }
.depth-station[role="button"] { cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.depth-station[role="button"]:hover .depth-axis { fill: var(--ink); }
.depth-station[role="button"]:focus { outline: none; }
.depth-station[role="button"]:focus-visible .depth-axis {
  fill: var(--focus);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.depth-warning-fill { fill: var(--refuse); stroke: var(--panel); stroke-width: 1.6; }
.depth-warning-mark { fill: none; stroke: var(--on-solid); stroke-width: 3; stroke-linecap: round; }
.depth-sequence-boundary { fill: none; stroke: var(--edge); stroke-dasharray: 3 3; }
.depth-sequence-head { font-weight: 620; fill: var(--ink-2); }
.depth-sequence-head text:first-child { fill: var(--recovered); }
.depth-arrow { fill: none; stroke: var(--recovered); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.depth-sequence-chip use { fill: var(--panel); stroke: var(--edge); }
.depth-sequence-chip text { fill: var(--ink); font-weight: 600; }
.depth-action-token .depth-sequence-chip use {
  fill: color-mix(in srgb, var(--refuse) 15%, var(--panel));
  stroke: var(--refuse);
  stroke-width: 2;
}
.depth-action-token .depth-sequence-chip text { fill: var(--refuse); font-weight: 700; }
.depth-token-column.is-future { visibility: hidden; }
.depth-allocation { fill: var(--neutral); }
.depth-additional {
  fill: color-mix(in srgb, var(--steer) 16%, var(--soft));
  stroke: var(--steer);
  stroke-width: 1.7;
}
.depth-outcome-rule { stroke: var(--line); }
.depth-result-safe, .depth-result-shift, .depth-result-plan { font-weight: 630; }
.depth-result-safe { fill: var(--recovered); display: none; }
.depth-result-shift { fill: var(--steer); display: none; }
.depth-result-plan { fill: var(--refuse); }
.depth-control:is([data-step="0"], [data-step="1"], [data-step="2"]) .depth-result-safe,
.depth-control[data-step="3"] .depth-result-shift { display: inline; }
.depth-control:is([data-step="0"], [data-step="1"], [data-step="2"], [data-step="3"]) .depth-result-plan { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .depth-token-column.is-current .depth-allocation {
    transform-box: fill-box;
    transform-origin: top;
    animation: depth-build-stack .34s ease-out both;
  }
  @keyframes depth-build-stack {
    from { opacity: 0; transform: scaleY(.3); }
    to { opacity: 1; transform: scaleY(1); }
  }
}
.depth-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .85rem;
  margin: .5rem 0 .6rem;
  color: var(--ink-2);
  font: 500 .8rem/1.4 var(--sans);
}
.depth-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.depth-legend span::before { display: inline-block; content: ""; }
.depth-legend-watch::before { width: .7rem; height: .7rem; border: 2px dashed var(--recovered); border-radius: 50%; }
.depth-legend-usual::before, .depth-legend-extra::before { width: .9rem; height: .38rem; border-radius: 2px; background: var(--neutral); }
.depth-legend-extra::before { border: 1.5px solid var(--steer); background: color-mix(in srgb, var(--steer) 16%, var(--soft)); }
.depth-choice .depth-frames { margin: 0 0 .75rem; padding-left: 1.25rem; font: 400 .95rem/1.5 var(--sans); }
.depth-scenario:is(.has-selection, .has-playback) .depth-frames { display: grid; padding: 0; list-style: none; }
.depth-scenario:is(.has-selection, .has-playback) .depth-frames li { margin: 0; grid-area: 1/1; visibility: hidden; }
.depth-scenario:is(.has-selection, .has-playback) .depth-frames .is-current { visibility: visible; }
.depth-playback, .depth-monitor-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: auto; }
.depth-monitor-controls { justify-content: space-between; color: var(--ink-2); font: 500 .85rem/1.4 var(--sans); }
.depth-playback[hidden], .depth-monitor-controls[hidden] { display: none; }
.depth-playback button, .depth-monitor-controls button {
  min-height: 40px;
  padding: .32rem .7rem;
  font: 550 .85rem/1.25 var(--sans);
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 5px;
  cursor: pointer;
}
.depth-playback [data-play] { color: var(--on-solid); background: var(--brand); border-color: var(--brand); min-width: 4.6rem; }
.depth-monitor-controls [aria-pressed="true"] { border-color: var(--recovered); color: var(--recovered); }
.depth-playback button:focus-visible, .depth-monitor-controls button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.depth-playback button:disabled { opacity: .5; cursor: default; }
.depth-playback [data-progress] { margin-left: auto; color: var(--ink-3); font: 500 .8rem var(--sans); font-variant-numeric: tabular-nums; }
.depth-choice figcaption { margin-top: 1rem; }
@media (max-width: 730px) {
  .depth-scenarios { grid-template-columns: 1fr; gap: 1.1rem; }
  .depth-scenario + .depth-scenario { border-left: 0; border-top: 1px solid var(--line); padding: 1rem 0 0; }
  .depth-plot { max-height: 220px; }
}
@media (max-width: 420px) {
  .depth-plot { font-size: 16px; }
  .depth-playback { gap: .3rem; }
  .depth-playback [data-play] { min-width: 4rem; }
}
