:root{color:var(--brand-ink);--brand:#46b036;--brand-display:#378e2a;--brand-ink:#204720;--accent:#2b7020;--accent-hover:#235b1b;--brand-tint:#e8f2e4;--brand-border:#cbdec5;--muted:#496147;--line:#dcd4cc;--surface:#fffcf9d4;--shadow:0 3px 9px #382a1d12, 0 9px 26px #463a2d12;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#f2ebe3;font-family:PingFang SC,Microsoft YaHei,Noto Sans CJK SC,system-ui,sans-serif}*{box-sizing:border-box}body{margin:0}button,select{font:inherit;color:inherit}button{cursor:pointer;border:0}button:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button[hidden],[hidden]{display:none!important}svg{width:22px;height:22px;display:block}#app,.viewport,.tags{position:fixed;inset:0}#app{isolation:isolate;overflow:hidden}.viewport canvas{touch-action:none;cursor:grab;width:100%;height:100%;display:block}.viewport canvas:active{cursor:grabbing!important}.surface{background:var(--surface);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(15px);border:1px solid #ffffffd6;border-radius:13px}.masthead{pointer-events:none;justify-content:space-between;align-items:flex-start;display:flex;position:absolute;top:18px;left:24px;right:24px}.brand{align-items:center;gap:19px;display:flex}.brand img{object-fit:contain;border-radius:7px;flex:none;width:55px;height:55px}.brand>div{border-left:1px solid var(--brand-border);padding-left:18px}.brand h1{color:var(--brand-display);letter-spacing:.02em;margin:0;font-size:clamp(23px,2.12vw,33px);font-weight:720;line-height:1.16}.brand p{color:var(--muted);letter-spacing:.026em;margin:4px 0 0;font-size:clamp(13px,1.27vw,19px)}.brand p span{color:var(--accent);padding:0 1px}.status{white-space:nowrap;align-items:center;gap:8px;min-height:36px;padding:7px 12px;font-size:13px;display:flex}.status>span{background:var(--brand);border-radius:50%;width:8px;height:8px;display:block;box-shadow:0 0 0 3px #46b03623}.status.paused>span{background:#777067;box-shadow:0 0 0 3px #9c928421}.production{z-index:2;pointer-events:none;width:min(305px,27vw);min-width:228px;padding:13px 15px 12px;position:absolute;top:98px;left:23px}.production h2{letter-spacing:.034em;margin:0;font-size:16px}.throughput{white-space:nowrap;align-items:baseline;gap:8px;margin:5px 0 9px;display:flex}.throughput strong{color:var(--brand-display);letter-spacing:-.045em;font-variant-numeric:tabular-nums;font-size:clamp(35px,3.15vw,50px);font-weight:740;line-height:1}.throughput span{color:var(--brand-ink);font-size:13px;font-weight:600}.production-meta{border-top:1px solid var(--line);white-space:nowrap;color:var(--muted);justify-content:space-between;align-items:center;gap:9px;padding-top:8px;font-size:11px;display:flex}.production-meta>span+span{border-left:1px solid var(--line);padding-left:9px}.production-meta b{color:var(--brand-ink);font-variant-numeric:tabular-nums;font-size:14px;font-weight:680}.camera{z-index:3;flex-direction:column;padding:3px 7px;display:flex;position:absolute;top:45%;right:19px}.camera button,.inspector-head button{background:0 0;border-radius:6px;place-items:center;width:36px;height:40px;display:grid}.camera button+button{border-top:1px solid #e7e0d8}.camera button:hover,.camera button[aria-pressed=true],.inspector-head button:hover{color:var(--accent);background:var(--brand-tint)}.tags{pointer-events:none}.station-tag{white-space:nowrap;pointer-events:auto;background:#fffbf3;border:1px solid #fff;border-radius:7px;align-items:center;gap:5px;padding:3px 6px 3px 3px;font-size:12px;display:flex;position:absolute;top:0;left:0;box-shadow:0 2px 5px #3c2d231f}.station-tag:before{content:"";height:calc(11px + var(--tag-offset,0px));border-left:1px solid var(--brand-display);position:absolute;top:100%;left:50%}.station-tag:after{content:"";width:5px;height:5px;top:calc(100% + 10px + var(--tag-offset,0px));background:var(--brand);border-radius:50%;outline:1px solid #fff;position:absolute;left:calc(50% - 2px)}.station-tag:hover,.station-tag:focus-visible{color:var(--accent);background:var(--brand-tint);z-index:1}.station-tag span{background:var(--accent);color:#fff;font-variant-numeric:tabular-nums;border-radius:4px;padding:2px 4px;font-size:10px}.station-tag b{font-weight:650}.station-tag b:first-child{padding-left:4px}.footer{z-index:4;left:50%;bottom:max(17px, env(safe-area-inset-bottom));flex-direction:column;align-items:center;gap:10px;display:flex;position:absolute;transform:translate(-50%)}.dock{white-space:nowrap;align-items:center;gap:14px;padding:8px 11px;display:flex}.zones{background:#f4eee8;border:1px solid #ded6cd;border-radius:8px;display:flex;overflow:hidden}.zones button{letter-spacing:.045em;background:0 0;border-radius:7px;padding:8px 17px;font-size:13px;font-weight:660}.zones button:hover{background:var(--brand-tint)}.zones button[aria-pressed=true]{color:#fff;background:var(--accent)}.zones button:focus-visible{outline-offset:-3px}.playback{border-left:1px solid var(--line);align-items:center;gap:9px;padding-left:14px;display:flex}.play{background:var(--accent);color:#fff;border-radius:50%;place-items:center;width:35px;height:35px;padding:0;display:grid}.play:hover{background:var(--accent-hover)}.play svg{width:20px;height:20px}.speed{background:#fcf8f3;border:1px solid #ded5cc;border-radius:8px;align-items:center;padding-left:8px;font-size:12px;font-weight:620;display:flex;position:relative}.speed select{appearance:none;cursor:pointer;background:0 0;border:0;padding:6px 20px 6px 6px;font-weight:660}.speed svg{pointer-events:none;width:13px;height:13px;position:absolute;right:5px}.hints{white-space:nowrap;color:var(--muted);align-items:center;gap:9px;margin:0;font-size:11px;display:flex}.hints svg{width:15px;height:15px}.hints i{background:#a69b91;width:1px;height:10px;margin:0 2px}.hints kbd{font:inherit;background:#fff9f3;border:1px solid #d2c8bc;border-radius:3px;padding:0 3px}.inspector{z-index:3;width:236px;padding:11px 14px 14px;position:absolute;top:70px;right:23px}.inspector-head{min-height:25px;color:var(--accent);letter-spacing:.05em;justify-content:space-between;align-items:center;font-size:11px;font-weight:690;display:flex}.inspector-head button{width:25px;height:25px;color:var(--muted)}.inspector-head svg{width:17px;height:17px}.inspector h2{margin:4px 0 7px;font-size:19px}.inspector p{color:var(--muted);margin:0;font-size:12px;line-height:1.65}.parts{border-top:1px solid var(--line);color:var(--muted);gap:4px;margin-top:10px;padding-top:9px;font-size:11px;display:grid}.parts b{color:var(--brand-ink);font-weight:600;line-height:1.65}#cutaway{background:var(--brand-tint);color:var(--accent);border:1px solid var(--brand-border);border-radius:7px;align-items:center;gap:5px;margin-top:9px;padding:5px 9px;font-size:12px;display:flex}#cutaway:hover,#cutaway[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#fff}#cutaway svg{width:16px;height:16px}.inspector label{color:var(--muted);margin:10px 0 4px;font-size:11px;display:block}#equipment{background:#fffaf6;border:1px solid #ddd3c9;border-radius:6px;width:100%;padding:5px;font-size:12px}.fallback{color:#8d310c;width:min(90%,440px);padding:16px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}@media (width>=1450px){.production{width:322px}}@media (height<=650px) and (width>=621px){.camera{top:auto;bottom:82px}}@media (width<=620px){.masthead{top:14px;left:13px;right:12px}.brand{gap:7px}.brand img{border-radius:5px;width:32px;height:32px}.brand>div{padding-left:8px}.brand h1{color:var(--accent);white-space:nowrap;font-size:clamp(15px,4.3vw,24px)}.brand p{margin-top:3px;font-size:11px}.status{border-radius:8px;gap:5px;min-height:27px;padding:5px 7px;font-size:10px}.status>span{width:5px;height:5px}.production{width:185px;min-width:185px;padding:9px 10px;top:70px;left:13px}.production h2{font-size:13px}.throughput strong{font-size:33px}.throughput span,.production-meta{font-size:10px}.production-meta b{font-size:12px}.production-meta>span+span{padding-left:6px}.camera{border-radius:9px;padding:2px 5px;top:auto;bottom:115px;right:9px}.camera button{width:29px;height:34px}.camera svg{width:18px;height:18px}.station-tag{border-radius:5px;gap:3px;padding:2px 4px 2px 2px;font-size:10px}.station-tag span{padding:1px 3px;font-size:8px}.station-tag:before{height:7px}.station-tag:after{top:calc(100% + 6px)}.footer{bottom:max(14px, env(safe-area-inset-bottom));gap:7px}.dock{gap:6px;padding:6px}.zones button{letter-spacing:0;padding:7px 6px;font-size:11px}.playback{gap:5px;padding-left:6px}.play{width:29px;height:29px}.play svg{width:16px;height:16px}.speed{padding-left:3px;font-size:10px}.speed select{padding:5px 16px 5px 3px}.speed svg{width:11px;right:3px}.hints{display:none}.inspector{width:min(235px,100vw - 65px);inset:auto auto 67px 12px}}@media (width>=1100px){.dock{gap:19px;padding:9px 15px}.zones button{padding:9px 24px;font-size:15px}.playback{gap:11px;padding-left:19px}.play{width:39px;height:39px}.speed{padding-left:10px;font-size:13px}.speed select{padding:7px 22px 7px 7px}.hints{gap:12px;font-size:12px}}.logistics-meta{justify-content:flex-start;margin-top:8px}.logistics-meta>span+span{margin-left:5px;padding-left:13px}@media (width<=380px){.dock{gap:4px;padding-inline:4px}.zones button{padding-inline:4px}.playback{padding-left:4px}.speed>span{display:none}}.operations-launch{z-index:5;border:1px solid var(--brand-border);min-height:32px;color:var(--accent);background:#f5f9f2;border-radius:8px;padding:5px 12px;font-size:12px;font-weight:700;position:absolute;top:61px;right:24px}.operations-launch:hover,.operations-launch[aria-expanded=true]{background:var(--accent);color:#fff}.inspector{top:102px}#station-operations{color:#315d4c;background:#edf3ee;border:1px solid #dbe7de;border-radius:7px;margin-top:9px;padding:5px 9px;font-size:12px}#station-operations:hover{background:#dcebe2}.status.maintenance>span{background:#8c6f9e;box-shadow:0 0 0 3px #9071ad24}.ops-open .inspector{display:none}.operations-panel{z-index:6;background:#fffaf3f5;flex-direction:column;width:min(405px,37vw);max-height:calc(100dvh - 192px);padding:15px 15px 10px;display:flex;position:absolute;top:103px;right:24px;box-shadow:0 8px 28px #33291c26}.operations-panel>header{justify-content:space-between;align-items:center;gap:12px;display:flex}.operations-panel>header p{color:var(--muted);margin:0 0 2px;font-size:11px}.operations-panel h2{letter-spacing:.01em;margin:0;font-size:22px}.ops-close{background:#eee6dc;border-radius:7px;width:31px;height:31px;font-size:23px;line-height:1}.ops-close:hover{background:#ead9cc}.ops-tabs{background:#f2eae0;border:1px solid #e7dcd1;border-radius:8px;grid-template-columns:repeat(3,1fr);gap:3px;margin-top:11px;padding:3px;display:grid}.ops-tabs button{background:0 0;border-radius:5px;padding:6px 3px;font-size:11px;font-weight:650}.ops-tabs button:hover{background:var(--brand-tint)}.ops-tabs button[aria-pressed=true]{background:var(--accent);color:#fff}.ops-scroll{overscroll-behavior:contain;scrollbar-width:thin;min-height:0;overflow-y:auto}.ops-body{padding:2px 1px 8px;font-size:12px}.ops-body h3{margin:12px 0 5px;font-size:15px}.ops-body h4{margin:11px 0 5px;font-size:12px}.ops-body p{color:var(--muted);margin:5px 0 9px;font-size:11px;line-height:1.57}.op-metrics{background:#f3ece3;border-radius:7px;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:7px 0;padding:8px 9px;display:grid}.op-metrics>div{align-content:start;gap:3px;min-width:0;display:grid}.op-metrics>div>span{color:var(--muted);font-size:10px}.op-metrics b{overflow-wrap:anywhere;font-variant-numeric:tabular-nums;font-size:11px;line-height:1.4}.op-badge{color:#675322;background:#ebdfca;border-radius:4px;padding:1px 4px;display:inline-block}.op-badge[data-status=已放行],.op-badge[data-status=已入合格库],.op-badge[data-status=已签收]{color:#31583b;background:#d9e9d8}.op-badge[data-status=隔离待判],.op-badge[data-status=退货待复检],.op-badge[data-status=差异签收]{color:#8a3220;background:#f5d4cd}.op-table{border-collapse:collapse;width:100%;font-size:11px}.op-table th,.op-table td{text-align:left;overflow-wrap:anywhere;border-bottom:1px solid #e7ddd0;padding:5px 4px;font-weight:450}.op-table thead th{color:var(--muted);font-size:10px;font-weight:690}.op-table td{font-variant-numeric:tabular-nums}.op-actions{flex-wrap:wrap;gap:5px;margin-top:8px;display:flex}.op-actions button,.op-order-form button{background:var(--accent);color:#fff;border-radius:5px;padding:5px 7px;font-size:11px;font-weight:630}.op-actions button.secondary{color:#3a6352;background:#e3eee8}.op-actions button:hover:not(:disabled),.op-order-form button:hover:not(:disabled){filter:brightness(.92)}.op-actions button:disabled{color:#667463;cursor:default;background:#eee7df}.op-field{color:var(--muted);gap:4px;min-width:0;padding:4px 0;font-size:10px;display:grid}.op-field select{width:100%;max-width:100%;color:var(--brand-ink);background:#fffdf7;border:1px solid #e0d4c7;border-radius:6px;padding:5px;font-size:11px}.op-order-form{grid-template-columns:1.25fr .58fr auto;align-items:end;gap:5px;display:grid}.op-order-form button{min-height:28px;margin-bottom:4px}.op-steps{flex-wrap:wrap;gap:4px;padding:0;list-style:none;display:flex}.op-steps li{color:var(--muted);border:1px solid #e2dacf;border-radius:4px;padding:3px 5px;font-size:10px}.op-steps li.current{color:#5b426d;background:#e3d9ed;border-color:#c7b5d7;font-weight:700}.op-steps li.done{color:#3e6546;background:#e3eee4}.op-trace{grid-template-columns:1fr 1fr;gap:4px 10px;margin:0;display:grid}.op-trace div{border-bottom:1px solid #e7ddd0;justify-content:space-between;padding:4px 0;display:flex}.op-trace dt,.op-trace dd{margin:0;font-size:11px}.ops-events{color:var(--muted);border-top:1px solid #e7ddd0;margin:3px 1px;font-size:11px}.ops-events summary{cursor:pointer;padding-top:6px;font-weight:650}.ops-events ol{margin:5px 0;padding:0;list-style:none}.ops-events li{border-bottom:1px solid #ece3d8;gap:7px;padding:4px 0;display:flex}.ops-events time{font-variant-numeric:tabular-nums;min-width:62px;color:var(--muted)}@media (width<=840px) and (width>=621px){.zones button{padding-inline:10px}.dock{gap:7px}.playback{padding-left:7px}.operations-panel{width:min(366px,53vw)}}@media (width<=620px){.operations-launch{min-height:27px;padding:3px 7px;font-size:10px;top:48px;right:12px}.operations-panel{width:min(395px,100vw - 18px);max-height:calc(100dvh - 201px);top:auto;bottom:114px;right:9px}.inspector{top:auto;bottom:116px}.camera{bottom:120px}.dock{flex-wrap:wrap;justify-content:center;gap:5px;width:min(93vw,355px)}.zones{grid-template-columns:repeat(3,minmax(0,1fr));width:100%;display:grid}.zones button{padding:5px 3px}.playback{border-left:0;padding-left:0}}.layout-panel{z-index:3;width:min(237px,26vw);padding:9px 10px;position:absolute;top:289px;left:23px}.layout-panel h2{letter-spacing:.025em;margin:0 0 7px;font-size:13px}.layout-views{background:#f3ede5;border:1px solid #e1d7cc;border-radius:7px;grid-template-columns:.75fr 1.2fr 1.1fr;gap:3px;padding:3px;display:grid}.layout-views button{color:var(--brand-ink);white-space:nowrap;background:0 0;border-radius:4px;padding:6px 2px;font-size:11px;font-weight:650}.layout-views button:hover{background:var(--brand-tint)}.layout-views button[aria-pressed=true]{background:var(--accent);color:#fff}.layout-legend{margin-top:8px}.layout-keys{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;display:grid}.layout-keys button{color:var(--brand-ink);white-space:nowrap;background:#f4f0e9;border:1px solid #e7e1d7;border-radius:5px;align-items:center;gap:5px;padding:5px;font-size:10px;display:flex}.layout-keys button[aria-pressed=false]{color:var(--muted);background:#fdfaf5}.layout-keys button[aria-pressed=false] i{opacity:.33}.layout-keys i{background:var(--line-color);border-radius:50%;width:8px;height:8px;display:block}.layout-legend p{color:var(--muted);margin:7px 0 0;font-size:10px;line-height:1.5}@media (width<=940px) and (width>=621px){.zones button{padding-inline:7px;font-size:12px}}@media (width<=620px){.layout-panel{border-radius:9px;width:min(211px,100vw - 35px);padding:7px 8px;top:200px;left:13px}.layout-panel h2{margin-bottom:4px;font-size:11px}.layout-views button{padding-block:4px;font-size:10px}.layout-keys button{padding-block:3px}.layout-legend p{display:none}.zones{grid-template-columns:repeat(4,minmax(0,1fr))}}
