:root { --blue:#2a5bd7; --ink:#1d2437; --muted:#7386a8; --line:#e3eaf6; --ok:#1a9d63; --bad:#c0392b; }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.6 -apple-system,"Segoe UI","Microsoft YaHei",sans-serif;
       color:var(--ink); background:#f4f7fd; min-height:100vh; display:flex; flex-direction:column; }
.top { display:flex; align-items:center; justify-content:space-between; padding:14px 18px;
       background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:5; }
.brand { font-weight:600; display:flex; align-items:center; gap:8px; }
.dot { width:9px; height:9px; border-radius:50%; background:var(--ok); box-shadow:0 0 0 4px #e8f7ef; }
main { flex:1; padding:18px; max-width:1080px; width:100%; margin:0 auto; }
.card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:18px;
        box-shadow:0 6px 20px rgba(30,60,120,.06); }
.card-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
h2 { font-size:17px; margin:0 0 6px; }
.tip { color:var(--muted); font-size:13.5px; margin:6px 0 12px; }
.machines { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.machines li { display:flex; align-items:center; gap:12px; padding:14px 16px; border:1px solid var(--line);
               border-radius:12px; cursor:pointer; transition:.15s; background:#fcfeff; }
.machines li:hover { border-color:var(--blue); background:#f5f9ff; transform:translateY(-1px); }
.machines .name { font-weight:600; }
.machines .sn { color:var(--muted); font-size:12.5px; font-family:Consolas,monospace; }
.machines .badge { margin-left:auto; font-size:12px; padding:3px 9px; border-radius:999px; }
.badge.on { background:#e8f7ef; color:var(--ok); }
.badge.off { background:#f1f3f8; color:var(--muted); }
.steps { margin:0; padding-left:20px; color:var(--muted); }
.steps li.done { color:var(--ok); }
.steps li.now { color:var(--blue); font-weight:600; }
label { display:block; margin:10px 0; font-size:13.5px; color:var(--muted); }
input { width:100%; margin-top:4px; padding:10px 12px; border:1px solid var(--line); border-radius:10px;
        font:inherit; color:var(--ink); background:#fbfdff; }
input:focus { outline:2px solid #d7e5ff; border-color:var(--blue); }
label.row { display:flex; align-items:center; gap:8px; color:var(--ink); }
label.row input { width:auto; margin:0; }
.btn { border:1px solid var(--line); background:#fff; color:var(--ink); border-radius:10px;
       padding:9px 16px; font:inherit; cursor:pointer; }
.btn:hover { border-color:var(--blue); color:var(--blue); }
.btn.primary { background:var(--blue); border-color:var(--blue); color:#fff; }
.btn.primary:hover { filter:brightness(1.08); color:#fff; }
.btn.big { width:100%; padding:14px; font-size:16px; margin-top:6px; }
.btn.small { padding:4px 10px; font-size:12.5px; }
.btn.ghost { background:transparent; }
.hidden { display:none !important; }
.err { color:var(--bad); font-size:13px; min-height:18px; margin-top:6px; }
.grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:820px) { .grid { grid-template-columns:1fr; } }
.pane { min-width:0; }
.pane-head { display:flex; align-items:center; justify-content:space-between; font-size:13.5px;
             color:var(--muted); margin-bottom:6px; }
video { width:100%; border-radius:12px; background:#0b1220; min-height:180px; }
.result { margin-top:10px; min-height:22px; color:var(--ok); font-weight:600; }
.stat { margin-top:12px; color:var(--muted); font-size:12.5px; }
footer { padding:14px 18px; color:var(--muted); font-size:12px; text-align:center; }
