@layer components {
    :where(html[data-ds]) .skip-link {
        position: absolute;
        inset-inline-start: var(--ds-space-4);
        inset-block-start: var(--ds-space-2);
        z-index: var(--ds-z-toast);
        padding: var(--ds-space-2) var(--ds-space-4);
        border-radius: var(--ds-radius-md);
        background-color: var(--ds-color-primary);
        color: var(--ds-color-on-primary);
        font-weight: var(--ds-font-weight-medium);
        text-decoration: none;
        translate: 0 -200%;
    }

    :where(html[data-ds]) .skip-link:focus {
        translate: 0 0;
    }

    :where(html[data-ds]) .topbar {
        position: sticky;
        inset-block-start: 0;
        z-index: var(--ds-z-header);
        border-block-end: var(--ds-border-width-1) solid var(--ds-color-border);
        background-color: var(--ds-color-background);
    }

    :where(html[data-ds]) .topbar-inner {
        display: flex;
        align-items: center;
        gap: var(--ds-space-4);
        min-height: calc(var(--ds-space-12) + var(--ds-space-2));
    }

    :where(html[data-ds]) .topbar-brand {
        margin-inline-end: auto;
        color: var(--ds-color-text);
        font-size: var(--ds-font-size-lg);
        font-weight: var(--ds-font-weight-semibold);
        letter-spacing: var(--ds-font-tracking-display);
        text-decoration: none;
        white-space: nowrap;
    }

    :where(html[data-ds]) .topbar-actions {
        display: flex;
        align-items: center;
        gap: var(--ds-space-4);
    }

    :where(html[data-ds]) .topbar-wide {
        display: none;
    }

    :where(html[data-ds]) .topbar-salon {
        display: none;
        align-items: center;
        gap: var(--ds-space-3);
        min-width: 0;
        transition: opacity var(--ds-duration-medium) var(--ds-easing-out), translate var(--ds-duration-medium) var(--ds-easing-out), visibility var(--ds-duration-medium);
    }

    :where(html[data-ds]) .topbar-salon.is-hidden {
        visibility: hidden;
        opacity: 0;
        translate: 0 calc(var(--ds-space-2) * -1);
    }

    :where(html[data-ds]) .topbar-salon-name {
        overflow: hidden;
        font-weight: var(--ds-font-weight-medium);
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    :where(html[data-ds]) .topbar-divider {
        width: var(--ds-border-width-1);
        height: var(--ds-space-5);
        background-color: var(--ds-color-border);
    }

    :where(html[data-ds]) .topbar-link {
        color: var(--ds-color-text);
        font-weight: var(--ds-font-weight-medium);
        text-decoration: none;
        white-space: nowrap;
    }

    :where(html[data-ds]) .lang-links {
        display: flex;
        gap: var(--ds-space-2);
        margin: 0;
        padding: 0;
        list-style: none;
        font-family: var(--ds-text-data-sm-family);
        font-size: var(--ds-text-data-sm-size);
    }

    :where(html[data-ds]) .lang-link {
        color: var(--ds-color-text-muted);
        text-decoration: none;
    }

    :where(html[data-ds]) .lang-link[aria-current] {
        color: var(--ds-color-text);
        font-weight: var(--ds-font-weight-medium);
    }

    :where(html[data-ds]) .avatar {
        display: inline-grid;
        flex: none;
        place-items: center;
        width: var(--ds-space-8);
        height: var(--ds-space-8);
        border-radius: var(--ds-radius-pill);
        background-color: var(--ds-color-primary);
        color: var(--ds-color-on-primary);
        font-size: var(--ds-font-size-sm);
        font-weight: var(--ds-font-weight-medium);
        text-decoration: none;
    }

    :where(html[data-ds]) .account-menu {
        position: relative;
    }

    :where(html[data-ds]) .account-menu-button {
        display: flex;
        align-items: center;
        gap: var(--ds-space-2);
        min-height: var(--ds-layout-tap-target);
        font-weight: var(--ds-font-weight-medium);
        list-style: none;
        cursor: pointer;
    }

    :where(html[data-ds]) .account-menu-button::-webkit-details-marker {
        display: none;
    }

    :where(html[data-ds]) .topbar-link:focus-visible,
    :where(html[data-ds]) .lang-link:focus-visible,
    :where(html[data-ds]) .account-menu-button:focus-visible,
    :where(html[data-ds]) .menu-sheet-link:focus-visible {
        outline: var(--ds-focus-width) solid var(--ds-color-focus);
        outline-offset: var(--ds-focus-offset);
    }

    :where(html[data-ds]) .menu-sheet {
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
        margin: 0;
        padding: 0;
        border: 0;
        background-color: var(--ds-color-background);
        color: var(--ds-color-text);
    }

    :where(html[data-ds]) .menu-sheet[open] {
        display: flex;
        flex-direction: column;
        animation: menu-sheet-in var(--ds-duration-medium) var(--ds-easing-out);
    }

    :where(html[data-ds]) .menu-sheet::backdrop {
        background: none;
    }

    :where(html[data-ds]) .menu-sheet-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: calc(var(--ds-space-12) + var(--ds-space-2));
        border-block-end: var(--ds-border-width-1) solid var(--ds-color-border);
    }

    :where(html[data-ds]) .menu-sheet-body {
        display: flex;
        flex: 1;
        flex-direction: column;
        gap: var(--ds-space-8);
        padding-block: var(--ds-space-8);
        overflow-y: auto;
    }

    :where(html[data-ds]) .menu-sheet-links {
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    :where(html[data-ds]) .menu-sheet-link {
        display: flex;
        align-items: center;
        min-height: var(--ds-space-12);
        color: var(--ds-color-text);
        font-size: var(--ds-text-h3-size);
        font-weight: var(--ds-font-weight-medium);
        letter-spacing: var(--ds-text-h3-tracking);
        text-decoration: none;
    }

    :where(html[data-ds]) .menu-sheet-link[aria-current] {
        text-decoration-line: underline;
        text-underline-offset: 0.2em;
    }

    :where(html[data-ds]) .menu-sheet .menu-note {
        padding-inline: 0;
    }

    :where(html[data-ds]) .menu-sheet-foot {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: var(--ds-space-4);
    }

    :where(html[data-ds]) .theme-sun,
    :where(html[data-ds]) body[data-theme="dark"] .theme-moon {
        display: none;
    }

    :where(html[data-ds]) body[data-theme="dark"] .theme-sun {
        display: block;
    }

    @keyframes menu-sheet-in {
        from {
            opacity: 0;
            translate: 0 calc(var(--ds-space-4) * -1);
        }
    }

    @media (min-width: 48rem) {
        :where(html[data-ds]) .topbar-inner {
            min-height: var(--ds-space-16);
        }

        :where(html[data-ds]) .topbar-brand {
            font-size: var(--ds-font-size-xl);
        }

        :where(html[data-ds]) .topbar-wide {
            display: flex;
            align-items: center;
            gap: var(--ds-space-4);
        }

        :where(html[data-ds]) .topbar-salon {
            display: flex;
        }

        :where(html[data-ds]) .topbar-narrow {
            display: none;
        }
    }

    @media (hover: hover) {
        :where(html[data-ds]) .topbar-link:hover,
        :where(html[data-ds]) .lang-link:hover {
            color: var(--ds-color-text);
            text-decoration-line: underline;
            text-underline-offset: 0.2em;
        }
    }
}
