/* firebase-changelog-service/admin/views/infrastructure.css
   System > Infrastructure: the live work queue and the status wall (views/infrastructure.js).
   Admin theme tokens only, so it follows the light and dark themes; no new tokens. Status
   colours are the success / warn / error tokens; text that has to be read sits on the -bg tint
   of its colour, never in the colour itself, so it keeps its contrast in both themes. Every
   section stacks to one column on a phone; nothing scrolls sideways. */

.infra-root { max-width: 1400px; margin: 0 auto; padding: 24px; }

.infra-top-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.infra-top-bar h1 { font-size: 22px; font-weight: 700; margin: 0; }
.infra-live { color: var(--lf-text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.infra-live::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; vertical-align: 0;
  border-radius: 50%; background: var(--lf-success);
}
.infra-note { color: var(--lf-text-muted); font-size: 13px; margin: 2px 0 12px; max-width: 820px; line-height: 1.5; }
.infra-muted { color: var(--lf-text-muted); font-size: 13px; }

.infra-section { margin: 12px 0 32px; }
.infra-section-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.infra-section-title { font-size: 18px; font-weight: 700; margin: 0; }
.infra-section-summary { color: var(--lf-text-muted); font-size: 12px; font-weight: 600; }
.infra-sub-title { font-size: 14px; font-weight: 700; margin: 20px 0 8px; }
.infra-k {
  color: var(--lf-text-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
}
.infra-footer { margin-top: 6px; color: var(--lf-text-muted); font-size: 11px; overflow-wrap: anywhere; }

.infra-pill {
  display: inline-block; border-radius: var(--radius-pill, 999px); padding: 1px 8px;
  font-size: 11px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; color: var(--lf-text);
}
.infra-pill.is-up { background: var(--lf-success-bg); border-color: var(--lf-success-border); }
.infra-pill.is-stale { background: var(--lf-warn-bg); border-color: var(--lf-warn-border); }
.infra-pill.is-error { background: var(--lf-error-bg); border-color: var(--lf-error-border); }
.infra-pill.is-quiet { background: var(--lf-accent-bg); border-color: var(--lf-accent); }

/* ── Needs attention: a small strip on top; one quiet line when all is fine ── */

.infra-attn { margin: 10px 0 20px; }
.infra-attn:has(.infra-attn-head) {
  background: var(--lf-panel); border: 1px solid var(--lf-border); border-left: 4px solid var(--lf-warn);
  border-radius: var(--radius-sm, 8px); padding: 10px 12px;
}
.infra-attn:has(.infra-attn-item.is-error) { border-left-color: var(--lf-error); }
.infra-attn-clear, .infra-attn-wait { margin: 0; color: var(--lf-text-muted); font-size: 13px; }
.infra-attn-clear::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--lf-success);
}
.infra-attn-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.infra-attn-title { font-size: 15px; font-weight: 700; margin: 0; }
.infra-attn-count { color: var(--lf-text-muted); font-size: 12px; font-weight: 600; }
.infra-attn-group { margin-top: 8px; min-width: 0; }
.infra-attn-group-title {
  margin: 0 0 4px; color: var(--lf-text-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
}
.infra-attn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; min-width: 0; }
.infra-attn-item { min-width: 0; }
.infra-attn-go {
  display: grid; gap: 1px; width: 100%; min-height: 44px; box-sizing: border-box; padding: 6px 10px; text-align: left;
  font: inherit; color: var(--lf-text); background: var(--lf-warn-bg); border: 1px solid var(--lf-warn-border);
  border-radius: 6px; cursor: pointer; text-decoration: none;
}
.infra-attn-item.is-error .infra-attn-go { background: var(--lf-error-bg); border-color: var(--lf-error-border); }
.infra-attn-go:hover { border-color: var(--lf-border-strong); }
.infra-attn-go:focus-visible { outline: 2px solid var(--lf-accent); outline-offset: 2px; }
.infra-attn-text { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.infra-attn-detail { font-size: 12px; color: var(--lf-text); overflow-wrap: anywhere; }
.infra-attn-missing { margin: 8px 0 0; color: var(--lf-text-muted); font-size: 12px; }
.is-goto { outline: 2px solid var(--lf-accent); outline-offset: 2px; }

/* ── Jobs: one line each, opened for the rest ─────────────────────────── */

.infra-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
.infra-job-item { min-width: 0; }
.infra-job, .infra-job-plain {
  min-width: 0; background: var(--lf-bg); border: 1px solid var(--lf-border); border-radius: var(--radius-sm, 8px);
}
.infra-job.is-blocked { border-left: 3px solid var(--lf-error); }
.infra-job-plain { display: grid; gap: 2px; padding: 8px 10px; font-size: 13px; }
.infra-job-sum {
  display: grid; gap: 3px; padding: 8px 10px 8px 26px; cursor: pointer; list-style: none; position: relative;
  min-height: 44px; font-size: 13px; line-height: 1.4;
}
.infra-job-sum::-webkit-details-marker { display: none; }
.infra-job-sum::before {
  content: "\25B8"; position: absolute; left: 10px; top: 8px; color: var(--lf-text-muted); transition: transform 0.15s;
}
.infra-job[open] > .infra-job-sum::before { transform: rotate(90deg); }
.infra-job-sum:focus-visible, .infra-tile-sum:focus-visible, .infra-recent-sum:focus-visible {
  outline: 2px solid var(--lf-accent); outline-offset: 2px; border-radius: var(--radius-sm, 8px);
}
.infra-job-top { display: flex; gap: 6px; min-width: 0; }
.infra-job-pos { flex: none; color: var(--lf-text-muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.infra-job-title { font-weight: 600; color: var(--lf-text); overflow-wrap: anywhere; }
.infra-job-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.infra-job-eta { font-size: 12px; font-weight: 600; color: var(--lf-text); font-variant-numeric: tabular-nums; }
.infra-job-next { font-size: 12px; color: var(--lf-text-muted); }
.infra-job-plan { color: var(--lf-text-muted); font-size: 12px; overflow-wrap: anywhere; }
/* The one "now" line on a card: two lines at most, the rest when the job is opened. */
.infra-job-line {
  color: var(--lf-text-muted); font-size: 12px; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.infra-job-plain .infra-job-line { -webkit-line-clamp: 3; line-clamp: 3; }
.infra-job-now-full, .infra-job-body .infra-job-waits { overflow-wrap: anywhere; }
.infra-job-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.infra-job-waits {
  justify-self: start; display: inline-block; font-size: 12px; font-weight: 600; color: var(--lf-text);
  background: var(--lf-warn-bg); border: 1px solid var(--lf-warn-border); border-radius: 6px; padding: 1px 8px;
}
.infra-job-body { padding: 0 12px 10px; border-top: 1px solid var(--lf-border); font-size: 13px; min-width: 0; }
.infra-h4 {
  margin: 12px 0 6px; color: var(--lf-text-muted);
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
}
.infra-pre {
  white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.45; color: var(--lf-text);
  background: var(--lf-panel); border: 1px solid var(--lf-border); border-radius: 6px; padding: 8px 10px;
  max-height: 320px; overflow-y: auto;
}
.infra-links { margin: 0; padding-left: 18px; }
.infra-links a, .infra-feed a, .infra-feed-note a { color: var(--lf-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.infra-q-text { margin: 4px 0; font-size: 12px; line-height: 1.45; color: var(--lf-text); }
.infra-q-outcome { color: var(--lf-text-muted); font-size: 12px; }
.infra-q-options li.is-recommended { font-weight: 600; }
.infra-queued { margin-bottom: 8px; }
.infra-idle { margin: 0; color: var(--lf-text-muted); font-size: 13px; }
.infra-lane-jobs { display: grid; gap: 6px; min-width: 0; }

.infra-recent { margin-top: 14px; }
.infra-recent-sum { cursor: pointer; font-size: 14px; font-weight: 700; min-height: 32px; padding: 4px 0; }
.infra-recent > .infra-jobs { margin-top: 6px; }

/* ── The status wall ──────────────────────────────────────────────────── */

.infra-wall { display: grid; gap: 18px; }
.infra-place-title {
  margin: 0 0 8px; color: var(--lf-text-muted);
  font-size: 11px; font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase;
}
.infra-tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); align-items: start; }
.infra-tile {
  min-width: 0; background: var(--lf-panel); border: 1px solid var(--lf-border);
  border-left: 4px solid var(--lf-border-strong); border-radius: var(--radius-sm, 8px);
}
.infra-tile.is-up { border-left-color: var(--lf-success); }
.infra-tile.is-stale { border-left-color: var(--lf-warn); }
.infra-tile.is-down, .infra-tile.is-error { border-left-color: var(--lf-error); }
.infra-tile.is-quiet { border-left-color: var(--lf-accent); }
.infra-tile.is-nodata { border-left-style: dashed; }
.infra-tile-sum { display: grid; gap: 3px; padding: 9px 12px; cursor: pointer; list-style: none; min-height: 44px; }
.infra-tile-sum::-webkit-details-marker { display: none; }
.infra-tile-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.infra-tile-name { font-size: 14px; font-weight: 700; color: var(--lf-text); min-width: 0; overflow-wrap: anywhere; }
.infra-tile-state {
  margin-left: auto; flex: none; font-size: 11px; font-weight: 600; color: var(--lf-text);
  border-radius: var(--radius-pill, 999px); padding: 1px 8px; background: var(--lf-panel-hover); border: 1px solid var(--lf-border-strong);
}
.infra-tile.is-up .infra-tile-state { background: var(--lf-success-bg); border-color: var(--lf-success-border); }
.infra-tile.is-stale .infra-tile-state { background: var(--lf-warn-bg); border-color: var(--lf-warn-border); }
.infra-tile.is-down .infra-tile-state, .infra-tile.is-error .infra-tile-state { background: var(--lf-error-bg); border-color: var(--lf-error-border); }
.infra-tile.is-quiet .infra-tile-state { background: var(--lf-accent-bg); border-color: var(--lf-accent); }
.infra-tile-seen { font-size: 12px; color: var(--lf-text-muted); font-variant-numeric: tabular-nums; }
.infra-tile-now { font-size: 12px; color: var(--lf-text); overflow-wrap: anywhere; }
.infra-tile-body { padding: 0 12px 10px; font-size: 12px; line-height: 1.45; }
.infra-tile-role { margin: 0 0 4px; color: var(--lf-text); }
.infra-tile-gap { margin: 0; color: var(--lf-text); background: var(--lf-panel-hover); border-radius: 6px; padding: 4px 8px; }

.infra-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--lf-text-muted); }
.infra-dot.is-up { background: var(--lf-success); }
.infra-dot.is-stale { background: var(--lf-warn); }
.infra-dot.is-down, .infra-dot.is-error { background: var(--lf-error); }
.infra-dot.is-quiet { background: var(--lf-accent); }
.infra-dot.is-nodata { background: none; border: 1.5px solid var(--lf-text-muted); }

.infra-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.infra-feed-item { background: var(--lf-panel); border: 1px solid var(--lf-border); border-radius: var(--radius-sm, 8px); padding: 8px 12px; min-width: 0; }
.infra-feed-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.infra-feed-title { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.infra-feed-meta { margin-top: 2px; font-size: 12px; color: var(--lf-text-muted); overflow-wrap: anywhere; }
.infra-lan-problems { color: var(--lf-text-muted); font-size: 12px; margin: 4px 0 0; overflow-wrap: anywhere; }
.infra-lan-problems:empty { display: none; }
.infra-feed-note { color: var(--lf-text-muted); font-size: 12px; margin: 8px 0 0; line-height: 1.5; }

.infra-planned { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--lf-border); font-size: 12px; color: var(--lf-text-muted); }
.infra-planned ul { margin: 4px 0 0; padding-left: 18px; line-height: 1.5; }

@media (max-width: 640px) {
  .infra-root { padding: 16px 12px; }
}

/* ── Lanes: a card per worker and Nick ─────────────────────────────────── */
/* Usage bars from /infra/workers/agents, then the jobs from the work queue. */

.infra-workers-grid {
  display: grid; gap: 14px; align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
}
.infra-workers-loading,
.infra-workers-error {
  grid-column: 1 / -1; padding: 14px 16px; font-size: 13px; color: var(--lf-text-muted);
  background: var(--lf-panel); border: 1px dashed var(--lf-border-strong); border-radius: var(--radius, 12px);
}
.infra-workers-error { color: var(--lf-text); background: var(--lf-warn-bg); border: 1px solid var(--lf-warn-border); margin-bottom: 12px; }
.infra-workers-error[hidden] { display: none; }

.infra-worker {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  background: var(--lf-panel); border: 1px solid var(--lf-border); border-top: 3px solid var(--lf-border-strong);
  border-radius: var(--radius, 12px); padding: 12px 16px 14px;
}
.infra-worker.is-ok { border-top-color: var(--lf-success); }
.infra-worker.is-near { border-top-color: var(--lf-warn); }
.infra-worker.is-limited { border-top-color: var(--lf-error); }
.infra-worker.is-stale { border-top-style: dashed; }

.infra-worker-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.infra-worker-who { min-width: 0; }
.infra-worker-name { font-size: 15px; font-weight: 700; margin: 0; }
.infra-worker-account { color: var(--lf-text-muted); font-size: 12px; overflow-wrap: anywhere; }
.infra-worker-chip { flex: none; margin-top: 2px; }
.infra-worker-chip.is-ok { color: var(--lf-success); background: var(--lf-success-bg); border-color: var(--lf-success-border); }
.infra-worker-chip.is-near { color: var(--lf-warn); background: var(--lf-warn-bg); border-color: var(--lf-warn-border); }
.infra-worker-chip.is-limited { color: var(--lf-error); background: var(--lf-error-bg); border-color: var(--lf-error-border); }
.infra-worker-chip.is-unknown { color: var(--lf-text-muted); background: var(--lf-panel-hover); border-color: var(--lf-border-strong); }

.infra-meters { display: grid; gap: 8px; }
.infra-meter-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; }
.infra-meter-label { color: var(--lf-text-muted); font-weight: 600; }
.infra-meter-pct { color: var(--lf-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.infra-meter-track {
  height: 8px; margin: 4px 0 3px; overflow: hidden;
  background: var(--lf-panel-hover); border: 1px solid var(--lf-border); border-radius: var(--radius-pill, 999px);
}
.infra-meter-fill { display: block; height: 100%; background: var(--lf-success); border-radius: inherit; transition: width 0.3s; }
.infra-meter.is-near .infra-meter-fill { background: var(--lf-warn); }
.infra-meter.is-limited .infra-meter-fill { background: var(--lf-error); }
.infra-meter-reset { color: var(--lf-text-muted); font-size: 11px; font-variant-numeric: tabular-nums; min-height: 14px; }

/* Where the week lands once the account's work is done (the Weekly bar only): a lighter band after
   the fill, a dotted one for the jobs Nick's plan would add, and the line under the bar. */
.infra-meter-track { position: relative; }
.infra-meter-proj, .infra-meter-planned { position: absolute; top: 0; bottom: 0; }
.infra-meter-proj { background: var(--lf-success); opacity: 0.45; }
.infra-meter-proj.is-near { background: var(--lf-warn); opacity: 0.7; }
.infra-meter-proj.is-over { background: var(--lf-error); opacity: 0.7; }
.infra-meter-planned {
  background: repeating-linear-gradient(90deg, var(--lf-text-muted) 0 3px, transparent 3px 6px); opacity: 0.6;
}
.infra-meter-to { color: var(--lf-text-muted); font-weight: 600; }
/* An account shared with the owner's chats (Agent4): its no-new-work line on the Weekly bar. */
.infra-meter-line { position: absolute; top: -1px; bottom: -1px; width: 2px; margin-left: -1px; background: var(--lf-text); }
.infra-meter-note { color: var(--lf-text-muted); font-size: 11px; overflow-wrap: anywhere; }
.infra-worker-shared {
  justify-self: start; margin-top: 2px; font-size: 11px; font-weight: 600; color: var(--lf-text);
  background: var(--lf-accent-bg); border: 1px solid var(--lf-accent); border-radius: var(--radius-pill, 999px); padding: 0 8px;
}
.infra-proj { font-size: 12px; color: var(--lf-text); margin-top: 2px; min-width: 0; }
.infra-proj.is-idle { color: var(--lf-text-muted); }
.infra-proj-sum {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; cursor: pointer; list-style: none;
  min-height: 24px; padding: 2px 0; overflow-wrap: anywhere;
}
.infra-proj-sum::-webkit-details-marker { display: none; }
.infra-proj-sum:focus-visible { outline: 2px solid var(--lf-accent); outline-offset: 2px; border-radius: var(--radius-sm, 8px); }
.infra-proj-line { min-width: 0; }
/* The colour is on the band and the flag; the line stays body text, readable in both themes. */
.infra-proj.is-near .infra-proj-line, .infra-proj.is-over .infra-proj-line { font-weight: 600; }
.infra-proj.is-near { border-left: 3px solid var(--lf-warn); padding-left: 6px; }
.infra-proj.is-over { border-left: 3px solid var(--lf-error); padding-left: 6px; }
.infra-proj-flag { white-space: normal; }
.infra-est {
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--lf-text-muted);
  border: 1px dashed var(--lf-border-strong); border-radius: var(--radius-pill, 999px); padding: 0 6px;
}
.infra-basis { margin: 4px 0 6px; padding-left: 18px; color: var(--lf-text-muted); font-size: 12px; display: grid; gap: 3px; overflow-wrap: anywhere; }
.infra-job-usage {
  font-size: 12px; font-weight: 600; color: var(--lf-text); font-variant-numeric: tabular-nums;
  border: 1px dashed var(--lf-border-strong); border-radius: 6px; padding: 0 6px;
}
.infra-job-usage.is-measured { border-style: solid; }
.infra-unassigned { margin: 0 0 8px; color: var(--lf-text-muted); font-size: 13px; overflow-wrap: anywhere; }
.infra-unassigned:empty { display: none; }
/* The queue's forecast (queueForecast): one line, amber when a job waits for account room, red when one has none. */
.infra-forecast, .noc-forecast { margin: 0 0 8px; font-size: 13px; overflow-wrap: anywhere; color: var(--lf-text-muted); }
.infra-forecast > summary, .noc-forecast > summary { cursor: pointer; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.infra-forecast.is-warn .infra-forecast-line, .noc-forecast.is-warn .infra-forecast-line { color: var(--lf-warn); }
.infra-forecast.is-error .infra-forecast-line, .noc-forecast.is-error .infra-forecast-line { color: var(--lf-error); }

.infra-spark { margin: 0; }
.infra-spark-svg { display: block; width: 100%; height: 36px; background: var(--lf-bg); border-radius: 6px; overflow: visible; }
.infra-spark-limit { stroke: var(--lf-border-strong); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.infra-spark-line { fill: none; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.infra-spark-line.is-5h { stroke: var(--lf-accent); }
.infra-spark-line.is-7d { stroke: var(--lf-text-muted); stroke-dasharray: 4 3; }
.infra-spark-key { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 4px; color: var(--lf-text-muted); font-size: 11px; }
.infra-spark-swatch { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--lf-accent); }
.infra-spark-swatch.is-7d { border-top: 2px dashed var(--lf-text-muted); margin-left: 6px; }
.infra-spark-empty { color: var(--lf-text-muted); font-size: 12px; margin: 0; }

.infra-worker-task { display: flex; gap: 8px; min-width: 0; font-size: 13px; line-height: 1.4; }
.infra-worker-k {
  flex: none; padding-top: 2px; color: var(--lf-text-muted);
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
}
.infra-worker-v { min-width: 0; overflow-wrap: anywhere; }
.infra-worker-task.is-idle .infra-worker-v { color: var(--lf-text-muted); }
.infra-tasks { flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.infra-task-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.infra-task-name { font-weight: 600; overflow-wrap: anywhere; }
.infra-task-model {
  padding: 0 7px; white-space: nowrap; font-size: 11px; font-weight: 600;
  color: var(--lf-accent); background: var(--lf-accent-bg); border-radius: var(--radius-pill, 999px);
}
.infra-task-effort {
  padding: 0 7px; white-space: nowrap; font-size: 11px; font-weight: 600;
  color: var(--lf-text); background: var(--lf-panel-hover); border: 1px solid var(--lf-border); border-radius: var(--radius-pill, 999px);
}
.infra-task-status { color: var(--lf-text-muted); font-size: 12px; overflow-wrap: anywhere; }
.infra-worker-pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: flex-start; }
.infra-worker-disk { color: var(--lf-text-muted); font-size: 12px; font-variant-numeric: tabular-nums; margin-top: 4px; }
.infra-worker-disk.is-warn { color: var(--lf-text); font-weight: 500; }
.infra-worker-disk.is-crit { color: var(--lf-error); font-weight: 600; }
.infra-worker-version { color: var(--lf-text-muted); font-size: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.infra-worker-version.is-warn { color: var(--lf-text); font-weight: 500; }
.infra-worker-age { color: var(--lf-text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.infra-usage-asof.is-old { color: var(--lf-text); font-weight: 600; }
.infra-worker-age.is-stale,
.infra-worker-warn {
  align-self: flex-start; color: var(--lf-text); font-size: 12px; font-weight: 600;
  background: var(--lf-warn-bg); border: 1px solid var(--lf-warn-border); border-radius: 6px; padding: 2px 8px;
}
.infra-worker-warn { background: var(--lf-error-bg); border-color: var(--lf-error-border); font-weight: 500; overflow-wrap: anywhere; }
.infra-worker-none { color: var(--lf-text-muted); font-size: 13px; margin: 0; }
.infra-worker-resets { color: var(--lf-text-muted); font-size: 12px; overflow-wrap: anywhere; }
.infra-worker-resets.is-has { color: var(--lf-accent); font-weight: 600; }
.infra-worker-resets.is-soon {
  align-self: flex-start; color: var(--lf-text); font-weight: 600;
  background: var(--lf-warn-bg); border: 1px solid var(--lf-warn-border); border-radius: 6px; padding: 2px 8px;
}

.infra-worker-qs { border-top: 1px solid var(--lf-border); padding-top: 10px; }
.infra-worker-qs-title {
  margin: 0 0 6px; color: var(--lf-text-muted);
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
}
.infra-qs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.infra-q-head { display: flex; align-items: baseline; gap: 6px; font-size: 13px; font-weight: 600; line-height: 1.35; }
.infra-q-id { flex: none; color: var(--lf-accent); font-variant-numeric: tabular-nums; }
.infra-q-title { min-width: 0; overflow-wrap: anywhere; }
.infra-q-meta { margin: 2px 0 4px; color: var(--lf-text-muted); font-size: 11px; }
.infra-q-options { margin: 0; padding-left: 16px; color: var(--lf-text); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }

/* ── CI now (infrastructure-ci.logic.js): flags, running jobs, the last hour and day; the charts
 *    are in infrastructure-charts.css ── */

.infra-ci-job a, .infra-ci-runner-jobs a, .infra-ci-flag a { color: var(--lf-text); }
.infra-ci-ok { margin: 0 0 4px; color: var(--lf-text-muted); font-size: 13px; }
.infra-ci-ok::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--lf-success); }
.infra-ci-flags { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.infra-ci-flag { display: grid; gap: 1px; padding: 6px 10px; border-radius: 6px; background: var(--lf-warn-bg); border: 1px solid var(--lf-warn-border); }
.infra-ci-flag.is-error { background: var(--lf-error-bg); border-color: var(--lf-error-border); }
.infra-ci-flag-text { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.infra-ci-flag-detail { font-size: 12px; overflow-wrap: anywhere; }

.infra-ci-block { min-width: 0; }
.infra-ci-block > summary.infra-sub-title { cursor: pointer; min-height: 32px; }
.infra-ci-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
.infra-ci-job { min-width: 0; padding: 8px 10px; background: var(--lf-bg); border: 1px solid var(--lf-border); border-radius: var(--radius-sm, 8px); }
.infra-ci-job.is-slow { border-left: 3px solid var(--lf-warn); }
.infra-ci-job-top { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; min-width: 0; }
.infra-ci-job-name { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.infra-ci-job-meta, .infra-ci-job-time { color: var(--lf-text-muted); font-size: 12px; overflow-wrap: anywhere; }
.infra-ci-badges { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.infra-ci-note { color: var(--lf-text-muted); font-size: 12px; font-style: italic; overflow-wrap: anywhere; }
.infra-ci-runner-jobs { margin: 4px 0 0; padding-left: 18px; font-size: 12px; display: grid; gap: 2px; }
.infra-ci-runner-jobs li { overflow-wrap: anywhere; }
.infra-ci-deploy { margin: 0 0 6px; font-size: 13px; }
.infra-ci-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 20px; }
.infra-ci-lines { margin: 0; padding-left: 18px; font-size: 13px; display: grid; gap: 2px; }
.infra-ci-typical { margin-top: 8px; font-size: 13px; }
.infra-ci-typical > summary, .infra-ci-table > summary { cursor: pointer; color: var(--lf-text-muted); font-size: 12px; min-height: 32px; }

.infra-ci-table table { border-collapse: collapse; font-size: 12px; }
.infra-ci-table th, .infra-ci-table td { padding: 2px 10px 2px 0; text-align: left; font-variant-numeric: tabular-nums; }

/* ── The owner's order: a handle and arrows beside each queued job ────── */

.infra-queued-item { display: flex; align-items: flex-start; gap: 6px; }
.infra-queued-item > .infra-job { flex: 1; }
.infra-order { flex: none; display: flex; flex-direction: column; gap: 2px; }
.infra-order-handle, .infra-order-btn {
  width: 44px; min-height: 30px; padding: 0; font: inherit; font-size: 12px; line-height: 1; color: var(--lf-text);
  background: var(--lf-panel); border: 1px solid var(--lf-border); border-radius: 6px; cursor: pointer;
}
.infra-order-handle { min-height: 44px; cursor: grab; touch-action: none; letter-spacing: -2px; font-size: 16px; }
.infra-order-handle:active { cursor: grabbing; }
.infra-order-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.infra-order-handle:focus-visible, .infra-order-btn:focus-visible { outline: 2px solid var(--lf-accent); outline-offset: 2px; }
.infra-queued-item.is-dragging { position: relative; z-index: 2; opacity: 0.9; box-shadow: var(--shadow-lg, 0 10px 40px rgba(0, 0, 0, 0.1)); }
.infra-queued-item.is-drop-before { box-shadow: 0 -3px 0 var(--lf-accent); }
.infra-queued-item.is-drop-after { box-shadow: 0 3px 0 var(--lf-accent); }
.infra-order-status { margin: 0 0 6px; font-size: 13px; min-height: 0; }
.infra-order-status:empty { display: none; }
.infra-order-status.is-error { padding: 6px 10px; background: var(--lf-error-bg); border: 1px solid var(--lf-error-border); border-radius: 6px; }
.infra-job-ci { display: block; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.infra-job-skip { display: block; font-size: 12px; overflow-wrap: anywhere; }
.infra-job-model { color: var(--lf-text-muted); font-size: 12px; }

/* ── Pause, Resume and Force run: buttons under a job, its control line, its history ── */
.infra-job-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 2px 2px; }
.infra-job-actions .infra-control-btn { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.infra-control-btn.is-force { border-color: var(--lf-warn-border); }
.infra-control-btn:focus-visible { outline: 2px solid var(--lf-accent); outline-offset: 2px; }
.infra-control-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.infra-control-status { font-size: 12px; color: var(--lf-text-muted); overflow-wrap: anywhere; }
.infra-control-status.is-error { padding: 4px 8px; background: var(--lf-error-bg); border: 1px solid var(--lf-error-border); border-radius: 6px; color: var(--lf-text); }
.infra-job-control {
  justify-self: start; display: inline-block; font-size: 12px; font-weight: 600; color: var(--lf-text); overflow-wrap: anywhere;
  padding: 1px 8px; border-radius: 6px; border: 1px solid var(--lf-border); background: var(--lf-panel);
}
.infra-job-control.is-busy, .infra-job-control.is-paused { background: var(--lf-warn-bg); border-color: var(--lf-warn-border); }
.infra-job-control.is-forced { background: var(--lf-accent-bg); border-color: var(--lf-accent); }
.infra-job-control.is-refused { background: var(--lf-error-bg); border-color: var(--lf-error-border); }
.infra-history { margin: 0; padding-left: 18px; font-size: 12px; }
.infra-history li { margin: 2px 0; overflow-wrap: anywhere; }

/* ── Stages: a chip on every job card, the same colors everywhere ─────── */
/* Each stage's hue is only the dot and a light tint mixed into the page background; the label stays
   body text, so it reads in both themes. A guessed stage (the worker has not set one) has a dashed
   edge. Blocked sits beside it in the error colors. */

.infra-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.infra-stage, .infra-lane-stage { --stage: var(--lf-text-muted); }
.infra-stage.is-queued, .infra-lane-stage.is-queued { --stage: var(--lf-border-strong); }
.infra-stage.is-researching, .infra-lane-stage.is-researching { --stage: #64748b; }
.infra-stage.is-designing, .infra-lane-stage.is-designing { --stage: #9333ea; }
.infra-stage.is-coding, .infra-lane-stage.is-coding { --stage: #2563eb; }
.infra-stage.is-testing, .infra-lane-stage.is-testing { --stage: #0891b2; }
.infra-stage.is-waiting-owner, .infra-lane-stage.is-waiting-owner { --stage: var(--lf-warn); }
.infra-stage.is-approved, .infra-lane-stage.is-approved { --stage: var(--lf-success); }
.infra-stage.is-waiting-merge, .infra-lane-stage.is-waiting-merge { --stage: #db2777; }
.infra-stage.is-merging, .infra-lane-stage.is-merging { --stage: #c2410c; }
.infra-stage.is-releasing, .infra-lane-stage.is-releasing { --stage: var(--lf-success); }
.infra-stage.is-done, .infra-lane-stage.is-done { --stage: var(--lf-text-muted); }
.infra-stage.is-paused, .infra-lane-stage.is-paused { --stage: var(--lf-warn); }
.infra-stage.is-stopped, .infra-lane-stage.is-stopped { --stage: var(--lf-text-muted); }
.infra-stage.is-failed, .infra-lane-stage.is-failed, .infra-lane-stage.is-blocked { --stage: var(--lf-error); }
.infra-stage {
  display: inline-flex; align-items: center; gap: 5px; border-radius: var(--radius-pill, 999px); padding: 1px 8px 1px 6px;
  font-size: 11px; font-weight: 700; line-height: 16px; color: var(--lf-text); white-space: nowrap;
  background: color-mix(in srgb, var(--stage) 14%, var(--lf-bg));
  border: 1px solid color-mix(in srgb, var(--stage) 55%, var(--lf-bg));
}
.infra-stage.is-guess { border-style: dashed; font-weight: 600; }
.infra-stage-dot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--stage); }
.infra-stage-blocked {
  display: inline-block; border-radius: var(--radius-pill, 999px); padding: 1px 8px; font-size: 11px; font-weight: 700; line-height: 16px;
  color: var(--lf-text); background: var(--lf-error-bg); border: 1px solid var(--lf-error-border); overflow-wrap: anywhere;
}
.infra-stage-approved {
  display: inline-block; border-radius: var(--radius-pill, 999px); padding: 1px 8px; font-size: 11px; font-weight: 700; line-height: 16px;
  color: var(--lf-text); background: var(--lf-success-bg); border: 1px solid var(--lf-success-border); overflow-wrap: anywhere;
}
.infra-lane-stages { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font-size: 12px; color: var(--lf-text); }
.infra-lane-stage { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.infra-lane-sep { color: var(--lf-text-muted); white-space: pre; }

/* ── Lanes all one height: the usage on top stays put, the jobs list scrolls ── */
/* Each card spans three rows of the grid (its top, its jobs, its foot), shared with the cards beside
   it (subgrid), so the jobs lists in a row start and end level. The row is as tall as its longest
   list, at most about a screen with the usage above it; past that the list scrolls inside the card,
   with a fade and "+N more" at its foot. */

.infra-workers-grid { align-items: stretch; }
.infra-worker-top { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.infra-worker-foot { display: grid; gap: 4px; min-width: 0; align-content: end; }
.infra-worker-foot:empty, .infra-lane-none { min-height: 0; }
@supports (grid-template-rows: subgrid) {
  .infra-worker { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 10px; }
}
.infra-lane-jobs { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 0; min-width: 0; }
.infra-lane-scroll {
  flex: 1 1 auto; min-height: 0; min-width: 0; overflow-y: auto; overscroll-behavior: contain;
  max-height: max(280px, calc(100vh - 400px)); scrollbar-width: thin;
}
.infra-lane-scroll > .infra-jobs { padding-bottom: 2px; }
.infra-lane-jobs.is-more::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--lf-panel) 0%, transparent), var(--lf-panel) 85%);
  border-radius: 0 0 var(--radius-sm, 8px) var(--radius-sm, 8px);
}
.infra-lane-more {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); z-index: 1;
  min-height: 28px; padding: 2px 12px; font: inherit; font-size: 12px; font-weight: 700; color: var(--lf-text);
  background: var(--lf-panel); border: 1px solid var(--lf-border-strong); border-radius: var(--radius-pill, 999px); cursor: pointer;
  box-shadow: var(--shadow, 0 1px 3px rgba(0, 0, 0, 0.06));
}
.infra-lane-more[hidden] { display: none; }
.infra-lane-more:hover { border-color: var(--lf-accent); }
.infra-lane-more:focus-visible, .infra-lane-all:focus-visible { outline: 2px solid var(--lf-accent); outline-offset: 2px; }
.infra-lane-all {
  display: none; min-height: 44px; width: 100%; font: inherit; font-size: 13px; font-weight: 600; color: var(--lf-accent);
  background: transparent; border: 1px dashed var(--lf-border-strong); border-radius: var(--radius-sm, 8px); cursor: pointer;
}

/* A phone: the cards stack and nothing scrolls inside the page; each lane shows its first 3 jobs
   and "Show all". */
@media (max-width: 640px) {
  .infra-lane-scroll { max-height: none; overflow: visible; }
  .infra-lane-more, .infra-lane-jobs.is-more::after { display: none; }
  .infra-lane-jobs:not(.is-all) .infra-job-item.is-extra { display: none; }
  .infra-lane-all { display: block; }
}
.infra-disk-badge { flex: none; margin-top: 2px; }
.infra-disk-badge.is-stale { color: var(--lf-warn); }
.infra-disk-badge.is-error { color: var(--lf-error); }

/* The developer follow-ups' counts beside the title (views/infrastructure.js listenFollowupCounts). */
.infra-fu { margin-left: auto; font-size: 13px; color: var(--lf-text-muted); text-decoration: none; border: 1px solid var(--lf-border); border-radius: 999px; padding: 6px 12px; min-height: 32px; display: inline-flex; align-items: center; }
.infra-fu:hover { color: var(--lf-text); border-color: var(--lf-border-strong); }
.infra-fu:focus-visible { outline: 2px solid var(--lf-accent); outline-offset: 2px; }
.infra-fu[hidden] { display: none; }
.infra-sweep { margin-left: auto; font-size: 13px; color: var(--lf-text-muted); border: 1px solid var(--lf-border); border-radius: 999px; padding: 6px 12px; min-height: 32px; display: inline-flex; align-items: center; }
.infra-sweep + .infra-fu { margin-left: 8px; }
.infra-sweep.is-warn { color: var(--lf-text); background: var(--lf-warn-bg); border-color: var(--lf-warn-border); }
.infra-sweep[hidden] { display: none; }

/* ── Decisions (infrastructure-decisions.logic.js): one compact row per question or need for the
 *    owner, open or from the last day; where it was pushed and answered, and what the PC did ── */

.infra-dec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 980px; }
.infra-dec-row {
  min-width: 0; padding: 8px 10px; font-size: 13px; line-height: 1.4;
  background: var(--lf-bg); border: 1px solid var(--lf-border); border-radius: var(--radius-sm, 8px);
}
.infra-dec-row.is-open { border-left: 3px solid var(--lf-accent); }
.infra-dec-row.is-twice { border-left: 3px solid var(--lf-warn-border); }
.infra-dec-twice { flex: none; align-self: center; }
.infra-dec-meta { margin-top: 2px; color: var(--lf-text-muted); font-size: 12px; overflow-wrap: anywhere; }
.infra-dec-lines { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; font-size: 12px; color: var(--lf-text); overflow-wrap: anywhere; }
.infra-dec-line.is-pc { font-weight: 600; }
.infra-dec-all { display: block; margin-top: 8px; max-width: 980px; }

/* ── The detailed page's link back to the wall (/infrastructure?view=details) ── */

.infra-mode-link, .infra-betas-link { font-size: 13px; color: var(--lf-accent); }

/* ═══ The NOC wall (owner, 2026-10-28; the "Infrastructure NOC redesign" canvas, artboard "After") ═══
 * Its own view mode under the site header, in the site's theme (owner, 12:08 PM: the NOC look is the
 * dark theme, not instead of the light one): the header's moon and sun switch and the saved choice
 * pick a dark or a light NOC palette, same layout and same status shapes. From 1600 px wide it is one
 * screen that does not scroll: a 64 px top strip, three columns (430 px | flexible | 540 px) and a
 * 168 px events band; a panel whose list is longer scrolls inside itself. Below 1600 px the panels
 * stack (action queue, usage, systems, CI, events); a phone keeps one column with 16 px gutters.
 * Status is never colour alone: up is a dot, degraded a square, down a diamond, no data a dashed ring,
 * and every chip says its word. Every text colour, status colours included, is 4.5:1 or better on
 * every ground it sits on (ground, panel, row, hover, selected), in both palettes. The --lf-* tokens
 * are re-pointed here so the drawer's detail (today's sections) reads in the same palette. */

.infra-root.noc-root {
  --noc-ground: #07090D; --noc-panel: #10151D; --noc-border: #1E2733; --noc-border-strong: #2C3848; --noc-row: #141B25;
  --noc-hover: #1A2330; --noc-selected: #0F2540; --noc-track: #1E2733;
  --noc-text: #E6EDF3; --noc-muted: #8B98A8;
  --noc-ok: #3FB950; --noc-warn: #F2B53A; --noc-crit: #FF7B72; --noc-info: #58A6FF;
  --noc-info-area: rgba(88, 166, 255, 0.18); --noc-shadow: rgba(0, 0, 0, 0.65);
  --noc-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --lf-bg: #07090D; --lf-panel: #141B25; --lf-panel-alt: #10151D; --lf-panel-hover: #1A2330;
  --lf-border: #1E2733; --lf-border-strong: #2C3848; --lf-text: #E6EDF3; --lf-text-muted: #8B98A8; --lf-text-dim: #8B98A8;
  --lf-accent: #58A6FF; --lf-accent-hover: #79B8FF; --lf-accent-bg: #0F2540; --lf-accent-contrast: #07090D;
  --lf-success: #3FB950; --lf-success-bg: #0F2A17; --lf-success-border: rgba(63, 185, 80, 0.4);
  --lf-warn: #F2B53A; --lf-warn-bg: #33270C; --lf-warn-border: rgba(242, 181, 58, 0.4);
  --lf-error: #FF7B72; --lf-error-bg: #3A1A1A; --lf-error-border: rgba(255, 123, 114, 0.4);
  --lf-info: #58A6FF; --lf-btn-bg: #1A2330; --lf-btn-hover: #223044; --lf-input-bg: #07090D;
  color-scheme: dark;
  max-width: none; margin: 0; padding: 12px 16px;
  background: var(--noc-ground); color: var(--noc-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 13px;
}
/* The light NOC palette: the same roles on white panels over a pale ground. The CI charts take their
   own light steps from infrastructure-charts.css. */
html[data-theme="light"] .infra-root.noc-root {
  --noc-ground: #F3F5F8; --noc-panel: #FFFFFF; --noc-border: #D0D7DE; --noc-border-strong: #AFB8C1; --noc-row: #F6F8FA;
  --noc-hover: #EAEEF2; --noc-selected: #DDF4FF; --noc-track: #E1E6EB;
  --noc-text: #1F2328; --noc-muted: #59636E;
  --noc-ok: #1A6E31; --noc-warn: #875B00; --noc-crit: #C11E2A; --noc-info: #0A5FC4;
  --noc-info-area: rgba(10, 95, 196, 0.14); --noc-shadow: rgba(31, 35, 40, 0.18);
  --lf-bg: #F3F5F8; --lf-panel: #F6F8FA; --lf-panel-alt: #FFFFFF; --lf-panel-hover: #EAEEF2;
  --lf-border: #D0D7DE; --lf-border-strong: #AFB8C1; --lf-text: #1F2328; --lf-text-muted: #59636E; --lf-text-dim: #59636E;
  --lf-accent: #0A5FC4; --lf-accent-hover: #0850A6; --lf-accent-bg: #DDF4FF; --lf-accent-contrast: #FFFFFF;
  --lf-success: #1A6E31; --lf-success-bg: #DAFBE1; --lf-success-border: rgba(26, 110, 49, 0.35);
  --lf-warn: #875B00; --lf-warn-bg: #FFF8C5; --lf-warn-border: rgba(135, 91, 0, 0.35);
  --lf-error: #C11E2A; --lf-error-bg: #FFEBE9; --lf-error-border: rgba(193, 30, 42, 0.35);
  --lf-info: #0A5FC4; --lf-btn-bg: #F6F8FA; --lf-btn-hover: #EAEEF2; --lf-input-bg: #FFFFFF;
  color-scheme: light;
}
.noc-mono { font-family: var(--noc-mono); font-variant-numeric: tabular-nums; }
.noc-muted { color: var(--noc-muted); }
.noc-nodata { color: var(--noc-muted); font-size: 12px; font-style: italic; }
.noc-none { margin: 6px 0; color: var(--noc-muted); }

/* Every clickable thing on the wall is a plain button or link that fills its row. */
.noc-root .noc-kpi, .noc-root .noc-item, .noc-root .noc-next-item, .noc-root .noc-tile, .noc-root .noc-runner,
.noc-root .noc-acct, .noc-root .noc-event, .noc-root .noc-link-btn, .noc-root .noc-drawer-close {
  font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; text-align: left; cursor: pointer; text-decoration: none;
}
.noc-root :is(button, a):focus-visible { outline: 2px solid var(--noc-info); outline-offset: 2px; }
.noc-link-btn { color: var(--noc-info) !important; font-size: 12px !important; font-weight: 600; white-space: nowrap; }
.noc-link-btn:hover { text-decoration: underline !important; }

/* Status marks. */
.noc-mark { display: inline-block; flex: none; width: 9px; height: 9px; margin-right: 6px; vertical-align: 0; box-sizing: border-box; }
.noc-mark.is-up { border-radius: 50%; background: var(--noc-ok); }
.noc-mark.is-degraded { border-radius: 1px; background: var(--noc-warn); }
.noc-mark.is-down { background: var(--noc-crit); transform: rotate(45deg) scale(0.85); }
.noc-mark.is-nodata { border-radius: 50%; border: 1.5px dashed var(--noc-muted); }
/* The Scheduled jobs panel's two more: skipped is a hollow square, running a ring in the info colour. */
.noc-mark.is-skipped { border-radius: 1px; border: 1.5px solid var(--noc-muted); }
.noc-mark.is-running { border-radius: 50%; border: 2px solid var(--noc-info); }

/* Chips: a word in its status colour, on the panel. */
.noc-chip {
  display: inline-block; flex: none; padding: 1px 6px; border: 1px solid currentColor; border-radius: 4px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.4px; line-height: 15px; white-space: nowrap;
}
.noc-chip.is-ok { color: var(--noc-ok); }
.noc-chip.is-warn { color: var(--noc-warn); }
.noc-chip.is-crit { color: var(--noc-crit); }
.noc-chip.is-info { color: var(--noc-info); }
.noc-chip.is-muted { color: var(--noc-muted); }

/* ── Top strip ── */

.noc-top { display: flex; align-items: center; gap: 14px; height: 64px; flex: none; min-width: 0; }
.noc-brand { display: flex; flex-direction: column; gap: 2px; flex: none; }
.noc-title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: 0.2px; }
.noc-mode-link, .noc-betas-link { font-size: 11.5px; color: var(--noc-info); }
.noc-overall { display: flex; flex-direction: column; gap: 3px; flex: none; min-width: 0; max-width: 230px; }
.noc-pill {
  display: inline-flex; align-items: center; align-self: flex-start; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.6px; border: 1px solid currentColor;
}
.noc-pill.is-ok { color: var(--noc-ok); }
.noc-pill.is-attention { color: var(--noc-warn); }
.noc-pill.is-down { color: var(--noc-crit); }
.noc-pill.is-nodata { color: var(--noc-muted); }
.noc-overall-line { color: var(--noc-muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noc-kpis { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.noc-kpis > li { min-width: 0; }
.noc-root .noc-kpi {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: baseline;
  width: 100%; height: 54px; box-sizing: border-box; padding: 6px 10px; border-radius: 6px;
  background: var(--noc-row); border: 1px solid var(--noc-border); border-left: 3px solid var(--noc-muted);
}
.noc-root .noc-kpi:hover { background: var(--noc-hover); }
/* The card whose detail the drawer shows: a tinted fill and a ring in the info colour, its status
   colour kept on the left edge (aria-expanded carries the same for a screen reader). */
.noc-root .noc-kpi[aria-expanded="true"] {
  background: var(--noc-selected); border-top-color: var(--noc-info); border-right-color: var(--noc-info); border-bottom-color: var(--noc-info);
  box-shadow: inset 0 0 0 1px var(--noc-info);
}
.noc-kpi.is-ok { border-left-color: var(--noc-ok); }
.noc-kpi.is-warn { border-left-color: var(--noc-warn); }
.noc-kpi.is-crit { border-left-color: var(--noc-crit); }
.noc-kpi.is-info { border-left-color: var(--noc-info); }
.noc-kpi-label { grid-column: 1 / -1; color: var(--noc-muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noc-kpi-value { font-size: 20px; font-weight: 500; line-height: 26px; white-space: nowrap; }
.noc-kpi-value.is-none { font-size: 11.5px; font-style: italic; font-weight: 400; color: var(--noc-muted); }
.noc-kpi-sub { color: var(--noc-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noc-clock { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; flex: none; text-align: right; }
.noc-clock-time { font-size: 20px; font-weight: 500; grid-row: 1; grid-column: 2; }
.noc-clock-date { grid-row: 2; grid-column: 1 / -1; color: var(--noc-muted); font-size: 11px; }
.noc-live { grid-row: 1; grid-column: 1; color: var(--noc-muted); font-size: 11.5px; font-weight: 700; }
.noc-live::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; border: 1.5px dashed var(--noc-muted); box-sizing: border-box; }
.noc-live.is-live { color: var(--noc-ok); }
.noc-live.is-live::before { border: 0; background: var(--noc-ok); animation: noc-pulse 2s ease-in-out infinite; }
@keyframes noc-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .noc-live.is-live::before { animation: none; } }

/* ── The grid ── */

.noc-grid { display: grid; gap: 12px; min-width: 0; margin-top: 12px; }
.noc-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--noc-panel); border: 1px solid var(--noc-border); border-radius: 8px; overflow: hidden; }
.noc-panel-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px 6px; min-width: 0; flex: none; }
.noc-panel-title { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; white-space: nowrap; }
.noc-panel-meta { margin-left: auto; color: var(--noc-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.noc-panel-head .noc-link-btn { margin-left: auto; }
.noc-panel-body { min-height: 0; padding: 0 12px 10px; }
.noc-sub-head { display: flex; align-items: baseline; gap: 8px; }
.noc-sub-head .noc-link-btn { margin-left: auto; }
.noc-sub-title { margin: 8px 0 6px; color: var(--noc-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }
.noc-foot { margin: 6px 0 0; color: var(--noc-muted); font-size: 11.5px; }
.noc-ci { display: grid; gap: 12px; min-width: 0; min-height: 0; }
.noc-actions { grid-area: actions; }
.noc-systems { grid-area: systems; }
.noc-ci { grid-area: ci; }
.noc-usage { grid-area: usage; }
.noc-events { grid-area: events; }
.noc-jobs { grid-area: jobs; }

@media (min-width: 1600px) {
  .infra-root.noc-root { height: calc(100vh - var(--lf-nav-h, 44px)); box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; }
  .noc-grid {
    flex: 1; min-height: 0;
    grid-template-columns: 430px minmax(0, 1fr) 540px;
    grid-template-rows: auto minmax(0, 1fr) 168px;
    grid-template-areas: "actions systems usage" "actions ci usage" "events events jobs";
  }
  .noc-ci { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .noc-panel-body { flex: 1; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--noc-border-strong) transparent; }
  .noc-actions-body { flex: 1 1 60%; }
  .noc-next { flex: 0 1 auto; max-height: 40%; display: flex; flex-direction: column; min-height: 0; padding: 0 12px 10px; border-top: 1px solid var(--noc-border); }
  .noc-next-list { overflow: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--noc-border-strong) transparent; }
}
@media (max-width: 1599.98px) {
  .noc-top { height: auto; flex-wrap: wrap; row-gap: 10px; }
  .noc-kpis { order: 3; flex-basis: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .noc-clock { margin-left: auto; }
  .noc-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "actions" "usage" "systems" "ci" "jobs" "events"; }
  .noc-ci { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .noc-next { padding: 0 12px 10px; border-top: 1px solid var(--noc-border); }
}
@media (max-width: 760px) {
  .infra-root.noc-root { padding: 12px 16px; }
  .noc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .noc-ci { grid-template-columns: minmax(0, 1fr); }
  .noc-overall { max-width: none; }
}

/* ── Action queue ── */

.noc-lane { margin-top: 4px; }
.noc-lane-title { margin: 6px 0 4px; color: var(--noc-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }
.noc-count { color: var(--noc-text); margin-left: 4px; }
.noc-items, .noc-next-list, .noc-tiles, .noc-runner-list, .noc-accts, .noc-speed, .noc-events-list, .noc-legend { list-style: none; margin: 0; padding: 0; }
.noc-items { display: grid; gap: 4px; }
.noc-root .noc-item {
  display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; min-height: 40px; padding: 5px 8px;
  background: var(--noc-row); border-radius: 6px; border-left: 3px solid var(--noc-warn);
}
.noc-root .noc-item.is-error { border-left-color: var(--noc-crit); }
.noc-root .noc-item:hover { background: var(--noc-hover); }
.noc-item-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.noc-item-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noc-item-meta { color: var(--noc-muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noc-age { flex: none; font-size: 12px; color: var(--noc-muted); }
.noc-age.is-old { color: var(--noc-crit); font-weight: 600; }
.noc-clear { display: flex; align-items: center; margin: 8px 0; }
.noc-next-list { display: grid; gap: 2px; }
.noc-root .noc-next-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: baseline; gap: 6px; width: 100%; box-sizing: border-box; padding: 4px 6px; border-radius: 4px; min-height: 28px; }
.noc-root .noc-next-item:hover { background: var(--noc-row); }
.noc-next-pos { color: var(--noc-muted); font-size: 12px; }
.noc-next-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noc-next-where { color: var(--noc-muted); font-size: 11.5px; white-space: nowrap; }

/* ── Systems ── */

.noc-legend { display: flex; gap: 12px; margin-left: auto; color: var(--noc-muted); font-size: 11.5px; flex-wrap: wrap; justify-content: flex-end; }
.noc-legend-item { display: inline-flex; align-items: center; white-space: nowrap; }
.noc-legend-item .noc-mono { color: var(--noc-text); margin-left: 4px; }
.noc-sys-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: start; padding: 4px 0; border-top: 1px solid var(--noc-border); }
.noc-sys-row:first-child { border-top: 0; }
.noc-sys-label { margin: 8px 0 0; color: var(--noc-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; }
.noc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 4px; }
.noc-tiles > li, .noc-items > li, .noc-next-list > li, .noc-runner-list > li, .noc-accts > li, .noc-events-list > li { min-width: 0; }
.noc-root .noc-tile { display: flex; flex-direction: column; width: 100%; box-sizing: border-box; padding: 4px 8px; border-radius: 6px; background: var(--noc-row); min-height: 38px; }
.noc-root .noc-tile:hover { background: var(--noc-hover); }
.noc-tile-top { display: flex; align-items: center; min-width: 0; }
.noc-tile-name { font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noc-tile-meta { color: var(--noc-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── CI runners ── */

.noc-runner-list { display: grid; gap: 2px; }
.noc-root .noc-runner { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr) 62px; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; padding: 3px 4px; border-radius: 4px; min-height: 22px; }
.noc-root .noc-runner:hover { background: var(--noc-row); }
.noc-runner-name { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noc-runner.is-off .noc-runner-name, .noc-runner.is-off .noc-runner-used { color: var(--noc-muted); }
.noc-cells { display: flex; gap: 2px; flex-wrap: wrap; }
.noc-cell { width: 11px; height: 12px; border-radius: 2px; box-sizing: border-box; border: 1px solid var(--noc-border-strong); }
.noc-cell.is-busy { background: var(--noc-info); border-color: var(--noc-info); }
.noc-cell.is-over { background: var(--noc-warn); border-color: var(--noc-warn); }
.noc-cell.is-off { background: var(--noc-track); border-color: var(--noc-track); }
.noc-runner-used { text-align: right; font-size: 12px; }
.noc-chart { margin: 8px 0 0; }
.noc-chart figcaption { display: flex; justify-content: space-between; gap: 8px; color: var(--noc-muted); font-size: 11.5px; margin-bottom: 2px; }
.noc-chart figcaption b { color: var(--noc-text); font-weight: 500; }
.noc-chart-svg { display: block; width: 100%; height: 48px; }
.noc-chart-area { fill: var(--noc-info-area); }
.noc-chart-line { fill: none; stroke: var(--noc-info); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* ── CI health ── */

.noc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.noc-stat, .noc-sum { display: flex; flex-direction: column; min-width: 0; padding: 6px 8px; border-radius: 6px; background: var(--noc-row); }
.noc-stat-k { color: var(--noc-muted); font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noc-stat-v { font-size: 20px; font-weight: 500; line-height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noc-stat-sub { color: var(--noc-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noc-speed { display: grid; gap: 3px; }
.noc-speed-row { display: grid; grid-template-columns: minmax(0, 104px) minmax(0, 1fr) 72px minmax(0, 76px); align-items: center; gap: 8px; font-size: 12px; }
.noc-speed-name, .noc-speed-cmp { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noc-speed-cmp { color: var(--noc-muted); font-size: 11px; }
.noc-speed-track { height: 8px; border-radius: 2px; background: var(--noc-track); overflow: hidden; }
.noc-speed-bar { display: block; height: 100%; background: var(--ic-c, var(--noc-info)); }
.noc-speed-v { text-align: right; white-space: nowrap; font-size: 11.5px; }

/* ── Claude usage ── */

.noc-sums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.noc-sum .noc-stat-v { font-size: 16px; line-height: 22px; }
.noc-accts { display: grid; gap: 5px; margin-top: 8px; }
.noc-root .noc-acct { display: flex; flex-direction: column; gap: 2px; width: 100%; box-sizing: border-box; padding: 5px 10px 6px; border-radius: 6px; background: var(--noc-row); }
.noc-root .noc-acct:hover { background: var(--noc-hover); }
.noc-acct-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.noc-acct-name { font-weight: 700; white-space: nowrap; }
.noc-acct-email { margin-left: auto; color: var(--noc-muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.noc-acct-note { color: var(--noc-info); font-size: 11.5px; }
.noc-bar-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 50px 90px; align-items: center; gap: 8px; font-size: 12px; }
.noc-bar-k { color: var(--noc-muted); font-size: 11px; }
.noc-bar { position: relative; height: 6px; border-radius: 3px; background: var(--noc-track); }
.noc-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--noc-info); }
.noc-bar-fill.is-warn { background: var(--noc-warn); }
.noc-bar-fill.is-crit { background: var(--noc-crit); }
.noc-bar-tick { position: absolute; top: -3px; width: 2px; height: 12px; margin-left: -1px; background: var(--noc-text); border-radius: 1px; }
.noc-bar-v { text-align: right; white-space: nowrap; }
.noc-bar-reset { color: var(--noc-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noc-acct-foot { display: flex; gap: 10px; min-width: 0; font-size: 11.5px; color: var(--noc-muted); }
.noc-acct-doing { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--noc-text); }
.noc-acct-disk { flex: none; }
.noc-acct-disk.is-warn { color: var(--noc-warn); }
.noc-acct-disk.is-crit { color: var(--noc-crit); }
.noc-asof { flex: none; font-variant-numeric: tabular-nums; }
.noc-asof.is-old { color: var(--noc-warn); font-weight: 600; }
.noc-acct-error { color: var(--noc-warn); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noc-refill { margin-top: 2px; }
.noc-tl { position: relative; height: 54px; margin: 18px 4px 0; border-top: 2px solid var(--noc-border-strong); }
.noc-tl-now, .noc-tl-day { position: absolute; top: -17px; color: var(--noc-muted); font-size: 10.5px; transform: translateX(-50%); }
.noc-tl-now { transform: none; color: var(--noc-text); }
.noc-tl-day::after { content: ""; position: absolute; left: 50%; top: 14px; width: 1px; height: 8px; background: var(--noc-border-strong); }
.noc-tl-mark { position: absolute; top: -7px; width: 0; }
.noc-tl-mark::before { content: ""; position: absolute; left: -6px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--noc-info); border: 2px solid var(--noc-panel); }
.noc-tl-label { position: absolute; left: 0; top: 12px; transform: translateX(-50%); font-size: 10.5px; line-height: 13px; white-space: nowrap; color: var(--noc-text); }
.noc-tl-mark.is-lane-1 .noc-tl-label { top: 25px; }
.noc-tl-mark.is-lane-2 .noc-tl-label { top: 38px; }
.noc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noc-tl-empty { position: absolute; top: 8px; left: 0; }

/* ── Events ── */

.noc-events-list { columns: 2; column-gap: 20px; }
.noc-events-list > li { break-inside: avoid; }
.noc-root .noc-event { display: grid; grid-template-columns: 78px 88px minmax(0, 1fr) minmax(0, 170px); align-items: center; gap: 8px; width: 100%; box-sizing: border-box; padding: 2px 4px; border-radius: 4px; min-height: 21px; }
.noc-root .noc-event:hover { background: var(--noc-row); }
.noc-ev-time { color: var(--noc-muted); font-size: 11.5px; white-space: nowrap; }
.noc-event .noc-chip { justify-self: start; }
.noc-ev-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noc-ev-where { color: var(--noc-muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .noc-events-list { columns: 1; } }
@media (max-width: 760px) {
  .noc-root .noc-event { grid-template-columns: 64px 88px minmax(0, 1fr); }
  .noc-ev-where { grid-column: 3; }
  .noc-root .noc-runner { grid-template-columns: minmax(0, 1fr) auto 56px; }
  .noc-speed-row { grid-template-columns: minmax(0, 90px) minmax(0, 1fr) 72px; }
  .noc-speed-cmp { display: none; }
  .noc-bar-row { grid-template-columns: 34px minmax(0, 1fr) 40px; }
  .noc-bar-reset { grid-column: 2 / -1; }
  .noc-sums, .noc-stats { grid-template-columns: minmax(0, 1fr); }
  .noc-sys-row { grid-template-columns: minmax(0, 1fr); }
  .noc-root .noc-item, .noc-root .noc-next-item, .noc-root .noc-acct, .noc-root .noc-tile { min-height: 44px; }
}

/* ── The drawer: today's detail for whatever was clicked ── */
/* It opens under the top strip while the strip is on screen, so a second click on the card that
   opened it closes it (the page sets --noc-drawer-top; a phone gets the whole screen). */

.noc-drawer {
  position: fixed; top: var(--noc-drawer-top, var(--lf-nav-h, 44px)); right: 0; bottom: 0; z-index: 41;
  width: min(760px, 100vw); box-sizing: border-box; display: flex; flex-direction: column;
  background: var(--noc-panel); border-left: 1px solid var(--noc-border); box-shadow: -16px 0 48px var(--noc-shadow);
}
.noc-drawer[hidden] { display: none; }
.noc-drawer-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--noc-border); flex: none; }
.noc-drawer-title { margin: 0; font-size: 16px; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.noc-root .noc-drawer-close { margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 6px; font-size: 18px; color: var(--noc-muted); flex: none; text-align: center; }
.noc-root .noc-drawer-close:hover { background: var(--noc-row); color: var(--noc-text); }
.noc-drawer-body { flex: 1; min-height: 0; overflow: auto; padding: 12px 16px 24px; }
.noc-drawer-body .infra-section { margin: 0 0 16px; }
.noc-drawer-body .infra-workers-grid { grid-template-columns: minmax(0, 1fr); }
.noc-drawer-card .infra-lane-scroll { max-height: none; }
.noc-drawer-more { margin: 12px 0 0; }

/* ── Scheduled jobs (owner, 2026-10-28 10:56 AM: "NOC should show us the job list, scheduling, etc") ──
   On the wall: four counts and the next 3 runs, in the bottom band beside the events. The full list
   and each job are in the drawer (views/infrastructure-jobs.js). */

.noc-sj-counts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.noc-sj-counts > li { min-width: 0; }
.noc-root .noc-sj-count {
  font: inherit; color: inherit; margin: 0; cursor: pointer; text-align: left; width: 100%; box-sizing: border-box;
  display: flex; flex-direction: column; padding: 3px 8px; border-radius: 6px; min-height: 40px;
  background: var(--noc-row); border: 1px solid var(--noc-border); border-left: 3px solid var(--noc-muted);
}
.noc-root .noc-sj-count:hover { background: var(--noc-hover); }
.noc-sj-count.is-ok { border-left-color: var(--noc-ok); }
.noc-sj-count.is-warn { border-left-color: var(--noc-warn); }
.noc-sj-count.is-crit { border-left-color: var(--noc-crit); }
.noc-sj-count-v { font-size: 17px; font-weight: 500; line-height: 20px; white-space: nowrap; }
.noc-sj-count-v.is-none { font-size: 11px; font-style: italic; color: var(--noc-muted); font-family: inherit; }
.noc-sj-count-k { color: var(--noc-muted); font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noc-sj-next-head { margin: 6px 0 2px; color: var(--noc-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; }
.noc-sj-next-head .noc-muted { text-transform: none; font-weight: 400; letter-spacing: 0; }
.noc-sj-next-list { list-style: none; margin: 0; padding: 0; }
.noc-sj-next-list > li { min-width: 0; }
.noc-root .noc-sj-next {
  font: inherit; color: inherit; background: none; border: 0; margin: 0; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: baseline;
  width: 100%; box-sizing: border-box; padding: 1px 4px; border-radius: 4px; min-height: 20px;
}
.noc-root .noc-sj-next:hover { background: var(--noc-row); }
/* A run on another day reads "Thu 12:05 AM", 12 characters: on one line, the same width on every
   row, so the strip keeps its height when the next runs pass midnight. */
.noc-sj-next-when { white-space: nowrap; min-width: 12ch; }
.noc-sj-next-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noc-sj-next-sched { color: var(--noc-muted); font-size: 11.5px; white-space: nowrap; }
.noc-sj-next-none { padding: 2px 4px; }

/* The drawer's list: a row per job, as a button that opens the job. */
.noc-sj-headline { margin: 0 0 6px; }
.noc-sj-notes { margin: 0 0 8px; padding-left: 18px; color: var(--noc-muted); font-size: 12px; }
.noc-sj-group { margin: 0 0 14px; }
.noc-sj-cols, .noc-root .noc-sj-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 120px 150px; gap: 10px; align-items: start; }
.noc-sj-cols { padding: 0 6px 4px; color: var(--noc-muted); font-size: 10.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; border-bottom: 1px solid var(--noc-border); }
.noc-sj-list { list-style: none; margin: 0; padding: 0; }
.noc-sj-list > li { min-width: 0; border-bottom: 1px solid var(--noc-border); }
.noc-root .noc-sj-row {
  font: inherit; color: inherit; background: none; border: 0; margin: 0; cursor: pointer; text-align: left;
  width: 100%; box-sizing: border-box; padding: 6px; border-radius: 4px; min-height: 44px;
}
.noc-root .noc-sj-row:hover { background: var(--noc-row); }
.noc-root .noc-sj-row.is-overdue { box-shadow: inset 3px 0 0 var(--noc-warn); }
.noc-root .noc-sj-row.is-paused .noc-sj-name { color: var(--noc-muted); }
.noc-sj-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.noc-sj-res { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; }
.noc-sj-name { font-weight: 600; overflow-wrap: anywhere; }
.noc-sj-sub { color: var(--noc-muted); font-size: 11.5px; }
.noc-sj-nextcell.is-warn { color: var(--noc-warn); font-weight: 600; }
.noc-sj-chip { display: inline-flex; align-items: center; }
.noc-sj-chip .noc-mark { margin-right: 4px; }

/* One job. */
.noc-sj-role { margin: 0 0 4px; }
.noc-sj-where { margin: 0 0 10px; }
.noc-sj-stats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 8px; }
.noc-stat-v.noc-sj-stat-v { font-size: 14px; line-height: 20px; white-space: normal; }
.noc-sj-detail { margin: 6px 0; padding: 6px 8px; border-radius: 6px; background: var(--noc-row); overflow-wrap: anywhere; }
.noc-sj-detail.is-crit { box-shadow: inset 3px 0 0 var(--noc-crit); }
.noc-sj-gap { margin: 6px 0; }
.noc-sj-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.noc-sj-controls .adm-btn { min-height: 44px; min-width: 96px; }
.noc-sj-control-status { color: var(--noc-muted); font-size: 12.5px; }
.noc-sj-control-status.is-error { color: var(--noc-crit); }
.noc-sj-links { margin: 8px 0; }
.noc-sj-runs { list-style: none; margin: 0; padding: 0; }
.noc-sj-run { border-bottom: 1px solid var(--noc-border); }
.noc-sj-run-head { display: grid; grid-template-columns: 110px 130px minmax(0, 1fr) 80px; gap: 8px; align-items: center; padding: 6px 4px; min-height: 32px; cursor: pointer; }
.noc-sj-run.is-plain .noc-sj-run-head { cursor: default; }
.noc-sj-run-head > .noc-sj-chip { justify-self: start; }
.noc-sj-run-trigger { color: var(--noc-muted); overflow-wrap: anywhere; }
.noc-sj-run-dur { text-align: right; color: var(--noc-muted); }
.noc-sj-run-stats { margin: 0 4px 6px; color: var(--noc-muted); }
.noc-sj-run-errors { margin: 0 4px 6px; padding-left: 18px; color: var(--noc-crit); }
.noc-sj-log { margin: 0 4px 8px; padding: 8px; max-height: 260px; overflow: auto; border-radius: 6px; background: var(--noc-ground); font-family: var(--noc-mono); font-size: 11.5px; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .noc-sj-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .noc-sj-cols { display: none; }
  .noc-root .noc-sj-row { grid-template-columns: minmax(0, 1fr) auto; }
  .noc-sj-lastcell, .noc-sj-nextcell { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .noc-sj-lastcell::before { content: "Last run:"; color: var(--noc-muted); font-size: 11.5px; }
  .noc-sj-nextcell::before { content: "Next:"; color: var(--noc-muted); font-size: 11.5px; }
  .noc-sj-res { grid-row: 1; grid-column: 2; justify-content: flex-end; }
  .noc-sj-run-head { grid-template-columns: auto minmax(0, 1fr) auto; }
  .noc-sj-run-trigger { grid-column: 1 / -1; grid-row: 2; }
  .noc-root .noc-sj-next { grid-template-columns: auto minmax(0, 1fr); min-height: 44px; align-items: center; }
  .noc-sj-next-sched { display: none; }
}
