:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#223d36;background:#f4f6f2;font-synthesis:none;--green:#245c43;--muted:#7a8981;--border:#e3e8df}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:2px solid #519978}input,select,textarea{border:1px solid var(--border);border-radius:8px;background:#fff;color:#223d36;padding:11px;width:100%;font-size:13px}textarea{resize:vertical;line-height:1.7}input:focus,select:focus,textarea:focus{outline:2px solid #91b6a066;border-color:#81a791}label{display:block;font-size:12px;color:#52675a}label input,label select,label textarea{margin-top:8px}.sidebar{position:fixed;inset:0 auto 0 0;width:216px;background:#fdfefb;border-right:1px solid var(--border);padding:30px 20px;display:flex;flex-direction:column}.brand{display:flex;gap:11px;align-items:center;font-size:22px;font-weight:650;letter-spacing:1px}.brand-mark{display:grid;place-items:center;width:43px;height:43px;background:var(--green);color:#fff;border-radius:12px;font-size:23px}.brand-sub{display:block;font-size:8px;letter-spacing:2px;color:#77877a;margin-top:5px}.nav-title{font-size:10px;color:#8a978b;letter-spacing:1px;margin:40px 10px 14px}.nav-item{border:0;border-radius:9px;padding:14px 12px;text-align:left;color:var(--green);background:#eaf0e7;font-size:13px;font-weight:600}.history-title{display:flex;justify-content:space-between;align-items:center;margin-top:30px}.history-title button{border:0;background:none;color:var(--muted);font-size:17px}.history{overflow:auto;flex:1}.history-empty{font-size:11px;line-height:1.8;color:#9ba59a;margin:0 10px}.history-item{width:100%;border:0;background:none;text-align:left;padding:12px 9px;border-radius:8px;display:block;color:#5a6e5d}.history-item:hover,.history-item.active{background:#eef2e9}.history-item strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}.history-item small{font-size:10px;color:#899588;display:block;margin-top:6px}.sidebar-bottom{border-top:1px solid var(--border);padding:20px 8px 0;font-size:11px;color:#6d806f}.sidebar-bottom p{font-size:10px;color:#9aa698;margin-bottom:0}.local-dot,.connection-dot{display:inline-block;background:#819887;width:6px;height:6px;border-radius:50%;margin-right:7px}.connection-dot{background:#c2b697}.connection-dot.connected{background:#4e9870}.workspace{margin-left:216px}header{height:76px;background:#fdfefb;border-bottom:1px solid var(--border);padding:0 46px;display:flex;align-items:center;justify-content:space-between}.breadcrumb{font-size:12px;color:#879184}.breadcrumb span{margin:0 12px;color:#c1c9bb}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;border:1px solid transparent;border-radius:8px;padding:10px 15px;font-size:12px;font-weight:550;background:none;color:#496c55;white-space:nowrap}.button.outline{background:#fff;border-color:#dce5d7}.button.text{padding:8px 7px;color:#76836d}.button.primary{background:var(--green);color:#fff}.button:hover{filter:brightness(.95)}.button.large{padding:15px 24px;font-size:14px;gap:32px;border-radius:10px}.button.full{width:100%}main{max-width:1400px;margin:auto;padding:39px 46px 110px}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.eyebrow{font-size:9px;letter-spacing:2.4px;color:#76946c;font-weight:700}h1{font-size:30px;letter-spacing:-.5px;margin:11px 0 10px;font-weight:620}.intro p{font-size:12px;color:#899482;margin:0;line-height:1.8}.version-tag{font-size:10px;color:#859277;padding:7px 10px;border:1px solid #dce3d3;border-radius:5px}.banner{font-size:12px;padding:13px 17px;background:#edf1e3;border:1px solid #dbe4cc;border-radius:8px;color:#6b7950;line-height:1.7;margin-bottom:22px}.panel{border:1px solid var(--border);background:#fff;border-radius:14px;padding:25px 26px}.section-top{display:flex;justify-content:space-between;gap:15px;align-items:center}h2{font-size:15px;font-weight:600;margin:0;display:flex;align-items:center;gap:10px}.step{font-size:10px;font-weight:600;background:#eef3e9;color:#718767;padding:5px 6px;border-radius:5px}.subtle{font-size:11px;color:#8d9987;line-height:1.8}.source-grid{display:grid;grid-template-columns:minmax(200px,300px) minmax(0,1fr);gap:24px;align-items:start;margin-top:23px}.upload{height:145px;border:1px dashed #cedcc4;border-radius:9px;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#f8faf5;cursor:pointer;gap:10px;text-align:center}.upload.drag{background:#e6efdf}.upload-icon{font-size:28px;color:#70986e;line-height:1;margin-bottom:7px}.upload strong{font-size:12px;color:#5a7554;font-weight:550}.upload span:not(.upload-icon){font-size:10px;color:#94a08c}.upload small{font-size:9px;color:#adb5a5}.references{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.ref{position:relative;width:55px;height:55px}.ref img{width:100%;height:100%;object-fit:cover;border-radius:7px;border:1px solid var(--border)}.ref button{position:absolute;top:-5px;right:-4px;border:1px solid var(--border);border-radius:50%;background:white;color:#788371;width:18px;height:18px;font-size:12px;padding:0}.product-fields>label:not(:first-child){margin-top:14px}.product-fields textarea{min-height:128px}.options-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:14px;margin-top:24px;padding-top:22px;border-top:1px solid #eef1e9}.source-footer{display:flex;gap:20px;justify-content:space-between;align-items:center;margin-top:17px}.checkbox{display:flex;gap:7px;align-items:center;font-size:11px;color:#7c8c71}.checkbox input{width:13px;height:13px;margin:0;accent-color:var(--green)}.plan-section{margin-top:30px}.count-tag{font-size:10px;border-radius:5px;background:#e8eee0;color:#7b8d64;padding:4px 7px;font-weight:400}.actions{display:flex;gap:8px;align-items:center}.plan-note{font-size:11px;color:#94a08c;margin:10px 0 17px}.slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;align-items:start}.slot{background:#fff;border:1px solid var(--border);border-radius:11px;overflow:hidden;transition:box-shadow .2s}.slot:hover{box-shadow:0 4px 16px #21482c08}.slot summary{cursor:pointer;list-style:none;padding:18px;min-height:160px;position:relative}.slot summary::-webkit-details-marker{display:none}.slot-number{color:#8b9c80;font-size:10px;font-weight:600;letter-spacing:1px}.slot-title{display:block;font-size:14px;color:#355c42;margin-top:22px;margin-bottom:8px;font-weight:550}.slot-scene{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;line-height:1.7;color:#94a08c;padding-right:6px}.edit-label{position:absolute;top:16px;right:14px;font-size:9px;color:#adb7a5}.slot-editor{padding:15px;display:grid;grid-template-columns:1fr 1fr;gap:13px}.slot-editor label.wide{grid-column:1/-1}.slot-editor textarea{min-height:65px}.slot-editor label{font-size:10px}.slot-editor input,.slot-editor textarea{font-size:11px;padding:8px}.slot-editor .button{grid-column:1/-1}.bottom-bar{position:fixed;bottom:0;left:216px;right:0;background:#fdfefbf5;backdrop-filter:blur(12px);border-top:1px solid var(--border);padding:18px 46px;display:flex;justify-content:space-between;align-items:center;z-index:5}.bottom-actions{display:flex;align-items:center;gap:10px}.bottom-bar strong{font-size:13px;font-weight:550;display:block}.bottom-bar>div>span{display:block;font-size:10px;color:#8e9c82;margin-top:6px}.page-footer{font-size:10px;text-align:center;color:#a5af9e;margin-top:26px;line-height:1.8}.result-panel{margin-top:28px}.result-panel[hidden]{display:none}.results{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin-top:18px}.result{border:1px solid var(--border);border-radius:10px;overflow:hidden}.result-image{aspect-ratio:1;background:#f5f7f1;display:grid;place-items:center;position:relative}.result-image img{height:100%;width:100%;object-fit:contain;cursor:zoom-in}.result-placeholder{text-align:center;color:#97a48c;font-size:12px;line-height:2}.result-body{padding:8px 10px 10px}.result-body p{margin:0}.result-body .quality-badge,.result-body .quality-issues{font-size:11px;line-height:1.3;margin-top:2px}.result-title{display:flex;justify-content:space-between;gap:8px;font-size:12px}.result-status{font-size:10px;color:#87977a}.result-status.failed{color:#b56949}.result-error{font-size:10px;line-height:1.7;color:#a76850;overflow-wrap:anywhere;margin:8px 0}.result-actions{display:flex;justify-content:flex-start;flex-wrap:wrap;gap:4px 6px;margin-top:6px}.result-actions .button{font-size:10px;padding:4px 7px}dialog{border:1px solid var(--border);border-radius:15px;padding:27px;width:min(520px,calc(var(--view-width,100vw) - 24px));color:#35553d;background:#fdfefb;max-height:calc(var(--view-height,100dvh) - 24px);overflow:auto;box-shadow:0 20px 80px #193c2930}dialog::backdrop{background:#162e2355;backdrop-filter:blur(3px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.icon-button{border:0;background:none;color:#8b9980;font-size:22px;padding:0 4px;cursor:pointer}dialog label{margin-top:16px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.settings-note{font-size:10px;line-height:1.8;color:#8c987e;margin:20px 0}.toast{position:fixed;bottom:103px;left:50%;transform:translateX(-50%);z-index:30;background:#294f38;color:white;font-size:12px;padding:13px 20px;border-radius:9px;max-width:85vw;box-shadow:0 4px 25px #294f3820}.toast[hidden]{display:none}#promptDialog{width:min(760px,calc(var(--view-width,100vw) - 24px))}pre{font-family:inherit;font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;background:#f1f5ec;border-radius:8px;padding:18px}#imageDialog{width:min(900px,calc(var(--view-width,100vw) - 24px));padding:20px}#largeImage{width:100%;max-height:calc(var(--view-height,100dvh) - 100px);object-fit:contain}.close-image{position:absolute;right:12px;top:6px;background:#fff;border-radius:50%}@media(min-width:1550px){.slots{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:1200px){header{padding:0 28px}main{padding:30px 28px 110px}.options-grid{grid-template-columns:repeat(3,1fr)}.slots{grid-template-columns:repeat(3,1fr)}.bottom-bar{padding:16px 28px}.section-top>.subtle{max-width:200px;text-align:right}}@media(max-width:1000px){.results{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:800px){.sidebar{width:68px;padding:23px 12px}.brand>span:last-child,.nav-title,.history,.sidebar-bottom{display:none}.brand-mark{width:40px;height:40px}.nav-item{font-size:0;padding:15px;margin-top:30px}.nav-item:before{content:'◈';font-size:19px}.workspace{margin-left:68px}.bottom-bar{left:68px}.source-grid{grid-template-columns:1fr}.upload{height:125px}.slots{grid-template-columns:repeat(2,1fr)}.version-tag{display:none}.section-top{align-items:flex-start}.section-top>.subtle{display:none}main{padding:26px 20px 120px}.panel{padding:20px}.plan-section .section-top{flex-direction:column;gap:10px}header{height:65px;padding:0 20px}h1{font-size:25px}.source-footer{flex-direction:column;align-items:flex-start;gap:6px}.bottom-bar{padding:13px 20px}.button.large{font-size:12px;padding:13px;gap:12px}.bottom-bar>div>span{font-size:9px}}@media(max-width:500px){.options-grid{grid-template-columns:repeat(2,1fr)}.results{grid-template-columns:1fr}.slot summary{padding:14px}.slot-title{font-size:12px}.result-panel .section-top{flex-direction:column}.bottom-bar>div>strong{font-size:11px}.breadcrumb{font-size:10px}.button{padding:9px 10px}.slot-editor{grid-template-columns:1fr}.slot-editor label{grid-column:1/-1}}


