/* =========================
   Tenant Header
   ========================= */
body.theme-default .tenant-header {
    border-bottom: 1px solid var(--color-border-muted);
    background: var(--color-base);
}

body.tenant-menu-open {
    overflow: hidden;
}

body.tenant-search-open {
    overflow: hidden;
}

body.theme-default .tenant-header__inner {
    margin-inline: auto;
    display: flex;
    width: 100%;
    max-width: var(--layout-max-width);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

body.theme-default .tenant-header__brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

body.theme-default .tenant-header__brand-logo {
    display: block;
    height: 2.75rem;
    width: auto;
    max-width: 10rem;
    object-fit: contain;
}

body.theme-default .tenant-header__brand-mark {
    display: grid;
    height: 2.75rem;
    width: 2.75rem;
    place-items: center;
    border-radius: 9999px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

body.theme-default .tenant-header__brand-name {
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    color: var(--color-main);
}

body.theme-default .tenant-header__spacer {
    flex: 1 1 0%;
}

body.theme-default .tenant-header__nav,
body.theme-default .tenant-header__actions,
body.theme-default .tenant-header__links {
    display: flex;
    align-items: center;
}

body.theme-default .tenant-header__menu-button {
    display: grid;
    height: 2.25rem;
    width: 2.25rem;
    flex-shrink: 0;
    align-self: flex-end;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgb(var(--color-text-main-rgb));
    box-shadow: none;
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

body.theme-default .tenant-header__menu-button:hover {
    background: transparent;
    transform: translateY(-1px);
    box-shadow: none;
    opacity: 0.85;
}

body.theme-default .tenant-header__menu-button:focus-visible {
    outline: none;
    box-shadow: none;
}

body.theme-default .tenant-header__menu-icon {
    height: 1.125rem;
    width: 1.125rem;
}

body.theme-default .tenant-menu-drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0s linear 0.24s;
}

body.theme-default .tenant-menu-drawer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.24s ease;
}

body.theme-default .tenant-menu-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgb(var(--color-overlay-rgb) / 0.28);
    opacity: 0;
    backdrop-filter: blur(0px);
    transition: opacity 0.28s ease, backdrop-filter 0.28s ease;
}

body.theme-default .tenant-menu-drawer.is-open .tenant-menu-drawer__overlay {
    opacity: 1;
    backdrop-filter: blur(10px);
}

body.theme-default .tenant-menu-drawer__panel {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    height: 100%;
    width: min(24rem, 88vw);
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid rgb(var(--color-border-muted-rgb));
    border-radius: 0 1.25rem 1.25rem 0;
    background: rgb(var(--color-bg-card-rgb) / 0.98);
    padding: 1rem;
    box-shadow: 24px 0 48px rgb(var(--color-shadow-rgb) / 0.18);
    transform: translate3d(-1.25rem, 0, 0) scale(0.98);
    opacity: 0;
    filter: blur(6px);
    transition:
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.22s ease,
        filter 0.32s ease;
    will-change: transform, opacity, filter;
}

body.theme-default .tenant-menu-drawer.is-open .tenant-menu-drawer__panel {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    filter: blur(0);
}

body.theme-default .tenant-menu-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgb(var(--color-border-muted-rgb));
}

body.theme-default .tenant-menu-drawer__title {
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(var(--color-text-subtle-rgb));
}

body.theme-default .tenant-menu-drawer__close {
    display: grid;
    height: 2.5rem;
    width: 2.5rem;
    place-items: center;
    border-radius: 9999px;
    color: rgb(var(--color-text-main-rgb));
    transition: background-color 0.2s ease, transform 0.2s ease;
}

body.theme-default .tenant-menu-drawer__close:hover {
    background: rgb(var(--color-bg-surface1-rgb));
    transform: translateY(-1px);
}

body.theme-default .tenant-menu-drawer__close-icon {
    height: 1.125rem;
    width: 1.125rem;
}

body.theme-default .tenant-menu-drawer__auth {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgb(var(--color-border-muted-rgb));
}

body.theme-default .tenant-menu-drawer__auth-button {
    width: 100%;
}

