/* Operating the engine: instruments for the four procedures and the schedule appendix.
   Ported from the approved Field Manual prototype. Loaded only on /work/engine/. */

.parts-strip { margin: var(--s7) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
@media (min-width: 720px) { .parts-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .parts-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.parts-strip li { padding: var(--s3) var(--s3) var(--s3) 0; border-bottom: 1px solid var(--hair); }
.parts-strip .nm { display: block; font-weight: 600; font-size: 16px; line-height: 1.2; margin-top: 2px; }
.parts-strip .fn { display: block; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); margin-top: 2px; }
.operator { margin: var(--s4) 0 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: baseline; font-size: 15px; }
.operator .lbl { color: var(--ink); }
.operator .lbl::before, .human-mark::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--red); margin-right: 6px; vertical-align: 0; }

.expect { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); max-width: 40rem; }
.expect li { display: grid; grid-template-columns: 2.25rem 1fr; gap: var(--s2); padding: var(--s2) 0; border-bottom: 1px solid var(--hair); font-size: 16px; }
.expect li .lbl { padding-top: 4px; color: var(--ink); }

/* Instruments */
.inst { border: 1.5px solid var(--ink); background: var(--sheet); }
.inst-head {
  display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap;
  padding: var(--s2) var(--s4); border-bottom: 1.5px solid var(--ink);
}
.inst-head .lbl:first-child { color: var(--ink); }
.tagline { border: 1px solid var(--ink); padding: 3px 6px 2px; color: var(--ink) !important; }
.inst-body { padding: var(--s4); }
@media (min-width: 720px) { .inst-body { padding: var(--s5); } }
.cap { margin: var(--s3) 0 0; font-size: 14px; color: var(--ink-2); max-width: 46em; }
.cap .lbl { margin-right: var(--s2); color: var(--ink); }

.btn {
  -webkit-appearance: none; appearance: none; position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 14px; margin: 0;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font: 600 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; border-radius: 0; -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--paper); }
