:root{font-family:Inter,Noto Sans SC,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#343b36;background:#f7f7f2;font-synthesis:none;--surface:#fffefa;--soft:#f2f3ec;--line:#e3e6dd;--text:#343b36;--muted:#899184;--green:#5a7964;--green-soft:#e9f0e6;--danger:#b96151;--warning:#a68543}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button{border:1px solid transparent;background:transparent;border-radius:7px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:background .12s,color .12s,border-color .12s}button:hover{background:var(--soft)}button:disabled{opacity:.42;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #7c9c83;outline-offset:2px}input,select,textarea{background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:9px 10px;min-width:0;max-width:100%;outline:none}input:hover,textarea:hover,select:hover{border-color:#b8c4b8}textarea{resize:vertical}input[type=color]{padding:3px;cursor:pointer}a{color:inherit;text-decoration:none}.primary{background:var(--green);color:#fff;border-color:var(--green);font-weight:500}.primary:hover{background:#486954}.muted{color:var(--muted)}.small{font-size:11px;line-height:1.7}.error{color:var(--danger);font-size:12px;line-height:1.7;word-break:break-word}.success{color:var(--green);display:flex;gap:5px;align-items:center;font-size:12px}.notice{color:var(--warning)}.text-button{color:var(--green);font-size:12px;justify-content:flex-start}.studio{height:100dvh;min-height:540px;display:flex;flex-direction:column}.topbar{height:64px;flex:none;background:var(--surface);display:flex;align-items:center;border-bottom:1px solid var(--line);padding:0 24px;gap:32px}.brand{display:flex;gap:8px;align-items:center;font-size:19px;letter-spacing:-.5px}.brand>span{background:var(--green);color:#fff;border-radius:8px;width:30px;height:30px;display:grid;place-items:center}.brand b{font-weight:600}.project-heading{display:flex;flex:1;flex-direction:column;min-width:100px}.project-heading input{background:none;border:0;border-radius:3px;max-width:290px;padding:1px 0;font-size:13px;font-weight:600}.project-heading>span{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:5px;margin-top:4px}.project-heading i{height:5px;width:5px;background:#7c9c83;border-radius:50%}.project-heading i.bad{background:var(--danger)}.top-actions{display:flex;align-items:center;gap:4px}.top-actions button{padding:9px}.top-actions .primary{padding:9px 16px;margin-left:9px;font-size:12px}.top-actions .api-button{border-color:var(--line);font-size:12px;margin-left:10px}.divider{height:20px;width:1px;background:var(--line);margin:0 9px}.workspace{display:flex;flex:1;min-height:0;overflow:hidden}.generate-sidebar{width:294px;flex:none;display:flex;flex-direction:column;background:var(--surface);border-right:1px solid var(--line)}.sidebar-heading{padding:28px 24px 22px}.sidebar-heading h1{font-size:17px;font-weight:600;letter-spacing:-.4px;margin:0 0 9px}.sidebar-heading p{font-size:11px;color:var(--muted);margin:0;letter-spacing:.5px}.generation-content{padding:0 22px;overflow-y:auto;flex:1;scrollbar-width:thin}.reference-label{display:flex;justify-content:space-between;font-size:11px;font-weight:500;color:#707b6f;margin-bottom:10px}.reference-label small{color:var(--muted);font-size:10px}.image-drop{background:#f6f7f0;border:1px dashed #cbd3c5;display:flex;flex-direction:column;width:100%;padding:23px 8px;color:#819479;gap:8px}.image-drop b{font-size:12px;font-weight:500;color:#687862}.image-drop span{font-size:9px;color:var(--muted)}.image-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.image-list>div{position:relative;width:70px;height:70px}.image-list img{width:100%;height:100%;border-radius:7px;object-fit:cover}.image-list button{position:absolute;right:3px;top:3px;background:#fff;padding:2px}.field-label{display:block;font-size:11px;font-weight:500;color:#788373;margin-top:21px}.field-label>input,.field-label>select{display:block;margin-top:9px;width:100%;font-size:11px;color:var(--text)}.field-label.compact{margin-top:14px}.field-label.compact>input,.field-label.compact>select{margin-top:7px;font-size:11px;padding:7px}.segmented{display:flex;gap:2px;border-radius:8px;background:var(--soft);padding:3px}.segmented button{padding:7px 9px;font-size:11px;color:var(--muted);flex:1;white-space:nowrap}.segmented button[aria-pressed=true]{background:var(--surface);color:var(--green);box-shadow:0 1px 3px #00000008}.modes{margin-top:9px}.role-settings{margin-top:16px;font-size:11px;color:var(--muted)}.role-settings summary{cursor:pointer;list-style:none;display:flex;gap:5px;align-items:center}.role-settings[open] summary svg{transform:rotate(90deg)}.role-settings label{display:block;margin-top:10px}.role-settings select{width:100%;font-size:11px;padding:7px;margin-top:6px}.prompt-examples{margin-top:32px;margin-bottom:24px}.prompt-examples p{font-size:10px;color:var(--muted);margin:0 0 11px}.prompt-examples button{font-size:10px;width:100%;padding:9px 0;justify-content:space-between;color:#7c8775;text-align:left}.prompt-examples svg{transform:rotate(45deg);color:#acb5a4;flex:none}.task-card{border:1px solid var(--line);border-radius:8px;padding:12px;margin-bottom:15px}.task-card>div{display:flex;align-items:center;gap:7px}.task-card b{font-size:10px;font-weight:500}.task-card small{font-size:9px;color:var(--muted);display:block;margin-top:7px}.task-dot{width:6px;height:6px;background:var(--green);border-radius:50%}.task-card.failed{border-color:#d8b8ae}.composer{background:var(--surface);margin:14px;border:1px solid #d4ddcc;border-radius:10px;padding:12px}.composer textarea{border:0;padding:0;resize:none;min-height:84px;display:block;width:100%;font-size:12px;line-height:1.8;background:none}.composer textarea::placeholder{color:#9aa591}.composer>div{display:flex;align-items:center;justify-content:space-between;margin-top:7px}.composer>div span{font-size:9px;color:var(--muted)}.composer .primary{padding:7px}.center-workspace{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.viewport{flex:1;min-height:260px;position:relative;background:#f1f0e9;overflow:hidden}.view-toolbar{position:absolute;z-index:2;left:18px;right:18px;top:17px;display:flex;justify-content:space-between;pointer-events:none}.view-toolbar>div{pointer-events:auto}.view-toolbar .segmented{background:#fffdf7e8;box-shadow:0 2px 10px #6d796010;border:1px solid #e7e9dc}.view-toolbar button{font-size:10px;padding:7px 12px}.view-actions{display:flex;gap:3px;background:#fffdf7e8;border:1px solid #e7e9dc;border-radius:8px}.view-actions button{padding:7px 9px;color:#7d8979}.view-actions button[aria-pressed=true]{color:var(--green);background:var(--green-soft)}.viewport-hints{position:absolute;bottom:17px;left:20px;right:20px;display:flex;justify-content:space-between;font-size:9px;color:#899280;pointer-events:none}.viewport-hints b{padding:0 5px}.viewport-empty{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--muted);font-size:13px;gap:10px}.candidate-bar{position:absolute;left:20px;right:20px;bottom:44px;border:1px solid #cbd9c5;border-radius:10px;background:var(--surface);padding:12px 14px;display:flex;align-items:center;gap:9px;box-shadow:0 8px 30px #536b4715}.candidate-bar>div{display:flex;gap:10px;align-items:center;flex:1;color:var(--green);font-size:12px}.candidate-bar small{display:block;color:var(--muted);font-size:9px;margin-top:5px}.candidate-bar button{padding:8px 12px;font-size:11px}.work-status{position:absolute;top:66px;left:50%;transform:translate(-50%);background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:10px 15px;display:flex;gap:9px;align-items:center;font-size:11px;white-space:nowrap;box-shadow:0 5px 20px #00000005}.work-status button{font-size:10px;color:var(--muted)}.spinner{width:12px;height:12px;display:inline-block;border:1.5px solid #b6c5b0;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.bottom-panel{height:174px;flex:none;background:var(--surface);border-top:1px solid var(--line);display:flex;flex-direction:column}.bottom-panel nav{height:42px;display:flex;border-bottom:1px solid var(--line);padding:0 14px;gap:14px;flex:none}.bottom-panel nav button{font-size:11px;border-radius:0;padding:0 7px;color:var(--muted);border-bottom:2px solid transparent}.bottom-panel nav button[aria-pressed=true]{border-bottom-color:var(--green);color:var(--green)}.bottom-panel nav em{font-style:normal;background:#f1ddd4;color:var(--danger);font-size:9px;padding:1px 5px;border-radius:4px}.panel-content{padding:14px 20px;overflow:auto;flex:1;scrollbar-width:thin}.parts-strip{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.parts-strip button{padding:11px 13px;border:1px solid var(--line);font-size:11px;gap:9px}.parts-strip button.selected{background:var(--green-soft);border-color:#b9cbb4;color:var(--green)}.parts-strip i{width:13px;height:13px;border:1px solid #0000000c;border-radius:4px;flex:none}.parts-strip small{font-size:8px;color:var(--muted);margin-left:10px}.history-list{display:flex;gap:7px;overflow:auto}.history-list>button{padding:10px 12px;min-width:170px;border:1px solid var(--line);text-align:left;justify-content:flex-start;font-size:10px;align-items:flex-start}.history-list>button.selected{background:var(--green-soft)}.history-list small{font-size:9px;display:block;color:var(--muted);margin-top:6px}.checks-list{display:flex;gap:7px;flex-wrap:wrap}.check-row{display:flex;text-align:left;font-size:10px;align-items:flex-start;padding:9px 10px;background:var(--soft);width:calc(50% - 4px);justify-content:flex-start}.check-row>span:nth-child(2){flex:1}.check-row b{font-weight:500}.check-row small{font-size:9px;display:block;color:var(--muted);margin-top:4px;line-height:1.6}.check-row em{font-style:normal;font-size:8px;white-space:nowrap;color:var(--muted)}.status-dot{width:5px;height:5px;border-radius:50%;background:var(--green);flex:none;margin-top:5px}.check-row.fail .status-dot{background:var(--danger)}.check-row.review .status-dot{background:var(--warning)}.edit-sidebar{width:266px;background:var(--surface);border-left:1px solid var(--line);overflow:auto;flex:none;scrollbar-width:thin}.edit-section{padding:22px 21px;border-bottom:1px solid var(--line)}h2{font-size:12px;font-weight:600;margin:0 0 14px}h3{font-size:10px;font-weight:500;color:var(--muted);margin:20px 0 8px}.palette{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}.palette>div{display:flex;flex-direction:column;align-items:center;border-radius:7px;border:1px solid transparent;padding:3px}.palette>div.painting{border-color:var(--green);background:var(--green-soft)}.palette label{position:relative;display:block;width:32px;height:30px;overflow:hidden;border-radius:5px;border:1px solid #0000000d}.palette input{width:46px;height:42px;position:absolute;top:-6px;left:-7px;opacity:1}.palette label span{font-size:8px;background:#fffe;position:absolute;bottom:1px;right:2px;border-radius:2px;pointer-events:none;color:#777;padding:0 2px}.palette button{font-size:9px;color:var(--muted);margin-top:5px;padding:2px 4px}.palette-actions{display:flex;justify-content:space-between;margin-top:10px}.palette-actions button{font-size:9px;padding:4px 0;color:#788c71}.edit-heading{display:flex;justify-content:space-between;align-items:flex-start}.source-tag{border:1px solid #d6dfce;color:#86967b;background:#f4f7ef;padding:3px 5px;font-size:8px;border-radius:4px}.number-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.number-field{display:flex;align-items:center;gap:5px;border:1px solid var(--line);background:var(--soft);border-radius:6px;padding:5px 7px;font-size:9px;overflow:hidden}.number-field>span{color:var(--muted)}.number-field input{border:0;border-radius:0;background:transparent;padding:0;width:100%;font-size:10px}.number-field input::-webkit-inner-spin-button{appearance:none}.geometry-fields{display:flex;gap:6px;flex-direction:column}.geometry-fields .number-field{justify-content:space-between}.geometry-fields input{max-width:85px;text-align:right}.part-actions{display:flex;gap:5px;margin-top:12px}.part-actions button{font-size:10px;border:1px solid var(--line);padding:5px 7px}.selection-hint{height:120px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#a5ae9c}.selection-hint p{font-size:10px;text-align:center;line-height:1.8}.advanced-button{font-size:10px;padding:9px 21px;justify-content:flex-start;color:var(--muted);width:100%;margin-top:10px}.editing-note{font-size:9px;color:#a3ad9a;line-height:1.8;padding:0 21px;margin:6px 0 20px}.modal{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:14px;width:min(440px,calc(100vw - 32px));padding:0;box-shadow:0 20px 70px #1f36222e;max-height:85dvh}.modal.wide{width:min(800px,calc(100vw - 32px))}.modal::backdrop{background:#293e294a;backdrop-filter:blur(3px)}.modal>header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--line)}.modal>header h2{margin:0;font-size:14px}.modal>header button{padding:4px;color:var(--muted)}.modal-content{padding:22px 24px;overflow-y:auto;max-height:calc(85dvh - 66px)}.form{display:flex;gap:14px;flex-direction:column}.form>label,.export-options>label{font-size:11px;display:flex;flex-direction:column;gap:8px;font-weight:500}.form input,.form select,.form textarea{width:100%;font-size:12px}.form .check-label{flex-direction:row;align-items:center;font-weight:400}.check-label input{width:auto}.form p{margin:0}.form>.primary{padding:10px}.settings-grid{display:grid;grid-template-columns:200px 1fr;gap:24px}.settings-grid aside{border-right:1px solid var(--line);padding-right:14px}.settings-grid aside>p{font-size:10px;margin:0 0 18px}.connection{display:flex;align-items:center;gap:3px;padding:4px;margin-bottom:4px;border-radius:6px}.connection.active{background:var(--soft)}.connection button:first-child{flex:1;justify-content:flex-start;text-align:left;font-size:11px;padding:6px 3px}.connection button small{display:block;font-size:9px;margin-top:4px;color:var(--muted);line-height:1.5}.connection button:last-child{padding:5px}.settings-grid aside>.text-button{padding:7px 3px;margin-top:10px;font-size:10px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.dialog-actions button{padding:8px 14px;font-size:12px;border:1px solid var(--line)}.export-grid{display:grid;grid-template-columns:1fr 250px;gap:24px}.format-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;align-content:start}.format-card{justify-content:flex-start;text-align:left;border:1px solid var(--line);padding:13px 10px;font-size:10px}.format-card svg{color:var(--muted);flex:none}.format-card.selected{background:var(--green-soft);border-color:#a9bf9f;color:var(--green)}.export-options{border-left:1px solid var(--line);padding-left:22px}.export-options h3{color:var(--text);font-size:13px;margin:0}.export-options>p{font-size:11px;line-height:1.8}.export-options>label{margin-top:15px}.export-options select{font-size:11px}.export-options .download{padding:10px;width:100%;margin-top:20px;font-size:12px}.manifest{border-top:1px solid var(--line);padding-top:12px;margin-top:14px;font-size:10px;line-height:1.8}.manifest p{margin:5px 0;color:var(--muted)}.project-library>button{display:flex;align-items:center;justify-content:flex-start;width:100%;border:1px solid var(--line);padding:15px;margin-bottom:9px;font-size:12px;text-align:left}.project-library span{flex:1}.project-library small{display:block;font-size:10px;color:var(--muted);margin-top:7px}.recipe-editor{font-family:ui-monospace,SFMono-Regular,monospace;font-size:11px;height:45dvh;width:100%;line-height:1.6}.error-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%);background:#fff5ee;border:1px solid #d7b2a0;box-shadow:0 8px 30px #633e2222;border-radius:10px;padding:13px 16px;display:flex;gap:12px;align-items:center;font-size:11px;color:#925c43;max-width:min(700px,90vw);z-index:10}.error-toast b{white-space:nowrap}.error-toast>span{max-height:100px;overflow:auto;line-height:1.7;word-break:break-word}.error-toast button{padding:3px;flex:none}.mobile-tabs{display:none}[data-theme=dark]{--surface:#252e29;--soft:#2c3730;--line:#3b463e;--text:#dce6d9;--muted:#8b9b89;--green:#749c7c;--green-soft:#354b3a;background:#252e29;color:var(--text)}[data-theme=dark] .image-drop{background:#2b352c;border-color:#4f614c}[data-theme=dark] .viewport-hints{color:#748168}@media(max-width:1200px){.topbar{gap:18px;padding:0 16px}.generate-sidebar{width:254px}.edit-sidebar{width:235px}.generation-content{padding:0 17px}.sidebar-heading{padding-left:18px}.edit-section{padding:20px 17px}.top-actions .api-button span{display:none}.view-toolbar button{padding:7px 9px}}@media(max-width:950px){.edit-sidebar{width:220px}.generate-sidebar{width:230px}.top-actions>button:nth-child(3),.top-actions .divider{display:none}.topbar{gap:12px}.brand{font-size:17px}.view-toolbar{left:12px;right:12px}.viewport-hints>span:first-child{display:none}.check-row{width:100%}.top-actions .primary{padding:9px 12px}.top-actions>button{padding:8px}.sidebar-heading h1{font-size:15px}}@media(max-width:780px){.studio{min-height:480px}.topbar{height:58px;padding:0 12px;gap:15px}.brand{font-size:16px}.brand>span{width:26px;height:26px}.project-heading{display:none}.top-actions{flex:1;justify-content:flex-end}.top-actions>button:nth-child(-n+3),.top-actions>button:nth-child(5),.top-actions>button:nth-child(6){display:none}.mobile-tabs{display:flex;height:36px;border-bottom:1px solid var(--line);align-items:center;justify-content:space-between;padding:0 14px;background:var(--surface);font-size:10px}.mobile-tabs button{font-size:11px;color:var(--green);padding:6px 9px}.mobile-tabs span{color:var(--muted)}.generate-sidebar,.edit-sidebar{display:none}.generate-sidebar.mobile-open,.edit-sidebar.mobile-open{display:flex;position:absolute;top:94px;bottom:0;width:280px;z-index:4;box-shadow:0 4px 30px #1d36222e}.generate-sidebar.mobile-open{left:0}.edit-sidebar.mobile-open{right:0;display:block}.bottom-panel{height:150px}.viewport{min-height:240px}.view-toolbar{top:12px;left:9px;right:9px}.view-toolbar button{padding:6px 8px;font-size:9px}.view-actions button{padding:6px 7px}.settings-grid,.export-grid{grid-template-columns:1fr;gap:18px}.settings-grid aside,.export-options{border:0;padding:0}.settings-grid aside{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.settings-grid aside>p{width:100%;margin:0}.connection{max-width:48%;margin:0}.settings-grid aside>.text-button{margin:0}.export-options{border-top:1px solid var(--line);padding-top:15px}.candidate-bar{left:10px;right:10px;padding:10px;gap:5px}.candidate-bar>div{font-size:10px}.candidate-bar small{font-size:8px}.candidate-bar button{font-size:10px;padding:7px 9px}.work-status{font-size:10px;max-width:95%;white-space:normal}.modal-content{padding:18px}.error-toast{font-size:10px}.parts-strip button{font-size:10px;padding:9px}.history-list>button{min-width:150px}.viewport-hints{bottom:12px;font-size:8px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}.part-fields{border:0;margin:0;padding:0;min-inline-size:0}.part-fields:disabled input,.part-fields:disabled select{opacity:.55}.print-profile{padding:12px 20px;border-bottom:1px solid var(--line)}.print-profile summary{font-size:12px;cursor:pointer;margin-bottom:10px}.resource-manager{display:grid;gap:16px}.storage-summary{display:grid;gap:8px}.storage-summary span,.resource-list small{color:var(--muted);font-size:12px}.storage-summary progress{width:100%;height:6px;accent-color:var(--green)}.resource-actions{display:flex;gap:8px;flex-wrap:wrap}.resource-list{max-height:42vh;overflow:auto}.resource-list>div{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.resource-list span{flex:1;min-width:0}.resource-list b{display:block;overflow:hidden;text-overflow:ellipsis;font-size:13px}.resource-list small{display:block}.resource-confirm{border:1px solid var(--line);border-radius:10px;padding:12px;background:var(--surface)}.project-library-row{display:flex;align-items:center;gap:8px}.project-library-row>button:first-child{flex:1;min-width:0;display:flex;align-items:center;gap:12px;text-align:left}.project-library-row span{flex:1;min-width:0}.project-library-row small{display:block;font-size:12px;color:var(--muted)}@media(max-width:780px){.top-actions>button[aria-label=资源管理],.top-actions>button[aria-label=重做],.top-actions>button[aria-label=切换暗色主题]{display:none}.top-actions{gap:2px}.top-actions .primary{margin-left:2px;padding:8px 10px}}.repair-actions{margin-top:18px;padding-top:12px;border-top:1px solid var(--line)}.repair-actions button{width:100%;margin-top:8px}
