/* Global colour modes, contrast corrections and guest account portal. */
:root{--hma-dark-page:#0f1614;--hma-dark-surface:#17211e;--hma-dark-surface-2:#1d2925;--hma-dark-line:#354740;--hma-dark-text:#e4ece9;--hma-dark-muted:#b7c6c1;--hma-dark-green:#8bd5c0}

/* Header switch */
.theme-toggle{display:grid;width:46px;height:46px;flex:0 0 46px;place-items:center;padding:0;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.04);color:#fff;cursor:pointer;transition:background .2s,border-color .2s,transform .2s}
.theme-toggle:hover{border-color:var(--teal);background:rgba(97,164,143,.16);transform:translateY(-1px)}
.theme-toggle svg{grid-area:1/1;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle__sun{display:none}
html[data-theme="dark"] .theme-toggle__moon{display:none}
html[data-theme="dark"] .theme-toggle__sun{display:block}

/* Explicit light-mode contrast corrections found in the browser audit. */
.hma-product-card--appeal .hma-kicker{color:#9bd9c8!important}
.hma-product-card--appeal .hma-card-label{color:#fff!important}
.hma-product-card--appeal>p:not(.hma-kicker),.hma-product-card--appeal li{color:#e2ebe8!important}
.hma-product-card--appeal li:before{color:#9bd9c8}
.hma-product-card--appeal .hma-icon{color:#9bd9c8}
.hma-transform .hma-kicker{color:#9bd9c8!important}
.hma-final-cta .hma-kicker{color:#e6fff8!important}
.footer-bottom{color:rgba(255,255,255,.7)}
.footer-disclaimer p{color:rgba(255,255,255,.72)}
.hma-token-card .hma-token-card__flex{font-size:clamp(38px,5vw,62px);line-height:1}
.ivts-package-card .ivts-package-card__label{color:#2f7667}
.faq-item summary>span{color:#2f7667}
.feedback-card .button-primary{background:#2f7667!important;color:#fff!important}
.feedback-card .button-primary:hover,.feedback-card .button-primary:focus-visible{background:#245d53!important;color:#fff!important}
.ivts-package-card .ivts-package-card__button{background:#2f7667!important;color:#fff!important}
.ivts-package-card .ivts-package-card__button:hover,.ivts-package-card .ivts-package-card__button:focus-visible{background:#245d53!important;color:#fff!important}

/* Guest account portal */
.woocommerce-account:not(.logged-in) .content-wrap{width:min(1180px,calc(100% - 48px))}
.woocommerce-account:not(.logged-in) .entry-content{max-width:none}
.woocommerce-account:not(.logged-in) .commerce-wrap{width:min(1180px,calc(100% - 48px));padding-top:54px;padding-bottom:100px}
.woocommerce-account:not(.logged-in) .woocommerce{display:block!important;width:100%;max-width:none;margin:0}
.woocommerce-account.logged-in .woocommerce,.woocommerce-account.logged-in .woocommerce-MyAccount-content,.woocommerce-account.logged-in .hma-portal-heading,.woocommerce-account.logged-in .hma-portal-hero,.woocommerce-account.logged-in .hma-portal-hero__content{min-width:0;max-width:100%}
.woocommerce-account.logged-in .hma-portal-heading h1,.woocommerce-account.logged-in .hma-account-section-head h1{overflow-wrap:anywhere;word-break:break-word}
.woocommerce-account.logged-in .hma-portal-hero__content{overflow:hidden}
.hma-auth{width:100%;display:grid;gap:24px}
.hma-auth__intro{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:55px;align-items:end;padding:42px 46px;background:linear-gradient(125deg,#17211f 0%,#243630 100%);color:#fff;box-shadow:0 24px 70px rgba(20,30,27,.14)}
.hma-auth__intro h1{max-width:720px;margin:0 0 15px;color:#fff;font-size:clamp(38px,5vw,60px)}
.hma-auth__intro>div>p:last-child{max-width:720px;margin:0;color:rgba(255,255,255,.78);font-size:17px}
.hma-auth__kicker,.hma-auth-card__header p{margin:0 0 10px;color:#91d4c2;font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.hma-auth__intro ul{margin:0;padding:0;list-style:none;border-top:1px solid rgba(255,255,255,.16)}
.hma-auth__intro li{position:relative;padding:11px 0 11px 27px;border-bottom:1px solid rgba(255,255,255,.16);font-size:13px;font-weight:700}
.hma-auth__intro li:before{content:'✓';position:absolute;left:2px;color:#91d4c2;font-weight:900}
.hma-auth__grid{display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);gap:24px;align-items:start}
.hma-auth__grid--single{grid-template-columns:minmax(0,720px);justify-content:center}
.hma-auth-card{padding:36px 38px 40px;border:1px solid var(--line);background:#fff;box-shadow:0 18px 55px rgba(20,30,27,.08)}
.hma-auth-card--register{border-top:5px solid var(--teal-dark)}
.hma-auth-card__header{display:flex;gap:19px;align-items:flex-start;margin-bottom:28px;padding-bottom:23px;border-bottom:1px solid var(--line)}
.hma-auth-card__number{display:grid;width:42px;height:42px;flex:0 0 42px;place-items:center;border:1px solid var(--line);color:var(--teal-dark);font-size:11px;font-weight:900}
.hma-auth-card__header p{margin-bottom:5px;color:var(--teal-dark)}
.hma-auth-card__header h2{margin:0;font-size:clamp(28px,3vw,38px)}
.woocommerce form.hma-auth-form{display:grid;gap:18px;margin:0;padding:0;border:0;box-shadow:none}
.woocommerce form.hma-auth-form .form-row{margin:0!important}
.woocommerce form.hma-auth-form label{margin-bottom:7px;color:var(--ink);font-size:13px;font-weight:800}
.woocommerce form.hma-auth-form input.input-text{min-height:52px;padding:13px 14px;border:1px solid #aebbb7;background:#fff;color:var(--ink)}
.woocommerce form.hma-auth-form input.input-text:focus{border-color:#247567;box-shadow:0 0 0 3px rgba(36,117,103,.15);outline:0}
.hma-auth-form__row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.hma-auth-form__options{display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:13px}
.hma-auth-form__options label{display:flex;align-items:center;gap:7px;margin:0!important;font-weight:600!important}
.hma-auth-form__options a{color:#286d5f;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.hma-auth-submit{width:100%;min-height:54px!important;background:#286d5f!important;color:#fff!important}
.hma-password-field{position:relative;padding-bottom:34px}
.hma-password-field .woocommerce-password-strength{position:absolute;right:0;bottom:0;left:0;display:block!important;min-height:34px;box-sizing:border-box;visibility:hidden}
.hma-password-field .woocommerce-password-strength.short,.hma-password-field .woocommerce-password-strength.bad,.hma-password-field .woocommerce-password-strength.good,.hma-password-field .woocommerce-password-strength.strong{visibility:visible}
.hma-auth-submit:hover{background:#1e574c!important}
.hma-customer-type{margin:0;padding:0;border:0}
.hma-customer-type legend{margin-bottom:10px;color:var(--ink);font-size:13px;font-weight:900}
.hma-customer-type__options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hma-customer-type__options label{position:relative;display:block;margin:0!important;cursor:pointer}
.hma-customer-type__options input{position:absolute;opacity:0;pointer-events:none}
.hma-customer-type__options span{display:grid;min-height:82px;align-content:center;padding:13px 15px 13px 43px;border:1px solid #aebbb7;background:#fff;transition:border-color .2s,background .2s,box-shadow .2s}
.hma-customer-type__options span:before{content:'';position:absolute;top:29px;left:15px;width:16px;height:16px;border:2px solid #71817c;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 3px #fff}
.hma-customer-type__options input:checked+span{border-color:#286d5f;background:#edf7f3;box-shadow:inset 3px 0 0 #286d5f}
.hma-customer-type__options input:checked+span:before{border-color:#286d5f;background:#286d5f}
.hma-customer-type__options input:focus-visible+span{outline:3px solid #247567;outline-offset:3px}
.hma-customer-type__options strong,.hma-customer-type__options small{display:block}
.hma-customer-type__options small{margin-top:2px;color:#5b6864;font-size:11px;line-height:1.35}
[data-company-field][hidden]{display:none!important}
.hma-auth-privacy{margin:0;padding:13px 15px;border-left:3px solid var(--teal);background:var(--teal-pale);color:#40504b;font-size:12px;line-height:1.55}
.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper{margin-bottom:20px}

/* Dark mode: base pages, legal pages, WooCommerce and forms. */
html[data-theme="dark"] body{background:var(--hma-dark-page);color:var(--hma-dark-text)}
html[data-theme="dark"] body,html[data-theme="dark"] .page-shell,html[data-theme="dark"] .commerce-shell{background:var(--hma-dark-page)}
html[data-theme="dark"] .entry-content,html[data-theme="dark"] .commerce-wrap,html[data-theme="dark"] .woocommerce{color:var(--hma-dark-text)}
html[data-theme="dark"] .entry-content h1,html[data-theme="dark"] .entry-content h2,html[data-theme="dark"] .entry-content h3,html[data-theme="dark"] .entry-content h4,html[data-theme="dark"] .entry-content strong,html[data-theme="dark"] .commerce-wrap h1,html[data-theme="dark"] .commerce-wrap h2,html[data-theme="dark"] .commerce-wrap h3{color:#f4f8f6}
html[data-theme="dark"] .entry-content p,html[data-theme="dark"] .entry-content li,html[data-theme="dark"] .woocommerce .woocommerce-breadcrumb{color:var(--hma-dark-muted)}
html[data-theme="dark"] .faq-item{border-color:var(--hma-dark-line)}
html[data-theme="dark"] .faq-item summary{color:var(--hma-dark-text)}
html[data-theme="dark"] .faq-item summary>span{color:#9bddca}
html[data-theme="dark"] .faq-item summary i,html[data-theme="dark"] .faq-item summary i:after{background:var(--hma-dark-text)}
html[data-theme="dark"] .faq-item>div{color:var(--hma-dark-muted)}
html[data-theme="dark"] .feedback-card{border-color:var(--hma-dark-line);background:var(--hma-dark-surface);box-shadow:none}
html[data-theme="dark"] .feedback-card input,html[data-theme="dark"] .feedback-card select,html[data-theme="dark"] .feedback-card textarea,html[data-theme="dark"] .woocommerce input.input-text,html[data-theme="dark"] .woocommerce select,html[data-theme="dark"] .woocommerce textarea{border-color:#52665f;background:#111a17;color:#f1f6f4}
html[data-theme="dark"] .woocommerce form .form-row label{color:var(--hma-dark-text)}
html[data-theme="dark"] .woocommerce-message,html[data-theme="dark"] .woocommerce-info,html[data-theme="dark"] .woocommerce-error{border-color:var(--hma-dark-green);background:var(--hma-dark-surface-2);color:var(--hma-dark-text)}
html[data-theme="dark"] .ivts-package-card{border-color:var(--hma-dark-line);background:var(--hma-dark-surface);box-shadow:none}
html[data-theme="dark"] .ivts-package-card__value{color:var(--hma-dark-muted)}
html[data-theme="dark"] .account-dropdown{border-color:var(--hma-dark-green);background:var(--hma-dark-surface-2);color:var(--hma-dark-text)}
html[data-theme="dark"] .account-dropdown a:hover{background:#263a34}

/* Dark mode: complete refreshed home page. */
html[data-theme="dark"] .hma-home{background:var(--hma-dark-page);color:var(--hma-dark-text);--hma-paper:var(--hma-dark-page);--hma-warm:#141e1b;--hma-line:var(--hma-dark-line);--hma-text:var(--hma-dark-text);--hma-muted:var(--hma-dark-muted);--hma-mint:#1b332c;--hma-mint-soft:#15231f;--hma-green:#84cfba;--hma-green-dark:#9bddca}
html[data-theme="dark"] .hma-home h1,html[data-theme="dark"] .hma-home h2,html[data-theme="dark"] .hma-home h3{color:#f2f7f5}
html[data-theme="dark"] .hma-home p{color:var(--hma-dark-muted)}
html[data-theme="dark"] .hma-hero{background:linear-gradient(122deg,#12211d 0%,#0f1715 57%,#1a211d 100%)}
html[data-theme="dark"] .hma-clarity-note,html[data-theme="dark"] .hma-mini-form,html[data-theme="dark"] .hma-mini-document,html[data-theme="dark"] .hma-product-card,html[data-theme="dark"] .hma-audience-grid article,html[data-theme="dark"] .hma-input-example,html[data-theme="dark"] .hma-output-example,html[data-theme="dark"] .hma-outcome-grid article{border-color:var(--hma-dark-line);background:var(--hma-dark-surface);color:var(--hma-dark-text);box-shadow:none}
html[data-theme="dark"] .hma-mini-form>div:not(.hma-mini-form__head),html[data-theme="dark"] .hma-input-example dl>div{border-color:var(--hma-dark-line);background:#111a17}
html[data-theme="dark"] .hma-mini-form strong,html[data-theme="dark"] .hma-input-example dd{color:var(--hma-dark-text)}
html[data-theme="dark"] .hma-mini-document i,html[data-theme="dark"] .hma-document-lines i{background:#3a4a45}
html[data-theme="dark"] .hma-product-card--appeal{background:#101816}
html[data-theme="dark"] .hma-product-card--appeal .hma-card-label{color:#fff!important}
html[data-theme="dark"] .hma-result-box,html[data-theme="dark"] .hma-step-note,html[data-theme="dark"] .hma-warning-box,html[data-theme="dark"] .hma-legal-note{border-color:var(--hma-dark-green);background:var(--hma-dark-surface-2);color:var(--hma-dark-text)}
html[data-theme="dark"] .hma-result-box h3,html[data-theme="dark"] .hma-warning-box strong{color:#f2f7f5}
html[data-theme="dark"] .hma-feature-list,html[data-theme="dark"] .hma-feature-list li,html[data-theme="dark"] .hma-steps,html[data-theme="dark"] .hma-steps>li,html[data-theme="dark"] .hma-faq-list,html[data-theme="dark"] .hma-faq-list details{border-color:var(--hma-dark-line);color:var(--hma-dark-text)}
html[data-theme="dark"] .hma-faq-list summary{color:#f2f7f5}
html[data-theme="dark"] .hma-faq-list summary:after{border-color:#60736c;color:var(--hma-dark-green)}
html[data-theme="dark"] .hma-button--secondary{border-color:#60736c;background:var(--hma-dark-surface);color:#f2f7f5}
html[data-theme="dark"] .hma-button--secondary:hover{background:#243730;color:#fff}
html[data-theme="dark"] .hma-button--primary{background:#286d5f;color:#fff}
html[data-theme="dark"] .hma-button--primary:hover{background:#1e574c;color:#fff}
html[data-theme="dark"] .hma-step-note--strong{color:#f2f7f5!important}
html[data-theme="dark"] .hma-clarity-note strong,
html[data-theme="dark"] .hma-product-card .hma-card-label{color:#f2f7f5!important}
html[data-theme="dark"] .hma-token-card{background:#101816}
html[data-theme="dark"] .hma-privacy__icon,html[data-theme="dark"] .hma-icon{background:#1d3a32}
html[data-theme="dark"] .hma-example-tag{background:#23453b;color:#b4eadb}
html[data-theme="dark"] .hma-final-cta{background:#1f5d50}
html[data-theme="dark"] .hma-final-cta .hma-kicker{color:#d6fff4!important}
html[data-theme="dark"] .hma-final-cta h2{color:#fff}
html[data-theme="dark"] .hma-final-cta>div>p:not(.hma-kicker),html[data-theme="dark"] .hma-final-cta small{color:#e0eee9}

/* Dark mode: customer portal, auth and logged-in account. */
html[data-theme="dark"] .hma-auth__intro{background:linear-gradient(125deg,#15221e,#1d332c)}
html[data-theme="dark"] .hma-auth-card,html[data-theme="dark"] .hma-account-quicklink,html[data-theme="dark"] .hma-address-card,html[data-theme="dark"] .hma-address-form{border-color:var(--hma-dark-line);background:var(--hma-dark-surface);color:var(--hma-dark-text);box-shadow:none}
html[data-theme="dark"] .hma-auth-card__header,html[data-theme="dark"] .hma-account-section-head,html[data-theme="dark"] .hma-form-actions{border-color:var(--hma-dark-line)}
html[data-theme="dark"] .hma-auth-card__number{border-color:var(--hma-dark-line);color:var(--hma-dark-green)}
html[data-theme="dark"] .hma-auth-card__header p{color:var(--hma-dark-green)}
html[data-theme="dark"] .woocommerce form.hma-auth-form label,html[data-theme="dark"] .hma-customer-type legend{color:var(--hma-dark-text)}
html[data-theme="dark"] .woocommerce form.hma-auth-form input.input-text{border-color:#566a63;background:#101815;color:#f4f8f6}
html[data-theme="dark"] .woocommerce form.hma-auth-form .show-password-input{filter:invert(1);opacity:.82}
html[data-theme="dark"] .hma-customer-type__options span{border-color:#566a63;background:#111a17;color:var(--hma-dark-text)}
html[data-theme="dark"] .hma-customer-type__options span:before{border-color:#82938d;background:#111a17;box-shadow:inset 0 0 0 3px #111a17}
html[data-theme="dark"] .hma-customer-type__options input:checked+span{border-color:var(--hma-dark-green);background:#1e352e;box-shadow:inset 3px 0 0 var(--hma-dark-green)}
html[data-theme="dark"] .hma-customer-type__options input:checked+span:before{border-color:var(--hma-dark-green);background:var(--hma-dark-green)}
html[data-theme="dark"] .hma-customer-type__options small{color:var(--hma-dark-muted)}
html[data-theme="dark"] .hma-auth-form__options a{color:var(--hma-dark-green)}
html[data-theme="dark"] .hma-auth-privacy{border-color:var(--hma-dark-green);background:#1c322b;color:var(--hma-dark-muted)}
html[data-theme="dark"] .hma-account-welcome>div>p:last-child,html[data-theme="dark"] .hma-account-section-head>p:last-child,html[data-theme="dark"] .hma-account-quicklink small,html[data-theme="dark"] .hma-address-card address{color:var(--hma-dark-muted)}
html[data-theme="dark"] .hma-account-quicklink:hover{border-color:#60736c;color:var(--hma-dark-text);box-shadow:none}
html[data-theme="dark"] .hma-account-settings-link{background:var(--hma-dark-surface-2)}
html[data-theme="dark"] .hma-account-logout,html[data-theme="dark"] .hma-form-actions>a{color:var(--hma-dark-muted)}
html[data-theme="dark"] .woocommerce-account .woocommerce-orders-table th,html[data-theme="dark"] .woocommerce-account .woocommerce-orders-table td,html[data-theme="dark"] .woocommerce-account .woocommerce-table th,html[data-theme="dark"] .woocommerce-account .woocommerce-table td,html[data-theme="dark"] .woocommerce-account fieldset{border-color:var(--hma-dark-line)}
html[data-theme="dark"] .woocommerce-account.logged-in .woocommerce>.hma-account-sidebar,html[data-theme="dark"] .hma-account-sidebar .woocommerce-MyAccount-navigation,html[data-theme="dark"] .hma-account-help,html[data-theme="dark"] .hma-portal-status,html[data-theme="dark"] .hma-portal-actions>a,html[data-theme="dark"] .hma-form-section,html[data-theme="dark"] .hma-address-form .woocommerce-address-fields,html[data-theme="dark"] .hma-table-shell,html[data-theme="dark"] .hma-download-shell,html[data-theme="dark"] .hma-account-empty{border-color:var(--hma-dark-line);background:var(--hma-dark-surface);color:var(--hma-dark-text)}
html[data-theme="dark"] .hma-account-sidebar .woocommerce-MyAccount-navigation a{color:var(--hma-dark-muted)}
html[data-theme="dark"] .hma-account-sidebar .woocommerce-MyAccount-navigation a:hover,html[data-theme="dark"] .hma-account-sidebar .woocommerce-MyAccount-navigation .is-active a{background:#253830;color:#fff}
html[data-theme="dark"] .hma-account-help{border-color:var(--hma-dark-line)}
html[data-theme="dark"] .hma-account-help span,html[data-theme="dark"] .hma-portal-status span,html[data-theme="dark"] .hma-portal-status small,html[data-theme="dark"] .hma-portal-actions small,html[data-theme="dark"] .hma-portal-section-heading>p{color:var(--hma-dark-muted)}
html[data-theme="dark"] .hma-portal-action-link{color:#9bddca}
html[data-theme="dark"] .hma-portal-status>a{border-color:var(--hma-dark-line);color:var(--hma-dark-text)}
html[data-theme="dark"] .hma-portal-status>a:hover,html[data-theme="dark"] .hma-portal-actions>a:hover{background:var(--hma-dark-surface-2);color:#fff}
html[data-theme="dark"] .hma-portal-token{background:#286d5f}
html[data-theme="dark"] .hma-portal-token small{color:#fff}
html[data-theme="dark"] .hma-portal-hero .button{background:#286d5f!important;color:#fff!important}
html[data-theme="dark"] .hma-portal-hero .button:hover{background:#1e574c!important}
html[data-theme="dark"] .hma-status-text.is-complete{color:#9bddca!important}
html[data-theme="dark"] .hma-status-text.is-open{color:#efbd8a!important}
html[data-theme="dark"] .hma-account-sidebar .woocommerce-MyAccount-navigation a{background:var(--hma-dark-surface)!important;color:var(--hma-dark-muted)}
html[data-theme="dark"] .hma-account-help a,html[data-theme="dark"] .hma-field-help,html[data-theme="dark"] .hma-form-submit>a{color:#9bddca!important}
html[data-theme="dark"] .woocommerce-account.logged-in .woocommerce-MyAccount-content .button{background:#286d5f!important;color:#fff!important}
html[data-theme="dark"] .woocommerce-account.logged-in .woocommerce-MyAccount-content .button:hover{background:#1e574c!important;color:#fff!important}

@media(max-width:850px){
  .theme-toggle{width:44px!important;min-width:44px;height:44px!important;min-height:44px;flex-basis:44px}
  .woocommerce-account:not(.logged-in) .commerce-wrap{width:calc(100% - 30px);padding-top:30px;padding-bottom:70px}
  .hma-auth__intro{grid-template-columns:1fr;gap:28px;padding:34px 30px}
  .hma-auth__grid{grid-template-columns:1fr}
}
@media(max-width:620px){
  .header-actions{gap:6px}
  .theme-toggle{width:44px;height:44px;flex-basis:44px}
  .woocommerce-account.logged-in .hma-account-profile strong{overflow-wrap:anywhere;white-space:normal}
  .hma-auth__intro{padding:28px 22px}
  .hma-auth__intro h1{font-size:36px}
  .hma-auth-card{padding:28px 21px 31px}
  .hma-auth-form__row,.hma-customer-type__options{grid-template-columns:1fr}
  .hma-auth-form__options{align-items:flex-start;flex-direction:column;gap:10px}
}
/* Softer surface hierarchy: avoid isolated black cards in light mode. */
html:not([data-theme="dark"]) .hma-product-card--appeal,
html:not([data-theme="dark"]) .hma-token-card{
  border-color:#bfd2cb;
  background:#eef5f2;
  color:#18231f;
  box-shadow:0 18px 45px rgba(29,73,61,.08)
}
html:not([data-theme="dark"]) .hma-product-card--appeal h3,
html:not([data-theme="dark"]) .hma-product-card--appeal .hma-card-label,
html:not([data-theme="dark"]) .hma-token-card span{color:#18231f!important}
html:not([data-theme="dark"]) .hma-product-card--appeal>p:not(.hma-kicker),
html:not([data-theme="dark"]) .hma-product-card--appeal li,
html:not([data-theme="dark"]) .hma-token-card p{color:#53635e!important}
html:not([data-theme="dark"]) .hma-product-card--appeal .hma-kicker,
html:not([data-theme="dark"]) .hma-product-card--appeal .hma-icon,
html:not([data-theme="dark"]) .hma-token-card .hma-token-card__flex{color:#276f60!important}
html:not([data-theme="dark"]) .hma-product-card--appeal .hma-icon{background:#dcece6}
html:not([data-theme="dark"]) .hma-product-card--appeal .hma-button--dark{border-color:#286d5f;background:#286d5f;color:#fff}
html:not([data-theme="dark"]) .hma-product-card--appeal .hma-button--dark:hover{background:#1e574c}

/* Dark mode uses three clearly separated, green-tinted depth levels. */
html[data-theme="dark"]{
  --hma-dark-page:#111a17;
  --hma-dark-surface:#1a2924;
  --hma-dark-surface-2:#22362f;
  --hma-dark-line:#486159;
}
html[data-theme="dark"] .hma-product-card--appeal,
html[data-theme="dark"] .hma-token-card{background:#182720}
html[data-theme="dark"] .hma-mini-form>div:not(.hma-mini-form__head),
html[data-theme="dark"] .hma-input-example dl>div{background:#21312c}
html[data-theme="dark"] .feedback-card input,
html[data-theme="dark"] .feedback-card select,
html[data-theme="dark"] .feedback-card textarea,
html[data-theme="dark"] .woocommerce input.input-text,
html[data-theme="dark"] .woocommerce select,
html[data-theme="dark"] .woocommerce textarea,
html[data-theme="dark"] .woocommerce form.hma-auth-form input.input-text{
  border-color:#607b72;
  background:#24362f;
  color:#f3f8f6;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)
}
html[data-theme="dark"] .hma-customer-type__options span{border-color:#607b72;background:#22342e}

/* Generator plugin: keep sections and controls visibly distinct in dark mode. */
html[data-theme="dark"] .ivts-generator-wrap{
  --ivts-ink:#eef6f3;
  --ivts-muted:#b9c9c3;
  --ivts-line:#4c665d;
  --ivts-accent-soft:#21483d
}
html[data-theme="dark"] .ivts-form-section{
  border-color:#486159!important;
  background:linear-gradient(180deg,#1b2b25 0%,#18251f 100%)!important;
  box-shadow:0 14px 36px rgba(0,0,0,.16)!important
}
html[data-theme="dark"] .ivts-form-progress,
html[data-theme="dark"] .ivts-form-footer{
  border-color:#486159!important;
  background:rgba(31,48,42,.96)!important;
  color:#eef6f3!important
}
html[data-theme="dark"] .ivts-form-field input[type="text"],
html[data-theme="dark"] .ivts-form-field input[type="email"],
html[data-theme="dark"] .ivts-form-field input[type="number"],
html[data-theme="dark"] .ivts-form-field input[type="date"],
html[data-theme="dark"] .ivts-form-field select,
html[data-theme="dark"] .ivts-form-field textarea,
html[data-theme="dark"] .ivts-select-trigger,
html[data-theme="dark"] .ivts-choice{
  border-color:#607b72!important;
  background:#253a32!important;
  color:#f3f8f6!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important
}
html[data-theme="dark"] .ivts-form-field input:hover,
html[data-theme="dark"] .ivts-form-field select:hover,
html[data-theme="dark"] .ivts-form-field textarea:hover,
html[data-theme="dark"] .ivts-select-trigger:hover,
html[data-theme="dark"] .ivts-choice:hover{border-color:#83a69a!important;background:#2a4138!important}
html[data-theme="dark"] .ivts-form-field input:focus,
html[data-theme="dark"] .ivts-form-field select:focus,
html[data-theme="dark"] .ivts-form-field textarea:focus,
html[data-theme="dark"] .ivts-select-trigger:focus-visible{
  border-color:#91d4c2!important;
  background:#2a4138!important;
  box-shadow:0 0 0 4px rgba(139,213,192,.16)!important
}
html[data-theme="dark"] .ivts-select-menu{border-color:#607b72;background:#20322b;color:#f3f8f6}
html[data-theme="dark"] .ivts-select-option:hover,
html[data-theme="dark"] .ivts-select-option[aria-selected="true"]{background:#2b473d!important;color:#fff!important}
html[data-theme="dark"] .ivts-form-field ::placeholder{color:#a9bbb5}
html[data-theme="dark"] .ivts-form-field.is-complete input,
html[data-theme="dark"] .ivts-form-field.is-complete textarea,
html[data-theme="dark"] .ivts-form-field.is-complete .ivts-select-trigger,
html[data-theme="dark"] .ivts-generator-form .ivts-form-field.is-complete .ivts-choice:has(input:checked){border-color:#75baa6!important;background:#23463b!important}
html[data-theme="dark"] .ivts-form-field.is-invalid input,
html[data-theme="dark"] .ivts-form-field.is-invalid textarea,
html[data-theme="dark"] .ivts-form-field.is-invalid .ivts-select-trigger{background:#472b2b!important}

@media(prefers-reduced-motion:reduce){.theme-toggle{transition:none}}