.btn.pri { background: var(--ink); color: var(--bg); }
.btn.pri:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn svg { width: 12px; height: 12px; flex: none; }
.btn[disabled] { opacity: .45; cursor: default; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; }
.chip {
  -webkit-appearance: none; appearance: none; min-height: 32px; padding: 0 10px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: 0;
  font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.chip:hover { background: var(--paper); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ===== Procedure 1: the replay ===== */
.rp-top { display: grid; gap: var(--s4); align-items: end; }
@media (min-width: 720px) { .rp-top { grid-template-columns: 1fr auto; } }
.clock .lbl { display: block; }
.clock-time {
  display: block; font-family: var(--mono); font-weight: 300; font-size: clamp(64px, 17vw, 128px);
  line-height: .9; letter-spacing: -.06em; margin: var(--s2) 0 0 -.04em; font-variant-numeric: tabular-nums;
}
.clock-time .colon { opacity: .55; }
.clock-time .tz { font-size: 11px; letter-spacing: .09em; font-weight: 500; vertical-align: top; margin-left: 10px; display: inline-block; margin-top: .9em; color: var(--ink-2); }
.rp-ctrl { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; }
.rp-ctrl .btn { padding: 0 10px; }
.rp-ctrl .btn.play { min-width: 104px; }
@media (max-width: 480px) { .rp-ctrl .btx { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
@media (hover: none) { .rp-hint { display: none; } }
.rp-read { margin: var(--s4) 0 0; min-height: 3em; font-size: 16px; line-height: 1.45; max-width: 44em; }
.rp-read b { font-weight: 600; }
.rp-read .q { color: var(--ink-2); }

.track-wrap { position: relative; margin: var(--s5) 0 0; padding-bottom: 22px; touch-action: pan-y; }
.track {
  position: relative; height: 56px; border: 1px solid var(--ink); background: var(--paper);
  background-image: linear-gradient(to right, var(--hair-2) 1px, transparent 1px);
  background-size: calc(100% / 24) 100%; overflow: hidden;
}
.track .gap { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, transparent 0 5px, var(--hair-2) 5px 6px); }
.track .gap span { position: absolute; left: 8px; top: 6px; white-space: nowrap; background: var(--paper); padding: 1px 4px; }
.track .past { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--past); pointer-events: none; }
.track .mk { position: absolute; bottom: 0; width: 2px; margin-left: -1px; height: 16px; background: var(--hair); }
.track .mk.done { background: var(--ink); height: 22px; }
.track .mk.off { opacity: .2; }
.hours { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; }
.hours span { position: absolute; transform: translateX(-50%); top: 4px; }
.hours span:first-child { transform: none; }
.hours span:last-child { transform: translateX(-100%); }
@media (max-width: 600px) { .hours .odd { display: none; } }
.scrub {
  -webkit-appearance: none; appearance: none; position: absolute; left: 0; top: 0; width: 100%; height: 56px;
  margin: 0; background: transparent; cursor: ew-resize; touch-action: none;
}
.scrub:focus { outline: none; }
.scrub:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.scrub::-webkit-slider-runnable-track { height: 56px; background: transparent; border: 0; }
.scrub::-moz-range-track { height: 56px; background: transparent; border: 0; }
.scrub::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 15px; height: 56px; border: 0; border-radius: 0;
  background: linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat, linear-gradient(var(--ink), var(--ink)) center top / 15px 9px no-repeat;
}
.scrub::-moz-range-thumb {
  width: 15px; height: 56px; border: 0; border-radius: 0;
  background: linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat, linear-gradient(var(--ink), var(--ink)) center top / 15px 9px no-repeat;
}
.rp-hint { margin: var(--s2) 0 0; }
.rp-filter { margin: var(--s5) 0 0; display: grid; gap: var(--s2); }

.panes { display: grid; gap: var(--s5); margin: var(--s5) 0 0; }
@media (min-width: 900px) { .panes { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.pane-h { display: flex; justify-content: space-between; gap: var(--s3); padding-bottom: var(--s2); border-bottom: 1px solid var(--ink); margin-bottom: var(--s3); }
.pane-h .lbl:first-child { color: var(--ink); }
.bench, .log { list-style: none; margin: 0; padding: 0; }
.bench { display: grid; gap: var(--s2); }
@media (min-width: 1100px) { .bench { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.empty { margin: 0; padding: var(--s4) 0; color: var(--ink-2); font-size: 15px; border-bottom: 1px dotted var(--hair); }

.slip {
  position: relative; background: var(--paper); border: 1px solid var(--ink);
  padding: var(--s3) var(--s3) var(--s3) var(--s4);
}
.slip::before { content: ""; position: absolute; left: 6px; top: 14px; width: 5px; height: 5px; border-radius: 50%; border: 1px solid var(--ink); }
.slip-top { display: flex; justify-content: space-between; gap: var(--s2); }
.slip-title { margin: 4px 0 var(--s3); font-size: 15.5px; line-height: 1.3; font-weight: 500; }
.rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.rail::before { content: ""; position: absolute; left: 4px; right: 33%; top: 4px; height: 1px; background: var(--hair); }
.rail li { position: relative; padding-top: 14px; min-width: 0; }
.rail li::before { content: ""; position: absolute; left: 0; top: 0; width: 9px; height: 9px; border: 1px solid var(--ink); background: var(--paper); }
.rail li.on::before { background: var(--ink); }
.rail li.wait::before { border: 1.5px solid var(--red); background: var(--red-wash); }
.rail .k { display: block; font-size: 9.5px; }
.rail .v { display: block; font: 500 12px/1.3 var(--mono); letter-spacing: 0; color: var(--ink); }
.rail .v.no { color: var(--ink-2); }
.slip-state { margin: var(--s2) 0 0; padding-top: var(--s2); border-top: 1px dotted var(--hair); font-size: 13.5px; color: var(--ink-2); }
.slip[data-stage="passed"] .slip-state { color: var(--ink); }
.slip[data-stage="passed"] .slip-state::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--red); margin-right: 6px; }

.log li { display: grid; grid-template-columns: 3.4rem 12px minmax(0, 1fr); gap: var(--s2); align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--hair); }
.log .tm { font: 500 12px/1 var(--mono); }
.log .sq { width: 8px; height: 8px; background: var(--red); align-self: center; }
.log .tt { font-size: 14.5px; line-height: 1.3; }
.log .meta { display: block; margin-top: 2px; font-size: 9.5px; }
.log-more { margin-top: var(--s3); }

@keyframes slipIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes stamp { 0% { background: var(--red-wash); } 100% { background: transparent; } }
@keyframes sqIn { 0% { transform: scale(2.2); } 60% { transform: scale(.8); } 100% { transform: scale(1); } }
.slip.enter { animation: slipIn .36s var(--ease) both; }
.log li.enter { animation: stamp 1.4s ease-out both; }
.log li.enter .sq { animation: sqIn .4s var(--ease) both; }
.coming { margin: var(--s4) 0 0; display: inline-flex; gap: var(--s2); align-items: baseline; border-top: 1px solid var(--ink); padding-top: var(--s2); }
.coming .lbl { color: var(--ink); }

/* ===== Procedure 2: the merge gate ===== */
.gate { display: grid; gap: var(--s5); }
@media (min-width: 880px) { .gate { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.pr-card { background: var(--paper); border: 1px solid var(--ink); padding: var(--s4); }
.pr-card h4 { margin: 4px 0 2px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.pr-state { display: inline-block; border: 1px solid var(--ink); padding: 3px 6px 2px; }
.pr-state[data-state="merged"] { background: var(--red); border-color: var(--red); color: var(--on-red); }
.proc { list-style: none; margin: var(--s4) 0 0; padding: 0; counter-reset: step; }
.proc li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: var(--s3); padding: 0 0 var(--s4); }
.proc li::before {
  counter-increment: step; content: counter(step); width: 32px; height: 32px; display: grid; place-items: center;
  border: 1.5px solid var(--ink); background: var(--paper); font: 600 12px/1 var(--mono); position: relative; z-index: 1;
}
.proc li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 1.5px; background: var(--ink); }
.proc .t { padding-top: 5px; font-size: 15.5px; line-height: 1.35; }
.proc .res { display: inline-block; margin-left: var(--s2); font: 600 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 4px 6px 3px; border: 1px solid var(--ink); vertical-align: 1px; }
.proc .res:empty { display: none; }
.proc li[data-s="todo"] { color: var(--ink-2); }
.proc li[data-s="todo"]::before { border-style: dotted; }
.proc li[data-s="denied"] .res { background: var(--ink); color: var(--bg); }
.proc li.human[data-s="done"]::before { background: var(--red); border-color: var(--red); color: var(--on-red); }
.proc li.human .t { font-weight: 600; }
.proc .hm { display: block; margin-top: 2px; color: var(--ink); }
.proc .hm::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--red); margin-right: 6px; }
.gate-ctrl { display: grid; gap: var(--s3); }
.gate-ctrl .btn { width: 100%; min-height: 56px; font-size: 11.5px; }
.btn-agent.denied { border-style: dashed; color: var(--ink-2); }
.btn-agent.denied:hover { background: transparent; }
.btn-agent.shake { animation: shake 360ms cubic-bezier(.36, .07, .19, .97); }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
.btn-hold { --p: 0; border-color: var(--red); overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.btn-hold:hover { background: var(--red-wash); }
.btn-hold .fill {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--red); color: var(--on-red); clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); pointer-events: none;
}
.btn-hold[aria-disabled="true"] { cursor: default; }
.gauge { display: flex; justify-content: space-between; margin-top: -6px; }
.gauge span { width: 1px; height: 6px; background: var(--ink-2); }
.status { margin: var(--s2) 0 0; min-height: 3em; padding-left: var(--s3); border-left: 2px solid transparent; font-weight: 500; font-size: 16px; line-height: 1.4; }
.status[data-tone="deny"] { border-left-color: var(--ink); }
.status[data-tone="ok"] { border-left-color: var(--red); }
.status[data-tone="muted"] { color: var(--ink-2); font-weight: 400; }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font: 500 10.5px/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.linkbtn:hover { color: var(--ink); }

