/* Shared light surfaces for secondary AXIORA pages. Dark styles stay in their
   owning stylesheets; all overrides follow the saved, early-applied theme. */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6fb;
  --paper: #fff;
  --card: rgba(255,255,255,.92);
  --soft: #edf0f8;
  --panel: rgba(255,255,255,.92);
  --panel-strong: #fff;
  --text: #202137;
  --muted: #5d6279;
  --line: rgba(85,73,134,.21);
  --purple: #6835d2;
  --purple2: #7646df;
  --violet: #6835d2;
  --violet-light: #6235bd;
  --blue: #236aab;
  --danger: #ad264c;
  --shadow: 0 18px 42px rgba(68,53,115,.1);
  --service-ink: #202137;
  --service-muted: #5d6279;
  --service-line: rgba(85,73,134,.21);
  --service-accent: #6235bd;
  --legal-ink: #202137;
  --legal-muted: #5d6279;
  --legal-line: rgba(85,73,134,.21);
  --legal-purple: #6235bd;
}
html[data-theme="light"] body,
html[data-theme="light"] .legal-page,
html[data-theme="light"] :is(.account-page__backdrop,.profile-page__backdrop) {
  background: radial-gradient(ellipse at 14% 0,rgba(150,116,238,.14),transparent 38rem),
    radial-gradient(ellipse at 94% 20%,rgba(89,157,224,.1),transparent 34rem),#f4f6fb;
  color: var(--text);
}
html[data-theme="light"] :is(.account-card,.profile-hero,.profile-panel,.legal-card,.service-glass,.site-error-page .glass) {
  border-color: var(--line);
  background: linear-gradient(135deg,rgba(255,255,255,.97),rgba(247,246,255,.94));
  box-shadow: inset 0 1px #fff,0 20px 55px rgba(68,53,115,.1);
  color: var(--text);
}
html[data-theme="light"] .account-card__glow { opacity: .22; }
/* Liquid Glass declares its shared .glass surface as important. Keep that
   override scoped to these core pages so profile cards and the 404 stay light. */
