.workspace-header{grid-area:header;display:flex;align-items:center;gap:24px;padding:0 20px;border-bottom:1px solid var(--border);background:var(--surface);min-width:0}.workspace-brand{font-size:22px;font-weight:600;letter-spacing:-.8px;color:var(--text);text-decoration:none;white-space:nowrap}.workspace-brand span{color:var(--accent)}.workspace-document{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.workspace-home{color:var(--text-secondary);font-size:12px;white-space:nowrap}.editor-workspace button{transition:background-color .14s ease,border-color .14s ease}.editor-workspace button:disabled{opacity:.45}.editor-workspace .panel-source .message:empty{display:none}.editor-workspace .check-tabs>.tabs{overflow-x:auto;flex-wrap:nowrap;flex-shrink:0;padding:0 10px}.editor-workspace .tab{white-space:nowrap}.editor-workspace .tab-panel{min-width:0}.editor-workspace .agent-switch button{font-weight:600}.editor-workspace .chat-log{scrollbar-width:thin}.editor-workspace .usage-block{flex-shrink:0}.editor-workspace .editor-ribbon{width:100%;display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding-top:10px;border-top:1px solid var(--border);min-width:0}.editor-workspace .ribbon-context{color:var(--text-secondary);font-size:12px;min-width:70px}.editor-workspace .ribbon-font select{width:150px;height:30px}.editor-workspace .ribbon-group{display:flex;gap:3px;padding-right:12px;border-right:1px solid var(--border)}.editor-workspace .editor-ribbon button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent);border-color:var(--accent)}.editor-workspace .format-bold{font-weight:700;min-width:30px}.editor-workspace .format-italic{font-style:italic;min-width:30px}.editor-workspace .format-field{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text-secondary);min-width:0}.editor-workspace .format-field input{width:74px;min-width:0;padding:5px 8px;border:1px solid var(--control);border-radius:4px;background:var(--surface);color:var(--text);font:inherit}.editor-workspace .format-color{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--text-secondary)}.editor-workspace .editor-ribbon .format-color{flex-direction:row;align-items:center}.editor-workspace .format-color-controls{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.editor-workspace .format-color-controls input[type=color]{width:30px;height:28px;border:1px solid var(--control);background:var(--surface);padding:2px;cursor:pointer}.editor-workspace .format-color-controls input:not([type]){width:72px;background:var(--surface);color:var(--text);border:1px solid var(--control);padding:5px;border-radius:4px}.editor-workspace .format-none{display:flex;align-items:center;gap:3px}.editor-workspace .format-none input{margin:0}.editor-workspace .workspace-properties{overflow-y:auto;flex:1 1;min-height:0}.editor-workspace .elements-chat{padding:14px}.editor-workspace .panel-elements [hidden]{display:none!important}.editor-workspace .format-pane-content{padding:16px;display:flex;flex-direction:column;gap:20px}.editor-workspace .format-object{display:flex;align-items:center;gap:10px;min-width:0}.editor-workspace .format-object>span{font-size:22px;color:var(--accent)}.editor-workspace .format-object>div{min-width:0}.editor-workspace .format-object small,.editor-workspace .format-object strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-workspace .format-object strong{font-size:13px;font-weight:500}.editor-workspace .format-object small{color:var(--text-secondary);font-size:11px;margin-top:3px}.editor-workspace .format-section{display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--border);padding-top:16px}.editor-workspace .format-section h3{font-size:12px;margin:0;font-weight:600}.editor-workspace .format-section form{display:flex;flex-direction:column;align-items:start;gap:8px}.editor-workspace .format-section textarea{width:100%;resize:vertical;min-height:90px;border:1px solid var(--control);border-radius:5px;padding:9px;font:inherit;background:var(--surface);color:var(--text)}.editor-workspace .format-geometry{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px;gap:12px}.editor-workspace .format-geometry .format-field{flex-direction:column;align-items:start;gap:5px}.editor-workspace .format-geometry input{width:100%}.editor-workspace .format-note{font-size:12px;line-height:1.6;color:var(--text-secondary);margin:0;grid-column:1/-1}.editor-workspace .format-delete{align-self:start;color:var(--danger)}.editor-workspace .format-empty{padding:40px 22px;text-align:center;color:var(--text-secondary)}.editor-workspace .format-empty-icon{display:block;font-size:30px;margin-bottom:15px;color:var(--accent)}.editor-workspace .format-empty strong{font-size:14px;color:var(--text)}.editor-workspace .format-empty p{font-size:13px;line-height:1.7}@media (max-width:850px){.editor-workspace .editor-ribbon{gap:10px}.editor-workspace .editor-ribbon .format-color{flex-wrap:wrap}.editor-workspace .panel-elements{max-height:none}.editor-workspace .workspace-properties{max-height:650px}}.editor-workspace .format-check{display:flex;align-items:center;gap:7px;font-size:13px}.editor-workspace .format-check input{accent-color:var(--accent)}.editor-workspace .panel-elements .workspace-properties{flex:0 1 45%;max-height:45%;min-height:150px;overflow-y:auto;border-bottom:1px solid var(--border)}.editor-workspace .workspace-section-heading{margin:0;padding:13px 16px;font-size:13px;font-weight:600;color:var(--text);flex:none}.editor-workspace .panel-elements .elements-chat{flex:1 1;min-height:260px;overflow-y:auto}.editor-workspace .elements-chat>.workspace-section-heading{padding:0;margin:0}.editor-workspace .workspace-properties .format-empty{padding:20px 16px}.editor-workspace .workspace-properties .format-empty-icon{margin-bottom:8px;font-size:24px}@media (max-width:850px){.editor-workspace .panel-elements .workspace-properties{flex:none;max-height:440px}.editor-workspace .panel-elements .elements-chat{flex:none;min-height:320px;max-height:600px}}.editor-workspace{--chrome-bg:#f5f6f8;--surface:#fff;--surface-subtle:#f8f9fb;--border:#e0e5eb;--border-strong:#cbd3dd;--control:#cbd3dd;--accent:#2563eb;--accent-dark:#1d4ed8;--accent-soft:#eff5ff;--primary:#2563eb;--primary-hover:#1d4ed8;--on-primary:#fff;--radius-sheet:10px;--radius-card:8px;--radius-control:6px;--font-sans:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;display:grid;grid-template-columns:var(--col-left,340px) 12px minmax(0,1fr) 12px var(--col-right,360px);grid-template-rows:auto auto minmax(0,1fr);grid-template-areas:"header header header header header" "status status status status status" "source divider-left preview divider-right assistant";align-items:stretch;height:100svh;min-height:680px;padding:12px 16px 16px;font-family:var(--font-sans)}.editor-workspace .workspace-header{padding:0 0 10px;min-height:44px;border:0;background:transparent;gap:16px}.editor-workspace .workspace-brand{font-size:20px}.editor-workspace .tool-topbar{border:0;padding:0 0 10px;background:transparent}.editor-workspace .brand-status{font-size:12px}.editor-workspace .panel{padding:16px;border:1px solid var(--border);border-radius:10px;gap:12px;overflow:auto}.editor-workspace .col-resizer{display:flex;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.editor-workspace .col-resizer-left{grid-area:divider-left}.editor-workspace .col-resizer-right{grid-area:divider-right}.editor-workspace .panel-source{grid-area:source}.editor-workspace .panel-preview{grid-area:preview;display:flex;position:relative}.editor-workspace .panel-elements{grid-area:assistant;position:static;max-height:none;padding:0}.editor-workspace .panel-preview>h2,.editor-workspace .panel-source>.workspace-source-title{display:flex;align-items:center;flex:none;height:20px;margin:0;font-size:13px;font-weight:600}.editor-workspace .panel-source .dropzone{flex:none;height:auto;min-height:180px;max-height:none;padding:24px;border:1px dashed var(--border-strong);border-radius:8px;background:var(--surface-subtle)}.editor-workspace .panel-source .dropzone:has(.dropzone-image){min-height:0;padding:8px;justify-content:flex-start}.editor-workspace .dropzone-image{width:auto;height:auto;max-height:none;max-width:100%;border-radius:2px;object-position:center top;flex:none}.editor-workspace .dropzone-hint{font-size:12px;padding-top:4px}.editor-workspace .panel-preview .stage-preview{flex:none;width:100%;height:clamp(320px,56svh,760px);padding:8px;align-items:flex-start;justify-content:center;border:1px solid var(--border);border-radius:8px;background:var(--surface-subtle)}.editor-workspace .canvas-wrap{max-width:100%;flex:none;border-radius:2px;box-shadow:0 1px 4px rgb(15 23 42/10%)}.editor-workspace .panel-preview .stage-preview>.empty{width:100%;max-width:none;aspect-ratio:16/9;border:1px dashed var(--border-strong);border-radius:2px}.editor-workspace .variant-banner{position:absolute;top:56px;left:26px;right:26px;margin:0;z-index:2}.editor-workspace .check-tabs{grid-area:auto;border:1px solid var(--border);border-radius:8px;flex:1 0 240px;overflow:auto}.editor-workspace .panel-source .panel-actions{margin-top:0;padding-top:8px;gap:10px}.editor-workspace .panel-source .status{font-size:12px}.editor-workspace .elements-chat{padding:16px}.editor-workspace .editor-ribbon{padding:14px 16px;margin:0;border-top:0;border-bottom:1px solid var(--border);gap:8px}.editor-workspace .ribbon-group{padding-right:6px}.editor-workspace .ribbon-font select{width:132px}.editor-workspace .agent-switch{flex-wrap:wrap}.editor-workspace button{border-radius:6px}.editor-workspace button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (min-width:851px) and (max-width:1180px){.editor-workspace{grid-template-columns:var(--col-left,340px) 12px minmax(0,1fr) 12px var(--col-right,360px)}.editor-workspace .workspace-document{display:none}.editor-workspace .workspace-header{gap:8px;flex-wrap:wrap}.editor-workspace .panel{padding:12px;margin:0}.editor-workspace .panel-elements{padding:0}}@media (max-width:850px){.editor-workspace{display:flex;flex-direction:column;height:auto;min-height:100svh;padding:16px;gap:12px}.editor-workspace .workspace-header{padding:0}.editor-workspace .tool-topbar{order:0;padding:0}.editor-workspace .col-resizer{display:none}.editor-workspace .panel{margin:0;flex:none}.editor-workspace .panel-source{max-height:none}.editor-workspace .panel-preview .stage-preview{height:clamp(240px,45svh,480px)}.editor-workspace .panel-elements{min-height:400px}}.editor-workspace{background:var(--chrome-bg);color:var(--text);--text:#18212f;--text-primary:#18212f;--text-secondary:#536174;--text-muted:#617084;--text-tertiary:#617084;--text-dim:#617084;--raised:#f5f7fa;--hover:#edf1f6;--active:#eaf2ff;--active-bg:#eaf2ff;--on-accent:#fff;--preview-bg:#fff}.editor-workspace .panel{min-width:0}.editor-workspace .tool-topbar{grid-area:status}.editor-workspace .workspace-title{font:inherit;margin:0}.editor-workspace .workspace-language{margin-left:auto}.editor-workspace-embedded{scroll-margin-top:56px;height:min(880px,calc(100svh - 72px))}@media (max-width:850px){.editor-workspace .workspace-header{flex-wrap:wrap;gap:10px}.editor-workspace .workspace-document{display:none}.editor-workspace .workspace-home{margin-left:auto}.editor-workspace-embedded{height:auto}}@media (prefers-reduced-motion:reduce){.editor-workspace button{transition:none}}.editor-workspace .workspace-fullscreen{margin-left:auto;flex-shrink:0}.editor-workspace-embedded:not(.editor-workspace-expanded){min-height:640px;grid-template-columns:var(--col-left,340px) 12px minmax(0,1fr) 12px var(--col-right,360px)}.editor-workspace.editor-workspace-expanded{position:fixed;inset:0;z-index:1000;width:100%;height:100svh;min-height:0;overflow:auto;scroll-margin-top:0}@media (max-width:850px){.editor-workspace-embedded:not(.editor-workspace-expanded){min-height:0}}.editor-workspace .panel-elements{display:grid;grid-template-rows:minmax(120px,var(--properties-share,45fr)) 12px minmax(180px,var(--assistant-share,55fr));grid-gap:0;gap:0;overflow:hidden;min-height:0}.editor-workspace .panel-elements .elements-chat,.editor-workspace .panel-elements .workspace-properties{min-height:0;max-height:none;overflow-y:auto;border-bottom:0}.editor-workspace .workspace-row-resizer{display:flex;align-items:center;justify-content:center;cursor:row-resize;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;background:var(--chrome-bg)}.editor-workspace .workspace-row-resizer:after{content:"";width:36px;height:3px;border-radius:2px;background:var(--control)}.editor-workspace .workspace-row-resizer:focus-visible:after,.editor-workspace .workspace-row-resizer:hover:after{background:var(--accent)}.editor-workspace .workspace-row-resizer:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}@media (max-width:850px){.editor-workspace .panel-elements{height:780px;min-height:0}}.editor-workspace .audit,.editor-workspace .canvas-wrap,.editor-workspace .chat-composer,.editor-workspace .chat-msg,.editor-workspace .check-tabs,.editor-workspace .elements-chat,.editor-workspace .panel,.editor-workspace .panel-preview .stage-preview,.editor-workspace .panel-preview .stage-preview>.empty,.editor-workspace .panel-source .dropzone,.editor-workspace .proposals,.editor-workspace .recheck,.editor-workspace .settings,.editor-workspace .stage.beauty-latest-stage,.editor-workspace .stage.variant-stage,.editor-workspace .variant-banner,.editor-workspace .variant-card,.editor-workspace .workspace-properties{border-radius:0}.editor-workspace .panel-preview .stage-preview{height:auto;min-height:0;padding:0;border:0;background:transparent;overflow:hidden}.editor-workspace .panel-preview .stage-preview>.empty{height:100%;aspect-ratio:auto}.editor-workspace .panel-elements .elements-chat>*{flex-shrink:0}.editor-workspace .panel-elements .agent-chat{flex:0 0 auto;min-height:auto}.editor-workspace .panel-elements .agent-chat .chat-log{flex:0 0 auto;min-height:0;max-height:320px;overflow-y:auto}.editor-workspace .panel-elements .chat-composer{flex:0 0 auto}