:root {
    --ff-site-token-contract: "fairfield-ui-v1";
    --ff-site-bg: rgba(255, 255, 255, 0.94);
    --ff-site-fg: var(--ff-color-text, #1d1d1f);
    --ff-site-muted: var(--ff-color-text-muted, #667085);
    --ff-site-border: var(--ff-color-border, #d9e0ea);
    --ff-site-border-strong: var(--ff-color-border-strong, #aeb9c8);
    --ff-site-accent: var(--ff-color-action, #0071e3);
    --ff-site-accent-soft: var(--ff-color-action-soft, #eaf3ff);
    --ff-site-surface: var(--ff-color-surface, #ffffff);
    --ff-site-surface-muted: var(--ff-color-surface-muted, #f2f4f7);
    --ff-site-radius: 8px;
    --ff-site-control: 42px;
    --ff-site-material-bg: rgba(255, 255, 255, 0.72);
    --ff-site-material-bg-strong: rgba(255, 255, 255, 0.88);
    --ff-site-control-press-bg: rgba(242, 244, 247, 0.96);
    --ff-site-control-shadow: inset 0 1px 0 rgba(255,255,255,0.62), 0 1px 2px rgba(0,0,0,0.04);
    --ff-site-control-shadow-hover: inset 0 1px 0 rgba(255,255,255,0.82), 0 8px 20px rgba(15,23,42,0.08);
    --ff-site-focus-ring: 0 0 0 4px var(--accent-ring, rgba(0, 113, 227, 0.18));
    --ff-site-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

.ff-site-header {
    position: relative;
    z-index: 1100;
    border-bottom: 1px solid var(--ff-site-border);
    background: var(--ff-site-bg);
    color: var(--ff-site-fg);
    font-family: var(--ff-font-sans);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.ff-site-header-bridge {
    border-bottom-color: var(--ff-site-border);
    background: var(--ff-site-bg);
    color: var(--ff-site-fg);
    font-family: var(--ff-font-sans);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.ff-site-header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-height: 62px;
    padding: 10px 20px;
}

.ff-site-lead,
.ff-site-actions {
    display: flex;
    align-items: center;
    min-width: 0;
}

.ff-site-lead {
    justify-content: flex-start;
    gap: 10px;
}

.ff-site-home,
.ff-site-header-bridge .ff-site-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: var(--ff-site-control);
    color: var(--ff-site-fg);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
}

.ff-site-home:hover,
.ff-site-home:focus-visible {
    color: var(--ff-site-accent);
}

.ff-site-home:focus-visible,
.ff-site-product-link:focus-visible,
.ff-site-action:focus-visible {
    outline: none;
    box-shadow: var(--ff-site-focus-ring), var(--ff-site-control-shadow);
}

.ff-site-search:focus-within {
    outline: none;
}

.ff-site-logo,
.ff-site-header-bridge .ff-site-logo {
    display: block;
    width: auto;
    height: 22px;
    max-width: 74px;
    flex: 0 0 auto;
}

.ff-site-home-text,
.ff-site-header-bridge .ff-site-home-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ff-site-count,
.ff-site-header-bridge .ff-site-count {
    color: var(--ff-site-muted);
    font-size: 12px;
    font-weight: 560;
    font-variant-numeric: tabular-nums;
}

.ff-site-product-switch {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: calc(var(--ff-site-control) - 6px);
    padding: 3px;
    border: 1px solid var(--ff-site-border);
    border-radius: var(--ff-site-radius);
    background: rgba(255, 255, 255, 0.54);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 1px 2px rgba(15,23,42,0.05);
}

.ff-site-product-link,
.ff-site-action {
    -webkit-tap-highlight-color: transparent;
}

.ff-site-product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
    min-width: 0;
    padding: 0 11px;
    border-radius: 6px;
    color: var(--ff-site-muted);
    font-size: 12px;
    font-weight: 760;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background 0.14s var(--ff-site-ease),
        box-shadow 0.14s var(--ff-site-ease),
        color 0.14s var(--ff-site-ease),
        transform 0.14s var(--ff-site-ease);
}

.ff-site-product-link:hover,
.ff-site-product-link:focus-visible,
.ff-site-product-link.is-active {
    color: var(--ff-site-accent);
    background: rgba(255, 255, 255, 0.92);
}

.ff-site-product-link:hover {
    transform: translateY(-1px);
}

.ff-site-center {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.ff-site-search,
.ff-site-search-placeholder {
    width: 268px;
    max-width: 360px;
    min-width: 0;
    height: var(--ff-site-control);
}

.ff-site-search {
    position: relative;
    display: flex;
    align-items: stretch;
    border: 1px solid var(--ff-site-border);
    border-radius: var(--ff-site-radius);
    background: var(--ff-site-material-bg);
    overflow: visible;
    box-shadow: var(--ff-site-control-shadow);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    transition:
        background 0.14s var(--ff-site-ease),
        border-color 0.14s var(--ff-site-ease),
        box-shadow 0.14s var(--ff-site-ease),
        transform 0.14s var(--ff-site-ease);
}

.ff-site-search:hover {
    border-color: var(--ff-site-border-strong);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--ff-site-control-shadow-hover);
}

.ff-site-search:focus-within {
    border-color: rgba(0, 113, 227, 0.32);
    background: var(--ff-site-material-bg-strong);
    box-shadow: var(--ff-site-focus-ring), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.ff-site-search input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 0 14px;
    border: 0;
    border-radius: var(--ff-site-radius) 0 0 var(--ff-site-radius);
    background: transparent;
    color: var(--ff-site-fg);
    font: inherit;
    font-family: var(--ff-font-sans);
    font-size: 15px;
    outline: 0;
}

.ff-site-search input::placeholder {
    color: #86868b;
}

.ff-site-search-submit {
    flex: 0 0 44px;
    width: 44px;
    border: 0;
    border-left: 1px solid var(--ff-site-border);
    border-radius: 0 var(--ff-site-radius) var(--ff-site-radius) 0;
    background: rgba(255, 255, 255, 0.62);
    color: var(--ff-site-fg);
    box-shadow: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition:
        background 0.14s var(--ff-site-ease),
        border-color 0.14s var(--ff-site-ease),
        box-shadow 0.14s var(--ff-site-ease),
        color 0.14s var(--ff-site-ease),
        transform 0.14s var(--ff-site-ease);
}

.ff-site-search-submit:hover {
    border-color: var(--ff-site-border-strong);
    background: rgba(0, 113, 227, 0.08);
    color: var(--ff-site-accent);
    box-shadow: none;
    transform: none;
}

.ff-site-search-submit:focus-visible {
    outline: none;
    box-shadow: var(--ff-site-focus-ring);
    z-index: 1;
}

.ff-doc-chooser-overlay {
    position: fixed;
    inset: 0;
    z-index: 10030;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.54);
}

.ff-doc-chooser-backdrop {
    position: absolute;
    inset: 0;
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: default;
}

.ff-doc-chooser {
    position: relative;
    z-index: 1;
    width: min(360px, 100%);
    border: 1px solid var(--ff-site-border);
    border-radius: var(--ff-site-radius);
    background: var(--ff-site-surface);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    pointer-events: auto;
}

.ff-doc-chooser-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--ff-site-border);
}

.ff-doc-chooser-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ff-site-fg);
}

.ff-doc-chooser-head p {
    margin: 4px 0 0;
    color: var(--ff-site-muted);
    font-size: 12px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.ff-doc-chooser-close {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ff-site-muted);
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.ff-doc-chooser-close:hover,
.ff-doc-chooser-close:focus-visible {
    background: var(--ff-site-surface-muted);
    color: var(--ff-site-fg);
    outline: none;
}

.ff-doc-chooser-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
}

.ff-doc-chooser-btn {
    min-height: 48px;
    border: 1px solid var(--ff-site-border-strong);
    border-radius: var(--ff-site-radius);
    background: var(--ff-site-surface-muted);
    color: var(--ff-site-fg);
    font: inherit;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
    transition:
        background 0.14s var(--ff-site-ease),
        border-color 0.14s var(--ff-site-ease),
        color 0.14s var(--ff-site-ease);
}

.ff-doc-chooser-btn:hover,
.ff-doc-chooser-btn:focus-visible {
    border-color: var(--ff-site-accent);
    background: var(--ff-site-accent-soft);
    color: var(--ff-site-accent);
    outline: none;
}

.ff-site-actions {
    justify-content: flex-end;
    gap: 10px;
}

.ff-site-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--ff-site-control);
    min-width: var(--ff-site-control);
    padding: 0 12px;
    border: 1px solid var(--ff-site-border);
    border-radius: var(--ff-site-radius);
    background: rgba(255, 255, 255, 0.72);
    color: var(--ff-site-fg);
    box-shadow: var(--ff-site-control-shadow);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 740;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background 0.14s var(--ff-site-ease),
        border-color 0.14s var(--ff-site-ease),
        box-shadow 0.14s var(--ff-site-ease),
        color 0.14s var(--ff-site-ease),
        transform 0.14s var(--ff-site-ease);
}

.ff-site-action:hover,
.ff-site-action:focus-visible,
.ff-site-action.is-active {
    border-color: var(--ff-site-border-strong);
    background: rgba(255, 255, 255, 0.94);
    color: var(--ff-site-accent);
    box-shadow: var(--ff-site-control-shadow-hover);
}

.ff-site-action:hover {
    transform: translateY(-1px);
}

.ff-site-action:active,
.ff-site-product-link:active,
.ff-site-search-submit:active {
    transform: translateY(0) scale(0.98);
}

.ff-site-search-submit:active {
    background: var(--ff-site-control-press-bg);
    box-shadow: none;
}

.ff-site-action-icon {
    width: var(--ff-site-control);
    padding: 0;
}

.ff-site-action svg,
.ff-site-product-link svg,
.ff-site-search-submit svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.ff-site-product-link svg {
    width: 15px;
    height: 15px;
}

.ff-site-search-submit svg {
    stroke-width: 2.2;
}

.ff-site-actions .profile-button-wrap {
    position: relative;
    display: inline-flex;
}

.ff-site-actions .profile-button .avatar-initials {
    color: currentColor;
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0;
}

.ff-site-actions .profile-button:not(.is-authed) .avatar-initials {
    display: none;
}

.ff-site-profile-desktop-icon {
    display: inline-flex;
}

.ff-site-actions .account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1200;
}

