.runs main {max-width:1280px;margin:auto;padding:24px}
.runs-grid,.run-metrics {display:grid;gap:14px}
.runs-grid {grid-template-columns:minmax(0,1fr)}
.run-metrics {grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))}
.run-disclosure summary {cursor:pointer;font-size:1.1rem;font-weight:700}
.run-disclosure[open] summary {margin-bottom:14px}
.run-finished-list {margin:0;padding:0;list-style:none}
.run-finished-list li {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:10px 0;border-top:1px solid #345064}
.run-finished-list small {display:block;margin-top:4px}
.run-slots-note {margin:0}
.run-card {border:1px solid #345064;border-radius:12px;background:#13232e;padding:20px}
.run-source {padding:12px;border-radius:8px;background:#133a36;color:#b2f4df}
.run-page-heading {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.run-clock,.run-timing div {padding:10px;background:#0d1b25;border:1px solid #345064;border-radius:6px}
.run-clock span,.run-timing dt {display:block;font-size:.85rem;color:#b9cbd9}
.run-clock time,.run-timing dd {display:block;margin:4px 0 0;font-weight:700;font-variant-numeric:tabular-nums}
.run-timing {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr));gap:8px}
.run-fields {display:grid;gap:10px}
.run-fields label {display:grid;gap:5px}
.run-fields input,.run-fields select {width:100%;min-height:42px;box-sizing:border-box;background:#0d1b25;color:#edf5fa;border:1px solid #567382;border-radius:6px;padding:8px;font:inherit}
.run-fields button,.run-actions button {border:1px solid #6294a8;border-radius:6px;padding:9px 12px;background:#174458;color:#fff;cursor:pointer;font:inherit}
.run-list {list-style:none;padding:0}
.run-list li {padding:12px;border-bottom:1px solid #345064}
.run-list small {display:block;margin-top:4px}
.run-list .run-select-row {display:flex;align-items:center;gap:12px}
.run-select-row input {width:20px;height:20px;flex:none;accent-color:#59c6ec}
.run-actions .run-delete {background:#5f262d;border-color:#b26169}
.ota-checksum {overflow-wrap:anywhere}
.run-back {margin-left:auto;padding:8px 10px;border:1px solid #6294a8;border-radius:6px;background:#174458;color:#fff;text-decoration:none}
.run-metrics div {padding:10px;border:1px solid #345064;border-radius:5px}
.run-metrics dd {margin:4px 0 0;font-weight:700}
.run-chart {display:block;width:100%;max-height:360px}
.run-chart text {fill:currentColor;font:14px system-ui,sans-serif}
.chart-grid {stroke:#72818a;opacity:.55}
.chart-power {stroke:#2795c7;stroke-width:2.5;fill:none}
.chart-reference {stroke:#9160bd;stroke-width:2;stroke-dasharray:8 5;fill:none}
.run-legend .reference-key::before {content:"";display:inline-block;width:28px;margin-right:6px;border-top:3px dashed #9160bd;vertical-align:middle}
.chart-limit,.chart-alarm {stroke-width:4}
.chart-limit {stroke:#b97400}
.chart-alarm {stroke:#d02930}
.run-table {overflow:auto}
.run-table table {width:100%;border-collapse:collapse}
.run-table th,.run-table td {padding:8px;border-bottom:1px solid #78909c;text-align:left}
.run-report-header {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;padding:14px 16px;border-radius:8px;background:#fff;color:#283641;border-bottom:3px solid #eb6325}
.run-report-header img {width:146px;height:auto;object-fit:contain}
.run-report-header address {font-style:normal;text-align:right;font-size:.83em}
.run-report-title {display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:16px 0 10px}
.run-report-title h2,.run-report-title p {margin:0}
.run-report-title p {color:#ff9a68;font-size:.8em;font-weight:700;text-transform:uppercase;letter-spacing:.09em}
.run-report-title strong {border:1px solid #d97d55;border-radius:5px;padding:5px 9px;overflow-wrap:anywhere}
.run-identity {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr));gap:8px;margin:10px 0 16px}
.run-identity div {padding:8px 10px;border-left:2px solid #dd682f;background:#0e1e29}
.run-identity dt {font-size:.8em;color:#b9cbd9}
.run-identity dd {margin:3px 0 0;font-weight:700;overflow-wrap:anywhere}
.run-report-footer {display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;border-top:2px solid #d56736;margin-top:16px;padding-top:8px;color:#b9cbd9;font-size:.8em}
.run-print-summary {display:none}
@media print {
  @page {size:A4 portrait;margin:12mm}
  :root:has(.run-report-page) {background:#fff;color:#202d38;color-scheme:light}
  .sidebar,.run-actions {display:none!important}
  body,.topbar,.run-card {background:white!important;color:black!important}
  .run-report p {color:black}
  .supervisor-layout,.supervisor-layout main {display:block!important;margin:0!important;padding:0!important}
  .run-card {border:0;padding:0}
  .run-table {overflow:visible}
  .run-chart,.run-metrics,.run-table tr {break-inside:avoid}
  .run-report-page .topbar,.run-report-page main > h1,.run-report-page main > [role="status"],
  .run-report-page .run-report-detail {display:none!important}
  .run-report-page .supervisor-layout {min-height:0}
  .run-report-page .run-report {color:#202d38!important;font-size:9pt;line-height:1.28;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .run-report-page .run-report-header {padding:0 0 3mm;border-radius:0}
  .run-report-page .run-report-header img {width:39mm}
  .run-report-page .run-report-title {margin:4mm 0 2mm}
  .run-report-page .run-report-title h2 {font-size:22pt;line-height:1}
  .run-report-page .run-report-title p {color:#97411d}
  .run-report-page .run-identity {grid-template-columns:repeat(4,minmax(0,1fr));gap:2mm;margin:2mm 0 3mm}
  .run-report-page .run-identity div {background:#f4f6f8;padding:2mm}
  .run-report-page .run-identity dt {color:#435360}
  .run-report-page .run-metrics {grid-template-columns:repeat(5,minmax(0,1fr));gap:2mm;margin:0 0 3mm}
  .run-report-page .run-metrics div {background:#f3f6f8;border-color:#c9d5dd;padding:2mm}
  .run-report-page .run-metrics dt {font-size:7.5pt}
  .run-report-page .run-metrics dd {font-size:10pt}
  .run-report-page .run-chart {height:55mm}
  .run-report-page .run-legend {font-size:7.5pt}
  .run-report-page .run-report h3 {font-size:11pt;margin:3mm 0 1.5mm}
  .run-report-page .run-report p {margin:1.4mm 0}
  .run-report-page .run-print-summary {display:grid;grid-template-columns:1fr 1fr;gap:4mm;break-inside:avoid}
  .run-print-summary table {width:100%;border-collapse:collapse;font-size:8pt}
  .run-print-summary th,.run-print-summary td {text-align:left;padding:1mm;border-bottom:1px solid #d1dce3}
  .run-print-summary th {background:#edf2f6;color:#263a48}
  .run-report-page .run-report-quality {break-inside:avoid}
  .run-report-page .run-report-footer {color:#435360;margin-top:4mm;padding-top:2mm}
}

.runs .web-login {max-width:430px;padding-top:clamp(24px,10vh,100px)}
.web-login h1 {margin:12px 0 20px}

.run-report-header img {width:145px;object-fit:contain} .run-report-header {background:#122633}