/* ===== Procedure 3: phish the reader ===== */
.phish { display: grid; gap: var(--s5); }
@media (min-width: 960px) { .phish { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.picks { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.picks legend { padding: 0; margin-bottom: var(--s2); }
.pick { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: var(--s2); padding: var(--s3); border: 1px solid var(--ink); background: var(--paper); cursor: pointer; font-size: 15px; line-height: 1.35; }
.pick input { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin: 3px 0 0; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); }
.pick input:checked { background: radial-gradient(var(--ink) 0 3px, var(--paper) 3.5px); }
.pick input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pick:has(input:checked) { outline: 1.5px solid var(--ink); outline-offset: -4px; }
.field-lbl { display: block; margin: var(--s4) 0 var(--s2); }
textarea {
  display: block; width: 100%; min-height: 104px; resize: vertical; padding: var(--s3);
  border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.45 var(--sans);
}
textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.phish-go { margin-top: var(--s3); display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }

.chain { list-style: none; margin: 0; padding: 0; }
.stn { position: relative; border: 1px solid var(--hair); background: var(--sheet); padding: var(--s3) var(--s4); transition: border-color .25s, background-color .25s, opacity .25s; }
.stn + .stn { margin-top: 22px; }
.stn + .stn::before { content: ""; position: absolute; left: 24px; top: -23px; width: 1.5px; height: 22px; background: var(--hair); }
.stn + .stn::after { content: ""; position: absolute; left: 20.5px; top: -7px; border: 4px solid transparent; border-top: 5px solid var(--hair); }
.stn.on { border-color: var(--ink); background: var(--paper); }
.stn.on + .stn::before, .stn.past + .stn::before { background: var(--ink); }
.stn.on + .stn::after, .stn.past + .stn::after { border-top-color: var(--ink); }
.stn.past { border-color: var(--ink); }
.stn-h { display: flex; justify-content: space-between; gap: var(--s3); align-items: baseline; }
.stn h4 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.slots { margin: var(--s2) 0 0; }
.slots div { display: flex; align-items: baseline; gap: var(--s2); padding: 3px 0; font-size: 14.5px; }
.slots dt { flex: 1 1 auto; display: flex; align-items: baseline; gap: var(--s2); min-width: 0; }
.slots dt::after { content: ""; flex: 1 1 auto; min-width: 12px; border-bottom: 1px dotted var(--ink-2); transform: translateY(-4px); }
.slots dd { margin: 0; flex: none; font: 500 11px/1.3 var(--mono); letter-spacing: .03em; }
.slots dd.none { color: var(--ink-2); }
.slots div.reach dd { color: var(--red-ink); }
.slots div.reach dd::before { content: "Reached for. "; }
.slots div.reach { background: var(--red-wash); margin: 0 -6px; padding: 3px 6px; }
.stn-out { margin: var(--s2) 0 0; font-size: 14.5px; line-height: 1.4; }
.stn-out:empty { display: none; }
.fields { margin: var(--s2) 0 0; padding: 0; list-style: none; font: 400 12px/1.5 var(--mono); }
.fields li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); padding: 5px 0; border-bottom: 1px dotted var(--hair); }
.fields .k { color: var(--ink-2); }
.fields .val { color: var(--ink); overflow-wrap: anywhere; }
.fields .verdict { font-weight: 600; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; align-self: start; padding-top: 2px; }
.fields li.drop .val, .fields li.drop .k { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; color: var(--ink-2); }
.fields li.drop .verdict { color: var(--red-ink); }
.item-card { margin-top: var(--s2); border: 1px solid var(--ink); background: var(--bg); padding: var(--s3); }
.item-card dl { margin: 0; }
.item-card div { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--s2); padding: 3px 0; font-size: 14.5px; }
.item-card dt { padding-top: 3px; }
.item-card dd { margin: 0; }
.verdict-line { margin: var(--s4) 0 0; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.2; letter-spacing: -.015em; font-weight: 600; min-height: 1.2em; }

