/*
 * Amoot Hub Mobile Shell — v1
 * Scope: global site chrome / panel navigation only.
 * Keep visual tokens in this file until the shared design-token package is introduced.
 * Icon source: existing Iconsax icon font (no SVG icons in shell components).
 */
:root {
    --hub-shell-primary: #2166ae;
    --hub-shell-primary-soft: #eaf3fc;
    --hub-shell-ink: #172b43;
    --hub-shell-muted: #758299;
    --hub-shell-surface: #ffffff;
    --hub-shell-subtle: #f7f9fc;
    --hub-shell-stroke: #e5ebf2;
    --hub-shell-radius: 12px;
    --hub-shell-card-radius: 4px;
    --hub-shell-elevation: 0 -12px 40px rgba(20, 48, 85, 0.14);
    --hub-shell-speed: 280ms;
    --hub-mobile-nav-height: 70px;
    --hub-mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Shared header typography and product selector; desktop navigation remains unchanged. */
.hub-site-header__inner,
.hub-site-header__brand-group,
.hub-site-header__actions {
    display: flex;
    align-items: center;
}
.hub-site-header__inner { justify-content: space-between; gap: 12px; }
.hub-site-header__brand-group { gap: 8px; min-width: 0; }
.hub-site-header__actions { gap: 7px; }
.hub-site-header__wordmark {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--hub-shell-primary);
    text-decoration: none;
    font-weight: 800;
    font-size: 17px;
    white-space: nowrap;
}
.hub-site-header__wordmark:hover { color: var(--hub-shell-primary); }
.hub-site-header__brand-group #header-menu { margin: 0 10px 0 0; }
.hub-site-header__brand-group #header-menu > li { margin-top: 0; }
.hub-site-header__actions .hub-action,
.hub-site-header__brand-group .hub-action {
    display: inline-grid;
    place-items: center;
    position: relative;
    width: 40px;
    height: 40px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--hub-shell-ink);
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}
.hub-site-header__actions .hub-action:hover,
.hub-site-header__brand-group .hub-action:hover {
    background: var(--hub-shell-primary-soft);
    color: var(--hub-shell-primary);
}
.hub-site-header__actions .hub-action i,
.hub-site-header__brand-group .hub-action i { font-size: 23px; line-height: 1; }
.hub-site-header .hub-action__count {
    position: absolute;
    top: -3px;
    right: -3px;
    left: auto;
    min-width: 17px;
    height: 17px;
    padding: 1px 4px;
    border-radius: 99px;
    font-size: 10px;
    line-height: 15px;
    background: #df334e;
    color: #fff;
    text-align: center;
}
.hub-site-header .hub-action__count:empty,
.hub-site-header .hub-action__count:not(:empty)[data-zero="true"] { display: none; }
.hub-site-header__login { display: flex; align-items: center; gap: 7px; color: var(--hub-shell-primary); }
.hub-site-header__login i { font-size: 23px; }
.hub-site-header__desktop-profile { display: inline-flex; align-items: center; gap: 6px; }
.hub-site-header__products-desktop .hub-product-selector {
    border: 1px solid #d6e4f4;
    border-radius: 9px;
    color: var(--hub-shell-primary);
}
.hub-site-header .services-menu-wrapper .hub-product-grid.show {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 268px;
    max-height: none;
    padding: 12px;
    inset-inline-start: 0;
    left: auto;
    top: 44px !important;
    border: 1px solid var(--hub-shell-stroke);
    box-shadow: 0 16px 32px rgba(28, 50, 84, .14);
}
.hub-product-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    padding: 12px 8px;
    border: 1px solid var(--hub-shell-stroke);
    border-radius: 9px;
    background: var(--hub-shell-subtle);
    color: var(--hub-shell-ink);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}