body.theme-default .tenant-menu-drawer.is-open .tenant-menu__item,
body.theme-default .tenant-menu-drawer.is-open .tenant-menu-drawer__auth,
body.theme-default .tenant-menu-drawer.is-open .tenant-profile-menu__mobile-actions > * {
    animation: tenantDrawerReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.theme-default .tenant-menu-drawer.is-open .tenant-menu__item:nth-child(1) {
    animation-delay: 0.04s;
}

body.theme-default .tenant-menu-drawer.is-open .tenant-menu__item:nth-child(2) {
    animation-delay: 0.08s;
}

body.theme-default .tenant-menu-drawer.is-open .tenant-menu__item:nth-child(3) {
    animation-delay: 0.12s;
}

body.theme-default .tenant-menu-drawer.is-open .tenant-menu__item:nth-child(4) {
    animation-delay: 0.16s;
}

body.theme-default .tenant-menu-drawer.is-open .tenant-menu__item:nth-child(5) {
    animation-delay: 0.2s;
}

body.theme-default .tenant-menu-drawer.is-open .tenant-menu__item:nth-child(6) {
    animation-delay: 0.24s;
}

body.theme-default .tenant-menu-drawer.is-open .tenant-menu__item:nth-child(7) {
    animation-delay: 0.28s;
}

body.theme-default .tenant-menu-drawer.is-open .tenant-menu__item:nth-child(8) {
    animation-delay: 0.32s;
}

@keyframes tenantDrawerReveal {
    from {
        opacity: 0;
        transform: translateY(0.625rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   Tenant Header Search
   ========================= */
body.theme-default .tenant-header__nav,
body.theme-default .tenant-header__links {
    flex-wrap: wrap;
    gap: 0.5rem;
}

body.theme-default .tenant-header__nav {
    flex: 1 1 0%;
}

body.theme-default .tenant-header__actions {
    gap: 0.5rem;
}

body.theme-default .tenant-header__nav-link,
body.theme-default .tenant-header__link {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-muted);
}

body.theme-default .tenant-header__nav-link:hover,
body.theme-default .tenant-header__link:hover {
    color: var(--color-main);
}

body.theme-default .tenant-header__user-name {
    font-size: 0.875rem;
    color: var(--color-subtle);
}

body.theme-default .tenant-header__search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    width: auto;
    max-width: none;
    order: 4;
}

body.theme-default .tenant-header__search-toggle {
    display: grid;
    height: 2.25rem;
    width: 2.25rem;
    flex-shrink: 0;
    position: relative;
    z-index: 86;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgb(var(--color-text-main-rgb));
    box-shadow: none;
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

body.theme-default .tenant-header__search-toggle:hover {
    background: transparent;
    transform: translateY(-1px);
    box-shadow: none;
    opacity: 0.85;
}

body.theme-default .tenant-header__search-toggle:focus-visible {
    outline: none;
    box-shadow: none;
}

body.theme-default .tenant-header__search-toggle-icon {
    width: 1.125rem;
    height: 1.125rem;
}

body.theme-default .tenant-header__search-panel {
    width: 100%;
}

body.theme-default .tenant-header__search-backdrop {
    display: none;
}

body.theme-default .tenant-header__search-dialog {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

body.theme-default .tenant-header__search-toggle-icon--close {
    display: none;
}

body.theme-default .tenant-search-form {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

body.theme-default .tenant-search-form:focus-within {
    border-color: transparent;
    box-shadow: none;
}

body.theme-default .tenant-search-form__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    border: 1px solid rgb(var(--color-border-muted-rgb));
    border-radius: 9999px;
    background: rgb(var(--color-bg-card-rgb));
    padding: 0.5rem 0.875rem;
}

body.theme-default .tenant-search-form__input {
    min-width: 0;
    flex: 1 1 0%;
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 0.875rem;
    color: var(--color-main);
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

body.theme-default .tenant-search-form__input::placeholder {
    color: var(--color-subtle);
}

body.theme-default .tenant-search-form__button {
    display: grid;
    height: 1.75rem;
    width: 1.75rem;
    flex-shrink: 0;
    line-height: 0;
    white-space: nowrap;
    place-items: center;
    border-radius: 9999px;
    color: var(--color-subtle);
    transition: color 0.2s ease, background-color 0.2s ease;
}

body.theme-default .tenant-search-form__button:hover {
    background: var(--color-hover-main);
    color: var(--color-hover-base);
}

body.theme-default .tenant-search-form__button--submit {
    display: grid;
}

body.theme-default .tenant-search-form__button--submit:hover {
    border-radius: 9999px;
    background: rgb(var(--color-primary-rgb) / 0.08);
    color: rgb(var(--color-primary-rgb));
    box-shadow: 0 4px 10px rgb(var(--color-shadow-rgb) / 0.08);
    transform: translateY(-1px);
}

body.theme-default .tenant-search-form__icon {
    display: block;
    height: 1rem;
    width: 1rem;
}

body.theme-default .tenant-header__search-title {
    display: none;
}

@media (max-width: 1023px) {
    body.theme-default .tenant-header__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    body.theme-default .tenant-header__brand {
        order: 2;
        flex: 1 1 0%;
        justify-content: center;
        min-width: 0;
    }

    body.theme-default .tenant-header__menu-button {
        order: 1;
        flex: 0 0 auto;
        margin-left: 0;
        align-self: center;
    }

    body.theme-default .tenant-header__search {
        order: 3;
        display: flex;
        align-items: center;
        gap: 0.25rem;
        flex: 0 0 auto;
        margin-left: 0;
        width: auto;
        max-width: none;
    }

    body.theme-default .tenant-header__search-toggle {
        display: grid;
    }

    body.theme-default .tenant-header__search-panel {
        position: fixed;
        inset: 0;
        z-index: 80;
        display: none;
        width: 100%;
        max-width: none;
        margin-top: 0;
        overflow: auto;
    }

    body.theme-default .tenant-header__search.is-search-open .tenant-header__search-panel {
        display: block;
    }

    body.theme-default .tenant-header__search-backdrop {
        position: absolute;
        inset: 0;
        display: block;
        background: rgb(var(--color-overlay-rgb) / 0.56);
    }

    body.theme-default .tenant-header__search-dialog {
        position: relative;
        z-index: 1;
        margin: 0;
        width: 100%;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        background: rgb(var(--color-bg-card-rgb));
        padding: 0 1rem;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    body.theme-default .tenant-header__search-title {
        display: block;
        margin: 0 0 0.75rem;
        width: min(42rem, calc(100vw - 2rem));
        color: var(--color-subtle);
        font-size: 0.875rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-align: center;
        text-transform: uppercase;
    }

    body.theme-default .tenant-header__search-dialog .tenant-search-form {
        width: min(42rem, calc(100vw - 2rem));
        margin: 0 auto;
        border: 0;
        border-radius: 0;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }

    body.theme-default .tenant-header__search-dialog .tenant-search-form__label {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        max-width: 100%;
        border-bottom: 1px solid rgb(var(--color-border-muted-rgb));
        padding-bottom: 0.25rem;
    }

    body.theme-default .tenant-header__search-panel .tenant-search-form__label {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        width: 100%;
        max-width: 100%;
    }

    body.theme-default .tenant-header__search-panel .tenant-search-form__input {
        min-width: 0;
        flex: 1 1 0%;
    }

    body.theme-default .tenant-header__search.is-search-open .tenant-header__search-toggle-icon--open {
        display: none;
    }

    body.theme-default .tenant-header__search.is-search-open .tenant-header__search-toggle-icon--close {
        display: block;
    }

    body.theme-default .tenant-search-form__button--submit {
        display: grid;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 9999px;
        background: rgb(var(--color-primary-rgb) / 0.08);
        color: rgb(var(--color-primary-rgb));
        box-shadow: none;
    }

    body.theme-default .tenant-header__search-dialog .tenant-search-form__input {
        height: 2.75rem;
        padding-inline: 0;
        font-size: 1rem;
    }

    body.theme-default .tenant-header__search.is-search-open .tenant-search-form__button--submit {
        display: grid;
    }

    body.theme-default .tenant-header__menu-button {
        display: grid;
    }

    body.theme-default .tenant-header__actions {
        display: none;
    }

    body.theme-default .tenant-menu-drawer__auth {
        display: grid;
    }

    body.theme-default .tenant-profile-menu {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    body.theme-default .tenant-profile-menu__shell {
        display: none;
    }

    body.theme-default .tenant-profile-menu__mobile-actions {
        display: flex;
    }
}

/* =========================
   Tenant Profile
   ========================= */
body.theme-default .tenant-profile-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.theme-default .tenant-profile-menu__mobile-actions {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
}

body.theme-default .tenant-profile-menu__mobile-form {
    width: 100%;
}

body.theme-default .tenant-profile-menu__mobile-button {
    width: 100%;
}

body.theme-default .tenant-profile-menu__shell {
    position: relative;
}

body.theme-default .tenant-profile-menu__home-button {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 9999px;
    background: rgb(var(--color-bg-surface1-rgb));
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

body.theme-default .tenant-profile-menu__home-button:hover {
    background: rgb(var(--color-bg-surface1-rgb));
    box-shadow: 0 6px 16px rgb(var(--color-shadow-rgb) / 0.08);
    transform: translateY(-1px);
}

body.theme-default .tenant-profile-menu__home-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgb(var(--color-primary-rgb) / 0.16);
}

body.theme-default .tenant-profile-menu__home-icon {
    height: 1.25rem;
    width: 1.25rem;
}

body.theme-default .tenant-profile-menu__trigger {
    display: grid;
    height: 2.5rem;
    width: 2.5rem;
    cursor: pointer;
    place-items: center;
    border-radius: 9999px;
    background: rgb(var(--color-primary-rgb) / 0.12);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 800;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

body.theme-default .tenant-profile-menu__trigger:hover {
    background: rgb(var(--color-primary-rgb) / 0.18);
    box-shadow: 0 6px 16px rgb(var(--color-shadow-rgb) / 0.08);
    transform: translateY(-1px);
}

body.theme-default .tenant-profile-menu__trigger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgb(var(--color-primary-rgb) / 0.16);
}

body.theme-default .tenant-header__auth-icon-button {
    display: grid;
    height: 2.5rem;
    width: 2.5rem;
    padding: 0;
    border-radius: 9999px;
    background: transparent;
    color: rgb(var(--color-text-main-rgb));
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

body.theme-default .tenant-header__auth-icon-button:hover {
    background: rgb(var(--color-bg-surface1-rgb));
    box-shadow: 0 6px 16px rgb(var(--color-shadow-rgb) / 0.08);
    transform: translateY(-1px);
}

body.theme-default .tenant-header__auth-icon-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgb(var(--color-primary-rgb) / 0.16);
}

body.theme-default .tenant-header__auth-icon {
    width: 1.125rem;
    height: 1.125rem;
}

body.theme-default .tenant-profile-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% - 0.125rem);
    z-index: 50;
    display: none;
    width: 11rem;
    overflow: hidden;
    border: 1px solid var(--color-border-muted);
    border-radius: 0.75rem;
    background: rgb(var(--color-bg-surface-rgb));
    padding: 0.25rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

body.theme-default .tenant-profile-menu__panel.is-open {
    display: block;
}

@media (min-width: 1024px) {
    body.theme-default .tenant-profile-menu__shell:hover .tenant-profile-menu__panel,
    body.theme-default .tenant-profile-menu__shell:focus-within .tenant-profile-menu__panel {
        display: block;
    }
}

@media (min-width: 1024px) {
    body.theme-default .tenant-profile-menu__panel {
        transform: translateY(0.375rem) scale(0.98);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    }

    body.theme-default .tenant-profile-menu__shell:hover .tenant-profile-menu__panel,
    body.theme-default .tenant-profile-menu__shell:focus-within .tenant-profile-menu__panel,
    body.theme-default .tenant-profile-menu__panel.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
        transition: opacity 0.18s ease, transform 0.18s ease;
    }
}

body.theme-default .tenant-profile-menu__item,
body.theme-default .tenant-profile-menu__button {
    display: flex;
    width: 100%;
    align-items: center;
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-main);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body.theme-default .tenant-profile-menu__item:hover,
body.theme-default .tenant-profile-menu__button:hover {
    background: rgb(var(--color-bg-surface1-rgb));
    color: var(--color-main);
    transform: translateX(0.125rem);
}

body.theme-default .tenant-profile-menu__item:focus-visible,
body.theme-default .tenant-profile-menu__button:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgb(var(--color-primary-rgb) / 0.16);
}

@media (max-width: 1023px) {
    body.theme-default .tenant-profile-menu {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    body.theme-default .tenant-profile-menu__shell[data-profile-variant="app"] {
        display: none;
    }

    body.theme-default .tenant-profile-menu__mobile-actions {
        display: flex;
    }
}

/* =========================
   Tenant Menu
   ========================= */
body.theme-default .tenant-menu {
    --tenant-menu-radius: 9999px;
    --tenant-menu-item-padding-x: 0.875rem;
    --tenant-menu-item-padding-y: 0.5rem;
    --tenant-menu-item-gap: 0.375rem;
    --tenant-menu-submenu-radius: 1rem;
    --tenant-menu-submenu-padding: 0.5rem;
    --tenant-menu-fg: rgb(var(--color-text-muted-rgb));
    --tenant-menu-fg-hover: rgb(var(--color-text-main-rgb));
    --tenant-menu-border: rgb(var(--color-border-muted-rgb));
    --tenant-menu-surface: rgb(var(--color-bg-card-rgb));
    --tenant-menu-hover-surface: rgb(var(--color-bg-surface1-rgb));
    --tenant-menu-shadow: 0 18px 40px rgb(var(--color-shadow-rgb) / 0.10);
    --tenant-menu-panel-width: 13rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

body.theme-default .tenant-menu--pill {
    --tenant-menu-radius: 9999px;
    --tenant-menu-item-padding-x: 0.9rem;
    --tenant-menu-item-padding-y: 0.5rem;
}

body.theme-default .tenant-menu--simple {
    --tenant-menu-radius: 0.625rem;
    --tenant-menu-item-padding-x: 0.75rem;
    --tenant-menu-item-padding-y: 0.45rem;
}

body.theme-default .tenant-menu--underline {
    --tenant-menu-radius: 0;
    --tenant-menu-item-padding-x: 0.6rem;
    --tenant-menu-item-padding-y: 0.45rem;
}

body.theme-default .tenant-menu--boxed {
    --tenant-menu-radius: 0.875rem;
    --tenant-menu-item-padding-x: 0.8rem;
    --tenant-menu-item-padding-y: 0.55rem;
}

body.theme-default .tenant-menu--mega-lite {
    --tenant-menu-radius: 1rem;
    --tenant-menu-item-padding-x: 0.9rem;
    --tenant-menu-item-padding-y: 0.65rem;
}

body.theme-default .tenant-menu--desktop {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
}

body.theme-default .tenant-menu--submenu.tenant-menu--desktop {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

body.theme-default .tenant-menu--submenu.tenant-menu--desktop > .tenant-menu__item {
    width: 100%;
}

body.theme-default .tenant-menu--submenu.tenant-menu--desktop > .tenant-menu__item > .tenant-menu__row {
    display: grid;
    width: 100%;
    justify-items: start;
}

body.theme-default .tenant-menu--submenu.tenant-menu--desktop .tenant-menu__link--no-children {
    justify-content: flex-start;
    gap: var(--tenant-menu-item-gap);
}

body.theme-default .tenant-menu--submenu.tenant-menu--desktop .tenant-menu__link,
body.theme-default .tenant-menu--submenu.tenant-menu--desktop .tenant-menu__toggle {
    justify-content: flex-start;
    text-align: left;
}

body.theme-default .tenant-menu--mobile {
    gap: 0.5rem;
    padding-top: 1rem;
}

body.theme-default .tenant-menu--desktop > .tenant-menu__item {
    position: relative;
}

body.theme-default .tenant-menu--desktop > .tenant-menu__item > .tenant-menu__submenu {
    position: absolute;
    left: 0;
    top: calc(100% - 0.25rem);
    z-index: 20;
    min-width: var(--tenant-menu-panel-width);
    padding-top: 0.25rem;
}

body.theme-default .tenant-menu--desktop > .tenant-menu__item > .tenant-menu__submenu > .tenant-menu__submenu-panel,
body.theme-default .tenant-menu--desktop .tenant-menu__submenu--flyout > .tenant-menu__submenu-panel {
    min-width: var(--tenant-menu-panel-width);
    border: 1px solid var(--tenant-menu-border);
    border-radius: var(--tenant-menu-submenu-radius);
    background: var(--tenant-menu-surface);
    padding: var(--tenant-menu-submenu-padding);
    box-shadow: var(--tenant-menu-shadow);
}

body.theme-default .tenant-menu--desktop .tenant-menu__submenu--flyout {
    position: absolute;
    left: calc(100% - 0.25rem);
    top: -0.25rem;
    padding-top: 0;
    padding-left: 0.25rem;
}

body.theme-default .tenant-menu--desktop .tenant-menu__submenu--flyout > .tenant-menu__submenu-panel {
    min-width: 12.5rem;
}

body.theme-default .tenant-menu--desktop .tenant-menu--level-2 > .tenant-menu__item {
    position: relative;
}

body.theme-default .tenant-menu--desktop .tenant-menu--level-2 > .tenant-menu__item > .tenant-menu__submenu--flyout {
    position: absolute;
    left: calc(100% - 0.25rem);
    top: 0;
    z-index: 40;
    min-width: var(--tenant-menu-panel-width);
    padding-top: 0;
    padding-left: 0.25rem;
}

body.theme-default .tenant-menu--desktop .tenant-menu--level-2 > .tenant-menu__item:hover > .tenant-menu__submenu--flyout,
body.theme-default .tenant-menu--desktop .tenant-menu--level-2 > .tenant-menu__item:focus-within > .tenant-menu__submenu--flyout {
    display: block;
}

body.theme-default .tenant-menu--desktop .tenant-menu__item:hover > .tenant-menu__submenu,
body.theme-default .tenant-menu--desktop .tenant-menu__item:focus-within > .tenant-menu__submenu {
    display: block;
}

body.theme-default .tenant-menu--mobile .tenant-menu__submenu {
    display: none;
    padding-left: 0.75rem;
}

body.theme-default .tenant-menu--mobile .tenant-menu__item.is-open > .tenant-menu__submenu {
    display: block;
}

body.theme-default .tenant-menu--mobile .tenant-menu__submenu > .tenant-menu__submenu-panel {
    margin-top: 0.5rem;
    border-left: 1px solid rgb(var(--color-border-muted-rgb));
    padding-left: 0.75rem;
}

body.theme-default .tenant-menu__item {
    position: relative;
}

body.theme-default .tenant-menu__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.25rem;
}

body.theme-default .tenant-menu--desktop .tenant-menu--level-2 > .tenant-menu__item > .tenant-menu__row {
    display: block;
    width: 100%;
}

body.theme-default .tenant-menu--desktop .tenant-menu--level-2 > .tenant-menu__item > .tenant-menu__row > .tenant-menu__link {
    justify-content: space-between;
    gap: var(--tenant-menu-item-gap);
    width: 100%;
    padding-inline: var(--tenant-menu-item-padding-x);
}

body.theme-default .tenant-menu--desktop .tenant-menu--level-2 > .tenant-menu__item > .tenant-menu__row > .tenant-menu__link .tenant-menu__label {
    flex: 1 1 auto;
}

body.theme-default .tenant-menu--desktop .tenant-menu--level-2 > .tenant-menu__item > .tenant-menu__row > .tenant-menu__link .tenant-menu__icon-slot {
    margin-left: auto;
}

body.theme-default .tenant-menu__link,
body.theme-default .tenant-menu__toggle {
    display: flex;
    align-items: center;
    gap: 0.3125rem;
    min-height: 2.5rem;
    width: 100%;
    border: 1px solid transparent;
    border-radius: var(--tenant-menu-radius);
    padding: var(--tenant-menu-item-padding-y) var(--tenant-menu-item-padding-x);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--tenant-menu-fg);
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

body.theme-default .tenant-menu__link--no-children {
    justify-content: center;
    gap: 0;
}

body.theme-default .tenant-menu__link--no-children .tenant-menu__label {
    white-space: nowrap;
}

body.theme-default .tenant-menu__link:hover,
body.theme-default .tenant-menu__toggle:hover {
    background: var(--tenant-menu-hover-surface);
    color: var(--tenant-menu-fg-hover);
    border-color: var(--tenant-menu-border);
    box-shadow: 0 1px 2px rgb(var(--color-shadow-rgb) / 0.05);
    transform: translateY(-1px);
}

body.theme-default .tenant-menu__link:focus-visible,
body.theme-default .tenant-menu__toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgb(var(--color-primary-rgb) / 0.16);
}

body.theme-default .tenant-menu__label {
    min-width: 0;
}

body.theme-default .tenant-menu__icon-slot {
    display: inline-grid;
    height: 1rem;
    width: 1rem;
    flex: none;
    place-items: center;
}

body.theme-default .tenant-menu__toggle {
    width: 2rem;
    justify-content: center;
    padding-inline: 0;
}

body.theme-default .tenant-menu__toggle-spacer {
    display: block;
    width: 2rem;
    height: 2rem;
}

body.theme-default .tenant-menu__chevron {
    height: 0.875rem;
    width: 0.875rem;
    opacity: 0.72;
}

body.theme-default .tenant-menu--desktop .tenant-menu--level-2 > .tenant-menu__item > .tenant-menu__row > .tenant-menu__link .tenant-menu__chevron {
    transform: rotate(-90deg);
}

body.theme-default .tenant-menu--desktop .tenant-menu--level-2 > .tenant-menu__item > .tenant-menu__row > .tenant-menu__link {
    justify-content: space-between;
    padding-right: var(--tenant-menu-item-padding-x);
}

body.theme-default .tenant-menu--desktop .tenant-menu--level-2 > .tenant-menu__item > .tenant-menu__row > .tenant-menu__link .tenant-menu__label {
    flex: 1 1 auto;
}

body.theme-default .tenant-menu--desktop .tenant-menu--level-2 > .tenant-menu__item > .tenant-menu__row > .tenant-menu__link .tenant-menu__icon-slot {
    justify-self: end;
    margin-left: auto;
}

body.theme-default .tenant-menu--desktop .tenant-menu__toggle {
    display: none;
}

body.theme-default .tenant-menu--desktop .tenant-menu__toggle-spacer {
    display: none;
}

body.theme-default .tenant-menu--desktop .tenant-menu__submenu {
    display: none;
}

body.theme-default .tenant-menu--desktop .tenant-menu__submenu .tenant-menu--desktop {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.375rem;
}

body.theme-default .tenant-menu--desktop .tenant-menu__submenu .tenant-menu__item {
    width: 100%;
}

body.theme-default .tenant-menu__submenu {
    display: none;
}

body.theme-default .tenant-menu--mobile .tenant-menu__submenu-panel {
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

body.theme-default .tenant-menu--mobile .tenant-menu__link,
body.theme-default .tenant-menu--mobile .tenant-menu__toggle {
    width: 100%;
    justify-content: space-between;
    border-radius: 0.875rem;
    padding: 0.6rem 0.8rem;
}

body.theme-default .tenant-menu--mobile .tenant-menu__row {
    gap: 0.5rem;
}

body.theme-default .tenant-menu--mobile .tenant-menu__link--mobile-toggle {
    justify-content: space-between;
}

body.theme-default .tenant-menu--mobile .tenant-menu__link {
    justify-content: flex-start;
}

body.theme-default .tenant-menu--mobile .tenant-menu__link--no-children {
    justify-content: flex-start;
    gap: 0.375rem;
}

body.theme-default .tenant-menu--mobile .tenant-menu__submenu {
    padding-top: 0.25rem;
}

body.theme-default .tenant-menu--mobile .tenant-menu__submenu .tenant-menu__submenu {
    padding-left: 0.5rem;
}

body.theme-default .tenant-menu--underline .tenant-menu__link {
    border-color: transparent;
    border-radius: 0;
    background: transparent;
    border-bottom: 2px solid transparent;
}

body.theme-default .tenant-menu--underline .tenant-menu__link:hover {
    border-bottom-color: rgb(var(--color-primary-rgb));
}

body.theme-default .tenant-menu--mega-lite .tenant-menu__submenu > .tenant-menu__submenu-panel {
    min-width: 16rem;
}

body.theme-default .tenant-menu--mega-lite .tenant-menu__item {
    position: relative;
}

/* =========================
   Tenant Footer
   ========================= */
body.theme-default .tenant-footer,
body.scope-platform .tenant-footer {
    border-top: 1px solid var(--color-border-muted);
    background-color: rgb(var(--color-bg-surface-rgb));
}

body.theme-default .tenant-footer__menu-band,
body.scope-platform .tenant-footer__menu-band {
    background-color: rgb(var(--color-bg-surface2-rgb));
    padding-block: 2rem;
}

body.theme-default .tenant-footer__shell,
body.scope-platform .tenant-footer__shell {
    margin-inline: auto;
    width: 100%;
    max-width: var(--layout-max-width);
    padding-inline: 1rem;
}

body.theme-default .tenant-footer__menu-grid,
body.scope-platform .tenant-footer__menu-grid {
    display: grid;
    gap: 2rem 2.5rem;
    align-items: start;
}
body.theme-default .tenant-footer__divider,
body.scope-platform .tenant-footer__divider {
    border-top: 1px solid var(--color-border-muted);
    padding: 1.5rem 0 3rem;
}

body.theme-default .tenant-footer__layout,
body.scope-platform .tenant-footer__layout {
    display: grid;
    gap: 2rem;
    align-items: start;
}

body.theme-default .tenant-footer__brand,
body.scope-platform .tenant-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

body.theme-default .tenant-footer__brand-logo,
body.scope-platform .tenant-footer__brand-logo {
    display: block;
    height: 3rem;
    width: auto;
    max-width: 10rem;
    object-fit: contain;
}

body.theme-default .tenant-footer__brand-text,
body.scope-platform .tenant-footer__brand-text {
    min-width: 0;
}

body.theme-default .tenant-footer__name,
body.scope-platform .tenant-footer__name {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--color-main);
}

body.theme-default .tenant-footer__desc,
body.scope-platform .tenant-footer__desc {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.5rem;
    color: var(--color-muted);
}

body.theme-default .tenant-footer__socials,
body.scope-platform .tenant-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

body.theme-default .tenant-footer__social,
body.scope-platform .tenant-footer__social {
    display: inline-flex;
    height: 2.5rem;
    width: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid var(--color-border-muted);
    background-color: rgb(var(--color-bg-card-rgb));
    color: var(--color-muted);
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

body.theme-default .tenant-footer__social:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--color-primary) 30%, var(--color-border-muted));
    color: var(--color-main);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

body.theme-default .tenant-footer__meta,
body.scope-platform .tenant-footer__meta {
    display: grid;
    gap: 1rem;
}

body.theme-default .tenant-footer__meta-title,
body.scope-platform .tenant-footer__meta-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-subtle);
}

body.theme-default .tenant-footer__meta-list,
body.scope-platform .tenant-footer__meta-list {
    display: grid;
    gap: 0.25rem;
    font-size: 0.72rem;
    line-height: 1rem;
}

body.theme-default .tenant-footer__meta-row,
body.scope-platform .tenant-footer__meta-row {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.25rem;
    row-gap: 0;
}

body.theme-default .tenant-footer__meta-label,
body.scope-platform .tenant-footer__meta-label {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--color-main);
}

body.theme-default .tenant-footer__meta-value,
body.scope-platform .tenant-footer__meta-value {
    min-width: 0;
    white-space: nowrap;
    color: var(--color-muted);
}

body.theme-default .tenant-footer__copyright,
body.scope-platform .tenant-footer__copyright {
    border-top: 1px solid var(--color-border-muted);
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-muted);
}

