:root[data-panel-theme=ocean]{--ui-bg:#14181e;--ui-surface:#20262e;--ui-raised:#2b343f;--ui-input:#171d25;--ui-line:#424e5b;--ui-text:#f1f5fa;--ui-muted:#b0bccb;--ui-primary:#68b9ef;--ui-info:#91cff7;--ui-gold:#edcc7c;--theme-button:#226b9c;color-scheme:dark}
:root[data-panel-theme=emerald]{--theme-button:#128362}
:root[data-panel-theme=pearl]{--ui-bg:#eef2f4;--ui-surface:#fff;--ui-raised:#e5ebef;--ui-input:#f8fafb;--ui-line:#bdcbd2;--ui-text:#17252c;--ui-muted:#536873;--ui-primary:#087b73;--ui-info:#195f9b;--ui-gold:#805b0d;--ui-danger:#b62040;--theme-button:#087b73;color-scheme:light}
html[data-panel-theme] .tb-topbar,html[data-panel-theme] .tb-drawer{background:var(--ui-surface)}
html[data-panel-theme] .tb-profile,html[data-panel-theme] .tb-balance,html[data-panel-theme] .tb-menu-btn,html[data-panel-theme] .tb-icon-btn,html[data-panel-theme] .tb-close,html[data-panel-theme] .tb-nav-icon{background:var(--ui-raised);color:var(--ui-text)}
html[data-panel-theme] .tb-balance strong,html[data-panel-theme] .tb-brand-sub,html[data-panel-theme] .tb-nav-link,html[data-panel-theme] .tb-profile-name{color:var(--ui-text)}
html[data-panel-theme] .tb-brand-main{background-image:linear-gradient(100deg,var(--ui-text),var(--ui-primary),var(--ui-gold),var(--ui-text))}
html[data-panel-theme] .panel-app th{background:var(--ui-raised);color:var(--ui-muted)}
html[data-panel-theme] .panel-app button[class*="bg-blue-"],html[data-panel-theme] .panel-app button[class*="bg-indigo-"],html[data-panel-theme] .panel-app button[class*="bg-emerald-"],html[data-panel-theme] .panel-app .r-submit{background:var(--theme-button)!important;color:white!important}
html[data-panel-theme=pearl] .panel-app .text-white,html[data-panel-theme=pearl] .panel-app .text-gray-100,html[data-panel-theme=pearl] .panel-app .text-gray-200,html[data-panel-theme=pearl] .panel-app .text-gray-300{color:var(--ui-text)}
html[data-panel-theme] .panel-app .product-card,html[data-panel-theme] .panel-app .h-license-dialog,html[data-panel-theme] .panel-app .api-settings-section,html[data-panel-theme] .panel-app .tb-bottom-nav{background:var(--ui-surface)!important;color:var(--ui-text);border-color:var(--ui-line)}
html[data-panel-theme] .access-page:not(.legal-page){background:var(--ui-bg);color:var(--ui-text);--access-ink:var(--ui-text);--access-muted:var(--ui-muted);--access-line:var(--ui-line);--access-accent:var(--ui-primary);color-scheme:inherit}
html[data-panel-theme] .access-page .access-header,html[data-panel-theme] .access-page .access-form-panel{background:var(--ui-surface);border-color:var(--ui-line)}
html[data-panel-theme] .access-page .access-input input{background:var(--ui-input);color:var(--ui-text);border-color:var(--ui-line)}
html[data-panel-theme] .access-page .access-submit{background:var(--theme-button)}
html[data-panel-theme] .access-page .access-brand-name,html[data-panel-theme] .access-page .access-login-mark{color:var(--ui-primary)}
html[data-panel-theme] .access-page .access-brand-caption{color:var(--ui-gold)}
.theme-options{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.theme-option{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid var(--ui-line);border-radius:6px;cursor:pointer}.theme-option:has(input:checked){border-color:var(--ui-primary);outline:1px solid var(--ui-primary)}.theme-swatch{width:28px;height:28px;border-radius:50%;border:1px solid #87939b;background:var(--swatch)}
html[data-panel-theme] .panel-app .product-list-card,html[data-panel-theme] .panel-app .h-keybar,html[data-panel-theme] .panel-app .r-request,html[data-panel-theme] .panel-app .tb-product-dialog,html[data-panel-theme] .panel-app .tb-redeem-card,html[data-panel-theme] .panel-app .modal-box{background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important}
html[data-panel-theme] .panel-app .variant-item,html[data-panel-theme] .panel-app .h-keybtn,html[data-panel-theme] .panel-app .h-keycode,html[data-panel-theme] .panel-app .tb-bottom-item,html[data-panel-theme] .panel-app .tb-nav-item,html[data-panel-theme] .panel-app .r-keys{background:var(--ui-raised)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important}
html[data-panel-theme] .panel-app .product-title,html[data-panel-theme] .panel-app .r-title,html[data-panel-theme] .panel-app .r-label,html[data-panel-theme] .panel-app .variant-price,html[data-panel-theme] .panel-app .h-product-name{color:var(--ui-text)!important}
html[data-panel-theme] .panel-app .product-desc,html[data-panel-theme] .panel-app .r-help{color:var(--ui-muted)!important}
html[data-panel-theme] .panel-app .tb-bottom-item.active,html[data-panel-theme] .panel-app .tb-nav-item.active{background:var(--theme-button)!important;color:white!important}
html[data-panel-theme] .panel-app .modal-overlay{z-index:145}
.stock-source-controls{display:inline-flex;gap:2px;padding:2px;border:1px solid var(--ui-line);border-radius:6px}.stock-source-controls button{padding:4px 8px;font-size:11px;min-height:32px;background:transparent;color:var(--ui-muted);border:0;border-radius:4px}.stock-source-controls button[aria-pressed=true]{background:var(--theme-button);color:white}
.admin-reset-product{display:flex;align-items:center;gap:10px;min-width:0}.admin-reset-product img{width:38px;height:38px;object-fit:cover;border-radius:6px;flex-shrink:0}.admin-reset-card .key-item span{overflow-wrap:anywhere;min-width:0}.admin-reset-card .copy-btn{width:36px;height:36px;flex-shrink:0}.admin-reset-card{animation:resetCardArrival .25s ease both}.admin-reset-card .key-item{border-bottom:1px solid var(--ui-line)}
@keyframes resetCardArrival{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.admin-reset-card{animation:none}}
html[data-panel-theme] .tb-menu-item,html[data-panel-theme] .panel-route-label strong{color:var(--ui-text)}
html[data-panel-theme] .tb-menu-item.active{color:var(--ui-primary);background:color-mix(in srgb,var(--ui-primary) 12%,transparent);border-color:var(--ui-primary)}
html[data-panel-theme] .tb-menu-item:hover{background:var(--ui-raised);color:var(--ui-text)}
html[data-panel-theme] .tb-profile-mail,html[data-panel-theme] .tb-lang label,html[data-panel-theme] .panel-section-label{color:var(--ui-muted)}
html[data-panel-theme] .tb-logout{color:var(--ui-danger)}
html[data-panel-theme=pearl] .panel-app .text-blue-300,html[data-panel-theme=pearl] .panel-app .text-blue-200{color:#195f9b!important}
html[data-panel-theme=pearl] .panel-app .text-red-300,html[data-panel-theme=pearl] .panel-app .text-red-400{color:#b62040!important}
html[data-panel-theme=pearl] .panel-app .text-green-300,html[data-panel-theme=pearl] .panel-app .text-emerald-300,html[data-panel-theme=pearl] .panel-app .text-emerald-400{color:#087b73!important}
html[data-panel-theme] .panel-app .simple-link,html[data-panel-theme] .panel-app .game-pill,html[data-panel-theme] .panel-app .status-pill{color:var(--ui-text)!important}
html[data-panel-theme] .panel-app .game-pill.active{background:var(--theme-button)!important;color:white!important;border-color:var(--ui-primary)!important}
html[data-panel-theme=pearl] .panel-app .status-ico.green{color:#087b73}
html[data-panel-theme=pearl] .panel-app .status-ico.orange{color:#9b4a08}
html[data-panel-theme=pearl] .panel-app .product-action-buttons button{color:#087b73!important;border-color:var(--ui-line)!important}
html[data-panel-theme] .panel-app .tb-redeem-submit,html[data-panel-theme] .panel-app .h-detail-action,html[data-panel-theme] .panel-app .settings-api-button:not(.danger){background:var(--theme-button)!important;color:white!important}
html[data-panel-theme=pearl] .panel-app .settings-api-copy,html[data-panel-theme=pearl] .panel-app .settings-api-reveal,html[data-panel-theme=pearl] .panel-app .h-detail-key-icon{color:var(--ui-info)}
html[data-panel-theme=pearl] .panel-app .settings-api-status.enabled,html[data-panel-theme=pearl] .panel-app .settings-api-endpoints dt{color:var(--ui-primary)}