.hub-product-link:hover { border-color: var(--hub-shell-primary); color: var(--hub-shell-primary); }
.hub-product-link__mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 800;
    background: #e6f6f5;
    color: #1db8b4;
}
.hub-product-link--payamak .hub-product-link__mark { background: #fff0e9; color: #fb7250; }
.hub-product-link--owj .hub-product-link__mark { background: #f2eafd; color: #723fa8; }
.hub-product-link--alavan .hub-product-link__mark { background: #fff0f1; color: #e32e47; }

.hub-action--menu,
.hub-action--products,
.hub-action--account,
.hub-mobile-bottom-nav,
.hub-mobile-sheet,
.hub-mobile-backdrop,
.hub-mobile-feedback,
.hub-user-panel-opener { display: none; }

/* Mobile-first chrome; existing desktop layout resumes at >= 992px. */
@media (max-width: 991.98px) {
    body { padding-bottom: calc(var(--hub-mobile-nav-height) + var(--hub-mobile-safe-bottom)); }
    body.hub-mobile-lock { overflow: hidden !important; }
    .hub-site-header {
        z-index: 1081 !important;
        padding: 10px 0 !important;
        min-height: 64px;
        background: rgba(255, 255, 255, .98) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
    }
    .hub-site-header__inner { gap: 4px; flex-wrap: nowrap; }
    .hub-site-header__brand-group { gap: 2px; }
    .hub-site-header__brand-group #header-menu,
    .hub-site-header__products-desktop,
    .hub-site-header__desktop-profile { display: none !important; }
    .hub-site-header__wordmark { font-size: clamp(12px, 3.4vw, 16px); }
    .hub-site-header__actions { flex-direction: row-reverse; gap: 0; }
    .hub-site-header__actions .hub-action,
    .hub-site-header__brand-group .hub-action {
        display: inline-grid;
        width: clamp(31px, 8.5vw, 40px);
        height: 39px;
        border-radius: 9px;
    }
    .hub-site-header__brand-group .hub-action i,
    .hub-site-header__actions .hub-action i { font-size: 21px; }
    .hub-site-header__brand-group .hub-action--products { color: var(--hub-shell-primary); }
    .hub-site-header__actions .hub-action__count { top: -2px; right: 0; }
    .hub-site-header__login span { display: none; }

    .hub-mobile-bottom-nav {
        position: fixed;
        right: 0;
        left: 0;
        bottom: 0;
        z-index: 1100;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        height: calc(var(--hub-mobile-nav-height) + var(--hub-mobile-safe-bottom));
        padding: 6px max(5px, env(safe-area-inset-right, 0px)) calc(5px + var(--hub-mobile-safe-bottom)) max(5px, env(safe-area-inset-left, 0px));
        border-top: 1px solid var(--hub-shell-stroke);
        background: #fff;
        box-shadow: 0 -4px 22px rgba(20, 40, 70, .07);
        direction: rtl;
    }
    .hub-mobile-bottom-nav__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        min-height: 49px;
        color: var(--hub-shell-muted);
        font-size: clamp(9px, 2.7vw, 11px);
        line-height: 1.45;
        text-decoration: none;
        white-space: nowrap;
    }
    .hub-mobile-bottom-nav__item i { font-size: 22px; }
    .hub-mobile-bottom-nav__item.is-active { color: var(--hub-shell-primary); font-weight: 700; }
    .hub-mobile-bottom-nav__item--home { transform: translateY(-10px); color: var(--hub-shell-primary); }
    .hub-mobile-bottom-nav__home {
        display: grid;
        place-items: center;
        width: 54px;
        height: 54px;
        border: 4px solid white;
        border-radius: 50%;
        background: var(--hub-shell-primary);
        color: #fff;
        box-shadow: 0 5px 15px rgba(33, 102, 174, .3);
    }
    .hub-mobile-bottom-nav__home i { font-size: 26px; }
    .hub-mobile-bottom-nav__item--home > span:last-child { margin-top: -2px; }

    .hub-mobile-backdrop:not([hidden]) {
        position: fixed;
        inset: 0;
        z-index: 1070;
        display: block;
        background: rgba(16, 30, 49, .5);
        opacity: 0;
        transition: opacity var(--hub-shell-speed) ease;
    }
    .hub-mobile-backdrop.is-visible { opacity: 1; }
    .hub-mobile-sheet,
    .hub-site-header .hub-sheet-dropdown {
        position: fixed !important;
        top: auto !important;
        inset-inline: 0;
        bottom: calc(var(--hub-mobile-nav-height) + var(--hub-mobile-safe-bottom)) !important;
        left: 0 !important;
        right: 0 !important;
        display: block;
        width: 100% !important;
        max-width: none !important;
        max-height: min(76dvh, 680px) !important;
        min-height: 0;
        margin: 0;
        padding: 0 0 12px !important;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 1px solid var(--hub-shell-stroke);
        border-radius: 20px 20px 0 0 !important;
        background: #fff;
        box-shadow: var(--hub-shell-elevation);
        transform: translateY(calc(100% + 28px)) !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform var(--hub-shell-speed) cubic-bezier(.22,.7,.2,1), opacity var(--hub-shell-speed), visibility var(--hub-shell-speed);
        direction: rtl;
    }
    .hub-mobile-sheet { z-index: 1084; }
    .hub-site-header .hub-sheet-dropdown { z-index: 1084 !important; }
    .hub-mobile-sheet.is-open,
    .hub-site-header .hub-sheet-dropdown.show {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible;
        pointer-events: auto;
    }
    .hub-mobile-sheet__grabber { width: 42px; height: 4px; border-radius: 4px; background: #d3dce7; margin: 10px auto 3px; }
    .hub-mobile-sheet__head,
    .hub-sheet-inline-heading {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 19px 12px;
        background: white;
        border-bottom: 1px solid var(--hub-shell-stroke);
    }
    .hub-mobile-sheet__head h2,
    .hub-sheet-inline-heading strong { margin: 0; font-size: 16px; font-weight: 800; color: var(--hub-shell-ink); }
    .hub-mobile-sheet__head button,
    .hub-sheet-inline-heading button {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        background: var(--hub-shell-subtle);
        border: 0;
        border-radius: 9px;
        font-size: 20px;
        color: var(--hub-shell-muted);
    }
    .hub-mobile-sheet__body { padding: 8px 15px 12px; }
    .hub-mobile-sheet__link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 15px 13px;
        border-bottom: 1px solid var(--hub-shell-stroke);
        font-size: 14px;
        color: var(--hub-shell-ink);
        text-decoration: none;
    }
    .hub-mobile-sheet__link:hover { background: var(--hub-shell-subtle); color: var(--hub-shell-primary); }
    .hub-mobile-sheet__link > i:first-child { font-size: 21px; color: var(--hub-shell-primary); }
    .hub-mobile-sheet__link span { flex: 1; }
    .hub-mobile-sheet__arrow { font-size: 15px; color: #a0aec0; }
    .hub-mobile-sheet__link--danger { color: #c33b4a; }
    .hub-mobile-sheet__user { display: flex; align-items: center; gap: 12px; padding: 17px 12px; background: var(--hub-shell-subtle); border-radius: 12px; }
    .hub-mobile-sheet__user img { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; }
    .hub-mobile-sheet__user div { display: flex; flex-direction: column; gap: 5px; }
    .hub-mobile-sheet__user span { color: var(--hub-shell-muted); font-size: 12px; }
    .hub-mobile-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .hub-mobile-products .hub-product-link { flex-direction: column; min-height: 100px; }
    .hub-mobile-products .hub-product-link__mark { width: 45px; height: 45px; font-size: 24px; }

    /* The existing Ajax basket and notification partials are reused as modal content. */
    .hub-site-header .hub-sheet-dropdown .cart-item,
    .hub-site-header .hub-sheet-dropdown .header-notification-card { max-width: 100%; }
    .hub-site-header .hub-sheet-dropdown .body { padding: 0 !important; }
    .hub-site-header .hub-sheet-dropdown .cart-item { padding: 14px !important; }
    .hub-site-header .hub-sheet-dropdown .dropdown-header { padding: 14px 18px; }
    .hub-site-header .hub-sheet-dropdown .footer { padding: 14px 18px; }
    .hub-site-header .hub-sheet-dropdown .footer .btn-basket-item { min-height: 42px; }
    .hub-site-header .hub-sheet-dropdown .empty { padding: 18px 12px; }
    .hub-site-header .hub-sheet-dropdown::before { content: none !important; }

    .hub-mobile-feedback {
        position: fixed;
        bottom: calc(var(--hub-mobile-nav-height) + var(--hub-mobile-safe-bottom) + 14px);
        left: 14px;
        z-index: 1060;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 12px;
        background: var(--hub-shell-primary);
        color: white;
        border: 0;
        border-radius: var(--hub-ds-radius-control, 4px);
        box-shadow: 0 5px 22px rgba(33, 102, 174, .28);
        font: inherit;
        font-size: 12px;
        font-weight: 700;
    }
    .hub-mobile-feedback i { font-size: 19px; }
    body.hub-mobile-lock .hub-mobile-feedback { visibility: hidden; }

    /* Panel drawer: a bottom sheet above the five-item navigation, not a narrow side rail. */
    body[data-hub-surface="panel"] .hub-user-panel-opener {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        margin: 0 0 14px;
        padding: 12px 15px;
        color: var(--hub-shell-primary);
        background: #fff;
        border: 1px solid var(--hub-shell-stroke);
        border-radius: 10px;
        font-size: 14px;
        font-weight: 700;
    }
    body[data-hub-surface="panel"] .hub-user-panel-opener > i:first-child { font-size: 20px; }
    body[data-hub-surface="panel"] aside.client-menu.hub-panel-sidebar,
    body[data-hub-surface="panel"] aside.client-menu.hub-panel-sidebar.open {
        position: fixed !important;
        inset-inline: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: calc(var(--hub-mobile-nav-height) + var(--hub-mobile-safe-bottom)) !important;
        z-index: 1088 !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: min(78dvh, 720px) !important;
        height: auto !important;
        margin: 0 !important;
        padding: 15px 16px 20px !important;
        border-radius: 20px 20px 0 0 !important;
        box-shadow: var(--hub-shell-elevation);
        background: white;
        overflow: auto;
        overscroll-behavior: contain;
        transform: translateY(calc(100% + 32px)) !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform var(--hub-shell-speed) cubic-bezier(.22,.7,.2,1), opacity var(--hub-shell-speed), visibility var(--hub-shell-speed);
    }
    body[data-hub-surface="panel"] aside.client-menu.hub-panel-sidebar.open {
        transform: translateY(0) !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    body[data-hub-surface="panel"] .hub-panel-sidebar__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 0 11px;
        margin-bottom: 12px;
        border-bottom: 1px solid var(--hub-shell-stroke);
    }
    body[data-hub-surface="panel"] .hub-panel-sidebar__head h2 { margin: 0; font-size: 15px; font-weight: 800; }
    body[data-hub-surface="panel"] .hub-panel-sidebar__close { border: 0; background: var(--hub-shell-subtle); border-radius: 8px; width: 36px; height: 36px; font-size: 20px; }
    body[data-hub-surface="panel"] aside.client-menu .user-info-box { padding: 10px; background: var(--hub-shell-subtle); border-radius: 12px; }
    body[data-hub-surface="panel"] aside.client-menu .user-info-box .progress-circle { flex: 0 0 50px; }
    body[data-hub-surface="panel"] aside.client-menu .client-menu-ul { padding: 0; margin: 8px 0 0; }
    body[data-hub-surface="panel"] aside.client-menu .client-menu-ul > li { margin: 0; }
    body[data-hub-surface="panel"] aside.client-menu .client-menu-ul > li > a,
    body[data-hub-surface="panel"] aside.client-menu .client-menu-ul > li > button {
        min-height: 48px;
        border-radius: 9px;
    }
    body[data-hub-surface="panel"] aside.client-menu .client-menu-ul li.active > a { background: var(--hub-shell-primary-soft); color: var(--hub-shell-primary); }
    body[data-hub-surface="panel"] .backdrop-menu { display: none !important; }
    body[data-hub-surface="panel"] .mobile-toggeler-aside { display: none !important; }
}

/* Shared visual polish for the panel sidebar without altering desktop geometry. */
.hub-panel-sidebar .hub-panel-sidebar__head { display: none; }
.hub-panel-sidebar .hub-panel-sidebar__icon { font-size: 20px; width: 24px; flex: 0 0 24px; text-align: center; }
.hub-panel-sidebar .client-menu-ul > li > a,
.hub-panel-sidebar .client-menu-ul > li > button { display: flex; align-items: center; gap: 10px; }
.hub-panel-sidebar .client-menu-ul > li.active > a { color: var(--hub-shell-primary); font-weight: 700; }
.hub-panel-sidebar .hub-panel-sidebar__chevron { margin-inline-start: auto; font-size: 15px; transition: transform 200ms; }
.hub-panel-sidebar [aria-expanded="true"] .hub-panel-sidebar__chevron { transform: rotate(180deg); }
.hub-panel-sidebar .hub-panel-sidebar__staff { font-size: 13px; }
.hub-panel-sidebar .hub-panel-sidebar__section-body { margin-inline-start: 12px; }

@media (max-width: 991.98px) {
    .hub-panel-sidebar .hub-panel-sidebar__head { display: flex; }
    .hub-panel-sidebar .bottom-action-wrapper { padding-top: 8px; }
    .hub-panel-sidebar .menu-bottom-action a { display: flex; gap: 10px; align-items: center; }
}
@media (max-width: 350px) {
    .hub-site-header__wordmark { font-size: 11px; }
    .hub-mobile-bottom-nav__item { font-size: 9px; }
    .hub-mobile-bottom-nav__home { width: 49px; height: 49px; }
    .hub-mobile-feedback span { display: none; }
}
@media (min-width: 992px) {
    .hub-mobile-sheet,
    .hub-mobile-bottom-nav,
    .hub-mobile-backdrop,
    .hub-mobile-feedback,
    .hub-user-panel-opener { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .hub-mobile-sheet,
    .hub-mobile-backdrop,
    .hub-site-header .hub-sheet-dropdown,
    .hub-panel-sidebar { transition-duration: 0.01ms !important; }
}

/* Existing page-rating survey: its desktop side tab becomes a mobile bottom sheet. */
@media (max-width: 991.98px) {
    #surveyModule.survey-module {
        display: block;
        position: fixed !important;
        top: auto !important;
        left: 12px !important;
        right: 12px !important;
        bottom: calc(var(--hub-mobile-nav-height) + var(--hub-mobile-safe-bottom) + 8px) !important;
        width: calc(100% - 24px);
        max-width: 520px;
        max-height: min(78dvh, 660px);
        margin: auto;
        z-index: 1089 !important;
        transform: translateY(0) !important;
        transition: transform var(--hub-shell-speed), opacity var(--hub-shell-speed), visibility var(--hub-shell-speed);
        opacity: 1;
        visibility: visible;
        border-radius: 16px;
    }
    #surveyModule.survey-module.closed {
        transform: translateY(calc(100% + 100px)) !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    #surveyModule.survey-module > .body {
        width: 100%;
        max-height: min(75dvh, 640px);
        overflow-y: auto;
        border-radius: 16px;
        padding: 20px 0 24px;
    }
    #surveyModule.survey-module button.start { display: none !important; }
    #surveyModule.survey-module .scoreContainer .img-container { margin-inline: 2px; padding: 8px; }
    #surveyModule.survey-module .scoreContainer img { width: min(8vw, 36px); }
    .hub-feedback-close {
        display: grid;
        place-items: center;
        position: absolute;
        top: 12px;
        left: 12px;
        z-index: 5 !important;
        width: 36px;
        height: 36px;
        border: 0;
        background: var(--hub-shell-subtle);
        border-radius: 9px;
        color: var(--hub-shell-muted);
        font-size: 21px;
    }
}

/* Shared Ajax basket/notification icon replacement (Iconsax font). */
.hub-site-header .hub-basket-product-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    margin-inline-end: 10px;
    background: var(--hub-shell-primary-soft);
    color: var(--hub-shell-primary);
    font-size: 21px;
}
/* Brand image in both desktop popover and mobile cart sheet. */
.hub-site-header .hub-basket-product-icon img {
    display: block;
    width: 26px;
    height: 26px;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
}
.hub-site-header .hub-sheet-dropdown .empty .icon-arrow-left,
.hub-site-header .notification-wrapper .icon-arrow-left { margin-inline-start: 6px; font-size: 17px; }
.hub-cart-loading { padding: 30px 20px; color: var(--hub-shell-muted); text-align: center; font-size: 13px; }

/* ========================================================================
   Phase 2 — mobile-shell refinements (2026-11-17)
   Brand/product logos are content images; action/navigation icons use Iconsax.
   Bottom sheets share one viewport geometry and scroll within their own body.
   ======================================================================== */
:root {
    --hub-shell-sheet-max-height: min(78dvh, 720px);
    --hub-shell-sheet-radius: 20px;
    --hub-shell-nav-active-radius: 10px;
}

/* Restore the actual brand identity instead of the temporary typographic mark. */
.hub-site-header__wordmark img.amoot-logo {
    display: block;
    width: clamp(104px, 9vw, 128px);
    height: auto;
    max-height: 38px;
    object-fit: contain;
    margin: 0;
}
.hub-site-header .hub-profile-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    margin: 0;
    padding: 4px 9px;
    background: transparent;
    border: 1px solid var(--hub-shell-stroke);
    border-radius: 22px;
    color: var(--hub-shell-ink);
    font: inherit;
    cursor: pointer;
}
.hub-site-header .hub-profile-trigger__avatar {
    display: block;
    width: 29px;
    height: 29px;
    margin: 0;
    object-fit: cover;
    border-radius: 50%;
}
.hub-site-header .hub-profile-trigger__icon { display: none; }

/* Product brand assets, not text placeholders and not generic Iconsax marks. */
.hub-site-header .hub-product-grid .hub-product-link,
.hub-mobile-products .hub-product-link {
    min-width: 0;
    padding: 10px 7px;
    border: 1px solid var(--hub-shell-stroke);
    border-radius: var(--hub-shell-card-radius);
    background: var(--hub-shell-subtle);
    transition: border-color var(--hub-shell-speed), background var(--hub-shell-speed);
}
.hub-product-grid .hub-product-link:hover,
.hub-mobile-products .hub-product-link:hover {
    background: #fff;
    border-color: var(--hub-shell-primary);
}
.hub-product-grid .hub-product-link img,
.hub-mobile-products .hub-product-link img {
    display: block;
    width: 100%;
    max-width: 112px;
    height: 48px;
    object-fit: contain;
    margin: 0 auto;
}
.hub-site-header .services-menu-wrapper .hub-product-grid.show {
    width: 268px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
}

@media (max-width: 991.98px) {
    /* The same product control is shared across breakpoints. Only MENU is mobile-only. */
    .hub-site-header__products-desktop,
    .hub-site-header__products { display: block !important; }
    .hub-site-header__products .dropdown-menu { display: none !important; }
    .hub-site-header .hub-action--menu { display: inline-grid; }
    .hub-site-header__brand-group { gap: 3px; min-width: 0; }
    .hub-site-header .hub-site-header__wordmark img.amoot-logo {
        width: clamp(90px, 28vw, 122px);
        max-width: 100%;
        margin: 0;
    }
    .hub-site-header__actions { gap: 1px; }
    .hub-site-header .hub-profile-trigger {
        width: 36px;
        min-width: 36px;
        height: 40px;
        padding: 0;
        border: none;
        border-radius: 9px;
        color: var(--hub-shell-ink);
    }
    .hub-site-header .hub-profile-trigger__icon { display: inline-block; font-size: 23px; }
    .hub-site-header .hub-profile-trigger__avatar,
    .hub-site-header .hub-profile-trigger__label { display: none; }

    /* Keep the existing shared profile widget as a small anchored popover. */
    #profile-container {
        position: fixed;
        width: max-content;
        max-width: calc(100vw - 16px);
        max-height: calc(100dvh - var(--hub-mobile-nav-height) - 85px);
        overflow: auto;
        margin: 0;
        z-index: 1110;
    }

    /* Five identical vertical tracks; home stays on the SAME baseline. */
    .hub-mobile-bottom-nav { align-items: stretch; }
    .hub-mobile-bottom-nav__item {
        gap: 3px;
        padding: 5px 2px;
        min-height: 0;
        justify-content: center;
        border-radius: var(--hub-shell-nav-active-radius);
        transform: none !important;
    }
    .hub-mobile-bottom-nav__item--home { color: var(--hub-shell-muted); }
    .hub-mobile-bottom-nav__home {
        width: 24px;
        height: 24px;
        border: none;
        border-radius: 0;
        background: transparent;
        color: inherit;
        box-shadow: none;
    }
    .hub-mobile-bottom-nav__home i { font-size: 22px; }
    .hub-mobile-bottom-nav__item--home > span:last-child { margin-top: 0; }
    .hub-mobile-bottom-nav__item.is-active {
        background: var(--hub-shell-primary-soft);
        color: var(--hub-shell-primary);
    }

    /* Both old dropdown wrappers act as true full-width bottom sheets on mobile.
       Specificity deliberately outranks main.css rules for .dropdown-menu.show. */
    body header.hub-site-header .cart-wrapper .dropdown-menu.hub-sheet-dropdown,
    body header.hub-site-header .notification-wrapper .dropdown-menu.hub-sheet-dropdown {
        position: fixed !important;
        display: flex !important;
        flex-direction: column;
        top: auto !important;
        bottom: calc(var(--hub-mobile-nav-height) + var(--hub-mobile-safe-bottom)) !important;
        right: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        min-width: 0 !important;
        max-width: 100vw !important;
        height: auto !important;
        min-height: min(62dvh, 540px) !important;
        max-height: var(--hub-shell-sheet-max-height) !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 1px solid var(--hub-shell-stroke) !important;
        border-radius: var(--hub-shell-sheet-radius) var(--hub-shell-sheet-radius) 0 0 !important;
        box-shadow: var(--hub-shell-elevation) !important;
        overflow: hidden !important;
        transform: translate3d(0, 110%, 0) !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 1090 !important;
        transition: transform var(--hub-shell-speed) cubic-bezier(.22,.7,.2,1), opacity var(--hub-shell-speed), visibility var(--hub-shell-speed);
        box-sizing: border-box;
        direction: rtl;
    }
    body header.hub-site-header .cart-wrapper .dropdown-menu.hub-sheet-dropdown.show,
    body header.hub-site-header .notification-wrapper .dropdown-menu.hub-sheet-dropdown.show {
        top: auto !important;
        right: 0 !important;
        left: 0 !important;
        bottom: calc(var(--hub-mobile-nav-height) + var(--hub-mobile-safe-bottom)) !important;
        width: 100vw !important;
        max-width: 100vw !important;
        transform: translate3d(0, 0, 0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto;
    }
    /* Neither the AJAX cart nor notification list should scroll the entire dialog. */
    body .hub-site-header .hub-sheet-dropdown > .body {
        min-width: 0;
        max-width: 100%;
        max-height: calc(var(--hub-shell-sheet-max-height) - 73px);
        flex: 1 1 auto;
        padding: 4px 0 12px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: contain;
        box-sizing: border-box;
    }
    body .hub-site-header .hub-sheet-dropdown > .hub-sheet-inline-heading {
        position: relative;
        flex: none;
        top: auto;
        padding: 15px 18px;
        min-height: 57px;
    }
    body .hub-site-header .hub-sheet-dropdown > .footer {
        flex: 0 0 auto;
        background: white;
        border-top: 1px solid var(--hub-shell-stroke);
        max-width: 100%;
    }
    body .hub-site-header .hub-sheet-dropdown .cart-item,
    body .hub-site-header .hub-sheet-dropdown .header-notification-card,
    body .hub-site-header .hub-sheet-dropdown .header-notification-card__body {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-wrap: anywhere;
    }
    body .hub-site-header .hub-sheet-dropdown .cart-item { padding: 12px 16px !important; }
    body .hub-site-header .hub-sheet-dropdown .header-notification-card__header {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: flex-start;
        justify-content: space-between;
        width: 100%;
        min-width: 0;
    }
    body .hub-site-header .hub-sheet-dropdown .header-notification-card__title {
        min-width: 0;
        flex: 1 1 160px;
    }
    body .hub-site-header .hub-sheet-dropdown .header-notification-card__content {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        overflow: hidden;
        white-space: normal;
        max-width: 100%;
        line-height: 1.9;
    }
    .hub-mobile-products .hub-product-link { min-height: 90px; padding: 12px; }
    .hub-mobile-products .hub-product-link img { height: 54px; max-width: 125px; }

    /* Panel sidebar: structural header + single scroll region, no external scrollbar. */
    body[data-hub-surface="panel"] aside.client-menu.hub-panel-sidebar,
    body[data-hub-surface="panel"] aside.client-menu.hub-panel-sidebar.open {
        display: flex !important;
        flex-direction: column;
        gap: 0;
        overflow: hidden !important;
        padding: 0 !important;
        max-height: var(--hub-shell-sheet-max-height) !important;
        height: auto !important;
        border-radius: var(--hub-shell-sheet-radius) var(--hub-shell-sheet-radius) 0 0 !important;
    }
    body[data-hub-surface="panel"] .hub-panel-sidebar__head {
        flex: 0 0 auto;
        min-height: 64px;
        padding: 12px 17px;
        margin: 0;
        background: white;
        border-bottom: 1px solid var(--hub-shell-stroke);
    }
    body[data-hub-surface="panel"] .hub-panel-sidebar__scroll {
        display: block;
        flex: 1 1 auto;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior-y: contain;
        min-height: 0;
        padding: 16px;
    }
    body[data-hub-surface="panel"] aside.client-menu .user-info-box {
        display: flex;
        flex-direction: row;
        gap: 12px;
        align-items: center;
        justify-content: flex-start;
        margin: 0 0 18px;
        padding: 14px;
        border-radius: var(--hub-shell-radius);
    }
    body[data-hub-surface="panel"] aside.client-menu .user-info-box .progress-circle {
        flex: 0 0 54px;
        width: 54px;
        height: 54px;
        margin: 0;
    }
    body[data-hub-surface="panel"] aside.client-menu .user-info-box .user-info-summery {
        width: auto;
        flex: 1;
        min-width: 0;
    }
    body[data-hub-surface="panel"] aside.client-menu .user-info-box .user-info-summery p {
        margin: 0 0 8px;
        font-weight: 750;
        font-size: 14px;
    }
    body[data-hub-surface="panel"] .hub-panel-sidebar__group-title {
        display: block;
        margin: 13px 5px 8px;
        padding: 0 4px;
        font-size: 11px;
        color: var(--hub-shell-muted);
        font-weight: 750;
    }
    body[data-hub-surface="panel"] aside.client-menu ul.client-menu-ul > li > a,
    body[data-hub-surface="panel"] aside.client-menu ul.client-menu-ul > li > button,
    body[data-hub-surface="panel"] aside.client-menu .menu-bottom-action a {
        width: 100%;
        padding: 12px 11px;
        margin: 1px 0;
        min-height: 47px;
        line-height: 1.6;
        text-align: right;
        font-size: 13px;
        font-weight: 500;
        border-radius: 8px;
        color: var(--hub-shell-ink);
    }
    body[data-hub-surface="panel"] aside.client-menu ul.client-menu-ul li.active > a {
        background: var(--hub-shell-primary-soft);
        color: var(--hub-shell-primary);
        font-weight: 750;
    }
    body[data-hub-surface="panel"] .hub-panel-sidebar__section-body {
        margin: 3px 12px 8px 0;
        padding: 4px;
        border-right: 2px solid var(--hub-shell-stroke);
    }
    body[data-hub-surface="panel"] .hub-panel-sidebar__section-body li a {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 43px;
        padding: 8px 10px;
        border-radius: 8px;
        font-size: 12px;
    }
    body[data-hub-surface="panel"] .hub-panel-sidebar .bottom-action-wrapper { padding: 0; }
    body[data-hub-surface="panel"] .hub-panel-sidebar .menu-bottom-action { padding: 0; margin: 0; }
    .hub-panel-sidebar__product-logo {
        display: inline-block;
        flex: 0 0 34px;
        width: 34px !important;
        height: 28px !important;
        margin: 0;
        object-fit: contain;
    }

    /* Survey content must not widen the viewport (old score tags used fixed widths). */
    #surveyModule.survey-module,
    #surveyModule.survey-module > .body {
        box-sizing: border-box;
        overflow-x: hidden !important;
        max-width: calc(100vw - 24px);
    }
    #surveyModule.survey-module > .body { overflow-y: auto; }
    #surveyModule.survey-module .scoreContainer,
    #surveyModule.survey-module .descriptionContainer,
    #surveyModule.survey-module textarea {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    #surveyModule.survey-module .scoreContainer {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }
    #surveyModule.survey-module .scoreContainer .img-container { flex: 0 1 58px; }
    #surveyModule.survey-module textarea { width: 100%; }
}

