Files
dxdesigner-part-replacement/docs/reviews/2026-10-30-ui/preview.html
T

122 lines
72 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html>
<html lang="zh-CN"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>DxPartReplace · R4 界面预览</title><style>
:root{--paper:#fff;--side:#f2f3f5;--surface:#fff;--ink:#202124;--muted:#727680;--line:#e4e6ea;--accent:#007aff;--soft:#eaf3ff;--green:#23834b;--greenbg:#edf8f0;--amber:#976411;--amberbg:#fff6e5;--red:#c33c35;--redbg:#fff0ee}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font:13px -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei UI",sans-serif;-webkit-font-smoothing:antialiased}button,input{font:inherit}button{color:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;border:1px solid #dbdde2;border-radius:7px;padding:7px 11px;background:#fff;min-height:31px;box-shadow:0 1px 1px #18233505}button:hover{background:#f3f5f8}button:active{background:#e9edf2}button:disabled{color:#a1a5ad;background:#f6f7f9;border-color:#e9eaed;cursor:default;box-shadow:none}button.primary{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 1px 2px #007aff20}button.primary:hover{background:#006ee6}button.quiet{background:transparent;border-color:transparent;box-shadow:none;color:#626874}button.quiet:hover{background:#e8ebf0;color:#252a32}button.icon-only{width:31px;padding:6px;flex-shrink:0}button:focus-visible,input:focus-visible{outline:3px solid #007aff55;outline-offset:2px}input{color:inherit;background:#fff;border:1px solid #dfe2e7;border-radius:7px;min-width:0;padding:8px 11px}input::placeholder{color:#989da6}.icon{width:18px;height:18px;flex-shrink:0;display:inline-block;vertical-align:middle;color:inherit}small,.muted{color:var(--muted)}.mono{font-family:"SFMono-Regular",Consolas,monospace;font-size:12px;letter-spacing:-.2px}.spacer{flex:1}.panelhidden{display:none!important}.review{height:30px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;background:#eceef1;border-bottom:1px solid #dfe2e7;font-size:11px;color:#777e89}.review strong{font-weight:400}.review nav{display:flex;gap:3px}.review button{border:0;box-shadow:none;background:transparent;font-size:11px;min-height:22px;padding:2px 9px;border-radius:5px}.review button.active{background:white;box-shadow:0 1px 3px #00000010;color:#373e4a}.app{height:calc(100vh - 30px);display:flex;flex-direction:column;min-height:0}
.topbar{height:66px;display:flex;align-items:center;background:linear-gradient(#fafbfc,#f6f7f9);border-bottom:1px solid var(--line);flex-shrink:0}.brandarea{width:250px;display:flex;align-items:center;gap:10px;padding:0 19px;flex-shrink:0}.appmark{width:31px;height:31px;border-radius:9px;background:linear-gradient(145deg,#3d9fff,#0074ef);color:#fff;box-shadow:inset 0 1px 0 #ffffff77,0 1px 3px #2075c82b;display:grid;place-items:center}.appmark .icon{width:24px;height:24px}.brand{display:block;font-size:14px;font-weight:600;letter-spacing:-.4px}.brandarea small{display:block;font-size:11px;margin-top:3px;color:#8b909a}.toptools{flex:1;display:flex;align-items:center;padding:0 21px;gap:20px}.toptools>.icon-only{color:#80858f}.topnav{display:flex;padding:3px;background:#e9ebef;border:1px solid #e0e3e8;border-radius:9px;gap:2px}.topnav button{background:transparent;border:0;box-shadow:none;padding:5px 19px;border-radius:6px;min-height:29px;color:#747a85;font-size:12px;gap:7px}.topnav button .icon{width:16px;height:16px}.topnav button.active{color:#252a33;background:white;box-shadow:0 1px 4px #202a4019}.topstatus{display:flex;align-items:center;gap:6px;font-size:11px;color:#868d97}.topstatus .icon{width:14px;height:14px;color:#57936c}.toptools .quiet{font-size:12px}.body{display:flex;flex:1;min-height:0}
.sidebar{width:250px;flex-shrink:0;display:flex;flex-direction:column;background:linear-gradient(160deg,#f2f3f6,#eff1f4);border-right:1px solid #e1e4ea;padding:21px 13px 13px;gap:19px}.sidehead{display:flex;align-items:center;justify-content:space-between;padding:0 8px}.sidehead>b{font-size:12px;font-weight:600;letter-spacing:.2px;color:#59606b}.sidehead button{min-height:26px;width:26px;height:26px;color:#757f8e}.searchfield{display:flex;align-items:center;gap:7px;border:1px solid #dfe2e8;background:#fff9;border-radius:7px;padding:0 9px;box-shadow:0 1px 2px #00000002}.searchfield>.icon{color:#9299a5;width:15px;height:15px}.searchfield input{width:100%;border:0;background:transparent;padding:8px 0;font-size:12px;outline-offset:0}.searchfield:focus-within{outline:3px solid #007aff33;border-color:#80bafa}.searchfield input:focus-visible{outline:0}.batchtitle{font-size:11px;font-weight:500;color:#76818e;display:flex;align-items:center;justify-content:space-between;padding:0 8px;margin-bottom:10px}.batchtitle button{min-height:20px;padding:2px;border:0;box-shadow:none;background:transparent;color:#8b929d}.batchtitle .icon{width:14px;height:14px}.task{width:100%;border:1px solid transparent;background:transparent;box-shadow:none;text-align:left;justify-content:flex-start;align-items:center;gap:11px;padding:12px 10px;margin-bottom:6px;border-radius:8px;min-height:66px}.task>.icon{width:20px;height:20px;color:#8791a1}.task.active{background:#e2edfc;border-color:#d5e5fa}.task.active>.icon{color:#007aff}.task>b,.task b{display:block;font-size:13px;font-weight:500;letter-spacing:-.1px;margin-bottom:7px;overflow-wrap:anywhere}.task small{font-size:11px;display:flex;align-items:center;gap:5px;color:#89919d}.task.active b{color:#195da9}.task.active small{color:#5b7da5}.task .order{margin-left:auto;align-self:flex-start;font-size:11px;color:#9ba3ae;padding-top:1px}.dot{width:5px;height:5px;display:inline-block;border-radius:50%;background:#9ea5af;flex-shrink:0}.dot.green{background:#3d9b60}.sidebottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e0e4eb;padding-top:10px;font-size:11px}.sidebottom button{font-size:11px;padding:6px 7px;gap:6px}.sidebottom .icon{width:15px;height:15px}.batchaction{margin-top:auto;padding-top:18px}.batchaction p{margin:0 6px 10px;font-size:11px;color:#9a9fa9}.batchaction button{width:100%;font-size:11px;background:#fafbfc;border-color:#dfe3e9;color:#6d7888;box-shadow:0 1px 2px #00000004}.batchaction .icon{width:15px;height:15px}
.main{flex:1;min-width:0;display:flex;flex-direction:column;padding:26px 30px 0;background:#fff;position:relative}.breadcrumb{display:flex;align-items:center;gap:6px;font-size:11px;color:#7d8794;margin-bottom:19px}.breadcrumb>.icon{width:13px;height:13px}.breadcrumb span:last-child{color:#79818e}.projectheader{display:flex;align-items:center;gap:14px}.projectart{height:46px;width:46px;display:grid;place-items:center;border:1px solid #dce7f5;border-radius:11px;background:linear-gradient(#f4f8ff,#eef4ff);color:#508ad0;flex-shrink:0}.projectart .icon{width:29px;height:29px}.projectidentity{min-width:0;flex:1}.heading{display:flex;align-items:center;gap:11px}.heading h1{margin:0;font-size:24px;letter-spacing:-.6px;font-weight:600;color:#222731}.badge{display:inline-flex;align-items:center;gap:4px;padding:3px 7px;background:#eef5ff;color:#4681c1;border-radius:5px;font-size:11px;font-weight:500}.badge.warning{color:var(--amber);background:var(--amberbg)}.badge.error{color:var(--red);background:var(--redbg)}.badge .icon{width:12px;height:12px}.path{display:flex;align-items:center;gap:7px;color:#7f8997;margin-top:6px;min-width:0}.path>.mono{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;min-width:0}.path button{width:20px;min-height:20px;height:20px;padding:2px;color:#929aa7}.path button .icon{width:13px;height:13px}.projectmenu{position:relative;align-self:center}.projectmenu>.quiet{color:#89919e}#projectMenu{position:absolute;right:0;top:34px;z-index:8;background:#fffffff5;backdrop-filter:blur(18px);border:1px solid #dce0e6;padding:5px;border-radius:9px;box-shadow:0 8px 30px #1e2c4322;min-width:175px}#projectMenu button{display:flex;justify-content:flex-start;width:100%;background:transparent;border:0;box-shadow:none;font-size:12px;color:#515d6d}#projectMenu button:hover{background:#eaf3ff}
.scopebar{display:flex;align-items:center;gap:22px;margin-top:24px;padding:12px 0;border-top:1px solid #f0f1f4;border-bottom:1px solid #f0f1f4;color:#646d79;font-size:11px}.scopebar>span{display:flex;gap:6px;align-items:center}.scopebar .key{color:#76808c}.scopebar b{font-weight:600;font-variant-numeric:tabular-nums;color:#303a48}.scopebar .policy{margin-left:auto;font-size:11px;color:#8d95a0;gap:7px}.scopebar .policy>.icon{width:14px;height:14px}.scopebar button{color:#7c899a;padding:2px;min-height:22px;height:22px}.scopebar button .icon{width:15px;height:15px}.tabs{display:flex;align-items:center;gap:25px;margin-top:11px;border-bottom:1px solid #e9ecf1}.tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;box-shadow:none;padding:13px 0 12px;gap:7px;font-size:12px;color:#747f8e}.tabs button .icon{width:15px;height:15px}.tabs button.active{color:#1474df;border-bottom-color:#007aff;font-weight:500}.tabs small{padding:1px 5px;border-radius:4px;background:#f1f3f6;font-size:10px;color:#8993a2}.tabs button.active small{background:#eaf3ff;color:#3b83d6}.save-state{font-size:11px;display:flex;align-items:center;gap:5px;color:#8c98a3}.save-state>.icon{width:13px;height:13px;color:#79a18b}
.workspace{display:flex;flex:1;min-height:0;flex-direction:column}.toolbar{display:flex;align-items:center;gap:8px;padding:19px 0 15px}.toolbar>.searchfield{width:260px;background:#f8f9fb;border-color:#eef0f4;box-shadow:none}.toolbar button{font-size:11px;gap:6px}.toolbar button .icon{width:16px;height:16px}.toolbar .subtle{background:transparent;border-color:transparent;color:#8c96a4;box-shadow:none}.toolbar .icon-only{color:#8c96a4}.tooldivider{height:19px;width:1px;background:#e5e9ef;margin:0 4px}.hint{display:flex;align-items:center;gap:8px;margin-bottom:12px;color:#74808f;font-size:11px}.hint strong{font-weight:400;color:#636e7c}.hint>.icon{width:13px;height:13px;color:#a1a9b4}.hint .selection-count{color:#5b8bc6}.tablewrap{flex:1;min-height:150px;border:1px solid #e5e9f0;border-radius:9px;overflow:auto;background:white}table{width:100%;border-collapse:separate;border-spacing:0;white-space:nowrap;font-size:12px}th{text-align:left;font-size:11px;color:#778392;font-weight:400;background:#f9fafc;height:36px;position:sticky;top:0;z-index:1;border-bottom:1px solid #e9edf2}td{height:40px;border-bottom:1px solid #f0f2f6;color:#616d7e}th,td{padding:0 11px}th:first-child,td:first-child{padding-left:18px;width:44px}tr.chosen td{background:#f0f6ff}td.new{color:#2677cf}.ref{font-weight:500;color:#35465c}.tag{color:#9aa2ae;font-size:11px}.row-detail{width:25px;min-height:25px;height:25px;padding:3px;color:#a5b0be;background:transparent;border:0;box-shadow:none}.row-detail:hover{background:#e3edfa;color:#3385dd}.row-detail .icon{width:15px;height:15px}.tablewrap td:last-child,.tablewrap th:last-child{width:35px;padding-left:0;padding-right:9px}.checkcell{width:50px}input[type=checkbox]{appearance:none;display:inline-block;vertical-align:middle;margin:0;width:13px;height:13px;border:1px solid #cfd7e2;border-radius:3px;padding:0;background:white;cursor:pointer;box-shadow:0 1px 1px #00000003}input[type=checkbox]:checked{background-color:var(--accent);border-color:var(--accent);background-position:center;background-repeat:no-repeat;background-size:11px}input[type=checkbox]:disabled{opacity:.45;cursor:default}.tablefoot{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#7d8997;padding:11px 1px 16px}.tablefoot button{font-size:11px;gap:5px;min-height:22px;padding:0 3px;border:0;box-shadow:none;color:#939eac}.tablefoot .icon{width:13px;height:13px}.runarea{display:flex;gap:10px;align-items:center;padding:18px 0 20px;border-top:1px solid #e9edf3;min-height:87px;flex-shrink:0}.runarea>.runicon{height:32px;width:32px;border:1px solid #e2ede7;background:#f5faf7;color:#60a17a;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.runicon .icon{width:18px;height:18px}.runinfo{flex:1;min-width:0}.runinfo b{display:block;font-size:12px;font-weight:500;color:#535e6d;margin-bottom:5px}.runinfo small{font-size:11px;color:#7d8896}.runarea button{font-size:11px;min-height:33px}.runarea button .icon{width:15px;height:15px}.runarea .quiet{color:#9ba4b1;padding:7px}.runarea .primary{padding-left:15px;padding-right:15px}.notice{display:flex;gap:9px;padding:12px 14px;background:#fff8ec;border:1px solid #f0dfbf;border-radius:7px;color:#987234;font-size:11px;line-height:1.8;margin-top:13px}.notice>.icon{width:17px;height:17px;margin-top:1px}.progress{display:none!important}.empty{text-align:center;padding:35px;font-size:12px;color:#7d8795}.ruleshint{font-size:11px;color:#929ca9;padding-bottom:17px;line-height:1.8}.resultview{padding:23px 0;line-height:1.9;font-size:12px;color:#929ca9}.resultview b{color:#566578;font-weight:500}
.assistantmain{padding:0;display:flex;flex-direction:row}.chat{flex:1;min-width:0;max-width:950px;margin:0 auto;padding:29px 34px 18px;display:flex;flex-direction:column}.chathead{display:flex;align-items:center;gap:10px;border-bottom:1px solid #edf0f4;padding-bottom:19px;margin-bottom:22px}.chathead>.icon{width:20px;height:20px;color:#6c96c8}.chathead strong{font-weight:500;font-size:14px}.chathead small{margin-left:auto;color:#7c8898;font-size:11px}.agentlabel{font-size:11px;display:flex;gap:7px;align-items:center;color:#788799}.agentlabel .icon{width:13px;height:13px}.chat h2{font-size:20px;font-weight:500;color:#3b485b;letter-spacing:-.4px;margin:10px 0}.chat>p{font-size:11px;color:#7b899a;margin:0 0 10px}.message{font-size:12px;line-height:1.9;padding:15px 0;color:#68788c}.message.user{align-self:flex-end;background:#f2f5f9;border:1px solid #edf0f4;border-radius:11px 11px 3px 11px;max-width:85%;padding:10px 15px;margin:10px 0 12px;color:#6a788b}.checkcard{border:1px solid #e5eaf2;border-radius:9px;background:linear-gradient(#fff,#fcfdff);padding:16px 18px;margin-top:14px;font-size:11px}.checkcard>b{display:flex;align-items:center;gap:7px;font-weight:500;color:#5c718b;margin-bottom:8px}.checkcard>b .icon{color:#85a7d0;width:15px;height:15px}.checkline{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #f0f3f7;color:#8390a2}.checkline:last-of-type{border:0}.checkline span:last-child{color:#5b8c70}.checkcard footer{margin-top:10px;color:#9ca7b5;font-size:11px;display:flex;align-items:center;gap:6px}.checkcard footer .icon{width:13px;height:13px}.chatinput{margin-top:auto;border:1px solid #dfe5ef;box-shadow:0 2px 9px #425b8005;border-radius:10px;padding:14px;background:#fff}.chatinput input{width:100%;border:0;padding:0;background:transparent;font-size:12px}.chatinput footer{display:flex;align-items:center;gap:7px;margin-top:22px;font-size:11px;color:#a1aab7}.chatinput footer>.icon{width:13px;height:13px;color:#9bb0ca}.chatinput button{margin-left:auto;width:27px;min-height:27px;height:27px;padding:5px;border-radius:7px}.chatinput button .icon{width:16px;height:16px}.chatdisclaimer{font-size:10px;text-align:center;margin-top:10px;color:#acb3be}.context{width:254px;flex-shrink:0;background:#fafbfd;border-left:1px solid #e9edf3;padding:29px 22px}.context h3{display:flex;gap:8px;align-items:center;margin:0 0 23px;font-size:12px;font-weight:500;color:#78879c}.context h3>.icon{width:16px;height:16px;color:#97abc4}.context .section{border-top:1px solid #e9eef5;padding:18px 0;line-height:1.9;font-size:11px;color:#7e8da2}.context .section small{display:block;font-size:11px;margin-bottom:8px;color:#a5adba}.context b{font-weight:500;font-size:12px;color:#5d728d}.context .mono{font-size:11px;color:#a0abbc;overflow-wrap:anywhere;margin:6px 0 9px}.context .badge{margin:5px 0}.context .muted{color:#95a2b4}.context button{width:100%;font-size:11px;margin-top:16px;color:#7f98b9;gap:7px}.context button .icon{width:14px;height:14px}
.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:20;max-width:80%;padding:11px 16px;border:1px solid #d6dce7;border-radius:9px;background:#f9fbfff5;color:#56667e;box-shadow:0 6px 24px #344c6e22;backdrop-filter:blur(16px);font-size:12px}.inspector{position:absolute;z-index:9;right:18px;top:90px;bottom:88px;width:295px;max-width:calc(100% - 36px);background:#fffffff7;backdrop-filter:blur(20px);border:1px solid #dde5ef;border-radius:12px;box-shadow:0 12px 45px #2e507a26;padding:20px;overflow:auto}.inspector header{display:flex;align-items:center;gap:9px;margin-bottom:22px;color:#5289c7}.inspector header b{flex:1;font-weight:500}.inspector h4{font-size:11px;font-weight:400;color:#9aa6b5;margin:17px 0 7px}.inspector p{margin:0;font-size:12px;color:#596f8d;line-height:1.8}.inspector .rule{height:1px;background:#eef2f7;margin:18px 0}.inspector footer{font-size:11px;color:#a2adbb;line-height:1.8;margin-top:22px}.inspector .mono{overflow-wrap:anywhere}
@media(max-width:1180px){.brandarea,.sidebar{width:218px}.main{padding:20px 20px 0}.scopebar{gap:14px;flex-wrap:wrap;padding:10px 0;margin-top:18px}.scopebar .policy{margin-left:auto}.topstatus{display:none}.toptools{padding:0 16px;gap:12px}.toolbar>.searchfield{width:235px}.toolbar{gap:5px}.toolbar button{padding:7px 9px}.context{width:220px;padding:24px 17px}.chat{padding:24px}.runarea{gap:7px}.runarea .quiet{padding:6px}.runarea button{font-size:11px}.runarea button .icon{width:14px;height:14px}.hint{font-size:11px}th,td{padding:0 8px}}
@media(max-width:1020px){.brandarea,.sidebar{width:205px}.topnav button{padding:5px 13px}.main{padding:17px 17px 0}.scopebar .policy{margin-left:0}.scopebar{gap:11px}.toolbar>.searchfield{width:200px}.toolbar button{font-size:11px;padding:7px 8px}.toolbar button .icon{width:14px;height:14px}.runarea>.runicon{display:none}.runarea button{gap:5px;padding:7px 9px}.runarea .quiet{font-size:11px}.tablefoot{font-size:10px}.scopebar .key{font-size:11px}}
@media(max-height:760px){.topbar{height:56px}.breadcrumb{margin-bottom:13px}.heading h1{font-size:21px}.projectart{width:39px;height:39px;border-radius:9px}.projectart .icon{width:25px;height:25px}.scopebar{margin-top:15px;padding:9px 0}.tabs{margin-top:5px}.tabs button{padding:10px 0}.toolbar{padding:12px 0}.hint{margin-bottom:9px}td{height:36px}.tablefoot{padding:8px 1px 12px}.runarea{min-height:72px;padding:13px 0}.sidebar{padding-top:18px;gap:16px}.task{padding:10px 9px;min-height:59px}.chathead{padding-bottom:13px;margin-bottom:15px}.chat h2{font-size:18px}.message{padding:8px 0}.checkline{padding:8px 0}.checkcard{padding:11px 14px}.context .section{padding:13px 0}}
input[type=checkbox]:checked{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGQ9Im00IDggMi41IDIuNUwxMiA1Ii8+PC9zdmc+)}
/* R4 glass: material belongs to chrome and transient controls; data stays opaque. */
:root{--accent:#333c49;--soft:#e9edf2;--ink:#29313b;--muted:#727b88;--line:#dbe0e7;--glass:rgba(255,255,255,.52);--glass-edge:rgba(255,255,255,.86);--glass-shadow:0 8px 32px #3b465413,inset 0 1px 0 #ffffffdc;--tint:#64748b;--green:#3e725d;--red:#a54740}
body{background:radial-gradient(ellipse at 4% 10%,#cdd5df 0,transparent 48%),radial-gradient(ellipse at 92% 82%,#d9d1d6 0,transparent 50%),linear-gradient(135deg,#e4e8ec 0%,#ecebed 48%,#dce3e9 100%);color:#303945}
.review{height:30px;background:#e7ebef82;border-color:#ffffffa6;backdrop-filter:blur(24px);color:#737d8a;gap:16px}.review nav{margin-left:auto}.review button{color:#6c7888}.review button.active{color:#384758;background:#ffffffe6;box-shadow:0 1px 4px #2c3c4c10,inset 0 1px 0 white}.review>button{background:#ffffff8c;border:1px solid #ffffffab}.app{height:calc(100vh - 30px)}
.topbar{height:68px;border-bottom:1px solid #ffffffbb;background:linear-gradient(#ffffff9c,#ffffff52);backdrop-filter:blur(32px) saturate(120%);box-shadow:0 1px 12px #45536b04;position:relative;z-index:4}.toptools{gap:18px}.brandarea{width:248px}.appmark{background:linear-gradient(145deg,#8795a7,#4a586d);border:1px solid #ffffffb8;box-shadow:0 2px 5px #40516a1d,inset 0 1px 0 #ffffffb0;border-radius:10px}.brand{color:#394757}.brandarea small{color:#8894a3}.topnav{background:#dce2e866;border:1px solid #ffffff94;border-radius:12px;padding:4px;box-shadow:inset 0 1px 3px #6573880a}.topnav button{border-radius:8px;color:#7c8796}.topnav button.active{background:linear-gradient(#fffffff5,#ffffffb5);box-shadow:0 2px 7px #3c4d6312,inset 0 1px 0 #fff;color:#3c4b60}.topstatus{color:#8b96a5}.topstatus .icon{color:#7d958a}.material-toggle{font-size:10px!important;color:#8d98a7!important}
.sidebar{width:248px;padding-top:24px;background:linear-gradient(155deg,#ffffff42,#edf1f653);backdrop-filter:blur(32px) saturate(115%);border-right:1px solid #ffffffbd;gap:21px}.sidehead>b{color:#657284;font-weight:500}.searchfield{background:#ffffff69;border:1px solid #ffffffa8;box-shadow:inset 0 1px 3px #4a5e7504,0 1px 3px #60759004;border-radius:9px}.searchfield input{color:#58697e}.searchfield:focus-within{outline:3px solid #697c9521;border-color:#9dabbc}.searchfield input::placeholder{color:#97a1ae}.task{border-radius:11px;padding-top:13px;padding-bottom:13px;min-height:69px}.task.active{background:linear-gradient(110deg,#ffffffe6,#ffffff80);border:1px solid #fffffff2;box-shadow:0 4px 15px #5264800c,inset 0 1px 0 white}.task.active b{color:#40546e}.task.active>.icon{color:#637b9a}.task.active small{color:#8192a7}.task>.icon{color:#94a1b4}.task b{font-weight:500;color:#5b6c82}.task .order{color:#9da8b7}.dot.green{background:#7d9a8c}.batchaction p{color:#929ead}.batchaction button{background:#ffffff72;border-color:#ffffffd9;border-radius:9px;color:#70839a;box-shadow:inset 0 1px 0 white,0 2px 5px #55657d06}.sidebottom{border-color:#ffffffaa}.sidebottom .quiet{color:#8292a6}
.main{padding:24px 30px 0;background:linear-gradient(150deg,#ffffffdb,#ffffffa6);backdrop-filter:blur(24px);border-left:1px solid #ffffff70}.breadcrumb{color:#a0abba;margin-bottom:18px}.breadcrumb span:last-child{color:#8593a5}.projectart{background:linear-gradient(150deg,#ffffffe8,#e7edf499);border:1px solid white;box-shadow:0 3px 12px #7487a30c,inset 0 1px 0 #fff;color:#758ba8;border-radius:12px}.heading h1{color:#3b4b61;font-size:23px;font-weight:500;letter-spacing:-.5px}.path{color:#a1abba}.badge{background:#ecf1f6c7;color:#7a8da6;border:1px solid #ffffffad;border-radius:6px}.badge.warning{background:#f6efe0b8;color:#9b8259}.badge.error{background:#f7eae6c9;color:#a56860}.scopebar{border-color:#e1e6edaa;margin-top:20px;padding:11px 0;gap:20px}.scopebar b{color:#596e87}.scopebar .key{color:#8c99aa}.scopebar .policy{color:#93a0b1}.scopebar .policy button{color:#94a4b8}
.workflow{display:flex;align-items:center;gap:10px;padding:17px 0 4px;color:#a2acb9;font-size:10px}.flowstep{display:flex;align-items:center;gap:7px;white-space:nowrap}.flowstep i{font-style:normal;width:17px;height:17px;border:1px solid #d9e1ea;border-radius:50%;font-size:9px;display:grid;place-items:center;color:#a8b3c0;background:#ffffff45}.flowstep.current{color:#657e9c}.flowstep.current i{background:#e8eef6;border-color:#d8e2ef;color:#7088a8;box-shadow:inset 0 1px 0 white}.flowstep.done{color:#7c968d}.flowstep.done i{background:#edf2ef;color:#91a298}.workflow>b{width:36px;height:1px;background:#e0e7f0}.flow-caption{font-size:9px;color:#a7b0bd}
.tabs{margin-top:8px;border-bottom-color:#e5eaf1;gap:25px}.tabs button{color:#99a5b5;padding:11px 0}.tabs button.active{color:#627c9f;border-bottom-color:#8ba4c5}.tabs button.active small{background:#e9eef5;color:#869bb6}.save-state>.icon{color:#8fa69c}.save-state{color:#a0acb9}.toolbar{padding:15px 0 12px;gap:7px}.toolbar>.searchfield{background:#f1f4f87d;border-color:#e7edf4;border-radius:8px}.toolbar button{border-radius:8px;background:linear-gradient(#ffffffed,#ffffffa3);border-color:#dce4efad;color:#7186a2;box-shadow:inset 0 1px 0 #fff,0 2px 4px #65789405}.toolbar button.subtle,.toolbar button.quiet{background:transparent;border-color:transparent;box-shadow:none;color:#96a5b9}.tooldivider{background:#e4ebf3}.hint{color:#9ba7b8}.hint .selection-count{color:#859abb}.hint strong{color:#8697af}.tablewrap{border-radius:10px;border:1px solid #dfe7f1;background:#fffffff2;box-shadow:0 3px 15px #8497b606}.tablewrap table{background:#fffffff8}th{background:#f7f9fc;color:#94a2b5;border-bottom:1px solid #e8eef6}td{color:#7b8da6;border-color:#eff3f8;height:37px}tr.chosen td{background:#edf2f8}.ref{color:#6e85a5}td.new{color:#7a95b7}.tag{color:#a5afbe}input[type=checkbox]:checked{background-color:#889fbe;border-color:#889fbe}input[type=checkbox]{border-color:#d4dfed}.row-detail{color:#a8b6c9}.row-detail:hover{background:#e9eef6;color:#7f98b7}.tablefoot{padding:10px 1px 11px;color:#a6b1bf}.tablefoot button{color:#a3b1c4}.notice{background:#f9f4e9c9;border-color:#eae0c9a6;color:#9e8a67;border-radius:10px;margin-top:11px}
button.primary{background:linear-gradient(145deg,#586a81,#3d4b61);border:1px solid #64758c;color:#f4f7fb;box-shadow:inset 0 1px 0 #ffffff40,0 3px 9px #465a7920;border-radius:9px}button.primary:hover{background:linear-gradient(145deg,#657890,#485972)}button.primary:disabled{background:#dce2ea;color:#9ba9bc;border-color:#dce3ed;box-shadow:none}button:hover{background:#eef2f7}button:focus-visible{outline:3px solid #6c83a535;outline-offset:3px}
.runarea{margin:0 -8px 15px;padding:12px 15px;min-height:76px;position:relative;border:1px solid #ffffffed;border-radius:15px;background:linear-gradient(125deg,#ffffffd9,#ffffff74);backdrop-filter:blur(28px) saturate(110%);box-shadow:0 7px 24px #60749110,inset 0 1px 0 #ffffff;gap:10px}.runarea>.runicon{background:#f6f9f7;border:1px solid #e6eeea;width:30px;height:30px;box-shadow:0 1px 3px #81948b05}.runinfo b{font-size:12px;color:#71859f;font-weight:500}.runinfo small{font-size:10px;color:#a1afc0}.runarea .quiet{color:#9caabe;padding:7px 5px;font-size:10px}.runarea #saveButton{background:#ffffff96;border:1px solid #e0e7f0;color:#9aacc3;border-radius:8px;font-size:10px;box-shadow:inset 0 1px 0 white}.runarea #saveButton:disabled{background:#ffffff55;color:#bbc4d0;border-color:#e9eef5}.runarea .primary{padding-left:13px;padding-right:13px;min-height:34px;font-size:11px}.runarea #secondary{max-width:150px}.stage-badge{font-size:9px;color:#a9b5c4;background:#f1f4f84d;border:1px solid #e9eef5;border-radius:5px;padding:3px 6px;white-space:nowrap}
.assistantmain{padding:0;background:#ffffffbd}.context{background:linear-gradient(150deg,#ffffff72,#eff3f74a);backdrop-filter:blur(24px);border-left-color:#ffffffbf}.chathead{border-color:#e5ebf3}.chatinput,.checkcard{background:linear-gradient(140deg,#fffffff5,#ffffff96);border:1px solid #e0e8f3;box-shadow:inset 0 1px 0 white,0 3px 15px #7a90b008}.message.user{background:#edf2f7a8;border-color:#e6edf5}.chat h2{color:#768ba7;font-weight:400}.chathead strong{color:#7c8faa}.chathead>.icon{color:#91a7c5}.inspector{background:linear-gradient(135deg,#ffffffef,#f4f7fbcf);backdrop-filter:blur(36px) saturate(115%);border-color:white;box-shadow:0 12px 40px #49638420,inset 0 1px 0 white;border-radius:15px}.toast{background:#ffffffe8;backdrop-filter:blur(28px);border:1px solid white;color:#7a8ea9;box-shadow:0 8px 25px #526d9217}
.review-dialog{width:570px;max-width:calc(100vw - 40px);max-height:calc(100vh - 60px);padding:0;border:1px solid #ffffffeb;border-radius:22px;color:#53657e;background:linear-gradient(140deg,#fffffff0,#f4f7fbe0);backdrop-filter:blur(42px) saturate(115%);box-shadow:0 30px 100px #34496630,inset 0 1px 0 white;overflow:auto}.review-dialog::backdrop{background:#7b8da72b;backdrop-filter:blur(5px)}.dialog-header{padding:25px 27px 19px;display:flex;align-items:center;gap:13px}.dialog-symbol{width:42px;height:42px;background:#ffffffa8;border:1px solid white;border-radius:12px;color:#7f98b9;display:grid;place-items:center;box-shadow:0 3px 10px #647fa30c}.dialog-symbol .icon{width:24px;height:24px}.dialog-header h2{font-size:18px;font-weight:500;margin:0 0 5px;color:#5f7695}.dialog-header p{font-size:10px;color:#a2afc0;margin:0}.dialog-header>.quiet{margin-left:auto}.dialog-content{padding:0 27px 22px}.scope-switch{display:flex;background:#dae3ee5e;border:1px solid #ffffffbd;border-radius:9px;padding:3px;margin-bottom:17px}.scope-switch button{width:50%;background:transparent;border:0;box-shadow:none;border-radius:6px;font-size:11px;color:#93a3b9}.scope-switch button.active{background:#ffffffcb;box-shadow:0 2px 5px #526e930e;color:#7e93b0}.review-project{display:flex;align-items:center;gap:10px;padding:14px 15px;background:#ffffffa6;border:1px solid #ffffffd6;border-radius:10px;margin-bottom:14px}.review-project>.icon{color:#8da2c0}.review-project b{display:block;font-size:12px;font-weight:500;color:#748aa8}.review-project small{display:block;font-size:10px;margin-top:5px;color:#a6b3c4}.review-project>span:last-child{margin-left:auto;color:#8ea6c5;font-size:10px}.review-items{border:1px solid #e1e8f2;border-radius:10px;overflow:auto;max-height:160px;background:#ffffffe0}.review-items th,.review-items td{height:32px;font-size:10px;padding:0 12px}.review-items .mono{font-size:11px}.review-totals{display:flex;gap:22px;margin:15px 0;color:#a0aec0;font-size:10px}.review-totals b{font-weight:500;color:#859dbc;margin-left:4px}.review-policy{padding-top:14px;border-top:1px solid #e1e8f2;display:flex;gap:8px;align-items:flex-start;font-size:10px;line-height:1.9;color:#9dacc0}.review-policy>.icon{width:14px;height:14px;margin-top:2px;color:#a5b6cd}.review-error{background:#f6efe6;border:1px solid #e8dcc7;border-radius:8px;color:#a68e66;padding:12px 13px;font-size:11px;line-height:1.8;margin-top:13px}.dialog-footer{display:flex;justify-content:flex-end;gap:9px;padding:16px 27px 21px;background:#ffffff35;border-top:1px solid #ffffffb8}.dialog-footer button{font-size:11px;border-radius:9px;min-height:33px}.dialog-footer>.quiet{margin-right:auto}.dialog-footer .primary{min-width:122px}.reduced-transparency .topbar,.reduced-transparency .sidebar,.reduced-transparency .main,.reduced-transparency .context{background:#f4f6f9;backdrop-filter:none}.reduced-transparency .main{background:#fff}.reduced-transparency .runarea,.reduced-transparency .review-dialog,.reduced-transparency .inspector{background:#f8fafc;backdrop-filter:none}.reduced-transparency .review-dialog::backdrop{backdrop-filter:none;background:#4b5a6c40}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@supports not (backdrop-filter:blur(1px)){.topbar,.sidebar{background:#f0f3f7}.main{background:#fff}.review-dialog,.runarea,.context,.inspector{background:#f7f9fc}}
@media(max-width:1180px){.brandarea,.sidebar{width:218px}.main{padding:20px 21px 0}.toptools{gap:12px}.topstatus{display:none}.material-toggle{display:none}.scopebar .policy{margin-left:auto}.workflow{gap:8px}.workflow>b{width:22px}.flow-caption{display:none}.runarea{margin-left:-5px;margin-right:-5px;padding:11px 12px;gap:7px}.runarea .quiet{font-size:10px}.toolbar>.searchfield{width:220px}}
@media(max-width:1020px){.brandarea,.sidebar{width:205px}.main{padding:17px 17px 0}.scopebar .policy{margin-left:0}.runarea>.runicon{display:none}.toolbar>.searchfield{width:195px}.runarea .primary{padding-left:10px;padding-right:10px}.stage-badge{display:none}.workflow{font-size:10px}.workflow>b{width:20px}}
@media(max-height:760px){.topbar{height:55px}.main{padding-top:14px}.breadcrumb{margin-bottom:11px}.scopebar{margin-top:13px;padding:8px 0}.workflow{padding-top:12px;padding-bottom:0}.tabs{margin-top:3px}.tabs button{padding:9px 0}.toolbar{padding:11px 0 10px}.tablefoot{padding:8px 1px 10px}td{height:33px}.runarea{min-height:65px;padding:10px 12px;margin-bottom:11px}.sidebar{padding-top:18px;gap:17px}.task{min-height:59px;padding-top:10px;padding-bottom:10px}}
/* Keep working data legible above translucent chrome. */
.heading h1{color:#354255}.brand{color:#354255}.sidehead>b{color:#5c697a}.task b{color:#52667f}.task.active b{color:#40546e}.task small{color:#7c8ba0}.task.active small{color:#73869f}.tablewrap td{color:#526780}.tablewrap .ref{color:#425e81}.tablewrap td.new{color:#5479a6}.tablewrap th{color:#74869f;font-size:11px}.tablewrap .tag{color:#8191a7}.tablewrap td.muted{color:#8391a5}.scopebar .key{color:#7d8a9e}.scopebar b{color:#4f6684}.scopebar .policy{color:#8695aa}.runinfo b{color:#536d90}.runinfo small{color:#8b9eb8}.tabs button.active{color:#536f95}.tabs button{color:#8a9ab0}.review-dialog h2{color:#506987}.review-project b{color:#5b789e}.review-items td{color:#5f799b}.review-policy{color:#8d9fb7}.dialog-header p{color:#93a3b9}.flow-caption{color:#98a7bc}
</style><svg xmlns="http://www.w3.org/2000/svg" style="position:absolute;width:0;height:0;overflow:hidden" aria-hidden="true"><symbol id="icon-sidebar" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="2.5" y="3.5" width="15" height="13" rx="2"/><path d="M7 3.5v13M4.5 7h.1m-.1 3h.1"/></g></symbol><symbol id="icon-grid" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="5" height="5" rx="1"/><rect x="12" y="3" width="5" height="5" rx="1"/><rect x="3" y="12" width="5" height="5" rx="1"/><rect x="12" y="12" width="5" height="5" rx="1"/></g></symbol><symbol id="icon-chat" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M5 3.5h10a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H9l-4.5 3v-3a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2Z"/><path d="M6.5 7.5h7m-7 3h4"/></g></symbol><symbol id="icon-plus" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M10 4v12M4 10h12"/></g></symbol><symbol id="icon-search" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="8.5" cy="8.5" r="5.5"/><path d="m12.5 12.5 4.5 4.5"/></g></symbol><symbol id="icon-folder" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M2.5 6a2 2 0 0 1 2-2h4l2 2h5a2 2 0 0 1 2 2v6.5a2 2 0 0 1-2 2h-11a2 2 0 0 1-2-2Z"/></g></symbol><symbol id="icon-project" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="2.5" width="12" height="15" rx="2"/><path d="M7 6h6M7 10h3m0 0v4m0-4h3m-6 4h6"/></g></symbol><symbol id="icon-sort" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M6 4v12m-3-3 3 3 3-3M13 5h4m-4 5h3m-3 5h2"/></g></symbol><symbol id="icon-trash" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M3.5 5.5h13M7 5V3h6v2M5 5.5l.8 11h8.4l.8-11M8 8.5v5m4-5v5"/></g></symbol><symbol id="icon-more" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="4" cy="10" r=".9" fill="currentColor" stroke="none"/><circle cx="10" cy="10" r=".9" fill="currentColor" stroke="none"/><circle cx="16" cy="10" r=".9" fill="currentColor" stroke="none"/></g></symbol><symbol id="icon-sliders" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M3 5h3m4 0h7M3 10h8m4 0h2M3 15h2m4 0h8"/><circle cx="8" cy="5" r="2"/><circle cx="13" cy="10" r="2"/><circle cx="7" cy="15" r="2"/></g></symbol><symbol id="icon-copy" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="7" y="7" width="10" height="10" rx="2"/><path d="M12.5 4V3H3v9.5h1"/></g></symbol><symbol id="icon-table" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="2.5" y="3.5" width="15" height="13" rx="2"/><path d="M2.5 8h15M8 8v8.5m4-8.5v8.5"/></g></symbol><symbol id="icon-rules" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M7 5h10M7 10h10M7 15h10"/><circle cx="3.5" cy="5" r=".6"/><circle cx="3.5" cy="10" r=".6"/><circle cx="3.5" cy="15" r=".6"/></g></symbol><symbol id="icon-log" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M6 2.5h6l4 4v11H4v-15h2Zm6 0v4h4M7 10h6m-6 3.5h6"/></g></symbol><symbol id="icon-download" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M10 2.5v10m-3.5-3.5 3.5 3.5 3.5-3.5M3.5 13v4h13v-4"/></g></symbol><symbol id="icon-upload" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M10 12.5v-10M6.5 6 10 2.5 13.5 6M3.5 13v4h13v-4"/></g></symbol><symbol id="icon-scan" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M7 3H3v4m10-4h4v4M3 13v4h4m10-4v4h-4M6 10h8m-6-3v6m4-6v6"/></g></symbol><symbol id="icon-save" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M3 3h12l2 2v12H3ZM6 3v5h7V3M6 17v-5h8v5"/></g></symbol><symbol id="icon-play" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m7 3.5 9 6.5-9 6.5Z" fill="currentColor" stroke="none"/></g></symbol><symbol id="icon-pause" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M7 4v12m6-12v12" stroke-width="2.5"/></g></symbol><symbol id="icon-check" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m4.5 10 3.5 3.5 7.5-8"/></g></symbol><symbol id="icon-check-circle" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="7.25"/><path d="m6.5 10 2.5 2.5 4.5-5"/></g></symbol><symbol id="icon-clock" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="7.25"/><path d="M10 5.5v5l3 1.5"/></g></symbol><symbol id="icon-warning" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m10 2.5 8 14H2Zm0 5v4.5m0 2.5h.01"/></g></symbol><symbol id="icon-refresh" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M16.5 7A7 7 0 1 0 17 12M16.5 3v4h-4"/></g></symbol><symbol id="icon-info" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="7.25"/><path d="M10 9v5m0-8h.01"/></g></symbol><symbol id="icon-chevron" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m8 5 5 5-5 5"/></g></symbol><symbol id="icon-close" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m5 5 10 10M15 5 5 15"/></g></symbol><symbol id="icon-arrow-up" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M10 16V4M5.5 8.5 10 4l4.5 4.5"/></g></symbol><symbol id="icon-circuit" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="5" width="10" height="10" rx="2"/><path d="M8 2v3m4-3v3m-4 10v3m4-3v3M2 8h3m-3 4h3m10-4h3m-3 4h3M8 8h4v4H8Z"/></g></symbol><symbol id="icon-columns" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="2.5" y="3.5" width="15" height="13" rx="2"/><path d="M7.5 3.5v13m5-13v13"/></g></symbol></svg>
<div class="review"><strong>界面预览 R4 · 示例数据 · 未连接 CAD</strong><button onclick="location.href='material-lab.html'">R5 毛玻璃机制实测</button><button id="advanceDemo" class="panelhidden" onclick="advanceDemo()">演示下一阶段</button><nav aria-label="预览状态"><button data-state="ready" onclick="setState('ready')">准备执行</button><button data-state="running" onclick="setState('running')">执行中</button><button data-state="recovery" onclick="setState('recovery')">待核验</button><button data-state="assistant" onclick="setState('assistant')">DSH 助手</button></nav></div>
<div class="app"><header class="topbar"><div class="brandarea"><span class="appmark"><svg class="icon " aria-hidden="true"><use href="#icon-circuit"/></svg></span><div><span class="brand">DxPartReplace</span><small>DxDesigner 器件替换</small></div></div><div class="toptools"><button class="quiet icon-only" data-icon="sidebar" title="任务侧栏" aria-label="任务侧栏" onclick="toast('左侧显示当前批次的工程任务。')"><svg class="icon " aria-hidden="true"><use href="#icon-sidebar"/></svg><span></span></button>
<nav class="topnav" aria-label="工作区"><button class="active" data-icon="grid" id="tasknav" onclick="setState(operationState)"><svg class="icon " aria-hidden="true"><use href="#icon-grid"/></svg><span>任务中心</span></button><button class="" data-icon="chat" id="ainav" onclick="setState('assistant')"><svg class="icon " aria-hidden="true"><use href="#icon-chat"/></svg><span>DSH 助手</span></button></nav><span class="spacer"></span><button class="quiet material-toggle" aria-pressed="false" onclick="toggleTransparency(this)">减少透明度</button><button class="quiet" data-icon="sliders" onclick="toast('设置:关闭时归档、布局与显示选项。')"><svg class="icon " aria-hidden="true"><use href="#icon-sliders"/></svg><span>设置</span></button></div></header>
<div class="body"><aside class="sidebar"><div class="sidehead"><b>工程任务</b><button class="quiet icon-only" data-icon="plus" aria-label="新建任务" title="新建任务" onclick="toast('从目录选择工程并创建任务。')"><svg class="icon " aria-hidden="true"><use href="#icon-plus"/></svg><span></span></button></div><label class="searchfield"><svg class="icon " aria-hidden="true"><use href="#icon-search"/></svg><input id="tasksearch" placeholder="搜索工程" aria-label="搜索工程" oninput="filterTasks(this.value)"></label><div><div class="batchtitle"><span>当前批次 · 3 个工程</span><button class="" data-icon="sort" title="执行顺序" aria-label="执行顺序" onclick="toast('按真实执行顺序排列;搜索不改变执行范围。')"><svg class="icon " aria-hidden="true"><use href="#icon-sort"/></svg><span></span></button></div>
<button class="task active" data-name="Audio_D2128" onclick="selectTask(this)"><svg class="icon " aria-hidden="true"><use href="#icon-project"/></svg><span><b>Audio_D2128</b><small><i class="dot green"></i><span id="taskStatus">待执行</span> · <span id="taskSelectionCount">1 个替换位号</span></small></span><span class="order">01</span></button>
<button class="task" data-name="Audio_T605A" onclick="selectTask(this)"><svg class="icon " aria-hidden="true"><use href="#icon-project"/></svg><span><b>Audio_T605A</b><small><i class="dot"></i>待配置 · 计划未保存</small></span><span class="order">02</span></button>
<button class="task" data-name="Power_B3100" onclick="selectTask(this)"><svg class="icon " aria-hidden="true"><use href="#icon-project"/></svg><span><b>Power_B3100</b><small><i class="dot"></i>待配置 · 尚未导入</small></span><span class="order">03</span></button>
</div><div class="batchaction"><p>执行范围包含本批全部工程</p><button class="" data-icon="play" id="batchRun" onclick="toast('本批仍有 2 个未配置工程,请先完成配置。')"><svg class="icon " aria-hidden="true"><use href="#icon-play"/></svg><span>顺序执行本批 · 3</span></button></div><div class="sidebottom"><button class="quiet" data-icon="trash" onclick="toast('归档任务与恢复入口。')"><svg class="icon " aria-hidden="true"><use href="#icon-trash"/></svg><span>回收站</span></button><button class="quiet" data-icon="more" onclick="toast('编辑、调整执行顺序、删除任务。删除需确认。')"><svg class="icon " aria-hidden="true"><use href="#icon-more"/></svg><span>批次管理</span></button></div></aside>
<main class="main" id="workmain"><div class="breadcrumb"><svg class="icon " aria-hidden="true"><use href="#icon-folder"/></svg><span>任务中心</span><svg class="icon " aria-hidden="true"><use href="#icon-chevron"/></svg><span>当前批次</span><svg class="icon " aria-hidden="true"><use href="#icon-chevron"/></svg><span>Audio_D2128</span></div>
<div class="projectheader"><div class="projectart"><svg class="icon " aria-hidden="true"><use href="#icon-project"/></svg></div><div class="projectidentity"><div class="heading"><h1 id="projectName">Audio_D2128</h1><span class="badge" id="stateBadge">待执行</span></div><div class="path"><span class="mono" id="projectPath" title="D:\Projects\Audio_D2128\Audio_D2128.prj">D:\Projects\Audio_D2128\Audio_D2128.prj</span><button class="quiet icon-only" data-icon="copy" aria-label="复制工程路径" title="复制工程路径" onclick="toast('预览工程路径:D:\\Projects\\Audio_D2128\\Audio_D2128.prj')"><svg class="icon " aria-hidden="true"><use href="#icon-copy"/></svg><span></span></button></div></div><div class="projectmenu"><button class="quiet icon-only" data-icon="more" aria-label="工程更多操作" title="工程更多操作" onclick="document.getElementById('projectMenu').hidden=!document.getElementById('projectMenu').hidden"><svg class="icon " aria-hidden="true"><use href="#icon-more"/></svg><span></span></button><div id="projectMenu" hidden><button class="" data-icon="refresh" onclick="toast('预览:重新读取当前工程。')"><svg class="icon " aria-hidden="true"><use href="#icon-refresh"/></svg><span>重新读取工程</span></button><button class="" data-icon="log" onclick="toast('预览:查看轮次证据。')"><svg class="icon " aria-hidden="true"><use href="#icon-log"/></svg><span>查看轮次证据</span></button><button class="" data-icon="plus" onclick="toast('预览:保留旧证据,创建新一轮。')"><svg class="icon " aria-hidden="true"><use href="#icon-plus"/></svg><span>开始新一轮</span></button><button class="" data-icon="download" onclick="toast('预览:导出脱敏诊断包。')"><svg class="icon " aria-hidden="true"><use href="#icon-download"/></svg><span>导出诊断包</span></button></div></div></div>
<div class="scopebar"><span><span class="key">当前工程</span><b>6</b> 个位号</span><span><span class="key">计划替换</span><b id="selectedCount">1</b></span><span><span class="key">保留</span><b id="retainedCount">5</b></span><span class="policy"><svg class="icon " aria-hidden="true"><use href="#icon-sliders"/></svg>Value:Part Label · 自定义优先<button class="quiet icon-only" data-icon="chevron" title="工程设置" aria-label="工程设置" onclick="secondaryAction()"><svg class="icon " aria-hidden="true"><use href="#icon-chevron"/></svg><span></span></button></span></div>
<div class="workflow" aria-label="执行流程"><span class="flowstep current" data-step="plan"><i>1</i>配置计划</span><b></b><span class="flowstep" data-step="review"><i>2</i>核对范围</span><b></b><span class="flowstep" data-step="run"><i>3</i>替换与核验</span><span class="spacer"></span><span class="flow-caption">工程操作以保存核验结果为准</span></div><div class="tabs"><button class="active" data-icon="table" data-tab="plan" onclick="showTab('plan')"><svg class="icon " aria-hidden="true"><use href="#icon-table"/></svg><span>位号计划 <small>6</small></span></button><button class="" data-icon="rules" data-tab="rules" onclick="showTab('rules')"><svg class="icon " aria-hidden="true"><use href="#icon-rules"/></svg><span>本批料号规则 <small>1</small></span></button><button class="" data-icon="log" data-tab="results" onclick="showTab('results')"><svg class="icon " aria-hidden="true"><use href="#icon-log"/></svg><span>结果与日志</span></button><span class="spacer"></span><span class="save-state"><svg class="icon " aria-hidden="true"><use href="#icon-check-circle"/></svg><span id="saveStatus">计划已保存</span></span></div>
<div id="notice" class="notice panelhidden"></div>
<section class="workspace" id="planPanel"><div class="toolbar"><label class="searchfield"><svg class="icon " aria-hidden="true"><use href="#icon-search"/></svg><input id="rowsearch" placeholder="搜索位号、料号或图页" aria-label="查找位号" oninput="filterRows(this.value)"></label><span class="spacer"></span><button class="subtle" data-icon="download" onclick="toast('导出本批全部 3 个工程的 BOM 模板。')"><svg class="icon " aria-hidden="true"><use href="#icon-download"/></svg><span>BOM 模板</span></button><button class="" data-icon="upload" onclick="toast('本批 BOM 全部校验通过后显示预览,确认后保存。')"><svg class="icon " aria-hidden="true"><use href="#icon-upload"/></svg><span>导入 BOM</span></button><button class="" data-icon="scan" onclick="toast('按本批料号规则采集当前工程位号。')"><svg class="icon " aria-hidden="true"><use href="#icon-scan"/></svg><span>采集位号</span></button><span class="tooldivider"></span><button class="quiet icon-only" data-icon="columns" aria-label="表格列与批量操作" title="表格列与批量操作" onclick="toast('列设置、批量填写与选中行操作。')"><svg class="icon " aria-hidden="true"><use href="#icon-columns"/></svg><span></span></button></div>
<div class="hint"><span>显示 <strong id="visibleCount">6</strong> 个位号</span><span>·</span><span id="selectionSummary" class="selection-count">替换 1 个,保留 5 个</span><span class="spacer"></span><svg class="icon " aria-hidden="true"><use href="#icon-info"/></svg><span>同步 NC 按行设置</span></div>
<div class="tablewrap"><table><thead><tr><th>替换</th><th>位号</th><th>图页</th><th>旧料号</th><th>新料号</th><th>原 Value</th><th>自定义 Value</th><th>同步 NC</th><th aria-label="行详情"></th></tr></thead><tbody id="rows"></tbody></table><div class="empty panelhidden" id="empty">没有匹配位号</div></div><div class="tablefoot"><span>当前工程 · 6 个位号</span><button class="quiet" data-icon="columns" onclick="toast('预览:完整身份字段保留在行详情,可调整列。')"><svg class="icon " aria-hidden="true"><use href="#icon-columns"/></svg><span>列与批量操作</span></button></div></section>
<section class="workspace panelhidden" id="rulesPanel"><div class="toolbar"><span style="font-size:12px;color:#7f8da0">本批共用规则</span><span class="spacer"></span><button class="" data-icon="plus" onclick="toast('预览:打开料号规则编辑器。')"><svg class="icon " aria-hidden="true"><use href="#icon-plus"/></svg><span>添加规则</span></button></div><div class="ruleshint">规则提供采集条件与默认值。执行以已保存的位号计划为准;修改规则保留逐行手动覆盖。</div><div class="tablewrap"><table><thead><tr><th>启用</th><th>旧料号</th><th>新料号</th><th>自定义 Value</th><th>同步 NC</th><th>目标封装</th></tr></thead><tbody><tr><td><svg class="icon muted" aria-hidden="true"><use href="#icon-check"/></svg></td><td class="mono">4100-CA0000-T7</td><td class="mono">4100-CA0000-T0</td><td>不写入</td><td>是</td><td>未指定</td></tr></tbody></table></div><div class="tablefoot">作用范围:本批 3 个工程。修改后需核对并保存各工程的位号计划。</div></section>
<section class="workspace panelhidden" id="resultsPanel"><div class="resultview"><b>本轮尚无执行结果</b><p>执行后核对位号、实际回读料号和保存核验状态。<br>完整日志与轮次证据保留独立入口。</p><button class="" data-icon="log" onclick="toast('预览:完整日志按页加载。')"><svg class="icon " aria-hidden="true"><use href="#icon-log"/></svg><span>完整日志</span></button></div></section>
<footer class="runarea"><span class="runicon"><svg class="icon " aria-hidden="true"><use href="#icon-check"/></svg></span><div class="runinfo"><b id="runTitle">当前工程待执行</b><small id="runDetail">替换 1 个,保留 5 个。</small><div class="progress panelhidden" id="progress"></div></div><button class="quiet" data-icon="log" onclick="showTab('results')"><svg class="icon " aria-hidden="true"><use href="#icon-log"/></svg><span>完整日志</span></button><button class="quiet" data-icon="sliders" id="secondary" onclick="secondaryAction()"><svg class="icon " aria-hidden="true"><use href="#icon-sliders"/></svg><span>计划设置</span></button><button class="" data-icon="save" id="saveButton" onclick="savePlan()"><svg class="icon " aria-hidden="true"><use href="#icon-save"/></svg><span>保存计划</span></button><button class="primary" data-icon="play" id="execute" onclick="primaryAction()"><svg class="icon " aria-hidden="true"><use href="#icon-play"/></svg><span>执行当前工程</span></button></footer>
<aside id="rowInspector" class="inspector panelhidden" aria-label="位号详情"><header><svg class="icon " aria-hidden="true"><use href="#icon-info"/></svg><b>位号详情</b><button class="quiet icon-only" data-icon="close" aria-label="关闭详情" onclick="document.getElementById('rowInspector').classList.add('panelhidden')"><svg class="icon " aria-hidden="true"><use href="#icon-close"/></svg><span></span></button></header><h4>位号</h4><p id="detailRef" class="mono">RV05</p><h4>唯一标识 UID</h4><p id="detailUid" class="mono">demo-0</p><h4>原理图 / 图页</h4><p class="mono">MAIN / 1</p><div class="rule"></div><h4>旧料号</h4><p class="mono">4100-CA0000-T7</p><h4>新料号</h4><p class="mono">4100-CA0000-T0</p><h4>目标封装</h4><p>未指定 · 不主动覆写</p><footer>详情中的标识用于定位同名位号。实际执行以已保存的逐行计划为准。</footer></aside>
</main>
<main id="assistantmain" class="main assistantmain panelhidden"><section class="chat"><div class="chathead"><svg class="icon " aria-hidden="true"><use href="#icon-chat"/></svg><strong>DSH 助手</strong><small>会话范围:当前工程</small></div><span class="agentlabel"><svg class="icon " aria-hidden="true"><use href="#icon-project"/></svg>Audio_D2128</span><h2>计划检查记录</h2><p>读取来源:当前工程已保存的位号计划</p><div class="message user">检查当前工程的替换范围,不执行。</div><div class="message"><span class="agentlabel"><svg class="icon " aria-hidden="true"><use href="#icon-log"/></svg>DSH · 计划读取结果</span><p>当前页面计划:RV05;其余位号不替换。</p><div class="checkcard"><b><svg class="icon " aria-hidden="true"><use href="#icon-table"/></svg>当前计划摘要</b><div class="checkline"><span>替换范围</span><span>1 个替换 · 5 个保留</span></div><div class="checkline"><span class="mono">4100-CA0000-T7 → 4100-CA0000-T0</span><span>计划已保存</span></div><div class="checkline"><span>Part Label 写入 Value</span><span>开启 · 自定义优先</span></div><footer><svg class="icon " aria-hidden="true"><use href="#icon-info"/></svg>运行前 CAD 核验:未执行。工程写入:未执行。</footer></div></div><div class="chatinput"><input aria-label="发送给助手" placeholder="输入检查要求或任务指令…"><footer><svg class="icon " aria-hidden="true"><use href="#icon-project"/></svg><span>当前工程:Audio_D2128</span><span>· 读取计划</span><button class="primary" data-icon="arrow-up" aria-label="发送" title="发送" onclick="toast('预览未连接模型,指令未发送。')"><svg class="icon " aria-hidden="true"><use href="#icon-arrow-up"/></svg><span></span></button></footer></div><small class="chatdisclaimer">助手回复不作为保存核验结果,工程写入仍需确认执行范围。</small></section>
<aside class="context"><h3><svg class="icon " aria-hidden="true"><use href="#icon-sidebar"/></svg>任务上下文</h3><div class="section"><small>当前工程</small><b>Audio_D2128</b><div class="mono">D:\Projects\Audio_D2128\Audio_D2128.prj</div><span class="badge">待执行</span></div><div class="section"><small>当前计划</small><b>替换 1 个 / 保留 5 个</b><br><span class="muted">Value:Part Label<br>同步 NC:按行配置</span></div><div class="section"><small>本次助手权限</small><b>读取计划</b><br><span class="muted">尚未执行工程写入</span><button class="" data-icon="table" onclick="setState(operationState)"><svg class="icon " aria-hidden="true"><use href="#icon-table"/></svg><span>返回位号计划</span></button></div></aside></main>
</div></div><div id="toast" class="toast panelhidden" role="status"></div><dialog id="executionReview" class="review-dialog" aria-labelledby="reviewTitle"><header class="dialog-header"><span class="dialog-symbol"><svg class="icon"><use href="#icon-scan"/></svg></span><div><h2 id="reviewTitle">核对执行范围</h2><p>演示流程 · 不会修改工程文件</p></div><button class="quiet icon-only" aria-label="关闭执行确认" onclick="closeReview()"><svg class="icon"><use href="#icon-close"/></svg></button></header><section class="dialog-content"><div class="scope-switch" aria-label="执行范围"><button id="scopeCurrent" class="active" onclick="chooseScope('current')">当前工程</button><button id="scopeBatch" onclick="chooseScope('batch')">本批工程 · 3</button></div><div class="review-project"><svg class="icon"><use href="#icon-project"/></svg><span><b id="reviewProject">Audio_D2128</b><small id="reviewPath">D:\Projects\Audio_D2128\Audio_D2128.prj</small></span><span id="reviewPlanState">计划已保存</span></div><div class="review-items"><table><thead><tr><th>位号</th><th>旧料号</th><th>新料号</th><th>同步 NC</th></tr></thead><tbody id="reviewRows"></tbody></table></div><div class="review-totals"><span>工程<b id="reviewProjectCount">1</b></span><span>替换<b id="reviewReplaceCount">1</b></span><span>保留<b id="reviewKeepCount">5</b></span></div><div class="review-policy"><svg class="icon"><use href="#icon-info"/></svg><span id="reviewPolicy">执行后依次保存工程、重新打开并回读核验。显示过滤不改变执行范围。</span></div><div id="reviewError" class="review-error panelhidden"></div></section><footer class="dialog-footer"><button class="quiet" onclick="closeReview()">返回计划</button><button id="confirmExecution" class="primary" onclick="confirmExecution()"><svg class="icon"><use href="#icon-play"/></svg><span>确认演示执行</span></button></footer></dialog><script>
let state='ready',operationState='ready',dirty=false,toastTimer;
let runPhase=1,pauseRequested=false,reviewScope='current',reviewSnapshot='',reviewRecovery=false,completedRefs=[];
const refs=['RV05','RV11','C103','C104','C105','C106'];
const phaseNames=['准备环境','替换位号','保存工程','重新打开并回读核验'];
const rowsElement=document.getElementById('rows');
function svgIcon(name){return '<svg class="icon" aria-hidden="true"><use href="#icon-'+name+'"/></svg>'}
rowsElement.innerHTML=refs.map((ref,i)=>`<tr class="${i===0?'chosen':''}"><td><input type="checkbox" ${i===0?'checked':''} aria-label="替换 ${ref}" onchange="markDirty(this)"></td><td class="ref mono">${ref}</td><td><span class="tag">MAIN / 1</span></td><td class="mono">4100-CA0000-T7</td><td class="mono new">4100-CA0000-T0</td><td class="mono">100nF / 50V</td><td class="muted">—</td><td><input type="checkbox" checked aria-label="${ref} 同步 NC" onchange="markDirty(this)"></td><td><button class="row-detail" aria-label="${ref} 位号详情" onclick="openRowDetail(${i})">${svgIcon('info')}</button></td></tr>`).join('');
function currentPlan(){return [...rowsElement.rows].map((tr,i)=>({ref:refs[i],enabled:tr.querySelectorAll('input')[0].checked,nc:tr.querySelectorAll('input')[1].checked}))}
let savedPlan=JSON.stringify(currentPlan());
function selectedRows(){return currentPlan().filter(row=>row.enabled)}
function countSelected(){return selectedRows().length}
function isLocked(){return operationState!=='ready'}
function toast(message){const box=document.getElementById('toast');box.textContent=message;box.classList.remove('panelhidden');clearTimeout(toastTimer);toastTimer=setTimeout(()=>box.classList.add('panelhidden'),3500)}
function labelButton(id,label,icon){const button=document.getElementById(id);button.innerHTML=svgIcon(icon)+'<span>'+label+'</span>';button.dataset.icon=icon}
function updateCounts(){const n=countSelected();document.getElementById('selectedCount').textContent=n;document.getElementById('retainedCount').textContent=6-n;document.getElementById('selectionSummary').textContent='替换 '+n+' 个,保留 '+(6-n)+' 个';document.getElementById('taskSelectionCount').textContent=n+' 个替换位号';return n}
function markDirty(box){if(isLocked())return;box.closest('tr').classList.toggle('chosen',box.closest('tr').querySelector('input').checked);dirty=JSON.stringify(currentPlan())!==savedPlan;refreshStatus()}
function savePlan(){if(isLocked()||!dirty)return;dirty=false;savedPlan=JSON.stringify(currentPlan());refreshStatus();toast('演示计划已保存至当前页面,未写入工程或数据库。')}
function showTab(tab){document.querySelectorAll('[data-tab]').forEach(b=>b.classList.toggle('active',b.dataset.tab===tab));['plan','rules','results'].forEach(t=>document.getElementById(t+'Panel').classList.toggle('panelhidden',t!==tab))}
function filterTasks(query){document.querySelectorAll('.task').forEach(e=>e.classList.toggle('panelhidden',!e.dataset.name.toLowerCase().includes(query.toLowerCase())))}
function filterRows(query){let count=0;[...rowsElement.rows].forEach(row=>{const match=row.textContent.toLowerCase().includes(query.toLowerCase());row.classList.toggle('panelhidden',!match);if(match)count++});document.getElementById('visibleCount').textContent=count;document.getElementById('empty').classList.toggle('panelhidden',count!==0)}
function selectTask(button){if(!button.classList.contains('active'))toast('预览聚焦 Audio_D2128;其他工程仅展示状态。')}
function toggleTransparency(button){const reduced=document.body.classList.toggle('reduced-transparency');button.setAttribute('aria-pressed',String(reduced));button.textContent=reduced?'恢复透明效果':'减少透明度'}
function openRowDetail(index){document.getElementById('detailRef').textContent=refs[index];document.getElementById('detailUid').textContent='demo-'+index;document.getElementById('rowInspector').classList.remove('panelhidden')}
function setState(next){closeReview();document.getElementById('rowInspector').classList.add('panelhidden');document.getElementById('projectMenu').hidden=true;
if(next!=='assistant'){operationState=next;if(next==='running'){runPhase=1;pauseRequested=false}if(next==='ready'){pauseRequested=false;completedRefs=[]}state=next;}else state='assistant';
const assistant=state==='assistant';document.getElementById('workmain').classList.toggle('panelhidden',assistant);document.getElementById('assistantmain').classList.toggle('panelhidden',!assistant);document.getElementById('tasknav').classList.toggle('active',!assistant);document.getElementById('ainav').classList.toggle('active',assistant);document.querySelectorAll('[data-state]').forEach(b=>b.classList.toggle('active',b.dataset.state===state));showTab('plan');refreshStatus();
}
function refreshStatus(){const n=updateCounts(),locked=isLocked(),running=operationState==='running',recover=operationState==='recovery',paused=operationState==='paused',complete=operationState==='completed';
document.querySelectorAll('#rows input,#planPanel .toolbar button').forEach(e=>e.disabled=locked);document.getElementById('batchRun').disabled=locked;
document.getElementById('saveButton').classList.toggle('panelhidden',locked);document.getElementById('saveButton').disabled=!dirty;
const status=recover?'需核验':running?'执行中':paused?'已暂停':complete?'演示已核验':dirty?'未保存':n?'待执行':'未配置';
['stateBadge'].forEach(id=>{const badge=document.getElementById(id);badge.className='badge'+(recover?' error':running||paused?' warning':'');badge.innerHTML=svgIcon(recover?'warning':complete?'check-circle':'clock')+'<span>'+status+'</span>'});
document.getElementById('taskStatus').textContent=status;document.querySelector('.task.active .dot').style.background=recover?'var(--red)':running||paused?'#ad956c':'#8aa094';const contextBadge=document.querySelector('.context .badge');contextBadge.textContent=status;contextBadge.className='badge'+(recover?' error':running||paused?' warning':'');
document.getElementById('saveStatus').textContent=dirty?'计划未保存':'计划已保存';document.getElementById('saveStatus').style.color=dirty?'#ac9169':'#a0acb9';document.querySelector('.save-state use').setAttribute('href',dirty?'#icon-clock':'#icon-check-circle');
labelButton('execute',recover?'核验并恢复':running?(pauseRequested?'已请求安全暂停':'完成当前项后暂停'):paused?'查看本轮记录':complete?'查看核验结果':'核对执行范围',recover?'refresh':running?'pause':paused||complete?'log':'play');document.getElementById('execute').disabled=running&&pauseRequested||!locked&&(dirty||n===0);
labelButton('secondary',recover?'导出诊断包':running?'异常操作':paused||complete?'轮次证据':'计划设置',recover?'download':running?'warning':paused||complete?'folder':'sliders');
let title=recover?'工程状态待核验':running?phaseNames[runPhase]+(pauseRequested?' · 暂停已请求':''):paused?'当前项已核验,演示已安全暂停':complete?'演示完成 · 已保存并核验':dirty?'位号计划有未保存修改':n?'计划已保存,等待核对':'没有待替换位号';
document.getElementById('runTitle').textContent=title;document.getElementById('runDetail').textContent=recover?'上次保存或核验未确认,禁止直接重复替换。':running?'演示阶段 '+(runPhase+1)+' / 4 · 未调用 CAD,未修改工程':paused||complete?'演示结果仅来自页面状态,不代表真实 CAD 核验。':dirty?'先保存修改,再核对完整执行范围。':'Audio_D2128 · 替换 '+n+' 个,保留 '+(6-n)+' 个';
const icon=document.querySelector('.runicon');icon.innerHTML=svgIcon(recover?'warning':running?'clock':complete?'check-circle':'check');icon.style.color=recover?'#a8786b':running?'#8b9eb8':'#8ea69a';
const notice=document.getElementById('notice');notice.classList.toggle('panelhidden',!recover);notice.innerHTML=svgIcon('warning')+'<span>保存或回读核验尚未确认。当前工程已锁定,请先核验并恢复。</span>';
document.getElementById('advanceDemo').classList.toggle('panelhidden',!running);
document.querySelectorAll('.flowstep').forEach(el=>{let active=running||recover||paused||complete?'run':'plan';el.classList.toggle('current',el.dataset.step===active);el.classList.toggle('done',active==='run'&&el.dataset.step!=='run')});
document.querySelectorAll('.checkline')[0].lastElementChild.textContent=n+' 个替换 · '+(6-n)+' 个保留';document.querySelectorAll('.checkline')[1].lastElementChild.textContent=dirty?'未保存':'计划已保存';document.querySelector('.context .section:nth-of-type(2) b').textContent='替换 '+n+' 个 / 保留 '+(6-n)+' 个';document.querySelector('.chat .message:not(.user)>p').textContent=dirty?'计划存在未保存修改,请先保存后检查。':'当前页面计划:'+(n?selectedRows().map(x=>x.ref).join('、'):'无待替换位号')+';其余位号不替换。';
}
function decorateControls(){refreshStatus()}
function primaryAction(){if(operationState==='running'){pauseRequested=true;refreshStatus();toast('已请求暂停。当前项仍将完成保存与回读核验,之后才停止。');return}if(operationState==='completed'||operationState==='paused'){showResults();return}openReview(operationState==='recovery')}
function secondaryAction(){toast(operationState==='running'?'异常操作:导出诊断包、资源检查、强制结束。强制结束须确认,之后必须核验。':operationState==='recovery'?'预览:导出脱敏诊断包,保留中断证据。':operationState==='completed'||operationState==='paused'?'预览:本轮证据与完整日志。':'当前工程:Part Label 写入 Value;自定义优先,NC 按行设置。')}
function openReview(recovery=false){if(!recovery&&(isLocked()||dirty||countSelected()===0))return;reviewRecovery=recovery;reviewScope='current';reviewSnapshot=JSON.stringify(currentPlan());document.getElementById('reviewTitle').textContent=recovery?'核验中断状态':'核对执行范围';document.querySelector('.scope-switch').classList.toggle('panelhidden',recovery);document.getElementById('reviewPolicy').textContent=recovery?'先回读工程并核对实际结果,确认后再决定恢复或重试。本演示不会调用 CAD。':'替换后依次保存、重新打开并回读核验。搜索与过滤不改变本次执行范围。';chooseScope('current');document.getElementById('executionReview').showModal();document.querySelectorAll('.flowstep').forEach(el=>el.classList.toggle('current',el.dataset.step==='review'))}
function chooseScope(scope){reviewScope=scope;const batch=scope==='batch',selected=selectedRows();document.getElementById('scopeCurrent').classList.toggle('active',!batch);document.getElementById('scopeBatch').classList.toggle('active',batch);document.getElementById('reviewProject').textContent=batch?'当前批次 · 3 个工程':'Audio_D2128';document.getElementById('reviewPath').textContent=batch?'Audio_D2128 / Audio_T605A / Power_B3100':'D:\\Projects\\Audio_D2128\\Audio_D2128.prj';document.getElementById('reviewPlanState').textContent=batch?'2 个工程未就绪':'计划已保存';document.getElementById('reviewProjectCount').textContent=batch?'3':'1';document.getElementById('reviewReplaceCount').textContent=batch?'待核对':selected.length;document.getElementById('reviewKeepCount').textContent=batch?'待核对':6-selected.length;document.getElementById('reviewRows').innerHTML=selected.map(row=>'<tr><td class="mono">'+row.ref+'</td><td class="mono">4100-CA0000-T7</td><td class="mono">4100-CA0000-T0</td><td>'+ (row.nc?'是':'否')+'</td></tr>').join('');const error=document.getElementById('reviewError');error.classList.toggle('panelhidden',!batch);error.textContent=batch?'Audio_T605A 的计划未保存;Power_B3100 尚未配置。本批不能执行,请先完成全部工程的配置。':'';document.getElementById('confirmExecution').disabled=batch;labelButton('confirmExecution',reviewRecovery?'开始演示核验':'确认演示执行 · '+selected.length+' 项',reviewRecovery?'refresh':'play')}
function closeReview(){const dialog=document.getElementById('executionReview');if(dialog&&dialog.open)dialog.close()}
function confirmExecution(){if(reviewScope!=='current'||document.getElementById('confirmExecution').disabled)return;if(!reviewRecovery&&(dirty||isLocked()||reviewSnapshot!==JSON.stringify(currentPlan()))){document.getElementById('reviewError').textContent='计划已变化,请返回重新保存并核对。';document.getElementById('reviewError').classList.remove('panelhidden');document.getElementById('confirmExecution').disabled=true;return}const recovery=reviewRecovery;closeReview();setState('running');runPhase=recovery?3:0;refreshStatus()}
function advanceDemo(){if(operationState!=='running')return;if(runPhase<3){runPhase++;refreshStatus();return}completedRefs=selectedRows().map(row=>row.ref);operationState=pauseRequested?'paused':'completed';state=operationState;refreshStatus();showResults()}
function showResults(){showTab('results');const names=completedRefs.length?completedRefs:selectedRows().map(row=>row.ref);document.getElementById('resultsPanel').innerHTML='<div class="toolbar"><span style="font-size:12px;color:#8a9cb5">本轮演示记录</span><span class="spacer"></span><span class="badge">页面模拟 · 未调用 CAD</span></div><div class="tablewrap"><table><thead><tr><th>位号</th><th>计划新料号</th><th>核验状态</th></tr></thead><tbody>'+names.map(ref=>'<tr><td class="mono">'+ref+'</td><td class="mono">4100-CA0000-T0</td><td>演示:已保存并核验</td></tr>').join('')+'</tbody></table></div><div class="tablefoot">实际执行时,状态和回读料号必须来自 CAD 后端核验结果。</div>'}
document.getElementById('batchRun').onclick=()=>{if(isLocked())return;openReview();if(document.getElementById('executionReview').open)chooseScope('batch')};
document.getElementById('executionReview').addEventListener('close',()=>{if(operationState==='ready')document.querySelectorAll('.flowstep').forEach(el=>el.classList.toggle('current',el.dataset.step==='plan'))});
document.addEventListener('keydown',event=>{if(event.key==='Escape'){document.getElementById('rowInspector').classList.add('panelhidden');document.getElementById('projectMenu').hidden=true}});
setState(new URLSearchParams(location.search).get('state')||'ready');
</script></html>