/* Compatibility for existing templates; new controls use .dh-action with an optional variant. */
.dhc-root,.dhs-root {accent-color:var(--dh-action)}
html body :is(.account-link,.assistant-fab,.site-back-top,.dhc-session-warning button,.species-button,.dhfaq-submit,.dh-about2-button,.site-footer__cta-actions>a,.site-footer__cta button,.dh-hero-shop,.dhwish-link-primary,.dhav-button,.dhav-notify-inline,.dhs-round,.dh-gallery-admin button,.dhe-profile-card button,.dh-bc button[type=submit]),
html body :is(.dhc-root,.dhe-admin-login,main,.assistant-panel,.site-consent) :is(.button,.btn,.dhc-button,.dhs-button,button[type=submit],input[type=submit]):not(.danger,.is-danger,.button-danger,.btn-danger,.destructive,.is-destructive,.remove,.delete,[data-danger],[data-remove],[data-delete],[name=delete]),
html body :is(.dhe-ops-tabs button[aria-pressed=true],.dhe-console-tabs button[aria-selected=true]),
html body .assistant-panel.assistant-v2 .assistant-input button[type=submit] {
  background:var(--dh-action)!important;
  border-color:var(--dh-action)!important;
  color:var(--dh-action-on)!important;
}
html body :is(.account-link,.assistant-fab,.site-back-top,.dhc-session-warning button,.species-button,.dhfaq-submit,.dh-about2-button,.site-footer__cta-actions>a,.site-footer__cta button,.dh-hero-shop,.dhwish-link-primary,.dhav-button,.dhav-notify-inline,.dhs-round,.dh-gallery-admin button,.dhe-profile-card button,.dh-bc button[type=submit]):hover,
html body :is(.dhc-root,.dhe-admin-login,main,.assistant-panel,.site-consent) :is(.button,.btn,.dhc-button,.dhs-button,button[type=submit],input[type=submit]):not(.danger,.is-danger,.button-danger,.btn-danger,.destructive,.is-destructive,.remove,.delete,[data-danger],[data-remove],[data-delete],[name=delete]):hover,
html body .assistant-panel.assistant-v2 .assistant-input button[type=submit]:hover {
  background:var(--dh-action-hover)!important;
  border-color:var(--dh-action-hover)!important;
  color:var(--dh-action-on)!important;
}
html body .dh-hero-shop {border:1px solid var(--dh-action-border)!important}
html body :is(.dhc-root,.dhs-root,main,.assistant-panel,.site-consent) :is(.button,.btn,.dhc-button,.dhs-button,button[type=submit],input[type=submit]):is(.secondary,.dhs-secondary,.ghost,.is-secondary,.outline,.button-outline,.btn-secondary),
html body :is(.menu-toggle,.dhc-iconbutton,.dhs-compact-action,.dhs-compare-cta,.dhfaq-inline-assistant,.dhwish-link-button:not(.dhwish-link-primary),.dh-bc button[type=reset],.dh-bc__planner-save,.dh-bc--planner button,.mobile-assistant-link,.species-profile-actions .species-button,.species-compare-tray .species-button),
html body .assistant-panel.assistant-v2 :is(.assistant-v3__action,.assistant-input .assistant-v3__photo,.assistant-suggestions button) {
  background:var(--dh-action-soft)!important;
  border-color:var(--dh-action-border)!important;
  color:var(--dh-action)!important;
}
html body :is(.dhc-root,.dhs-root,main,.assistant-panel,.site-consent) :is(.button,.btn,.dhc-button,.dhs-button,button[type=submit],input[type=submit]):is(.secondary,.dhs-secondary,.ghost,.is-secondary,.outline,.button-outline,.btn-secondary):hover,
html body :is(.menu-toggle,.dhc-iconbutton,.dhs-compact-action,.dhs-compare-cta,.dhfaq-inline-assistant,.dhwish-link-button:not(.dhwish-link-primary),.dh-bc button[type=reset],.dh-bc__planner-save,.dh-bc--planner button,.mobile-assistant-link,.species-profile-actions .species-button,.species-compare-tray .species-button):hover,
html body .assistant-panel.assistant-v2 :is(.assistant-v3__action,.assistant-input .assistant-v3__photo,.assistant-suggestions button):hover {
  background:var(--dh-action-soft-hover)!important;
  border-color:var(--dh-action-border)!important;
  color:var(--dh-action)!important;
}
html body :is(.dhc-auth-tabs,.dhc-legacy .tabs,.dhe-settings-tabs) :is(button,a):is([aria-selected=true],[aria-current=page],.active) {
  background:var(--dh-action-soft)!important;
  border-color:var(--dh-action-border)!important;
  color:var(--dh-action)!important;
}
html body :is(.shop-cart-count,.dhs-compare-count) {
  background:var(--dh-action-soft)!important;color:var(--dh-action)!important;
}
html body .shop-cart-count {background:var(--dh-action)!important;color:var(--dh-action-on)!important}
html body :is(.site-back-top,.assistant-fab) {border-color:var(--dh-action-border)!important}
html body .assistant-fab .assistant-fab__icon {background:rgba(255,255,255,.13)!important;color:var(--dh-action-on)!important}
html body :is(.assistant-fab__icon i,.assistant-panel__head>p i) {background:var(--dh-action-indicator)!important}
html body .assistant-panel.assistant-v2 .assistant-panel__head,html body .assistant-panel .assistant-panel__head,
html body .assistant-panel .assistant-message--user {
  background:var(--dh-action)!important;border-color:var(--dh-action)!important;color:var(--dh-action-on)!important;
}
html body .assistant-panel .assistant-message--user::before {background:var(--dh-action)!important}
html body .assistant-panel.assistant-v2 .assistant-v3__reset {
  background:var(--dh-action-hover)!important;border-color:var(--dh-action-border)!important;color:var(--dh-action-on-dark)!important;
}
html body :is(.species-card-link,.species-card-actions a,.species-profile-link,.dhfaq-overview,.dhwish .dhwish-link-button:not(.dhwish-link-primary),.dh-bc__source,.dhs-link-button:not(.danger,.is-danger,.destructive),.dhs-product-wish-link) {color:var(--dh-action)!important}
html body :is(.assistant-fab,.site-back-top,.menu-toggle,.species-button,.dhwish-link-button,.dhs-button,.dhc-button,.dhfaq-submit,.dhs-product-wish-link,.assistant-panel button,.button,.account-link,.dhav-notify-inline,.dh-about2-button):focus-visible {
  outline:2px solid var(--dh-action-hover)!important;outline-offset:3px;
}
html body .assistant-panel__head :is(button,a):focus-visible,html body .dh-hero :is(button,a):focus-visible {outline-color:var(--dh-action-on-dark)!important}
html body :is(.dhc-button,.dhs-button,.species-button,.assistant-panel button,.dh-bc button):disabled {cursor:not-allowed}

