:root {
    --ff-desktop-sidebar-width: 264px;
    --ff-desktop-header-height: 63px;
}

.ff-site-sidebar {
    display: none;
}

.workspace-nav-item--mobile-only {
    display: none !important;
}

.ff-site-shell-body {
    min-width: 0;
}

.ff-site-shell-content {
    min-width: 0;
}

@media (min-width: 901px) {
    .ff-site-header {
        position: sticky;
        top: 0;
    }

    .ff-site-header-row {
        grid-template-columns: var(--ff-desktop-sidebar-width) minmax(0, 1fr) var(--ff-desktop-sidebar-width);
        gap: 0;
        min-height: calc(var(--ff-desktop-header-height) - 1px);
        padding: 0;
    }

    .ff-site-lead {
        width: 100%;
        min-height: calc(var(--ff-desktop-header-height) - 1px);
        padding: 10px 24px;
        align-self: stretch;
        border-right: 1px solid var(--ff-site-border, var(--header-border, rgba(0, 0, 0, 0.1)));
    }

    .ff-site-center {
        width: 100%;
        padding: 10px 24px;
    }

    .header-search-row {
        justify-content: center;
    }

    .ff-site-actions {
        width: 100%;
        min-height: calc(var(--ff-desktop-header-height) - 1px);
        padding: 10px 24px;
        justify-content: flex-end;
    }

    .ff-site-actions > :not(.ff-site-tab-profile) {
        display: none !important;
    }

    .ff-site-shell-body {
        display: flex;
        width: 100%;
        min-height: calc(100vh - var(--ff-desktop-header-height));
        flex: 1 1 auto;
        align-items: flex-start;
    }

    .ff-site-shell-content {
        flex: 1 1 auto;
    }

    .ff-site-sidebar {
        display: flex;
        width: var(--ff-desktop-sidebar-width);
        height: calc(100vh - var(--ff-desktop-header-height));
        max-height: calc(100vh - var(--ff-desktop-header-height));
        flex: 0 0 var(--ff-desktop-sidebar-width);
        align-self: flex-start;
        position: sticky;
        top: var(--ff-desktop-header-height);
        overflow-y: auto;
        padding: 18px 14px;
        border: 0;
        border-right: 1px solid var(--ff-site-border, var(--header-border, rgba(0, 0, 0, 0.1)));
        border-radius: 0;
        background: #f8f9fb;
        box-shadow: none;
        color: var(--ff-site-fg, #1d1d1f);
        font-family: var(--ff-font-sans);
        font-style: normal;
        font-variation-settings: normal;
        animation: none;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
    }

    .ff-site-sidebar--embedded {
        display: none;
    }

    .main.homepage-main .ff-site-sidebar--embedded {
        display: flex;
    }

    .workspace-nav {
        display: flex;
        flex: 1;
        min-width: 0;
        flex-direction: column;
        gap: 16px;
    }

    .workspace-nav-group {
        display: grid;
        gap: 2px;
    }

    .workspace-nav-group-secondary {
        margin-top: auto;
        padding-top: 10px;
        border-top: 1px solid var(--ff-site-border, rgba(0, 0, 0, 0.1));
    }

    .workspace-nav-label {
        padding: 0 8px 7px;
        color: var(--ff-site-muted, #6e6e73);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.04em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .workspace-nav-item {
        display: flex;
        min-width: 0;
        min-height: 40px;
        align-items: center;
        gap: 10px;
        padding: 8px;
        border: 0;
        border-radius: 4px;
        color: var(--ff-site-fg, #1d1d1f);
        font-size: 14px;
        font-weight: 500;
        line-height: 1.2;
        text-decoration: none;
        transition: background 130ms ease, color 130ms ease, transform 130ms ease;
    }

    .workspace-nav-item[hidden] {
        display: none;
    }

    .workspace-nav-item:hover {
        background: #eef0f3;
        color: var(--ff-site-fg, #1d1d1f);
    }

    .workspace-nav-item:focus-visible {
        outline: none;
        box-shadow: var(--ff-site-focus-ring, 0 0 0 4px rgba(0, 113, 227, 0.18));
    }

    .workspace-nav-item:active {
        transform: scale(0.985);
    }

    .workspace-nav-item.is-active {
        background: #e8ebef;
        color: var(--ff-site-fg, #1d1d1f);
        font-weight: 600;
    }

    .workspace-nav-icon {
        display: inline-flex;
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        align-items: center;
        justify-content: center;
        color: #747b85;
    }

    .workspace-nav-icon svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .workspace-nav-icon .ff-nav-glyph {
        fill: currentColor;
        stroke: none;
    }

    .workspace-nav-icon .ff-nav-glyph-fill {
        display: none;
    }

    .workspace-nav-short-label {
        margin-left: 5px;
        padding: 1px 5px;
        border-radius: 3px;
        background: rgba(0, 0, 0, 0.055);
        color: var(--ff-site-muted, #6e6e73);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        vertical-align: 1px;
    }
}

@media (max-width: 900px) {
    .ff-site-shell-body {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .workspace-nav-item {
        transition: none;
    }
}