html[data-theme="light"] :is(.profile-page,.site-error-page) .glass {
  background: linear-gradient(135deg,#fff,#f5f1fd) !important;
  border-color: var(--line) !important;
  box-shadow: inset 0 1px #fff,0 20px 55px rgba(68,53,115,.1);
}
html[data-theme="light"] :is(.account-kicker,.account-back,.account-consent a,.profile-kicker,.profile-panel__kicker,.profile-copy,.profile-list__meta b,.legal-kicker,.legal-section a) { color: #6235bd; }
html[data-theme="light"] :is(.account-lead,.account-form small,.account-status,.account-signed-in p,.profile-hero p:not(.profile-kicker),.profile-details dt,.profile-list small,.profile-message,.legal-lead,.legal-section li,.legal-note,.legal-requisites dt,.legal-footer,.service-lead,.service-summary li,.service-contents a,.service-list) { color: var(--muted); }
html[data-theme="light"] :is(.account-form label,.profile-details dd,.profile-list strong,.legal-section p strong,.legal-requisites dd,.service-footer .service-footer__title) { color: var(--text); }
html[data-theme="light"] .account-consent { color: var(--muted) !important; }
html[data-theme="light"] .account-tabs { background: #eceaf5; border-color: var(--line); }
html[data-theme="light"] .account-tabs button { color: #5a526e; }
html[data-theme="light"] .account-tabs button[aria-selected="true"] { color: #fff; background: linear-gradient(110deg,#5423c4,#7543d8); }
html[data-theme="light"] :is(.account-form input:not([type="checkbox"]),.admin-field input,.admin-field textarea,.admin-page select,.login-card input,.uploaded-media input) {
  color: var(--text);
  background: #fff;
  border-color: #b8b3cc;
}
html[data-theme="light"] :is(input,textarea)::placeholder { color: #73738b; opacity: 1; }
html[data-theme="light"] :is(input,textarea,select):focus {
  border-color: #7543d8;
  box-shadow: 0 0 0 3px rgba(117,67,216,.15);
}
html[data-theme="light"] :is(input[type="checkbox"],input[type="radio"]) { accent-color: #6835d2; }
html[data-theme="light"] .admin-toggle { background: #fff; border-color: var(--line); }
html[data-theme="light"] .admin-toggle:has(input:focus-visible) > span { outline: 2px solid #6835d2; outline-offset: 3px; }
html[data-theme="light"] .admin-toggle { background: #fff; border-color: var(--line); }
html[data-theme="light"] .admin-toggle:has(input:focus-visible) > span { outline: 2px solid #6835d2; outline-offset: 3px; }
html[data-theme="light"] :is(a,button,input,textarea,select,summary):focus-visible { outline-color: #6835d2; }
html[data-theme="light"] .outline,
html[data-theme="light"] .service-button--outline {
  color: #5c2fb5;
  border-color: #bbb0d8;
  background: rgba(255,255,255,.8);
  box-shadow: inset 0 1px #fff,0 5px 14px rgba(68,53,115,.06);
}
html[data-theme="light"] :is(.outline,.service-button--outline):hover { color: #4e249f; background: #eee7fb; border-color: #8b6dc4; }
html[data-theme="light"] :is(.button,.primary,.service-button:not(.service-button--outline)) { color: #fff; background: linear-gradient(105deg,#5824c8,#7945dd); }
html[data-theme="light"] :is(.account-card__close,.dashboard-users__close,.editor-section__up) { color: #5c2fb5; background: #f1edf9; border-color: #b9add1; }
html[data-theme="light"] :is(.account-card__close,.dashboard-users__close,.editor-section__up):hover { background: #e5daf8; }
html[data-theme="light"] :is(.profile-avatar,.avatar,.account-signed-in > span) { color: #fff; }
html[data-theme="light"] :is(.profile-details div,.profile-list li) { border-color: var(--line); }
html[data-theme="light"] :is(.profile-list li,.legal-requisites div) { background: #f4f3fa; border-color: var(--line); }
html[data-theme="light"] .profile-count { background: #eee7fb; color: #6235bd; border-color: #b8a4d9; }
html[data-theme="light"] :is(.profile-status,.profile-list__meta span) { color: #187344; }
html[data-theme="light"] .profile-list__meta span.is-pending { color: #8e5a15; }
html[data-theme="light"] .profile-empty { color: var(--muted) !important; }
html[data-theme="light"] :is(.account-status.is-error,.profile-message.is-error) { color: #ad264c; }
html[data-theme="light"] .legal-back { color: #5d5276; }
html[data-theme="light"] .legal-meta span { border-color: var(--line); background: #f2eff9; color: #605273; }
html[data-theme="light"] .legal-alert { border-color: #d8b26a; background: #fff6e3; color: #765421; }
html[data-theme="light"] .legal-alert strong { color: #7a4b0b; }
html[data-theme="light"] .legal-nav a { border-color: var(--line); color: #5d5276; background: #fff; }
html[data-theme="light"] .legal-nav a:is([aria-current="page"],:hover) { background: #eae1fb; border-color: #9873d6; color: #5426a3; }
html[data-theme="light"] .legal-note { background: #f0eafc; border-color: #c1aedf; }
html[data-theme="light"] .legal-section li:before { color: #6235bd; }
html[data-theme="light"] :is(.legal-back,.legal-section a,.profile-copy,.service-page a:not(.service-button)):hover { color: #50259f; }
html[data-theme="light"] .service-button:not(.service-button--outline):hover { color: #fff; }
html[data-theme="light"] .service-languages a[aria-current] { background: #e6dcf7; color: #5426a3; }
html[data-theme="light"] .service-contents a { border-color: var(--line); }
html[data-theme="light"] .service-contents a:hover { color: #50259f; }
html[data-theme="light"] .service-cta { background: linear-gradient(115deg,#fff,#f0eafd); }
html[data-theme="light"] .site-error-page article > p:first-child { color: #6235bd !important; }

/* The dark logo plate is an intentional part of the supplied silver/blue mark,
   keeping the actual brand artwork readable against these light surfaces. */
html[data-theme="light"] :is(.account-brand,.legal-top .brand,.admin-logo,.service-brand) { box-shadow: inset 0 1px rgba(231,245,255,.26),0 6px 18px rgba(68,53,115,.16) !important; }

/* Admin fields, editor panels and dynamically opened account lists. */
html[data-theme="light"] .admin-sidebar { background: linear-gradient(155deg,rgba(255,255,255,.97),rgba(239,235,250,.98)); box-shadow: 3px 0 25px rgba(68,53,115,.05); }
html[data-theme="light"] .admin-sidebar nav button { color: #5e5870; }
html[data-theme="light"] .admin-sidebar nav button:is(.active,:hover) { color: #fff; background: linear-gradient(115deg,#6635c8,#8054d3); border-color: #7951b9; }
html[data-theme="light"] .admin-search { background: #fff; color: #68627a; }
html[data-theme="light"] :is(.admin-search input,.dashboard-users__search input,.admin-profile button) { color: var(--text); }
html[data-theme="light"] :is(.dashboard-welcome,.dashboard-metrics article,.dashboard-next,.editor-section,.collection-card,.calculator-intro,.calculator-categories,.media-hint,.dashboard-summary,.dashboard-analytics,.dashboard-panel,.login-card,.dashboard-users) {
  border-color: var(--line);
  background: linear-gradient(135deg,#fff,#f6f3fd);
  box-shadow: inset 0 1px #fff,0 14px 36px rgba(68,53,115,.08);
  color: var(--text);
}
html[data-theme="light"] :is(.editor-card,.calc-category-editor,.calc-option-editor,.editor-savebar,.dashboard-stat-card,.dashboard-metric-row,.analytics-empty,.dashboard-insights article,.uploaded-media) { background: #f6f4fc; border-color: var(--line); box-shadow: inset 0 1px #fff,0 6px 16px rgba(68,53,115,.04); }
html[data-theme="light"] :is(.dashboard-next button,.calculator-intro__stat,.upload-button,.dashboard-users__summary span) { color: #554666; background: #eeebf7; border-color: var(--line); }
html[data-theme="light"] .dashboard-next button:hover { color: #5426a3; background: #e5dcf5; }
html[data-theme="light"] .editor-anchor-nav { background: rgba(255,255,255,.94); border-color: var(--line); }
html[data-theme="light"] .editor-anchor-nav a { color: #615371; }
html[data-theme="light"] .editor-anchor-nav a:hover { color: #5426a3; background: #eae1fb; }
html[data-theme="light"] :is(.page-heading p,.editor-section__head p,.dashboard-welcome p,.calculator-intro p,.dashboard-summary p,.dashboard-analytics__head p,.dashboard-panel__head p,.dashboard-users__head p,.login-mark,.calculator-intro__stat b) { color: #6235bd; }
html[data-theme="light"] :is(.admin-field > span,.admin-toggle,.login-card label,.collection-card__bar > span,.calc-option-editor__head > span,.dashboard-next > p,.dashboard-panel__head h2,.dashboard-stat-card strong,.dashboard-metric-row__value strong,.dashboard-users__row b,.dashboard-users__summary b,.dashboard-insights b) { color: var(--text); }
html[data-theme="light"] :is(.admin-field small,.admin-toggle small,.dashboard-stat-card span,.dashboard-metric-row__value span,.dashboard-metric-row__chart > div > span,.dashboard-insights span,.dashboard-users__summary span,.dashboard-users__row span,.dashboard-users__row time,.dashboard-users__empty,.empty-state,.editor-savebar span,.calculator-intro__stat span,.calculator-intro__stat small,.calc-category-editor__head > div > span) { color: var(--muted); text-shadow: none; }
html[data-theme="light"] :is(.dashboard-stat-card i,.dashboard-metric-row__value i,.dashboard-insights i) { background: #eae3f8; color: #6235bd; border-color: #c3b0e2; }
html[data-theme="light"] .dashboard-metric-row__value { border-right-color: var(--line); }
html[data-theme="light"] .dashboard-panel__status { background: #eae3f8; color: #6235bd !important; border-color: #c3b0e2; }
html[data-theme="light"] :is(.dashboard-warning,.analytics-source) { color: #895717; }
html[data-theme="light"] .analytics-source { background: #fff3dd; border-color: #e0c08a; }
html[data-theme="light"] .dashboard-summary i { color: #167345; background: #def2e6; }
html[data-theme="light"] .dashboard-users-trigger { color: #6235bd; background: #eae1fb; }
html[data-theme="light"] .dashboard-users-trigger:hover { background: #ddcef5; }
html[data-theme="light"] .dashboard-users-modal { background: rgba(48,41,73,.3); }
html[data-theme="light"] .dashboard-users__search { color: #615371; background: #fff; border-color: #b8b3cc; }
html[data-theme="light"] :is(.dashboard-users__table,.dashboard-users__row,.dashboard-users__empty) { border-color: var(--line); }
html[data-theme="light"] .dashboard-users__row--head { background: #ece4fa; color: #554069; }
html[data-theme="light"] .dashboard-sparkline__line { stroke: #7945c9; }
html[data-theme="light"] .dashboard-sparkline--blue .dashboard-sparkline__line { stroke: #2877b8; }
html[data-theme="light"] :is(.dashboard-sparkline--green,.dashboard-sparkline--live) .dashboard-sparkline__line { stroke: #218351; }
html[data-theme="light"] .dashboard-sparkline--purple .dashboard-sparkline__line { stroke: #9b47ba; }
html[data-theme="light"] .dashboard-sparkline--empty { color: #686077; background: repeating-linear-gradient(135deg,rgba(101,70,166,.04) 0 8px,transparent 8px 16px); }
html[data-theme="light"] .analytics-chart { border-color: #b8b3cc; background: repeating-linear-gradient(to bottom,transparent 0,transparent 29px,rgba(101,70,166,.08) 30px); }
html[data-theme="light"] .analytics-chart i { border-color: #a999cd; background: linear-gradient(#b7cdeb66,#a793d333); }
html[data-theme="light"] :is(.login-card output,.dashboard-users__empty--error,.remove) { color: #ad264c; }
html[data-theme="light"] .remove { background: #fae7ee; border-color: #dfafbe; }
html[data-theme="light"] .add-item { color: #6235bd; background: #eee6fb; border-color: #bba5de; }
html[data-theme="light"] .save-status { color: #247449; }

html[data-theme="light"] .template-preview-page header { background: #fff; border-bottom: 1px solid var(--line); color: var(--text); }
html[data-theme="light"] .template-preview-page a,
html[data-theme="light"] .template-checkout-page a { color: #6235bd; }
html[data-theme="light"] .template-preview-page span,
html[data-theme="light"] .template-checkout-page :is(p,small) { color: var(--muted); }
html[data-theme="light"] .template-preview-page iframe { background: #f4f6fb; }
html[data-theme="light"] .template-checkout-page main { border-color: var(--line); background: linear-gradient(135deg,#fff,#f4effd); box-shadow: var(--shadow); }
html[data-theme="light"] .template-checkout-page .notice { background: #eee6fb; border-color: #c0adde; }
html[data-theme="light"] .template-checkout-page .notice strong { color: #462779; }
