.stop-icon{background:currentColor;width:18px;height:18px;display:inline-block;-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3C/svg%3E");-webkit-mask-position:50%;mask-position:50%;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.send-button[data-mode=stop]{color:#fff;background:#dc2626}.send-button[data-mode=stop]:hover{background:#b91c1c}.message-bubble.is-loading{min-width:56px}.typing-indicator{align-items:center;gap:4px;height:16px;display:inline-flex}.typing-indicator span{background:#94a3b8;border-radius:50%;width:6px;height:6px;animation:1.2s ease-in-out infinite typing-bounce}.typing-indicator span:nth-child(2){animation-delay:.15s}.typing-indicator span:nth-child(3){animation-delay:.3s}@keyframes typing-bounce{0%,60%,to{opacity:.5;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}.assistant-row .message-row,.assistant-row .message-stack{min-width:0}.assistant-row .message-stack{width:100%}.assistant-row .message-bubble{white-space:normal;min-width:0;max-width:100%;overflow:hidden}.md-code,.md-code-head,.md-code pre,.md-code pre code{min-width:0}.md-code pre{max-width:100%}.assistant-row .message-bubble>:first-child{margin-top:0}.assistant-row .message-bubble>:last-child{margin-bottom:0}.assistant-row .message-bubble p{margin:0 0 8px}.assistant-row .message-bubble h1,.assistant-row .message-bubble h2,.assistant-row .message-bubble h3,.assistant-row .message-bubble h4{margin:14px 0 8px;font-weight:680;line-height:1.35}.assistant-row .message-bubble h1{font-size:18px}.assistant-row .message-bubble h2{font-size:16px}.assistant-row .message-bubble h3{font-size:15px}.assistant-row .message-bubble h4{font-size:14px}.assistant-row .message-bubble ul,.assistant-row .message-bubble ol{margin:0 0 8px;padding-left:22px}.assistant-row .message-bubble li{margin:2px 0}.assistant-row .message-bubble blockquote{color:#334155;background:#f8fafc;border-left:3px solid #cbd5e1;border-radius:0 6px 6px 0;margin:8px 0;padding:6px 12px}.assistant-row .message-bubble hr{border:0;border-top:1px solid #e2e8f0;margin:12px 0}.assistant-row .message-bubble a{color:#2563eb;text-underline-offset:2px;text-decoration:underline}.assistant-row .message-bubble a:hover{color:#1d4ed8}.assistant-row .message-bubble :not(pre)>code{color:#0f172a;background:#eef2f7;border:1px solid #dde4ee;border-radius:4px;padding:1px 5px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px}.assistant-row .message-bubble table{border-collapse:collapse;width:100%;margin:8px 0;font-size:13px}.assistant-row .message-bubble th,.assistant-row .message-bubble td{text-align:left;border:1px solid #e2e8f0;padding:6px 10px}.assistant-row .message-bubble th{background:#f1f5f9;font-weight:600}.md-code{--code-bg:#f8fafc;--code-bg-head:#eef2f7;--code-fg:#1e293b;--code-head-fg:#475569;--code-border:#e2e8f0;background:var(--code-bg);border:1px solid var(--code-border);border-radius:10px;margin:10px 0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}:root[data-theme=dark] .md-code{--code-bg:#0f172a;--code-bg-head:#111c30;--code-fg:#e2e8f0;--code-head-fg:#cbd5e1;--code-border:#1e293b}@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .md-code{--code-bg:#0f172a;--code-bg-head:#111c30;--code-fg:#e2e8f0;--code-head-fg:#cbd5e1;--code-border:#1e293b}}.md-code{position:relative}.md-code-head{background:var(--code-bg-head);color:var(--code-head-fg);justify-content:space-between;align-items:center;padding:6px 12px;font-size:12px;display:flex}.md-code .code-lang{opacity:.85;font-family:inherit}.md-code-copy{border:1px solid var(--code-border);color:var(--code-head-fg);cursor:pointer;opacity:0;visibility:hidden;background:0 0;border-radius:6px;padding:2px 10px;font-size:12px;transition:opacity .14s,background .15s,border-color .15s,color .15s}.md-code:hover .md-code-copy,.md-code:focus-within .md-code-copy{opacity:1;visibility:visible}.md-code-copy:hover{border-color:var(--code-head-fg);color:var(--code-fg);background:#0f172a0d}:root[data-theme=dark] .md-code-copy:hover{background:#ffffff0f}@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .md-code-copy:hover{background:#ffffff0f}}.md-code pre{color:var(--code-fg);margin:0;padding:12px 14px;font-size:12.5px;line-height:1.6;overflow-x:auto}.md-code pre code{color:inherit;font-size:inherit;background:0 0;border:0;padding:0}.download-icon{background:currentColor;width:16px;height:16px;display:inline-block;-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 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");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 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");-webkit-mask-position:50%;mask-position:50%;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.image-gallery-download{z-index:4;color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(4px);background:#0f172ab3;border:0;border-radius:999px;align-items:center;gap:6px;padding:6px 12px;font-size:12px;transition:background .15s;display:inline-flex;position:absolute;top:12px;right:12px}.image-gallery-download:hover{background:#0f172ad9}.lightbox-download{color:#0f172a;cursor:pointer;z-index:10;background:#ffffffeb;border:0;border-radius:999px;align-items:center;gap:6px;padding:8px 18px;font-size:13px;display:inline-flex;position:absolute;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 6px 18px #0003}.lightbox-download:hover{background:#fff}.overflow-icon{background:currentColor;width:18px;height:18px;display:inline-block;-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='5' cy='12' r='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='19' cy='12' r='2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='5' cy='12' r='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='19' cy='12' r='2'/%3E%3C/svg%3E");-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.topbar-overflow{position:relative}.topbar-overflow-trigger,.topbar-icon-button{color:#475569;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;width:34px;height:34px;transition:background .15s,border-color .15s,color .15s;display:inline-flex}.topbar-overflow-trigger:hover,.topbar-icon-button:hover{color:#0f172a;background:#f1f5f9;border-color:#e2e8f0}.topbar-overflow-menu{z-index:50;background:#fff;border:1px solid #e2e8f0;border-radius:10px;min-width:140px;padding:6px;display:none;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 12px 28px #0f172a1f}.topbar-overflow.open .topbar-overflow-menu{display:block}.topbar-overflow-menu a{color:#0f172a;border-radius:6px;padding:8px 12px;font-size:13px;text-decoration:none;display:block}.topbar-overflow-menu a:hover{background:#f1f5f9}.empty-chat-samples{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;width:100%;max-width:720px;margin-top:24px;display:grid}.empty-chat-sample{text-align:left;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:12px;flex-direction:column;gap:4px;padding:12px 14px;transition:border-color .15s,transform .15s,box-shadow .15s;display:flex}.empty-chat-sample:hover{border-color:#cbd5e1;transform:translateY(-1px);box-shadow:0 4px 12px #0f172a0f}.empty-chat-sample strong{color:#0f172a;font-size:13px;font-weight:600}.empty-chat-sample span{color:#64748b;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12.5px;line-height:1.5;display:-webkit-box;overflow:hidden}.search-icon{background:currentColor;width:14px;height:14px;display:inline-block;-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%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");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%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.history-toolbar{flex-direction:column;gap:8px;padding:8px 12px 4px;display:flex}.history-search{color:#64748b;background:#f1f5f9;border:1px solid #0000;border-radius:8px;align-items:center;gap:6px;padding:6px 10px;transition:border-color .15s,background .15s;display:flex}.history-search:focus-within{background:#fff;border-color:#cbd5e1}.history-search input{color:#0f172a;background:0 0;border:0;outline:none;flex:1;padding:0;font-size:13px}.history-search input::placeholder{color:#94a3b8}.history-filters{flex-wrap:wrap;gap:4px;display:flex}.history-filter{color:#64748b;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:999px;padding:3px 10px;font-size:12px;transition:background .15s,color .15s,border-color .15s}.history-filter:hover{color:#334155;background:#f1f5f9}.history-filter.active{color:#fff;background:#0f172a;border-color:#0f172a}.settings-test{align-items:center;gap:12px;padding-top:4px;display:flex}.settings-test-result{color:#64748b;font-size:12.5px}.settings-test-result[data-state=success]{color:#15803d}.settings-test-result[data-state=error]{color:#b91c1c}.settings-test-result[data-state=pending]{color:#475569}.md-code pre code .hl-keyword{color:#c026d3;font-weight:600}.md-code pre code .hl-string{color:#b45309}.md-code pre code .hl-number{color:#0d9488}.md-code pre code .hl-comment{color:#64748b;font-style:italic}.md-code pre code .hl-property{color:#0369a1}.md-code pre code .hl-attr{color:#db2777}.md-code pre code .hl-tag{color:#475569}.md-code pre code .hl-function{color:#ea580c}.md-code pre code .hl-builtin{color:#0891b2;font-weight:600}.md-code pre code .hl-operator{color:#9333ea}@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .md-code pre code .hl-keyword{color:#f0abfc}:root:not([data-theme=light]) .md-code pre code .hl-string{color:#fbbf24}:root:not([data-theme=light]) .md-code pre code .hl-number{color:#5eead4}:root:not([data-theme=light]) .md-code pre code .hl-comment{color:#94a3b8}:root:not([data-theme=light]) .md-code pre code .hl-property{color:#7dd3fc}:root:not([data-theme=light]) .md-code pre code .hl-attr{color:#f9a8d4}:root:not([data-theme=light]) .md-code pre code .hl-tag{color:#cbd5e1}:root:not([data-theme=light]) .md-code pre code .hl-function{color:#fdba74}:root:not([data-theme=light]) .md-code pre code .hl-builtin{color:#67e8f9}:root:not([data-theme=light]) .md-code pre code .hl-operator{color:#d8b4fe}}:root[data-theme=dark] .md-code pre code .hl-keyword{color:#f0abfc}:root[data-theme=dark] .md-code pre code .hl-string{color:#fbbf24}:root[data-theme=dark] .md-code pre code .hl-number{color:#5eead4}:root[data-theme=dark] .md-code pre code .hl-comment{color:#94a3b8}:root[data-theme=dark] .md-code pre code .hl-property{color:#7dd3fc}:root[data-theme=dark] .md-code pre code .hl-attr{color:#f9a8d4}:root[data-theme=dark] .md-code pre code .hl-tag{color:#cbd5e1}:root[data-theme=dark] .md-code pre code .hl-function{color:#fdba74}:root[data-theme=dark] .md-code pre code .hl-builtin{color:#67e8f9}:root[data-theme=dark] .md-code pre code .hl-operator{color:#d8b4fe}
.theme-icon{background:currentColor;width:18px;height:18px;display:inline-block;-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 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E");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 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E");-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0b1220;--surface:#0f172a;--surface-2:#1e293b;--card:#111827;--ink:#e5e7eb;--ink-2:#f1f5f9;--muted:#94a3b8;--faint:#64748b;--line:#1f2a3d;--line-strong:#334155;--primary:#f1f5f9;--primary-hover:#fff;--accent:#60a5fa;--shadow:0 18px 45px #0006}}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0b1220;--surface:#0f172a;--surface-2:#1e293b;--card:#111827;--ink:#e5e7eb;--ink-2:#f1f5f9;--muted:#94a3b8;--faint:#64748b;--line:#1f2a3d;--line-strong:#334155;--primary:#f1f5f9;--primary-hover:#fff;--accent:#60a5fa;--shadow:0 18px 45px #0006}@media (prefers-color-scheme:dark){:root:not([data-theme=light]) body{background:var(--bg);color:var(--ink)}:root:not([data-theme=light]) .sidebar,:root:not([data-theme=light]) .sidebar-header,:root:not([data-theme=light]) .topbar,:root:not([data-theme=light]) .main-panel,:root:not([data-theme=light]) .composer,:root:not([data-theme=light]) .settings-panel,:root:not([data-theme=light]) .topbar-overflow-menu,:root:not([data-theme=light]) .empty-chat-sample{background:var(--surface);color:var(--ink);border-color:var(--line)}:root:not([data-theme=light]) .conversation{background:var(--bg)}:root:not([data-theme=light]) .message-bubble{background:var(--surface-2);border-color:var(--line);color:var(--ink)}:root:not([data-theme=light]) .user-row .message-bubble{color:#e8f0ff;background:#1d3a6b;border-color:#294e8a}:root:not([data-theme=light]) .history-item{color:var(--ink);background:0 0}:root:not([data-theme=light]) .history-item:hover{background:var(--surface-2)}:root:not([data-theme=light]) .history-item.active{background:var(--surface-2);color:var(--ink-2)}:root:not([data-theme=light]) .history-search{background:var(--surface-2)}:root:not([data-theme=light]) .history-search input{color:var(--ink)}:root:not([data-theme=light]) .history-filter{color:var(--muted)}:root:not([data-theme=light]) .history-filter:hover{background:var(--surface-2);color:var(--ink)}:root:not([data-theme=light]) .history-filter.active{background:var(--ink-2);color:var(--bg);border-color:var(--ink-2)}:root:not([data-theme=light]) .topbar-text-link{color:var(--muted)}:root:not([data-theme=light]) .topbar-text-link:hover{color:var(--ink)}:root:not([data-theme=light]) .topbar-icon-button,:root:not([data-theme=light]) .topbar-overflow-trigger{color:var(--muted)}:root:not([data-theme=light]) .topbar-icon-button:hover,:root:not([data-theme=light]) .topbar-overflow-trigger:hover{background:var(--surface-2);color:var(--ink);border-color:var(--line)}:root:not([data-theme=light]) .mode-tab{color:var(--muted)}:root:not([data-theme=light]) .mode-tab.active,:root:not([data-theme=light]) .new-chat-button{background:var(--ink-2);color:var(--bg)}:root:not([data-theme=light]) .composer textarea{color:var(--ink)}:root:not([data-theme=light]) .composer textarea::placeholder{color:var(--faint)}:root:not([data-theme=light]) .model-select{background:var(--surface-2);color:var(--ink);border-color:var(--line)}:root:not([data-theme=light]) .model-options{background:var(--surface);border-color:var(--line)}:root:not([data-theme=light]) .settings-dialog::backdrop{background:#0009}:root:not([data-theme=light]) .settings-panel input{background:var(--surface-2);color:var(--ink);border-color:var(--line)}:root:not([data-theme=light]) .support-card{background:var(--surface-2);border-color:var(--line);color:var(--ink)}:root:not([data-theme=light]) .empty-chat h2,:root:not([data-theme=light]) .empty-chat p,:root:not([data-theme=light]) .empty-chat-sample strong{color:var(--ink)}:root:not([data-theme=light]) .empty-chat-sample span{color:var(--muted)}:root:not([data-theme=light]) .assistant-row .message-bubble blockquote{color:#cbd5e1;background:#1e293b;border-left-color:#475569}:root:not([data-theme=light]) .assistant-row .message-bubble :not(pre)>code{color:#f1f5f9;background:#1e293b;border-color:#334155}:root:not([data-theme=light]) .assistant-row .message-bubble th{background:#1e293b}:root:not([data-theme=light]) .assistant-row .message-bubble th,:root:not([data-theme=light]) .assistant-row .message-bubble td{border-color:#334155}:root:not([data-theme=light]) .assistant-row .message-bubble a{color:var(--accent)}}:root[data-theme=dark] body{background:var(--bg);color:var(--ink)}:root[data-theme=dark] .sidebar,:root[data-theme=dark] .sidebar-header,:root[data-theme=dark] .topbar,:root[data-theme=dark] .main-panel,:root[data-theme=dark] .composer,:root[data-theme=dark] .settings-panel,:root[data-theme=dark] .topbar-overflow-menu,:root[data-theme=dark] .empty-chat-sample{background:var(--surface);color:var(--ink);border-color:var(--line)}:root[data-theme=dark] .conversation{background:var(--bg)}:root[data-theme=dark] .message-bubble{background:var(--surface-2);border-color:var(--line);color:var(--ink)}:root[data-theme=dark] .user-row .message-bubble{color:#e8f0ff;background:#1d3a6b;border-color:#294e8a}:root[data-theme=dark] .history-item{color:var(--ink);background:0 0}:root[data-theme=dark] .history-item:hover{background:var(--surface-2)}:root[data-theme=dark] .history-item.active{background:var(--surface-2);color:var(--ink-2)}:root[data-theme=dark] .history-search{background:var(--surface-2)}:root[data-theme=dark] .history-search input{color:var(--ink)}:root[data-theme=dark] .history-filter{color:var(--muted)}:root[data-theme=dark] .history-filter:hover{background:var(--surface-2);color:var(--ink)}:root[data-theme=dark] .history-filter.active{background:var(--ink-2);color:var(--bg);border-color:var(--ink-2)}:root[data-theme=dark] .topbar-text-link{color:var(--muted)}:root[data-theme=dark] .topbar-text-link:hover{color:var(--ink)}:root[data-theme=dark] .topbar-icon-button,:root[data-theme=dark] .topbar-overflow-trigger{color:var(--muted)}:root[data-theme=dark] .topbar-icon-button:hover,:root[data-theme=dark] .topbar-overflow-trigger:hover{background:var(--surface-2);color:var(--ink);border-color:var(--line)}:root[data-theme=dark] .mode-tab{color:var(--muted)}:root[data-theme=dark] .mode-tab.active,:root[data-theme=dark] .new-chat-button{background:var(--ink-2);color:var(--bg)}:root[data-theme=dark] .composer textarea{color:var(--ink)}:root[data-theme=dark] .composer textarea::placeholder{color:var(--faint)}:root[data-theme=dark] .model-select{background:var(--surface-2);color:var(--ink);border-color:var(--line)}:root[data-theme=dark] .model-options{background:var(--surface);border-color:var(--line)}:root[data-theme=dark] .settings-dialog::backdrop{background:#0009}:root[data-theme=dark] .settings-panel input{background:var(--surface-2);color:var(--ink);border-color:var(--line)}:root[data-theme=dark] .support-card{background:var(--surface-2);border-color:var(--line);color:var(--ink)}:root[data-theme=dark] .empty-chat h2,:root[data-theme=dark] .empty-chat p,:root[data-theme=dark] .empty-chat-sample strong{color:var(--ink)}:root[data-theme=dark] .empty-chat-sample span{color:var(--muted)}:root[data-theme=dark] .assistant-row .message-bubble blockquote{color:#cbd5e1;background:#1e293b;border-left-color:#475569}:root[data-theme=dark] .assistant-row .message-bubble :not(pre)>code{color:#f1f5f9;background:#1e293b;border-color:#334155}:root[data-theme=dark] .assistant-row .message-bubble th{background:#1e293b}:root[data-theme=dark] .assistant-row .message-bubble th,:root[data-theme=dark] .assistant-row .message-bubble td{border-color:#334155}:root[data-theme=dark] .assistant-row .message-bubble a{color:var(--accent)}:root[data-theme=dark] .brand-copy h1,:root:not([data-theme=light]) .brand-copy h1{color:var(--ink-2)}:root[data-theme=dark] .update-badge,:root:not([data-theme=light]) .update-badge{background:var(--surface-2);color:var(--muted)}:root[data-theme=dark] .primary-button,:root:not([data-theme=light]) .primary-button{background:var(--ink-2);color:var(--bg)}:root[data-theme=dark] .primary-button:hover,:root:not([data-theme=light]) .primary-button:hover{color:#000;background:#fff}:root[data-theme=dark] .secondary-button,:root:not([data-theme=light]) .secondary-button{background:var(--surface-2);color:var(--ink);border-color:var(--line)}:root[data-theme=dark] .secondary-button:hover,:root:not([data-theme=light]) .secondary-button:hover{background:var(--surface)}:root[data-theme=dark] .tool-panel,:root:not([data-theme=light]) .tool-panel{background:var(--surface);color:var(--ink)}:root[data-theme=dark] .tool-panel input[type=text],:root[data-theme=dark] .tool-panel input[type=search],:root[data-theme=dark] .tool-panel input[type=number],:root[data-theme=dark] .tool-panel textarea,:root:not([data-theme=light]) .tool-panel input[type=text],:root:not([data-theme=light]) .tool-panel input[type=search],:root:not([data-theme=light]) .tool-panel input[type=number],:root:not([data-theme=light]) .tool-panel textarea{background:var(--surface-2);color:var(--ink);border-color:var(--line)}:root[data-theme=dark] .tool-panel textarea::placeholder,:root:not([data-theme=light]) .tool-panel textarea::placeholder{color:var(--faint)}:root[data-theme=dark] .generation-select,:root[data-theme=dark] .generation-select-label,:root:not([data-theme=light]) .generation-select,:root:not([data-theme=light]) .generation-select-label{background:var(--surface-2);color:var(--ink);border-color:var(--line)}:root[data-theme=dark] .generation-select-options,:root:not([data-theme=light]) .generation-select-options{background:var(--surface);border-color:var(--line);color:var(--ink)}:root[data-theme=dark] .status-card,:root:not([data-theme=light]) .status-card,:root[data-theme=dark] .image-reference,:root:not([data-theme=light]) .image-reference{background:var(--surface-2);border-color:var(--line);color:var(--ink)}:root[data-theme=dark] .toolbar,:root:not([data-theme=light]) .toolbar{background:var(--surface);border-color:var(--line)}:root[data-theme=dark] .context-line strong,:root[data-theme=dark] .context-line span,:root:not([data-theme=light]) .context-line strong,:root:not([data-theme=light]) .context-line span{color:var(--ink)}:root[data-theme=dark] .toast,:root:not([data-theme=light]) .toast{background:var(--ink-2);color:var(--bg)}@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .gallery-page,:root:not([data-theme=light]) .standalone-help,:root:not([data-theme=light]) .help-page-body,:root:not([data-theme=light]) .palm-page,:root:not([data-theme=light]) .chibi-page,:root:not([data-theme=light]) .creative-page,:root:not([data-theme=light]) .travel-page,:root:not([data-theme=light]) .more-page{background:var(--bg);color:var(--ink)}:root:not([data-theme=light]) .gallery-topbar,:root:not([data-theme=light]) .gallery-sidebar,:root:not([data-theme=light]) .gallery-card,:root:not([data-theme=light]) .gallery-detail-dialog,:root:not([data-theme=light]) .gallery-detail,:root:not([data-theme=light]) .gallery-prompt-panel,:root:not([data-theme=light]) .help-contact,:root:not([data-theme=light]) .help-doc section,:root:not([data-theme=light]) .chibi-control-column,:root:not([data-theme=light]) .chibi-upload-shell,:root:not([data-theme=light]) .chibi-example-item,:root:not([data-theme=light]) .creative-control-column,:root:not([data-theme=light]) .creative-result-actions,:root:not([data-theme=light]) [class*=-card],:root:not([data-theme=light]) [class*=-panel]{background:var(--surface);border-color:var(--line);color:var(--ink)}:root:not([data-theme=light]) .gallery-search input,:root:not([data-theme=light]) .creative-theme-input,:root:not([data-theme=light]) .creative-image-prompt,:root:not([data-theme=light]) .creative-video-prompt{background:var(--surface-2);color:var(--ink);border-color:var(--line)}:root:not([data-theme=light]) .gallery-search input::placeholder{color:var(--faint)}:root:not([data-theme=light]) .gallery-category-list button{color:var(--muted)}:root:not([data-theme=light]) .gallery-category-list button:hover,:root:not([data-theme=light]) .gallery-category-list button.active{background:var(--surface-2);color:var(--ink)}:root:not([data-theme=light]) .help-doc h2,:root:not([data-theme=light]) .help-doc h3,:root:not([data-theme=light]) .help-doc p,:root:not([data-theme=light]) .gallery-card h2,:root:not([data-theme=light]) .gallery-card p,:root:not([data-theme=light]) .gallery-summary p{color:var(--ink)}}:root[data-theme=dark] .gallery-page,:root[data-theme=dark] .standalone-help,:root[data-theme=dark] .help-page-body,:root[data-theme=dark] .palm-page,:root[data-theme=dark] .chibi-page,:root[data-theme=dark] .creative-page,:root[data-theme=dark] .travel-page,:root[data-theme=dark] .more-page{background:var(--bg);color:var(--ink)}:root[data-theme=dark] .gallery-topbar,:root[data-theme=dark] .gallery-sidebar,:root[data-theme=dark] .gallery-card,:root[data-theme=dark] .gallery-detail-dialog,:root[data-theme=dark] .gallery-detail,:root[data-theme=dark] .gallery-prompt-panel,:root[data-theme=dark] .help-contact,:root[data-theme=dark] .help-doc section,:root[data-theme=dark] .chibi-control-column,:root[data-theme=dark] .chibi-upload-shell,:root[data-theme=dark] .chibi-example-item,:root[data-theme=dark] .creative-control-column,:root[data-theme=dark] .creative-result-actions,:root[data-theme=dark] [class*=-card],:root[data-theme=dark] [class*=-panel]{background:var(--surface);border-color:var(--line);color:var(--ink)}:root[data-theme=dark] .gallery-search input,:root[data-theme=dark] .creative-theme-input,:root[data-theme=dark] .creative-image-prompt,:root[data-theme=dark] .creative-video-prompt{background:var(--surface-2);color:var(--ink);border-color:var(--line)}:root[data-theme=dark] .gallery-search input::placeholder{color:var(--faint)}:root[data-theme=dark] .gallery-category-list button{color:var(--muted)}:root[data-theme=dark] .gallery-category-list button:hover,:root[data-theme=dark] .gallery-category-list button.active{background:var(--surface-2);color:var(--ink)}:root[data-theme=dark] .help-doc h2,:root[data-theme=dark] .help-doc h3,:root[data-theme=dark] .help-doc p,:root[data-theme=dark] .gallery-card h2,:root[data-theme=dark] .gallery-card p,:root[data-theme=dark] .gallery-summary p{color:var(--ink)}@media (max-width:760px) and (prefers-color-scheme:dark){:root:not([data-theme=light]) .sidebar{background:var(--surface)}:root:not([data-theme=light]) .main-panel{background:var(--bg)}:root:not([data-theme=light]) .history-item{background:var(--surface-2)}:root:not([data-theme=light]) .settings-button{background:var(--surface-2);color:var(--ink)}}@media (max-width:760px){:root[data-theme=dark] .sidebar{background:var(--surface)}:root[data-theme=dark] .main-panel{background:var(--bg)}:root[data-theme=dark] .history-item{background:var(--surface-2)}:root[data-theme=dark] .settings-button{background:var(--surface-2);color:var(--ink)}}@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .support-card strong{color:var(--ink)}:root:not([data-theme=light]) .support-card span{color:var(--muted)}}:root[data-theme=dark] .support-card strong{color:var(--ink)}:root[data-theme=dark] .support-card span{color:var(--muted)}
