.catalog-mobile-consultant, .catalog-consultant-brand,
.catalog-tool-sheet:not([open]), .catalog-filter-actions[hidden] { display: none; }

.catalog-screen .catalog-help-bar {
    display: flex;
    justify-content: center;
    margin: 0 0 30px;
}
.catalog-help-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 46px;
    padding: 8px 24px;
    border: 1px solid #353535;
    border-radius: 10px;
    font: 600 16px/1.3 var(--font-body);
    text-align: center;
    text-decoration: none;
    color: #2d2d2f;
}

@media (max-width: 850px) {
    .catalog-screen {
        --catalog-inset: clamp(12px, 4vw, 28px);
        --catalog-safe: env(safe-area-inset-bottom, 0px);
        --catalog-accent: #ffef68;
        --catalog-ink: #2d2d2f;
    }
    .catalog-enhanced .catalog-tools-slot { min-height: 64px; margin-bottom: 24px; }
    .catalog-screen .catalog-mobile-toolbar:not([hidden]) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 46px 46px;
        gap: 8px;
        margin: 0;
        padding: 9px 0;
        background: white;
    }
    .catalog-tools-slot.is-pinned .catalog-mobile-toolbar:not([hidden]) {
        position: fixed;
        inset: 0 0 auto;
        z-index: 85;
        padding-inline: var(--catalog-inset);
        padding-top: max(9px, env(safe-area-inset-top));
        box-shadow: 0 3px 16px #21212616;
    }
    .catalog-screen .catalog-mobile-toolbar button {
        color: var(--catalog-ink);
        background: #f3f3f3;
        border: 0;
        border-radius: 9px;
        height: 46px;
        cursor: pointer;
    }
    .catalog-screen .catalog-direction-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-width: 0;
        padding: 0 14px;
        font: 500 16px/1.3 var(--font-body);
        text-align: left;
    }
    .catalog-direction-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .catalog-direction-trigger i { width: 8px; height: 8px; flex: none; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
    .catalog-screen .catalog-program-choice[hidden], .catalog-screen .catalog-direction-trigger[hidden] { display: none; }
    .catalog-screen .catalog-mobile-filter-toggle, .catalog-tool-icon { display: grid; place-items: center; width: 46px; padding: 0; }
    .catalog-screen .catalog-tool-icon.has-query { background: var(--catalog-accent); }
    .catalog-screen .catalog-mobile-count { right: 1px; top: -5px; font-weight: 700; }

    .catalog-tool-sheet, .catalog-screen .catalog-page .catalog-filter-dialog {
        position: fixed;
        inset: 0;
        margin: 0;
        box-sizing: border-box;
        width: 100%;
        max-width: none;
        height: 100dvh;
        max-height: none;
        overflow: auto;
        overscroll-behavior: contain;
        padding: max(20px, env(safe-area-inset-top)) var(--catalog-inset) max(16px, var(--catalog-safe));
        border: 0;
        border-radius: 0;
        background: #fff;
        color: var(--catalog-ink);
    }
    html:has(.catalog-tool-sheet[open]) { overflow: hidden; }
    .catalog-tool-sheet header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 24px; }
    .catalog-tool-sheet h2 { margin: 0; font: 700 clamp(22px, 5vw, 30px)/1.2 var(--font-heading); letter-spacing: -.035em; }
    .catalog-tool-sheet [data-sheet-close] { flex: none; border: 0; border-radius: 50%; background: #f3f3f3; width: 44px; height: 44px; padding: 0; font: 28px/1 var(--font-body); }
    .catalog-directions-list { display: grid; gap: 4px; }
    .catalog-directions-list button { min-height: 54px; text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid #e7e7e7; background: white; color: inherit; font: 500 17px/1.3 var(--font-body); }
    .catalog-directions-list button[aria-pressed="true"] { border-radius: 9px; background: #fff5a9; border-color: transparent; }
    .catalog-directions-list button:disabled { color: #888; }
    .catalog-search-sheet form { display: grid; gap: 12px; }
    .catalog-search-sheet input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid #bbb; border-radius: 9px; font-size: 16px; }
    .catalog-search-actions, .catalog-filter-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .catalog-search-actions button, .catalog-filter-actions button {
        min-height: 46px; padding: 10px; border: 1px solid var(--catalog-ink); border-radius: 9px;
        color: var(--catalog-ink); background: white; font: 600 16px/1.3 var(--font-body);
    }
    .catalog-search-actions button:last-child, .catalog-filter-actions button:last-child { background: var(--catalog-accent); border-color: var(--catalog-accent); }
    .catalog-filter-actions { position: sticky; bottom: 0; margin-top: 22px; padding: 10px 0; background: white; }
    .catalog-filter-dialog [data-catalog-filter-body] { min-height: 100%; display: flex; flex-direction: column; }
    .catalog-filter-dialog .catalog-filters { flex: 1; }
    .catalog-screen .catalog-filters [hidden] { display: none; }
    .catalog-help-visible .catalog-help-bar {
        margin: 0;
        position: fixed; inset: auto 0 0; z-index: 84; background: white;
        padding: 8px var(--catalog-inset) calc(8px + var(--catalog-safe)); box-shadow: 0 -3px 18px #21212612;
    }
    .catalog-help-visible { padding-bottom: calc(62px + var(--catalog-safe)); }
    .catalog-screen .ams-consultant { display: block; right: var(--catalog-inset); bottom: calc(18px + var(--catalog-safe)); }
    .catalog-help-visible .ams-consultant { bottom: calc(76px + var(--catalog-safe)); }

}


@media (max-width: 850px) {
    .catalog-active-filters:not([hidden]) { display: flex; flex-wrap: wrap; gap: 6px; }
    .catalog-page .catalog-active-filters button { min-height: 36px; max-width: 100%; overflow-wrap: anywhere; padding: 6px 10px; border: 1px solid #d7d7d7; background: #fafafa; border-radius: 8px; font: 500 14px/1.4 var(--font-body); color: #343434; }
}
