:root{--lg-chat-color:#15395f;--lg-chat-ink:#ffffff;}:root{--lg-primary:#091d38;--lg-secondary:#061429;--lg-accent:#efba35;--lg-text:#101f34;--lg-muted:#5c6879;--lg-button:#ecb92b;--lg-section:#eef2f7;--lg-card:#ffffff;--lg-background:#f5f6f8;--lg-header:#f5f6f8;--lg-footer:#eef2f7;--lg-button-end:#caa02b;--lg-button-ink:#101820;--lg-accent-ink:#101820;}:root[data-theme=dark]{--lg-primary:#9abbff;--lg-secondary:#203e67;--lg-accent:#efc75d;--lg-text:#edf3fb;--lg-muted:#b2c1d5;--lg-button:#275dd2;--lg-section:#17263c;--lg-card:#1b2a41;--lg-background:#101a2b;--lg-header:#111e31;--lg-footer:#111e31;--lg-button-end:#2658c2;--lg-button-ink:#ffffff;--lg-accent-ink:#101820;}@media(prefers-color-scheme:dark){:root:not([data-theme=light]):not([data-theme=dark]){--lg-primary:#9abbff;--lg-secondary:#203e67;--lg-accent:#efc75d;--lg-text:#edf3fb;--lg-muted:#b2c1d5;--lg-button:#275dd2;--lg-section:#17263c;--lg-card:#1b2a41;--lg-background:#101a2b;--lg-header:#111e31;--lg-footer:#111e31;--lg-button-end:#2658c2;--lg-button-ink:#ffffff;--lg-accent-ink:#101820;}}/* Shared presentation tokens; accounting and authentication do not depend on theme settings. */
:root{--navy:var(--lg-primary);--navy-dark:var(--lg-secondary);--gold:var(--lg-accent);--paper:var(--lg-background);--ink:var(--lg-text);--muted:var(--lg-muted);--line:color-mix(in srgb,var(--lg-text) 16%,var(--lg-card))}
body,body.auth-body,body.personal-body{background:var(--lg-background);color:var(--lg-text)}
body{--space-surface:var(--lg-card);--space-line:var(--line);--space-muted:var(--lg-muted);--space-ink:var(--lg-text)}
body a{color:inherit}body a.text-link{color:var(--lg-primary)}
body :is(h1,h2,h3,h4,label,legend){color:inherit}
body :is(.panel,.space-card,.auth-entry-card,.auth-recovery .auth-card,.admin-sidebar,.card,.product-card,.method-card){background:var(--lg-card);border-color:var(--line);color:var(--lg-text)}
body :is(.eyebrow,.small,.space-card p,.space-row small,.space-subtitle,.space-kicker,.auth-device-note,.auth-password-help,.auth-secure,.auth-heading p){color:var(--lg-muted)}
body .header{background:var(--lg-header);color:var(--lg-text)}
body :is(footer,.footer){background:var(--lg-footer);color:var(--lg-text)}
body :is(.header-icon,.header nav a,.menu-toggle,.language-menu summary,.language-menu a,footer a,.footer a){color:var(--lg-text)}
body :is(.nav-dropdown,.language-menu .languages,.admin-profile-dropdown,.cookie-panel,.cookie-dialog,.modal,.dialog){background:var(--lg-card);color:var(--lg-text);border-color:var(--line)}
body :is(select,option,input:not([type=checkbox]):not([type=radio]):not([type=color]),textarea){background:var(--lg-card);color:var(--lg-text);border-color:var(--line)}
body input::placeholder,body textarea::placeholder{color:var(--lg-muted);opacity:1}
body .button-gold{background:linear-gradient(115deg,color-mix(in srgb,var(--lg-accent) 55%,#fff),var(--lg-accent));color:var(--lg-accent-ink);border-color:var(--lg-accent)}
body .auth-submit,body .auth-recovery .button-gold{background:linear-gradient(115deg,#1873e8,#1b4cbb);color:#fff;border-color:#2162c5;border-bottom-color:var(--lg-accent)}
body .button:not(.button-gold):not(.button-outline):not(.auth-submit){background:var(--lg-button);color:var(--lg-button-ink)}
body .button-outline,body .auth-provider-buttons .button{background:var(--lg-card);color:var(--lg-primary);border-color:var(--line)}
body :is(.auth-brand,.auth-input-wrap){color:var(--lg-primary)}
body .auth-body,body.auth-body{background:radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--lg-secondary) 10%,var(--lg-background)),transparent 55%),var(--lg-background)}
body .auth-body::before,body.auth-body::before{background:color-mix(in srgb,var(--lg-secondary) 12%,var(--lg-background));opacity:.35}
body :is(.auth-check,.auth-switch,.auth-google-consent,.auth-options){color:var(--lg-text)}
body .auth-input-wrap input{box-shadow:inset 2px 2px 6px #00000008,0 4px 12px #00000008}
body :is(.auth-card input:focus,.auth-card select:focus,input:focus-visible,select:focus-visible,textarea:focus-visible){border-color:var(--lg-primary);outline-color:var(--lg-primary)}
body :is(.cookie-preferences,.privacy-preferences,[data-cookie-settings],[data-cookie-preferences]){background:var(--lg-card);color:var(--lg-text);border-color:var(--line)}
body :is(.nav-dropdown a:hover,.nav-dropdown a:focus-visible,.admin-profile-dropdown a:hover){background:var(--lg-section);color:var(--lg-text)}
body :is(.space-empty,.space-quick-grid>a>span,.space-icon-chip,.space-mobile-sections,.space-stat-grid>a,.space-status){background:var(--lg-section);color:var(--lg-text);border-color:var(--line)}
body .space-card a:not(.button),body .space-quick-grid>a{color:var(--lg-primary)!important}
body .space-row strong{color:var(--lg-text)}
body :is(.space-sidebar,.space-bottom-nav){background:var(--lg-card);border-color:var(--line)}
body :is(.space-sidebar nav a[aria-current],.space-bottom-nav a[aria-current],.space-mobile-sections a[aria-current]){background:var(--lg-secondary);color:#fff}
body .space-wallet{background:linear-gradient(120deg,#102943,var(--lg-secondary));color:#fff}
body .space-wallet :is(h2,strong){color:#fff}body .space-wallet .space-balance-reward strong{color:#ffe08a}
body .space-wallet a{color:#ffe08a}body .space-wallet :is(p,.space-balance-label){color:#dce8f7}
body .personal-dashboard-return{background:var(--lg-button);color:var(--lg-button-ink);border:1px solid var(--lg-button);padding:14px 26px;min-width:220px;font-size:15px;justify-content:center}
body .space-logout{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid var(--line);border-radius:14px;background:var(--lg-card);color:var(--lg-text);font-size:13px;font-weight:600}
body .space-logout svg{width:19px;height:19px}
body .space-card p,body .space-profile-list dd{font-size:14px;line-height:1.75}
body :is(.space-sidebar nav a,.space-quick-grid>a,.space-row small,.space-row-actions,.space-soft-link,.space-stat-grid span,.space-progress span,.space-security-links a,.space-card>.button){font-size:13px;line-height:1.6}
body .space-row strong{font-size:14px}body .space-status{font-size:12px}
body :is(.space-balance p,.space-balance a,.space-wallet-footer,.space-profile-list dt){font-size:12px;line-height:1.6}
body .space-kicker{font-size:10px}body .space-next-steps{background:var(--lg-card)}
.security-required{max-width:850px;padding-block:45px}.security-required .panel{padding:36px}.security-required p,.security-required li{line-height:1.8}.security-totp-qr{display:block;width:220px;max-width:100%;height:auto;background:#fff;padding:12px;border-radius:12px}.passkey-panel h2 svg{width:30px;height:30px;vertical-align:middle}.security-recent{font-size:13px;color:var(--lg-muted)}
.theme-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.theme-settings-grid fieldset{min-width:0;border:1px solid var(--line);padding:20px;border-radius:16px}.theme-settings-grid label{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px}.theme-settings-grid input[type=color]{width:64px;min-height:40px;padding:3px}.theme-preview{padding:24px;border-radius:16px;background:var(--preview-card,var(--lg-card));color:var(--preview-text,var(--lg-text));margin-top:22px}.theme-preview h3,.theme-preview p{color:inherit}.theme-preview span{color:var(--preview-muted,var(--lg-muted));display:block}.theme-preview button{background:var(--preview-button,var(--lg-button));color:var(--preview-button-ink,#fff);padding:12px 18px;border-radius:12px;border:0;margin-block:14px}.theme-preview small{display:block;color:inherit;line-height:1.7}
@media(max-width:800px){body .space-welcome{flex-wrap:wrap}body .space-welcome-actions{width:100%;justify-content:flex-end;flex-wrap:wrap;gap:10px}body .personal-dashboard-return{margin-right:auto;min-width:180px}body .space-bottom-nav{min-height:64px}.theme-settings-grid{grid-template-columns:1fr}}
@media(max-width:600px){.admin-body .header{display:flex;align-items:center;justify-content:space-between;height:auto;min-height:74px;padding-block:10px;gap:0}.admin-body .header>.header-actions{display:flex;align-items:center;justify-content:space-between;gap:6px;flex:1;width:100%;margin:0;flex-wrap:nowrap}.admin-body .header .admin-header-menu{position:static!important;order:-1;margin:0!important;align-self:center;flex:0 0 42px;width:42px;height:42px;min-height:42px;background:var(--lg-card);color:var(--lg-text)}.admin-body .header-actions>.header-icon,.admin-body .admin-profile-menu>summary{height:42px;min-height:42px;display:flex;align-items:center}.admin-body .header .language-menu{margin:0}.admin-body .header .nav-cta{display:none}.security-required .panel{padding:24px}body .space-welcome-actions .personal-dashboard-return{width:100%;margin:0}body .space-welcome-actions form{margin-left:auto}}
@media(prefers-reduced-motion:reduce){body *{scroll-behavior:auto}}

body.auth-body .header,body.admin-body .header,body.personal-body .header{background:var(--lg-header);color:var(--lg-text)}
body .header .language-menu>summary,body.auth-body .header .language-menu>summary{background:transparent;color:var(--lg-text);border-color:transparent;box-shadow:none;border-radius:0}
body .header .language-menu .nav-dropdown,body.auth-body .header .language-menu .nav-dropdown,body .header .admin-profile-dropdown{background:var(--lg-card);color:var(--lg-text);border-color:var(--line)}
body .header .language-menu .nav-dropdown a,body.auth-body .header .language-menu .nav-dropdown a,body .header .admin-profile-menu summary{color:var(--lg-text)}
body .footer [data-privacy-settings],body.auth-body .footer [data-privacy-settings]{background:var(--lg-card);color:var(--lg-text);border-color:var(--line)}
body .footer [data-privacy-settings]:hover{background:var(--lg-section);color:var(--lg-text)}
body :is(button,a,input,select,textarea):focus-visible{outline:3px solid var(--lg-primary);outline-offset:3px}

/* Keep icon captions discreet and neutral, as requested. */
body.personal-body .space-quick-grid>a{font-size:11px;line-height:1.45;color:var(--lg-text)!important}
body.personal-body .space-quick-grid>a strong{font-size:11px;font-weight:550;color:inherit}
body .space-bottom-nav a{font-size:9px;color:var(--lg-muted)}
body .space-bottom-nav a[aria-current=page]{color:#fff}
body .space-welcome-actions .personal-dashboard-return{font-size:15px;min-height:48px;padding:14px 22px}
.theme-settings-grid label{flex-direction:row;text-align:left}
/* Footer links remain readable and privacy controls have room to wrap naturally. */
body .footer .footer-links{font-size:15px;line-height:1.6;gap:12px 24px}
body .footer .footer-links a{min-height:44px;display:inline-flex;align-items:center}
body .footer .footer-top p,body .footer .footer-bottom{font-size:13px;line-height:1.6}
body .footer .footer-bottom>div{display:flex;align-items:center;flex-wrap:wrap;gap:12px 22px;min-width:0}
body .footer .footer-privacy{display:flex;align-items:flex-start;flex-direction:column;gap:5px;max-width:100%}
body .footer [data-privacy-settings]{min-height:44px;padding:10px 16px;border-radius:12px;font-size:14px;line-height:1.4;white-space:normal;text-align:left;gap:9px}
body .footer .footer-privacy small{font-size:12px;color:var(--lg-muted);line-height:1.5;max-width:34ch}
.checkout-create-account{font:inherit;border:0;background:none;padding:0;cursor:pointer;text-decoration:underline;color:var(--lg-primary)}
@media(max-width:800px){body .space-welcome-actions{max-width:none;flex:0 0 100%;width:100%}}
