.theme-toggle{position:fixed;left:18px;bottom:20px;z-index:30;border:1px solid var(--border);background:var(--panel);color:var(--text);padding:10px 14px;font-size:12px;box-shadow:0 4px 20px #0002}
.security-form{max-width:560px;padding-bottom:35px}.support-console{display:grid;grid-template-columns:280px 1fr;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--panel);height:650px;max-height:75vh}.support-threads{overflow:auto;border-right:1px solid var(--border);padding:12px}.support-thread{width:100%;display:flex;align-items:flex-start;flex-direction:column;gap:9px;padding:16px;margin-bottom:6px;background:transparent;color:var(--text);text-align:left;min-width:0}.support-thread b,.support-thread span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.support-thread span{font-size:12px;color:var(--muted)}.support-thread.selected{background:#293623}.support-conversation{display:flex;flex-direction:column;min-width:0;min-height:0}#support-peer{padding:18px;border-bottom:1px solid var(--border);overflow-wrap:anywhere;font-size:12px}#support-transcript{flex:1;overflow:auto;padding:20px;min-height:0}.support-bubble{padding:14px 18px;border:1px solid var(--border);border-radius:10px;margin:0 10% 14px 0;overflow-wrap:anywhere}.support-bubble.support{margin:0 0 14px 10%;background:#25341e}.support-bubble p{white-space:pre-wrap;margin:8px 0}.support-bubble small{font-size:10px}#support-reply{padding:16px;border-top:1px solid var(--border);display:flex;align-items:flex-end;gap:12px}#support-reply textarea{flex:1;min-width:0;min-height:70px;resize:vertical}#unread-badge:not(:empty){background:#ca6543;color:white;border-radius:20px;padding:2px 7px;font-size:11px}
:root[data-theme="light"]{color-scheme:light;--bg:#f5f7f4;--panel:#fff;--border:#d7dfd4;--muted:#596657;--lime:#3c691b;--text:#172216}
[data-theme="light"] .primary,[data-theme="light"] .logo{background:#c7fa79;color:#182810}[data-theme="light"] .subtle,[data-theme="light"] .support-thread.selected,[data-theme="light"] .conversation.active,[data-theme="light"] .admin-tabs button.active{background:#e5eedf;color:#284319}
[data-theme="light"] input,[data-theme="light"] textarea,[data-theme="light"] select,[data-theme="light"] dialog,[data-theme="light"] #support,[data-theme="light"] aside,[data-theme="light"] .composer,[data-theme="light"] .chat-top{background:#fff;color:var(--text);border-color:var(--border)}
[data-theme="light"] .product-preview,[data-theme="light"] .windowbar,[data-theme="light"] .fake-input,[data-theme="light"] .bubble,[data-theme="light"] .message,[data-theme="light"] .support-bubble.support,[data-theme="light"] .featured,[data-theme="light"] .attachment-chip{background:#eaf0e6;color:var(--text);border-color:var(--border)}
[data-theme="light"] .support-head,[data-theme="light"] .support-toggle{background:#c7fa79;color:#182810}[data-theme="light"] .support-toggle span{color:#182810}[data-theme="light"] .save-bar,[data-theme="light"] .configuration-state{background:#e9f3e1;border-color:#c7d9b8;color:#31551d}[data-theme="light"] .field>span,[data-theme="light"] .client-guides code,[data-theme="light"] nav,[data-theme="light"] .outline,[data-theme="light"] .chat-controls button{color:var(--text)}
[data-theme="light"] dialog::backdrop{background:#17221666}[data-theme="light"] .plans article,[data-theme="light"] .features article,[data-theme="light"] .downloads article{background:var(--panel)}
@media(max-width:750px){.support-console{grid-template-columns:1fr;height:auto;max-height:none}.support-threads{max-height:200px;border-right:0;border-bottom:1px solid var(--border)}.support-conversation{height:500px}#support-reply{flex-direction:column;align-items:stretch}.theme-toggle{left:12px;bottom:16px;padding:9px 12px}}
.admin-login{max-width:460px;margin:12vh auto;padding:32px;background:var(--panel);border:1px solid var(--border);border-radius:14px}.admin-session{max-width:1150px;margin:20px auto;display:flex;justify-content:flex-end;align-items:center;gap:20px}.management-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:18px 0}.management-toolbar input{max-width:300px}.management-toolbar label input{width:100px}.management-results{overflow:auto}.management-results button{padding:8px 12px;white-space:nowrap;font-size:12px}.admin-session[hidden]{display:none}@media(max-width:750px){.admin-login{margin:10vh 18px;padding:24px}.admin-session{margin:16px 24px}.management-toolbar{align-items:stretch}}
.provider-presets{display:flex;gap:10px;margin:12px 0 24px}.model-catalog{border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:18px 0 25px;margin-bottom:28px}.model-catalog-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.model-catalog-head h3{margin:0!important}.ai-model-row{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:center;margin:12px 0}.ai-model-row input{min-width:0}.empty-models{padding:24px;border:1px dashed var(--border);border-radius:10px;margin:18px 0;color:var(--muted);font-size:12px}.model-choice{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--muted);margin-bottom:10px}.model-choice select{padding:6px 10px;max-width:240px;background:var(--panel);color:var(--text);border:1px solid var(--border);border-radius:5px}.support-window .admin-session{max-width:none;margin:12px 20px}.support-window #admin-panel{max-width:none;padding:0 20px 55px;margin:0}.support-window .admin-head,.support-window .admin-tabs,.support-window #admin-status,.support-window #admin-data{display:none!important}.support-window #refresh,.support-window #generate{display:none}.support-window #admin-panel>.actions{margin:10px 0}.support-window .editor-heading{padding:5px 0 10px}.support-window .editor-heading h2{font-size:22px;margin:7px 0}.support-window .editor-heading .eyebrow{display:none}.support-window .support-console{height:calc(100dvh - 205px);max-height:none;min-height:330px}.support-window .support-conversation{height:auto}.support-window .theme-toggle{bottom:10px}@media(max-width:750px){.ai-model-row{grid-template-columns:1fr auto}.ai-model-row input:nth-child(2){grid-column:1;grid-row:2}.ai-model-row button{grid-column:2;grid-row:1/3}.support-window .support-console{height:auto}.support-window .support-conversation{height:calc(100dvh - 260px);min-height:350px}.support-window .support-threads{max-height:160px}.provider-presets{flex-wrap:wrap}}
.plan-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px}.plan-editor-heading h3{margin:0!important}#plan-editor{grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr))}.plans{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}.plans-empty{grid-column:1/-1;padding:25px;text-align:center;border:1px dashed var(--border);border-radius:10px}
.subscription-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 24px;border-bottom:1px solid var(--border);font-size:12px;color:var(--muted);background:var(--panel);flex-shrink:0}.subscription-banner.expired{color:#e58c6d;border-color:#96583e;background:#2b1b16}.subscription-banner button{white-space:nowrap}[data-theme="light"] .subscription-banner.expired{background:#fff1e9;color:#9b3617}@media(max-width:600px){.subscription-banner{padding:8px 14px;font-size:11px}}

.chat-controls .support-toggle{position:static;inset:auto;padding:6px 10px;font-size:11px;box-shadow:none;z-index:auto;border-radius:6px}.chat-controls .support-toggle span{display:inline}

.chat-controls .theme-toggle{position:static;inset:auto;padding:6px 10px;font-size:11px;box-shadow:none;border-radius:6px}

.support-window .admin-session{display:none!important}.support-window .support-console{height:calc(100dvh - 175px)}.order-search-form{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.order-search-form input{flex:1;min-width:180px}