body.theme-default .tenant-footer__copyright-lines,
body.scope-platform .tenant-footer__copyright-lines {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.theme-default .tenant-footer-menu,
body.scope-platform .tenant-footer-menu {
    display: grid;
    gap: 0.875rem;
}

body.theme-default .tenant-footer-menu__title,
body.scope-platform .tenant-footer-menu__title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-subtle);
}

body.theme-default .tenant-footer-menu__children,
body.theme-default .tenant-footer-menu__grandchildren,
body.scope-platform .tenant-footer-menu__children,
body.scope-platform .tenant-footer-menu__grandchildren {
    display: grid;
    gap: 0.5rem;
}

body.theme-default .tenant-footer-menu__child,
body.theme-default .tenant-footer-menu__grandchild,
body.theme-default .tenant-footer-menu__link,
body.scope-platform .tenant-footer-menu__child,
body.scope-platform .tenant-footer-menu__grandchild,
body.scope-platform .tenant-footer-menu__link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

body.theme-default .tenant-footer-menu__child:hover,
body.theme-default .tenant-footer-menu__grandchild:hover,
body.theme-default .tenant-footer-menu__link:hover,
body.scope-platform .tenant-footer-menu__child:hover,
body.scope-platform .tenant-footer-menu__grandchild:hover,
body.scope-platform .tenant-footer-menu__link:hover {
    color: rgb(var(--color-text-main-rgb));
    transform: translateX(1px);
}

