.fi-topbar {
    background: linear-gradient(100deg, #fff, var(--salon-theme-surface, #fffafb) 62%, var(--salon-theme-surface, #faf8fd));
}

.fi-topbar .fi-topbar-start:has(.salon-header) {
    display: flex;
    flex: 1 1 auto;
    gap: 1.25rem;
    min-width: 0;
    margin-inline-end: 1rem;
}

.fi-topbar-start:has(.salon-header) > a {
    flex-shrink: 0;
}

.salon-header {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.4rem 0;
}

.salon-header__name {
    overflow: hidden;
    color: var(--salon-theme-ink-soft, #593d4e);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.salon-header__details {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    min-width: 0;
    margin: 0;
    font-style: normal;
}

.salon-header__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    max-width: 24rem;
    color: var(--salon-theme-muted, #7d6775);
    font-size: 0.74rem;
    line-height: 1.4;
    text-decoration: none;
}

.salon-header__item svg {
    width: 0.9rem;
    height: 0.9rem;
    flex-shrink: 0;
    color: var(--salon-theme-accent, #a95778);
}

.salon-header__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.salon-header__item:hover {
    color: var(--salon-theme-strong, #82445f);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a.salon-header__item:focus-visible {
    outline: 2px solid var(--salon-theme-accent, #a95778);
    outline-offset: 3px;
    border-radius: 0.25rem;
}

@media (max-width: 767px) {
    .fi-body {
        --topbar-height: 6rem;
    }

    .fi-topbar .fi-topbar-start:has(.salon-header) {
        gap: 0.65rem;
        margin-inline-end: 0;
    }

    .fi-topbar-start:has(.salon-header) .fi-logo {
        margin-inline-start: 0;
    }

    .salon-header {
        gap: 0.2rem;
    }

    .salon-header__name {
        font-size: 0.88rem;
    }

    .salon-header__details {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.1rem;
    }

    .salon-header__item {
        max-width: 100%;
        font-size: 0.68rem;
        line-height: 1.3;
    }
}


/* The salon shell stays visible; content and sidebar navigation scroll separately. */
.fi-body-has-topbar {
    --topbar-height: 4.5rem;
    padding-top: var(--salon-shell-height, calc(var(--topbar-height) + var(--salon-banner-height, 0px)));
}
.fi-body-has-topbar .salon-test-banner {
    position: fixed; inset: 0 0 auto; z-index: 45;
}
.fi-body-has-topbar .fi-topbar-ctn {
    position: fixed; top: var(--salon-banner-height, 0px); inset-inline: 0; z-index: 40;
}
.fi-body-has-topbar .fi-sidebar {
    top: var(--salon-shell-height, var(--topbar-height));
    height: calc(100dvh - var(--salon-shell-height, var(--topbar-height)));
}
.fi-body-has-topbar .fi-sidebar-close-overlay {
    top: var(--salon-shell-height, var(--topbar-height));
}
.fi-sidebar .fi-sidebar-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
.fi-sidebar .fi-sidebar-footer { flex-shrink: 0; }
html { scroll-padding-top: calc(var(--salon-shell-height, 110px) + 16px); }
@media (max-width: 767px) {
    .fi-body-has-topbar { --topbar-height: 6rem; }
    .fi-topbar .fi-logo { max-width: 6.5rem; object-fit: contain; }
}
