/* Persistent light/dark appearance. Artwork and product photos retain their own colors. */
.theme-toggle{display:grid;place-items:center;flex:none;width:42px;height:42px;min-width:42px;padding:0;border-radius:50%;border:1px solid #3a5064;background:#1b2b3a;color:#d8e9f5}.theme-toggle:hover{background:#304558}.theme-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.theme-toggle .theme-moon{display:none}html[data-theme=light] .theme-toggle .theme-sun{display:none}html[data-theme=light] .theme-toggle .theme-moon{display:block}
main>header #location{flex:1}.auth-page>.theme-toggle{position:absolute;top:18px;right:18px;z-index:10}
html[data-theme=light]{color-scheme:light;--soft-surface:#fff;--soft-line:#cbd5df;--soft-text:#192d42;--soft-muted:#52657a}
html[data-theme=light] body,html[data-theme=light] body:has(.home-layout),html[data-theme=light][data-isai-winter=on] body:not(.auth-page),html[data-theme=light][data-isai-winter=on] .auth-page{background:#f4f7fa;color:#192d42;color-scheme:light}
html[data-theme=light] body :is(h1,h2,h3,h4,strong,code,dt,dd,label){color:inherit}
html[data-theme=light] body :is(p,small,.muted,.label){color:#52657a}
html[data-theme=light] :is(.home-layout,.admin-page,.profile-page,.profile-guest,.apps-page,.products-page,dialog,.account-page){color:#192d42;--home-muted:#52657a;--home-line:#d1dae3}
html[data-theme=light] :is(header,body:has(.home-layout) header),html[data-theme=light][data-isai-winter=on] main>header{background:#ffffffed;border-color:#cfdae3;color:#233c51}
html[data-theme=light] :is(aside,body:has(.home-layout) aside),html[data-theme=light][data-isai-winter=on] #side{background:#f9fbfd;border-color:#cbd6e1;box-shadow:4px 0 30px #263f5410}
html[data-theme=light] #nav a,html[data-theme=light] .account-nav{color:#4d6276}
html[data-theme=light] #nav a:hover,html[data-theme=light] .account-nav:hover{color:#19364d;background:#e8eff5}
html[data-theme=light] #nav a.active,html[data-theme=light] body:has(.home-layout) #nav a.active,html[data-theme=light] .account-nav.active{background:#dfeaf3;color:#183c58}
html[data-theme=light] .account-nav{background:#edf3f8;border-color:#c4d2de}html[data-theme=light] .account-nav small{color:#53697e}
html[data-theme=light] :is(button,.pill){background:#e6edf4;color:#223e59}html[data-theme=light] :is(button,.pill):hover{background:#d6e3ee}
html[data-theme=light] :is(button,a,input,select,textarea):focus-visible{outline-color:#256493}
html[data-theme=light] :is(#menu,#closeNav,.theme-toggle,.close,.top-balance){background:#eef4f8;border-color:#b9cbd9;color:#25455e}
html[data-theme=light] .top-balance small{color:#50677c}html[data-theme=light] .top-balance strong{color:#233f56}
html[data-theme=light] :is(.home-search,.app-search,.search,.admin-search){background:#fff;border-color:#c1cedb;color:#50667d}
html[data-theme=light] :is(input,textarea,select,.field input,.field textarea,.field select,.auth-field input,.product-editor-modal .field input,.product-editor-modal .field textarea,.product-editor-modal .field select,.admin-modal input,.admin-modal textarea,.admin-page textarea,.home-image-picker input){background:#fff;border-color:#b6c6d5;color:#23394f;caret-color:#23394f;color-scheme:light}
html[data-theme=light] :is(.search input,.app-search input,.home-search input,.admin-search input){background:transparent;color:#23394f}
html[data-theme=light] input::placeholder,html[data-theme=light] textarea::placeholder{color:#617488;opacity:1}
html[data-theme=light] input::file-selector-button{background:#e4edf5!important;color:#244764!important;border:1px solid #bbccd9}
html[data-theme=light] :is(.panel,.product,.home-app,.digital-card,.app-list,.profile-overview,.profile-order,.profile-key,.profile-guest,.admin-empty,.admin-list,.admin-stat,.admin-balance-card,.admin-control-card,.admin-note-form,.admin-access-product,.admin-product-row,.admin-order-row,.auth-card,.isai-design-settings){background:#fff;border-color:#cbd6e1;box-shadow:0 5px 18px #1d3c5a05;color:#1f354b}
html[data-theme=light] :is(.home-app:hover,.app-row:hover,.admin-stat:hover,.admin-customer-row:hover,.profile-order>summary:hover){background:#eef4f9;border-color:#a9bfd3}
html[data-theme=light] :is(.home-app-art,.digital-art,.detail-cover,.editor-photo-preview,.home-image-preview){background:#e6edf3;border-color:#cbd6e1}
html[data-theme=light] :is(.home-shortcuts>a,.account-nav,.profile-admin,.profile-certificate,.profile-key-value,.no-durations,.admin-shortcuts .admin-button,.admin-confirm-values,.editor-draft-notice,.duration-editor,.profile-tabs,.product-editor-tabs,.auth-switch,.detail-checkout,.wallet-summary,.balance-summary,.account-wallet,.isai-design-controls){background:#edf3f8;border-color:#c3d1de;color:#29465f}
html[data-theme=light] :is(.home-app-body h3,.digital-card-body h2,.digital-price strong,.detail-title,.profile-identity h2,.profile-balance>strong,.profile-counts strong,.admin-stat strong,.admin-balance-card strong,.admin-row-main strong,.admin-customer-stats strong,.admin-price-row strong,.admin-access-product summary strong,.admin-order-top>strong,.checkout-confirm-title,.home-image-heading h2,.ios-heading h2,.ios-app-heading h2,.auth-heading h1,.editor-duration-meta strong,.product-editor-modal .duration-editor-label){color:#20394f}
html[data-theme=light] :is(.home-app-body>small,.home-app-bottom>span,.rowinfo small,.app-row small,.app-meta,.detail-category,.detail-description,.detail-checkout>p,.detail-duration-label,.duration-option small,.profile-page-heading>a,.profile-identity p,.profile-balance>span,.profile-counts span,.profile-admin small,.profile-certificate small,.profile-order-name>small,.profile-order-details dt,.profile-order-details dd,.profile-key-label,.profile-key-heading p,.profile-order-note,.profile-empty p,.profile-logout button,.admin-eyebrow,.admin-heading p,.admin-store-link,.admin-stat>span,.admin-stat small,.admin-row-main small,.admin-section-title>span,.admin-customer-stats span,.admin-control-card p,.admin-product-row p,.admin-order-top p,.admin-order-bottom small,.admin-ledger-row small,.admin-activity-row p,.admin-activity-row small,.admin-form-footer>small,.admin-modal-intro,.admin-confirm-copy,.admin-price-row small,.admin-price-input>small,.admin-pagination>span,.admin-access-product summary small,.admin-key,.admin-archived>summary,.admin-archived>p,.editor-pane-help,.editor-stock-help,.editor-file-status,.editor-photo-field small,.editor-file-field>small,.product-editor-footer>span,.product-editor-header>p,.product-editor-modal .editor-duration-meta small,.home-image-hint,.home-image-picker small,.ios-install-hint,.ios-option small,.ios-loading,.auth-heading p,.auth-field small,.auth-back,.auth-register,.auth-register a,.isai-account-welcome>div>span,.isai-account-welcome p,.isai-design-note,.editor-upload-name,.editor-upload-help,.editor-upload-numbers){color:#52657a}
html[data-theme=light] :is(.app-row,.row,.admin-customer-row,.admin-price-row,.admin-price-grid,.admin-checkbox,.admin-activity-row,.admin-ledger-row,.profile-order-details,.profile-totals,.profile-logout,.admin-tabs,.admin-customer-tabs,.admin-customer-stats,.admin-key,.admin-archived){border-color:#d1dce5}
html[data-theme=light] :is(.field,.admin-page .field,.admin-modal .field,.product-editor-modal .field,.auth-field,.home-image-modal .home-image-picker,.admin-checkbox){color:#3f5871}
html[data-theme=light] :is(.app-filters button,.filters button,.profile-tabs button,.product-editor-tabs button,.admin-tabs button,.admin-customer-tabs button,.auth-switch a){color:#50667b;background:#e9f0f6;border-color:#cedae5}
html[data-theme=light] :is(.app-filters button.on,.filters button.on,.profile-tabs button[aria-selected=true],.product-editor-tabs button[aria-selected=true],.admin-tabs button[aria-current],.admin-customer-tabs button[aria-current],.auth-switch a[aria-current=page]){background:#d8e7f2;color:#163e5c;border-color:#87aac4;box-shadow:inset 0 0 0 1px #a7bfd2}
html[data-theme=light] :is(.profile-tabs button>span,.product-editor-tabs button>span,.profile-avatar,.profile-role,.profile-order-icon,.profile-key-symbol,.profile-empty>span,.profile-certificate-icon,.admin-avatar,.ios-option-icon,.editor-upload-icon){background:#dfeaf2;border-color:#b1c6d7;color:#335b78}
html[data-theme=light] :is(.profile-key-value code,.admin-key code,code){background:#eaf1f7;color:#223e58}
html[data-theme=light] :is(.admin-button,.shelf-create,.product-quick-edit,.app-download,.apps-account,.profile-key-value button,.profile-download,.profile-more,.profile-empty>a,.home-file-card .home-card-open,.editor-add-duration,.home-image-actions button,.ios-option,.isai-design-controls button){background:#e2edf5;color:#244963;border-color:#aec6d8}
html[data-theme=light] :is(.profile-key-value button:hover,.profile-download:hover,.profile-more:hover,.app-download:hover,.admin-button:hover,.shelf-create:hover,.product-quick-edit:hover,.ios-option:hover){background:#d0e2ef;color:#173e5a;border-color:#86a9c5}
html[data-theme=light] :is(.purchase-button,.manual-purchase,.primary,.action,.auth-submit,.profile-signin,.admin-button.light,.product-editor-footer .editor-save-button,.home-image-actions .home-image-save,.ios-install-button){background:#244f70;border-color:#244f70;color:#fff}
html[data-theme=light] :is(.purchase-button,.manual-purchase,.primary,.action,.auth-submit,.profile-signin,.admin-button.light,.product-editor-footer .editor-save-button,.home-image-actions .home-image-save,.ios-install-button):hover{background:#183d5b;color:#fff}
html[data-theme=light] :is(.purchase-button:disabled,.manual-purchase:disabled){background:#e4ebf1;border-color:#c4d1dd;color:#617285}
html[data-theme=light] .home-card-open{background:transparent;color:#285a7e}html[data-theme=light] .home-card-open:hover{color:#143c5b}
html[data-theme=light] dialog,html[data-theme=light] dialog:is(.product-modal,.checkout-confirm-modal,.admin-modal,.home-image-modal,.ios-modal){background:#f9fbfd;color:#20374d;border-color:#bccddc;box-shadow:0 24px 90px #18314b33}
html[data-theme=light] dialog::backdrop{background:#162b4470}
html[data-theme=light] .product-editor-footer,html[data-theme=light] .detail-checkout{background:#f0f6faf5;border-color:#b8ccdd}
html[data-theme=light] .duration-option>span{background:#f1f6fa;border-color:#bfcedb;color:#243e55}
html[data-theme=light] .duration-option input:checked+span{background:#dcebf5;border-color:#4e82a7;box-shadow:inset 0 0 0 1px #4e82a7}
html[data-theme=light] .duration-option input:checked+span small{color:#234d6c}html[data-theme=light] .duration-option em{color:#52677b}
html[data-theme=light] :is(.profile-order-status.paid,.admin-active,.admin-credit){color:#247052}
html[data-theme=light] :is(.pending,.profile-order-status.pending){color:#78591e}
html[data-theme=light] :is(.profile-order-status.rejected,.admin-blocked,.admin-debit,.editor-remove-duration){color:#973b52}
html[data-theme=light] .admin-badge{background:#e0f0e7;border-color:#aac9b7;color:#285b41}html[data-theme=light] .admin-badge.pending{background:#faf0d8;border-color:#d6bf8c;color:#70521b}
html[data-theme=light] :is(.admin-badge.blocked,.admin-button.danger,.editor-removal-confirm,.product-editor-footer .editor-delete-trigger,#home-image-status,#dialog-message,.account-blocked,.ios-error){background:#fae9ed;border-color:#d9a5b4;color:#8a304a}
html[data-theme=light] :is(.editor-removal-confirm>strong,.editor-removal-confirm>p,.editor-upload.has-error .editor-upload-phase){color:#86334b}
html[data-theme=light] .editor-removal-confirm button{background:#f0d8e0;color:#733248}html[data-theme=light] .editor-removal-confirm .editor-danger-button{background:#8e3e56;border-color:#8e3e56;color:#fff}
html[data-theme=light] #editor-duration-undo>div{background:#e8eff6;border-color:#b4cadc;color:#3c5a73}html[data-theme=light] #editor-duration-undo :is(strong,button){color:#234f70}
html[data-theme=light] .editor-upload-percent{color:#244c69}html[data-theme=light] .editor-upload progress::-webkit-progress-bar{background:#dce7ef}html[data-theme=light] .editor-upload progress::-webkit-progress-value{background:#497b9d}
html[data-theme=light] #msg{background:#24465e;color:#fff;box-shadow:0 5px 22px #18334a25}
html[data-theme=light] :is(.app-tag,.digital-status,.home-demo-tag){background:#f3f7fbea;border-color:#b4c7d7;color:#365775}
html[data-theme=light] :is(.loading-line,.loading-banner,.loading-cards>span){background:linear-gradient(100deg,#e5edf3 25%,#f8fbfd 45%,#e5edf3 65%);background-size:240% 100%}
/* The cover is a photograph: keep its readable dark scrim and white title. */
html[data-theme=light] .home-welcome{background:#101216;border-color:#becbd8;color:#fff}html[data-theme=light] .home-welcome h1{color:#fff}html[data-theme=light] .home-welcome p{color:#d2dce7}html[data-theme=light] .home-explore{background:#eef4fa;color:#203b52}
html[data-theme=light] .isai-account-logo{background:#14212e;border-color:#a7becf}
html[data-theme=light][data-isai-winter=on] .profile-overview{background:#f9fcfe;border-color:#b9d1dc}html[data-theme=light][data-isai-winter=on] :is(.profile-page .profile-certificate,.profile-admin){background:#e6f0f5;border-color:#b3ccd8;color:#24495f}
html[data-theme=light][data-isai-winter=on] :is(.profile-avatar,.profile-role){background:#d6e8ee;color:#315666}html[data-theme=light][data-isai-winter=on] .profile-tabs button[aria-selected=true]{background:#d8e9f1;color:#244a60;box-shadow:inset 0 0 0 1px #a3c1cf}
html[data-theme=light][data-isai-winter=on] :is(.digital-card,.home-product-card){border-color:#b1cbd8;box-shadow:inset 0 3px 0 #fff}
html[data-theme=light] #isai-snow i{background:#7194a9;opacity:.4}html[data-theme=light][data-isai-winter=on] main>header:after{opacity:1}
html[data-theme=light] .isai-design-controls p{color:#50697d}html[data-theme=light] .isai-design-preview small{color:#456571}
html[data-theme=light] .auth-page{background:#f4f7fa;color:#243a50;color-scheme:light}html[data-theme=light][data-isai-winter=on] .auth-card{background:#fff;border-color:#b6cddc;box-shadow:0 18px 64px #23405d12}
html[data-theme=light] .auth-password-toggle{background:transparent;color:#496b86}html[data-theme=light] .auth-password-toggle:hover{background:#e4edf5}
html[data-theme=light] .auth-field input:-webkit-autofill{box-shadow:0 0 0 1000px #fff inset;-webkit-text-fill-color:#23394f;caret-color:#23394f}
html[data-theme=light] .auth-field input:-webkit-autofill:focus{box-shadow:0 0 0 1000px #fff inset,0 0 0 3px #6393b62a}
html[data-theme=light] .auth-switch a:hover{background:#e3edf5;color:#1c4462}
@media(max-width:760px){main>header,body:has(.home-layout) main>header{grid-template-columns:44px minmax(45px,1fr) 42px auto;gap:8px}main>header #location{display:none}main>header .mobilebrand{grid-column:2;justify-self:start;width:65px}main>header .mobilebrand .isai-logo{width:65px}main>header .theme-toggle{grid-column:3;grid-row:1}main>header .top-balance{grid-column:4;grid-row:1;max-width:145px}.auth-page>.theme-toggle{top:12px;right:12px}}
@media(max-width:350px){main>header,body:has(.home-layout) main>header{padding:0 9px;gap:5px;grid-template-columns:40px minmax(38px,1fr) 40px auto}main>header .mobilebrand,main>header .mobilebrand .isai-logo{width:52px}.theme-toggle{width:40px;height:40px;min-width:40px}.top-balance{padding:6px 9px}}
/* Secondary and empty states, including signing and purchase receipts. */
html[data-theme=light] :is(.profile-empty,.apps-empty,.shelf-empty,.account-welcome){color:#294359}
html[data-theme=light] :is(.shelf-empty,.apps-empty,.account-order,.ios-certificate-summary){background:#edf4f8;border-color:#c2d4de}
html[data-theme=light] :is(.shelf-navigation>a,.home-footer,.home-footer>a,.home-footer strong,.apps-result-count,.detail-total>span,.wallet-available,.detail-facts dt,.ios-original-link,.ios-back,.ios-private-note,.ios-field small,.ios-certificate-summary span:not(.ios-cert-mark),.ios-certificate-facts dt,.ios-compat-note,.ios-compat-note p:last-child,.auth-outro,.auth-outro a,.account-order-meta,.order-reference){color:#4a6378}
html[data-theme=light] :is(.profile-empty h2,.apps-empty h2,.ios-certificate-summary strong,.ios-job-state h3,.ios-certificate-facts dd,.detail-facts dd,.detail-total strong){color:#233f54}
html[data-theme=light] :is(.ios-cert-mark,.ios-state-icon){background:#d4e9e1;color:#28634e}
html[data-theme=light] :is(.ios-cert-mark.expired,.ios-job-state.failed .ios-state-icon){background:#f1dde4;color:#963c58}
html[data-theme=light] :is(.ios-primary,.ios-confirm-actions .ios-danger){background:#285775;color:#fff;border-color:#285775}
html[data-theme=light] :is(.ios-back,.ios-original-link):hover{background:#dce9f2;color:#284d68}
html[data-theme=light] :is(.detail-badge,.detail-file,.order-state){background:#e5eef6;color:#2d516d;border-color:#b8cddd}
html[data-theme=light] .detail-facts>div,html[data-theme=light] .ios-compat-app{border-color:#c9d8e2}
html[data-theme=light] :is(.ios-error,.auth-error){background:#f9e8ed;color:#86334b;border-color:#d6a5b4}
html[data-theme=light] :is(.home-shortcuts svg,.shelf-empty svg,.home-search svg,.app-search svg){color:#58758c}
html[data-theme=light] .auth-page :is(a,button):focus-visible{outline-color:#2c6a96}
