.hp-field {
    height: 1px !important;
    left: -10000px !important;
    overflow: hidden !important;
    position: absolute !important;
    top: auto !important;
    width: 1px !important;
}

.auth-system-error,
.auth-system-notice {
    border: 1px solid;
    border-radius: 0.75rem;
    font-size: 0.93rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    padding: 0.8rem 0.9rem;
}

.auth-system-error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #9f1239;
}

.auth-system-notice {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

.auth-system-error a,
.auth-system-notice a {
    color: inherit;
    font-weight: 800;
}

.auth-field-error {
    color: #b91c1c;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0.35rem 0 0;
    min-height: 1.1em;
}

.form-field input[aria-invalid="true"] {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.auth-help-text {
    line-height: 1.5;
}
/* Auth Core customer-dashboard presentation. */
.account-nav a.account-nav-link {
    text-decoration: none;
}

.account-signout-form {
    margin: 0;
}

.account-dashboard-grid-live {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-dashboard-grid-live .account-block > p {
    color: var(--color-text-muted, #687078);
    line-height: 1.7;
    margin: 0 0 1.25rem;
}

.account-block-heading a {
    color: inherit;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
}

.account-notice {
    border: 1px solid #d7dce0;
    border-radius: .5rem;
    margin-bottom: 1rem;
    padding: .9rem 1rem;
}

.account-notice-success { background: #edf8f0; border-color: #abd4b5; }
.account-notice-danger { background: #fff0f0; border-color: #e5b4b4; }
.account-notice-warning { background: #fff8e6; border-color: #e7cf8a; }
.account-notice-info { background: #eef6fb; border-color: #b7d3e3; }

@media (max-width: 760px) {
    .account-dashboard-grid-live {
        grid-template-columns: 1fr;
    }
}

/* Authenticated DMR customer-account shell. */
.site-account-shell-active,
.site-account-shell-active .dmr-account-core-main {
    background: #f4f2ed;
}

.site-account-shell-active .dmr-account-core-main {
    margin: 0;
    max-width: none;
    min-height: 100vh;
    padding: 0;
}

.account-site-header { position: sticky; top: 0; z-index: 100; }
.account-shell-section { padding: 3rem 0 4.5rem; }
.account-section-no-hero { padding-top: 0; }
.account-shell-layout { align-items: start; }
.account-core-content { min-width: 0; }

.account-core-content > .container,
.account-core-content > .container-fluid {
    margin: 0;
    max-width: none;
    padding: 0 !important;
    width: 100%;
}

.account-core-content .card {
    border: 1px solid #d9d4ca;
    border-radius: .35rem;
    box-shadow: none;
}

.account-core-content .card-header {
    background: #173b2e;
    border-color: #173b2e;
    color: #fff;
}

/* Core customer controllers historically render their own top navbar. The
   active site shell owns that chrome; retain controller content and modals. */
.account-core-content > .mb-4:first-child,
.account-core-content > .dashboard-shell > .mb-4:first-child { display: none !important; }
.account-core-content > .dashboard-shell {
    display: block;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    max-width: none;
    width: 100%;
}
.account-core-content .dashboard-main-pane { min-width: 0; width: 100%; }

.dmr-account-external-shell {
    align-items: start;
    display: grid;
    gap: 2.25rem;
    grid-template-columns: 270px minmax(0, 1fr);
    padding-bottom: 4.5rem;
    padding-top: 0;
}
.dmr-account-external-content { min-width: 0; }
.dmr-account-external-content > main { min-width: 0; }
.dmr-account-external-content .section-shell { width: 100%; }
.dmr-account-external-content .store-hero,
.dmr-account-external-content .cart-hero { display: none; }
.dmr-account-external-content .store-section,
.dmr-account-external-content .cart-section { padding-top: 0; }

.account-user-menu { position: relative; }
.account-user-menu summary {
    align-items: center;
    background: #173b2e;
    border: 1px solid #173b2e;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    gap: 0;
    justify-content: center;
    min-height: 42px;
    min-width: 42px;
    padding: .65rem;
}
.account-user-menu summary::-webkit-details-marker { display: none; }
.account-menu-icon {
    display: block;
    fill: currentColor;
    height: 1.6rem;
    width: 1.6rem;
}
.account-user-menu summary::after { content: none; }
.account-user-dropdown {
    background: #fff;
    border: 1px solid #d9d4ca;
    box-shadow: 0 16px 36px rgba(18, 31, 25, .16);
    min-width: 190px;
    padding: .4rem;
    position: absolute;
    right: 0;
    top: calc(100% + .45rem);
    z-index: 50;
}
.account-user-dropdown a,
.account-user-dropdown button {
    background: transparent;
    border: 0;
    color: #173b2e;
    display: block;
    font: inherit;
    font-weight: 700;
    padding: .65rem .75rem;
    text-align: left;
    text-decoration: none;
    width: 100%;
}
.account-user-dropdown a:hover,
.account-user-dropdown button:hover { background: #eef1ed; }
.account-user-dropdown form { border-top: 1px solid #e3dfd7; margin: .3rem 0 0; padding-top: .3rem; }
.account-shell-footer { margin-top: auto; }

/* The legacy customer controllers carry a second Bootstrap shell. The site
   presentation owns the sidebar and width; retain only the controller pane. */
.account-core-content > .dashboard-shell {
    padding: 0 !important;
}
.account-core-content > .dashboard-shell > .dashboard-sidebar-pane {
    display: none !important;
}
.account-core-content .dashboard-main-pane > .row {
    margin-left: 0;
    margin-right: 0;
}
.account-core-content > .mb-4:has(> nav.navbar) {
    display: none !important;
}
.account-core-content > .row.justify-content-center {
    justify-content: flex-start !important;
    margin-left: 0;
    margin-right: 0;
}
.account-core-content > .row.justify-content-center > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

@media (max-width: 980px) {
    .account-shell-layout { grid-template-columns: 1fr; }
    .account-shell-sidebar { position: static; }
    .dmr-account-external-shell { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .account-shell-section { padding-top: 1.5rem; }
    .account-user-menu { width: 100%; }
    .account-user-menu summary { justify-content: center; width: 100%; }
    .account-user-dropdown { left: 0; right: 0; }
}
