#nexora-global-theme{position:fixed;right:16px;bottom:132px;z-index:8399;padding:8px 13px;border:1px solid #b9a5eb;border-radius:22px;background:#211a35;color:#fff;font:700 13px system-ui;cursor:pointer;box-shadow:0 4px 14px #0002}[dir=rtl] #nexora-global-theme{right:auto;left:16px}
:root[data-nexora-theme=light]{--bg:#f5f3fa!important;--background:#f5f3fa!important;--card:#fff!important;--panel:#fff!important;--surface:#fff!important;--soft:#eee9f7!important;--text:#252238!important;--muted:#57536c!important;--border:#d6cee4!important;--purple-light:#6740b0!important;--green:#12754d!important;--red:#ba2645!important}
:root[data-nexora-theme=light] body{background:#f5f3fa!important;color:#252238!important}
:root[data-nexora-theme=light] body :is(header,aside,dialog,section,article,.card,.panel,.hero,.topbar,.sidebar,.nexa-chat,.nexa-main,.nexa-topbar,.nexa-sidebar,.chat-input-container,.dashboard-quick-start,.dashboard-sections,.dashboard-main,.chat-main,.chat-input-area,.chat-messages,.chat-header,.workspace,.workspace-main,.tool-shell,.upload-area,.dropzone,[class*="-card"],[class*="-panel"],[class*="-modal"],[class*="-sidebar"],.result,.output,.modal-content){background:#fff!important;color:#252238!important;border-color:#d6cee4!important;box-shadow:0 5px 22px #34255409}
:root[data-nexora-theme=light] body :is(h1,h2,h3,h4,label,legend,strong,small,p,span,li,th,td){color:inherit}
:root[data-nexora-theme=light] body :is(p,small,.muted,.subtitle,.description,.panel-intro,.conversation-preview){color:#57536c!important}
:root[data-nexora-theme=light] body :is(input:not([type=color]),textarea,select,pre,code){background:#fcfbff!important;color:#252238!important;border-color:#c5bbd5!important}
:root[data-nexora-theme=light] body :is(a:not(.primary-button):not(.primary),.conversation-title){color:#6034a8!important}
:root[data-nexora-theme=light] body :is(.message.ai,.message.assistant,.conversation-row,.conversation-item){background:#fff!important;color:#252238!important;border-color:#d6cee4!important}
:root[data-nexora-theme=light] body .message.user{background:#7042cc!important;color:#fff!important}
:root[data-nexora-theme=light] body .message.user :is(p,span,strong,small){color:#fff!important}
:root[data-nexora-theme=light] body .conversation-item.active{background:#e7dcff!important;color:#382267!important}
:root[data-nexora-theme=light] body :is(button,.btn){border-color:#bca9dc}
:root[data-nexora-theme=light] body #nexora-global-theme,:root[data-nexora-theme=light] body #nexora-global-language{background:#fff!important;color:#352446!important}
:root[data-nexora-theme=light] #nexora-global-language select,:root[data-nexora-theme=light] #nexora-global-language option{background:#fff!important;color:#352446!important}
@media(max-width:600px){#nexora-global-theme{right:10px;bottom:114px;font-size:12px}[dir=rtl] #nexora-global-theme{right:auto;left:10px}}

/* Light palette: keep foreground and surface changes paired. */
:root[data-nexora-theme=light] body .dashboard-nexa-feature{background:linear-gradient(120deg,#f0e9ff,#e5d9fa)!important;color:#302044!important;border-color:#cbb6e9!important;box-shadow:0 8px 28px #51358012}
:root[data-nexora-theme=light] body .dashboard-nexa-feature:hover{background:linear-gradient(120deg,#e9ddfc,#dccbf5)!important;border-color:#a88bcf!important}
:root[data-nexora-theme=light] body .dashboard-nexa-feature-copy strong{color:#392052!important}
:root[data-nexora-theme=light] body .dashboard-nexa-feature-copy :is(small,span){color:#554064!important}
:root[data-nexora-theme=light] body .dashboard-nexa-feature-cta{background:#6235ad!important;color:#fff!important;border:1px solid #6235ad}
:root[data-nexora-theme=light] body .dashboard-nexa-feature-icon{color:#6942a6!important}
:root[data-nexora-theme=light] body .dashboard-main{background:#f6f5fa!important}
:root[data-nexora-theme=light] body .sidebar{background:#fff!important;border-inline-end:1px solid #ded8e8!important}
:root[data-nexora-theme=light] body .sidebar a:hover,:root[data-nexora-theme=light] body .sidebar a[aria-current=page]{background:#eae0f8!important;color:#452570!important}
:root[data-nexora-theme=light] body :is(.user-box,.dashboard-quick-actions a){background:#fff!important;color:#30263d!important;border:1px solid #ded8e8!important}
:root[data-nexora-theme=light] body :is(.user-box #userName,.dashboard-quick-actions strong){color:#30263d!important}
:root[data-nexora-theme=light] body :is(.user-box #logoutButton,.nexora-credit-trigger){background:#6235ad!important;color:#fff!important;border:1px solid #6235ad!important;box-shadow:0 4px 14px #51358018}
:root[data-nexora-theme=light] body :is(.user-box #logoutButton,.nexora-credit-trigger) :is(span,strong,small){color:#fff!important}
:root[data-nexora-theme=light] body .nexora-credit-panel{background:#fff!important;color:#30263d!important;border-color:#ded8e8!important}
:root[data-nexora-theme=light] body .nexora-credit-stat{background:#f3eef9!important;border-color:#ded8e8!important}
:root[data-nexora-theme=light] body .nexora-credit-stat strong{color:#30263d!important}
:root[data-nexora-theme=light] body .nexora-credit-stat span,:root[data-nexora-theme=light] body .nexora-credit-refresh{color:#554064!important}
:root[data-nexora-theme=light] body a.nexora-credit-buy{background:#6235ad!important;color:#fff!important}
:root[data-nexora-theme=light] body .nexora-credit-warning{background:#fff4d6!important;color:#6e4700!important;border-color:#ddbd67!important}
:root[data-nexora-theme=light] body .nexora-credit-error{color:#a51e36!important}
:root[data-nexora-theme=light] body :is(input,textarea)::placeholder{color:#6b6178!important;opacity:1}
:root[data-nexora-theme=light] body :is(a,button,input,select,textarea):focus-visible{outline:3px solid #7845bd;outline-offset:3px}

/* Component palette: projects, studios, builder, packaging and gaming. */
:root[data-nexora-theme=light]{--ink:#30263d!important;--line:#d8cfe3!important;--panel-2:#f2edf7!important;--shadow:0 8px 24px #49325e0c!important;--good:#12754d!important;--bad:#a51e36!important}
:root[data-nexora-theme=light] body :is(.stat,.file,.step,.notice,#status,.tag,.preview,.project-item,.hero-badges span,.credit,.email,.browse-games,.quick-choice,.simple-options label,.visual-hint,.game-option,.game-catalog-wrap,.catalog-total,.catalog-trust span,.catalog-tags span,.catalog-icon,.selected-services-summary,.options .recommended-option,.smart-game-choice,.detected-device,.template-thumb,.template-badges i,.search-box,.category-tabs,.advanced-settings,.sheet-visual-wrap,.sheet-stats div,.piece-result-card,.legend,.code-card,.code-card aside,.guide-section li,.save-upload,.save-fields th,.download-library-hero,.walkthrough-visuals figure){background:#f2edf7!important;color:#30263d!important;border-color:#d8cfe3!important}
:root[data-nexora-theme=light] body :is(.stat,.file,.step,.notice,#status,.hero-badges,.credit,.email,.browse-games,.quick-choice,.game-option,.catalog-total,.selected-services-summary,.options .recommended-option,.smart-game-choice,.detected-device,.template-thumb,.sheet-stats,.piece-result-card,.legend,.download-library-hero) :is(span,strong,b,i,small,p){color:#493755!important}
:root[data-nexora-theme=light] body :is(button,.btn,.top-button,.ghost-button,.secondary-button,.secondary,.ghost,.smart-secondary-link,.catalog-action,.links a,.project-item,.star,.top nav a){background:#f2edf7!important;color:#49306c!important;border-color:#cabbdd!important}
:root[data-nexora-theme=light] body :is(button,.btn,.top-button,.ghost-button,.secondary-button,.secondary,.ghost,.smart-secondary-link,.catalog-action,.links a,.project-item,.star,.top nav a) :is(span,b,strong,small,i){color:inherit!important}
:root[data-nexora-theme=light] body :is(button,.btn,.top-button,.ghost-button,.secondary-button,.secondary,.ghost,.project-item):hover{background:#e8dcf7!important;color:#392052!important}
:root[data-nexora-theme=light] body :is(.primary,.primary-button,button.active,.btn.primary,.catalog-tabs button.active,.piece-tabs button.active,.category-tabs button.active,.families button.active,.help-types button.active,.alphabet-buttons button.active,.smart-download-letters button.active,.popular-button.active,.quick-choice.active,.project-item.active,.nexora-project-rail a:first-child,#plan,#build,#download,.nexora-credit-trigger,.user-box #logoutButton){background:#6235ad!important;color:#fff!important;border-color:#6235ad!important}
:root[data-nexora-theme=light] body :is(.primary,.primary-button,button.active,.btn.primary,.quick-choice.active,.project-item.active,.nexora-project-rail a:first-child,.nexora-credit-trigger,.user-box #logoutButton) :is(span,b,strong,small,i){color:#fff!important}
:root[data-nexora-theme=light] body :is(.nexora-project-rail,.dialog,.modal){background:#fff!important;color:#30263d!important;border-color:#d8cfe3!important;box-shadow:0 8px 28px #49325e1a}
:root[data-nexora-theme=light] body .nexora-project-rail :is(a,button){background:#f2edf7!important;color:#49306c!important}
:root[data-nexora-theme=light] body .nexora-project-rail a:first-child{background:#6235ad!important;color:#fff!important}
:root[data-nexora-theme=light] body :is(.hero-badges i,.meta,.empty,.fine,.attribution,.field span,.form-grid label span,.catalog-summary,.saveFileMeta){color:#62546d!important}
:root[data-nexora-theme=light] body :is(.status.error,.notice.error,.save-lab-status.error){background:#fff0f3!important;color:#961d35!important;border-color:#d98999!important}
:root[data-nexora-theme=light] body :is(.status.ok,.save-lab-status.ok,.release-lock,.catalog-policy,.local-badge){background:#e8f5ee!important;color:#185c3c!important;border-color:#95c6aa!important}
:root[data-nexora-theme=light] body :is(.status.ok,.save-lab-status.ok,.release-lock,.catalog-policy,.local-badge) :is(p,span,b,small){color:#185c3c!important}
:root[data-nexora-theme=light] body :is(.save-warning,.save-lab-status.warn){background:#fff4d6!important;color:#6e4700!important;border-color:#ddbd67!important}
:root[data-nexora-theme=light] body :is(.drawing-stage,.sheet-visual){background:#f9f8fc!important;border-color:#d8cfe3!important}
:root[data-nexora-theme=light] body .category-tabs button.active{background:#d6f57a!important;color:#30400f!important;border-color:#8ba448!important}
:root[data-nexora-theme=light] body .category-tabs button.active :is(span,b){color:#30400f!important}
:root[data-nexora-theme=light] body .beta-pill{background:#eaf2d4!important;color:#374b0e!important}
:root[data-nexora-theme=light] body .nexora-credit-trigger__value{color:#fff!important}
:root[data-nexora-theme=light] body .star.active{background:#fff4d6!important;color:#704600!important}
:root[data-nexora-theme=light] body button:disabled{opacity:1;color:#796f85!important;background:#eeeaf2!important;border-color:#d7d0de!important;cursor:not-allowed}
