.machine-op-park,.machine-op-insight,.machine-op-metrics,.machine-op-actions,.machine-op-notice,.machine-op-late,.machine-op-dialog { box-sizing:border-box; color:#21374a; font-family:inherit; }
.machine-op-park { margin:16px 0; }
.machine-op-park h2 { margin:0 0 8px; font-size:15px; }
.machine-op-counts,.machine-op-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr)); gap:8px; }
.machine-op-counts button,.machine-op-button { display:inline-flex; align-items:center; gap:8px; min-height:38px; padding:7px 12px; border:1px solid #d9e5e9; border-radius:8px; background:#fff; color:#20374a; font:inherit; cursor:pointer; }
.machine-op-counts button[aria-pressed=true] { border-color:#098172; background:#ecf8f4; }
.machine-op-counts strong { margin-inline-start:auto; font-size:18px; }
.machine-op-dot { display:inline-block; width:9px; height:9px; flex:0 0 9px; border-radius:50%; background:#81909b; }
.machine-op-dot[data-state=available] { background:#269266; }
.machine-op-dot[data-state=fault] { background:#c33e4d; }
.machine-op-dot[data-state=maintenance] { background:#c88b35; }
.machine-op-pill { display:inline-flex; align-items:center; gap:6px; border-radius:6px; padding:3px 8px; background:#edf2f5; color:#485e71; font-size:12px; white-space:nowrap; }
.machine-op-pill[data-state=available] { color:#21634b; background:#e8f5ed; }
.machine-op-pill[data-state=fault],.machine-op-button[data-value=fault] { color:#9b303d; background:#fff0ef; border-color:#e9babd; }
.machine-op-pill[data-state=maintenance] { color:#825e22; background:#fff5e5; }
.machine-op-link { border:0; padding:4px 2px; background:transparent; color:inherit; font:inherit; text-align:left; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.machine-op-notice,.machine-op-late { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; border:1px solid #d5e0e5; border-radius:9px; padding:10px 14px; margin:8px 0; background:#f2f5f7; }
.machine-op-notice[data-state=fault] { background:#fff2f1; color:#8c2b37; border-color:#edc5c5; }
.machine-op-notice[data-state=maintenance],.machine-op-late { background:#fff8eb; color:#75521c; border-color:#ebd9b7; }
.machine-op-notice-copy { flex:1 1 230px; min-width:0; overflow-wrap:anywhere; }
.machine-op-notice-copy>* { display:block; }
.machine-op-note { font-size:.92em; white-space:pre-wrap; }
.machine-op-clock { display:grid; font-variant-numeric:tabular-nums; }
.machine-op-clock small,.machine-op-quiet,.machine-op-metric small { font-size:12px; }
.machine-op-clock flow-machine-elapsed { font-weight:650; }
.machine-op-actions { display:flex; flex-wrap:wrap; gap:7px; margin:12px 0; }
.machine-op-fault { box-shadow:inset 0 0 0 2px #e8a1a5,0 0 18px #b8334219; }
.machine-op-metrics { margin:15px 0; }
.machine-op-metric,.machine-op-insight-grid>section,.machine-op-insight>section { border:1px solid #dce6eb; border-radius:10px; padding:15px; background:white; }
.machine-op-metric { display:grid; gap:3px; align-content:start; }
.machine-op-metric>strong { font-size:22px; }
.machine-op-insight { margin:16px 0; }
.machine-op-insight header { display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; }
.machine-op-insight header label { font-size:13px; }
.machine-op-insight select { padding:7px; border:1px solid #cad9dd; border-radius:6px; font:inherit; }
.machine-op-insight-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:12px; margin:12px 0; }
.machine-op-insight h3 { margin:0 0 6px; }
.machine-op-legend,.machine-op-history { list-style:none; margin:0; padding:0; }
.machine-op-legend li,.machine-op-history li,.machine-op-insight dl>div { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px solid #e4ebef; }
.machine-op-legend strong,.machine-op-history button,.machine-op-insight dd { margin-inline-start:auto; }
.machine-op-legend li>span:last-child { min-width:44px; text-align:right; }
.machine-op-history small { display:block; overflow-wrap:anywhere; color:#526778; }
.machine-op-insight dl { margin:0; }
.machine-op-dialog { width:min(calc(100% - 24px),470px); max-height:90dvh; margin:auto; padding:20px; border:1px solid #d5e1e5; border-radius:13px; background:white; box-shadow:0 16px 44px #102b3c30; }
.machine-op-dialog::backdrop { background:#18334261; }
.machine-op-dialog h2 { margin:4px 0 14px; font-size:21px; }
.machine-op-dialog label { display:grid; gap:6px; margin:12px 0; }
.machine-op-dialog :is(input,textarea) { width:100%; box-sizing:border-box; border:1px solid #bdcfd6; border-radius:7px; padding:8px; font:inherit; }
.machine-op-dialog footer { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:9px; }
.machine-op-dialog button { padding:9px 12px; border-radius:7px; border:1px solid #cbdcde; background:white; color:#244350; font:inherit; cursor:pointer; }
.machine-op-dialog button[type=submit] { background:#007e70; color:white; }
.machine-op-dialog button[data-confirm=fault] { background:#ae3241; }
.machine-op-dialog button:disabled { opacity:.65; cursor:default; }
.machine-op-form-error { color:#9d2732; }

.machine-op-chart { width:100%; height:12px; display:block; margin:12px 0; overflow:hidden; border-radius:6px; background:#edf3f5; }
.machine-op-chart [data-state=available] { fill:#269266; }
.machine-op-chart [data-state=fault] { fill:#c33e4d; }
.machine-op-chart [data-state=maintenance] { fill:#c88b35; }
.machine-op-chart [data-state=off] { fill:#81909b; }
@media(max-width:550px){ .machine-op-counts { grid-template-columns:repeat(2,minmax(0,1fr)); } .machine-op-counts button { padding:7px; } .machine-op-clock { justify-items:start; } }