/* UI surfaces mounted later by the login, planner and administration scripts. */
html body #security button:not(.secondary,.dhe-show-password,.danger,.is-danger,.destructive,[data-remove],[data-delete],.dhe-settings-tabs button),
html body :is(.dhfaq-contact-actions>a,.dhfaq-contact>a,.dhc-legacy .contact-actions button:not(.secondary,.danger),.dhe-profile-card button:not(.secondary,.danger),#dh-aquariumplaner .planner-action.is-primary) {
  background:var(--dh-action)!important;border-color:var(--dh-action)!important;color:var(--dh-action-on)!important;
}
html body #security :is(button.secondary,button.dhe-show-password),
html body :is(.dhc-root,.dhe-profile-card,#security,.dh-gallery-admin) input[type=file]::file-selector-button,
html body :is(.dhc-legacy .stepper button,.dhe-page-actions :is(a,button),.dhcx-calculator button.plain,#dh-aquariumplaner .planner-action:not(.is-primary)) {
  background:var(--dh-action-soft)!important;border-color:var(--dh-action-border)!important;color:var(--dh-action)!important;
}
html body .assistant-panel__head :is(strong,small,p) {color:var(--dh-action-on-dark)!important}
html body :is(.dhc-legacy .dhc-admin-nav,.dhc-root .dhc-auth-tabs,.dhc-root .dhcu-nav) :is(a,button)[aria-current=page] {
  color:var(--dh-action)!important;border-color:var(--dh-action-border)!important;
}


/* Reusable component for new templates; existing controls keep their sizing. */
.dh-action {
  --_surface:var(--dh-action);--_hover:var(--dh-action-hover);
  --_ink:var(--dh-action-on);--_stroke:var(--dh-action);
  display:inline-flex;align-items:center;justify-content:center;gap:.45em;
  min-block-size:44px;padding:.52em .9em;border-radius:var(--dh-action-radius);
  background:var(--_surface);color:var(--_ink);border:1px solid var(--_stroke);
  font:inherit;text-decoration:none;cursor:pointer
}
.dh-action--secondary {--_surface:var(--dh-action-soft);--_hover:var(--dh-action-soft-hover);--_ink:var(--dh-action);--_stroke:var(--dh-action-border)}
.dh-action--quiet {--_surface:transparent;--_hover:var(--dh-action-soft);--_ink:var(--dh-action);--_stroke:transparent;text-decoration:underline;text-underline-offset:.2em}
.dh-action:hover {background:var(--_hover);color:var(--_ink)}
.dh-action:focus-visible {outline:2px solid var(--dh-action-hover);outline-offset:3px}
.dh-action:disabled {opacity:.55;cursor:not-allowed}

/* Customer login: resend is a secondary action, not another filled button. */
html body .dhc-root .dhc-auth-foot {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  column-gap:.5rem;
  padding-block-start:.5rem;
}
html body .dhc-root .dhc-auth-foot > .dhc-button.ghost[data-action="resend"] {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  min-height:44px;
  padding:.25rem .25rem;
  margin:0;
  color:var(--dh-action)!important;
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
  font-size:.875rem;
  font-weight:500;
  line-height:1.35;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:.2em;
}
html body .dhc-root .dhc-auth-foot > .dhc-button.ghost[data-action="resend"]:hover {
  color:var(--dh-action-hover)!important;
  background:var(--dh-action-soft)!important;
}
html body .dhc-root .dhc-form[data-form="resend"] > .dhc-button[type="submit"] {
  align-self:flex-start;
  justify-self:start;
  width:fit-content;
  max-width:100%;
  min-height:44px;
  padding:.55rem .95rem;
  border-radius:var(--dh-action-radius);
  box-shadow:none;
  font-size:.875rem;
}

/* Mobile drawer: use the same palette without replacing any existing artwork. */
html body .mobile-nav-drawer .mobile-nav-head p {
  color:var(--dh-action);
}
html body .mobile-nav-drawer .mobile-nav-group a[aria-current="page"] {
  background:var(--dh-action-soft)!important;
  color:var(--dh-action)!important;
}
html body .mobile-nav-drawer .mobile-nav-icon {
  color:var(--dh-action)!important;
  background:var(--dh-action-on)!important;
}
html body .mobile-nav-drawer .mobile-nav-group a[aria-current="page"] .mobile-nav-icon {
  color:var(--dh-action-on)!important;
  background:var(--dh-action)!important;
}
html body .mobile-nav-drawer .mobile-assistant-link .mobile-nav-icon {
  color:var(--dh-action-on)!important;
  background:var(--dh-action)!important;
}
html body .mobile-nav-drawer .mobile-assistant-link strong {
  color:var(--dh-action)!important;
}
html body .mobile-nav-drawer .mobile-assistant-link small {
  color:var(--dh-action-hover)!important;
}
html body .mobile-nav-drawer .mobile-assistant-link:focus-visible {
  outline:2px solid var(--dh-action-hover);
  outline-offset:2px;
}

/* Draw the existing PNG alpha in the palette color. Keep original images as
   fallback; dimensions, object fit, and the original source assets are unchanged. */
@supports selector(:has(> img)) and ((mask-image:url("")) or (-webkit-mask-image:url(""))) {
  .mobile-nav-drawer .mobile-nav-icon:has(> img[src*="/discus-stock-icon.png"]) {--dh-menu-art:url("/media/brand/discus-stock-icon.png?v=20260919-1")}
  .mobile-nav-drawer .mobile-nav-icon:has(> img[src*="/fish-menu-icon-20261005.png"]) {--dh-menu-art:url("/media/brand/fish-menu-icon-20261005.png")}
  .mobile-nav-drawer .mobile-nav-icon:has(> img[src*="/plant-menu-icon-20261005.png"]) {--dh-menu-art:url("/media/brand/plant-menu-icon-20261005.png")}
  .mobile-nav-drawer .mobile-nav-icon:has(> img:is([src*="/discus-stock-icon.png"],[src*="/fish-menu-icon-20261005.png"],[src*="/plant-menu-icon-20261005.png"])) {
    position:relative;
  }
  .mobile-nav-drawer .mobile-nav-icon:has(> img:is([src*="/discus-stock-icon.png"],[src*="/fish-menu-icon-20261005.png"],[src*="/plant-menu-icon-20261005.png"]))::after {
    content:"";
    position:absolute;
    inset:50% auto auto 50%;
    transform:translate(-50%,-50%);
    inline-size:23px;
    block-size:23px;
    pointer-events:none;
    background:currentColor;
    -webkit-mask:var(--dh-menu-art) center / contain no-repeat;
    mask:var(--dh-menu-art) center / contain no-repeat;
  }
  .mobile-nav-drawer .mobile-nav-icon:has(> img.species-menu-artwork[src*="-menu-icon-20261005.png"])::after {
    inline-size:26px;
    block-size:26px;
  }
  .mobile-nav-drawer .mobile-nav-icon > img:is([src*="/discus-stock-icon.png"],[src*="/fish-menu-icon-20261005.png"],[src*="/plant-menu-icon-20261005.png"]) {
    opacity:0;
  }
}

/* The public admin entry needs a heading, not an explanation of what is behind it.
   Do not hide guidance on two-factor, recovery or account screens. */
html body .dhe-admin-login .dhc-auth-body:has(> form[data-form="login"]) > :is(.dhc-eyebrow,.dhc-muted) {
  display:none;
}
html body .dhe-admin-login .dhc-auth-body:has(> form[data-form="login"]) > h1 {
  margin-block-end:1.15rem;
}
