/* Reviewed account/admin/standalone roles only. Appearance, never geometry or visibility.
   Legacy desktop colors use !important; matching explicit roles below override only paint.
   Inputs, semantic states, QR, icons, and unreviewed operational panes retain their own styles. */
html.cd-template-v1 {
 --ctpl-page:radial-gradient(ellipse at 76% 24%,#0e1d3a 0%,#070d23 54%,#060d1d 100%);
 --ctpl-card:linear-gradient(115deg,#121e3d 0%,#0f1b38 55%,#0e1936 100%);
 --ctpl-edge:rgba(115,147,194,.28);
 --ctpl-ink:#edf4ff;
 --ctpl-copy:#c6d4e5;
 --ctpl-cta:linear-gradient(115deg,#07e0fa 0%,#15a7fc 50%,#247cfb 100%);
}
html.cd-template-v1 #view-auth,
html.cd-template-v1 #view-account,
html.cd-template-v1 #view-more,
html.cd-template-v1 #view-addresses,
html.cd-template-v1 #view-coupons,
html.cd-template-v1 #view-invite,
html.cd-template-v1 #view-notifications,
html.cd-template-v1 #view-payment-methods {
 background:var(--ctpl-page);color:var(--ctpl-ink);
}
html.cd-template-v1 #view-auth .cd-auth-shell,
html.cd-template-v1 #view-account .cd-more-shell,
html.cd-template-v1 #view-addresses .cd-more-shell,
html.cd-template-v1 #view-coupons .cd-more-shell,
html.cd-template-v1 #view-invite .cd-more-shell,
html.cd-template-v1 #view-notifications .cd-more-shell,
html.cd-template-v1 #view-payment-methods .cd-more-shell,
html.cd-template-v1 #view-more .cd-my-shell {
 background:var(--ctpl-card)!important;color:var(--ctpl-ink)!important;
 box-shadow:inset 0 0 0 1px var(--ctpl-edge);
}
html.cd-template-v1 #view-auth h2,
html.cd-template-v1 #view-auth .cd-auth-label,
html.cd-template-v1 #view-auth .cd-signup-label,
html.cd-template-v1 #view-auth #authSignupStep.cd-mobile-signup #cd-signup-title,
html.cd-template-v1 #view-account .cd-account-address h3,
html.cd-template-v1 #view-account .cd-account-address label,
html.cd-template-v1 #view-account label[for="cd-profile-nickname"] {color:var(--ctpl-ink)!important}
html.cd-template-v1 #view-auth .cd-auth-sub,
html.cd-template-v1 #view-auth .cd-auth-help,
html.cd-template-v1 #view-auth .cd-auth-message,
html.cd-template-v1 #view-auth .cd-signup-intro,
html.cd-template-v1 #view-auth .cd-signup-help,
html.cd-template-v1 #view-auth .cd-guest,
html.cd-template-v1 #view-auth .cd-auth-back,
html.cd-template-v1 #view-account .cd-more-shell>p,
html.cd-template-v1 #view-account .cd-profile-note,
html.cd-template-v1 #view-account #cd-profile-hint,
html.cd-template-v1 #view-account .cd-account-address p,
html.cd-template-v1 #view-addresses .cd-more-shell>p,
html.cd-template-v1 #view-coupons .cd-more-shell>p,
html.cd-template-v1 #view-invite .cd-more-shell>p,
html.cd-template-v1 #view-payment-methods .cd-more-shell>p {color:var(--ctpl-copy)!important}
html.cd-template-v1 #view-auth .cd-signup-notice,
html.cd-template-v1 #view-auth #cd-signup-address-toggle {
 background:var(--ctpl-card)!important;color:var(--ctpl-copy)!important;border-color:var(--ctpl-edge);
}
html.cd-template-v1 #view-more .cd-my-item,
html.cd-template-v1 #view-more .cd-my-edit,
html.cd-template-v1 #view-account #cd-profile-choose,
html.cd-template-v1 #view-account #cd-profile-remove,
html.cd-template-v1 #view-account #cd-profile-reload,
html.cd-template-v1 #view-account #cd-address-clear,
html.cd-template-v1 #view-account #cd-address-reload,
html.cd-template-v1 #view-addresses .cd-more-link,
html.cd-template-v1 #view-invite .cd-more-link {
 background:var(--ctpl-card)!important;color:var(--ctpl-copy)!important;border-color:var(--ctpl-edge)!important;
}
html.cd-template-v1 #view-more .cd-my-item:hover,
html.cd-template-v1 #view-more .cd-my-item:active {background:#18284a!important}
html.cd-template-v1 #view-more .cd-my-group h2 {background:#0e1936!important;color:var(--ctpl-copy)!important}
html.cd-template-v1 #view-more .cd-my-footer {color:var(--ctpl-copy)!important;border-color:var(--ctpl-edge)!important}
/* Exact enabled primary actions; disabled controls remain visibly disabled. */
html.cd-template-v1 #view-auth #sendAuthCode:not(:disabled),
html.cd-template-v1 #view-auth #cd-signup-submit:not(:disabled),
html.cd-template-v1 #view-auth .cd-login-submit:not(:disabled),
html.cd-template-v1 #view-account #cd-profile-save:not(:disabled),
html.cd-template-v1 #view-account #cd-address-save:not(:disabled) {
 background:var(--ctpl-cta)!important;color:#06142b!important;
}
/* Admin dashboard, inspected compact V56 roles. Deep operational forms remain light. */
html.cd-template-v1 #view-admin.ah-home-active,
html.cd-template-v1 #view-admin.ah-home-active>.cd-admin-shell {background:var(--ctpl-page);color:var(--ctpl-ink)}
html.cd-template-v1 #dhHome.ah-home,
html.cd-template-v1 #dhHome .ah-title h3 {color:var(--ctpl-ink)}
html.cd-template-v1 #dhHome .ah-menu,
html.cd-template-v1 #dhHome .ah-summary {
 background:var(--ctpl-card);border-color:var(--ctpl-edge);color:var(--ctpl-ink);
 box-shadow:inset 0 0 0 1px var(--ctpl-edge);
}
html.cd-template-v1 #dhHome .ah-menu:hover,
html.cd-template-v1 #dhHome .ah-summary:hover {background:#18284a;border-color:#84add3}
html.cd-template-v1 #dhHome .ah-menu-copy small,
html.cd-template-v1 #dhHome .ah-connection,
html.cd-template-v1 #dhHome #ahConnection,
html.cd-template-v1 #dhHome #ahChecked {color:var(--ctpl-copy)}
html.cd-template-v1 #dhHome .ah-public,
html.cd-template-v1 #dhHome .ah-refresh,
html.cd-template-v1 #dhHome .ah-footer button,
html.cd-template-v1 #view-admin .cd-admin-recheck {
 background:var(--ctpl-card);color:#9acbff;border-color:var(--ctpl-edge);
}
/* Operational panels keep a complete light foreground/background pair.
   Do not recolor status badges, customer forms, tables, swatches or actions. */
