:root{font-family:Arial,sans-serif;color:#dce9eb;background:#102027;color-scheme:dark}*{box-sizing:border-box}body{margin:0}main{max-width:540px;margin:auto;padding:0 18px 24px}header{display:flex;align-items:center;justify-content:space-between;height:66px;border-bottom:1px solid #30444c}header span{font-size:11px;letter-spacing:2px;color:#87a7ac}a{color:#85d9cb;text-decoration:none}button,input,textarea{font:inherit}button{min-height:54px;border:1px solid #40575f;border-radius:12px;background:#253d46;color:#edf7f7;padding:12px 16px;font-weight:700;cursor:pointer}button:disabled{opacity:.38;cursor:not-allowed}button:focus-visible,input:focus,textarea:focus{outline:3px solid #69d9cb;outline-offset:2px}header button{min-height:40px;padding:6px 14px}.heading{display:flex;align-items:center;justify-content:space-between;margin:24px 0 20px}small{color:#a0bac0;font-size:11px;letter-spacing:.6px}h1{font-size:32px;margin:7px 0}h2{font-size:23px;margin:15px 0 8px;overflow-wrap:anywhere}h3{font-size:17px;margin:8px 0 12px;line-height:1.4}.badge{background:#27443f;color:#a6e4cc;padding:7px 10px;border-radius:8px;font-size:12px}input,textarea{width:100%;min-width:0;background:#152a32;border:1px solid #425962;border-radius:10px;padding:15px;color:#fff;min-height:54px}label{display:block;font-size:13px;color:#b6cdd0}label input{margin-top:8px}.operator{margin-bottom:20px}#scanForm{background:#1c373e;padding:16px;border-radius:15px}#scanForm label{color:#e1f2ef;font-weight:bold;font-size:17px}.scanrow{display:flex;gap:8px;margin:12px 0}.scanrow button{background:#65c8bb;color:#102b2a;font-size:24px}.scanrow input{flex:1}#notice{padding:16px 2px;line-height:1.45;font-size:14px;color:#b6ded5}#notice.error{color:#ffbcb0}#pending{background:#47382a;padding:16px;border-radius:12px;margin-bottom:16px}#pending button{width:100%;margin-top:8px}#task{background:#1b3039;border-radius:18px;padding:18px}.taskhead{display:flex;align-items:center;justify-content:space-between;gap:8px}#revision{font-size:12px;color:#a7bfc5}#partName{color:#8fdbcf;font-size:15px}#drawing{margin:16px 0 8px;background:#e7eeeb;border-radius:10px;overflow:hidden}#drawing svg{display:block;width:100%;height:165px;padding:16px}#dimensions{color:#b1c5cb;text-align:center;font-size:14px}#reason{font-size:13px;color:#edc786}.metrics{display:flex;gap:30px;margin:20px 0}.metrics small,.metrics b{display:block}.metrics b{font-size:20px;margin-top:6px}.actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.actions .primary{grid-column:1/-1;font-size:18px;min-height:62px}.primary{background:#65c8bb;color:#102b2a;border-color:transparent}.danger{color:#ffc8bb}details{margin-top:18px;border-top:1px solid #344952;padding-top:16px;font-size:14px;line-height:1.5}summary{cursor:pointer;min-height:32px;color:#d4e2e3}details p{color:#b4c9cd}.queuehead{display:flex;align-items:center;justify-content:space-between;margin-top:22px}.queuehead h2{font-size:19px}.queuehead span{color:#83cebf}#queue{display:grid;gap:8px;margin-top:10px}#queue button{width:100%;text-align:left;background:transparent;display:grid;gap:7px}#queue button[aria-pressed=true]{border-color:#65c8bb;background:#1c373e}#queue small{letter-spacing:0}#queue span{font-size:14px;font-weight:400}.help{color:#a8bfc5}footer{font-size:11px;color:#8da6ad;text-align:center;margin:26px 0}dialog{border:1px solid #48626b;border-radius:18px;background:#1b3039;color:#e4efef;width:calc(100% - 30px);max-width:480px;padding:23px}dialog::backdrop{background:#000b}dialog button{width:100%;margin-top:12px}dialog p{line-height:1.5}textarea{margin-top:9px} [hidden]{display:none!important}

.context{margin:0 0 18px}.context select{display:block;width:100%;padding:14px;margin:8px 0 14px;background:#152a32;color:white;border:1px solid #425962;border-radius:10px;font:inherit}#contextNote{font-size:13px;color:#edc786}#qcChecks{border:1px solid #425962;border-radius:10px;margin:14px 0;padding:12px}#qcChecks label{display:flex;align-items:center;gap:12px;font-size:15px;min-height:52px}#qcChecks input{width:24px;height:24px;min-height:0;margin:0}

#reason{line-height:1.5}#reason p{margin:6px 0}#partHistory{width:100%;margin:12px 0;color:#95e1d3}#routeDialog{max-height:90dvh;overflow-y:auto;max-width:600px}#closeRoute{position:sticky;top:0;margin:0;background:#253d46}#routeSteps{list-style:none;padding:0}.route-step{border-left:3px solid #647d87;padding:8px 0 8px 14px;margin:15px 0}.route-step.completed{border-color:#65c8bb}.route-step.running{border-color:#e8bd64}.route-step.blocked{border-color:#e88c7e}.route-step p,#routeEvents p{font-size:14px;line-height:1.5;color:#b6cdd0}#routeScope{font-size:13px;color:#a0bac0}

#queue button.queue-ready,.badge.queue-ready{background:#184b38;border-color:#54dc96;color:#d4ffe5}#queue button.queue-ready small{color:#8ef0b8}#queue button.queue-waiting,.badge.queue-waiting{background:#453a1d;border-color:#cfad48;color:#fff0bc}#queue button.queue-waiting small{color:#f3d47c}#queue button.queue-running,.badge.queue-running{background:#1d3f56;border-color:#70b9ed;color:#d1edff}#queue button.queue-blocked,.badge.queue-blocked{background:#4b2829;border-color:#e08b83;color:#ffdbd4}#queue button[aria-pressed=true]{outline:3px solid #e7f6f3;outline-offset:2px}#queue{gap:13px}.queue-legend{font-size:13px;line-height:1.6;color:#bacdd0}.queue-legend .ready{color:#8ef0b8}.queue-legend .waiting{color:#f3d47c}.badge{line-height:1.5}

#handling{background:#254048;padding:16px;margin:18px 0;border-left:4px solid #78c8aa}#handling select{width:100%;font:inherit;padding:12px;background:#142c33;color:#eef7f5;margin:8px 0}#handling button{width:100%;margin:12px 0}#handling a{color:#8fd7b9}