.header-controls{display:flex;align-items:center;gap:14px}.slot-overview{position:relative;display:block;width:100%;height:138px;text-align:left;background:#fff;border:0;padding:16px;color:inherit}.slot-overview .slot-title{margin-top:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slot.editing{border-color:#86a479;box-shadow:0 0 0 2px #e7efdf}.slot-dialog{position:fixed;inset:0;margin:auto;width:min(600px,calc(var(--view-width,100vw) - 24px));height:min(740px,calc(var(--view-height,100dvh) - 24px));max-height:calc(var(--view-height,100dvh) - 24px);padding:0;border-radius:13px;overflow:hidden}.slot-dialog[open]{display:flex;flex-direction:column}.slot-dialog::backdrop{background:#223d361c;backdrop-filter:none}.slot-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px 16px;border-bottom:1px solid var(--border);flex-shrink:0}.slot-dialog-header h2{margin-top:8px}.slot-dialog .slot-editor{overflow-y:auto;min-height:0;flex:1;padding:18px 22px;gap:12px 14px}.slot-dialog .slot-editor label{margin:0;font-size:11px}.slot-dialog .slot-editor input,.slot-dialog .slot-editor textarea{font-size:12px;padding:9px;margin-top:6px}.slot-dialog .slot-editor textarea{min-height:55px;max-height:160px}.slot-dialog-footer{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:13px 22px 15px;border-top:1px solid var(--border);background:#f6f9f1;flex-shrink:0}.slot-editor-nav{display:flex;gap:6px;margin-right:auto}.slot-dialog-footer .button{font-size:11px;padding:8px 10px}.slot-dialog-footer p{width:100%;font-size:10px;color:#8b997c;line-height:1.5;margin:3px 0 0}.slot-overview:focus-visible{outline:-webkit-focus-ring-color auto 1px;outline-offset:-3px}@media(min-width:1600px){main{max-width:1700px}}@media(max-width:800px){.header-controls{gap:8px}.breadcrumb{font-size:10px}}@media(max-width:500px){header{padding:0 12px}.header-controls .button{font-size:11px;padding:8px}.slot-overview{height:128px;padding:13px}.slot-dialog{inset:0;width:calc(var(--view-width,100vw) - 16px);height:min(740px,calc(var(--view-height,100dvh) - 16px));max-height:calc(var(--view-height,100dvh) - 16px)}.slot-dialog .slot-editor{grid-template-columns:1fr 1fr;padding:15px;gap:10px}.slot-dialog .slot-editor label{grid-column:auto}.slot-dialog .slot-editor label.wide{grid-column:1/-1}.slot-dialog-header{padding:16px}.slot-dialog-footer{padding:12px 15px}.slot-dialog-footer .button{font-size:10px;padding:8px}.slot-editor-nav{margin-right:0}}

.slot-dialog .slot-editor{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}.slot-dialog-header h2{display:block;overflow-wrap:anywhere;max-height:3.6em;overflow:auto}.slot-dialog-header>div{min-width:0}.slot-editor-nav button:disabled{cursor:default}

.model-picker{margin-top:18px}.model-picker-row{display:flex;align-items:center;gap:8px;margin-top:8px}.model-picker-row select{min-width:0;flex:1}.model-picker-row button{flex-shrink:0}.model-status,.assist-status{font-size:11px;line-height:1.7;color:#7a8981;overflow-wrap:anywhere;margin:8px 0 0}.product-assist-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.product-assist-actions .button{font-size:11px}.assist-result{border:1px solid #dfe7d4;background:#f6f9f0;border-radius:10px;padding:14px;margin-top:12px}.assist-result[hidden],#undoAssist[hidden]{display:none}.assist-result .actions{margin-top:8px;flex-wrap:wrap}.assist-result textarea{font-size:12px;min-height:130px;max-height:300px}.header-controls{gap:8px}@media(max-width:800px){header{height:auto;min-height:65px;flex-wrap:wrap;gap:8px;padding-top:10px;padding-bottom:10px}.header-controls{flex-wrap:wrap}.header-controls .button{font-size:11px;padding:8px}.header-controls .connection-dot{margin-right:0}}


.suite-planning{margin:12px 0 18px;padding:14px 16px;border:1px solid var(--line,#dce4d7);border-radius:12px}.suite-planning p{font-size:12px;line-height:1.7;margin:6px 0;color:inherit;opacity:.8}.suite-planning #planningStatus{font-weight:600;opacity:1}.plan-section .section-top .actions{flex-wrap:wrap}#planSummary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.workflow-options{display:flex;flex-wrap:wrap;gap:12px 20px;margin:12px 0 18px;padding:14px 16px;border:1px solid var(--line,#dce4d7);border-radius:12px;align-items:center}.workflow-options>label:not(.checkbox){display:flex;align-items:center;gap:8px;font-size:12px}.workflow-options select{width:auto;padding:6px 12px}.workflow-options p{flex-basis:100%;font-size:12px;line-height:1.7;margin:0;opacity:.8}.quality-summary{font-size:12px;line-height:1.8;margin:12px 0 16px;padding:10px 14px;border:1px solid var(--line,#dce4d7);border-radius:8px}.quality-badge,.quality-issues{font-size:12px;line-height:1.6}.quality-badge.pass{color:var(--green,#245c42)}.quality-badge.fail{color:#b25133}.quality-badge.uncertain{color:#986e25}.route-row{display:flex;align-items:center;gap:6px;border-bottom:1px solid var(--line,#dce4d7);padding:8px 0;font-size:12px}.route-row>span{flex:1;overflow-wrap:anywhere}.route-footer{display:flex;justify-content:space-between;gap:12px;margin-top:18px}.attempt-record{border-bottom:1px solid var(--line,#dce4d7);padding:12px 0;font-size:12px}.attempt-record p{overflow-wrap:anywhere;line-height:1.6}.attempt-record pre{font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto}.version-row{font-size:12px;padding:8px 0}#attemptDialog{max-width:700px}#routesDialog{max-width:650px}.result-body>.button{font-size:11px;padding:2px 0;margin-top:2px}

header .header-controls{flex-wrap:wrap}@media(max-width:700px){.workflow-options{gap:10px}.workflow-options>label{flex-basis:100%}.workflow-options>label:not(.checkbox){justify-content:space-between}.result-panel .section-top{align-items:flex-start}.quality-summary{overflow-wrap:anywhere}}
[hidden]{display:none!important}.native-tools summary,.workflow-details summary{cursor:pointer;font-weight:600;font-size:13px;list-style-position:inside}.native-tools[open] summary{margin-bottom:20px}.native-tools textarea{width:100%;margin:8px 0 15px}.native-tools .actions{flex-wrap:wrap;margin:12px 0}.workflow-details{margin:12px 0 18px;border:1px solid var(--border,#dfe7d4);border-radius:10px;padding:14px}.workflow-details .workflow-options{border:0;margin-bottom:0;padding-bottom:0}.ref.selected{outline:2px solid #578b63}.ref img{cursor:pointer}