html.cd-template-v1 #view-admin:not(.ah-home-active),
html.cd-template-v1 #view-admin:not(.ah-home-active)>.cd-admin-shell {background:#fff;color:#173b61}
html.cd-template-v1 #view-admin .cd-admin-panel {color:#173b61}
/* Standalone class is present only on the live outer document, never paused templates. */
html.cd-template-v1 body.cd-template-standalone {background:var(--ctpl-page)!important;color:var(--ctpl-ink)!important}
html.cd-template-v1 body.cd-template-standalone>main {
 background:var(--ctpl-card)!important;color:var(--ctpl-ink);
 box-shadow:inset 0 0 0 1px var(--ctpl-edge);
}
html.cd-template-v1 body.cd-template-standalone .brand {color:#9acbff!important}
html.cd-template-v1 body.cd-template-standalone .note {
 background:#0e1936!important;color:var(--ctpl-copy)!important;
}
html.cd-template-v1 body.cd-template-payment-result .back {
 background:var(--ctpl-cta)!important;color:#06142b!important;
}
html.cd-template-v1 body.cd-template-payment-result #result-retry:not(:disabled),
html.cd-template-v1 body.cd-template-pg-review .quiet {
 background:var(--ctpl-card);color:var(--ctpl-copy);border-color:var(--ctpl-edge);
}
html.cd-template-v1 body.cd-template-pg-review .lead,
html.cd-template-v1 body.cd-template-pg-review .muted {color:var(--ctpl-copy)}
html.cd-template-v1 body.cd-template-pg-review #review-login>button:not(:disabled),
html.cd-template-v1 body.cd-template-pg-review #review-pay:not(:disabled),
html.cd-template-v1 body.cd-template-pg-review #review-wallet-pay:not(:disabled) {
 background:var(--ctpl-cta);color:#06142b;
}
html.cd-template-v1 body.cd-template-pg-review nav a,
html.cd-template-v1 body.cd-template-pg-review .review-topup,
html.cd-template-v1 body.cd-template-topup>main>a,
html.cd-template-v1 body.cd-template-topup-result>main>a,
html.cd-template-v1 body.cd-template-topup-diagnostics>main>a,
html.cd-template-v1 body.cd-template-locker-live-flow-test>a,
html.cd-template-v1 body.cd-template-locker-open-check>a,
html.cd-template-v1 body.cd-template-pickup-admin-preview>a,
html.cd-template-v1 body.cd-template-pickup-preview>a {color:#9acbff}

/* Explicit nested light controls/sections must not inherit white-on-white text. */
html.cd-template-v1 #view-auth #cd-signup-address-box {background:#0e1936!important}
html.cd-template-v1 body.cd-template-pg-review #review-wallet select {color:#25394d;background:#fff}

/* Agreement copy only; checkbox, verified and error states stay intact. */
html.cd-template-v1 #view-auth .cd-mobile-signup .cd-signup-check {color:var(--ctpl-copy)}