body.theme-default .tenant-footer-menu__child,
body.scope-platform .tenant-footer-menu__child {
    font-size: 0.875rem;
    line-height: 1.4rem;
    font-weight: 500;
}

body.theme-default .tenant-footer-menu__grandchildren,
body.scope-platform .tenant-footer-menu__grandchildren {
    padding-left: 0.875rem;
    border-left: 1px solid rgb(var(--color-border-muted-rgb));
}

body.theme-default .tenant-footer-menu__grandchild,
body.scope-platform .tenant-footer-menu__grandchild {
    font-size: 0.75rem;
    line-height: 1.3rem;
}

@media (min-width: 768px) {
    body.theme-default .tenant-footer__shell,
    body.scope-platform .tenant-footer__shell {
        padding-inline: 1.5rem;
    }

    body.theme-default .tenant-footer__copyright-lines,
    body.scope-platform .tenant-footer__copyright-lines {
        align-items: flex-start;
    }
}

@media (min-width: 1024px) {
    body.theme-default .tenant-footer__menu-grid,
    body.scope-platform .tenant-footer__menu-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: start;
    }

    body.theme-default .tenant-footer__layout,
    body.scope-platform .tenant-footer__layout {
        grid-template-columns: minmax(220px, 1.25fr) repeat(3, minmax(0, 1fr));
        align-items: start;
    }
    body.theme-default .tenant-header__inner {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    body.theme-default .tenant-header__search-toggle,
    body.theme-default .tenant-header__menu-button,
    body.theme-default .tenant-menu-drawer {
        display: none;
    }

    body.theme-default .tenant-header__nav--desktop {
        display: flex;
    }

    body.theme-default .tenant-header__search {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        max-width: 20rem;
        order: 3;
    }

    body.theme-default .tenant-header__search-toggle {
        display: none;
    }

    body.theme-default .tenant-header__search-panel {
        display: flex;
        flex: 1 1 0%;
        min-width: 0;
        width: 100%;
    }

    body.theme-default .tenant-search-form {
        gap: 0.5rem;
        border: 0;
        border-radius: 0;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }

    body.theme-default .tenant-search-form:focus-within {
        border-color: rgb(var(--color-border-strong-rgb));
        box-shadow: 0 8px 24px rgb(var(--color-shadow-rgb) / 0.08);
    }

    body.theme-default .tenant-header__search-panel .tenant-search-form__label {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        width: 100%;
    }

    body.theme-default .tenant-header__actions {
        order: 4;
        gap: 0.5rem;
    }

    body.theme-default .tenant-menu-drawer__auth {
        display: none;
    }
}