/* Desktop profile remains the one shared trigger; product selector is a single square. */
@media (min-width: 992px) {
    .hub-site-header .hub-action--menu { display: none !important; }
    .hub-site-header .hub-profile-trigger__label { display: inline; }
    .hub-site-header .hub-site-header__products { display: block !important; }
}

/* Desktop source is allowed to use logo image assets in the panel as well. */
.hub-panel-sidebar .hub-panel-sidebar__product-logo {
    display: inline-block;
    flex: 0 0 30px;
    width: 30px;
    height: 25px;
    object-fit: contain;
}
.hub-panel-sidebar .hub-panel-sidebar__group-title { display: none; }
@media (max-width: 991.98px) {
    body[data-hub-surface="panel"] .hub-panel-sidebar .hub-panel-sidebar__group-title { display: block; }
}

/* Feedback score row: fit all five choices at 320px, never produce a lateral bar. */
@media (max-width: 991.98px) {
    #surveyModule.survey-module .scoreContainer > .d-flex {
        display: flex;
        flex-wrap: nowrap;
        align-items: start;
        justify-content: space-between;
        gap: 3px !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0 8px;
        box-sizing: border-box;
    }
    #surveyModule.survey-module .scoreContainer .score-item-container {
        display: block;
        flex: 0 1 18%;
        width: 18%;
        min-width: 0;
        text-align: center;
    }
    #surveyModule.survey-module .scoreContainer .img-container {
        display: grid;
        place-items: center;
        width: 100%;
        max-width: 52px;
        margin: 7px auto 4px;
        padding: 7px 4px;
        box-sizing: border-box;
    }
    #surveyModule.survey-module .scoreContainer img {
        display: block;
        width: min(7.5vw, 28px) !important;
        max-width: 100%;
        height: auto;
    }
    #surveyModule.survey-module .descriptionContainer.row {
        width: 100%;
        max-width: 100%;
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding-right: 16px;
        padding-left: 16px;
        box-sizing: border-box;
    }
    #surveyModule.survey-module .score-desc {
        font-size: 10px;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

