:root{color-scheme:dark;--bg: #05070b;--bg-soft: #090f16;--panel: rgba(10, 18, 27, .82);--panel-2: rgba(13, 26, 38, .72);--line: rgba(122, 239, 255, .18);--line-strong: rgba(122, 239, 255, .34);--text: #f3fbff;--muted: rgba(216, 231, 242, .66);--faint: rgba(216, 231, 242, .42);--cyan: #68e9ff;--green: #77ffb7;--amber: #ffd166;--red: #ff6b87;--blue: #7aa2ff;--shadow: 0 6px 8px rgba(0, 0, 0, .24);--radius: 8px}*{box-sizing:border-box}html,body{min-height:100%}body{margin:0;min-height:100vh;font-family:Microsoft YaHei,PingFang SC,Segoe UI,Arial,sans-serif;color:var(--text);background:#05070b;overflow-x:hidden}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{border:0;cursor:pointer}.app{min-height:100vh;display:grid;grid-template-columns:268px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;padding:22px 16px;border-right:1px solid var(--line);background:#080f17f5;backdrop-filter:blur(18px);display:flex;flex-direction:column;gap:18px}.brand{display:flex;align-items:center;gap:12px;padding:4px 6px 14px;border-bottom:1px solid rgba(122,239,255,.14)}.brand img{width:42px;height:42px;border-radius:8px;object-fit:cover;box-shadow:0 0 24px #68e9ff38}.brand strong{display:block;font-size:18px;letter-spacing:0}.brand span{display:block;margin-top:3px;color:var(--muted);font-size:12px}.nav{display:grid;gap:7px}.nav button,.quick-link{width:100%;min-height:44px;border-radius:var(--radius);display:flex;align-items:center;gap:10px;padding:0 12px;color:var(--muted);background:transparent;border:1px solid transparent;text-align:left;transition:.2s ease}.nav button:hover,.quick-link:hover,.nav button.active{color:var(--text);background:#68e9ff14;border-color:#68e9ff33}.nav button.active{border-color:var(--line-strong)}.nav-icon{width:24px;height:24px;border-radius:7px;display:grid;place-items:center;color:var(--cyan);background:#68e9ff14;border:1px solid rgba(104,233,255,.16);flex:0 0 auto;font-size:13px}.side-bottom{margin-top:auto;display:grid;gap:10px}.side-status{border:1px solid var(--line);border-radius:var(--radius);background:#081018a3;padding:12px;display:grid;gap:8px;color:var(--muted);font-size:12px;line-height:1.45}.status-row{display:flex;justify-content:space-between;gap:10px}.dot{width:8px;height:8px;border-radius:99px;background:var(--faint);display:inline-block;box-shadow:0 0 12px currentColor}.dot.ok{background:var(--green);color:var(--green)}.dot.warn{background:var(--amber);color:var(--amber)}.dot.bad{background:var(--red);color:var(--red)}.main{min-width:0;min-height:100vh;padding:24px}.topbar{min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1180px;margin:0 auto 18px}.title h1{margin:0;font-size:25px;font-weight:700;letter-spacing:0}.title p{margin:6px 0 0;color:var(--muted);font-size:13px}.top-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.pill{min-height:34px;border:1px solid var(--line);border-radius:999px;padding:0 12px;display:inline-flex;align-items:center;gap:8px;color:var(--muted);background:#0810189e;font-size:12px;white-space:nowrap}.btn{min-height:38px;border-radius:var(--radius);padding:0 14px;color:var(--text);background:#68e9ff17;border:1px solid rgba(104,233,255,.22);display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.2s ease;white-space:nowrap}.btn:hover{border-color:#68e9ff80;box-shadow:0 0 26px #68e9ff21}.btn.primary{color:#031013;background:var(--cyan);border-color:transparent;font-weight:700}.btn.danger{background:#ff6b8717;border-color:#ff6b8747;color:#ffdbe2}.btn:disabled{opacity:.48;cursor:not-allowed;box-shadow:none}.view{display:none;max-width:1180px;margin:0 auto}.view.active{display:block}.panel{border:1px solid var(--line);border-radius:var(--radius);background:#0a121bf0;box-shadow:var(--shadow)}.panel-head{padding:18px 20px;border-bottom:1px solid rgba(122,239,255,.12);display:flex;align-items:center;justify-content:space-between;gap:14px}.panel-head h2{margin:0;font-size:18px;letter-spacing:0}.panel-head p{margin:5px 0 0;color:var(--muted);font-size:13px}.panel-body{padding:20px}.view>.panel{height:calc(100vh - 92px);min-height:560px;max-height:calc(100vh - 92px);overflow:hidden}.view>.panel:not(.chat-shell){display:grid;grid-template-rows:auto minmax(0,1fr)}#authGate>.panel{grid-template-rows:minmax(0,1fr)}.view>.panel>.panel-body{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.create-view .panel-body,#chatView .panel-body{overflow:hidden}.grid{display:grid;gap:16px}.grid.two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.section{border:1px solid rgba(122,239,255,.14);border-radius:var(--radius);background:#040a0f75;padding:16px;min-width:0}.section h3{margin:0 0 10px;font-size:15px;letter-spacing:0}.section p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}.field{display:grid;gap:7px;margin-bottom:12px}label{color:var(--muted);font-size:12px}.required-mark,.optional-mark{margin-left:4px;font-size:11px;font-weight:600}.required-mark{color:var(--red)}.optional-mark{color:var(--muted);font-weight:400}input[aria-invalid=true],select[aria-invalid=true],textarea[aria-invalid=true],.reference-drop[aria-invalid=true]{border-color:var(--red);box-shadow:0 0 0 2px color-mix(in srgb,var(--red) 16%,transparent)}.field-validation{margin:0 0 10px;color:var(--red);font-size:12px;font-weight:600;line-height:1.5}input,select,textarea{width:100%;min-height:40px;border:1px solid rgba(122,239,255,.18);border-radius:var(--radius);color:var(--text);background:#02080cb8;outline:none;padding:9px 11px}textarea{min-height:112px;resize:vertical;line-height:1.55}input:focus,select:focus,textarea:focus{border-color:#68e9ff94;box-shadow:0 0 0 3px #68e9ff14}.helper{color:var(--faint);font-size:12px;line-height:1.5}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.metric{border:1px solid rgba(122,239,255,.14);border-radius:var(--radius);background:#060d1499;padding:14px;min-height:86px}.metric span{display:block;color:var(--muted);font-size:12px}.metric strong{display:block;margin-top:8px;font-size:21px;letter-spacing:0;word-break:break-word}.token-list,.model-cloud,.history-list{display:grid;align-content:start;gap:8px;max-height:clamp(220px,32vh,360px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:4px}.list-item{border:1px solid rgba(122,239,255,.13);border-radius:var(--radius);background:#050c1294;padding:11px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.list-item strong{display:block;font-size:13px;word-break:break-word}.list-item span{display:block;color:var(--faint);font-size:12px;margin-top:3px;word-break:break-word}.tag-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tag{min-height:26px;border-radius:999px;padding:5px 9px;border:1px solid rgba(122,239,255,.16);background:#68e9ff0f;color:var(--muted);font-size:12px;display:inline-flex;align-items:center;gap:6px}.tag.green{color:#c9ffe4;border-color:#77ffb738;background:#77ffb714}.tag.amber{color:#ffe8a6;border-color:#ffd1663d;background:#ffd16614}.auth-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(320px,.7fr);gap:18px;align-items:stretch}.auth-copy{min-height:0;padding:26px;border-radius:var(--radius);border:1px solid rgba(122,239,255,.16);background:#0a1622e0;position:relative;overflow:hidden}.auth-copy h2{margin:0 0 12px;font-size:28px;letter-spacing:0}.auth-copy p{max-width:560px;color:var(--muted);line-height:1.75}.auth-steps{display:grid;gap:10px;margin-top:28px;max-width:560px}.auth-step{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;align-items:start;color:var(--muted);font-size:13px}.auth-step b{height:28px;border-radius:8px;display:grid;place-items:center;color:#041011;background:var(--cyan);font-size:12px}.chat-shell{height:calc(100vh - 92px);min-height:620px;display:grid;grid-template-columns:276px minmax(0,1fr);overflow:hidden}.chat-list{min-width:0;border-right:1px solid rgba(122,239,255,.12);background:#03090e6b;padding:14px;display:grid;grid-template-rows:auto minmax(0,1fr);gap:12px}.chat-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.chat-list-head h3{margin:0;font-size:15px}.chat-list-head .btn{min-height:32px;padding:0 10px}.chat-session-list{display:grid;align-content:start;gap:8px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.chat-session{width:100%;border:1px solid rgba(122,239,255,.14);border-radius:var(--radius);background:#08121a9e;color:var(--muted);min-height:64px;padding:10px;text-align:left}.chat-session.active{color:var(--text);border-color:#68e9ff57;background:#68e9ff14}.chat-session strong,.chat-session span{display:block}.chat-session span{margin-top:5px;color:var(--faint);font-size:12px}.chat-window{min-width:0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}.chat-toolbar,.composer,.create-toolbar{padding:14px 16px;border-bottom:1px solid rgba(122,239,255,.12);display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,220px) auto;gap:12px;align-items:end}.composer{border-top:1px solid rgba(122,239,255,.12);border-bottom:0;grid-template-columns:minmax(0,1fr) auto;align-items:stretch}.messages{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:18px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}.message{max-width:min(520px,68%);width:fit-content;align-self:flex-start;border:0;background:transparent;padding:0;line-height:1.48}.message.user{align-self:flex-end;border-color:transparent;background:transparent}.message-meta{display:block;color:var(--faint);margin:0 4px 3px;font-size:10.5px;line-height:1.25}.message-bubble{width:fit-content;max-width:100%;border:1px solid rgba(122,239,255,.12);border-radius:8px;background:#050c129e;padding:6px 9px;line-height:1.42;white-space:pre-wrap;word-break:break-word}.message.user .message-bubble{border-color:#77ffb72e;background:#77ffb714}.message-actions{display:flex;gap:6px;margin:3px 4px 0}.message-action{border:0;padding:2px 0;color:var(--faint);background:transparent;font-size:11px;cursor:pointer}.message-action:hover,.message-action:focus-visible{color:var(--text);text-decoration:underline}.empty-state{min-height:220px;display:grid;place-items:center;color:var(--muted);text-align:center;line-height:1.7;padding:28px}.segmented{display:inline-grid;grid-template-columns:repeat(2,minmax(96px,1fr));border:1px solid rgba(122,239,255,.18);border-radius:var(--radius);background:#02080cb3;padding:4px;gap:4px}.segmented button{min-height:32px;border-radius:6px;color:var(--muted);background:transparent}.segmented button.active{color:#041011;background:var(--cyan);font-weight:700}.create-layout{display:grid;grid-template-columns:minmax(320px,430px) minmax(0,1fr);gap:16px}.result-box{min-height:460px;border:1px solid rgba(122,239,255,.14);border-radius:var(--radius);background:#03090e8a;display:grid;place-items:center;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:14px}.result-box img,.result-box video{max-width:100%;max-height:68vh;border-radius:var(--radius);object-fit:contain;border:1px solid rgba(122,239,255,.18);background:#000}.raw-output{width:100%;max-height:520px;overflow:auto;color:var(--muted);font-size:12px;white-space:pre-wrap;word-break:break-word;line-height:1.55;padding:10px}.toast{position:fixed;right:18px;top:18px;bottom:auto;z-index:30;width:min(420px,calc(100vw - 36px));display:grid;gap:8px}.toast-item{border:1px solid rgba(122,239,255,.2);border-radius:var(--radius);background:#050c12f0;box-shadow:var(--shadow);padding:12px 14px;color:var(--muted);line-height:1.5;animation:toastIn .18s ease both}.toast-item strong{display:block;color:var(--text);margin-bottom:3px}.toast-item.error{border-color:#ff6b8752}.toast-item.ok{border-color:#77ffb752}@keyframes toastIn{0%{transform:translateY(10px);opacity:0}to{transform:translateY(0);opacity:1}}.mobile-tabs{display:none}.hidden{display:none!important}@media(max-width:980px){.app{grid-template-columns:1fr}.sidebar{display:none}.main{padding:14px 14px 86px}.mobile-tabs{position:fixed;left:10px;right:10px;bottom:10px;z-index:20;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;border:1px solid var(--line);border-radius:var(--radius);background:#050c12eb;backdrop-filter:blur(16px);padding:6px}.mobile-tabs button{min-height:42px;border-radius:6px;color:var(--muted);background:transparent}.mobile-tabs button.active{color:#041011;background:var(--cyan);font-weight:700}.topbar,.panel-head,.auth-layout,.grid.two,.grid.three,.metrics,.create-layout,.chat-toolbar,.create-toolbar{grid-template-columns:1fr}.topbar,.panel-head{align-items:flex-start;flex-direction:column}.top-actions{justify-content:flex-start}.chat-shell{grid-template-columns:1fr;min-height:600px;height:auto}.chat-list{display:none}.composer{grid-template-columns:1fr}}:root{--bg: #000;--bg-soft: #050505;--panel: #080808;--panel-2: #0d0d0b;--line: rgba(210, 220, 188, .18);--line-strong: rgba(194, 232, 125, .42);--text: #f6f4e8;--muted: rgba(246, 244, 232, .68);--faint: rgba(246, 244, 232, .42);--cyan: #c3ef70;--green: #7fdc82;--amber: #f1d36b;--red: #f06f78;--blue: #b7d86a;--shadow: 0 18px 46px rgba(0, 0, 0, .62);--radius: 6px}html,body{background:#000!important}body{font-size:13px;background:#000!important}body:before,body:after{display:none}.app{grid-template-columns:224px minmax(0,1fr);background:#000}.sidebar{padding:14px 10px;gap:10px;background:#050505;border-right-color:#d2dcbc29;backdrop-filter:none}.brand{gap:9px;padding:0 4px 10px;border-bottom-color:#d2dcbc24}.brand img{width:32px;height:32px;box-shadow:none;background:#f6f4e8}.brand strong{font-size:15px;font-weight:800}.brand span{margin-top:1px;font-size:11px}.nav button,.quick-link{min-height:34px;gap:8px;padding:0 9px;color:var(--muted);border-radius:6px}.nav button:hover,.quick-link:hover,.nav button.active{color:var(--text);background:#c3ef701a;border-color:#c3ef7038}.nav button.active{box-shadow:inset 2px 0 0 var(--cyan)}.nav-icon{width:22px;height:22px;border-radius:5px;color:#0a0a08;background:#c3ef70;border:0;font-size:11px;font-weight:800}.side-status{padding:9px;gap:6px;background:#080808;border-color:#d2dcbc29;line-height:1.35}.main{padding:14px;background:#000}.topbar{min-height:46px;max-width:1320px;margin:0 auto 10px;gap:10px}.title h1{font-size:20px;font-weight:800}.title p{margin-top:2px;font-size:12px;line-height:1.35}.top-actions{gap:7px}.pill{min-height:28px;padding:0 9px;background:#070707;border-color:#d2dcbc29}.btn{min-height:32px;padding:0 10px;border-radius:6px;background:#0a0a0a;border-color:#d2dcbc2e;box-shadow:none}.btn:hover{border-color:#c3ef707a;box-shadow:none;background:#10100d}.btn.primary{color:#080907;background:#c3ef70;border-color:#c3ef70;font-weight:800}.btn.danger{background:#f06f781a;border-color:#f06f7852;color:#ffd7da}.view{max-width:1320px}.panel{background:#070707;border-color:#d2dcbc29;box-shadow:var(--shadow)}.panel-head{padding:12px 14px;gap:10px;border-bottom-color:#d2dcbc1f}.panel-head h2{font-size:15px;font-weight:800}.panel-head p{margin-top:2px;font-size:12px;line-height:1.35}.panel-body{padding:12px}.grid{gap:10px}.section{padding:10px;background:#0a0a0a;border-color:#d2dcbc24}.section h3{margin-bottom:7px;font-size:13px}.section p{font-size:12px;line-height:1.45}.field{gap:5px;margin-bottom:9px}label{font-size:11px}input,select,textarea{min-height:33px;padding:7px 9px;border-radius:6px;background:#020202;border-color:#d2dcbc2e}textarea{min-height:86px;line-height:1.45}input:focus,select:focus,textarea:focus{border-color:#c3ef7094;box-shadow:0 0 0 2px #c3ef701f}.helper{font-size:11px;line-height:1.35}.metrics{gap:8px}.metric{min-height:66px;padding:10px;background:#0a0a0a;border-color:#d2dcbc24}.metric strong{margin-top:5px;font-size:18px}.token-list,.model-cloud,.history-list{gap:6px;max-height:clamp(220px,32vh,360px)}.list-item{padding:8px 9px;gap:9px;background:#0a0a0a;border-color:#d2dcbc21}.list-item strong{font-size:12px}.list-item span{margin-top:2px;font-size:11px}.tag-row{gap:5px}.tag{min-height:22px;padding:3px 7px;border-radius:5px;font-size:11px;background:#c3ef7014;border-color:#c3ef702e}.action-strip{margin-bottom:9px;padding-bottom:9px;border-bottom:1px solid rgba(210,220,188,.1)}.group-choice{cursor:pointer}.group-choice.active{color:#080907;background:#c3ef70;border-color:#c3ef70;font-weight:800}.auth-layout{grid-template-columns:minmax(0,1fr) minmax(300px,390px);gap:10px}.auth-copy{min-height:280px;padding:18px;background:#090909;border-color:#d2dcbc29}.auth-copy:after{display:none}.auth-copy h2{margin-bottom:8px;font-size:22px}.auth-copy p{line-height:1.5}.auth-steps{gap:8px;margin-top:18px}.auth-step{grid-template-columns:24px minmax(0,1fr);gap:8px;font-size:12px}.auth-step b{height:24px;border-radius:5px;color:#080907;background:#c3ef70}.chat-shell{height:calc(100vh - 92px);min-height:560px;grid-template-columns:236px minmax(0,1fr)}.chat-list{padding:10px;gap:8px;background:#050505;border-right-color:#d2dcbc1f}.chat-list-head h3{font-size:13px}.chat-list-head .btn{min-height:28px;padding:0 8px}.chat-session-list{gap:6px}.chat-session{min-height:52px;padding:8px;background:#0a0a0a;border-color:#d2dcbc24}.chat-session.active{border-color:#c3ef7061;background:#c3ef7014}.chat-session span{margin-top:3px;font-size:11px}.chat-toolbar,.composer,.create-toolbar{padding:9px 10px;grid-template-columns:minmax(180px,1fr) minmax(150px,210px) auto;gap:8px;border-color:#d2dcbc1f}.messages{padding:10px;gap:8px}.message{max-width:min(520px,68%);padding:0;line-height:1.48;background:transparent;border-color:transparent}.message.user{background:transparent;border-color:transparent}.message-meta{margin-bottom:3px;font-size:10px}.message-bubble{padding:5px 8px;line-height:1.38;background:#0b0b0b;border-color:#d2dcbc21}.message.user .message-bubble{background:#c3ef7014;border-color:#c3ef7033}.empty-state{min-height:160px;padding:18px;line-height:1.45}.segmented{padding:3px;gap:3px;border-radius:6px;background:#030303;border-color:#d2dcbc2e}.segmented button{min-height:28px;border-radius:4px}.segmented button.active{color:#080907;background:#c3ef70}.create-layout{grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:10px}.result-box{min-height:390px;padding:10px;background:#030303;border-color:#d2dcbc24}.raw-output{max-height:480px;padding:8px;font-size:11px;line-height:1.45}.toast{right:12px;top:12px;bottom:auto;gap:6px}.toast-item{padding:9px 10px;background:#080808;border-color:#d2dcbc2e;line-height:1.4}body[data-theme=console]{--ui-bg: #111318;--ui-sidebar-bg: #171a20;--ui-surface: #1b1f27;--ui-surface-2: #202634;--ui-text: #eef2f7;--ui-muted: rgba(238, 242, 247, .7);--ui-faint: rgba(238, 242, 247, .46);--ui-line: rgba(220, 224, 232, .12);--ui-accent: #c3ef70;--ui-accent-contrast: #111318;--ui-button-bg: #222833;--ui-button-text: #eef2f7;--ui-input-bg: #1b1f27;--ui-pill-bg: #1b1f27;--ui-tag-bg: rgba(195, 239, 112, .1);--ui-scroll-track: #171a20;--ui-scroll-thumb: #55623c;--ui-shadow: 0 18px 48px rgba(0, 0, 0, .34);--text: #eef2f7;--muted: rgba(238, 242, 247, .7);--faint: rgba(238, 242, 247, .46);--line: rgba(220, 224, 232, .12);--cyan: #c3ef70;background:#111318!important}body[data-theme=console] .app,body[data-theme=console] .main{background:#111318}body[data-theme=console] .sidebar{background:#171a20;border-right-color:#dce0e81a}body[data-theme=console] .panel,body[data-theme=console] .section,body[data-theme=console] .metric,body[data-theme=console] .list-item,body[data-theme=console] .chat-session,body[data-theme=console] .message,body[data-theme=console] .result-box,body[data-theme=console] .side-status,body[data-theme=console] .pill,body[data-theme=console] input,body[data-theme=console] select,body[data-theme=console] textarea{background-color:#1b1f27;border-color:#dce0e81f}body[data-theme=console] .panel{box-shadow:0 18px 48px #00000057}body[data-theme=console] .btn{background:#222833;border-color:#dce0e824}body[data-theme=console] .btn.primary,body[data-theme=console] .segmented button.active,body[data-theme=console] .mobile-tabs button.active,body[data-theme=console] .group-choice.active{color:#111318;background:#c3ef70;border-color:#c3ef70}body[data-theme=deep]{--ui-bg: #000;--ui-sidebar-bg: #050505;--ui-surface: #0a0a0a;--ui-surface-2: #101010;--ui-text: #f6f4e8;--ui-muted: rgba(246, 244, 232, .68);--ui-faint: rgba(246, 244, 232, .42);--ui-line: rgba(210, 220, 188, .18);--ui-accent: #c3ef70;--ui-accent-contrast: #080907;--ui-button-bg: #111111;--ui-button-text: #f6f4e8;--ui-input-bg: #020202;--ui-pill-bg: #070707;--ui-tag-bg: rgba(195, 239, 112, .08);--ui-scroll-track: #050505;--ui-scroll-thumb: #46552d;--ui-shadow: 0 18px 46px rgba(0, 0, 0, .62);--text: #f6f4e8;--muted: rgba(246, 244, 232, .68);--faint: rgba(246, 244, 232, .42);--line: rgba(210, 220, 188, .18);--cyan: #c3ef70;background:#000!important}body[data-theme=eye]{--ui-bg: #edf7e9;--ui-sidebar-bg: #f5faef;--ui-surface: #fbfff6;--ui-surface-2: #eef8e7;--ui-text: #263321;--ui-muted: rgba(38, 51, 33, .72);--ui-faint: rgba(38, 51, 33, .48);--ui-line: rgba(92, 132, 71, .2);--ui-accent: #5f8f3d;--ui-accent-contrast: #fffaf0;--ui-button-bg: #e3f0d9;--ui-button-text: #263321;--ui-input-bg: #fffffb;--ui-pill-bg: #f1f8eb;--ui-tag-bg: rgba(95, 143, 61, .1);--ui-scroll-track: #edf7e9;--ui-scroll-thumb: #9fbe8c;--ui-shadow: 0 10px 26px rgba(78, 112, 58, .12);--text: #263321;--muted: rgba(38, 51, 33, .72);--faint: rgba(38, 51, 33, .48);--line: rgba(92, 132, 71, .2);--cyan: #5f8f3d;color:#263321;background:#edf7e9!important}body[data-theme=eye] .app,body[data-theme=eye] .main{background:#edf7e9}body[data-theme=eye] .sidebar,body[data-theme=eye] .panel,body[data-theme=eye] .section,body[data-theme=eye] .metric,body[data-theme=eye] .list-item,body[data-theme=eye] .chat-session,body[data-theme=eye] .message,body[data-theme=eye] .result-box,body[data-theme=eye] .side-status,body[data-theme=eye] .pill,body[data-theme=eye] input,body[data-theme=eye] select,body[data-theme=eye] textarea{color:#263321;background-color:#fbfff6;border-color:#5c844733}body[data-theme=eye] .btn{color:#263321;background:#e3f0d9;border-color:#5c844738}body[data-theme=beige]{--ui-bg: #e8e0cf;--ui-sidebar-bg: #f2eadb;--ui-surface: #f4eedf;--ui-surface-2: #efe5d4;--ui-text: #2b2a24;--ui-muted: rgba(43, 42, 36, .72);--ui-faint: rgba(43, 42, 36, .48);--ui-line: rgba(71, 67, 52, .16);--ui-accent: #587a2c;--ui-accent-contrast: #fffaf0;--ui-button-bg: #ebe2cf;--ui-button-text: #2b2a24;--ui-input-bg: #fbf7ee;--ui-pill-bg: #f4eedf;--ui-tag-bg: rgba(88, 122, 44, .08);--ui-scroll-track: #eee5d6;--ui-scroll-thumb: #c8b99d;--ui-shadow: 0 10px 26px rgba(71, 67, 52, .1);--text: #2b2a24;--muted: rgba(43, 42, 36, .68);--faint: rgba(43, 42, 36, .48);--line: rgba(71, 67, 52, .16);--cyan: #5f7f34;color:#2b2a24;background:#e8e0cf!important}body[data-theme=beige] .app,body[data-theme=beige] .main{background:#e8e0cf}body[data-theme=beige] .sidebar,body[data-theme=beige] .panel,body[data-theme=beige] .section,body[data-theme=beige] .metric,body[data-theme=beige] .list-item,body[data-theme=beige] .chat-session,body[data-theme=beige] .message,body[data-theme=beige] .result-box,body[data-theme=beige] .side-status,body[data-theme=beige] .pill,body[data-theme=beige] input,body[data-theme=beige] select,body[data-theme=beige] textarea{color:#2b2a24;background-color:#f4eedf;border-color:#47433429}body[data-theme=beige] .btn{color:#2b2a24;background:#ebe2cf;border-color:#4743342e}body[data-theme=beige] .theme-picker{background:#ffffff57;border-color:#4743341f}body[data-theme=beige] .theme-picker select{color:#2b2a24}body[data-theme=beige] .btn.primary,body[data-theme=beige] .segmented button.active,body[data-theme=beige] .mobile-tabs button.active,body[data-theme=beige] .group-choice.active{color:#fffaf0;background:#587a2c;border-color:#587a2c}body[data-theme=beige] .title p,body[data-theme=beige] .helper,body[data-theme=beige] label,body[data-theme=beige] .metric span,body[data-theme=beige] .list-item span,body[data-theme=beige] .setup-step span{color:#2b2a24ad}body[data-theme]{color:var(--ui-text)}body[data-theme] .app,body[data-theme] .main{background:var(--ui-bg);color:var(--ui-text)}body[data-theme] .sidebar{background:var(--ui-sidebar-bg);border-right-color:var(--ui-line)}body[data-theme] .panel,body[data-theme] .auth-copy,body[data-theme] .section,body[data-theme] .metric,body[data-theme] .list-item,body[data-theme] .chat-list,body[data-theme] .chat-session,body[data-theme] .message,body[data-theme] .result-box,body[data-theme] .side-status,body[data-theme] .pill{background:var(--ui-surface);border-color:var(--ui-line);color:var(--ui-text)}body[data-theme] .section:nth-child(odd),body[data-theme] .auth-copy,body[data-theme] .metric,body[data-theme] .chat-list,body[data-theme] .chat-session,body[data-theme] .message,body[data-theme] .result-box{background:var(--ui-surface-2)}body[data-theme] .auth-copy:after{opacity:.22}body[data-theme] *{scrollbar-width:thin;scrollbar-color:var(--ui-scroll-thumb) var(--ui-scroll-track)}body[data-theme] ::-webkit-scrollbar{width:10px;height:10px}body[data-theme] ::-webkit-scrollbar-track{background:var(--ui-scroll-track);border-radius:999px}body[data-theme] ::-webkit-scrollbar-thumb{background:var(--ui-scroll-thumb);border:2px solid var(--ui-scroll-track);border-radius:999px}body[data-theme] ::-webkit-scrollbar-thumb:hover{background:var(--ui-accent)}body[data-theme] input,body[data-theme] select,body[data-theme] textarea{background:var(--ui-input-bg);color:var(--ui-text);border-color:var(--ui-line)}body[data-theme] .btn{background:var(--ui-button-bg);color:var(--ui-button-text);border-color:var(--ui-line)}body[data-theme] .btn.primary,body[data-theme] .segmented button.active,body[data-theme] .mobile-tabs button.active,body[data-theme] .group-choice.active{background:var(--ui-accent);color:var(--ui-accent-contrast);border-color:var(--ui-accent)}body[data-theme] .nav button:hover,body[data-theme] .quick-link:hover,body[data-theme] .nav button.active{background:var(--ui-tag-bg);border-color:var(--ui-line)}body[data-theme] .nav-icon{background:var(--ui-accent);color:var(--ui-accent-contrast)}body[data-theme] .chat-window,body[data-theme] .messages,body[data-theme] .composer,body[data-theme] .chat-toolbar,body[data-theme] .create-toolbar{background:var(--ui-surface);border-color:var(--ui-line);color:var(--ui-text)}body[data-theme] .message.user,body[data-theme] .message{background:transparent;border-color:transparent;color:var(--ui-text)}body[data-theme] .message-bubble{background:var(--ui-surface-2);border-color:var(--ui-line);color:var(--ui-text)}body[data-theme] .message.user .message-bubble{background:var(--ui-tag-bg);border-color:var(--ui-line)}body[data-theme] .segmented{background:var(--ui-pill-bg);border-color:var(--ui-line)}body[data-theme] .segmented button{color:var(--ui-muted);background:transparent}body[data-theme] .theme-picker{background:var(--ui-pill-bg);border-color:var(--ui-line);color:var(--ui-text)}body[data-theme] .theme-picker select{color:var(--ui-text)}body[data-theme] .title p,body[data-theme] .helper,body[data-theme] label,body[data-theme] .metric span,body[data-theme] .list-item span,body[data-theme] .setup-step span,body[data-theme] .status-row span{color:var(--ui-muted)}body[data-theme] .setup-step{background:var(--ui-tag-bg);border-color:var(--ui-line)}body[data-theme] .setup-step b{color:var(--ui-accent);background:transparent}body[data-theme] .tag{background:var(--ui-tag-bg);color:var(--ui-text);border-color:var(--ui-line)}body[data-theme] .toast-item{background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-line)}.theme-picker select{width:auto;min-height:24px;padding:3px 22px 3px 7px;background:transparent;border:0;color:var(--text)}body[data-theme] .theme-picker option{color:var(--ui-text);background:var(--ui-surface)}body[data-theme=console] .theme-picker,body[data-theme=deep] .theme-picker,body[data-theme=eye] .theme-picker,body[data-theme=beige] .theme-picker{color:var(--text)}.theme-picker option{color:#f6f4e8;background:#1b1f27}body[data-theme=beige] .theme-picker option{color:#2b2a24;background:#f4eedf}body[data-theme=beige] .nav button,body[data-theme=beige] .quick-link,body[data-theme=beige] .tag,body[data-theme=beige] .chat-session,body[data-theme=beige] .toast-item,body[data-theme=beige] .segmented button{color:#2b2a24}body[data-theme=beige] .messages,body[data-theme=beige] .chat-list,body[data-theme=beige] .composer,body[data-theme=beige] .chat-toolbar,body[data-theme=beige] .create-toolbar,body[data-theme=beige] .segmented,body[data-theme=beige] .result-box img,body[data-theme=beige] .result-box video{background:#f4eedf;border-color:#47433429}.setup-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(82px,auto);align-items:stretch;gap:8px}.setup-step{border:1px solid rgba(210,220,188,.14);border-radius:var(--radius);background:#c3ef700e;padding:10px;min-height:82px;height:100%;display:grid;align-content:start}.setup-step b{display:block;margin-bottom:5px;color:#c3ef70;font-size:12px}.setup-step span{color:var(--muted);font-size:12px;line-height:1.45}.create-view{max-width:1320px}.create-view .panel{height:calc(100vh - 92px);min-height:560px;max-height:calc(100vh - 92px);display:grid;grid-template-rows:auto minmax(0,1fr)}.create-view .create-layout{grid-template-columns:minmax(0,1fr) minmax(320px,clamp(340px,28vw,400px));gap:14px;align-items:stretch;min-height:0;height:100%}.create-view .section{min-height:0;height:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.create-form{grid-column:2;grid-row:1;align-self:stretch}.create-result{grid-column:1;grid-row:1;align-self:stretch;min-height:0;height:100%;overflow-y:auto;overscroll-behavior:contain}#imagePrompt,#videoPrompt{min-height:clamp(180px,28vh,320px)}.create-view .result-box{min-height:0}.create-result .task-card{justify-self:stretch;align-self:start}#historyView .panel-body{display:grid;min-height:0;overflow:hidden}#historyView .history-list{height:100%;max-height:none;min-height:0;align-content:start;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.composer{grid-template-columns:auto minmax(0,1fr) auto;align-items:end}.composer-stack{min-width:0;display:grid;gap:8px}.chat-skill-bar{display:grid;grid-template-columns:auto minmax(150px,220px) minmax(0,1fr);gap:8px;align-items:center}.chat-skill-bar label,.chat-skill-bar .helper{margin:0;font-size:12px}.chat-skill-bar select{min-width:0;min-height:34px}.file-input{position:fixed;width:1px;height:1px;opacity:0;pointer-events:none}.attach-button{min-width:52px;height:42px;align-self:end}.attachment-strip,.message-attachments{display:flex;flex-wrap:wrap;gap:6px}.attachment-strip:empty{display:none}.attachment-chip,.message-attachment{max-width:100%;min-height:26px;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--ui-line, rgba(122, 239, 255, .16));border-radius:999px;background:var(--ui-tag-bg, rgba(104, 233, 255, .06));color:var(--ui-muted, var(--muted));padding:4px 8px;font-size:12px;line-height:1.25}.attachment-chip span,.message-attachment span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-chip button{width:18px;height:18px;min-height:18px;padding:0;border:0;border-radius:999px;background:#ffffff14;color:inherit;line-height:1}.message.status-error .message-bubble,.task-card.error{border-color:#ff6b876b;background:#ff6b8714}.message.status-thinking .message-bubble{color:var(--ui-muted, var(--muted))}.thinking-dots{display:inline-flex;gap:4px;margin-left:4px;vertical-align:middle}.thinking-dots i{width:5px;height:5px;border-radius:999px;background:currentColor;opacity:.35;animation:thinkingPulse 1s ease-in-out infinite}.thinking-dots i:nth-child(2){animation-delay:.15s}.thinking-dots i:nth-child(3){animation-delay:.3s}@keyframes thinkingPulse{0%,to{transform:translateY(0);opacity:.28}50%{transform:translateY(-3px);opacity:.9}}.task-card{width:100%;display:grid;gap:12px;align-self:start;border:1px solid var(--ui-line, rgba(122, 239, 255, .14));border-radius:var(--radius);background:var(--ui-surface-2, rgba(5, 12, 18, .62));padding:14px}.task-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.task-head h3{margin:0 0 5px;font-size:16px}.task-meta,.task-detail{color:var(--ui-muted, var(--muted));font-size:12px;line-height:1.55;word-break:break-word}.task-context{display:flex;flex-wrap:wrap;gap:4px 8px;color:var(--ui-muted, var(--muted));font-size:12px;line-height:1.45}.task-context strong{color:var(--ui-text, var(--text));font-weight:650}.progress-track{height:8px;overflow:hidden;border-radius:999px;background:#7aefff1a}.progress-fill{height:100%;width:var(--progress, 24%);border-radius:inherit;background:linear-gradient(90deg,var(--ui-accent, var(--cyan)),rgba(119,255,183,.9));transition:width .2s ease}.progress-fill.indeterminate{width:38%;animation:progressSlide 1.1s ease-in-out infinite}.task-progress-meta{display:flex;justify-content:space-between;gap:8px;color:var(--ui-muted, var(--muted));font-size:12px;line-height:1.35}.task-progress-meta span:last-child{flex:0 0 auto;font-variant-numeric:tabular-nums;white-space:nowrap}.thinking-status{display:inline-flex;align-items:center;gap:5px}.thinking-elapsed{font-variant-numeric:tabular-nums}.thinking-track{display:block;width:min(160px,100%);height:3px;margin-top:9px;overflow:hidden;border-radius:999px;background:#7aefff1a}.thinking-track:after{content:"";display:block;width:38%;height:100%;border-radius:inherit;background:var(--ui-accent, var(--cyan));animation:progressSlide 1.1s ease-in-out infinite}@keyframes progressSlide{0%{transform:translate(-120%)}to{transform:translate(280%)}}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}#chatView .chat-shell{position:relative;grid-template-columns:minmax(190px,228px) minmax(0,1fr) 0;overflow:hidden;transition:grid-template-columns .24s cubic-bezier(.16,1,.3,1)}#chatView .chat-shell.skill-drawer-open{max-width:none;grid-template-columns:minmax(190px,228px) minmax(0,1fr) minmax(340px,380px)}.composer-context-row{align-items:center;flex-direction:row}.composer-tool-button,.attach-button{width:52px;min-width:52px;height:44px;min-height:44px;padding:0 8px;display:inline-grid;place-items:center;flex:0 0 52px;font-size:.75rem;font-weight:680}.composer-tool-button[aria-expanded=true]{color:var(--ui-accent-contrast);background:var(--ui-accent);border-color:var(--ui-accent)}.installed-skill-control{min-width:0;min-height:44px;flex:1 1 auto}.installed-skill-control select{width:100%;min-width:0;height:44px;min-height:44px;color:var(--ui-text);background-color:var(--ui-pill-bg);border-color:var(--ui-line);font-size:.8125rem;text-overflow:ellipsis}.skill-drawer{min-width:0;height:100%;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;color:var(--ui-text);background:var(--ui-surface-2);border-left:1px solid transparent;opacity:0;overflow:hidden;pointer-events:none;transform:translate(24px);visibility:hidden;transition:opacity .18s ease,transform .24s cubic-bezier(.16,1,.3,1),visibility 0s linear .24s,border-color .18s ease}.skill-drawer-open .skill-drawer{border-left-color:var(--ui-line);opacity:1;pointer-events:auto;transform:translate(0);visibility:visible;transition-delay:0s}.skill-drawer-head{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--ui-line)}.skill-drawer-title{min-width:0}.skill-drawer-title h2{margin:0;font-size:1rem;line-height:1.25}.skill-drawer-title p{margin:3px 0 0;color:var(--ui-muted);font-size:.75rem;line-height:1.35}.skill-drawer-close{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;display:grid;place-items:center;font-size:1.25rem}.skill-store-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:10px 14px 0}.skill-store-tabs button{min-height:44px;padding:0 10px;color:var(--ui-muted);background:transparent;border:1px solid transparent;border-radius:5px;cursor:pointer;font-size:.8125rem}.skill-store-tabs button[aria-selected=true]{color:var(--ui-text);background:var(--ui-button-bg);border-color:var(--ui-line);font-weight:680}.skill-store-filters{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:8px;padding:10px 14px;border-bottom:1px solid var(--ui-line)}.skill-store-filters input,.skill-store-filters select{width:100%;min-width:0;min-height:44px;font-size:.875rem}.skill-store-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.skill-store-list{min-height:0}.custom-skill-workspace{border-bottom:1px solid var(--ui-line)}.custom-skill-intro{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:var(--ui-surface)}.custom-skill-intro strong{font-size:.875rem}.custom-skill-intro p{margin:3px 0 0;color:var(--ui-muted);font-size:.75rem}.custom-skill-intro .btn{min-height:44px;white-space:nowrap}.custom-skill-form{display:grid;gap:7px;padding:14px;border-top:1px solid var(--ui-line)}.custom-skill-form[hidden]{display:none}.custom-skill-form-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:3px}.custom-skill-form-head strong{font-size:.875rem}.custom-skill-form-head span,.custom-skill-guide{color:var(--ui-muted);font-size:.6875rem;line-height:1.45}.custom-skill-form label{margin-top:3px;color:var(--ui-text);font-size:.75rem;font-weight:650}.custom-skill-form input,.custom-skill-form textarea{width:100%;min-width:0;font-size:.8125rem}.custom-skill-form input{min-height:44px}.custom-skill-form textarea{min-height:156px;resize:vertical;line-height:1.55}.custom-skill-guide{max-width:62ch;margin:0}.custom-skill-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:5px}.custom-skill-form-actions .btn{min-height:44px}.skill-store-empty{display:grid;place-items:center;min-height:180px;padding:24px;color:var(--ui-muted);text-align:center;font-size:.8125rem;line-height:1.55}.skill-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:14px;border-bottom:1px solid var(--ui-line)}.skill-row-main{min-width:0}.skill-row-head{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.skill-row-head strong{min-width:0;font-size:.875rem;line-height:1.35;overflow-wrap:anywhere}.skill-badge{display:inline-flex;align-items:center;min-height:20px;padding:1px 6px;color:var(--ui-muted);background:var(--ui-pill-bg);border:1px solid var(--ui-line);border-radius:4px;font-size:.6875rem;line-height:1.2;white-space:nowrap}.skill-badge.browser,.skill-badge.installed{color:var(--ui-accent);background:var(--ui-tag-bg)}.skill-badge.server{color:var(--amber)}.skill-row-description{margin:7px 0 0;color:var(--ui-muted);font-size:.875rem;line-height:1.55;text-wrap:pretty}.skill-row-meta{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:8px;color:var(--ui-faint);font-size:.6875rem;line-height:1.4}.skill-limitations{margin-top:8px;color:var(--ui-muted);font-size:.75rem}.skill-limitations summary{width:max-content;cursor:pointer}.skill-limitations p{margin:6px 0 0;line-height:1.5}.skill-row-actions{min-width:74px;display:flex;flex-direction:column;align-items:stretch;gap:6px}.skill-row-actions .btn{min-height:44px;padding:5px 9px;white-space:nowrap;font-size:.75rem}.skill-row-actions .skill-uninstall{color:var(--ui-muted);background:transparent;border-color:transparent}.skill-row-actions .skill-delete-confirm{color:var(--red);background:color-mix(in srgb,var(--red) 9%,transparent);border-color:color-mix(in srgb,var(--red) 48%,transparent)}.skill-drawer-foot{background:var(--ui-surface);border-top:1px solid var(--ui-line)}.skill-status-guide{padding:0 14px;color:var(--ui-muted);font-size:.6875rem}.skill-status-guide summary{min-height:38px;display:flex;align-items:center;cursor:pointer;font-size:.75rem}.skill-status-guide p{margin:0 0 7px;line-height:1.5}.skill-status-guide p:last-child{margin-bottom:10px}.skill-status-guide strong{color:var(--ui-text)}.skill-store-status{min-height:38px;display:flex;align-items:center;padding:8px 14px;color:var(--ui-muted);border-top:1px solid var(--ui-line);font-size:.75rem;line-height:1.4}@media(max-width:1200px)and (min-width:981px){#chatView .chat-shell.skill-drawer-open{grid-template-columns:minmax(164px,190px) minmax(0,1fr) minmax(310px,340px)}}@media(max-width:980px){#chatView .chat-shell,#chatView .chat-shell.skill-drawer-open{grid-template-columns:minmax(0,1fr)}.skill-drawer{position:absolute;z-index:4;inset:0 0 0 auto;width:min(92vw,400px);box-shadow:-6px 0 8px #00000029;transform:translate(100%)}.skill-drawer-open .skill-drawer{transform:translate(0)}}@media(max-width:720px){.composer-context-row{align-items:center;flex-direction:row}.installed-skill-control{min-width:0}.skill-drawer{width:100%}.skill-store-filters{grid-template-columns:minmax(0,1fr)}}@media(max-width:420px){.skill-row{grid-template-columns:minmax(0,1fr)}.skill-row-actions{min-width:0;flex-direction:row}.skill-row-actions .btn{flex:1 1 0}}@media(prefers-reduced-motion:reduce){.thinking-dots i,.progress-fill.indeterminate,.thinking-track:after{animation:none}.progress-fill.indeterminate,.thinking-track:after{transform:translate(0)}}.media-grid{width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:10px}.media-thumb{min-height:132px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--ui-line, rgba(122, 239, 255, .16));border-radius:var(--radius);background:#000}.media-thumb img,.media-thumb video{width:100%;height:100%;max-height:320px;object-fit:contain;border:0;border-radius:0}.task-actions{display:flex;flex-wrap:wrap;gap:8px}.task-error{color:#ffd1da;white-space:pre-wrap;word-break:break-word;font-size:12px;line-height:1.55}.toast-item{position:relative;padding-right:42px}.toast-close{position:absolute;top:8px;right:8px;width:24px;height:24px;min-height:24px;padding:0;border:0;border-radius:999px;color:inherit;background:#ffffff14;font-size:15px;line-height:1}@media(max-width:980px){.main{padding:10px 10px 70px}.mobile-tabs{left:8px;right:8px;bottom:8px;gap:4px;padding:4px;background:var(--ui-surface, #050505);border-color:var(--ui-line, rgba(210, 220, 188, .18));backdrop-filter:none}.mobile-tabs button{min-height:36px}.mobile-tabs button.active{color:#080907;background:#c3ef70}.chat-shell{min-height:560px}.setup-guide,.create-view .create-layout{grid-template-columns:1fr;min-height:auto}.create-form,.create-result{grid-column:1;grid-row:auto}#imagePrompt,#videoPrompt{min-height:160px}.create-view .result-box{min-height:clamp(320px,56vh,620px)}}@media(max-width:720px){.composer{grid-template-columns:1fr auto}.attach-button{grid-column:1}.composer-stack{grid-column:1 / -1;grid-row:1}.chat-skill-bar{grid-template-columns:auto minmax(0,1fr)}.chat-skill-bar .helper{grid-column:1 / -1}#sendChatBtn{grid-column:2;grid-row:2}}.create-result{display:block;place-items:initial}.task-toolbar{position:sticky;z-index:3;top:-14px;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:-14px -14px 14px;padding:12px 14px;border-bottom:1px solid var(--ui-line, rgba(122, 239, 255, .14));background:var(--ui-surface, #050b10)}.task-toolbar strong{font-size:13px}.task-toolbar-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.task-grid{width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;align-items:start}.create-result .task-card{width:auto;min-width:0;gap:9px;padding:10px}.create-result .task-head{align-items:center}.create-result .task-head h3{margin:0;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.task-media{position:relative;width:100%;aspect-ratio:1;display:grid;place-items:center;overflow:hidden;border:1px solid var(--ui-line, rgba(122, 239, 255, .16));border-radius:var(--radius);background:#000}button.media-thumb{width:100%;height:100%;min-height:0;padding:0;border:0;border-radius:0;background:#000;cursor:zoom-in}button.media-thumb img,button.media-thumb video{width:100%;height:100%;max-height:none;object-fit:cover;border:0;border-radius:0;pointer-events:none}.task-placeholder{display:grid;place-items:center;width:100%;height:100%;padding:16px;color:var(--ui-muted, var(--muted));text-align:center;font-size:12px;line-height:1.5}.task-media-badge,.task-video-play{position:absolute;pointer-events:none}.task-media-badge{top:8px;right:8px;min-width:24px;padding:3px 6px;border-radius:999px;background:#000000b8;color:#fff;font-size:11px;text-align:center}.task-video-play{inset:50% auto auto 50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#000000ad;color:#fff;font-size:18px}.create-result .task-detail.task-prompt{min-height:38px;display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.create-result .task-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}.create-result .task-actions .btn{min-width:0;padding-inline:9px}.task-delete{width:38px;padding:0!important}body[data-theme=beige] .task-error,body[data-theme=eye] .task-error{color:#a52d43}.captcha-entry{display:grid;gap:8px}.captcha-guide{display:flex;align-items:center;gap:8px;font-size:13px}.captcha-guide img{width:76px;height:54px;border:1px solid var(--ui-line, rgba(122, 239, 255, .18));border-radius:var(--radius);background:#edf1f5}.captcha-guide .btn{min-width:52px;margin-left:auto}.captcha-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.captcha-option{min-height:62px;padding:0;overflow:hidden;border:1px solid var(--ui-line, rgba(122, 239, 255, .18));border-radius:var(--radius);background:#edf1f5;cursor:pointer}.captcha-option img{display:block;width:100%;height:62px}.captcha-option[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 36%,transparent)}@media(max-width:480px){.captcha-guide{flex-wrap:wrap}.captcha-guide .btn{margin-left:0}}.generation-mode{width:100%;margin-bottom:12px}.generation-mode button{flex:1}.prompt-assist-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:34px;margin:-4px 0 12px}.prompt-assist-bar .helper{margin:0}.prompt-assist-bar .tag-row{flex-wrap:nowrap}@media(max-width:520px){.prompt-assist-bar{align-items:flex-start;flex-direction:column}}.reference-drop{position:relative;min-height:126px;display:grid;place-items:center;overflow:hidden;border:1px dashed var(--ui-line, rgba(122, 239, 255, .28));border-radius:var(--radius);background:var(--ui-surface-2, rgba(5, 12, 18, .62));color:var(--ui-muted, var(--muted));cursor:pointer}.reference-drop.dragging{border-color:var(--ui-accent, var(--cyan))}.reference-drop img{width:100%;height:180px;object-fit:contain;background:#000}.reference-drop .reference-copy{padding:18px;text-align:center;font-size:12px;line-height:1.55}.reference-clear{position:absolute;top:8px;right:8px;width:30px;height:30px;min-height:30px;padding:0;background:#000000b8;color:#fff}.advanced-task-query{margin-top:12px;color:var(--ui-muted, var(--muted));font-size:12px}.advanced-task-query>div{display:grid;gap:8px;margin-top:10px}.media-preview{width:min(1180px,calc(100vw - 32px));height:min(820px,calc(100vh - 32px));max-width:none;max-height:none;padding:0;overflow:hidden;border:1px solid rgba(255,255,255,.18);border-radius:var(--radius);background:#050505;color:#fff;inset:0;margin:auto}.media-preview::backdrop{background:#000000db}.media-preview-shell{width:100%;height:100%;display:grid;grid-template-rows:auto minmax(0,1fr)}.media-preview-head{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.12)}.media-preview-head strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.media-preview-actions{display:flex;flex:0 0 auto;gap:8px}.media-preview-stage{position:relative;min-height:0;min-width:0;display:grid;place-items:center;overflow:hidden;padding:12px;background:#000}.media-preview-stage img,.media-preview-stage video{display:block;width:auto;height:auto;max-width:calc(min(1180px,100vw - 32px) - 24px);max-height:calc(min(820px,100dvh - 32px) - 80px);object-fit:contain}.preview-nav{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:48px;padding:0;border-color:#ffffff2e;background:#00000094;color:#fff}.preview-prev{left:12px}.preview-next{right:12px}@media(max-width:980px){.app{width:100%;grid-template-columns:minmax(0,1fr)}.main,.topbar,.view{width:100%;min-width:0}.create-view .panel{height:auto;min-height:calc(100dvh - 190px);max-height:none}.create-view .panel-body{overflow:visible}.create-view .create-layout,.create-view .section,.create-result{height:auto;overflow:visible}}@media(max-width:720px){.task-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.create-result .task-card{padding:8px}.create-result .task-meta,.create-result .task-detail:not(.task-prompt){display:none}.task-toolbar{align-items:flex-start}.media-preview{width:100vw;height:100dvh;border:0;border-radius:0}}@media(max-width:980px){html,body,.app,.main{width:100%;max-width:100%;min-width:0}.app{display:block;min-height:100dvh}.sidebar{display:none}.main{min-height:100dvh;padding:12px;padding-bottom:calc(76px + env(safe-area-inset-bottom))}.topbar{width:100%;min-height:0;margin-bottom:12px;display:grid;grid-template-columns:minmax(0,1fr);align-items:start}.title,.top-actions,.view,.panel,.panel-head,.panel-body,.section,.auth-layout,.grid,.create-layout,.chat-shell,.chat-toolbar,.create-toolbar,.composer{min-width:0;max-width:100%}.top-actions{width:100%;display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:thin}.top-actions>.pill,.top-actions>.btn{width:auto;min-width:0;min-height:40px;flex:0 0 auto;justify-content:center}.theme-picker select{width:auto;min-width:0}.view>.panel,.chat-shell,.create-view .panel{height:auto;min-height:0;max-height:none;overflow:visible}.view>.panel:not(.chat-shell),#authGate>.panel{display:block}.view>.panel>.panel-body,.create-view .panel-body,#chatView .panel-body,.create-view .create-layout,.create-view .section,.create-result{height:auto;max-height:none;overflow:visible}.panel-head,.auth-layout,.grid.two,.grid.three,.metrics,.create-layout,.chat-toolbar,.create-toolbar,.composer{grid-template-columns:minmax(0,1fr)}.panel-head{align-items:flex-start}.auth-layout{display:grid;gap:12px}.chat-shell{display:grid;grid-template-columns:minmax(0,1fr)}.chat-list{display:none}.mobile-tabs{display:grid;left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:4px}.mobile-tabs button{min-width:0;min-height:44px;padding:4px}input,select,textarea,.btn,.segmented button{min-height:44px}input,select,textarea{width:100%;max-width:100%;font-size:16px}img,video{max-width:100%}}@media(max-width:720px){.main{padding:10px;padding-bottom:calc(76px + env(safe-area-inset-bottom))}.title h1{font-size:19px}.title p{line-height:1.5}.panel-body,.panel-head,.section{padding:12px}#authGate .panel-body{padding:0}.auth-copy{display:none}#loginForm{width:100%;border:0}#loginSubmitBtn{width:100%}.captcha-entry{gap:10px}.task-toolbar{position:static;margin:-12px -12px 12px;padding:12px;flex-direction:column}.task-toolbar-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.message{max-width:90%}.toast{right:10px;top:max(10px,env(safe-area-inset-top));bottom:auto;width:calc(100vw - 20px)}}@media(max-width:420px){.task-grid{grid-template-columns:minmax(0,1fr)}.mobile-tabs button{font-size:12px}}@media(max-width:760px){#chatView .chat-shell{height:calc(100dvh - 180px);min-height:0;overflow:hidden}#chatView .chat-window{min-height:0;overflow:hidden}#chatView .messages{min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}}.chat-list-actions{display:flex;gap:6px}.chat-toolbar{grid-template-columns:minmax(0,1fr) minmax(150px,210px)}.composer{display:block;padding:10px 12px}.composer-stack{gap:8px}.composer-context-row{display:flex;align-items:center;gap:10px;min-width:0}.attach-button{flex:0 0 auto;width:auto;min-width:52px;height:34px;min-height:34px}.chat-skill-bar{flex:1 1 auto;grid-template-columns:auto minmax(150px,220px) minmax(0,1fr)}.composer-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}.composer-entry textarea{min-height:82px;resize:vertical}#sendChatBtn{min-height:42px}.create-view .create-layout{grid-template-columns:minmax(540px,.95fr) minmax(0,1.05fr)}.generation-control-row{display:grid;gap:8px;align-items:end;margin-bottom:10px}.image-control-row{grid-template-columns:132px minmax(165px,1fr) minmax(94px,.58fr) minmax(94px,.58fr)}.generation-control-row .field,.generation-mode-field{min-width:0;margin:0}.generation-mode{width:100%;margin:0}.prompt-field-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}.prompt-field-head label{margin:0}.prompt-assist-inline{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;min-width:0}.prompt-assist-inline .helper{margin:0;font-size:12px}.prompt-assist-inline .btn{min-height:32px;padding:5px 9px;white-space:nowrap}@media(max-width:1200px){.create-view .create-layout{grid-template-columns:minmax(0,1fr)}}@media(max-width:720px){.chat-toolbar{grid-template-columns:minmax(0,1fr) minmax(120px,.42fr)}.composer-context-row,.prompt-field-head{align-items:flex-start;flex-direction:column}.chat-skill-bar{width:100%;grid-template-columns:auto minmax(0,1fr)}.chat-skill-bar .helper{grid-column:1 / -1}.composer-entry{grid-template-columns:minmax(0,1fr)}#sendChatBtn{width:100%}.image-control-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.image-control-row .generation-mode-field,.image-control-row .field:nth-child(2){grid-column:1 / -1}.prompt-assist-inline{justify-content:flex-start}}@media(max-width:980px){.chat-list{display:block;padding:8px 10px;border-right:0;border-bottom:1px solid var(--ui-line, rgba(122, 239, 255, .12))}.chat-session-list{display:none}}.create-view .create-layout{grid-template-columns:minmax(0,1fr) minmax(320px,clamp(340px,28vw,400px))}.image-control-row{grid-template-columns:minmax(0,1fr) 118px}.image-control-row .generation-mode-field{grid-column:1 / -1}.image-control-row .field:nth-child(2){grid-column:1}.image-control-row .field:nth-child(3){grid-column:2}.image-control-row .field:nth-child(4){grid-column:1 / -1}#imageCapabilityHint{display:none}.prompt-assistant-config{display:grid;gap:8px;margin:12px 0;padding:10px 0;border-top:1px solid var(--ui-line, rgba(122, 239, 255, .14));border-bottom:1px solid var(--ui-line, rgba(122, 239, 255, .14))}.prompt-assistant-config-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.prompt-assistant-config-head strong{font-size:13px}.prompt-assistant-config-head .helper{margin:0;font-size:12px;text-align:right}.prompt-assistant-config-controls{display:grid;grid-template-columns:minmax(220px,360px);align-items:end;gap:8px}.prompt-assistant-config-controls .field{min-width:0;margin:0}.prompt-assistant-config-controls .btn{min-height:36px;padding:6px 10px}.prompt-assistant-explanation{margin:10px 0 0;line-height:1.5}@media(max-width:1200px){.create-view .create-layout{grid-template-columns:minmax(0,1fr) minmax(320px,clamp(340px,28vw,400px))}}@media(max-width:720px){.create-view .create-layout{grid-template-columns:minmax(0,1fr)}.prompt-assistant-config-head,.prompt-assistant-config-controls{grid-template-columns:minmax(0,1fr);align-items:stretch}.prompt-assistant-config-head{display:grid}.prompt-assistant-config-head .helper{text-align:left}.prompt-assistant-config-controls .btn{width:100%}}body[data-theme=console]{color-scheme:dark;--ui-bg: #07100b;--ui-sidebar-bg: #0b1510;--ui-surface: #111d15;--ui-surface-2: #16231a;--ui-text: #f1f6f2;--ui-muted: #a9b6ad;--ui-faint: #76847b;--ui-line: #2b3c31;--ui-accent: #70c486;--ui-accent-contrast: #07100b;--ui-button-bg: #17251b;--ui-button-text: #e3ebe5;--ui-input-bg: #101c14;--ui-pill-bg: #132018;--ui-tag-bg: #183021;--ui-scroll-track: #0b1510;--ui-scroll-thumb: #405746;--ui-shadow: 0 8px 8px rgba(0, 0, 0, .24);--text: var(--ui-text);--muted: var(--ui-muted);--faint: var(--ui-faint);--line: var(--ui-line);--cyan: var(--ui-accent);background:var(--ui-bg)!important}body[data-theme]{min-height:100dvh;letter-spacing:0}body[data-theme] .app,body[data-theme] .main{background:var(--ui-bg)}.app{grid-template-columns:242px minmax(0,1fr);transition:grid-template-columns .22s cubic-bezier(.16,1,.3,1)}.app.sidebar-collapsed{grid-template-columns:64px minmax(0,1fr)}body[data-theme] .sidebar{gap:12px;padding:16px 12px;background:var(--ui-sidebar-bg);border-right:1px solid var(--ui-line);backdrop-filter:none;transition:padding .22s cubic-bezier(.16,1,.3,1)}.brand{min-height:52px;gap:10px;padding:0 6px 12px;border-bottom-color:var(--ui-line);overflow:hidden}.brand img{width:34px;height:34px;box-shadow:none;flex:0 0 auto}.brand-copy{min-width:0;white-space:nowrap}.brand-copy strong{font-size:14px}.brand-copy>span{margin-top:2px;color:var(--ui-muted);font-size:10px}.nav{gap:4px}body[data-theme] .nav button,body[data-theme] .quick-link,.sidebar-toggle{min-height:38px;gap:9px;padding:0 8px;color:var(--ui-muted);background:transparent;border:1px solid transparent;border-radius:6px;font-size:12px;white-space:nowrap;overflow:hidden;transition:color .18s ease,background .18s ease,border-color .18s ease}body[data-theme] .nav button:hover,body[data-theme] .quick-link:hover,body[data-theme] .nav button.active,.sidebar-toggle:hover{color:var(--ui-text);background:var(--ui-tag-bg);border-color:transparent}body[data-theme] .nav button.active{color:var(--ui-text);font-weight:720}body[data-theme] .nav-icon{width:28px;height:28px;color:var(--ui-muted);background:var(--ui-surface-2);border:1px solid var(--ui-line);border-radius:5px;font-size:11px}body[data-theme] .nav button.active .nav-icon{color:var(--ui-accent-contrast);background:var(--ui-accent);border-color:var(--ui-accent)}.sidebar-toggle{width:100%;display:flex;align-items:center;text-align:left;cursor:pointer}.sidebar-toggle-icon{width:28px;height:28px;display:grid;place-items:center;flex:0 0 auto;color:var(--ui-muted);background:var(--ui-surface-2);border:1px solid var(--ui-line);border-radius:5px;font-size:20px;line-height:1}.side-bottom{gap:8px}body[data-theme] .side-status{gap:6px;padding:10px;color:var(--ui-muted);background:var(--ui-surface-2);border-color:var(--ui-line);font-size:10px}.app.sidebar-collapsed .sidebar{padding-inline:8px}.app.sidebar-collapsed .brand{justify-content:center;padding-inline:0}.app.sidebar-collapsed .brand-copy,.app.sidebar-collapsed .nav-label,.app.sidebar-collapsed .side-status{display:none}.app.sidebar-collapsed .nav button,.app.sidebar-collapsed .quick-link,.app.sidebar-collapsed .sidebar-toggle{width:46px;justify-content:center;padding:0}.app.sidebar-collapsed .side-bottom{align-items:center}.main{min-height:100dvh;padding:14px 18px 18px}.topbar{min-height:54px;max-width:1440px;margin:0 auto 12px;gap:14px}.title h1{color:var(--ui-text);font-size:20px;font-weight:780}.title p{color:var(--ui-muted);font-size:11px}.top-actions{gap:6px}.support-contact{min-width:184px;min-height:34px;display:inline-flex;align-items:center;padding:0 8px;color:var(--ui-text);font-size:12px;font-weight:680;white-space:nowrap}body[data-theme] .pill,body[data-theme] .btn,body[data-theme] input,body[data-theme] select,body[data-theme] textarea{border-color:var(--ui-line);border-radius:6px}body[data-theme] .pill{min-height:34px;padding-inline:10px;color:var(--ui-muted);background:var(--ui-pill-bg)}body[data-theme] .pill strong{color:var(--ui-text)}body[data-theme] .theme-picker select,body[data-theme] .theme-picker option{color:var(--ui-text);background:var(--ui-surface)}body[data-theme] .btn{min-height:34px;color:var(--ui-button-text);background:var(--ui-button-bg)}body[data-theme] .btn:hover{border-color:var(--ui-accent)}body[data-theme] .btn.primary,body[data-theme] .segmented button.active,body[data-theme] .mobile-tabs button.active,body[data-theme] .group-choice.active{color:var(--ui-accent-contrast);background:var(--ui-accent);border-color:var(--ui-accent)}body[data-theme] .panel{max-width:1440px;margin-inline:auto;color:var(--ui-text);background:var(--ui-surface);border-color:var(--ui-line);box-shadow:var(--ui-shadow)}body[data-theme] .panel-head{border-bottom-color:var(--ui-line)}body[data-theme] .section,body[data-theme] .section:nth-child(odd),body[data-theme] .auth-copy,body[data-theme] .metric,body[data-theme] .list-item,body[data-theme] .chat-list,body[data-theme] .chat-session,body[data-theme] .message,body[data-theme] .result-box{color:var(--ui-text);background:var(--ui-surface-2);border-color:var(--ui-line);border-radius:8px}body[data-theme] .chat-window,body[data-theme] .messages,body[data-theme] .composer,body[data-theme] .chat-toolbar,body[data-theme] .create-toolbar{color:var(--ui-text);background:var(--ui-surface);border-color:var(--ui-line)}body[data-theme] input,body[data-theme] select,body[data-theme] textarea{color:var(--ui-text);background:var(--ui-input-bg)}body[data-theme] input::placeholder,body[data-theme] textarea::placeholder{color:var(--ui-muted);opacity:1}body[data-theme] .prompt-assistant-config{background:var(--ui-tag-bg);border-color:var(--ui-line);border-radius:7px;padding:11px}body[data-theme] .create-layout{gap:12px}body[data-theme] .result-box{background:var(--ui-surface)}body[data-theme] .task-grid{gap:10px}body[data-theme] .task-card,body[data-theme] .create-result .task-card{gap:9px;padding:10px;color:var(--ui-text);background:var(--ui-surface-2);border:1px solid var(--ui-line);border-radius:8px;box-shadow:none}body[data-theme] .task-card:hover{border-color:var(--ui-accent)}body[data-theme] .task-media,body[data-theme] .task-card img,body[data-theme] .task-card video{border-radius:6px}body[data-theme] .task-status,body[data-theme] .tag.green{color:var(--ui-accent);background:var(--ui-tag-bg)}body[data-theme] :focus-visible{outline:3px solid color-mix(in srgb,var(--ui-accent) 42%,transparent);outline-offset:2px}body[data-theme] .mobile-tabs{background:var(--ui-surface);border-color:var(--ui-line);border-radius:8px;box-shadow:0 6px 8px #00000024}@media(max-width:1200px)and (min-width:981px){.app{grid-template-columns:214px minmax(0,1fr)}.app.sidebar-collapsed{grid-template-columns:64px minmax(0,1fr)}.main{padding-inline:14px}.top-actions{max-width:calc(100vw - 420px);overflow-x:auto}}@media(max-width:980px){.app,.app.sidebar-collapsed{display:block;min-height:100dvh}.sidebar,.sidebar-toggle{display:none}.main{min-height:100dvh;padding:12px;padding-bottom:calc(78px + env(safe-area-inset-bottom))}.topbar{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-bottom:12px}.top-actions{width:100%;max-width:none;display:flex;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}.top-actions::-webkit-scrollbar{display:none}body[data-theme] .pill,body[data-theme] .top-actions .btn,.support-contact{flex:0 0 auto}body[data-theme] .panel{border-radius:8px}.mobile-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:720px){.main{padding:10px;padding-bottom:calc(76px + env(safe-area-inset-bottom))}.title h1{font-size:19px}body[data-theme] .panel-body{padding:10px}body[data-theme] .section{padding:12px}.create-view .create-layout{grid-template-columns:minmax(0,1fr)}.task-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.task-grid{grid-template-columns:minmax(0,1fr)}.mobile-tabs button{min-width:0;padding-inline:2px;font-size:11px}}.nav-icon-asset{width:17px;height:17px;display:block;flex:0 0 auto;background:currentColor;-webkit-mask:var(--icon-src) center / contain no-repeat;mask:var(--icon-src) center / contain no-repeat}.icon-chat{--icon-src: url(/assets/workspace-icons/chat.png?v=20260716)}.icon-novels{--icon-src: url(/assets/workspace-icons/novels.png?v=20260805-2)}.icon-image{--icon-src: url(/assets/workspace-icons/image.png?v=20260716)}.icon-commerce{--icon-src: url(/assets/workspace-icons/commerce.png?v=20260716)}.icon-video{--icon-src: url(/assets/workspace-icons/video.png?v=20260716)}.icon-history{--icon-src: url(/assets/workspace-icons/history.png?v=20260716)}.icon-collapse{--icon-src: url(/assets/workspace-icons/collapse.png?v=20260716)}.icon-home{--icon-src: url(/assets/workspace-icons/home.png?v=20260716)}.icon-console{--icon-src: url(/assets/workspace-icons/console.png?v=20260716)}.icon-models{--icon-src: url(/assets/workspace-icons/models.png?v=20260716)}.icon-help{--icon-src: url(/assets/workspace-icons/help.png?v=20260716)}.sidebar-toggle-icon .nav-icon-asset{transition:transform .2s cubic-bezier(.16,1,.3,1)}.sidebar-toggle-icon.is-reversed .nav-icon-asset{transform:rotate(180deg)}.quick-link-button{width:100%;font:inherit;text-align:left;cursor:pointer}.help-panel{width:min(100%,960px);height:calc(100dvh - 116px);min-height:min(560px,calc(100dvh - 116px));max-height:calc(100dvh - 116px);margin-inline:auto;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}#helpView>.help-panel{height:calc(100dvh - 116px);min-height:min(560px,calc(100dvh - 116px));max-height:calc(100dvh - 116px);overflow-y:auto;overflow-x:hidden}.help-layout{display:grid;grid-template-columns:minmax(0,1fr) 286px;min-height:100%}.help-document{min-width:0;padding:26px 30px 32px}.help-intro{max-width:66ch;margin:6px 0 26px;color:var(--ui-muted);line-height:1.7}.help-group+.help-group{margin-top:28px}.help-group-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding-bottom:10px;border-bottom:1px solid var(--ui-line)}.help-group-head h3{margin:0;color:var(--ui-text);font-size:15px}.help-group-head span{color:var(--ui-faint);font-size:12px}.help-code-row{display:grid;grid-template-columns:64px minmax(0,1fr);gap:14px;padding:13px 0;border-bottom:1px solid color-mix(in srgb,var(--ui-line) 68%,transparent)}.help-code{width:fit-content;height:24px;padding:0 7px;display:inline-flex;align-items:center;color:var(--ui-accent);background:var(--ui-tag-bg);border-radius:4px;font:700 12px/1 ui-monospace,SFMono-Regular,Consolas,monospace}.help-code-copy strong{display:block;margin-bottom:3px;color:var(--ui-text);font-size:13px}.help-code-copy p{margin:0;color:var(--ui-muted);font-size:12px;line-height:1.65}.help-support{position:sticky;top:0;align-self:start;padding:28px 24px;background:var(--ui-surface-2);border-left:1px solid var(--ui-line)}.help-support h3{margin:0 0 6px;color:var(--ui-text);font-size:15px}.help-support>p{margin:0;color:var(--ui-muted);font-size:12px;line-height:1.65}.help-qr{width:100%;max-width:214px;aspect-ratio:1;display:block;margin:22px auto 18px;padding:9px;object-fit:contain;background:#fff;border:1px solid var(--ui-line);border-radius:6px}.help-contact{padding-top:16px;border-top:1px solid var(--ui-line)}.help-contact span{display:block;color:var(--ui-faint);font-size:11px}.help-contact strong{display:block;margin-top:4px;color:var(--ui-text);font-size:16px}.mobile-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.mobile-tabs .nav-icon-asset{width:15px;height:15px}@media(max-width:980px){.mobile-tabs{grid-template-columns:repeat(6,minmax(54px,1fr));overflow-x:auto;scrollbar-width:none}.mobile-tabs::-webkit-scrollbar{display:none}.help-layout{min-height:0}#helpView>.help-panel{height:calc(100dvh - 176px);min-height:min(420px,calc(100dvh - 176px));max-height:calc(100dvh - 176px);overflow-y:scroll;-webkit-overflow-scrolling:touch}}@media(max-width:720px){.help-layout{grid-template-columns:minmax(0,1fr)}.help-document{padding:20px 16px 24px}.help-support{position:static;padding:22px 16px 26px;border-top:1px solid var(--ui-line);border-left:0}.help-qr{max-width:220px}}@media(max-width:420px){.help-group-head{display:block}.help-group-head span{display:block;margin-top:3px}.help-code-row{grid-template-columns:54px minmax(0,1fr);gap:10px}}@media(prefers-reduced-motion:reduce){.app,.sidebar,.nav button,.quick-link,.sidebar-toggle,.sidebar-toggle-icon .nav-icon-asset,#chatView .chat-shell,.skill-drawer{transition:none!important}}#chatView .composer-context-row{align-items:center;flex-direction:row}#chatView .composer-context-row>.composer-tool-button{width:52px;min-width:52px;height:44px;min-height:44px;padding:0 8px;display:inline-grid;place-items:center;flex:0 0 52px}@media(max-width:720px){#chatView .composer-context-row{align-items:center;flex-direction:row}}#novelsView{max-width:1440px}#novelsView>.novels-panel{display:block;height:calc(100dvh - 98px);min-height:600px;max-height:calc(100dvh - 98px)}#novelsView>.novels-panel>.novels-root{height:100%;padding:0;overflow:hidden;scrollbar-gutter:auto}.novel-list-screen,.novel-detail-screen{height:100%;padding:18px 20px 24px;overflow:auto;overscroll-behavior:contain}.novel-screen-head,.novel-editor-head,.novel-section-head,.novel-pane-head,.novel-writing-toolbar,.novel-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.novel-screen-head{min-height:50px;margin-bottom:18px}.novel-screen-head h2,.novel-section-head h3{margin:0;color:var(--ui-text);letter-spacing:0}.novel-screen-head h2{font-size:18px}.novel-screen-head p,.novel-section-head p{margin:3px 0 0;color:var(--ui-muted);font-size:11px}.novel-heading-with-back,.novel-inline-actions{min-width:0;display:flex;align-items:center;gap:8px}.novel-icon-button{width:34px;height:34px;padding:0;display:inline-grid;place-items:center;flex:0 0 auto;color:var(--ui-button-text);background:var(--ui-button-bg);border:1px solid var(--ui-line);border-radius:6px;font-size:18px;line-height:1}.novel-icon-button:hover{border-color:var(--ui-accent)}.novel-icon-button.subtle{width:26px;height:26px;color:var(--ui-muted);background:transparent;border-color:transparent;font-size:15px}.novel-create-form{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,.6fr) auto;align-items:end;gap:12px;margin-bottom:16px;padding:14px;background:var(--ui-surface-2);border:1px solid var(--ui-line);border-radius:7px}.novel-create-form .field,.novel-project-form .field{margin:0}.novel-project-list,.novel-document-list{border-top:1px solid var(--ui-line)}.novel-project-row,.novel-document-row{width:100%;min-width:0;display:grid;align-items:center;color:var(--ui-text);background:transparent;border-bottom:1px solid var(--ui-line);text-align:left}.novel-project-row{grid-template-columns:42px minmax(0,1fr) auto 20px;gap:13px;min-height:70px;padding:10px 8px}.novel-project-row:hover,.novel-document-row:hover{background:var(--ui-tag-bg)}.novel-project-mark{width:40px;height:40px;display:grid;place-items:center;color:var(--ui-accent-contrast);background:var(--ui-accent);border-radius:6px;font-size:16px;font-weight:800}.novel-project-main,.novel-document-row>span:nth-child(2){min-width:0;display:grid;gap:4px}.novel-project-main strong,.novel-document-row strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.novel-project-main>span,.novel-project-time,.novel-document-row small{color:var(--ui-muted);font-size:11px}.novel-row-arrow{color:var(--ui-faint);font-size:22px}.novel-state{min-height:240px;display:grid;place-content:center;justify-items:center;gap:7px;color:var(--ui-muted);text-align:center}.novel-state.compact{min-height:90px}.novel-state strong,.novel-state p{margin:0}.novel-state strong{color:var(--ui-text);font-size:14px}.novel-state p{max-width:38ch;font-size:12px;line-height:1.6}.novel-spinner{width:22px;height:22px;border:2px solid var(--ui-line);border-top-color:var(--ui-accent);border-radius:50%;animation:novel-spin .8s linear infinite}@keyframes novel-spin{to{transform:rotate(360deg)}}.novel-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:24px;align-items:start}.novel-project-form{min-width:0;display:grid;gap:16px}.novel-form-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(140px,.7fr) minmax(120px,.45fr);gap:12px}.novel-project-form textarea{min-height:120px;resize:vertical}.novel-form-actions{justify-content:flex-end}.novel-chapter-section{min-width:0;border-left:1px solid var(--ui-line);padding-left:20px}.novel-section-head{min-height:40px;margin-bottom:8px}.novel-section-head h3{font-size:13px}.novel-document-row{grid-template-columns:34px minmax(0,1fr) 18px;gap:10px;min-height:58px;padding:8px 4px}.novel-chapter-index{color:var(--ui-faint);font:700 11px/1 ui-monospace,SFMono-Regular,Consolas,monospace}.novel-editor-screen{height:100%;min-height:0;display:grid;grid-template-rows:52px minmax(0,1fr)}.novel-editor-head{min-width:0;padding:0 14px;border-bottom:1px solid var(--ui-line)}.novel-editor-head .novel-heading-with-back>div{min-width:0;display:grid;gap:2px}.novel-editor-head strong,.novel-editor-head span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.novel-editor-head strong{color:var(--ui-text);font-size:13px}.novel-editor-head span{color:var(--ui-muted);font-size:10px}.novel-save-status{max-width:180px;flex:0 0 auto;color:var(--ui-muted);font-size:11px}.novel-save-status.saved{color:var(--ui-accent)}.novel-save-status.error{color:#b42318}.novel-editor-layout{min-width:0;min-height:0;display:grid;grid-template-columns:220px minmax(420px,1fr) 280px}.novel-chapter-pane,.novel-context-pane,.novel-writing-pane{min-width:0;min-height:0;background:var(--ui-surface)}.novel-chapter-pane{border-right:1px solid var(--ui-line);overflow:hidden}.novel-pane-head{height:48px;padding:0 10px 0 14px;border-bottom:1px solid var(--ui-line);font-size:12px}.novel-pane-head .novel-icon-button{width:28px;height:28px}.novel-editor-chapters{height:calc(100% - 48px);overflow:auto}.novel-editor-chapter{width:100%;min-width:0;min-height:48px;padding:8px 12px;display:grid;grid-template-columns:26px minmax(0,1fr);align-items:center;gap:7px;color:var(--ui-muted);background:transparent;border-bottom:1px solid color-mix(in srgb,var(--ui-line) 70%,transparent);text-align:left}.novel-editor-chapter:hover,.novel-editor-chapter.active{color:var(--ui-text);background:var(--ui-tag-bg)}.novel-editor-chapter.active{box-shadow:inset 3px 0 0 var(--ui-accent)}.novel-editor-chapter>span{color:var(--ui-faint);font:700 10px/1 ui-monospace,SFMono-Regular,Consolas,monospace}.novel-editor-chapter strong{min-width:0;overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.novel-writing-pane{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr) 34px}.novel-writing-toolbar{min-height:58px;padding:8px 12px;border-bottom:1px solid var(--ui-line)}body[data-theme] .novel-editor-title{min-width:0;width:100%;height:38px;padding:0 10px;color:var(--ui-text);background:transparent;border:1px solid transparent;font-size:15px;font-weight:760}body[data-theme] .novel-editor-title:hover,body[data-theme] .novel-editor-title:focus{background:var(--ui-input-bg);border-color:var(--ui-line)}.novel-editor-tools{display:flex;align-items:center;gap:5px}.novel-editor-tools .btn{min-height:32px;padding-inline:9px;font-size:11px}body[data-theme] .novel-editor-content{width:100%;min-height:0;height:100%;padding:28px clamp(22px,5vw,72px);color:var(--ui-text);background:var(--ui-input-bg);border:0;border-radius:0;outline:0;resize:none;font:16px/1.9 Microsoft YaHei,PingFang SC,Segoe UI,sans-serif;letter-spacing:0;scrollbar-gutter:stable}.novel-editor-footer{padding:0 14px;color:var(--ui-faint);background:var(--ui-surface-2);border-top:1px solid var(--ui-line);font-size:10px}.novel-editor-footer strong{color:var(--ui-muted);font-weight:600}.novel-version-drawer{position:absolute;z-index:5;top:58px;right:10px;width:min(360px,calc(100% - 20px));max-height:60%;padding:12px;overflow:auto;color:var(--ui-text);background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:7px;box-shadow:var(--ui-shadow)}.novel-version-drawer .novel-section-head{position:sticky;top:-12px;z-index:1;margin:-12px -12px 6px;padding:9px 10px;background:var(--ui-surface);border-bottom:1px solid var(--ui-line)}.novel-version-row{min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--ui-line)}.novel-version-row>span{min-width:0;display:grid;gap:3px}.novel-version-row strong{font-size:11px}.novel-version-row small{color:var(--ui-muted);font-size:10px}.novel-version-row .btn{min-height:28px;padding-inline:9px;font-size:10px}.novel-context-pane{display:grid;grid-template-rows:auto minmax(0,1fr);border-left:1px solid var(--ui-line)}.novel-context-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--ui-line)}.novel-context-tabs button{min-width:0;height:48px;padding:0 4px;color:var(--ui-muted);background:transparent;border-bottom:2px solid transparent;font-size:11px;white-space:nowrap}.novel-context-tabs button[aria-selected=true]{color:var(--ui-text);border-bottom-color:var(--ui-accent);font-weight:700}.novel-context-body{min-height:0;padding:10px;overflow:auto}.novel-fact-list{border-top:1px solid var(--ui-line)}.novel-fact-row{min-width:0;padding:10px 0 10px 2px;display:flex;align-items:flex-start;justify-content:space-between;gap:7px;border-bottom:1px solid var(--ui-line)}.novel-fact-row>span{min-width:0;color:var(--ui-text);font-size:11px;line-height:1.6;overflow-wrap:anywhere}.novel-fact-row small{display:block;margin-bottom:2px;color:var(--ui-faint);font-size:9px}.novel-fact-form{display:grid;gap:7px;margin-top:12px}.novel-fact-form select,.novel-fact-form textarea{width:100%;font-size:11px}.novel-fact-form textarea{min-height:72px;resize:vertical}.novel-fact-form .btn{justify-self:end}.novel-ai-actions{display:grid;gap:8px}.novel-ai-actions .btn{width:100%;justify-content:flex-start}@media(max-width:1200px)and (min-width:981px){.novel-editor-layout{grid-template-columns:180px minmax(380px,1fr) 240px}.novel-editor-tools .btn span{display:none}}@media(max-width:980px){.mobile-tabs{grid-template-columns:repeat(7,minmax(54px,1fr))}#novelsView>.novels-panel{height:calc(100dvh - 186px);min-height:min(500px,calc(100dvh - 186px));max-height:calc(100dvh - 186px)}.novel-editor-layout{grid-template-columns:176px minmax(0,1fr);grid-template-rows:minmax(360px,1fr) 190px}.novel-context-pane{grid-column:1 / -1;grid-template-columns:176px minmax(0,1fr);grid-template-rows:minmax(0,1fr);border-top:1px solid var(--ui-line);border-left:0}.novel-context-tabs{grid-template-columns:minmax(0,1fr);border-right:1px solid var(--ui-line);border-bottom:0}.novel-context-tabs button{height:auto;border-right:2px solid transparent;border-bottom:0}.novel-context-tabs button[aria-selected=true]{border-right-color:var(--ui-accent);border-bottom:0}.novel-detail-layout{grid-template-columns:minmax(0,1fr)}.novel-chapter-section{border-top:1px solid var(--ui-line);border-left:0;padding-top:14px;padding-left:0}}@media(max-width:720px){.novel-list-screen,.novel-detail-screen{padding:12px}.novel-screen-head{align-items:flex-start;flex-wrap:wrap}.novel-create-form,.novel-form-grid{grid-template-columns:minmax(0,1fr)}.novel-create-form .novel-inline-actions{justify-content:flex-end}.novel-project-row{grid-template-columns:38px minmax(0,1fr) 16px;gap:9px}.novel-project-mark{width:36px;height:36px}.novel-project-time{display:none}.novel-editor-layout{display:block;overflow:auto}.novel-editor-screen{grid-template-rows:48px minmax(0,1fr)}.novel-chapter-pane{height:104px;border-right:0;border-bottom:1px solid var(--ui-line)}.novel-pane-head{height:40px}.novel-editor-chapters{height:63px;display:flex;overflow-x:auto;overflow-y:hidden}.novel-editor-chapter{width:150px;flex:0 0 150px;border-right:1px solid var(--ui-line);border-bottom:0}.novel-editor-chapter.active{box-shadow:inset 0 3px 0 var(--ui-accent)}.novel-writing-pane{height:66vh;min-height:440px}.novel-writing-toolbar{align-items:stretch;flex-direction:column}.novel-editor-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.novel-editor-tools .btn{min-width:0;padding-inline:4px}body[data-theme] .novel-editor-content{padding:22px 18px;font-size:15px}.novel-version-drawer{top:104px}.novel-context-pane{min-height:280px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:44px minmax(0,1fr);border-left:0}.novel-context-tabs{grid-template-columns:repeat(3,minmax(0,1fr));border-right:0;border-bottom:1px solid var(--ui-line)}.novel-context-tabs button{border-right:0;border-bottom:2px solid transparent}.novel-context-tabs button[aria-selected=true]{border-right:0;border-bottom:2px solid var(--ui-accent)}}@media(max-width:420px){.novel-screen-head>.novel-inline-actions{width:100%}.novel-screen-head>.novel-inline-actions .btn{flex:1 1 0;min-width:0;padding-inline:7px}.novel-editor-head{padding-inline:8px}.novel-save-status{max-width:86px}}@media(prefers-reduced-motion:reduce){.novel-spinner{animation:none}}body[data-theme=console]{color-scheme:dark;--ui-bg: #1f1f1f;--ui-sidebar-bg: #242424;--ui-surface: #2b2b2b;--ui-surface-2: #303030;--ui-text: #f5f5f5;--ui-muted: #b8b8b8;--ui-faint: #858585;--ui-line: #444444;--ui-accent: #07c160;--ui-accent-contrast: #ffffff;--ui-button-bg: #383838;--ui-button-text: #f5f5f5;--ui-input-bg: #252525;--ui-pill-bg: #333333;--ui-tag-bg: #253629;--ui-scroll-track: #202020;--ui-scroll-thumb: #5a5a5a;--ui-shadow: 0 8px 8px rgba(0, 0, 0, .24);--text: var(--ui-text);--muted: var(--ui-muted);--faint: var(--ui-faint);--line: var(--ui-line);--cyan: var(--ui-accent);background:var(--ui-bg)!important}body[data-theme=eye]{color-scheme:light;--ui-bg: #e8f0e5;--ui-sidebar-bg: #f0f5ed;--ui-surface: #f8fbf6;--ui-surface-2: #eef5eb;--ui-text: #233026;--ui-muted: #536257;--ui-faint: #748178;--ui-line: #c8d6c6;--ui-accent: #4f7c59;--ui-accent-contrast: #f8fbf6;--ui-button-bg: #e5eee2;--ui-button-text: #253229;--ui-input-bg: #fbfdf9;--ui-pill-bg: #f4f8f1;--ui-tag-bg: #deebdc;--ui-scroll-track: #e8f0e5;--ui-scroll-thumb: #9db29f;--ui-shadow: 0 6px 8px rgba(48, 74, 53, .09);--text: var(--ui-text);--muted: var(--ui-muted);--faint: var(--ui-faint);--line: var(--ui-line);--cyan: var(--ui-accent);color:var(--ui-text);background:var(--ui-bg)!important}body[data-theme=beige]{color-scheme:light;--ui-bg: #eef1ef;--ui-sidebar-bg: #f8f9f8;--ui-surface: #ffffff;--ui-surface-2: #f4f7f5;--ui-text: #1c2821;--ui-muted: #536159;--ui-faint: #78827c;--ui-line: #d6ded9;--ui-accent: #347249;--ui-accent-contrast: #ffffff;--ui-button-bg: #f0f4f1;--ui-button-text: #253129;--ui-input-bg: #ffffff;--ui-pill-bg: #f8faf9;--ui-tag-bg: #e4eee7;--ui-scroll-track: #eef1ef;--ui-scroll-thumb: #abb9b0;--ui-shadow: 0 6px 8px rgba(31, 53, 39, .08);--text: var(--ui-text);--muted: var(--ui-muted);--faint: var(--ui-faint);--line: var(--ui-line);--cyan: var(--ui-accent);color:var(--ui-text);background:var(--ui-bg)!important}body[data-theme=console] .app,body[data-theme=console] .main{background:#1f1f1f}body[data-theme=console] .sidebar{background:#242424;border-right-color:#444}body[data-theme=beige] .chat-list{background:#f7f7f7;border-color:#e5e5e5}body[data-theme=beige] .chat-session{color:#191919;background:#fff;border-color:#e5e5e5;box-shadow:none}body[data-theme=beige] .chat-session span,body[data-theme=beige] .message-meta{color:#888}body[data-theme=beige] .chat-session.active{color:#191919;background:#eaf8ef;border-color:#95ec69}body[data-theme=beige] .message,body[data-theme=console] .message,body[data-theme=eye] .message{background:transparent;border-color:transparent}body[data-theme=beige] .message-bubble{color:#191919;background:#fff;border-color:#e5e5e5}body[data-theme=beige] .message.user .message-bubble{color:#191919;background:#95ec69;border-color:#95ec69}body[data-theme=console] .chat-list{background:#191919;border-color:#343434}body[data-theme=console] .chat-session{color:#f2f2f2;background:#252525;border-color:#383838;box-shadow:none}body[data-theme=console] .chat-session span,body[data-theme=console] .message-meta{color:#a8a8a8}body[data-theme=console] .chat-session.active{color:#fff;background:#2b382d;border-color:#3d7546}body[data-theme=console] .message-bubble{color:#f2f2f2;background:#2c2c2c;border-color:#383838}body[data-theme=console] .message.user .message-bubble{color:#fff;background:#2f6d3a;border-color:#2f6d3a}body[data-theme=console] .message.status-error .message-bubble{color:#ffd7dc;background:#42272d;border-color:#b75463}body[data-theme=eye] .chat-list{background:#e7eee2;border-color:#cbd8c5}body[data-theme=eye] .chat-session{color:#273229;background:#f7faf3;border-color:#d3decf;box-shadow:none}body[data-theme=eye] .chat-session span,body[data-theme=eye] .message-meta{color:#687568}body[data-theme=eye] .chat-session.active{color:#1e3424;background:#dfefd8;border-color:#87bd7e}body[data-theme=eye] .message-bubble{color:#243027;background:#f6f9f1;border-color:#d4dfcf}body[data-theme=eye] .message.user .message-bubble{color:#1c3322;background:#cde6bd;border-color:#b8d7a8}body[data-theme=eye] .message.status-error .message-bubble{color:#7a2634;background:#fae7e8;border-color:#d99aa2}