/* ===== Procedure 4: route a question ===== */
.route-ctrl { display: grid; gap: var(--s4); }
@media (min-width: 880px) { .route-ctrl { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: end; } }
.seg { display: inline-flex; border: 1.5px solid var(--ink); margin: 0; padding: 0; }
.seg legend { position: absolute; }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; min-height: 40px; padding: 0 16px; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.seg label + label span { border-left: 1.5px solid var(--ink); }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.route-run { margin-top: var(--s4); display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }

.route { margin: var(--s5) 0 0; display: grid; gap: 0; }
.node { position: relative; border: 1px solid var(--hair); background: var(--sheet); padding: var(--s3) var(--s4); transition: border-color .25s, background-color .25s, opacity .3s; }
.node h4 { margin: 2px 0 2px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.node p { margin: 0; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.node.on { border-color: var(--ink); background: var(--paper); }
.node.on p { color: var(--ink); }
.node.past { border-color: var(--ink); }
.node.human.on { border-color: var(--red); box-shadow: inset 3px 0 0 var(--red); }
.wire { position: relative; height: 26px; }
.wire::before { content: ""; position: absolute; left: 24px; top: 0; bottom: 0; width: 1.5px; background: var(--hair); transition: background-color .25s; }
.wire.on::before { background: var(--ink); }
.wire .lbl { position: absolute; left: 36px; top: 6px; }
.agent-row { display: grid; gap: var(--s2); }
@media (min-width: 720px) { .agent-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.lane { border: 1px dashed var(--hair); padding: var(--s3) var(--s4); font-size: 14.5px; color: var(--ink-2); background: transparent; }
.lane .lbl { display: block; }
.lane .bar { margin-top: var(--s2); height: 6px; border: 1px solid var(--ink-2); position: relative; overflow: hidden; }
.lane .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink-2); }
.lane.on { border-color: var(--ink); color: var(--ink); }
.lane.on .bar i { animation: work 3.2s linear forwards; }
@keyframes work { to { width: 100%; } }
.branches { display: grid; gap: var(--s4); }
@media (min-width: 880px) { .branches { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.branch { transition: opacity .3s; }
.branch.off { opacity: .38; }
.branch .bh { display: flex; justify-content: space-between; gap: var(--s2); border-top: 1px solid var(--ink); padding-top: var(--s2); margin-bottom: var(--s3); }
.branch .bh .lbl:first-child { color: var(--ink); }
.brief { margin-top: var(--s2); border: 1px solid var(--ink); background: var(--bg); }
.brief-h { display: flex; justify-content: space-between; gap: var(--s2); padding: 6px var(--s3); border-bottom: 1px solid var(--ink); }
.brief ol { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.brief li { counter-increment: q; display: grid; grid-template-columns: 1.5rem 1fr; gap: var(--s2); padding: var(--s2) var(--s3); border-bottom: 1px dotted var(--hair); font-size: 14.5px; line-height: 1.4; }
.brief li:last-child { border-bottom: 0; }
.brief li::before { content: "Q" counter(q); font: 500 10.5px/1.9 var(--mono); color: var(--ink-2); }
.brief li.slot { color: var(--ink-2); }
.brief li .rec { display: block; margin-top: 4px; color: var(--ink); }
.brief li .rec .lbl { margin-right: 6px; color: var(--ink); }

/* ===== Appendix: schedule ===== */
.sched { margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.sched div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
@media (min-width: 720px) { .sched div { grid-template-columns: 14rem minmax(0, 1fr) auto; } }
.sched dt { font-weight: 600; }
.sched .ev { color: var(--ink-2); font-size: 15px; }
@media (max-width: 719px) { .sched .ev { grid-column: 1 / -1; order: 3; margin-top: -6px; } }
.sched .nx { font: 500 12px/1.3 var(--mono); text-align: right; }
.sched-now { margin: 0 0 var(--s3); display: flex; gap: var(--s3); align-items: baseline; flex-wrap: wrap; }
.sched-now .t { font: 400 22px/1 var(--mono); letter-spacing: -.03em; }


@media (prefers-reduced-motion: reduce) { .lane.on .bar i { width: 100%; } }

/* ===== Ledger: where the line sits =====
   A center line: kept by me on the left, handed to the machines on the right.
   The mark on the line says which way the entry moved. One column below 860px. */
.ledger { --mk: 24px; --lane: 56px; }
.ledger-key { list-style: none; margin: 0 0 var(--s5); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font: 500 10.5px/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink); }
.ledger-key li { display: inline-flex; align-items: center; gap: var(--s2); }
.ledger-key .le-mk { position: static; transform: none; }
.le-mk {
  display: inline-flex; align-items: center; justify-content: center; width: var(--mk); height: var(--mk); flex: none;
  border: 1.5px solid var(--ink); background: var(--bg); color: var(--ink);
}
.le-mk svg { width: 14px; height: 14px; display: block; }
.held .le-mk, .back .le-mk, .k-held .le-mk, .k-back .le-mk { border-color: var(--red); color: var(--red); }
.ledger-head { display: none; }
.ledger-list { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: var(--s4); }
.ledger-list::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--mk) / 2 - 1px); width: 2px; background: var(--ink); }
.le { position: relative; display: grid; grid-template-columns: var(--mk) minmax(0, 1fr); column-gap: var(--s3); align-items: start; padding-top: calc(var(--mk) / 2); }
/* the mark sits on the card's top rule */
.le-mk { grid-column: 1; grid-row: 1; position: relative; z-index: 1; margin-top: calc(var(--mk) / -2 + 1px); }
.le-card { grid-row: 1; grid-column: 2; position: relative; border-top: 2px solid var(--ink); padding-top: var(--s2); }
.held .le-card, .back .le-card { border-top-color: var(--red); }
.le-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px var(--s3); margin: 0 0 var(--s1) !important; max-width: none !important; }
.le-date { color: var(--ink); font-variant-numeric: tabular-nums; }
.le-tag { color: var(--ink); }
.held .le-tag, .back .le-tag { color: var(--red-ink); }
.le-card h3 { margin: 0 0 var(--s1); font-size: 19px; line-height: 1.2; letter-spacing: -.012em; font-weight: 600; }
.le-say { margin: 0 0 var(--s2) !important; font-size: 15.5px; line-height: 1.42; }
.le-lines { margin: 0; }
.le-lines div { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); gap: var(--s2); padding: 5px 0; border-top: 1px dotted var(--hair); font-size: 14px; line-height: 1.42; color: var(--ink-2); }
.le-lines dt { margin: 0; padding-top: 2px; color: var(--ink); }
.le-lines dd { margin: 0; }
.ledger-close { margin: var(--s6) 0 0; padding-top: var(--s3); border-top: 3px solid var(--ink); display: grid; gap: var(--s2); max-width: 40rem; }
.ledger-close .lbl { color: var(--ink); }
.ledger-close p { margin: 0 !important; font-size: clamp(21px, 2.6vw, 30px); line-height: 1.25; letter-spacing: -.012em; font-weight: 500; }