/* ========================================================================
   Phase 3 — shared header control / profile / panel / notifications contract.
   New shell rules belong HERE; never fork them into page-level CSS files.
   ======================================================================== */
:root {
    --hub-shell-control-size: 40px;
    --hub-shell-control-icon-size: 22px;
    --hub-shell-control-radius: 10px;
    --hub-shell-row-height: 46px;
    --hub-shell-notification-unread: #f5f9fe;
    --hub-shell-notification-divider: #edf1f7;
    --hub-shell-avatar-size: 48px;
    --hub-shell-identity-gap: 11px;
}

/* One icon grid for all header actions: no borrowed button styling or duplicate glyph. */
.hub-site-header .hub-profile-trigger,
.hub-site-header .hub-site-header__actions .hub-action,
.hub-site-header .hub-site-header__brand-group .hub-action {
    box-sizing: border-box;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 0;
    height: var(--hub-shell-control-size);
    border-radius: var(--hub-shell-control-radius);
    vertical-align: middle;
    color: var(--hub-shell-primary);
}
.hub-site-header .hub-site-header__actions .hub-action > i,
.hub-site-header .hub-site-header__brand-group .hub-action > i,
.hub-site-header .hub-profile-trigger > i {
    font-size: var(--hub-shell-control-icon-size);
    font-weight: normal;
    line-height: 1;
    width: 1em;
    height: 1em;
    display: inline-grid;
    place-items: center;
}
.hub-site-header .hub-profile-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 5px 9px;
    line-height: 1;
    font: inherit;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--hub-shell-stroke);
}
.hub-site-header .hub-profile-trigger__avatar {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    border-radius: 50%;
    object-fit: cover;
}
.hub-site-header .hub-profile-trigger__icon { display: none; }
.hub-site-header .hub-profile-trigger__label {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--hub-shell-ink);
}
.hub-site-header .hub-profile-trigger:hover,
.hub-site-header .hub-profile-trigger[aria-expanded="true"] {
    color: var(--hub-shell-primary);
    background: var(--hub-shell-primary-soft);
    border-color: #d7e8f9;
}
.hub-site-header .hub-profile-trigger:focus-visible,
.hub-site-header .hub-action:focus-visible {
    outline: 2px solid var(--hub-shell-primary);
    outline-offset: 2px;
}

