.watch-reader {
  --sea: #205c55;
  --rust: #904a31;
  --plot-line: #b7c6bd;
  --panel: #faf8f0;
  --ink: #233e39;
  --muted: #425c54;
}
.watch-reader .watch-deck { max-width: 85ch; font: 400 clamp(18px,1.65vw,23px)/1.38 Georgia,serif; margin: 0 0 14px; color: var(--pw-ink); }
.watch-reader .watch-deck strong { font-weight: normal; }
.watch-spread { display: grid; grid-template-columns: minmax(0,2.3fr) minmax(216px,1fr); gap: clamp(16px,2.5vw,34px); align-items: start; }
.watch-spread > *, .plot-frame { min-width: 0; }
.watch-plate,.cohort-plate { background: var(--panel); color: var(--ink); border: 1px solid var(--plot-line); border-radius: 5px; overflow: hidden; }
.plate-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 7px 13px; color: #eaf0e4; background: #264c46; font: 600 11px/1.35 system-ui,sans-serif; letter-spacing: .06em; }
.plate-caption i { font-style: normal; color: #acbfae; padding: 0 .25em; }
.plate-caption span + span { font-weight: 450; }
.instrument-plate { display: grid; grid-template-columns: minmax(84px,.32fr) minmax(0,1fr); align-items: center; }
.watch-plate .section-drawing { background: #f8f4e8; width: 100%; height: 100%; max-height: 225px; min-height: 160px; object-fit: contain; border-right: 1px solid #ced3c5; }
.plot-frame { padding: 10px 12px 6px; }
.watch-reader .plot-frame h2,.watch-reader .cohort-plate h2 { margin: 0; color: var(--ink); font: 500 clamp(18px,1.8vw,25px)/1.2 Georgia,serif; }
#strip-chart { width: 100%; height: auto; display: block; margin-top: 3px; }
#strip-chart text { fill: #38514a; font: 12px system-ui,sans-serif; }
#strip-chart .flag-text { font-size: 11px; font-weight: 600; }
.grid-rule { stroke: #d7ded3; stroke-width: 1; }
.trace-a,.trace-b { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.trace-a { stroke: var(--sea); stroke-width: 2.3; }
.trace-b { stroke: var(--rust); stroke-width: 2.2; stroke-dasharray: 5 3; }
.keyline { display: flex; gap: 5px 14px; align-items: center; flex-wrap: wrap; }
.line-key { font: 600 12px/1.5 system-ui,sans-serif; white-space: nowrap; }
.line-key b { font-weight: 450; font-variant-numeric: tabular-nums; }
.line-key::before { display: inline-block; width: 18px; border-top: 3px solid var(--sea); margin-right: 5px; vertical-align: middle; content: ""; }
.key-b::before { border-top: 3px dashed var(--rust); }
.watch-plate .plate-foot { margin: 0; padding: 8px 12px; border-top: 1px solid #d4dace; color: var(--muted); font: 14px/1.38 system-ui,sans-serif; }
.watch-desk { display: grid; align-content: start; gap: 4px; color: var(--pw-ink); font: 15px/1.45 system-ui,sans-serif; }
.watch-desk label { font-size: 13px; font-weight: 650; }
.watch-desk select,.watch-desk button { border: 1px solid #8b9d91; color: var(--ink); background: #fffdf6; font: inherit; line-height: 1.15; border-radius: 4px; min-height: 38px; padding: 6px 8px; }
.watch-desk select { width: 100%; max-width: 100%; margin-bottom: 4px; }
.watch-desk button:not(:disabled) { cursor:pointer; }
.watch-desk :focus-visible { outline: 3px solid #a8652b; outline-offset: 2px; }
.watch-desk :disabled { opacity:.65; }
.clock-row,.transport,.decision-actions { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.clock-row output { font:600 14px/1.3 ui-monospace,monospace; }
.transport { margin-bottom:5px; }
.transport button { min-width: 84px; }
.transport input { min-width:40px; flex:1 1 0; width:100%; accent-color: var(--sea); }
.decision-actions { justify-content: flex-start; flex-wrap:wrap; }
#watch-reveal { color:#fff; background:#275a4b; border-color:#275a4b; font-weight:600; }
#watch-reset { border:0; background:transparent; color: var(--pw-green); text-decoration:underline; }
.watch-reader [hidden] { display:none !important; }
.watch-reader .watch-status { font:500 15px/1.45 system-ui,sans-serif; color:var(--pw-ink); margin:10px 0 2px; }
.watch-reader .watch-next { margin:2px 0 0; font:600 14px/1.5 system-ui,sans-serif; }
.watch-next a { padding:4px 0; display:inline-block; }
.cohort-plate h2 { padding: 12px 15px 3px; }
#rule-result { padding:4px 15px 14px; }
#rule-result p,.watch-desk p { margin:4px 0; }
.scorebar { display:flex; min-height:27px; border-radius:2px; overflow:hidden; background:#e5e6dc; margin:5px 0; }
.scorebar span { display:block; }
.scorebar .early { background:#3c7265; }
.scorebar .late { background:repeating-linear-gradient(135deg,#dac79d 0px,#dac79d 3px,#7d663b 3px,#7d663b 5px); }
.scorebar .miss { background:#e3e2d5; }
.score-counts { display:flex; gap:7px 13px; flex-wrap:wrap; font:13px/1.5 system-ui,sans-serif; }
.score-counts span b { font-size:15px; }
.score-counts span::before { content:""; display:inline-block; width:8px; height:8px; margin-right:4px; border:1px solid #828d7e; background:#e3e2d5; }
.score-counts .early::before { background:#3c7265; }.score-counts .late::before { background:#b09d71; }
.score-note { color:var(--muted); font:14px/1.45 system-ui,sans-serif; }
.method-band { margin-top:16px; max-width:88ch; }
.watch-reader table { width:100%; border-collapse:collapse; font:14px/1.4 system-ui,sans-serif; font-variant-numeric:tabular-nums; margin:.6em 0 1.1em; color:inherit; }
.watch-reader caption { text-align:left; font-weight:650; padding:5px 0; }
.watch-reader th,.watch-reader td { border:0; border-bottom:1px solid #b5c3b8; padding:6px 5px; text-align:right; vertical-align:top; }
.watch-reader th:first-child,.watch-reader td:first-child { text-align:left; }
.watch-reader thead { background:#e8eee3; color:#25463a; }
.watch-reader figure.basin-fig { background:var(--panel); color:var(--ink); padding:10px; margin:14px 0; border:1px solid #bac7bd; }
.basin-fig svg { width:100%; height:auto; display:block; }
.watch-reader figcaption { font:13px/1.5 system-ui,sans-serif; margin-top:5px; }
@media screen and (min-width:900px) and (max-height:780px) {
  .watch-reader .fe-heading { margin:5px 0; }.watch-reader .fe-heading h1 { font-size:36px; }
  .watch-reader [data-reader-panel] { padding:9px 0; }.watch-reader .watch-deck { font-size:18px; margin-bottom:9px; }
  .watch-desk { gap:2px; }.watch-desk button,.watch-desk select { min-height:33px; }
  .watch-plate .section-drawing { max-height:181px; }.watch-reader .watch-status { margin-top:6px; }
}
@media(max-width:790px) {
  .watch-spread { grid-template-columns:1fr; gap:13px; }
  .watch-desk { max-width:100%; }
  .watch-desk select,.watch-desk button { min-height:44px; }
  .watch-reader .watch-deck { font-size:18px; }
}
@media(max-width:520px) {
  .instrument-plate { grid-template-columns:1fr; }
  .watch-plate .section-drawing { display:none; }
  .plot-frame { padding:10px; }
  #strip-chart text { font-size:15px; }
  #strip-chart .flag-text { font-size:13px; }
  .watch-reader th,.watch-reader td { padding:5px 3px; }
  .watch-reader table { font-size:12px; }
}
@media print { .watch-desk,.watch-next { display:none; }.watch-spread { display:block; }.watch-plate,.cohort-plate,.basin-fig { break-inside:avoid; } }
.mobile-rig { display:none; }
@media(max-width:520px){.mobile-rig {display:block; padding:4px 10px; border-top:1px solid #d4dace; font:13px/1.5 system-ui,sans-serif;}.mobile-rig summary{cursor:pointer;min-height:32px;padding-block:6px}.mobile-rig img{display:block;margin:4px auto 8px}}
.watch-reader .instrument-control {display:flex;align-items:center;gap:10px;padding:6px 12px;border-bottom:1px solid #c8d2c7;color:var(--ink);font:600 13px/1.25 system-ui,sans-serif;}
.instrument-control select {width:auto;max-width:100%;min-width:0;min-height:35px;border:1px solid #8b9d91;background:#fffdf6;color:var(--ink);border-radius:4px;font:400 14px/1.2 system-ui,sans-serif;padding:3px 6px;}
.instrument-control select:focus-visible {outline:3px solid #a8652b;outline-offset:2px;}
@media(max-width:520px){.instrument-control select{flex:1;min-height:40px;}.watch-reader .instrument-control{padding:4px 8px;gap:5px;}}
