.h6-header.h6-account-header .h6-dealer-account { position: relative; }
.h6-header.h6-account-header .h6-dealer-account > summary::after { display: none; }
.h6-dealer-account .hda-panel {
    position: absolute;
    z-index: 80;
    top: calc(100% + 12px);
    inset-inline-end: 0;
    width: 352px;
    max-height: calc(100dvh - 116px);
    overflow: auto;
    overscroll-behavior: contain;
    background: #fff;
    color: #233c45;
    border: 1px solid #dbe3e5;
    border-radius: 16px;
    box-shadow: 0 18px 48px #11273033, 0 2px 8px #11273013;
    text-align: start;
}
.hda-identity {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 19px 17px;
    color: #fffaf4;
    background: linear-gradient(115deg, #172e38, #2d4851);
}
.hda-store {
    display: grid;
    place-items: center;
    flex: none;
    width: 43px;
    height: 43px;
    border: 1px solid #f0b58d77;
    border-radius: 12px;
    color: #ffd0aa;
    background: #e8af870e;
}
.hda-business { flex: 1; min-width: 0; }
.hda-business-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; }
.hda-business-meta small { font-size: 10px; line-height: 1.5; color: #c5d4d6; }
.hda-identity strong {
    display: block;
    margin-block-start: 4px;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-align: match-parent;
}
.hda-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 6px;
    border: 1px solid #e7b9904a;
    border-radius: 20px;
    color: #ffdab3;
    font-size: 10px;
    line-height: 1.55;
}
.hda-status[data-approved=true] { border-color: #b2d9c84d; color: #c9eddb; }
.hda-status i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.hda-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 12px;
}
.hda-links a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "icon arrow" "label label";
    align-content: space-between;
    align-items: center;
    gap: 7px;
    min-height: 65px;
    padding: 9px 12px;
    border: 1px solid #e5eaeb;
    border-radius: 9px;
    background: #f8faf9;
    color: #273f48;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    white-space: normal;
    text-decoration: none;
}
.hda-shortcut-icon { grid-area: icon; color: #52717c; }
.hda-links:has(> :nth-child(5):last-child) > a:first-child {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "icon label arrow";
    align-content: center;
    min-height: 40px;
}
.hda-links a > span { grid-area: label; }
.hda-shortcut-arrow { grid-area: arrow; color: #738790; }
.hda-links a:is(:hover, :focus-visible) { background: #fff6ed; border-color: #dda57f; }
.hda-links a:is(:hover, :focus-visible) .hda-shortcut-icon { color: #a14e28; }
.hda-personal{display:grid;grid-template-columns:1fr 1fr;border-block:1px solid #edf0f2;margin:0 20px;padding:13px 0;gap:10px}.hda-personal>a{display:flex;align-items:center;gap:7px;font-size:11px;color:#788d99;line-height:1.8;padding:4px 0}.hda-personal>a:hover{color:#a86e48}.hda-preferences{padding:16px 20px}.hda-preferences>span{display:block;font-size:9px;letter-spacing:.04em;color:#9aa8b1;margin-bottom:11px}.hda-preferences>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.hda-preferences button{font:inherit;display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;min-height:80px;border:1px solid #e5eaed;border-radius:8px;background:#fafcfc;color:#617e8f;padding:10px;text-align:start;cursor:pointer}.hda-preferences button>svg{margin-bottom:3px;color:#b08d70}.hda-preferences button>small{font-size:9px;color:#a0aeb7}.hda-preferences button>strong{font-size:10px;line-height:1.7;font-weight:500;color:#4b697b;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hda-preferences button:hover{border-color:#d6baa5;background:#fff8f2}.hda-bottom{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;background:#f8fafb;border-top:1px solid #e9eef0;gap:12px}.hda-bottom>span{font-size:10px;line-height:1.8;color:#8c9da7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hda-bottom form{margin:0}.hda-bottom button{display:flex;align-items:center;gap:6px;background:transparent;border:0;color:#a87764;font-size:11px;padding:5px 0;white-space:nowrap;cursor:pointer}.h6-dealer-account .hda-panel a:focus-visible,.h6-dealer-account .hda-panel button:focus-visible{outline:2px solid #d79b70;outline-offset:2px}
@media (max-width:1100px) {
    .h6-header.h6-account-header .h6-dealer-account .hda-panel { display: block; }
}
@media (max-width:760px) {
    .h6-header.h6-account-header .h6-tools { display: none; }
    .h6-header.h6-account-header .h6-brand .brand-artwork { width: 85px!important; max-width: 85px!important; height: auto!important; }
    .h6-header.h6-account-header .h6-brand-navigation { flex: 0 0 auto; gap: 0; margin-inline-end: auto; }
    .h6-header.h6-account-header .h6-actions { gap: 6px; }
    .h6-header.h6-account-header .h6-bar { gap: 8px; }
    .h6-header.h6-account-header .h6-dealer-account { position: static; }
    .h6-header.h6-account-header .hda-panel {
        position: absolute;
        top: calc(100% + 8px);
        inset-inline: 12px;
        width: auto;
        max-width: 380px;
        margin-inline-start: auto;
        max-height: calc(100dvh - 130px);
    }
    .hda-personal { padding: 11px 0; }
    .hda-personal > a { min-height: 36px; }
    .hda-preferences { padding: 14px 18px; }
    .hda-preferences button { min-height: 77px; }
    .hda-bottom { padding: 11px 18px; }
}
.h6-header.h6-account-header:has(.h6-dealer-account[open]){z-index:80}

/* The inbox and the active business share one surface at the end of the header. */
.h6-workspace {
    --paper: #faf6ed;
    --ink: #20323a;
    --sweep: 18px;
    --tip: 6px;
    --rim: 3px;
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    padding: calc(var(--rim) - 1px);
    border: 1px solid #e8d9c6;
    border-radius: var(--tip);
    border-start-start-radius: var(--sweep);
    border-end-end-radius: var(--sweep);
    background: var(--paper);
    color: var(--ink);
}
/* Matching corner insets keep the three controls aligned on photographic and solid headers. */
.h6-header .h6-workspace .favorite-link {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    min-height: 42px;
    padding: 0;
    background: #f3ebde;
    color: #865132;
    border: 0;
    border-radius: calc(var(--tip) - var(--rim));
    border-start-start-radius: calc(var(--sweep) - var(--rim));
    box-shadow: inset 0 0 0 1px #dfccb5;
}
.h6-header .h6-workspace .favorite-link > svg { width: 20px; height: 20px; stroke-width: 1.8; }
.h6-header .h6-workspace .favorite-link:is(:hover,:focus-visible) { background: #ead8c1; color: #653a22; }
.h6-header .h6-workspace .h6-add,
.h6-header .h6-workspace .h6-dealer-account > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    width: auto;
    min-height: 42px;
    max-width: none;
    padding: 4px 11px;
    border: 0;
    border-radius: calc(var(--tip) - var(--rim));
    background: transparent;
    box-shadow: none;
    color: var(--ink);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    white-space: nowrap;
    cursor: pointer;
}
.h6-header .h6-workspace .h6-add { padding-inline: 13px; }
.h6-header .h6-workspace .h6-add > svg { width: 19px; height: 19px; color: #93522f; }
.h6-workspace .hda-trigger-avatar {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 3px;
    border-start-start-radius: 10px;
    border-end-end-radius: 10px;
    color: #ffcea0;
    border: 1px solid #a78262;
}
.h6-workspace .hda-trigger-avatar .icon { width: 18px; height: 18px; }
.h6-header .h6-workspace .h6-dealer-account > summary {
    background: #283b40;
    color: #fff7eb;
    border-end-end-radius: calc(var(--sweep) - var(--rim));
    padding-inline: 6px 10px;
}
.h6-header .h6-workspace .hda-disclosure {
    display: block;
    flex: none;
    width: 16px;
    height: 16px;
    margin: 0;
    color: #e7b992;
    transform-origin: center;
    transition: transform 160ms ease;
}
.h6-header .h6-workspace .h6-dealer-account[open] .hda-disclosure {
    color: #ffd3b0;
    transform: rotate(180deg);
}
.h6-header .h6-workspace .h6-add:hover { background: #eee2d1; }
.h6-header .h6-workspace .h6-dealer-account:is([open], :hover) > summary { background: #354c50; }
.h6-header .h6-workspace .h6-dealer-account > summary:focus-visible { outline-color: #ffcea0; }
@media (prefers-reduced-motion: reduce) {
    .h6-header .h6-workspace .hda-disclosure { transition: none; }
}
.h6-header .h6-workspace :is(.h6-add, summary):focus-visible {
    outline: 2px solid #a3491b;
    outline-offset: -2px;
}
.h6-workspace .h6-request-count {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding-inline: 4px;
    border-radius: 7px;
    background: #f6cfaa;
    color: #653315;
    direction: ltr;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    line-height: 1;
}
@media (max-width:760px) {
    .h6-header.h6-account-header .h6-actions { min-width: 0; flex-shrink: 1; }
    .h6-account-header :is(.h6-mobile-menu, .h6-workspace details, .h6-request-count) { flex-shrink: 0; }
    .h6-workspace .h6-action-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .h6-header .h6-workspace .h6-add,
    .h6-header .h6-workspace .h6-dealer-account > summary { font-size: 12px; gap: 5px; }
    .h6-header .h6-workspace .h6-add { padding-inline: 8px; }
    .h6-header .h6-workspace .h6-add > svg { width: 16px; height: 16px; }
    .h6-header .h6-workspace .h6-dealer-account > summary { padding-inline: 5px 7px; }
    .h6-workspace .hda-trigger-avatar { width: 26px; height: 26px; }
    .h6-workspace .hda-trigger-avatar > svg { width: 16px; height: 16px; }
    .h6-workspace .h6-request-count { min-width: 18px; height: 18px; font-size: 11px; }
    .h6-header .h6-workspace .hda-disclosure { width: 13px; height: 13px; }
}
@media (max-width:490px) {
    .h6-header .h6-workspace .favorite-link { display: none; }
    .h6-header .h6-workspace .h6-add { border-start-start-radius: calc(var(--sweep) - var(--rim)); }
}
@media (max-width:440px) {
    .h6-header.h6-account-header .h6-brand .brand-artwork { width: 76px!important; max-width: 76px!important; }
    .h6-header.h6-account-header .h6-bar { gap: 4px; }
    .h6-header .h6-workspace .h6-add > svg { display: none; }
    .h6-header .h6-workspace .h6-dealer-account > summary { gap: 3px; }
    .h6-header .h6-workspace .h6-dealer-account > summary { padding-inline: 4px 5px; }
    .h6-header .h6-workspace .h6-add { padding-inline: 4px; font-size: 11.5px; }
    .h6-workspace .h6-action-label { white-space: normal; text-align: start; }
}
@media (min-width:381px) and (max-width:440px) {
    .h6-header .h6-workspace:has([data-business-type="car_wash"], [data-business-type="detailing"], [data-business-type="mobile_services"]) .h6-add {
        gap: 3px;
        padding-inline: 2px;
    }
    .h6-header .h6-workspace :is([data-business-type="car_wash"], [data-business-type="detailing"], [data-business-type="mobile_services"]) > summary {
        gap: 2px;
        padding-inline: 3px;
        font-size: 11.5px;
    }
    .h6-workspace :is([data-business-type="car_wash"], [data-business-type="detailing"], [data-business-type="mobile_services"]) .hda-trigger-avatar {
        width: 23px;
        height: 23px;
    }
}
@media (max-width:380px) {
    .h6-header .h6-workspace .h6-dealer-account > summary { min-width: 44px; }
    .h6-header .h6-workspace .h6-dealer-account > summary .hda-trigger-label { display: none; }
    .h6-header .h6-workspace .h6-add { white-space: normal; max-width: 110px; text-align: start; }
}

/* The public header uses the same account strip as the member workspace. */
.h6-header .h6-guest-actions .h6-guest-market {
    width: 42px;
    min-height: 42px;
    color: #526866;
    border-radius: calc(var(--tip) - var(--rim));
    border-start-start-radius: calc(var(--sweep) - var(--rim));
}
.h6-header .h6-guest-actions .h6-guest-market > svg { width: 20px; height: 20px; }
.h6-header .h6-guest-actions .favorite-link {
    width: 38px;
    background: transparent;
    border-radius: 3px;
    box-shadow: none;
    color: #865132;
}
.h6-header .h6-guest-actions :is(.h6-guest-market, .favorite-link):is(:hover, :focus-visible) {
    background: #eee2d1;
    color: #663e29;
}
.h6-header .h6-guest-actions .h6-add {
    border-inline-start: 1px solid #dfd3c3;
    border-radius: 0;
}
.h6-guest-panel .h6-guest-login {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 12px;
    min-height: 54px;
    padding: 8px 13px;
    border-radius: 8px;
    background: #263c40;
    color: #fff9f1;
    font-size: 14px;
    font-weight: 600;
}
.h6-guest-panel .h6-guest-login:is(:hover, :focus-visible) { background: #354c50; }
.h6-guest-login-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #ffcea0;
    border: 1px solid #a78262;
    border-radius: 5px;
    border-start-start-radius: 10px;
}
.h6-guest-login-icon > svg { width: 18px; height: 18px; }
.h6-guest-login > .directional { margin-inline-start: auto; width: 17px; color: #e7b992; }
.h6-guest-panel .hda-links { padding-block-start: 0; }
.h6-guest-panel .hda-links > :only-child { grid-column: 1 / -1; }
.h6-guest-utilities { display: none; }
@media (max-width: 760px) {
    .h6-header .h6-guest-actions .h6-guest-market,
    .h6-header .h6-guest-actions .favorite-link { display: none; }
    .h6-header .h6-guest-actions .h6-add {
        border: 0;
        border-start-start-radius: calc(var(--sweep) - var(--rim));
    }
    .h6-guest-utilities {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 8px 12px;
        border-top: 1px solid #e6e9e8;
        background: #f8faf9;
    }
    .h6-guest-utilities > :is(a, button) {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 44px;
        padding: 5px;
        border: 0;
        border-radius: 6px;
        background: transparent;
        color: #47605e;
        font: inherit;
        font-size: 12px;
        cursor: pointer;
    }
    .h6-guest-utilities > :is(a, button):is(:hover, :focus-visible) { background: #eee8df; }
    .h6-guest-utilities .icon { width: 17px; height: 17px; }
}