/* Both dropdown anchors belong to their own trigger, never the page edge. */
.hub-site-header .services-menu-wrapper {
    position: relative;
}
.hub-site-header .services-menu-wrapper > .hub-product-grid.show {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    inset: auto 0 auto auto !important;
    margin: 0 !important;
    max-width: min(268px, calc(100vw - 16px));
}

/* The profile widget is rendered outside the header, and the shared JS computes
   viewport-relative left/top for each trigger. Avoid overriding it with !important. */
#profile-container {
    right: auto;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 1120;
}
#profile-container > * { max-width: 100%; box-sizing: border-box; }

/* Unified identity row. Brand images remain images; controls remain Iconsax. */
.hub-panel-sidebar .hub-panel-identity {
    display: flex;
    align-items: center;
    gap: var(--hub-shell-identity-gap);
    min-width: 0;
    margin: 0 0 17px;
    padding: 12px;
    background: var(--hub-shell-subtle);
    border-radius: var(--hub-shell-radius);
}
.hub-panel-sidebar .hub-panel-identity .hub-panel-identity__avatar {
    flex: 0 0 var(--hub-shell-avatar-size);
    width: var(--hub-shell-avatar-size);
    height: var(--hub-shell-avatar-size);
    min-width: var(--hub-shell-avatar-size);
    margin: 0;
}
.hub-panel-sidebar .hub-panel-identity .hub-panel-identity__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.hub-panel-sidebar .hub-panel-identity .hub-panel-identity__details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin: 0;
    overflow: hidden;
}
.hub-panel-sidebar .hub-panel-identity__name {
    width: 100%;
    margin: 0 !important;
    display: block !important;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.6;
    text-align: start;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hub-panel-sidebar .hub-panel-identity__phone {
    max-width: 100%;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    color: var(--hub-shell-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hub-panel-sidebar .hub-panel-identity__edit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
    border: 1px solid var(--hub-shell-stroke);
    background: #fff;
    color: var(--hub-shell-primary);
    border-radius: var(--hub-shell-control-radius);
    padding: 8px 10px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}
.hub-panel-sidebar .hub-panel-identity__edit i { font-size: 20px; line-height: 1; }
.hub-panel-sidebar .hub-panel-sidebar__icon,
.hub-panel-sidebar .hub-panel-sidebar__icon--service {
    display: inline-grid !important;
    place-items: center;
    flex: 0 0 24px !important;
    width: 24px !important;
    min-width: 24px;
    height: 24px;
    font-size: 20px;
    line-height: 1;
    color: currentColor;
    visibility: visible !important;
}
.hub-panel-sidebar .hub-panel-sidebar__icon::before { display: inline-block; }

/* Notifications use a quiet unread treatment, retaining category, channel and date. */
.hub-site-header #hub-notification-dropdown #notification-header > .dropdown-header {
    padding: 13px 17px;
    background: #fff;
    border-bottom: 1px solid var(--hub-shell-notification-divider);
}
.hub-site-header #hub-notification-dropdown #notification-header .cart-item,
.hub-site-header #hub-notification-dropdown #notification-header .cart-item.cart-item-unread {
    background: #fff;
    padding: 0 !important;
    border-bottom: 1px solid var(--hub-shell-notification-divider);
}
.hub-site-header #hub-notification-dropdown #notification-header .cart-item.cart-item-unread {
    background: var(--hub-shell-notification-unread);
}
.hub-site-header #hub-notification-dropdown #notification-header .header-notification-card,
.hub-site-header #hub-notification-dropdown #notification-header .header-notification-card.header-is-unread,
.hub-site-header #hub-notification-dropdown #notification-header .header-notification-card.header-is-read {
    border: 0;
    background: transparent;
    padding: 0;
}
.hub-site-header #hub-notification-dropdown #notification-header .header-notification-card__body {
    padding: 12px 16px;
}
.hub-site-header #hub-notification-dropdown #notification-header .header-notification-card__header {
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: nowrap;
    align-items: baseline;
}
.hub-site-header #hub-notification-dropdown #notification-header .header-notification-card__title {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 11px;
    font-size: 12px;
    line-height: 1.7;
    font-weight: 700;
    color: var(--hub-shell-ink);
}
.hub-site-header #hub-notification-dropdown #notification-header .header-notification-card__title::before {
    width: 5px;
    height: 5px;
    background: #b6c3d5;
}
.hub-site-header #hub-notification-dropdown #notification-header .header-is-unread .header-notification-card__title::before {
    background: var(--hub-shell-primary);
}
.hub-site-header #hub-notification-dropdown #notification-header .header-notification-card__date,
.hub-site-header #hub-notification-dropdown #notification-header .header-is-unread .header-notification-card__date {
    color: var(--hub-shell-muted);
    font-size: 11px;
    flex: 0 0 auto;
}
.hub-site-header #hub-notification-dropdown #notification-header .header-notification-card__meta { margin-bottom: 4px; }
.hub-site-header #hub-notification-dropdown #notification-header .header-notification-card__channel,
.hub-site-header #hub-notification-dropdown #notification-header .header-is-unread .header-notification-card__channel {
    max-width: 100%;
    border-radius: var(--hub-shell-card-radius);
    padding: 0;
    background: none;
    color: var(--hub-shell-muted);
    font-size: 10px;
    line-height: 1.7;
    font-weight: 500;
}
.hub-site-header #hub-notification-dropdown #notification-header .header-notification-card__content {
    font-size: 12px;
    line-height: 1.9;
    color: #59697e;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