@media (min-width: 860px) {
  .ledger-head {
    display: grid; grid-template-columns: minmax(0, 1fr) var(--lane) minmax(0, 1fr);
    padding-bottom: var(--s2); margin-bottom: var(--s4); border-bottom: 1px solid var(--ink);
  }
  .ledger-head .lbl { color: var(--ink); }
  .ledger-head .lbl:first-child { grid-column: 1; text-align: right; }
  .ledger-head .lbl:last-child { grid-column: 3; }
  .ledger-list::before { left: calc(50% - 1px); }
  .le { grid-template-columns: minmax(0, 1fr) var(--lane) minmax(0, 1fr); column-gap: 0; }
  .le-mk { grid-column: 2; justify-self: center; }
  .to-m .le-card { grid-column: 3; }
  .held .le-card, .back .le-card { grid-column: 1; }
  /* a tick from the card to the line */
  .le-card::before { content: ""; position: absolute; top: -2px; width: calc((var(--lane) - var(--mk)) / 2); border-top: 2px solid var(--ink); }
  .to-m .le-card::before { left: calc((var(--lane) - var(--mk)) / -2); }
  .held .le-card::before, .back .le-card::before { right: calc((var(--lane) - var(--mk)) / -2); border-top-color: var(--red); }
  /* the column says the side; keep the tag for screen readers only */
  .le-tag { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
