.machine-title, .machine-top>span:first-child {min-width:0}
.machine-top .status {max-width:54%;white-space:normal;text-align:end;line-height:1.3}
.alertrow:is(button) {width:100%;text-align:start;color:inherit;border:0;border-radius:0;background:transparent;font:inherit;cursor:pointer}
.alertrow:is(button):hover h3,.alertrow:is(button):focus-visible h3 {color:var(--cyan)}
.kpi.warn .kpivalue strong,.kpi.warn .kpihead svg {color:var(--amber)}
[data-display-mode="live"] .machine-meta {gap:2px;padding-top:6px;margin-top:6px}
.lower>.panel {min-width:0}
.coverage-note,.coverage-grid {font-size:12px;line-height:1.5;color:var(--muted)}
.coverage-note {margin:8px 0 0}
.coverage-grid summary {width:fit-content;cursor:pointer;color:var(--cyan);padding:7px 0}
.coverage-scroll {overflow-x:auto;max-width:100%}
.coverage-grid table {border-collapse:collapse;font-variant-numeric:tabular-nums}
.coverage-grid th,.coverage-grid td {padding:5px 8px;text-align:center;white-space:nowrap;border-bottom:1px solid var(--line)}
.coverage-grid tbody th {position:sticky;left:0;background:var(--card);color:var(--white)}
.coverage-grid td small {display:block;font-size:11px}
.coverage-grid td[data-coverage="partial"],.coverage-grid td[data-coverage="interrupted"] {color:var(--amber)}
.sv-filters {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 14px;margin:0 0 12px}
.sv-filter-group {display:flex;flex-wrap:wrap;align-items:center;gap:5px}
.sv-filters button {border:1px solid var(--line);background:transparent;border-radius:5px;padding:5px 9px;color:var(--muted);font:inherit;font-size:12px;cursor:pointer}
.sv-filters button:hover,.sv-filters button:focus-visible,.sv-filters button[aria-pressed="true"] {color:var(--cyan);border-color:var(--cyan);background:#10293a}
.sv-filter-group span {font-family:var(--mono);font-variant-numeric:tabular-nums;margin-inline-start:3px}
.sv-filters .sv-register,.sv-detail-link {color:var(--cyan)}
.sv-register-notice {width:100%;margin:0;color:var(--amber);font-size:12px}
.sv-detail-link {display:inline-block;margin:4px 0 10px}
.sv-no-matches {grid-column:1/-1;margin:0;padding:22px;text-align:center;border:1px dashed var(--line);border-radius:7px;color:var(--muted)}
.sv-issue-group {display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:5px 12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px}
.sv-issue-group:last-child {border-bottom:0}
.sv-issue-group>div {display:flex;flex-wrap:wrap;gap:5px 12px}
.sv-issue {color:var(--state);text-decoration:none;overflow-wrap:anywhere;max-width:100%}
.sv-issue strong {font-weight:500}
:root {--live-history-gap:#D0A8FF}
.machine-meta b.sv-history-gap {color:var(--live-history-gap)}
.fleet-actions .legend [data-tone] {color:var(--state)}
.legend [data-tone] .dot,.statusbar i[data-tone] {background:var(--state)}
.sv-scope {color:var(--muted)}
.fleet .machine[hidden] {display:none}
/* The SVG uses the card's physical width and height. Its normalized perimeter
   keeps both light bands opposite at every size, including rounded corners. */
[data-frame],[data-tone] {--state:#8395A8}
:is([data-frame="producing"],[data-tone="producing"]) {--state:#50DFBB}
:is([data-frame="recovering"],[data-tone="recovering"]) {--state:#65D5F6}
:is([data-frame="stopping"],[data-frame="fault"],[data-tone="stopping"],[data-tone="fault"]) {--state:#FF7484}
:is([data-frame="waiting"],[data-tone="waiting"]) {--state:#E4BD65}
[data-tone="historyGap"] {--state:var(--live-history-gap)}
.fleet .machine[data-frame] {border-color:var(--state);background:var(--card);transition-property:transform}
.fleet .machine[data-frame]::before {content:none}
.fleet .machine[data-frame] .machine-title em {color:var(--white)}
.fleet .machine[data-frame]:focus-visible {outline:2px solid var(--white);outline-offset:2px}
.sv-frame {position:absolute;inset:0;width:100%;height:100%;pointer-events:none;fill:none;stroke:var(--state)}
.sv-frame rect {width:calc(100% - 3px);height:calc(100% - 3px);stroke-width:1.7;stroke-linecap:round;visibility:hidden}
.machine:is([data-frame="producing"],[data-frame="recovering"]) .sv-frame-core,
.machine:is([data-frame="producing"],[data-frame="recovering"]) .sv-frame-tail {visibility:visible}
.machine[data-frame="recovering"] {--sv-period:7.2s}
.machine:is([data-frame="producing"],[data-frame="recovering"]) .sv-frame-core {
  animation:sv-cruise var(--sv-period,4.8s) linear infinite;
  filter:drop-shadow(0 0 1.5px var(--state))
}
.machine:is([data-frame="producing"],[data-frame="recovering"]) .sv-frame-tail {
  opacity:.38;stroke-dashoffset:8;animation:sv-trail var(--sv-period,4.8s) linear infinite
}
/* Breathe on the existing one-pixel border, so a stopped card has one outline. */
@media(prefers-reduced-motion:no-preference){
  .machine:is([data-frame="stopping"],[data-frame="fault"]) {animation:sv-breathe 3.6s ease-in-out infinite}
}
@keyframes sv-cruise {from{stroke-dashoffset:0} to{stroke-dashoffset:-100}}
@keyframes sv-trail {from{stroke-dashoffset:8} to{stroke-dashoffset:-92}}
@keyframes sv-breathe {
  0%,100% {border-color:color-mix(in srgb,var(--state) 55%,transparent)}
  50% {border-color:var(--state)}
}
html[data-motion="paused"] .sv-frame {display:none}
@media(prefers-reduced-motion:reduce){.sv-frame{display:none}.sv-frame rect{animation:none!important}}
.sv-issue small {font:inherit;font-size:12px;color:var(--muted);margin-inline-start:5px}
.sv-issue:hover,.sv-issue:focus-visible {text-decoration:underline}
[data-state-section] {scroll-margin-block-start:18px}
@media(max-width:570px){
  .machine .machine-top {flex-wrap:wrap}
  .machine-top .status {max-width:100%}
  .machine .machine-meta>span {flex-wrap:wrap;gap:2px 6px}
  .machine .machine-meta b {max-width:100%;overflow-wrap:anywhere}
  .chart svg text {font-size:10px}
}