@media (max-width: 991.98px) {
    /* One 40px control family; eliminate browser/default profile button chrome. */
    .hub-site-header .hub-site-header__actions .hub-action,
    .hub-site-header .hub-site-header__brand-group .hub-action,
    .hub-site-header .hub-profile-trigger {
        display: inline-grid !important;
        place-items: center;
        width: var(--hub-shell-control-size) !important;
        min-width: var(--hub-shell-control-size) !important;
        height: var(--hub-shell-control-size) !important;
        border: 1px solid transparent !important;
        padding: 0 !important;
        border-radius: var(--hub-shell-control-radius) !important;
        background: transparent;
        box-shadow: none;
        flex: 0 0 var(--hub-shell-control-size);
    }
    .hub-site-header .hub-profile-trigger__label,
    .hub-site-header .hub-profile-trigger__avatar { display: none !important; }
    .hub-site-header .hub-profile-trigger__icon {
        display: inline-grid !important;
        font-size: var(--hub-shell-control-icon-size) !important;
    }
    .hub-site-header .hub-profile-trigger:hover,
    .hub-site-header .hub-profile-trigger[aria-expanded="true"] { background: var(--hub-shell-primary-soft) !important; }
    .hub-site-header__actions { gap: 1px; }
    #profile-container {
        position: fixed !important;
        right: auto !important;
        left: auto;
        width: max-content;
        max-width: calc(100vw - 16px) !important;
        overflow-x: hidden;
        border-radius: var(--hub-shell-radius);
    }
    #profile-container > * { max-width: 100%; }

    /* This view keeps the whole sheet scrolled internally, with its own head. */
    body[data-hub-surface="panel"] aside.client-menu .hub-panel-identity {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: var(--hub-shell-identity-gap);
        justify-content: flex-start;
        margin: 0 0 14px;
        padding: 10px 12px;
    }
    body[data-hub-surface="panel"] aside.client-menu .hub-panel-identity .hub-panel-identity__avatar {
        width: var(--hub-shell-avatar-size) !important;
        height: var(--hub-shell-avatar-size) !important;
        flex: 0 0 var(--hub-shell-avatar-size) !important;
        min-width: var(--hub-shell-avatar-size);
    }
    body[data-hub-surface="panel"] aside.client-menu .hub-panel-identity .hub-panel-identity__details {
        width: auto !important;
        flex: 1 1 auto;
        overflow: hidden;
        align-items: flex-start;
    }
    body[data-hub-surface="panel"] .hub-panel-identity__edit {
        margin-inline-start: auto;
        width: var(--hub-shell-control-size);
        height: var(--hub-shell-control-size);
        padding: 0;
        background: #e9f6ef;
        border: 0;
        color: #238254;
    }
    body[data-hub-surface="panel"] .hub-panel-identity__edit span { display: none; }
    body[data-hub-surface="panel"] .hub-panel-sidebar__scroll { scrollbar-width: thin; scrollbar-color: #d5dfea transparent; }
    body[data-hub-surface="panel"] .hub-panel-sidebar__scroll::-webkit-scrollbar { width: 4px; }
    body[data-hub-surface="panel"] .hub-panel-sidebar__scroll::-webkit-scrollbar-thumb { background: #d5dfea; border-radius: 4px; }
    body[data-hub-surface="panel"] aside.client-menu .client-menu-ul > li > a,
    body[data-hub-surface="panel"] aside.client-menu .client-menu-ul > li > button { min-height: var(--hub-shell-row-height); }
}

@media (max-width: 359.98px) {
    :root { --hub-shell-control-size: 36px; --hub-shell-control-icon-size: 20px; }
    .hub-site-header .hub-site-header__wordmark img.amoot-logo { width: 88px; }
    .hub-site-header__brand-group { gap: 1px; }
    .hub-site-header__inner { gap: 2px; }
}

/* ===========================================================================
   Phase 4 — canonical shell patterns (2026-11-17)
   Migration boundary: scoped to hub-site-header / hub-panel-sidebar; do NOT
   repeat these patterns in client.css or page-level overrides.
   Product marks & avatars remain images; interface controls use Iconsax.
   =========================================================================== */
:root {
    --hub-shell-sidebar-width: 282px;
    --hub-shell-sidebar-compact-width: 74px;
    --hub-shell-sidebar-row: 46px;
    --hub-shell-sidebar-gap: 4px;
    --hub-shell-popover-width: 360px;
    --hub-shell-popover-gap: 10px;
    --hub-shell-empty-icon-size: 50px;
    --hub-shell-shadow-popover: 0 12px 32px rgba(23, 43, 67, .12);
    --hub-shell-color-danger: #c0394b;
    --hub-shell-navigation-muted: #64748b;
}

/* Unify desktop header controls, without creating a second profile glyph. */
.hub-site-header .hub-site-header__actions {
    gap: 8px;
    align-items: center;
}
.hub-site-header .hub-profile-trigger {
    min-width: max-content;
    height: var(--hub-shell-control-size);
    min-height: var(--hub-shell-control-size);
    padding: 4px 10px;
    display: inline-flex;
    flex-direction: row;
    gap: 9px;
    align-items: center;
    justify-content: center;
    color: var(--hub-shell-ink);
    border: 1px solid var(--hub-shell-stroke);
    border-radius: 999px;
    background: var(--hub-shell-surface);
    box-shadow: none;
    white-space: nowrap;
}
.hub-site-header .hub-profile-trigger__label {
    font-size: 12px;
    line-height: 1.65;
    font-weight: 700;
    color: var(--hub-shell-ink);
}
.hub-site-header .hub-profile-trigger__avatar {
    width: 30px;
    min-width: 30px;
    height: 30px;
    flex: 0 0 30px;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
}
.hub-site-header .hub-profile-trigger__icon { display: none; }
.hub-site-header .cart-wrapper,
.hub-site-header .notification-wrapper { position: relative; }

/* A single popover geometry for desktop cart and notifications. */
@media (min-width: 992px) {
    .hub-site-header .cart-wrapper > .hub-sheet-dropdown,
    .hub-site-header .notification-wrapper > .hub-sheet-dropdown {
        position: absolute !important;
        inset: calc(100% + var(--hub-shell-popover-gap)) 0 auto auto !important;
        top: calc(100% + var(--hub-shell-popover-gap)) !important;
        right: 0 !important;
        left: auto !important;
        width: var(--hub-shell-popover-width) !important;
        max-width: min(var(--hub-shell-popover-width), calc(100vw - 20px));
        min-width: 0 !important;
        max-height: min(72dvh, 610px);
        padding: 0 !important;
        margin: 0 !important;
        border: 1px solid var(--hub-shell-stroke);
        border-radius: var(--hub-shell-radius);
        background: var(--hub-shell-surface);
        box-shadow: var(--hub-shell-shadow-popover);
        overflow-x: hidden;
        overflow-y: auto;
        z-index: 1120;
    }
    .hub-site-header .hub-sheet-dropdown .hub-sheet-inline-heading {
        position: sticky;
        top: 0;
        z-index: 4;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 54px;
        padding: 13px 16px;
        border-bottom: 1px solid var(--hub-shell-stroke);
        background: var(--hub-shell-surface);
    }
    .hub-site-header .hub-sheet-dropdown .hub-sheet-inline-heading button { display: none; }
    .hub-site-header .hub-sheet-dropdown .hub-sheet-inline-heading strong { font-size: 14px; color: var(--hub-shell-ink); }
    .hub-site-header .hub-sheet-dropdown::before { display: none !important; }
}

/* Cart + notifications share empty state UI at both breakpoints. */
.hub-site-header .hub-sheet-dropdown .body.hub-shell-empty,
.hub-site-header .hub-sheet-dropdown .body.empty.hub-shell-empty {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 245px;
    padding: 25px 18px !important;
    margin: 0;
    color: var(--hub-shell-ink);
    background: var(--hub-shell-surface);
    text-align: center;
}
.hub-shell-empty__illustration {
    width: var(--hub-shell-empty-icon-size);
    height: var(--hub-shell-empty-icon-size);
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--hub-shell-primary-soft);
    color: var(--hub-shell-primary);
}
.hub-shell-empty__illustration i { font-size: 25px; line-height: 1; }
.hub-shell-empty__title { font-size: 14px; line-height: 1.9; font-weight: 750; }
.hub-shell-empty__description {
    max-width: 265px;
    margin: 0;
    font-size: 12px;
    line-height: 1.9;
    color: var(--hub-shell-muted);
}
.hub-shell-empty__action {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    margin-top: 9px;
    padding: 7px 16px;
    border: 1px solid #cee1f5;
    border-radius: var(--hub-shell-card-radius);
    color: var(--hub-shell-primary);
    background: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}
.hub-shell-empty__action:hover { background: var(--hub-shell-primary-soft); color: var(--hub-shell-primary); }
.hub-shell-empty__action i { font-size: 15px; }

