:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#fff;background:#0d1330;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}#camera{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none}button,a{font:inherit;border:0;border-radius:999px;cursor:pointer}button{touch-action:manipulation}a{color:inherit;text-decoration:none}header{position:fixed;z-index:2;top:0;left:0;right:0;padding:calc(12px + env(safe-area-inset-top)) 12px 20px;display:flex;justify-content:space-between;gap:6px;background:linear-gradient(#0d1330c9,transparent)}header>div{display:flex;gap:6px}header button,header a{padding:8px 11px;background:#0d1330a8;color:#fff;font-size:12px;white-space:nowrap}.card{position:fixed;z-index:5;top:50%;left:50%;transform:translate(-50%,-50%);width:min(440px,calc(100% - 28px));max-height:calc(100% - 90px);overflow:auto;padding:24px;background:#f6f7f9;color:#15263b;border-radius:22px;box-shadow:0 18px 70px #0006}.eyebrow{font-size:12px;color:#ad362e}h1{font-size:27px;line-height:1.25;margin:16px 0}p,li{font-size:14px;line-height:1.6}ol{padding-left:23px}li{padding-bottom:7px}.small{font-size:12px;color:#526276}#start{width:100%;padding:14px;background:#d3261f;color:#fff;font-weight:700;border-radius:12px}button:disabled,input:disabled{opacity:.45;cursor:default}#error{color:#b4291f;white-space:pre-wrap;font-size:12px}#error:empty{display:none}#status{position:fixed;z-index:2;top:calc(59px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);padding:7px 12px;border-radius:14px;background:#0d1330a8;font-size:12px;text-align:center;max-width:calc(100% - 24px);pointer-events:none}#diagnostic-panel{position:fixed;z-index:4;top:calc(101px + env(safe-area-inset-top));left:12px;right:12px;max-width:460px;max-height:45vh;overflow:auto;padding:14px;border-radius:16px;background:#0d1330ee;border:1px solid #ffffff30}#diagnostics{font:12px/1.6 system-ui;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 12px}#diagnostic-panel button{padding:8px 14px;background:#fff;color:#1c2a6b;margin-right:6px}#diagnostic-panel p{font-size:11px;margin:10px 0 0;opacity:.65}footer{position:fixed;z-index:2;left:0;right:0;bottom:0;padding:25px 12px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(transparent,#0d1330dc 24%);text-align:center}#print-controls{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin-bottom:8px}#print-controls button{padding:10px 18px;background:#fff;color:#1c2a6b;font-size:13px;max-width:100%;white-space:normal}.actions{display:flex;justify-content:center;gap:5px}.actions button{padding:8px 10px;background:#ffffff24;color:#fff;font-size:12px}.actions #put{background:#d3261f;font-weight:700}#progress{width:min(350px,85%);height:16px;accent-color:#d3261f;margin:7px 0 0}#tips{font-size:11px;margin:5px 0 9px;opacity:.85}#thickness{display:flex;justify-content:center;gap:8px;margin-bottom:12px}#thickness button{background:#ffffff24;color:#fff;font-size:13px;padding:8px 16px}#thickness button[aria-pressed=true]{background:#fff;color:#1c2a6b;font-weight:700}.material-row{display:flex;align-items:center;gap:8px;max-width:500px;margin:auto}.material-row>button{width:44px;height:44px;font-size:28px;background:#ffffff24;color:#fff;flex:none}#caption{flex:1;min-width:0}#caption-name{font-size:20px}#caption-spec{display:block;font-size:12px;opacity:.8;margin-top:3px}#model-note{display:block;font-size:9px;opacity:.55;margin-top:8px}[hidden]{display:none!important}@media(max-width:340px){header a,header button{padding:8px;font-size:11px}.actions button{padding:8px;font-size:11px}#caption-name{font-size:18px}.card{padding:19px}}@media(max-height:600px){.card{padding:17px}h1{font-size:23px}p,li{font-size:12px}li{padding-bottom:3px}footer{padding-top:10px}#thickness{margin-bottom:5px}}

/* Status must remain visible above the preparation card. */
header{z-index:20}#diagnostic-panel{z-index:30;background:#0d1330;max-height:calc(100vh - 130px);max-height:calc(100dvh - 130px)}#close-status{display:block;margin:0 0 12px auto!important}#diagnostics{min-height:140px}
/* Formal-style inspection: no playback controls or progress scrubber. */
.actions #put{padding:12px 24px;font-size:16px}#print-controls button{padding:12px 20px;font-size:15px}#tips{font-size:12px;margin:12px 0}footer{padding-top:24px}

/* v11: current-board label stays distinct from parked samples. */
