/* Shadow Watch follows requests from the shared simulation clock. */
#shadow-watch { scroll-margin-top: 76px; }
.shadow-checks { min-width: 0; padding: 2px 24px 13px; }
.watch-rows { min-width: 0; }
.watch-result { min-width: 0; min-height: 70px; padding: 3px 8px 2px; border-bottom: 1px solid var(--chrome-shadow); }
.watch-line { display: flex; min-width: 0; align-items: baseline; gap: 6px; }
.watch-name { min-width: 0; flex: 1 1 auto; overflow: hidden; color: var(--title); font: 400 16px/1.1 "W95FA", var(--pixel), sans-serif; text-transform: capitalize; text-overflow: ellipsis; white-space: nowrap; }
.watch-new { flex: none; padding: 1px 3px; border: 1px solid #a41458; color: #a41458; font: 400 9px/1.1 var(--mono), monospace; letter-spacing: .03em; }
.watch-state { flex: none; color: var(--ink-soft); font: 400 10px/1.1 "W95FA", var(--pixel), sans-serif; white-space: nowrap; }
.watch-state::before { display: inline-block; width: 5px; height: 5px; margin: 0 4px 1px 0; border: 1px solid var(--ink-soft); background: transparent; content: ""; vertical-align: middle; }
.watch-result[data-serving="false"] .watch-state::before { border-color: #a41458; background: transparent; }
.watch-result[data-quality-state="below-pass"] .watch-state { color: #a41458; }
.watch-result[data-quality-state="unknown"] .watch-state { color: var(--ink-soft); }
.watch-quality { flex: none; margin-left: auto; color: #08796b; font: 400 18px/1 "W95FA", var(--pixel), sans-serif; font-variant-numeric: tabular-nums; }
.watch-result[data-quality-state="below-pass"] .watch-quality { color: #a41458; }
.watch-result[data-quality-state="unknown"] .watch-quality { color: var(--ink-soft); }
.watch-meta { min-height: 24px; align-items: flex-start; gap: 8px; color: var(--ink-soft); font: 400 11px/1.15 var(--mono), monospace; }
.watch-count { flex: none; color: var(--title); font-variant-numeric: tabular-nums; }
.watch-baseline { min-width: 0; margin-left: auto; overflow: hidden; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.watch-meter { position: relative; height: 24px; margin-top: 1px; }
.watch-meter svg { display: block; width: 100%; height: 24px; overflow: visible; }
.watch-dot { fill: #08796b; }
.watch-result[data-quality-state="below-pass"] .watch-dot { fill: #a41458; }
.watch-result[data-quality-state="unknown"] .watch-dot { fill: #8b8589; }
.watch-pass { stroke: var(--title); stroke-width: 1.2; }
.watch-placeholder { display: flex; align-items: center; color: var(--ink-soft); font: 400 12px/1.2 "W95FA", var(--pixel), sans-serif; }
.watch-readout { display: flex; min-height: 39px; align-items: center; gap: 7px; padding-top: 5px; }
.watch-lamp { display: block; flex: none; width: 7px; height: 7px; border: 1px solid var(--title); background: #08796b; }
.watch-readout[data-phase="drift"] .watch-lamp { background: #a41458; }
.watch-readout[data-phase="training"] .watch-lamp { background: #b58300; }
.watch-readout[data-phase="recheck"] .watch-lamp { background: var(--turq); }
.watch-message { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; color: var(--title); font: 400 12px/1.25 "W95FA", var(--pixel), sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.watch-training { display: flex; flex: none; gap: 2px; visibility: hidden; }
.watch-readout[data-phase="training"] .watch-training { visibility: visible; }
.watch-training i { display: block; width: 5px; height: 5px; border: 1px solid #9b8ea6; background: transparent; opacity: .34; animation: watch-train-pixel 650ms steps(1, end) infinite paused; }
.watch-training i:nth-child(2) { animation-delay: 80ms; }
.watch-training i:nth-child(3) { animation-delay: 160ms; }
.watch-training i:nth-child(4) { animation-delay: 240ms; }
.watch-training i:nth-child(5) { animation-delay: 320ms; }
.watch-training i:nth-child(6) { animation-delay: 400ms; }
.watch-training i:nth-child(7) { animation-delay: 480ms; }
.watch-readout[data-phase="training"].watch-has-activity .watch-training.is-visible i { animation-play-state: running; }
.watch-result.is-new-agent { animation: watch-agent-arrive 480ms steps(5, end) both; }
@keyframes watch-train-pixel {
  0%, 100% { background: transparent; opacity: .34; }
  50% { background: var(--turq); opacity: 1; }
}
@keyframes watch-agent-arrive {
  0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}
@media (max-width: 720px) {
  .shadow-checks { padding-right: 16px; padding-left: 16px; }
  .watch-state { font-size: 10px; }
  .watch-meta { gap: 5px; font-size: 10px; }
}
@media (max-width: 420px) {
  .watch-result > .watch-line:first-child { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name new quality" "state state state"; gap: 2px 6px; }
  .watch-name { grid-area: name; overflow: visible; font-size: 14px; white-space: normal; }
  .watch-new { grid-area: new; }
  .watch-state { grid-area: state; }
  .watch-quality { grid-area: quality; }
  .watch-meta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .watch-baseline { margin-left: 0; white-space: normal; }
  .watch-result { min-height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .watch-training i { animation: none; }
  .watch-result.is-new-agent { animation: none; }
}