/* Completely isolated sidebar rows: defeat old text-size/row-margin rules. */
body[data-hub-surface="panel"] aside.client-menu.hub-panel-sidebar {
    box-sizing: border-box;
    direction: rtl;
    background: var(--hub-shell-surface);
    color: var(--hub-shell-ink);
}
body[data-hub-surface="panel"] .hub-panel-sidebar__scroll {
    min-height: 0;
    min-width: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #dce5ef transparent;
}
body[data-hub-surface="panel"] .hub-panel-sidebar .hub-panel-sidebar__group-title {
    display: block;
    flex: 0 0 auto;
    padding: 8px 12px 5px;
    margin: 7px 0 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--hub-shell-navigation-muted);
    text-align: right;
    white-space: nowrap;
}
body[data-hub-surface="panel"] .hub-panel-sidebar .client-menu-ul,
body[data-hub-surface="panel"] .hub-panel-sidebar .menu-bottom-action {
    display: flex;
    flex-direction: column;
    gap: var(--hub-shell-sidebar-gap);
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
body[data-hub-surface="panel"] .hub-panel-sidebar .client-menu-ul > li,
body[data-hub-surface="panel"] .hub-panel-sidebar .menu-bottom-action > li {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
body[data-hub-surface="panel"] .hub-panel-sidebar ul.client-menu-ul > li > a,
body[data-hub-surface="panel"] .hub-panel-sidebar ul.client-menu-ul > li > button,
body[data-hub-surface="panel"] .hub-panel-sidebar .menu-bottom-action > li > a {
    box-sizing: border-box;
    display: flex;
    direction: rtl;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: var(--hub-shell-sidebar-row);
    height: auto;
    margin: 0;
    padding: 9px 11px;
    border: 0;
    border-radius: var(--hub-shell-card-radius);
    background: transparent;
    color: var(--hub-shell-ink);
    text-align: right;
    text-decoration: none;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.65;
    font-weight: 500;
    transition: background var(--hub-shell-speed), color var(--hub-shell-speed);
    cursor: pointer;
}
body[data-hub-surface="panel"] .hub-panel-sidebar ul.client-menu-ul > li > a:hover,
body[data-hub-surface="panel"] .hub-panel-sidebar ul.client-menu-ul > li > button:hover,
body[data-hub-surface="panel"] .hub-panel-sidebar .menu-bottom-action > li > a:hover {
    color: var(--hub-shell-primary);
    background: var(--hub-shell-subtle);
}
body[data-hub-surface="panel"] .hub-panel-sidebar .client-menu-ul > li.active > a {
    color: var(--hub-shell-primary);
    background: var(--hub-shell-primary-soft);
    font-weight: 700;
}
body[data-hub-surface="panel"] .hub-panel-sidebar .hub-panel-sidebar__icon,
body[data-hub-surface="panel"] .hub-panel-sidebar .hub-panel-sidebar__icon--service {
    display: inline-grid !important;
    visibility: visible !important;
    flex: 0 0 22px !important;
    width: 22px !important;
    min-width: 22px;
    height: 22px !important;
    place-items: center;
    font-size: 20px !important;
    line-height: 1;
    text-align: center;
    color: currentColor;
}
body[data-hub-surface="panel"] .hub-panel-sidebar .hub-panel-sidebar__icon::before { display: inline-block; }
body[data-hub-surface="panel"] .hub-panel-sidebar .hub-panel-sidebar__label {
    display: inline-block;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    line-height: 1.65;
    white-space: normal;
}
body[data-hub-surface="panel"] .hub-panel-sidebar .hub-panel-sidebar__chevron {
    display: inline-block;
    flex: 0 0 14px;
    width: 14px;
    font-size: 12px;
    margin-inline-start: auto;
    color: var(--hub-shell-muted);
}
body[data-hub-surface="panel"] .hub-panel-sidebar .hub-panel-sidebar__section-body {
    margin: 2px 28px 5px 0;
    padding: 2px 0;
    border-right: 1px solid var(--hub-shell-stroke);
}
body[data-hub-surface="panel"] .hub-panel-sidebar .hub-panel-sidebar__section-body > ul {
    padding: 0 9px 0 0;
    margin: 0;
    list-style: none;
}
body[data-hub-surface="panel"] .hub-panel-sidebar .hub-panel-sidebar__section-body a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 8px;
    border-radius: var(--hub-shell-card-radius);
    color: var(--hub-shell-navigation-muted);
    text-decoration: none;
    font-size: 12px;
    line-height: 1.6;
}
body[data-hub-surface="panel"] .hub-panel-sidebar .hub-panel-sidebar__section-body a:hover {
    color: var(--hub-shell-primary);
    background: var(--hub-shell-primary-soft);
}
body[data-hub-surface="panel"] .hub-panel-sidebar .hub-panel-sidebar__product-logo {
    display: inline-block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin: 0;
}
body[data-hub-surface="panel"] .hub-panel-sidebar .bottom-action-wrapper {
    margin: 14px 0 0;
    padding: 12px 0 0;
}
body[data-hub-surface="panel"] .hub-panel-sidebar .menu-bottom-action a[href*="Logout"],
body[data-hub-surface="panel"] .hub-panel-sidebar .menu-bottom-action a[href*="logout"] {
    color: var(--hub-shell-color-danger);
}
body[data-hub-surface="panel"] .hub-panel-sidebar__desktop-heading {
    display: none;
}

/* Desktop compact state: show the *same* clickable Iconsax controls, no text ghosts. */
@media (min-width: 992px) {
    body[data-hub-surface="panel"] aside.client-menu.hub-panel-sidebar {
        position: sticky;
        top: 80px;
        display: flex;
        flex-direction: column;
        flex: 0 0 var(--hub-shell-sidebar-width) !important;
        width: var(--hub-shell-sidebar-width) !important;
        max-width: var(--hub-shell-sidebar-width) !important;
        height: fit-content;
        max-height: calc(100dvh - 96px);
        margin: 0 0 16px 18px !important;
        padding: 13px !important;
        border: 1px solid var(--hub-shell-stroke);
        border-radius: var(--hub-shell-card-radius);
        box-shadow: none;
        overflow: hidden;
        transition: width var(--hub-shell-speed), flex-basis var(--hub-shell-speed), max-width var(--hub-shell-speed);
    }
    body[data-hub-surface="panel"] .hub-panel-sidebar__desktop-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 9px;
        height: 42px;
        flex: 0 0 42px;
        padding: 0 8px 10px;
        border-bottom: 1px solid var(--hub-shell-stroke);
    }
    body[data-hub-surface="panel"] .hub-panel-sidebar__heading-label { font-size: 12px; font-weight: 750; }
    body[data-hub-surface="panel"] .desktop-toggeler-aside {
        position: static !important;
        display: inline-grid;
        place-items: center;
        flex: 0 0 31px;
        width: 31px;
        height: 31px;
        margin: 0;
        padding: 0;
        border: 1px solid var(--hub-shell-stroke);
        border-radius: var(--hub-shell-card-radius);
        background: #fff;
        color: var(--hub-shell-primary);
        cursor: pointer;
        font-size: 18px;
    }
    body[data-hub-surface="panel"] .hub-panel-sidebar__scroll { max-height: calc(100dvh - 160px); }
    body[data-hub-surface="panel"] aside.client-menu.hub-panel-sidebar.desk-small {
        flex-basis: var(--hub-shell-sidebar-compact-width) !important;
        width: var(--hub-shell-sidebar-compact-width) !important;
        max-width: var(--hub-shell-sidebar-compact-width) !important;
        padding: 9px !important;
    }
    body[data-hub-surface="panel"] .hub-panel-sidebar.desk-small .hub-panel-sidebar__desktop-heading {
        justify-content: center;
        padding-inline: 0;
    }
    body[data-hub-surface="panel"] .hub-panel-sidebar.desk-small .hub-panel-sidebar__heading-label,
    body[data-hub-surface="panel"] .hub-panel-sidebar.desk-small .hub-panel-sidebar__group-title,
    body[data-hub-surface="panel"] .hub-panel-sidebar.desk-small .hub-panel-sidebar__label,
    body[data-hub-surface="panel"] .hub-panel-sidebar.desk-small .hub-panel-sidebar__chevron,
    body[data-hub-surface="panel"] .hub-panel-sidebar.desk-small .hub-panel-sidebar__section-body,
    body[data-hub-surface="panel"] .hub-panel-sidebar.desk-small .hub-panel-identity__details,
    body[data-hub-surface="panel"] .hub-panel-sidebar.desk-small .hub-panel-identity__edit {
        display: none !important;
    }
    body[data-hub-surface="panel"] .hub-panel-sidebar.desk-small .hub-panel-identity {
        display: flex !important;
        justify-content: center;
        width: 100%;
        margin: 10px 0 !important;
        padding: 4px !important;
        background: none;
    }
    body[data-hub-surface="panel"] .hub-panel-sidebar.desk-small .hub-panel-identity__avatar {
        display: block !important;
        flex: 0 0 38px !important;
        width: 38px !important;
        height: 38px !important;
        margin: 0 !important;
    }
    body[data-hub-surface="panel"] .hub-panel-sidebar.desk-small .hub-panel-identity__avatar img {
        display: block !important;
        width: 38px !important;
        height: 38px !important;
        border-radius: 50%;
    }
    body[data-hub-surface="panel"] .hub-panel-sidebar.desk-small .client-menu-ul,
    body[data-hub-surface="panel"] .hub-panel-sidebar.desk-small .menu-bottom-action {
        align-items: center;
        gap: 5px;
    }
    body[data-hub-surface="panel"] .hub-panel-sidebar.desk-small .client-menu-ul > li > a,
    body[data-hub-surface="panel"] .hub-panel-sidebar.desk-small .client-menu-ul > li > button,
    body[data-hub-surface="panel"] .hub-panel-sidebar.desk-small .menu-bottom-action > li > a {
        width: 48px;
        min-width: 48px;
        height: 46px;
        min-height: 46px;
        padding: 0;
        justify-content: center;
        font-size: 12px; /* Never hide via font-size:0; icons use a real font. */
        overflow: hidden;
    }
    body[data-hub-surface="panel"] .hub-panel-sidebar.desk-small .hub-panel-sidebar__icon {
        display: inline-grid !important;
        width: 22px !important;
        height: 22px !important;
        flex: 0 0 22px !important;
        margin: 0 !important;
        font-size: 21px !important;
    }
    body[data-hub-surface="panel"] .hub-panel-sidebar.desk-small .bottom-action-wrapper { margin-top: 8px; padding-top: 10px; }
}

