:root{color-scheme:light;--bg: #ffffff;--surface: #f7f9fc;--surface-2: #f1f5f9;--card: #ffffff;--ink: #0f172a;--ink-2: #1f2937;--muted: #64748b;--faint: #94a3b8;--line: #e2e8f0;--line-strong: #cbd5e1;--primary: #111827;--primary-hover: #020617;--accent: #2563eb;--danger: #b91c1c;--star: #f59e0b;--shadow: 0 18px 45px rgba(15, 23, 42, .08);--radius: 10px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif}html,body{height:100%}*{box-sizing:border-box}body{min-width:320px;height:100vh;margin:0;overflow:hidden;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}html.help-page-root,html.help-page-root body,body.help-page-body{height:auto;min-height:100vh;overflow-x:hidden;overflow-y:auto}#helpApp{min-height:100vh}button,textarea,input,select{font:inherit}button{border:0;color:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}*{scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}*::-webkit-scrollbar{width:8px;height:8px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background:#cbd5e1;border:2px solid transparent;border-radius:999px;background-clip:padding-box}*::-webkit-scrollbar-thumb:hover{background:#94a3b8;border:2px solid transparent;background-clip:padding-box}.app-shell{display:grid;grid-template-columns:280px minmax(0,1fr);height:100vh;min-height:0;background:var(--bg);overflow:hidden}.sidebar{display:flex;height:100vh;min-width:0;min-height:0;flex-direction:column;background:linear-gradient(180deg,#f8fafc,#f3f6fb);border-right:1px solid var(--line)}.sidebar-header,.topbar{flex:0 0 72px;height:72px;border-bottom:1px solid var(--line)}.sidebar-header{display:flex;align-items:center;justify-content:flex-start;padding:0 18px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius)}.icon-button:hover,.settings-button:hover,.history-item:hover,.model-select:hover,.new-chat-button:hover,.secondary-button:hover{border-color:var(--line-strong);background:#fff}.history-list{display:flex;flex:1;flex-direction:column;gap:6px;min-height:0;padding:12px;overflow-y:auto}.empty-history{display:grid;place-items:center;min-height:120px;color:#94a3b8;font-size:13px;font-weight:650}.history-item{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;min-height:56px;padding:9px 10px;text-align:left;background:transparent;border:1px solid transparent;border-radius:var(--radius)}.history-item.active{background:#fff;border-color:var(--line);box-shadow:0 8px 22px #0f172a0d}.history-item>.icon{color:#8aa0bd}.history-copy{display:grid;gap:5px;min-width:0}.history-copy strong{overflow:hidden;color:#0f172a;font-size:13px;font-weight:700;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.history-copy span{color:#8aa0bd;font-size:12px;font-weight:640}.history-actions{display:inline-flex;gap:4px;justify-content:center}.history-action{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;color:#b6c3d4;border-radius:7px}.history-action:hover{background:#f1f5f9;color:#64748b}.delete-action:hover{color:var(--danger)}.star-icon{width:18px;height:18px}.star-icon.starred{color:var(--star)}.sidebar-footer{padding:14px;border-top:1px solid var(--line)}.settings-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;height:42px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);color:#334155;font-size:13px;font-weight:700}.main-panel{display:flex;min-width:0;height:100vh;min-height:0;flex-direction:column;background:linear-gradient(180deg,#f8fafcb8,#fff0 170px),#fff}.topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:0 22px}.product-mark{display:inline-flex;align-items:center;gap:11px;min-width:0}.brand-logo{width:60px;height:60px;flex:0 0 60px;object-fit:contain}.empty-logo{width:34px;height:34px}.product-mark h1{min-width:0;margin:0;overflow:hidden;color:#111827;font-size:16px;font-weight:720;letter-spacing:0;line-height:1;text-overflow:ellipsis;white-space:nowrap}.brand-copy{display:grid;min-width:0;gap:6px}.update-badge{display:inline-flex;align-items:center;width:max-content;max-width:100%;min-height:20px;padding:0 8px;color:#2563eb;background:#eff6ff;border:1px solid #bfdbfe;border-radius:999px;font-size:11px;font-weight:700;line-height:1;white-space:nowrap}.mode-tabs{display:inline-flex;align-items:center;justify-self:center;gap:8px;width:fit-content;padding:4px;background:#f1f5f9;border:1px solid var(--line);border-radius:10px}.mode-tab{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:36px;min-width:84px;padding:0 12px;background:transparent;border-radius:8px;color:#475569;font-size:14px;font-weight:700}.mode-tab.active{background:var(--primary);color:#fff;box-shadow:0 8px 20px #0f172a2e}.topbar-actions{display:flex;align-items:center;gap:10px;justify-content:flex-end}.topbar-link{display:inline-flex;align-items:center;justify-content:center;height:34px;padding:0 12px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);color:#334155;font-size:13px;font-weight:680;text-decoration:none}.topbar-link:hover{border-color:var(--line-strong);background:#f8fafc}.new-chat-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:34px;padding:0 12px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);color:#334155;font-size:13px;font-weight:680}.workspace{display:flex;min-height:0;flex:1;flex-direction:column;overflow:hidden}.toolbar{display:flex;flex:0 0 48px;align-items:center;justify-content:space-between;height:48px;padding:0 22px;border-bottom:1px solid var(--line)}.context-line{display:flex;align-items:center;gap:10px;max-width:52vw;overflow:hidden;color:#64748b;font-size:13px;font-weight:700;white-space:nowrap}.context-line strong,.context-line span{overflow:hidden;text-overflow:ellipsis}.context-line strong{flex:0 0 auto;color:#64748b;font:inherit}.context-line span{min-width:0;color:#94a3b8;font-weight:650}.context-line span:not(:empty):before{color:#cbd5e1;content:"/";margin-right:10px}.model-menu{position:relative}.model-select{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:146px;height:34px;padding:0 12px;background:#fff;border:1px solid var(--line-strong);border-radius:var(--radius);color:#334155;font-size:13px;font-weight:700}.model-options{position:absolute;z-index:20;top:calc(100% + 8px);right:0;display:none;min-width:180px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.model-options.open{display:grid;gap:4px}.model-options button{height:34px;padding:0 10px;text-align:left;background:transparent;border-radius:7px;color:#334155;font-size:13px;font-weight:680}.model-options button:hover,.model-options button.active{background:#f1f5f9;color:#0f172a}.view{display:none;min-height:0;flex:1}.view-active{display:flex}#chatView{flex-direction:column;overflow:hidden}.conversation{flex:1;width:min(1280px,calc(100% - 48px));min-height:0;margin:0 auto;padding:22px 8px 18px;overflow-y:auto}.empty-chat{display:grid;place-items:center;width:min(420px,100%);margin:9vh auto 0;text-align:center}.empty-chat h2{margin:18px 0 8px;font-size:22px;letter-spacing:0}.empty-chat p{max-width:320px;margin:0;color:var(--muted);font-size:14px;line-height:1.7}.message-row{display:flex;width:100%;margin:0}.message-row+.message-row{margin-top:16px}.message-stack{display:grid;gap:8px;max-width:min(860px,78%)}.assistant-row{justify-content:flex-start}.user-row{justify-content:flex-end}.message-bubble{width:fit-content;max-width:100%;padding:12px 15px;background:#f1f5f9;border:1px solid #e9eef5;border-radius:12px;color:#0f172a;font-size:14px;font-weight:450;line-height:1.68;white-space:pre-wrap;word-break:break-word}.user-row .message-bubble{background:#eef4fb;border-color:#d8e3f0;color:#162033;font-weight:520;box-shadow:none}.message-bubble strong{font-weight:680}.message-actions{display:flex;gap:10px;padding-left:8px}.message-actions button{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;background:transparent;border-radius:7px;color:#8aa0bd}.message-actions button:hover{background:#f1f5f9;color:#475569}.composer{display:grid;flex:0 0 auto;grid-template-columns:1fr 44px;gap:10px;align-items:end;width:min(1160px,calc(100% - 56px));min-height:58px;margin:12px auto 24px;padding:7px;background:#fff;border:1px solid var(--line-strong);border-radius:14px;box-shadow:0 12px 30px #0f172a0f}.composer:focus-within{border-color:#94a3b8;box-shadow:0 16px 34px #0f172a1a}.composer textarea{width:100%;max-height:180px;min-height:42px;padding:10px 12px;resize:none;border:0;outline:0;background:transparent;color:#111827;font-size:14px;font-weight:500;line-height:1.5}.composer textarea::placeholder{color:#9aa9bd}.send-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;background:transparent;border-radius:10px;color:#111827}.send-button:hover{background:#f1f5f9}.send-button:disabled{color:#cbd5e1;background:transparent;opacity:1}.send-button:disabled:hover{background:transparent}.tool-view{justify-content:flex-start;align-items:flex-start;padding:22px 28px 40px;overflow:auto}.help-doc{display:grid;gap:18px;width:min(900px,100%);margin:0 auto}.help-doc header,.help-doc section{padding-bottom:16px;border-bottom:1px solid var(--line)}.help-doc h2,.help-doc h3,.help-doc p{margin:0}.help-doc h2{color:#111827;font-size:22px;font-weight:760}.help-doc h3{color:#111827;font-size:15px;font-weight:740}.help-doc p{margin-top:8px;color:#475569;font-size:14px;line-height:1.75}.standalone-help{min-height:100vh;background:#fff}.help-page-head{display:flex;align-items:center;justify-content:space-between;height:72px;padding:0 28px;border-bottom:1px solid var(--line)}.help-doc-page{padding:28px}.help-contact{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:28px;align-items:start}.help-contact img{width:180px;max-width:100%;height:auto;max-height:none;border:1px solid var(--line);border-radius:var(--radius);object-fit:contain}.contact-list{display:grid;gap:8px;margin-top:12px}.contact-list a{width:fit-content;color:#2563eb;font-size:14px;font-weight:700;text-decoration:none}.contact-list a:hover{text-decoration:underline}.tool-panel{display:grid;gap:16px;width:min(980px,100%);height:fit-content;margin:0 auto;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}.tool-panel h2,.settings-panel h2{margin:0 0 4px;font-size:18px;font-weight:760;letter-spacing:0}.tool-panel p,.settings-panel p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}.tool-panel textarea,.tool-panel input,.settings-panel input,.settings-panel select,.tool-panel select{width:100%;border:1px solid var(--line-strong);border-radius:var(--radius);background:#fff;color:var(--ink);outline:0}.tool-panel textarea{min-height:96px;padding:11px 12px;resize:vertical;font-size:13px;line-height:1.55}.tool-row{display:grid;grid-template-columns:160px auto;gap:10px;justify-content:start}.generation-param-grid{align-items:end;grid-template-columns:repeat(3,minmax(160px,290px))}.custom-param-field.hidden{display:none}.tool-panel label{display:grid;gap:6px;color:#475569;font-size:12px;font-weight:700}.tool-panel input{height:36px;padding:0 10px;font-size:13px}.generation-submit-row{grid-template-columns:auto}.tool-panel select{height:36px;padding:0 10px;font-size:13px}.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 14px;border-radius:var(--radius);font-size:13px;font-weight:700}.primary-button{background:var(--primary);color:#fff}.primary-button:hover{background:var(--primary-hover)}.secondary-button{background:#fff;border:1px solid var(--line);color:#334155}.result-panel{min-height:96px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;overflow:hidden}.result-panel:empty:before{display:grid;place-items:center;min-height:96px;color:var(--faint);font-size:13px;content:"生成结果会显示在这里"}.result-panel img,.result-panel video{display:block;width:100%;max-height:560px;object-fit:contain;background:#f8fafc}.result-panel img{cursor:zoom-in}.image-gallery{position:relative;display:grid;background:#0f172a}.image-gallery-viewport{overflow:hidden}.image-gallery-track{display:flex;transition:transform .22s ease}.image-gallery-slide{display:grid;place-items:center;min-width:100%;min-height:460px;margin:0;background:#0f172a}.image-gallery-slide img{width:auto;max-width:100%;max-height:680px;margin:0 auto}.image-gallery-nav{position:absolute;top:50%;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;transform:translateY(-50%);background:#0f172ab8;border:1px solid rgba(255,255,255,.18);border-radius:50%;color:#fff;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.image-gallery-nav:hover{background:#0f172ae6}.image-gallery-prev{left:14px}.image-gallery-next{right:14px}.image-gallery-next .icon{transform:rotate(180deg)}.image-gallery-dots{position:absolute;right:18px;bottom:16px;left:18px;display:flex;justify-content:center;gap:8px;pointer-events:none}.image-gallery-dots button{width:8px;height:8px;padding:0;pointer-events:auto;background:#ffffff73;border-radius:50%}.image-gallery-dots button.active{width:22px;background:#fff;border-radius:999px}.image-gallery-counter{position:absolute;top:14px;right:14px;padding:5px 9px;background:#0f172ab8;border:1px solid rgba(255,255,255,.16);border-radius:999px;color:#fff;font-size:12px;font-weight:760;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.status-card{min-height:120px;margin:0;padding:18px;color:var(--muted);font-size:13px;line-height:1.7;white-space:pre-wrap}.status-card.error{color:var(--danger)}.video-result{display:grid;gap:0;background:#fff}.video-player-frame{position:relative;display:grid;background:#f8fafc}.video-player-frame video{aspect-ratio:16 / 9}.video-player-frame a{position:absolute;top:10px;right:10px;padding:5px 9px;background:#0f172ab8;border:1px solid rgba(255,255,255,.16);border-radius:999px;color:#fff;font-size:12px;font-weight:680;text-decoration:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.video-task-card{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;min-height:140px;align-items:start;padding:18px;background:linear-gradient(135deg,#2563eb14,#0f172a00 42%),#f8fafc}.video-task-card.failed{background:linear-gradient(135deg,#ef444414,#0f172a00 42%),#fff7f7}.video-task-card strong{display:block;color:var(--ink);font-size:15px;font-weight:820}.video-task-card p{max-width:560px;margin:6px 0 0;color:var(--muted);font-size:13px;font-weight:650;line-height:1.65}.task-spinner{display:inline-block;width:24px;height:24px;margin-top:2px;border:3px solid #dbeafe;border-top-color:var(--accent);border-radius:50%;animation:task-spin .9s linear infinite}.task-inline-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.task-inline-meta span{max-width:100%;overflow:hidden;padding:6px 9px;background:#fff;border:1px solid var(--line);border-radius:999px;color:#475569;font-size:12px;font-weight:760;text-overflow:ellipsis;white-space:nowrap}.task-progress{display:flex;align-items:center;gap:10px;max-width:520px;margin-top:12px}.task-progress-track{position:relative;flex:1;height:10px;overflow:hidden;background:#dbeafe;border-radius:999px}.task-progress-track span{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,#2563eb,#14b8a6);border-radius:inherit}.task-progress>strong{min-width:44px;color:#475569;font-size:12px;text-align:right}.task-progress.is-empty span{color:var(--muted);font-size:12px;font-weight:700}.task-actions{display:flex;gap:8px;margin-top:14px}.compact-button{min-height:34px;padding:0 14px;border-radius:10px;font-size:12px}@keyframes task-spin{to{transform:rotate(360deg)}}.result-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:14px;border-top:1px solid var(--line)}.result-meta div{display:grid;gap:5px;min-width:0;padding:10px;background:#f8fafc;border:1px solid var(--line);border-radius:10px}.result-meta span{color:var(--muted);font-size:12px;font-weight:700}.result-meta strong{overflow:hidden;color:var(--ink);font-size:13px;font-weight:760;text-overflow:ellipsis;white-space:nowrap}.video-result details{padding:0 14px 14px}.video-result summary{width:fit-content;cursor:pointer;color:#475569;font-size:13px;font-weight:760}.video-result pre{max-height:260px;max-width:100%;margin:12px 0 0;overflow:auto;padding:12px;background:#0f172a;border-radius:10px;color:#dbeafe;font-size:12px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}.settings-dialog{width:min(520px,calc(100vw - 32px));padding:0;border:0;border-radius:18px;box-shadow:0 24px 70px #0f172a38}.settings-dialog::backdrop{background:#0f172a5c;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.image-lightbox{width:100vw;max-width:none;height:100vh;max-height:none;margin:0;padding:0;overflow:hidden;background:#020617f0;border:0}.image-lightbox::backdrop{background:#020617b8;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.image-lightbox[open]{display:grid;place-items:center}.image-lightbox img{max-width:calc(100vw - 112px);max-height:calc(100vh - 88px);object-fit:contain;cursor:zoom-out}.lightbox-close,.lightbox-nav{position:fixed;z-index:2;display:inline-flex;align-items:center;justify-content:center;background:#0f172ab8;border:1px solid rgba(255,255,255,.16);color:#fff;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.lightbox-close{top:18px;right:18px;width:42px;height:42px;border-radius:50%}.lightbox-nav{top:50%;width:48px;height:48px;transform:translateY(-50%);border-radius:50%}.lightbox-nav:hover,.lightbox-close:hover{background:#0f172aeb}.lightbox-prev{left:22px}.lightbox-next{right:22px}.lightbox-next .icon{transform:rotate(180deg)}.lightbox-counter{position:fixed;bottom:20px;left:50%;z-index:2;transform:translate(-50%);padding:6px 11px;background:#0f172ab8;border:1px solid rgba(255,255,255,.16);border-radius:999px;color:#fff;font-size:13px;font-weight:760;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.settings-panel{display:grid;gap:18px;padding:22px;background:#fff}.settings-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.settings-panel label{display:grid;gap:8px;color:#334155;font-size:13px;font-weight:760}.settings-panel input,.settings-panel select{height:42px;padding:0 12px;font-size:14px;font-weight:520}.support-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;background:#f8fafc;border:1px solid var(--line);border-radius:var(--radius)}.support-card div{display:grid;gap:3px;min-width:0}.support-card strong{color:#111827;font-size:13px;font-weight:740}.support-card span{color:var(--muted);font-size:12px}.support-card a{flex:0 0 auto;color:#2563eb;font-size:13px;font-weight:720;text-decoration:none}.support-card a:hover{text-decoration:underline}.settings-actions{display:flex;justify-content:space-between;gap:12px;padding-top:4px}.toast{position:fixed;left:50%;bottom:26px;z-index:50;transform:translate(-50%,12px);padding:10px 14px;pointer-events:none;opacity:0;background:#111827;border-radius:999px;color:#fff;font-size:13px;font-weight:650;transition:opacity .16s ease,transform .16s ease}.toast.show{transform:translate(-50%);opacity:1}.icon{display:inline-block;width:20px;height:20px;flex:0 0 auto;background:currentColor;mask-repeat:no-repeat;mask-position:center;mask-size:contain;-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:contain}.history-icon{mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 4v5h5'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 4v5h5'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E")}.chevron-left{mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E")}.chevron-down{width:16px;height:16px;mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}.chat-icon{mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3C/svg%3E")}.image-icon{mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E")}.video-icon{mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16 13 5 3V8l-5 3'/%3E%3Crect x='3' y='6' width='13' height='12' rx='2'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16 13 5 3V8l-5 3'/%3E%3Crect x='3' y='6' width='13' height='12' rx='2'/%3E%3C/svg%3E")}.star-icon{mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 2.7 2.8 5.7 6.3.9-4.6 4.5 1.1 6.3-5.6-3-5.6 3 1.1-6.3L2.9 9.3l6.3-.9z'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 2.7 2.8 5.7 6.3.9-4.6 4.5 1.1 6.3-5.6-3-5.6 3 1.1-6.3L2.9 9.3l6.3-.9z'/%3E%3C/svg%3E")}.trash-icon{width:18px;height:18px;mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v5'/%3E%3Cpath d='M14 11v5'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v5'/%3E%3Cpath d='M14 11v5'/%3E%3C/svg%3E")}.copy-icon{mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E")}.refresh-icon{mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 12a9 9 0 0 0-15.3-6.4L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 12a9 9 0 0 0-15.3-6.4L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E")}.settings-icon{mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7z'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.2a1.7 1.7 0 0 0-1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.2a1.7 1.7 0 0 0 1.5-1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3h.1a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.2a1.7 1.7 0 0 0 1 1.5h.1a1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8v.1a1.7 1.7 0 0 0 1.5 1h.2a2 2 0 1 1 0 4H21a1.7 1.7 0 0 0-1.6 1z'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7z'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.2a1.7 1.7 0 0 0-1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.2a1.7 1.7 0 0 0 1.5-1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3h.1a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.2a1.7 1.7 0 0 0 1 1.5h.1a1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8v.1a1.7 1.7 0 0 0 1.5 1h.2a2 2 0 1 1 0 4H21a1.7 1.7 0 0 0-1.6 1z'/%3E%3C/svg%3E")}.send-icon{width:24px;height:24px;mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m22 2-7 20-4-9-9-4z'/%3E%3Cpath d='M22 2 11 13'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m22 2-7 20-4-9-9-4z'/%3E%3Cpath d='M22 2 11 13'/%3E%3C/svg%3E")}.plus-icon{width:18px;height:18px;mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")}.close-icon{mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E")}@media(max-width:1040px){.app-shell{grid-template-columns:280px minmax(0,1fr)}.topbar{grid-template-columns:minmax(0,1fr) auto;padding:0 18px}.mode-tab{min-width:80px}.new-chat-button span:last-child{display:none}}@media(max-width:760px){body{overflow:auto}.app-shell{display:flex;min-height:100vh;flex-direction:column}.sidebar{border-right:0;border-bottom:1px solid var(--line)}.history-list{display:grid;grid-auto-columns:minmax(220px,1fr);grid-auto-flow:column;padding:12px;overflow-x:auto}.sidebar-footer{display:none}.topbar{grid-template-columns:1fr auto;height:auto;gap:12px;padding:12px}.mode-tabs{grid-column:1 / -1;width:100%}.topbar-actions{justify-content:flex-end}.mode-tab{flex:1;min-width:0}.toolbar{height:54px;padding:0 12px}.conversation{padding:22px 14px}.message-stack{max-width:92%}.composer{width:calc(100% - 24px);margin-bottom:14px}.tool-view{padding:18px 14px 28px}.tool-panel{width:100%;padding:0}.image-gallery-slide{min-height:300px}.image-gallery-slide img{max-height:520px}.image-gallery-nav{width:36px;height:36px}.image-gallery-prev{left:10px}.image-gallery-next{right:10px}.image-lightbox img{max-width:calc(100vw - 28px);max-height:calc(100vh - 112px)}.lightbox-nav{top:auto;bottom:18px;width:42px;height:42px;transform:none}.lightbox-prev{left:18px}.lightbox-next{right:18px}.tool-row,.generation-param-grid,.result-meta{grid-template-columns:1fr}.help-page-head{height:auto;gap:12px;padding:14px}.help-doc-page{padding:18px 14px}.help-contact{grid-template-columns:1fr}}