.ff-site-actions .account-menu[hidden] {
    display: none;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .ff-site-header,
    .ff-site-product-switch,
    .ff-site-search,
    .ff-site-action {
        background: #ffffff;
    }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
    :root {
        --ff-site-material-bg: #ffffff;
        --ff-site-material-bg-strong: #ffffff;
    }

    .ff-site-search {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (max-width: 1180px) {
    .ff-site-header-row {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, auto);
        gap: 12px;
    }

    .ff-site-actions {
        gap: 0;
    }

    .ff-site-action-text {
        padding: 0 10px;
    }
}

@media (max-width: 980px) {
    .ff-site-header-row {
        grid-template-columns: 1fr;
        justify-items: stretch;
        min-height: 0;
        padding: 10px 16px 14px;
    }

    .ff-site-lead {
        justify-content: center;
    }

    .ff-site-product-switch {
        display: none;
    }

    .ff-site-center,
    .ff-site-search {
        max-width: none;
        width: 100%;
    }

    .ff-site-actions {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }

    .ff-site-actions .profile-button-wrap {
        margin-left: auto;
        padding-left: 8px;
        position: sticky;
        right: 0;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--ff-site-bg) 8px);
        flex: 0 0 auto;
    }
}

@media (max-width: 620px) {
    .ff-site-header-row {
        padding: 9px 12px 12px;
        gap: 9px;
    }

    .ff-site-home {
        min-height: 36px;
        font-size: 15px;
    }

    .ff-site-search {
        height: var(--ff-site-control);
    }

    .ff-site-search-submit {
        flex-basis: 44px;
        width: 44px;
    }

    .ff-site-action {
        height: 38px;
        min-width: 38px;
    }

    .ff-site-action-icon {
        width: 38px;
    }

    .ff-site-actions {
        gap: 6px;
        scrollbar-width: none;
    }

    .ff-site-actions::-webkit-scrollbar {
        display: none;
    }

    .ff-site-action-text {
        padding: 0 9px;
        font-size: 11px;
    }
}

