:root{color-scheme:light;font:14px/1.55 -apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,Noto Sans CJK SC,sans-serif;-webkit-font-smoothing:antialiased;--ink: #151515;--text: #303030;--muted: #545454;--subtle: #646464;--canvas: #f3f3f3;--surface: #fdfdfd;--surface-soft: #ededed;--surface-active: #e6e6e6;--chrome: #f9f9f9eb;--glass: #fdfdfdf0;--line: #cecece;--line-soft: #e1e1e1;--accent: #242424;--accent-strong: #080808;--accent-soft: #e8e8e8;--accent-text: #242424;--accent-line: #a5a5a5;--primary-text: #fff;--focus: #595959;--danger: #9b2f51;--danger-bg: #fae3ea;--danger-hover: #f7cedb;--error-border: #d8a7bc;--warning: #71511d;--warning-bg: #fff2d9;--warning-line: #e1c394;--stage: #eeeeee;--stage-dot: #cfcfcf;--shadow-sm: 0 3px 11px #18181813;--shadow-lg: 0 22px 65px #1818182b, 0 3px 12px #18181813;--backdrop: #1616165e;--origin-haze: #e2e2e28c;--radius-small: 9px;--radius: 14px;--radius-large: 22px;--radius-composer: 24px;--pill: 999px;--mono: ui-monospace, "SFMono-Regular", Consolas, monospace;--display: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;--workspace-width: 1240px;--gutter: clamp(16px, 4vw, 62px);--frame-pad: clamp(12px, 1.8vw, 28px);--masthead-height: 70px;--dock-height: 0px;color:var(--ink);background:var(--canvas)}:root[data-theme=dark]{color-scheme:dark;--ink: #f3f3f3;--text: #e2e2e2;--muted: #b8b8b8;--subtle: #a4a4a4;--canvas: #0c0c0c;--surface: #171717;--surface-soft: #222222;--surface-active: #2c2c2c;--chrome: #171717eb;--glass: #1a1a1aee;--line: #424242;--line-soft: #2e2e2e;--accent: #ebebeb;--accent-strong: #ffffff;--accent-soft: #2d2d2d;--accent-text: #f0f0f0;--accent-line: #767676;--primary-text: #131313;--focus: #d2d2d2;--danger: #ffc0d0;--danger-bg: #49273c;--danger-hover: #60334d;--error-border: #835169;--warning: #ffe1a9;--warning-bg: #352c2d;--warning-line: #786455;--stage: #101010;--stage-dot: #292929;--shadow-sm: 0 3px 12px #00000061;--shadow-lg: 0 22px 70px #000000a0, 0 3px 12px #00000070;--backdrop: #000000a8;--origin-haze: #3a3a3a4f}*,*:before,*:after{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{overflow:hidden;background:var(--canvas)}[hidden]{display:none!important}button,input,textarea,select{color:inherit;font:inherit}button,a,input,textarea,select,summary{-webkit-tap-highlight-color:transparent}button,a,summary{touch-action:manipulation}button,select,summary{cursor:pointer}button{border:0;background:transparent;transition:background-color .15s,border-color .15s,color .15s,box-shadow .15s}button:disabled{cursor:default;opacity:.53}a{color:inherit;text-decoration:none}:focus-visible{outline:2px solid var(--focus);outline-offset:3px}::-moz-selection{color:var(--primary-text);background:var(--accent)}::selection{color:var(--primary-text);background:var(--accent)}fieldset{border:0;min-width:0;margin:0;padding:0}input,textarea,select{min-width:0}input[type=checkbox],input[type=range]{accent-color:var(--accent)}input:not([type=checkbox],[type=range],[type=file]),select{width:100%;min-height:40px;padding:8px 11px;border:1px solid var(--line);border-radius:var(--radius-small);background:var(--surface)}select{padding-right:24px}input::-moz-placeholder,textarea::-moz-placeholder{color:var(--subtle);opacity:1}input::placeholder,textarea::placeholder{color:var(--subtle);opacity:1}h1,h2,h3,p{margin-top:0}img{max-width:100%}svg{flex-shrink:0;vertical-align:middle}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:8px;left:8px;z-index:40;transform:translateY(calc(-100% - 12px));background:var(--surface);color:var(--accent-text);padding:10px 14px;border-radius:var(--radius)}.skip-link:focus{transform:none}.icon-button{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border-radius:50%;color:var(--muted)}.icon-button:hover:not(:disabled),.icon-button[aria-expanded=true]{background:var(--accent-soft);color:var(--accent-text)}.primary-button,.secondary-button,.danger-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 15px;border:1px solid transparent;border-radius:var(--pill);font-size:13px;font-weight:620;line-height:1.3;white-space:nowrap}.primary-button{color:var(--primary-text);background:var(--accent)}.primary-button:hover:not(:disabled){background:var(--accent-strong)}.secondary-button{color:var(--text);border-color:var(--line);background:var(--surface)}.secondary-button:hover:not(:disabled){border-color:var(--accent-line);color:var(--accent-text);background:var(--accent-soft)}.danger-button{color:var(--danger);border-color:var(--error-border);background:var(--danger-bg)}.danger-button:hover:not(:disabled){background:var(--danger-hover)}.text-button{display:inline-flex;align-items:center;min-height:34px;gap:6px;padding:4px 8px;border-radius:var(--pill);color:var(--muted);font-size:13px}.text-button:hover:not(:disabled){background:var(--surface-soft);color:var(--ink)}.spinner{display:inline-block;flex:0 0 auto;width:16px;height:16px;border:1.6px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .85s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.studio-app{isolation:isolate;display:flex;flex-direction:column;height:100dvh;padding-bottom:var(--dock-height)}.studio-sky{--sky-star: #202020;--sky-opacity: .86;--nebula-opacity: .62;position:fixed;z-index:-1;top:0;right:0;bottom:0;left:0;overflow:hidden;pointer-events:none}:root[data-theme=dark] .studio-sky{--sky-star: #f4f4f4;--sky-opacity: .94;--nebula-opacity: .82}.sky-nebula{position:absolute;z-index:-1;top:50%;left:50%;width:calc(100% + 112px);height:calc(100% + 112px);transform:translate3d(calc(-50% + var(--sky-x, 0) * 12px),calc(-50% + var(--sky-y, 0) * 12px),0);opacity:var(--nebula-opacity)}.sky-nebula canvas{display:block;width:100%;height:100%}.studio-sky:before,.studio-sky:after,.studio-sky :is(.sky-dust,.sky-resolved,.sky-bright){position:absolute;top:0;left:0;border-radius:50%;transform:translate3d(calc(var(--sky-x, 0) * var(--sky-depth)),calc(var(--sky-y, 0) * var(--sky-depth)),0)}.studio-sky:before{--sky-depth: 8px;content:"";width:1px;height:1px;opacity:var(--sky-opacity);box-shadow:var(--sky-distant)}.studio-sky:after{--sky-depth: 19px;content:"";width:2px;height:2px;opacity:var(--sky-opacity);box-shadow:var(--sky-near)}.sky-dust{--sky-depth: 4px;width:.7px;height:.7px;opacity:.66;box-shadow:var(--sky-dust)}.sky-resolved{--sky-depth: 13px;width:1.45px;height:1.45px;opacity:.84;box-shadow:var(--sky-resolved)}.sky-bright{--sky-depth: 24px;width:2.55px;height:2.55px;opacity:.83;box-shadow:var(--sky-bright)}.sky-glint{position:absolute;width:var(--glint-size);height:var(--glint-size);transform:translate3d(calc(-50% + var(--sky-x, 0) * 29px),calc(-50% + var(--sky-y, 0) * 29px),0);color:var(--sky-star);opacity:.72;background:radial-gradient(circle,currentColor 7%,color-mix(in srgb,currentColor 69%,transparent) 21%,transparent 68%)}.sky-glint:before,.sky-glint:after{content:"";position:absolute;top:50%;left:50%;width:220%;height:1px;opacity:.47;background:linear-gradient(90deg,transparent,currentColor 50%,transparent);transform:translate(-50%,-50%)}.sky-glint:after{width:170%;transform:translate(-50%,-50%) rotate(90deg)}@media(prefers-reduced-motion:no-preference){.studio-sky:before,.studio-sky:after,.studio-sky>*{transition:transform .26s cubic-bezier(.16,1,.3,1)}.sky-resolved{--star-drift: -14px 8px;animation:sky-star-drift 34s ease-in-out -8s infinite alternate}.sky-bright{--star-drift: 20px -12px;animation:sky-star-drift 24s ease-in-out -11s infinite alternate}.sky-glint{animation:sky-glint-light var(--glint-period) ease-in-out var(--glint-delay) infinite alternate}}@keyframes sky-star-drift{0%{translate:0 0}to{translate:var(--star-drift)}}@keyframes sky-glint-light{0%{opacity:.58}to{opacity:.84}}.studio-main{min-width:0;min-height:0;flex:1 1 auto;display:flex;flex-direction:column}.studio-main:focus{outline:0}.studio-masthead{position:relative;z-index:3;flex:0 0 auto;height:var(--masthead-height);min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;padding-inline:var(--gutter)}.studio-brand{display:flex;align-items:center;gap:9px;justify-self:start;padding:3px 0;text-align:left;white-space:nowrap}.studio-brand img{display:block;width:40px;height:40px}:root[data-theme=dark] .studio-brand img{filter:invert(1)}.studio-brand>span{display:grid;gap:4px}.studio-brand strong{color:var(--ink);font:720 18px/1.1 var(--display);letter-spacing:.045em}.studio-brand small{color:var(--muted);font:550 9px/1 var(--mono);letter-spacing:.15em}.studio-nav{display:flex;align-items:center;gap:4px;padding:4px;border:1px solid var(--line-soft);border-radius:var(--pill);background:var(--chrome);box-shadow:var(--shadow-sm)}.studio-nav button{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;min-width:92px;min-height:36px;padding:5px 10px;border-radius:var(--pill);color:var(--muted);font-size:13px;font-weight:580;white-space:nowrap}.studio-nav button:hover{background:var(--surface-soft);color:var(--ink)}.studio-nav button[aria-current=page]{background:var(--accent-soft);color:var(--accent-text);font-weight:660}.nav-activity{width:5px;height:5px;border-radius:50%;background:var(--accent)}.masthead-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px}.masthead-new{border:1px solid var(--line);background:var(--chrome)}.connection-trigger{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:6px 12px;border:1px solid var(--line);border-radius:var(--pill);color:var(--text);background:var(--chrome);font-size:12px;font-weight:600;white-space:nowrap}.connection-trigger i{width:6px;height:6px;border:1px solid var(--muted);border-radius:50%}.connection-trigger:hover{color:var(--accent-text);border-color:var(--accent-line);background:var(--accent-soft)}.connection-trigger.is-configured i{border-color:var(--accent);background:var(--accent)}.section-code{display:inline-flex;align-items:center;gap:7px;color:var(--subtle);font:500 10px/1.3 var(--mono);letter-spacing:.12em;white-space:nowrap}.section-code i{width:6px;height:6px;border:1px solid var(--accent);border-radius:50%}.index-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:26px}.index-heading h1{margin:6px 0 4px;font:750 clamp(38px,5vw,69px)/1.06 var(--display);letter-spacing:-.065em}.index-heading p{margin:0;color:var(--muted);font-size:14px}.session-layout{display:grid;grid-template-columns:clamp(224px,21vw,300px) minmax(0,1fr);gap:12px;flex:1 1 auto;min-height:0;padding:0 var(--frame-pad) var(--frame-pad)}.session-sidebar,.session-workbench{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;border:1px solid var(--line-soft);border-radius:var(--radius-large);background:var(--surface)}.session-sidebar{background:color-mix(in srgb,var(--surface) 72%,transparent)}.session-list{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;padding:14px 12px 8px}.session-list-heading{display:flex;align-items:center;gap:5px;padding:1px 2px 12px 5px}.session-list-heading h2{flex:1 1 auto;margin:0;font:700 21px/1.1 var(--display);letter-spacing:-.035em}.session-new{border:1px solid var(--line);color:var(--accent-text)}.history-tools{display:grid;gap:6px;margin-bottom:8px}.chat-search{display:flex;align-items:center;gap:7px;min-width:0;width:100%;padding:0 9px;border:1px solid var(--line);color:var(--subtle);background:var(--surface);border-radius:var(--pill)}.chat-search:focus-within{border-color:var(--focus)}.chat-search input[type=search]{min-height:36px;padding:6px 0;border:0;outline:0;background:transparent;font-size:12px}.chat-search kbd{flex-shrink:0;padding:2px 4px;border:1px solid var(--line);border-radius:6px;font:9px/1 var(--mono)}.chat-list-controls{display:flex;align-items:center;justify-content:space-between;gap:4px}.chat-list-controls .parameter-button{white-space:nowrap;font-size:11px}.conversation-list{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:3px}.chat-row{display:flex;align-items:center;gap:1px;min-height:54px;margin-bottom:3px;padding-right:3px;border-radius:var(--radius)}.chat-row:hover,.chat-row:focus-within{background:var(--surface-soft)}.chat-row.is-current{background:var(--surface-active)}.chat-select{display:flex;align-items:center;flex:1 1 auto;gap:8px;min-width:0;padding:8px 4px 8px 9px;border-radius:var(--radius);text-align:left}.chat-select .chat-order{color:var(--subtle);font:10px/1.4 var(--mono);white-space:nowrap}.chat-row.is-current .chat-order,.chat-row.is-current .chat-select svg{color:var(--accent-text)}.chat-select svg{color:var(--muted)}.chat-select :is(time,svg:last-child:not(:first-child)){display:none}.chat-name{flex:1 1 auto;display:grid;gap:2px;min-width:0}.chat-name strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:650}.chat-name small{color:var(--muted);font-size:11px}.chat-row .chat-row-menu{width:30px;padding:0;color:var(--muted)}.history-empty{padding:20px 10px;color:var(--muted);text-align:center;font-size:12px}.session-workbench{background:color-mix(in srgb,var(--canvas) 20%,transparent)}.session-mobile-toolbar{padding:7px var(--frame-pad) 0}.session-mobile-toolbar button{min-height:35px;font-size:12px}.session-sheet{position:fixed;inset:0 auto 0 0;margin:0;width:min(335px,88vw);max-width:none;height:100dvh;max-height:none;padding:max(5px,env(safe-area-inset-top)) 0 max(5px,env(safe-area-inset-bottom));border:1px solid var(--line);border-radius:0 var(--radius-large) var(--radius-large) 0;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-lg)}.session-sheet[open]{display:flex;flex-direction:column}.session-sheet::backdrop{background:var(--backdrop)}.session-empty{display:grid;flex:1 1 auto;min-height:120px;align-content:center;justify-items:center;padding:16px;text-align:center}.session-empty>span{display:grid;place-items:center;width:58px;height:58px;margin-bottom:12px;border-radius:50%;background:var(--accent-soft);color:var(--accent-text)}.session-empty h1{margin:0 0 5px;font-size:18px}.session-empty p{margin:0;color:var(--muted);font-size:13px}@media(max-width:820px){.session-layout{grid-template-columns:minmax(0,1fr);padding-inline:0;padding-bottom:0}.session-workbench{border:0;border-radius:0}.session-list .chat-search input[type=search]{font-size:16px}.session-list .chat-search kbd{display:none}}@media(min-width:671px)and (max-width:920px){.studio-masthead{grid-template-columns:minmax(max-content,1fr) auto minmax(max-content,1fr)}.studio-nav button{min-width:0;padding-inline:7px}}@media(max-width:670px){:root{--gutter: 15px;--masthead-height: 59px;--dock-height: calc(62px + env(safe-area-inset-bottom)) }.sky-dust{opacity:.45}.sky-glint:nth-of-type(2n){display:none}.studio-masthead{grid-template-columns:minmax(0,1fr) auto;gap:5px;padding:0 var(--frame-pad)}.studio-brand{gap:6px}.studio-brand img{width:34px;height:34px}.studio-brand strong{font-size:16px}.studio-brand small{font-size:8px}.masthead-actions{gap:6px}.masthead-actions .icon-button,.connection-trigger{min-height:35px;height:35px}.masthead-actions .icon-button{width:35px}.connection-trigger{padding-inline:8px}.connection-trigger>svg{display:none}.studio-nav{position:fixed;z-index:5;inset:auto 9px calc(6px + env(safe-area-inset-bottom));min-height:49px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;background:var(--glass)}.studio-nav button{gap:4px;min-width:0;min-height:39px;padding:4px 2px;font-size:11px}.studio-nav button>svg{width:15px;height:15px}.nav-activity{position:absolute;top:7px;right:11px}.index-heading{margin-bottom:18px}.index-heading p{font-size:12px}}@media(max-width:355px){.connection-trigger{width:35px;padding:0}.connection-trigger>:is(i,span){display:none}.connection-trigger>svg{display:block}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition-duration:0s!important;animation-duration:0s!important}.spinner{border-right-color:currentColor;opacity:.55}}.workspace-frame{width:100%;max-width:var(--workspace-width);margin-inline:auto}.result-panel,.workspace-content,.conversation-shell{display:flex;flex:1 1 auto;min-height:0;min-width:0;flex-direction:column}.result-panel{overflow:hidden}.workspace-pane{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.workspace-loading{display:flex;flex:1;align-items:center;justify-content:center;gap:9px;color:var(--muted)}.workspace-loading .spinner{color:var(--accent)}.workspace-notice{margin:10px var(--gutter) 0;flex:0 0 auto}.error-message,.storage-message{padding:10px 13px;border:1px solid var(--error-border);border-radius:9px;color:var(--danger);background:var(--danger-bg);font-size:13px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}.storage-message{border-color:var(--warning-line);color:var(--warning);background:var(--warning-bg)}.workspace-notice{max-height:18dvh;overflow:auto}.origin-pane{--origin-composer-line: #bfbfbf;--origin-composer-shadow: 0 22px 58px #16161616, 0 2px 12px #1616160d;padding:4px var(--gutter) 8px;overflow-x:hidden}:root[data-theme=dark] .origin-pane{--origin-composer-line: #464646;--origin-composer-shadow: var(--shadow-lg)}.orbit-sky,.orbit-stardust{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none}.orbit-sky{z-index:-1}.origin-studio{position:relative;isolation:isolate;display:grid;justify-items:center;grid-template-rows:auto minmax(clamp(148px,27dvh,238px),1fr) auto;max-width:1300px;min-height:calc(100dvh - var(--masthead-height) - var(--dock-height) - 12px);margin-inline:auto;padding-block:clamp(7px,1.25dvh,15px) clamp(4px,.9dvh,10px)}.origin-intro{position:relative;z-index:1;text-align:center;text-shadow:0 0 15px var(--canvas),0 0 5px var(--canvas)}.origin-intro h1{margin:0 0 8px;color:var(--ink);font:700 clamp(45px,min(5.7vw,8.1dvh),74px)/1 var(--display);letter-spacing:-.066em;white-space:nowrap}.origin-lede{margin:0;color:var(--muted);font-size:14px;line-height:1.6;letter-spacing:.065em}.origin-stage{position:relative;width:100%;min-height:0}.orbit-installation{position:absolute;top:0;right:0;bottom:0;left:0;translate:0 clamp(8px,min(1.5vw,2.5dvh),24px)}.orbit-disc{position:relative;width:100%;height:100%}.orbit-object{position:absolute;top:50%;left:50%;width:var(--orbit-diameter, min(90vw, 520px));aspect-ratio:1;transform:translate(-50%,-50%);pointer-events:none}.orbit-object:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(ellipse at 49% 50%,#151515 3%,#242424 11%,#73737349 20%,transparent 34%)}:root[data-theme=dark] .orbit-object:before{background:radial-gradient(ellipse at 49% 50%,#fff 3%,#e8e8e8 11%,#d9d9d947 20%,transparent 34%)}.orbit-object img{position:absolute;top:0;right:0;bottom:0;left:0;display:block;width:100%;height:100%}.orbit-installation[data-renderer=still] .orbit-object:before{display:none}.orbit-installation[data-renderer=three] .orbit-disc{cursor:grab;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;user-select:none}.orbit-installation[data-dragging=true] .orbit-disc{cursor:grabbing}@media(prefers-reduced-motion:reduce){.orbit-stardust{visibility:hidden}}.origin-compose{position:relative;z-index:2;width:min(660px,82%);margin:0 auto}.origin-compose .composer-dock{padding:0}.origin-compose .composer-input{border-color:var(--origin-composer-line);background:var(--glass);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);box-shadow:var(--origin-composer-shadow)}.origin-compose .composer-input:focus-within{border-color:var(--focus)}.origin-compose .image-quick-settings{display:none}@media(max-width:820px){.origin-studio{padding-top:9px}.origin-intro h1{font-size:clamp(44px,11.6vw,62px)}.origin-lede{font-size:13px}.origin-compose{width:min(100%,660px)}}@media(max-height:680px)and (max-width:820px){.origin-intro h1{font-size:clamp(37px,10vw,55px);margin-bottom:6px}}.composer-dock{flex:0 0 auto;padding:9px var(--frame-pad) max(9px,env(safe-area-inset-bottom))}.session-workbench{--conversation-width: 880px}.session-workbench>.composer-dock{padding-top:8px;padding-inline:var(--gutter);border-top:1px solid var(--line-soft);background:var(--chrome);overflow:hidden;scrollbar-width:thin;scrollbar-gutter:stable both-edges}.session-workbench>.composer-dock>.chat-composer{max-width:var(--conversation-width)}.composer-input{container:composer / inline-size;position:relative;padding:12px 13px 10px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-composer);transition:border-color .18s,box-shadow .18s}.composer-input:focus-within{border-color:var(--focus);box-shadow:0 0 0 1px var(--accent-soft)}.prompt-label{display:block;margin:0 3px 5px;font-size:12px;color:var(--muted);font-weight:660}.composer-input textarea{display:block;width:100%;min-height:53px;max-height:128px;padding:3px 3px 9px;resize:none;outline:none;border:0;background:transparent;font-size:15px;line-height:1.6;overflow:auto}.composer-input textarea:disabled{opacity:.7}.composer-input.is-dragging{border-color:var(--accent)}.composer-drop-indicator{position:absolute;z-index:1;top:5px;right:5px;bottom:5px;left:5px;display:flex;align-items:center;justify-content:center;gap:9px;pointer-events:none;color:var(--accent-text);background:var(--glass);border:1px dashed var(--accent);border-radius:var(--radius);font-weight:650}.composer-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:7px;border-top:1px solid var(--line-soft)}.composer-tools,.image-parameters,.image-quick-settings{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}.composer-actions .composer-button{height:36px;min-height:36px;gap:6px;padding:5px 9px;white-space:nowrap;color:var(--text);border:1px solid transparent;background:transparent;border-radius:var(--pill);font-size:12px;font-weight:550}.composer-actions .composer-button:hover:not(:disabled),.composer-actions .composer-button[aria-expanded=true]{color:var(--accent-text);border-color:var(--accent-line);background:var(--accent-soft)}.composer-actions .attachment-button{color:var(--accent-text);padding-left:4px;font-weight:640}.composer-actions .composer-favorites{width:36px;padding:0}.image-quick-settings .model-button{max-width:188px}.image-quick-settings .size-button{max-width:112px}.image-quick-settings .choice-label{overflow:hidden;text-overflow:ellipsis}.send-button{flex:0 0 auto;align-self:flex-end;min-height:38px;min-width:82px;padding:7px 13px}.send-button:disabled{opacity:1;border-color:var(--line);background:var(--surface-soft);color:var(--muted)}.composer-caption{display:flex;align-items:center;justify-content:space-between;gap:4px 10px;padding:4px 2px 0;color:var(--muted);font-size:11px;min-height:30px}.composer-caption-left,.composer-price{display:flex;align-items:center;flex-wrap:wrap;gap:4px 9px}.composer-price{gap:4px}.composer-price strong{color:var(--ink);font-weight:660;font-variant-numeric:tabular-nums}.usd-price{color:var(--subtle);font-variant-numeric:tabular-nums}.composer-price .info-button{min-width:22px;min-height:22px}.composer-status{color:var(--accent-text);line-height:1.6}.composer-keys{display:flex;align-items:center;gap:4px;white-space:nowrap;padding-top:1px}.composer-keys kbd{padding:2px 4px;border:1px solid var(--line);border-radius:4px;background:var(--surface);font:10px/1 var(--mono)}.composer-keys span{margin:0 2px}.composer-attachments{display:flex;gap:10px;overflow-x:auto;padding:5px 5px 9px;scrollbar-width:thin}.composer-attachment{position:relative;flex:0 0 64px;width:64px;height:64px}.composer-attachment-preview{display:block;width:100%;height:100%;padding:0;border-radius:9px;overflow:hidden;cursor:zoom-in}.composer-attachment-preview img{display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.remove-composer-attachment,.edit-composer-attachment{position:absolute;display:grid;place-items:center;padding:0;background:var(--glass);color:var(--ink);box-shadow:var(--shadow-sm);border:1px solid var(--line)}.remove-composer-attachment{right:2px;top:2px;border-radius:6px;width:21px;height:21px}.edit-composer-attachment{min-width:30px;left:3px;bottom:3px;padding:1px 4px;border-radius:4px;font-size:10px}.edit-composer-attachment.is-applied{color:var(--accent-text);background:var(--accent-soft)}.remove-composer-attachment:hover,.edit-composer-attachment:hover{background:var(--surface-soft)}@container composer (max-width: 785px){.image-quick-settings{display:none}}@container composer (max-width: 425px){.composer-tools,.image-parameters{gap:4px}.composer-actions{gap:7px}.composer-actions .composer-button{padding-inline:7px;min-height:38px}.composer-actions :is(.attachment-button,.tools-icon-button,.composer-favorites){width:35px;padding:0}.attach-label,.tools-label,.mode-button>svg:first-child{display:none}.send-button{min-width:68px;gap:5px;padding-inline:9px}}@container composer (max-width: 360px){.composer-actions .parameter-trigger{width:35px;padding:0}.composer-actions .parameter-trigger>span{display:none}}@container composer (max-width: 316px){.composer-tools,.image-parameters{gap:3px}.composer-actions :is(.attachment-button,.parameter-trigger,.tools-icon-button,.composer-favorites){width:32px;padding-inline:0}.composer-actions .mode-button{gap:3px;padding-inline:5px}.composer-actions .mode-button>svg:last-child{display:none}.composer-actions{gap:5px}.send-button{min-width:63px;padding-inline:6px}}@container composer (max-width: 265px){.composer-tools{gap:2px}.composer-actions .mode-button{width:32px;padding:0}.composer-actions .mode-button>svg:first-child{display:block}.composer-actions .mode-button .choice-label{display:none}}.studio-result{display:flex;flex:1 1 auto;flex-direction:column;min-width:0;min-height:0}.result-toolbar{display:flex;align-items:center;justify-content:space-between;flex:0 0 auto;gap:12px;padding:9px var(--frame-pad)}.result-title{display:flex;align-items:center;gap:13px;min-width:0}.result-title h1{overflow:hidden;margin:0;font-size:15px;font-weight:630;white-space:nowrap;text-overflow:ellipsis}.result-views{display:flex;flex:0 0 auto;gap:2px;padding:3px;border:1px solid var(--line);border-radius:var(--pill);background:var(--surface)}.result-views button{display:flex;align-items:center;justify-content:center;gap:6px;padding:5px 9px;min-height:31px;border-radius:var(--pill);color:var(--muted);font-size:12px;white-space:nowrap}.result-views button[aria-pressed=true]{color:var(--accent-text);background:var(--accent-soft)}.result-views button:hover:not(:disabled){background:var(--surface-soft);color:var(--ink)}.result-stage-scroll{padding:0 var(--frame-pad)}.result-stage{display:flex;flex-direction:column;height:100%;min-height:245px}.result-exposure{position:relative;flex:1 1 0;min-height:0;display:flex;border:1px solid var(--line);border-radius:var(--radius-large);overflow:hidden;background:radial-gradient(circle,var(--stage-dot) 1px,transparent 1px) 0 0 / 16px 16px color-mix(in srgb,var(--stage) 56%,transparent)}.result-exposure .chat-image{display:flex;flex-direction:column;width:100%;border:0;border-radius:inherit;background:transparent}.result-exposure .media-surface{flex:1 1 0;min-height:0;background:transparent}.result-exposure .chat-image-open,.result-exposure .stored-image-placeholder{width:100%;height:100%}.result-exposure .chat-image-open img,.stage-preview img{display:block;width:100%;height:100%;max-height:none;-o-object-fit:contain;object-fit:contain}.result-exposure .image-footer{flex:0 0 auto;min-height:40px;padding-inline:12px 6px;background:var(--surface)}.stage-awaiting{display:grid;align-content:center;justify-items:center;gap:12px;width:100%;min-height:0;padding:24px}.stage-awaiting svg{color:var(--accent)}.stage-awaiting p{margin:0;color:var(--muted);font-size:13px;letter-spacing:.12em}.stage-preview{position:relative;width:100%;min-height:0}.stage-preview>span{position:absolute;top:11px;right:11px;padding:4px 7px;color:var(--accent-text);background:var(--glass);border:1px solid var(--line);font-size:11px}.stage-activity{position:absolute;bottom:49px;left:11px;display:flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid var(--accent-line);border-radius:var(--radius-small);background:var(--glass);color:var(--accent-text);font-size:12px}.stage-activity time{color:var(--muted);font:11px/1.2 var(--mono)}.stage-error{margin:5px 0 0;max-height:95px;overflow:auto}.stage-index{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;padding:2px 0}.stage-frame-nav,.stage-record-actions{display:flex;align-items:center;gap:4px}.stage-frame-nav span{color:var(--muted);font:11px/1.3 var(--mono);white-space:nowrap}.stage-record-actions{gap:6px}.stage-record-actions .message-time{display:none}.stage-record-actions .message-action{font-size:12px}@media(max-width:670px){.result-title .section-code{display:none}.result-title h1{font-size:13px}.result-toolbar{gap:6px;padding-block:5px}.result-views button{gap:4px;padding-inline:6px;font-size:11px}.result-views svg{width:13px;height:13px}.result-exposure .image-footer{padding-inline:6px 3px}}.conversation-shell{position:relative}.conversation{padding:22px var(--gutter) 27px;overflow-anchor:none;scrollbar-gutter:stable both-edges}.conversation-thread{width:100%;max-width:var(--conversation-width);margin-inline:auto}.conversation-entry{padding:9px 0 19px}.conversation-entry+.conversation-entry{border-top:1px solid var(--line);padding-top:24px}.request-block{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.request-heading{display:flex;align-items:baseline;gap:10px;font-weight:650;font-size:12px;color:var(--text)}.request-heading time,.message-time{color:var(--subtle);font-weight:450;font-size:11px;font-variant-numeric:tabular-nums}.request-message{max-width:83%;width:-moz-fit-content;width:fit-content;padding:12px 16px;border:1px solid var(--line);border-radius:var(--radius-large) var(--radius-large) 8px var(--radius-large);background:var(--accent-soft)}.request-message p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.75}.history-attachments{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}.assistant-block{margin-top:13px}.assistant-heading{display:flex;align-items:center;gap:9px;font-size:13px}.assistant-heading strong{font-weight:660}.assistant-body{margin-left:37px}.assistant-body>*:first-child{margin-top:9px}.assistant-message{max-width:760px;font-size:15px;line-height:1.8;overflow-wrap:anywhere}.assistant-message :is(p,ul,ol,blockquote,pre){margin:0 0 10px}.assistant-message>:last-child{margin-bottom:0}.assistant-message .plain-reply{white-space:pre-wrap}.assistant-message ul,.assistant-message ol{padding-left:24px}.assistant-message blockquote{border-left:2px solid var(--accent-line);padding-left:12px;color:var(--muted)}.assistant-message pre,.tool-call pre{max-width:100%;overflow:auto;border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;padding:11px;font:12px/1.65 var(--mono)}.assistant-message code:not(pre code){background:var(--accent-soft);border-radius:4px;padding:2px 4px}.assistant-message a{color:var(--accent-text);text-decoration:underline;text-underline-offset:3px}.message-sources,.message-meta,.output-files{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:9px}.message-sources a{display:inline-block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:4px 8px;border:1px solid var(--line);border-radius:6px;background:var(--surface);font-size:11px;text-decoration:none}.message-meta .message-action{display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:5px 7px;color:var(--muted);border-radius:7px;font-size:11px}.message-action:hover:not(:disabled){background:var(--accent-soft);color:var(--accent-text)}.message-meta .copy-message{min-width:66px}.user-meta{margin-top:0}.message-details{display:grid;grid-template-columns:65px minmax(0,1fr);gap:8px 10px;margin:0;font-size:12px}.message-details dt{color:var(--muted)}.message-details dd{margin:0;color:var(--ink);overflow-wrap:anywhere}.tool-call,.tool-status{color:var(--muted);margin:10px 0;font-size:12px}.tool-call summary,.tool-status{display:flex;align-items:center;gap:8px}.tool-call summary:before{content:"›";font-size:16px}.tool-call[open] summary:before{transform:rotate(90deg)}.tool-call summary span,.tool-status span{padding:2px 5px;border-radius:5px;background:var(--accent-soft);color:var(--accent-text);font-size:10px}.output-files button{max-width:100%;overflow-wrap:anywhere;white-space:normal;text-align:left}.conversation-images{display:flex;flex-wrap:wrap;align-items:flex-start;gap:13px;margin-top:14px}.load-history{display:flex;width:-moz-fit-content;width:fit-content;margin:15px auto}.generation-status{display:flex;align-items:center;gap:8px;width:-moz-fit-content;width:fit-content;margin:-7px 0 14px 37px;padding:8px 11px;border:1px solid var(--accent-line);border-radius:8px;color:var(--accent-text);background:var(--accent-soft);font-size:12px}.generation-status time{color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}.jump-latest{position:absolute;right:var(--gutter);bottom:12px;z-index:1;box-shadow:var(--shadow-sm)}.chat-image{min-width:0;max-width:100%;width:-moz-fit-content;width:fit-content;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.media-surface{position:relative;overflow:hidden;background:var(--surface-soft)}.chat-image-open{display:block;width:100%;padding:0;cursor:zoom-in;overflow:hidden}.chat-image-open:focus-visible{outline-offset:-3px}.chat-image-open img,.generating-image img{display:block;width:auto;height:auto;max-width:100%;max-height:min(51dvh,510px);-o-object-fit:contain;object-fit:contain}.image-footer{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:42px;padding:4px 6px 4px 10px;border-top:1px solid var(--line-soft)}.image-caption{display:grid;gap:1px;min-width:0}.image-caption span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:620}.image-caption small{color:var(--muted);font-size:10px}.image-actions{display:flex;align-items:center;flex:0 0 auto;gap:2px}.image-actions .icon-button,.image-actions .media-more{width:31px;height:31px;min-height:31px;padding:0}.image-actions .image-edit{display:inline-flex;width:auto;gap:4px;padding:0 5px;font-size:11px}.stored-image-placeholder{display:grid;place-items:center;width:200px;min-height:140px;max-width:100%;padding:8px;color:var(--muted);font-size:12px;text-align:center}.reference-thumbnail{width:62px;border-color:var(--line);border-radius:8px}.reference-thumbnail img,.reference-thumbnail .stored-image-placeholder{width:60px;height:60px;min-height:60px;-o-object-fit:cover;object-fit:cover;font-size:10px}.generating-image{position:relative}.generating-image>span{position:absolute;left:10px;bottom:10px;padding:5px 8px;border-radius:6px;color:var(--accent-text);background:var(--glass);font-size:11px}@media(max-width:899px){.session-workbench>.composer-dock{padding-bottom:6px}.composer-input{padding:9px 9px 8px;border-radius:var(--radius-large)}.composer-input textarea{min-height:43px;max-height:96px;font-size:16px;padding-bottom:7px}.composer-caption{min-height:24px;padding-top:5px}.composer-keys{display:none}.conversation{padding-top:14px}.assistant-body{margin-left:0}.assistant-heading{margin-bottom:7px}.request-message{max-width:94%}.generation-status{margin-left:0}}@media(max-width:480px){.chat-image-open img,.generating-image img{max-height:44dvh}}@media(max-height:650px){.composer-input textarea{max-height:86px}}.composer-caption-right{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}.composer-caption-right .response-model{min-height:27px;max-width:145px;font-size:11px;font-weight:590}.response-model .choice-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:440px){.composer-caption-right{gap:2px}.composer-caption-right .response-model{max-width:116px;padding-inline:4px}.composer-caption-left .usd-price{display:none}}.parameter-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;min-width:0;padding:5px 8px;border-radius:var(--pill);color:var(--text);font-size:13px}.parameter-button:hover:not(:disabled),.parameter-button[aria-expanded=true]{background:var(--accent-soft);color:var(--accent-text)}.parameter-button.theme-trigger{min-height:0;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--chrome);color:var(--accent-text)}.parameter-button.theme-trigger:is(:hover,[aria-expanded=true]){background:var(--accent-soft)}.info-button{display:inline-grid;place-items:center;flex:0 0 auto;min-width:26px;min-height:26px;padding:2px;border-radius:50%;color:var(--subtle)}.info-button:hover,.info-button[aria-expanded=true]{background:var(--accent-soft);color:var(--accent-text)}.info-popover{position:fixed;inset:auto;margin:0;width:292px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:13px 14px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--text);box-shadow:var(--shadow-lg);font-size:12px;line-height:1.6;overflow-wrap:anywhere}.info-popover:popover-open{animation:popover-appear .14s ease-out}@keyframes popover-appear{0%{opacity:0}to{opacity:1}}.info-popover p{margin:0 0 9px}.info-popover p:last-child{margin-bottom:0}.info-popover a,.settings-credits a{color:var(--accent-text);text-decoration:underline;text-underline-offset:3px}.info-popover-wide{width:650px;max-height:min(560px,calc(100dvh - 24px));padding:16px}.menu-popover{width:380px;max-height:min(640px,calc(100dvh - 24px));padding:15px}.menu-popover:has(>.chat-action-menu){width:218px;padding:6px}.menu-popover:has(>.choice-menu){width:250px;max-height:min(560px,72dvh);padding:7px}.menu-popover:is([aria-label=图片模型],[aria-label=对话模型],[aria-label=创作方式]){width:315px}.menu-popover[aria-label=图片设置]{width:400px}.menu-popover[aria-label=消息详情]{width:274px}.menu-popover:has(>.theme-menu){width:256px;padding:9px}.theme-color-heading{margin-top:7px;padding-top:8px;border-top:1px solid var(--line-soft)}.segmented.theme-colors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.chat-action-menu{display:grid;gap:2px}.chat-action-menu button,.choice-menu [role=group] button{display:flex;align-items:center;gap:8px;width:100%;min-height:38px;padding:7px 9px;border-radius:var(--radius-small);text-align:left;color:var(--text);font-size:13px;line-height:1.5}.chat-action-menu button:hover:not(:disabled),.choice-menu [role=group] button:hover:not(:disabled){background:var(--surface-soft);color:var(--ink)}.chat-action-menu button[aria-pressed=true],.choice-menu [role=group] button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent-text);font-weight:600}.chat-action-menu button[aria-pressed]{justify-content:space-between}.chat-action-menu .danger-action{color:var(--danger)}.chat-action-menu .danger-action:hover{background:var(--danger-bg);color:var(--danger)}.chat-action-menu p{padding:7px 8px 4px;margin:2px 0 0;border-top:1px solid var(--line-soft);color:var(--muted);font-size:11px}.choice-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:3px 6px 6px 9px;color:var(--ink);font-size:13px;font-weight:670}.choice-group{margin:4px 0 2px;padding:6px 9px 3px;color:var(--muted);font-size:11px}.choice-menu [role=group] button{justify-content:space-between;gap:12px}.choice-option-content{display:grid;gap:2px}.choice-option-detail,.choice-price-unit{color:var(--muted);font-size:11px;font-weight:450}.choice-price-unit{margin:8px 8px 4px!important}.parameter-menu h3,.tool-menu h3{margin:0 0 2px;color:var(--ink);font-size:15px;font-weight:680}.parameter-menu>p,.tool-menu>p{color:var(--muted);font-size:12px}.tool-menu .chat-action-menu{margin-top:10px;padding-top:5px;border-top:1px solid var(--line-soft)}.setting-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:center;gap:7px 12px;margin-top:8px}.setting-row>span{display:flex;align-items:center;gap:2px;min-width:0;font-weight:550}.setting-row>:is(input,.parameter-button),.custom-size-inline>input{width:100%;height:40px;min-height:40px;padding:0 9px;border:1px solid var(--line);border-radius:var(--radius-small);color:var(--text);background:var(--surface);font-size:13px;font-weight:550;line-height:1.35}.setting-row>.parameter-button{justify-content:space-between;gap:4px;text-align:left}.setting-row>.parameter-button:is(:hover:not(:disabled),[aria-expanded=true]){border-color:var(--accent-line);background:var(--accent-soft);color:var(--accent-text)}.setting-row>.parameter-button .choice-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.custom-size-inline{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:6px;margin:8px 2px 2px;padding:7px;border-top:1px solid var(--line-soft)}.custom-size-inline>span:first-child{display:flex;align-items:center;grid-column:1 / -1;font-weight:620}.parameter-menu .format-note{margin-top:12px;font-size:11px}.image-settings-reset{margin-top:15px;padding-top:10px;border-top:1px solid var(--line-soft)}.image-settings-reset button{width:100%;min-height:36px;padding:7px;border:1px solid var(--line);border-radius:var(--radius-small);color:var(--text);font-weight:560}.image-settings-reset button:hover{background:var(--surface-soft)}.tool-option{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:36px;font-size:13px}.tool-option label{display:flex;align-items:center;gap:8px;flex:1;cursor:pointer}.tool-option input,.backup-key-option input{width:15px;height:15px;margin:0}.info-popover:has(.help-rows):not(.menu-popover,.info-popover-wide){width:333px}.help-rows{display:table;width:100%;margin:0;border-collapse:collapse}.help-row{display:table-row}.help-row dt,.help-row dd{display:table-cell;vertical-align:top;margin:0;padding:6px 0}.help-row dt{width:1%;padding-right:11px;color:var(--ink);white-space:nowrap;font-weight:600}.help-row+.help-row :is(dt,dd){border-top:1px solid var(--line-soft)}.help-row:first-child :is(dt,dd){padding-top:0}.help-row:last-child :is(dt,dd){padding-bottom:0}.info-popover .help-note{margin:9px 0 0;padding-top:8px;border-top:1px solid var(--line-soft);color:var(--muted)}.help-note+p{margin-top:9px}.info-popover:has(>.model-price-comparison){width:420px}.model-price-table{width:100%;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums}.model-price-table caption{text-align:left;margin-bottom:5px;font-weight:650}.model-price-table th,.model-price-table td{text-align:right;padding:6px 4px;border-bottom:1px solid var(--line-soft);white-space:nowrap;font-weight:500}.model-price-table th:first-child{text-align:left;padding-left:0;white-space:normal}.model-price-table thead th{color:var(--muted)}.model-price-table tbody tr:last-child :is(th,td){border-bottom:0}.info-popover .model-price-source{margin-top:7px}.help-note+.official-examples{margin-top:12px}.example-gallery{display:grid;gap:10px}.example-gallery.columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}.example-gallery.columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}.example-gallery.columns-1{max-width:270px;margin-inline:auto}.example-gallery figure{min-width:0;margin:0}.example-gallery img{display:block;width:100%;height:auto;border-radius:var(--radius-small);background:var(--surface-soft)}.example-gallery figcaption{display:grid;gap:3px;margin-top:5px}.example-gallery strong{font-weight:640}.example-gallery figcaption span,.official-examples :is(.example-caption,.example-note,.example-source){font-size:11px;color:var(--muted)}.official-examples :is(.example-caption,.example-note){margin:9px 0 5px}.example-gallery[data-example-kind=svg] figure:first-child img{background:#293b31}.gallery-pane{padding:clamp(24px,5vh,55px) var(--gutter) 34px;background:radial-gradient(ellipse at 86% 2%,color-mix(in srgb,var(--origin-haze) 25%,transparent),transparent 53%)}.gallery-local-note{display:flex;align-items:center;gap:5px;padding-bottom:2px;color:var(--muted);white-space:nowrap;font-size:12px}.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;margin-bottom:15px}.segmented{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--line);border-radius:var(--pill);background:var(--surface)}.segmented button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:32px;padding:6px 11px;border-radius:var(--pill);color:var(--muted);font-size:12px;white-space:nowrap}.segmented button:hover:not(:disabled){color:var(--accent-text);background:var(--surface-soft)}.segmented button[aria-pressed=true]{color:var(--accent-text);background:var(--accent-soft);box-shadow:inset 0 -1px var(--accent);font-weight:660}.gallery-filters small{min-width:13px;color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums}.gallery-batch-controls{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;margin-left:auto}.gallery-empty{display:grid;justify-items:center;align-content:center;gap:8px;min-height:min(49dvh,410px);padding:26px 15px;border:1px solid var(--line);border-radius:var(--radius-large);text-align:center;background:radial-gradient(circle,color-mix(in srgb,var(--stage-dot) 38%,transparent) .8px,transparent 1px) 0 0 / 17px 17px color-mix(in srgb,var(--stage) 22%,transparent)}.empty-art{position:relative;display:grid;place-items:center;width:127px;height:86px;margin-bottom:14px;border:1px solid var(--accent-line);border-radius:var(--radius);color:var(--accent-text);background:var(--surface);box-shadow:var(--shadow-sm)}.empty-art:before,.empty-art:after{content:"";position:absolute;width:15px;height:15px;border:0 solid var(--accent)}.empty-art:before{top:-1px;left:-1px;border-top-width:1px;border-left-width:1px}.empty-art:after{bottom:-1px;right:-1px;border-bottom-width:1px;border-right-width:1px}.empty-art i{position:absolute;top:7px;right:7px;bottom:7px;left:7px;border:1px solid var(--line-soft)}.empty-art small{position:absolute;right:11px;bottom:10px;color:var(--subtle);font:10px/1 var(--mono)}.gallery-empty h2{margin:0;font:680 20px/1.3 var(--display)}.gallery-empty p{margin:0;color:var(--muted);font-size:13px;line-height:1.65}.gallery-empty .secondary-button{margin-top:8px}.workspace-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,223px),1fr));gap:14px}.gallery-content>.workspace-gallery:has(>:only-child){grid-template-columns:minmax(0,min(100%,470px))}.gallery-card{width:100%;border:1px solid var(--line-soft);border-radius:var(--radius-large);background:var(--surface)}.gallery-card:hover{border-color:var(--accent-line)}.gallery-card .media-surface{aspect-ratio:4 / 3}.gallery-card .chat-image-open,.gallery-card .stored-image-placeholder{width:100%;height:100%}.gallery-card .chat-image-open img{width:100%;height:100%;max-height:none;-o-object-fit:cover;object-fit:cover}.gallery-card .image-footer{min-height:53px;border-top:0}.gallery-card .image-actions .image-edit{width:30px;padding:0}.gallery-card .image-edit span{display:none}.is-pickable .chat-image-open{cursor:pointer}.is-pickable .chat-image-open:disabled{cursor:default;opacity:.42}.is-selected{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}.image-check{position:absolute;right:9px;top:9px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1px solid var(--line);background:var(--glass);color:#fff}.is-selected .image-check{color:var(--primary-text);background:var(--accent);border-color:var(--accent-line)}.gallery-picker{width:900px;height:min(76dvh,720px)}.gallery-picker[open]{display:flex;flex-direction:column}.gallery-picker .dialog-heading{flex:0 0 auto}.picker-pane{padding:4px 3px 10px;background:none}.picker-pane .workspace-gallery{grid-template-columns:repeat(auto-fill,minmax(min(100%,148px),1fr));gap:11px}.picker-pane .image-footer{min-height:43px}.gallery-picker-footer{display:flex;flex:0 0 auto;justify-content:space-between;align-items:center;gap:8px;margin-top:8px;padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.gallery-delete-dialog>p{color:var(--muted)}.gallery-delete-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:18px}dialog{color:var(--ink)}dialog::backdrop{background:var(--backdrop)}.settings-dialog,.gallery-picker,.mask-dialog{width:520px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);overflow:auto;border:1px solid var(--line);padding:21px;border-radius:var(--radius-large);background:var(--surface);box-shadow:var(--shadow-lg)}.gallery-picker{width:900px}.gallery-delete-dialog{width:370px}.rename-dialog{width:390px}.rename-dialog .settings-done{display:block;margin:15px 0 0 auto}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.dialog-heading h2{margin:0;font:700 24px/1.2 var(--display);letter-spacing:-.025em}.dialog-heading p{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.6}.settings-close{width:34px;height:34px;margin:-4px -3px 0 0}.favorites-pane{padding:clamp(24px,5vh,55px) var(--gutter) 34px}.favorites-heading{align-items:center;flex-wrap:wrap;gap:16px}.favorite-search{display:flex;align-items:center;gap:9px;width:min(100%,310px);padding-inline:13px;border:1px solid var(--line);border-radius:var(--pill);color:var(--muted);background:var(--surface)}.favorite-search:focus-within{border-color:var(--focus)}.favorite-search svg{flex:0 0 auto}.favorite-search input{width:100%;min-width:0;height:42px;padding:0;border:0;outline:0;background:transparent;color:var(--ink)}.favorite-picker{width:660px}.favorite-picker[open]{display:flex;flex-direction:column;overflow:hidden}.favorite-picker>.dialog-heading,.favorite-picker>.favorite-search{flex:0 0 auto}.favorite-picker>.favorite-search{width:100%;margin-bottom:12px}.favorite-picker-list{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.favorites-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:12px}.favorite-card{display:flex;flex-direction:column;min-width:0;gap:10px;padding:14px;border:1px solid var(--line-soft);border-radius:var(--radius);background:var(--surface)}.favorite-card h2{margin:0;font-size:16px;line-height:1.4}.favorite-title{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:32px;padding:3px 0;border-radius:var(--radius-small);color:var(--ink);font-weight:680;text-align:left}.favorite-title:hover{color:var(--accent-text);background:var(--surface-soft)}.favorite-title span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.favorite-title svg{flex:0 0 auto;color:var(--muted)}.favorite-summary{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0;color:var(--muted);font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.favorite-images{display:flex;flex-wrap:wrap;gap:6px}.favorite-images .reference-thumbnail{width:72px}.favorite-images .reference-thumbnail :is(img,.stored-image-placeholder){width:70px;height:70px;min-height:70px}.favorite-card-actions{display:flex;align-items:center;gap:8px;margin-top:auto;padding-top:2px}.favorite-card-actions>span{color:var(--muted);font-size:12px}.favorite-card-actions button{min-height:34px;margin-left:auto;font-size:12px}.favorites-empty{display:grid;justify-items:center;gap:8px;padding:clamp(34px,8vh,80px) 16px;border:1px dashed var(--line);border-radius:var(--radius-large);background:var(--surface);text-align:center}.favorites-empty h2{margin:2px 0 0;font-size:17px}.favorites-empty p{margin:0;color:var(--muted)}.favorite-form{display:grid;gap:14px}.favorite-form label{display:grid;gap:5px;font-weight:650}.favorite-form :is(input,textarea){width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:var(--radius-small);color:var(--ink);background:var(--canvas);font-weight:400}.favorite-form textarea{min-height:94px;max-height:45dvh;resize:vertical}.favorite-image-field p{margin:0 0 5px;color:var(--muted);font-size:13px}.favorite-dialog-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.favorite-dialog-actions .favorite-remove{margin-right:auto;color:var(--danger)}.favorite-remove-confirm{margin:0;color:var(--danger)}.favorite-notice{position:fixed;z-index:4;inset:calc(var(--masthead-height) + 8px) var(--frame-pad) auto auto;display:flex;align-items:center;gap:6px;padding:8px 13px;border:1px solid var(--line);border-radius:var(--pill);background:var(--surface);color:var(--ink);box-shadow:var(--shadow-sm);pointer-events:none}@media(max-width:670px){.favorites-pane{padding-top:18px}.favorite-search{width:100%}.favorite-search input,.favorite-form :is(input,textarea){font-size:16px}}.studio-settings{width:535px}.settings-navigation{display:flex;gap:4px;margin-bottom:18px;border-bottom:1px solid var(--line)}.settings-navigation button{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:8px 11px;border-bottom:2px solid transparent;color:var(--muted);font-size:13px}.settings-navigation button:hover{color:var(--accent-text);background:var(--surface-soft)}.settings-navigation button[aria-pressed=true]{border-bottom-color:var(--accent);color:var(--accent-text);font-weight:650}.connection-fields{display:grid;gap:14px}.connection-field{display:grid;gap:5px;min-width:0}.connection-field>:is(label,span){color:var(--ink);font-weight:620;font-size:13px}.connection-field small,.connection-note{color:var(--muted);font-size:11px;line-height:1.55}.key-input{display:flex;align-items:center;border:1px solid var(--line);border-radius:var(--radius-small);padding-right:4px}.key-input input{border:0;background:transparent;outline:0}.key-input:focus-within{border-color:var(--focus);box-shadow:0 0 0 2px var(--accent-soft)}.key-input button{flex:0 0 auto}.connection-note{display:flex;align-items:center;justify-content:space-between;gap:6px}.connection-note button{min-height:23px;padding-block:2px;font-size:11px}.connection-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.settings-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:15px;margin-top:18px;border-top:1px solid var(--line-soft)}.settings-footer>span{color:var(--muted);font-size:12px}.settings-footer button{min-width:86px}.data-backup{padding:13px;border:1px solid var(--line);background:var(--surface-soft);border-radius:var(--radius-small)}.data-backup h3{margin:0 0 6px;font-weight:670;font-size:15px}.backup-scope,.backup-status,.settings-note{margin:0 0 11px;color:var(--muted);font-size:12px;line-height:1.65}.backup-key-option{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-bottom:11px;font-size:12px}.backup-key-option span{margin-left:auto;color:var(--danger)}.backup-buttons{display:flex;gap:7px;flex-wrap:wrap}.backup-buttons button{flex:1;min-height:38px;padding:6px 9px;border:1px solid var(--line);border-radius:var(--radius-small);color:var(--text);background:var(--surface);font-size:12px}.backup-buttons button:hover{border-color:var(--accent-line);color:var(--accent-text)}.backup-confirm{margin-top:12px;padding:10px;border:1px solid var(--warning-line);border-radius:var(--radius-small);color:var(--warning);background:var(--warning-bg);font-size:12px}.backup-confirm p{margin-bottom:7px}.backup-status{margin:10px 0 0}.settings-note{margin:12px 0 7px}.settings-credits{display:flex;flex-wrap:wrap;gap:7px 12px;font-size:11px}.image-dialog{border:1px solid var(--line);padding:0;max-width:calc(100vw - 22px);max-height:calc(100dvh - 22px);border-radius:var(--radius-large);background:var(--surface);color:var(--ink);box-shadow:var(--shadow-lg);overflow:hidden}.image-dialog::backdrop{background:var(--backdrop)}.image-dialog header{display:flex;align-items:center;justify-content:space-between;gap:8px;height:46px;padding:5px 7px 5px 12px;font-size:13px}.image-dialog header span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.image-dialog .close-preview{color:var(--ink)}.image-dialog .close-preview:hover{background:var(--surface-soft)}.image-dialog>img{display:block;min-width:min(160px,100%);max-width:calc(100vw - 24px);max-height:calc(100dvh - 70px);-o-object-fit:contain;object-fit:contain}.mask-dialog{width:920px}.edit-mode{margin-bottom:13px}.mask-toolbar{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;margin-bottom:12px}.mask-toolbar label{display:flex;align-items:center;gap:7px;min-height:34px;color:var(--muted);font-size:12px}.mask-toolbar input{width:102px}.mask-toolbar output{min-width:27px;font:11px/1.5 var(--mono)}.mask-history{display:flex;gap:3px}.mask-history .text-button{font-size:12px}.mask-stage{min-height:120px;display:grid;place-items:center;overflow:hidden;padding:10px;border:1px solid var(--stage-dot);border-radius:var(--radius);background:radial-gradient(circle,var(--stage-dot) 1px,transparent 1px) var(--stage);background-size:13px 13px;color:var(--text);font-size:12px}.mask-picture{position:relative;max-width:100%;line-height:0;touch-action:none;box-shadow:0 9px 22px #1111114d}.mask-picture img{display:block;width:100%;height:auto}.mask-picture canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;cursor:crosshair;touch-action:none}.mask-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px}.mask-footer p{margin:0;max-width:590px;color:var(--muted);font-size:12px;line-height:1.65}.mask-footer button{flex:0 0 auto}@media(max-width:899px){.gallery-pane{padding-top:18px}.gallery-intro{align-items:flex-start;margin-bottom:16px}.gallery-intro p,.gallery-local-note{font-size:12px}.workspace-gallery{grid-template-columns:repeat(auto-fit,minmax(min(100%,154px),1fr));gap:9px}.settings-dialog,.gallery-picker,.mask-dialog{padding:16px}.gallery-picker{height:79dvh}.dialog-heading h2{font-size:22px}.connection-field input,.rename-dialog input,.setting-row>input,.custom-size-inline>input{font-size:16px}.example-gallery.columns-3,.example-gallery.columns-2{display:flex;overflow-x:auto;scroll-snap-type:x mandatory}.example-gallery.columns-3 figure,.example-gallery.columns-2 figure{flex:0 0 78%;scroll-snap-align:start}.mask-stage{padding:6px}}@media(max-width:480px){.gallery-local-note{display:none}.gallery-toolbar{gap:7px}.segmented button{padding-inline:8px}.gallery-batch-start{font-size:12px;padding-inline:8px;gap:5px}.gallery-card .image-footer{padding-inline:6px 3px}.image-actions .icon-button,.image-actions .media-more,.gallery-card .image-actions .image-edit{width:28px}.image-actions{gap:0}.mask-toolbar{justify-content:flex-start}.mask-toolbar label{margin-left:auto}.mask-footer p{font-size:11px}}:root[data-appearance=classic]{--chrome: var(--surface);--glass: var(--surface);--origin-haze: transparent;--radius-small: 8px;--radius: 10px;--radius-large: 15px;--radius-composer: 22px;--pill: 9px}:root[data-appearance=classic][data-theme=light]{--ink: #202123;--canvas: #fff;--surface: #fff;--classic-panel: #f8f8f8;--surface-soft: #f4f4f4;--surface-active: #eaeaea;--line: #dedede;--line-soft: #ededed;--accent: #202123;--accent-strong: #414141;--accent-soft: #ececec;--accent-text: #303030;--accent-line: #bcbcbc;--shadow-sm: 0 3px 18px #00000007;--shadow-lg: 0 12px 34px #0000001a}:root[data-appearance=classic][data-theme=dark]{--classic-panel: #1d1d1d;--shadow-sm: 0 3px 18px #00000022;--shadow-lg: 0 12px 34px #00000080}:root[data-appearance=classic] .studio-masthead:not([data-workspace=chat]){box-shadow:inset 0 -1px var(--line-soft)}:root[data-appearance=classic] .studio-nav{box-shadow:none}:root[data-appearance=classic] .studio-brand img{filter:grayscale(1)}:root[data-appearance=classic][data-theme=dark] .studio-brand img{filter:grayscale(1) invert(1)}:root[data-appearance=classic] .icon-button{border-radius:var(--radius-small)}:root[data-appearance=classic] :is(.session-sidebar,.session-sheet){background:var(--classic-panel)}:root[data-appearance=classic] .session-workbench{background:var(--surface)}:root[data-appearance=classic] .composer-actions .composer-button{border-color:var(--line);background:var(--surface)}:root[data-appearance=classic] .composer-actions .composer-button:is(:hover:not(:disabled),[aria-expanded=true]){background:var(--surface-soft)}:root[data-appearance=classic] .gallery-empty{background:var(--surface)}.classic-home{--home-mat: #f5f5f3;--home-paper: #fbfbfa;--home-trim: #f5f5f4;--home-edge: #deded9;--home-shadow: #29282226;display:flex;flex-direction:column;padding:clamp(20px,5dvh,56px) var(--gutter) clamp(30px,12dvh,116px);background:radial-gradient(ellipse at 50% 22%,var(--surface),transparent 72%),var(--home-mat)}:root[data-theme=dark] .classic-home{--home-mat: #101010;--home-paper: #1d1d1c;--home-trim: #20201f;--home-edge: #373735;--home-shadow: #0009}.classic-home-content{display:grid;flex:0 0 auto;width:min(100%,836px);gap:clamp(20px,3.5dvh,30px);margin:auto;padding:clamp(16px,3vw,37px);border:1px solid var(--home-edge);border-radius:clamp(18px,3vw,26px);background:linear-gradient(155deg,var(--surface) 3%,var(--home-paper) 86%);box-shadow:0 8px 0 -4px var(--home-trim),0 9px 0 -4px var(--home-edge),0 28px 48px -28px var(--home-shadow)}.classic-home-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px clamp(12px,3vw,28px);padding-inline:3px;isolation:isolate}.classic-home-intro h1{margin:0;color:var(--ink);font:670 clamp(29px,4.1vw,52px)/1.14 var(--display);letter-spacing:-.048em}.classic-home-intro p{grid-column:1;margin:0;color:var(--muted);font-size:clamp(12px,1.3vw,14px);line-height:1.7}.classic-home-mark{position:relative;grid-area:1 / 2 / span 2;display:grid;place-items:center;width:clamp(38px,5.7vw,66px);aspect-ratio:4 / 3;margin-inline-end:6px;border:1px solid var(--home-edge);border-radius:9px;background:var(--surface);color:var(--subtle)}.classic-home-mark:before{position:absolute;z-index:-1;top:-1px;right:-1px;bottom:-1px;left:-1px;translate:6px -6px;border:1px solid var(--home-edge);border-radius:inherit;background:var(--home-trim);content:""}.classic-home-mark svg{width:clamp(18px,2.4vw,28px);height:auto}.classic-home-compose{--home-editor-inset: clamp(9px, 1.45vw, 16px);--home-editor-radius: clamp(13px, 2vw, 18px);min-width:0}.classic-home-compose .composer-dock{padding:0}.classic-home-compose .composer-input{padding-inline:var(--home-editor-inset);padding-bottom:10px;border-color:var(--home-edge);border-radius:var(--home-editor-radius);box-shadow:0 5px 12px -10px var(--home-shadow)}.classic-home-compose .composer-input:focus-within{border-color:var(--focus);box-shadow:0 0 0 2px var(--accent-soft)}.classic-home-compose .composer-actions{margin:0 calc(-1 * var(--home-editor-inset)) -10px;padding:8px var(--home-editor-inset) 9px;border-end-start-radius:calc(var(--home-editor-radius) - 1px);border-end-end-radius:calc(var(--home-editor-radius) - 1px);background:var(--home-trim)}.classic-home-compose .composer-caption{padding-top:8px}.classic-home-compose .image-quick-settings{display:none}@media(min-width:821px){.classic-home-compose .composer-input textarea{min-height:clamp(70px,11.5dvh,106px);max-height:min(176px,30dvh);padding:7px 5px 12px}}