@media (max-width: 1023px) {
    body.theme-default .tenant-header__inner {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    body.theme-default .tenant-header__brand {
        order: 2;
        flex: 1 1 auto;
        justify-content: center;
        min-width: 0;
    }

    body.theme-default .tenant-header__menu-button {
        order: 1;
        margin-left: 0;
        align-self: center;
    }

    body.theme-default .tenant-header__nav--desktop {
        display: none;
    }

    body.theme-default .tenant-header__search {
        order: 3;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex: 0 0 auto;
        margin-left: auto;
        max-width: none;
    }

    body.theme-default .tenant-header__actions {
        display: none;
    }

    body.theme-default .tenant-header__search-panel {
        display: none;
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }

    body.theme-default .tenant-header__search-panel[hidden] {
        display: none;
    }

    body.theme-default.tenant-ai-writing-open .tenant-header__search {
        display: none;
    }

    body.theme-default .tenant-header__search.is-search-open .tenant-header__search-panel {
        display: flex;
    }

    body.theme-default .tenant-header__search--mobile .tenant-search-form__label {
        width: 100%;
    }

    body.theme-default .tenant-header__search-dialog .tenant-search-form__input {
        height: 2.75rem;
        padding-inline: 0;
        font-size: 1rem;
    }

    body.theme-default .tenant-menu-drawer__auth {
        display: grid;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.theme-default .tenant-menu__link,
    body.theme-default .tenant-menu__toggle,
    body.theme-default .tenant-menu-drawer__overlay,
    body.theme-default .tenant-menu-drawer__panel,
    body.theme-default .tenant-header__menu-button,
    body.theme-default .tenant-menu-drawer__close {
        transition: none;
    }
}
