/* The local integration uses the same workbench tokens as the native creation pages. */
html[data-theme="light"] body{--bg:#f6f7f9;--panel:#fff;--subtle:#f0f2f6;--text:#20252c;--muted:#737d8b;--border:#dfe3e8;--accent:#5368ba;--accent-dark:#4258a9;--accent-soft:#edf0ff;--button:#5368ba;--button-hover:#4258a9;--input:#fff;--shell:#fff;--primary-ink:#fff;color-scheme:light}
html[data-theme="dark"] body{--bg:#111518;--panel:#1a2126;--subtle:#252e35;--text:#edf0f4;--muted:#9da8b4;--border:#303b43;--accent:#b9c3ff;--accent-dark:#cbd2ff;--accent-soft:#2b3348;--button:#b9c3ff;--button-hover:#cbd2ff;--input:#151a1e;--shell:#151a1e;--primary-ink:#1b2235;color-scheme:dark}
body{font-family:"PingFang SC","Microsoft YaHei",sans-serif;font-size:13px;letter-spacing:0;background:var(--bg);color:var(--text)}
body button,body input,body textarea,body select{font-family:inherit;letter-spacing:0}
body .rail.workspace-rail{width:184px;height:100dvh;padding:24px 12px 16px;background:var(--shell);border-right:1px solid var(--border);box-shadow:none;overflow-y:auto;overflow-x:hidden}
body .rail.workspace-rail .brand-mark{height:auto;min-height:42px;padding:0 8px 28px;gap:0;background:none;border:0;box-shadow:none;font-size:21px;font-weight:700;color:var(--text)}
body .rail.workspace-rail .brand-home{display:none}
body .rail.workspace-rail .rail-wordmark{font:inherit;letter-spacing:0}
body .rail.workspace-rail .rail-wordmark small{display:block;margin-top:3px;font-size:10px;font-weight:400;letter-spacing:0;color:var(--muted)}
body .rail.workspace-rail nav{flex:0 0 auto;gap:0;margin:0;overflow:visible}
body .rail.workspace-rail .rail-item{position:relative;height:44px;min-height:44px;margin:3px 0;padding:10px 14px;gap:12px;border:0;border-radius:6px;background:transparent;box-shadow:none;color:var(--muted);font-size:13px;font-weight:400}
body .rail.workspace-rail .rail-item svg{width:18px;height:18px}
body .rail.workspace-rail .rail-item:hover{background:var(--subtle);color:var(--text)}
body .rail.workspace-rail .rail-item.active{background:var(--accent-soft);color:var(--accent);font-weight:600}
body .rail.workspace-rail .rail-item.active:before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:2px;background:var(--accent)}
body .rail.workspace-rail .rail-bottom{margin-top:auto;padding-top:28px;gap:0}
body .rail.workspace-rail ~ .app-shell{margin-left:184px;padding-bottom:0;min-width:0}
body .topbar{height:64px;min-height:64px;padding:0 24px;border-bottom:1px solid var(--border);background:var(--shell);box-shadow:none;backdrop-filter:none}
body .brand-name,body .desktop-breadcrumb{font-size:12px;font-weight:400;color:var(--muted)}
body .topbar-actions{gap:12px;min-width:0}
body .connection{font-size:11px;color:var(--muted)}
body .wallet-button,body .account-button{border:1px solid var(--border);border-radius:5px;background:transparent;color:var(--text);box-shadow:none;min-height:36px;font-size:12px}
body .recharge-button{min-height:36px;border:1px solid transparent;border-radius:5px;background:#bdc8ff;color:#202a44;font-size:12px;box-shadow:none}
body main{padding:28px 40px 40px;max-width:none}
body .page-heading{margin-bottom:18px}
body h1,body .page-heading h1{font-size:24px;line-height:1.4;font-weight:650;letter-spacing:0;color:var(--text);text-shadow:none}
body .composer{border:1px solid var(--border);border-radius:6px;background:var(--panel);box-shadow:none}
body .composer-top,body .composer-toolbar,body .composer-body{background:transparent;box-shadow:none}
body .composer-toolbar{border-top:1px solid var(--border);padding:12px 16px;gap:8px}
body textarea,body .prompt-area textarea,body .composer textarea{background:var(--input);border:1px solid var(--border);border-radius:5px;color:var(--text);box-shadow:none;font-size:13px;line-height:1.8}
body textarea::placeholder{color:var(--muted);opacity:1}
body .parameter-trigger,body .param-control,body .segmented,body .secondary-button,body .icon-button,body .text-button{background:var(--panel);border-color:var(--border);border-radius:5px;color:var(--text);box-shadow:none;font-size:12px}
body .segmented{padding:3px;background:var(--input)}
body .segmented button{border-radius:3px;box-shadow:none;color:var(--muted)}
body .segmented button.active{background:var(--subtle);color:var(--text);box-shadow:none}
body .parameter-trigger{min-height:38px;background:var(--input)}
body .parameter-menu{border:1px solid var(--border);border-radius:6px;background:var(--panel);box-shadow:0 8px 24px #0002}
body .parameter-option:hover,body .parameter-option[aria-selected="true"]{background:var(--accent-soft);color:var(--accent)}
body .primary-button,body .generate-button,body button[type="submit"].primary-button{border:1px solid transparent;border-radius:5px;background:var(--button);color:var(--primary-ink);box-shadow:none;font-size:13px;font-weight:600}
body .primary-button:hover,body .generate-button:hover{background:var(--button-hover);box-shadow:none}
body .task-card,body .recent-card,body .asset-card,body .media-card{border-radius:6px;box-shadow:none;border-color:var(--border);background:var(--panel)}
body .section-heading h2,body .section-head h2{font-size:17px;font-weight:600}
body .top-frozen{color:var(--muted)}
body .stage-art{pointer-events:none}
html[data-theme] body .rail.workspace-rail{background:var(--shell);box-shadow:none}
html[data-theme] body .rail.workspace-rail .rail-item.active{background:var(--accent-soft);color:var(--accent)}
html[data-theme] body .composer{background:var(--panel);border-color:var(--border);box-shadow:none}
html[data-theme] body :is(.composer-top,.composer-toolbar,.composer-body,.segmented button,.setting-select,.parameter-trigger,.account-button,.wallet-button,.recharge-button){box-shadow:none}
html[data-theme] body :is(.prompt-area textarea,.composer textarea){background:var(--input);color:var(--text);border-color:var(--border);box-shadow:none}
html[data-theme] body .primary-button,html[data-theme] body .generate-button{background:var(--button);color:var(--primary-ink);box-shadow:none}
html[data-theme] body .parameter-menu{background:var(--panel);border-color:var(--border)}
html[data-theme="light"] .stage-art{opacity:.18}
html[data-theme="dark"] .stage-art{opacity:.55}
body :is(button,a,input,textarea,select):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:640px){html[data-theme] body .composer-top{flex-wrap:wrap;gap:8px}html[data-theme] body .composer-top .segmented{flex-shrink:0}html[data-theme] body .composer-top .segmented button{white-space:nowrap}html[data-theme] body .composer-state{margin-left:auto;white-space:nowrap}html[data-theme] body .composer textarea{min-height:210px;height:210px}}
@media(max-width:1000px){body .rail.workspace-rail{width:72px;padding:18px 8px}body .rail.workspace-rail .brand-mark{padding:0 8px 20px;justify-content:center}body .rail.workspace-rail .brand-home{display:block;width:36px;height:36px;padding:8px}body .rail.workspace-rail .rail-wordmark,body .rail.workspace-rail .rail-item span{display:none}body .rail.workspace-rail .rail-item{justify-content:center;padding:12px}body .rail.workspace-rail ~ .app-shell{margin-left:72px}body .topbar{padding:0 16px}body main{padding:24px}body .connection{display:none}}
@media(max-width:640px){body .rail.workspace-rail{inset:0 auto 0 0;flex-direction:column;width:56px;height:100dvh;padding:14px 4px;border-top:0;border-right:1px solid var(--border)}body .rail.workspace-rail .brand-mark{display:flex;padding:0 4px 16px}body .rail.workspace-rail nav,body .rail.workspace-rail .rail-bottom{display:flex;flex-direction:column;width:100%;gap:0;overflow:visible}body .rail.workspace-rail .rail-bottom{margin-top:auto;padding-top:28px}body .rail.workspace-rail .rail-item{flex:none;width:100%;height:42px;min-height:42px;padding:10px;gap:0}body .rail.workspace-rail .rail-item span{display:none}body .rail.workspace-rail .rail-item.active:before{display:block}body .rail.workspace-rail ~ .app-shell{margin-left:56px;padding-bottom:0}body .topbar{height:56px;min-height:56px;padding:0 10px;gap:8px}body .topbar-actions{gap:8px}body .wallet-button span,body .top-frozen,body .account-button span,body .connection{display:none}body .wallet-button,body .account-button{min-width:32px;padding:7px}body .recharge-button{padding:6px 9px}body main{padding:20px 16px}body h1,body .page-heading h1{font-size:22px}body .composer-toolbar{padding:12px;flex-wrap:wrap}body .composer-toolbar>*{min-width:0}body .generate-button{max-width:100%}}