@media (hover: none), (pointer: coarse) {
    .ff-site-product-link:hover,
    .ff-site-action:hover {
        box-shadow: var(--ff-site-control-shadow);
        transform: none;
    }

    .ff-site-search-submit:hover {
        background: rgba(255, 255, 255, 0.62);
        color: var(--ff-site-fg);
        box-shadow: none;
    }
}

.ff-site-action-mobile-icon {
    display: none;
}

.ff-site-action-mobile-label {
    display: none;
}

.ff-site-mobile-only {
    display: none;
}

.ff-mobile-back {
    display: none;
}

/* On phones the shared actions mirror OpenClaw's native system TabView. */
@media (max-width: 900px) {
    .ff-site-header {
        position: sticky;
        top: 0;
        z-index: 10020;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .ff-site-header .ff-site-lead {
        display: none;
    }

    .ff-site-header-row {
        padding: 8px 12px;
        gap: 0;
    }

    .ff-site-center {
        align-items: stretch;
        gap: 8px;
    }

    .ff-site-search,
    .ff-site-search-placeholder {
        flex: 1 1 auto;
    }

    .ff-mobile-back:not([hidden]) {
        width: 44px;
        min-width: 44px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid var(--ff-site-border);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.9);
        color: var(--ff-site-fg);
        box-shadow: var(--ff-site-control-shadow);
        cursor: pointer;
        touch-action: manipulation;
    }

    .ff-mobile-back svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body:has(.ff-site-header) {
        padding-bottom: calc(68px + max(4px, calc(env(safe-area-inset-bottom, 0px) - 12px)));
    }

    .ff-site-actions {
        position: fixed;
        top: auto;
        left: 50%;
        right: auto;
        bottom: max(4px, calc(env(safe-area-inset-bottom, 0px) - 12px));
        z-index: 10010;
        --ff-tab-index: 3;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: center;
        gap: 0;
        width: min(calc(100% - 32px), 520px);
        max-width: 520px;
        height: 60px;
        min-height: 60px;
        padding: 4px;
        border: 1px solid rgba(255, 255, 255, 0.62);
        border-radius: 999px;
        background: rgba(244, 247, 251, 0.72);
        box-shadow:
            0 7px 24px rgba(15, 23, 42, 0.16),
            inset 0 1px 0 rgba(255, 255, 255, 0.84),
            inset 0 -0.5px 0 rgba(15, 23, 42, 0.10);
        backdrop-filter: blur(40px) saturate(180%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        transform: translateX(-50%) translateZ(0);
        overflow: hidden;
        isolation: isolate;
        will-change: height, transform;
        transition:
            height 360ms cubic-bezier(0.22, 1, 0.36, 1),
            min-height 360ms cubic-bezier(0.22, 1, 0.36, 1),
            transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .ff-site-actions::before {
        content: '';
        position: absolute;
        z-index: 0;
        top: 4px;
        bottom: 4px;
        left: 4px;
        width: calc((100% - 8px) / 4);
        border: 1px solid rgba(255, 255, 255, 0.72);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.66);
        box-shadow:
            0 2px 8px rgba(15, 23, 42, 0.09),
            inset 0 1px 0 rgba(255, 255, 255, 0.90);
        transform: translate3d(calc(var(--ff-tab-index) * 100%), 0, 0);
        will-change: transform;
        transition: transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .ff-site-actions > * {
        display: none !important;
    }

    .ff-site-actions > .ff-site-tab-crm,
    .ff-site-actions > .ff-site-tab-new,
    .ff-site-actions > .ff-site-tab-used,
    .ff-site-actions > .ff-site-tab-profile {
        display: flex !important;
        position: relative;
        z-index: 1;
    }

    .ff-site-actions .ff-site-tab-crm,
    .ff-site-actions .ff-site-tab-new,
    .ff-site-actions .ff-site-tab-used,
    .ff-site-actions .ff-site-tab-profile .profile-button {
        width: 100%;
        min-width: 0;
        height: 52px;
        min-height: 52px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: transparent !important;
        color: #4f5b6b;
        box-shadow: none !important;
        text-decoration: none;
        box-sizing: border-box;
        line-height: 1;
        transform: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        transition:
            color 180ms ease,
            transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .ff-site-actions .profile-button-wrap {
        position: static;
        width: 100%;
        height: 52px;
        min-width: 0;
        padding: 0;
        background: transparent;
        align-items: stretch;
        justify-content: stretch;
        box-sizing: border-box;
    }

    .ff-site-actions .ff-site-tab-profile .profile-button {
        display: flex !important;
        flex: 1 1 auto;
        max-width: none;
        margin: 0;
        align-items: center;
        justify-content: center;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .ff-site-actions .ff-site-action-mobile-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 27px;
    }

    .ff-site-actions .ff-site-action-label,
    .ff-site-actions .profile-button .avatar-initials {
        display: none !important;
    }

    .ff-site-actions .ff-site-profile-desktop-icon {
        display: none !important;
    }

    .ff-site-actions .ff-site-tab-crm,
    .ff-site-actions .ff-site-tab-new,
    .ff-site-actions .ff-site-tab-used,
    .ff-site-actions .ff-site-tab-profile .profile-button {
        flex-direction: column;
        gap: 2px;
        align-items: center;
        justify-content: center;
        font-size: 10.5px;
        font-weight: 650;
        line-height: 1;
        letter-spacing: -0.01em;
        text-transform: none;
    }

    .ff-site-actions .ff-site-action-mobile-label {
        display: block;
    }

    .ff-site-actions .ff-site-action-mobile-icon svg,
    .ff-site-actions .profile-button svg {
        display: block !important;
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .ff-site-actions .ff-site-action.is-active,
    .ff-site-actions .profile-button.is-active {
        border-color: transparent !important;
        background: transparent !important;
        color: var(--ff-site-accent);
        box-shadow: none !important;
    }

    .ff-site-actions .ff-site-action.is-active::after,
    .ff-site-actions .profile-button.is-active::after {
        content: none;
    }

    .ff-site-actions .profile-button.is-authed {
        color: #4f5b6b;
    }

    .ff-site-actions .profile-button.is-active,
    .ff-site-actions .profile-button.is-active.is-authed {
        border-color: transparent !important;
        background: transparent !important;
        color: var(--ff-site-accent) !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .ff-site-actions > .ff-tab-live,
    .ff-site-actions > .ff-tab-live .profile-button {
        color: var(--ff-site-accent) !important;
    }

    .ff-site-actions > .ff-tab-pressed,
    .ff-site-actions > .ff-tab-pressed .profile-button {
        transform: scale(0.94) !important;
    }

    .ff-site-actions .ff-site-tab-crm:active,
    .ff-site-actions .ff-site-tab-new:active,
    .ff-site-actions .ff-site-tab-used:active,
    .ff-site-actions .profile-button:active {
        background: transparent !important;
        color: var(--ff-site-accent);
        transform: scale(0.92);
    }

    .ff-site-actions.ff-tabbar-minimized {
        height: 46px;
        min-height: 46px;
        transform: translateX(-50%) translateY(4px) translateZ(0);
    }

    .ff-site-actions.ff-tabbar-minimized .ff-site-tab-crm,
    .ff-site-actions.ff-tabbar-minimized .ff-site-tab-new,
    .ff-site-actions.ff-tabbar-minimized .ff-site-tab-used,
    .ff-site-actions.ff-tabbar-minimized .ff-site-tab-profile,
    .ff-site-actions.ff-tabbar-minimized .ff-site-tab-profile .profile-button,
    .ff-site-actions.ff-tabbar-minimized .profile-button-wrap {
        height: 38px;
        min-height: 38px;
    }

    .ff-site-actions .ff-site-action-mobile-label {
        max-height: 12px;
        opacity: 1;
        transform: translateY(0);
        transition:
            max-height 260ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 180ms ease,
            transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .ff-site-actions.ff-tabbar-minimized .ff-site-action-mobile-label {
        max-height: 0;
        opacity: 0;
        transform: translateY(3px);
        overflow: hidden;
    }

    .ff-site-actions .account-menu {
        display: none !important;
    }

    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        .ff-site-actions {
            background: rgba(247, 249, 252, 0.96);
        }
    }

    @media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
        .ff-site-actions {
            border-color: rgba(15, 23, 42, 0.18);
            background: #f7f8fa;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }

        .ff-site-actions::before {
            background: #ffffff !important;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .ff-site-actions .ff-site-tab-crm,
        .ff-site-actions .ff-site-tab-new,
        .ff-site-actions .ff-site-tab-used,
        .ff-site-actions .ff-site-tab-profile .profile-button,
        .ff-site-actions,
        .ff-site-actions::before,
        .ff-site-actions .ff-site-action-mobile-label {
            transition: none;
        }
    }
}
