/* Account welcome banner. CSS variables are sanitized on the PHP side. */
.dashboard-welcome.azgard-account-banner {
  --azg-ban-active-a:var(--azg-ban-light-start);--azg-ban-active-b:var(--azg-ban-light-end);
  --azg-ban-active-title:var(--azg-ban-light-title);--azg-ban-active-text:var(--azg-ban-light-text);
  --azg-ban-active-badge:var(--azg-ban-light-badge);
  position:relative;isolation:isolate;display:flex;align-items:center;overflow:hidden;
  min-height:var(--azg-ban-height);padding:26px 31px;border-radius:var(--azg-ban-radius);
  background:linear-gradient(115deg,var(--azg-ban-active-a),var(--azg-ban-active-b));
  color:var(--azg-ban-active-title);border:1px solid rgba(255,255,255,.12);
}
html[data-azg-color-mode="dark"] .dashboard-welcome.azgard-account-banner,
.azgard-banner-preview[data-azg-color-mode="dark"] .dashboard-welcome.azgard-account-banner {
  --azg-ban-active-a:var(--azg-ban-dark-start);--azg-ban-active-b:var(--azg-ban-dark-end);
  --azg-ban-active-title:var(--azg-ban-dark-title);--azg-ban-active-text:var(--azg-ban-dark-text);
  --azg-ban-active-badge:var(--azg-ban-dark-badge);
}
.dashboard-welcome.azgard-account-banner > .azgard-account-banner__copy {position:relative;z-index:2;max-width:68%;}
.dashboard-welcome.azgard-account-banner .azgard-account-banner__eyebrow {display:inline-flex;color:var(--azg-ban-active-badge);background:rgba(255,255,255,.09);padding:5px 12px;border-radius:99px;line-height:1.8;font-size:11px;font-weight:700;}
.dashboard-welcome.azgard-account-banner .azgard-account-banner__title {color:var(--azg-ban-active-title);margin:9px 0 5px;line-height:1.5;font-size:clamp(19px,2vw,27px);font-weight:800;}
.dashboard-welcome.azgard-account-banner .azgard-account-banner__description {color:var(--azg-ban-active-text);font-size:12px;line-height:1.85;margin:0 0 17px;}
.dashboard-welcome.azgard-account-banner .azgard-account-banner__button {display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:99px;padding:10px 18px;background:var(--azg-ban-btn-bg);color:var(--azg-ban-btn-text);box-shadow:0 9px 20px rgba(0,0,0,.14);font-size:12px;text-decoration:none;transition:transform .2s,filter .2s;}
.dashboard-welcome.azgard-account-banner .azgard-account-banner__button:hover {filter:brightness(1.08);transform:translateY(-2px);color:var(--azg-ban-btn-text);}
.dashboard-welcome.azgard-account-banner .azgard-account-banner__button svg {color:inherit;fill:none;stroke:currentColor;}
.dashboard-welcome.azgard-account-banner > img.azgard-account-banner__image {position:absolute;left:var(--azg-ban-img-offset);bottom:0;width:var(--azg-ban-img-width);height:100%;max-width:none;object-fit:contain;mix-blend-mode:normal;opacity:var(--azg-ban-img-opacity);transform:rotate(var(--azg-ban-img-rotation));z-index:1;pointer-events:none;-webkit-mask-image:linear-gradient(90deg,#000 72%,transparent);mask-image:linear-gradient(90deg,#000 72%,transparent);}
.dashboard-welcome.azgard-account-banner [hidden] {display:none!important;}
.azgard-banner-preview [data-banner-disabled="1"] {opacity:.35;}
@media(max-width:650px){.dashboard-welcome.azgard-account-banner{padding:22px 20px;min-height:max(180px,var(--azg-ban-height));}.dashboard-welcome.azgard-account-banner>.azgard-account-banner__copy{max-width:82%;}.dashboard-welcome.azgard-account-banner .azgard-account-banner__title{font-size:20px}.dashboard-welcome.azgard-account-banner>img.azgard-account-banner__image{width:min(var(--azg-ban-img-width),45%);opacity:calc(var(--azg-ban-img-opacity) * .65)}}

/* Visible only to managers on the real dashboard; never present in the editor preview. */
.dashboard-welcome.azgard-account-banner .azgard-account-banner__admin-edit{position:absolute;top:13px;left:13px;z-index:4;display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:8px;background:rgba(0,0,0,.28);color:#fff;border:1px solid rgba(255,255,255,.2);font-size:10px;text-decoration:none;backdrop-filter:blur(6px)}
.dashboard-welcome.azgard-account-banner .azgard-account-banner__admin-edit:hover{background:rgba(0,0,0,.5);color:#fff}
.azgard-banner-preview.is-mobile .dashboard-welcome.azgard-account-banner{padding:22px 20px;min-height:max(180px,var(--azg-ban-height))}
.azgard-banner-preview.is-mobile .dashboard-welcome.azgard-account-banner>.azgard-account-banner__copy{max-width:82%}
.azgard-banner-preview.is-mobile .dashboard-welcome.azgard-account-banner .azgard-account-banner__title{font-size:20px}
.azgard-banner-preview.is-mobile .dashboard-welcome.azgard-account-banner>img.azgard-account-banner__image{width:min(var(--azg-ban-img-width),45%);opacity:calc(var(--azg-ban-img-opacity) * .65)}

/* A removed image frees the complete banner area for its text. */
.dashboard-welcome.azgard-account-banner--no-image > .azgard-account-banner__copy {max-width:100%;}
.azgard-banner-preview.is-mobile .dashboard-welcome.azgard-account-banner--no-image > .azgard-account-banner__copy {max-width:100%;}
@media(max-width:650px){.dashboard-welcome.azgard-account-banner--no-image > .azgard-account-banner__copy {max-width:100%;}}

/* 4.24.7: Follow the actual visual-identity tokens, including live palette changes.
   Custom colors from the editor remain untouched until custom mode is selected. */
.dashboard-welcome.azgard-account-banner[data-banner-palette="theme"] {
  --azg-ban-active-a:var(--azds-surface,#ffffff);
  --azg-ban-active-b:var(--azds-wash,#e9f8ef);
  --azg-ban-active-title:var(--azds-ink,#112d24);
  --azg-ban-active-text:var(--azds-muted,#6b7c80);
  --azg-ban-active-badge:var(--azds-primary,#00885c);
  --azg-ban-active-button:linear-gradient(120deg,var(--azds-button-start,#00a86b),var(--azds-button-end,#078452));
  --azg-ban-active-button-text:var(--azds-button-text,#fff);
  border-color:var(--azds-line,#dcebe2);
  box-shadow:var(--azds-shadow,0 8px 19px #0001);
}
/* Must outrank the custom day/night rules above regardless of active theme. */
html[data-azg-color-mode="dark"] .dashboard-welcome.azgard-account-banner[data-banner-palette="theme"],
.azgard-banner-preview[data-azg-color-mode="dark"] .dashboard-welcome.azgard-account-banner[data-banner-palette="theme"] {
  --azg-ban-active-a:var(--azds-surface,#17231f);
  --azg-ban-active-b:var(--azds-wash,#1a2d24);
  --azg-ban-active-title:var(--azds-ink,#e6f3ed);
  --azg-ban-active-text:var(--azds-muted,#a3b7ad);
  --azg-ban-active-badge:var(--azds-primary,#00a86b);
}
.dashboard-welcome.azgard-account-banner[data-banner-palette="theme"] .azgard-account-banner__button {
  background:var(--azg-ban-active-button);
  color:var(--azg-ban-active-button-text);
}
.dashboard-welcome.azgard-account-banner[data-banner-palette="theme"] .azgard-account-banner__button:hover {color:var(--azg-ban-active-button-text)}
.dashboard-welcome.azgard-account-banner[data-banner-disabled="1"] {opacity:.6;}
/* WP admin preview has its own palette scope, matching the live frontend light/dark tokens. */
.azgard-banner-preview[data-azg-color-mode="dark"] {
  --azds-surface:#17231f;--azds-wash:#1a2d24;--azds-ink:#e6f3ed;
  --azds-muted:#a3b7ad;--azds-line:#30463b;--azds-shadow:0 12px 30px #0003;
}