/* Mobile uses a bottom sheet. Do not inherit desktop rail geometry. */
@media (max-width: 991.98px) {
    .hub-site-header .hub-profile-trigger {
        min-width: var(--hub-shell-control-size) !important;
        width: var(--hub-shell-control-size) !important;
        height: var(--hub-shell-control-size) !important;
        padding: 0 !important;
        border: 1px solid transparent;
        border-radius: var(--hub-shell-control-radius) !important;
    }
    .hub-site-header .hub-profile-trigger__label,
    .hub-site-header .hub-profile-trigger__avatar { display: none !important; }
    .hub-site-header .hub-profile-trigger__icon {
        display: inline-grid !important;
        font-size: var(--hub-shell-control-icon-size);
    }
    body[data-hub-surface="panel"] .hub-panel-sidebar__desktop-heading { display: none !important; }
    body[data-hub-surface="panel"] .hub-panel-sidebar .hub-panel-sidebar__scroll { max-height: min(65dvh, 580px); }
    body[data-hub-surface="panel"] .hub-panel-sidebar .hub-panel-sidebar__label { font-size: 13px; }
    .hub-site-header .hub-sheet-dropdown .body.hub-shell-empty { min-height: min(35dvh, 285px); }
    .hub-mobile-feedback[hidden] { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    body[data-hub-surface="panel"] aside.client-menu.hub-panel-sidebar,
    body[data-hub-surface="panel"] .hub-panel-sidebar .client-menu-ul > li > a { transition: none !important; }
}

/* Keep desktop popovers inside viewport when actions sit on the left in RTL. */
@media (min-width: 992px) {
    .hub-site-header .cart-wrapper > .hub-sheet-dropdown,
    .hub-site-header .notification-wrapper > .hub-sheet-dropdown {
        inset: calc(100% + var(--hub-shell-popover-gap)) auto auto 0 !important;
        right: auto !important;
        left: 0 !important;
    }
    .hub-site-header .hub-profile-trigger__icon { display: none !important; }
    body[data-hub-surface="panel"] .hub-panel-sidebar.desk-small .client-menu-ul > li > button.toggleCustomer {
        display: flex !important;
    }
}
.hub-site-header .hub-sheet-dropdown .body.hub-shell-empty,
.hub-site-header .hub-sheet-dropdown .body.empty.hub-shell-empty { box-sizing: border-box !important; }

/* ===========================================================================
   Phase 5 — coherent panel, explicit popovers and reusable scroll tokens
   Scoped rules intentionally supersede the retired client.css sidebar rail.
   DO NOT move these back into page-level CSS. See docs/design-system.
   =========================================================================== */
:root {
    --hub-shell-scrollbar-width: 6px;
    --hub-shell-scrollbar-track: transparent;
    --hub-shell-scrollbar-thumb: #bccbdb;
    --hub-shell-scrollbar-hover: #829bb5;
    --hub-shell-divider: var(--hub-shell-stroke);
    --hub-shell-identity-padding: 12px;
    --hub-shell-nav-icon-size: 20px;
    --hub-shell-panel-rail-width: 74px;
}

:where(*) {
    scrollbar-width: thin;
    scrollbar-color: var(--hub-shell-scrollbar-thumb) var(--hub-shell-scrollbar-track);
}
:where(*)::-webkit-scrollbar { width: var(--hub-shell-scrollbar-width); height: var(--hub-shell-scrollbar-width); }
:where(*)::-webkit-scrollbar-track { background: var(--hub-shell-scrollbar-track); }
:where(*)::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--hub-shell-scrollbar-thumb);
}
:where(*)::-webkit-scrollbar-thumb:hover { background: var(--hub-shell-scrollbar-hover); }

.hub-site-header .hub-site-header__actions {
    direction: ltr;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
}
.hub-site-header .hub-site-header__actions > .cart-wrapper,
.hub-site-header .hub-site-header__actions > .notification-wrapper { flex: 0 0 auto; }

@media (min-width: 992px) {
    .hub-site-header .cart-wrapper > .dropdown-menu.hub-sheet-dropdown,
    .hub-site-header .notification-wrapper > .dropdown-menu.hub-sheet-dropdown {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        flex-direction: column;
        direction: rtl;
        transform: none !important;
        width: var(--hub-shell-popover-width) !important;
        max-width: calc(100vw - 20px) !important;
        min-height: 0;
        max-height: min(74dvh, 640px);
        overflow: hidden !important;
        padding: 0 !important;
        inset: calc(100% + var(--hub-shell-popover-gap)) auto auto 0 !important;
        z-index: 1120;
    }
    .hub-site-header .cart-wrapper > .dropdown-menu.hub-sheet-dropdown.show,
    .hub-site-header .notification-wrapper > .dropdown-menu.hub-sheet-dropdown.show {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

.hub-site-header .hub-sheet-dropdown > .hub-sheet-inline-heading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    min-height: 54px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--hub-shell-divider);
    background: var(--hub-shell-surface);
    z-index: 2;
}
.hub-site-header .hub-sheet-dropdown > .body,
.hub-site-header .hub-sheet-dropdown > .body#notification-header {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain;
}
.hub-site-header .hub-sheet-view-all {
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
    align-items: center;
    gap: 9px;
    min-height: 50px;
    padding: 11px 16px;
    border-top: 1px solid var(--hub-shell-divider);
    background: var(--hub-shell-surface);
    color: var(--hub-shell-primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
.hub-site-header .hub-sheet-view-all:hover {
    background: var(--hub-shell-primary-soft);
    color: var(--hub-shell-primary);
}
.hub-site-header .hub-sheet-view-all:focus-visible {
    outline: 2px solid var(--hub-shell-primary);
    outline-offset: -3px;
}
.hub-site-header .hub-sheet-view-all > i { font-size: 17px; }

body[data-hub-surface="panel"] aside.client-menu.hub-panel-sidebar .hub-panel-identity {
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto !important;
    padding: var(--hub-shell-identity-padding);
    margin: 10px 0 8px;
    background: var(--hub-shell-subtle);
    border-radius: var(--hub-shell-card-radius);
}
body[data-hub-surface="panel"] aside.client-menu .hub-panel-identity__profile {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    min-height: 47px;
    height: auto !important;
    width: 100% !important;
    min-width: 0;
    overflow: visible !important;
}
body[data-hub-surface="panel"] aside.client-menu .hub-panel-identity__avatar {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px;
    flex: 0 0 46px !important;
    margin: 0 !important;
}
body[data-hub-surface="panel"] aside.client-menu .hub-panel-identity__details {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start;
    width: auto !important;
    flex: 1 1 0;
    min-width: 0;
    gap: 3px;
    margin: 0 !important;
    overflow: hidden;
}
body[data-hub-surface="panel"] aside.client-menu .hub-panel-identity__name {
    display: block !important;
    max-width: 100%;
    text-align: right;
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body[data-hub-surface="panel"] aside.client-menu .hub-panel-identity__edit {
    display: inline-flex;
    width: 100%;
    min-height: 36px;
    box-sizing: border-box;
    justify-content: center;
    padding: 6px 10px;
    margin: 0 !important;
    position: static;
    white-space: nowrap;
    background: var(--hub-shell-surface);
}
body[data-hub-surface="panel"] aside.client-menu .hub-panel-identity__edit span { display: inline !important; }

body[data-hub-surface="panel"] .hub-panel-sidebar .hub-panel-sidebar__group-title--divider {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 2px;
    white-space: nowrap;
}
body[data-hub-surface="panel"] .hub-panel-sidebar__group-title--divider::before,
body[data-hub-surface="panel"] .hub-panel-sidebar__group-title--divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    min-width: 12px;
    background: var(--hub-shell-divider);
}

body[data-hub-surface="panel"] .hub-panel-sidebar__desktop-heading .desktop-toggeler-aside > i {
    font-size: 17px;
    transition: transform var(--hub-shell-speed) ease;
}
body[data-hub-surface="panel"] .hub-panel-sidebar.desk-small .desktop-toggeler-aside > i {
    transform: rotate(180deg);
}
body[data-hub-surface="panel"] .hub-panel-sidebar__chevron { font-size: 12px !important; }

@media (min-width: 992px) {
    body[data-hub-surface="panel"] aside.client-menu.hub-panel-sidebar.desk-small
    .hub-panel-identity__profile {
        justify-content: center;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }
    body[data-hub-surface="panel"] aside.client-menu.hub-panel-sidebar.desk-small
    .hub-panel-identity__details,
    body[data-hub-surface="panel"] aside.client-menu.hub-panel-sidebar.desk-small
    .hub-panel-identity__edit { display: none !important; }
    body[data-hub-surface="panel"] aside.client-menu.hub-panel-sidebar.desk-small
    .hub-panel-identity {
        padding: 8px 0 !important;
        justify-items: center;
        min-height: 50px;
    }
    body[data-hub-surface="panel"] .hub-panel-sidebar.desk-small
    .hub-panel-sidebar__group-title--divider { display: none !important; }
}

@media (max-width: 991.98px) {
    /* Mobile shell icons use a single Iconsax size and one visual color. */
    .hub-site-header .hub-site-header__actions .hub-action,
    .hub-site-header .hub-site-header__brand-group .hub-action,
    .hub-site-header .hub-profile-trigger,
    .hub-mobile-sheet__link > i:first-child { color: var(--hub-shell-primary) !important; }
    .hub-site-header .hub-site-header__actions .hub-action > i,
    .hub-site-header .hub-site-header__brand-group .hub-action > i,
    .hub-site-header .hub-profile-trigger > i { font-size: 22px !important; }
    .hub-site-header .hub-action--menu > i { font-size: 24px !important; }
    /* Same aligned identity as desktop, with an icon-only edit action on mobile. */
    body[data-hub-surface="panel"] aside.client-menu.hub-panel-sidebar .hub-panel-identity {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 8px;
    }
    body[data-hub-surface="panel"] aside.client-menu .hub-panel-identity__profile { flex: 1 1 auto; }
    body[data-hub-surface="panel"] aside.client-menu .hub-panel-identity__edit {
        width: 38px;
        height: 38px;
        min-height: 38px;
        flex: 0 0 38px;
        padding: 0;
        background: #e9f6ef;
        color: #238254;
    }
    body[data-hub-surface="panel"] aside.client-menu .hub-panel-identity__edit span { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    body[data-hub-surface="panel"] .hub-panel-sidebar__desktop-heading .desktop-toggeler-aside > i {
        transition: none;
    }
}
