/* Shared wide sidebar treatment used by the landing page and information pages. */
html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.shell-topbar-left,
.shell-topbar-center,
.shell-topbar-right {
    min-width: 0;
}

.shell-topbar-left {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shell-topbar-center {
    justify-self: center;
    display: grid;
    justify-items: center;
    text-align: center;
}

.shell-topbar-right {
    justify-self: end;
}

/* Keep the shared rail readable in English without widening the compact rail. */
@media (min-width: 921px) {
    html[lang^="en"] body nav[data-fuuvo-workspace-rail="1"]
    .home-rail-action[data-workspace-rail-item="creation"] {
        overflow: visible !important;
        white-space: normal !important;
        line-height: 1.05 !important;
        font-size: 10px !important;
    }

    html[lang^="en"] body nav[data-fuuvo-workspace-rail="1"]
    .home-rail-action[data-workspace-rail-item="creation"] > span:last-child {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 56px !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        text-align: center !important;
    }
}


html body .fuuvo-mobile-sidebar-inline-trigger {
    display: none !important;
}

@media (max-width: 920px) {
    html body header[data-fuuvo-shared-topbar="1"] .fuuvo-mobile-sidebar-inline-trigger {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 0 !important;
        border-radius: 9px !important;
        background: transparent !important;
        color: inherit !important;
        cursor: pointer !important;
    }

    html body header[data-fuuvo-shared-topbar="1"] .fuuvo-mobile-sidebar-inline-trigger:is(:hover, :focus-visible, :active) {
        background: rgba(111, 133, 165, .12) !important;
        outline: none !important;
    }

    html body header[data-fuuvo-shared-topbar="1"] .fuuvo-mobile-sidebar-inline-trigger .fuuvo-topbar-menu-icon,
    html body header[data-fuuvo-shared-topbar="1"] .fuuvo-mobile-sidebar-inline-trigger .fuuvo-topbar-menu-icon > img {
        width: 20px !important;
        height: 20px !important;
        display: block !important;
    }
}

/* The homepage capability catalogue is also the mobile New Chat surface for
 * every feature workspace. Keep one full-screen implementation so food,
 * research, creation, and office routes cannot drift into separate menus. */
@media (max-width: 920px) {
    html body.mobile-capability-drawer-open {
        overflow: hidden !important;
    }

    html body.mobile-capability-drawer-open [data-fuuvo-app-shell="1"] > .home-tool-drawer {
        position: fixed !important;
        inset: 0 !important;
        z-index: 5000 !important;
        display: grid !important;
        width: 100vw !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
        overflow: hidden !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #f7f9fc !important;
        color: #17243a !important;
        box-shadow: none !important;
        pointer-events: auto !important;
        transition: none !important;
    }

    html body.mobile-capability-drawer-open .home-tool-drawer-header {
        min-height: calc(72px + env(safe-area-inset-top)) !important;
        padding: max(18px, env(safe-area-inset-top)) 18px 14px !important;
        align-items: center !important;
        border-bottom: 1px solid #e1e8f2 !important;
        background: #f7f9fc !important;
    }

    html body.mobile-capability-drawer-open .home-tool-drawer-header strong {
        font-size: 20px !important;
        font-weight: 760 !important;
        line-height: 1.25 !important;
    }

    html body.mobile-capability-drawer-open .home-tool-drawer-header span {
        color: #718198 !important;
        font-size: 12px !important;
    }

    html body.mobile-capability-drawer-open .home-tool-drawer-close {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        border-radius: 12px !important;
        background: transparent !important;
        color: #52637c !important;
    }

    html body.mobile-capability-drawer-open .home-tool-drawer-close:is(:hover, :focus-visible, :active) {
        background: #e7edf6 !important;
        color: #1769d4 !important;
        outline: none !important;
    }

    html body.mobile-capability-drawer-open .home-tool-drawer-scroll {
        display: grid !important;
        min-height: 0 !important;
        padding: 12px 14px calc(22px + env(safe-area-inset-bottom)) !important;
        gap: 16px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        scrollbar-width: none !important;
    }

    html body.mobile-capability-drawer-open .home-tool-drawer-scroll::-webkit-scrollbar {
        display: none !important;
    }

    html body.mobile-capability-drawer-open .home-tool-group {
        display: grid !important;
        padding: 2px 0 16px !important;
        gap: 10px !important;
        border-bottom: 1px solid #e1e8f2 !important;
    }

    html body.mobile-capability-drawer-open .home-tool-group:last-child {
        border-bottom: 0 !important;
    }

    html body.mobile-capability-drawer-open .home-tool-group h2 {
        margin: 0 !important;
        padding: 0 2px !important;
        color: #34445c !important;
        font-size: 16px !important;
        font-weight: 760 !important;
        line-height: 1.35 !important;
    }

    html body.mobile-capability-drawer-open .home-tool-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    html body.mobile-capability-drawer-open .home-tool-drawer-item {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 96px !important;
        min-height: 96px !important;
        padding: 10px 8px !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        border: 1px solid #e0e6ef !important;
        border-radius: 14px !important;
        background: #fff !important;
        color: #40516b !important;
        font-size: 13px !important;
        font-weight: 680 !important;
        line-height: 1.3 !important;
        text-align: center !important;
        text-decoration: none !important;
        box-shadow: 0 4px 12px rgba(29, 52, 83, .05) !important;
        transform: none !important;
    }

    html body.mobile-capability-drawer-open .home-tool-drawer-item:is(:hover, :focus-visible, :active),
    html body.mobile-capability-drawer-open .home-tool-drawer-item.active {
        border-color: #b9d2f5 !important;
        background: #edf4ff !important;
        color: #1769d4 !important;
        outline: none !important;
        box-shadow: 0 5px 14px rgba(31, 91, 169, .12) !important;
    }

    html body.mobile-capability-drawer-open .home-tool-drawer-item .capability-icon {
        display: inline-flex !important;
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        flex: 0 0 38px !important;
        align-items: center !important;
        justify-content: center !important;
        color: #3476d4 !important;
    }

    html body.mobile-capability-drawer-open .home-tool-drawer-item .capability-icon :is(svg, .fuuvo-linear-svg, .fuuvo-asset-icon, .home-capability-icon) {
        width: 30px !important;
        height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
    }

    html body.mobile-capability-drawer-open .home-tool-group[data-home-tool-group="office"] .capability-icon {
        color: #20966c !important;
    }

    html body.mobile-capability-drawer-open .home-tool-group[data-home-tool-group="creation"] .capability-icon {
        color: #9854bf !important;
    }

    html body.mobile-capability-drawer-open .home-tool-group[data-home-tool-group="utilities"] .capability-icon {
        color: #ba6b20 !important;
    }

    html body[data-ui-theme="dark"].mobile-capability-drawer-open [data-fuuvo-app-shell="1"] > .home-tool-drawer,
    html body[data-theme="dark"].mobile-capability-drawer-open [data-fuuvo-app-shell="1"] > .home-tool-drawer {
        background: #151a23 !important;
        color: #edf3fc !important;
    }

    html body[data-ui-theme="dark"].mobile-capability-drawer-open .home-tool-drawer-header,
    html body[data-theme="dark"].mobile-capability-drawer-open .home-tool-drawer-header {
        border-bottom-color: #2d3a4d !important;
        background: #151a23 !important;
    }

    html body[data-ui-theme="dark"].mobile-capability-drawer-open .home-tool-group,
    html body[data-theme="dark"].mobile-capability-drawer-open .home-tool-group {
        border-bottom-color: #2d3a4d !important;
    }

    html body[data-ui-theme="dark"].mobile-capability-drawer-open .home-tool-group h2,
    html body[data-theme="dark"].mobile-capability-drawer-open .home-tool-group h2 {
        color: #dce6f6 !important;
    }

    html body[data-ui-theme="dark"].mobile-capability-drawer-open .home-tool-drawer-item,
    html body[data-theme="dark"].mobile-capability-drawer-open .home-tool-drawer-item {
        border-color: #2d3a4d !important;
        background: #1c2431 !important;
        color: #c7d3e5 !important;
        box-shadow: none !important;
    }

    html body[data-ui-theme="dark"].mobile-capability-drawer-open .home-tool-drawer-item:is(:hover, :focus-visible, :active),
    html body[data-theme="dark"].mobile-capability-drawer-open .home-tool-drawer-item:is(:hover, :focus-visible, :active) {
        border-color: #5279ac !important;
        background: #263548 !important;
        color: #b9d7ff !important;
    }
}

/* Shared brand layers used by the public rail and the expanded sidebar. The
 * static wordmark remains visible until the same hover GIF has decoded. */
html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-english .sidebar-brand-logo {
    position: relative !important;
    display: grid !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-english .sidebar-brand-logo
    :is(.sidebar-brand-logo-static, .sidebar-brand-logo-hover) {
    grid-area: 1 / 1 !important;
    display: block !important;
    object-fit: contain !important;
    object-position: left center !important;
    background: transparent !important;
    border: 0 !important;
    pointer-events: none !important;
    transition: opacity 120ms ease, visibility 120ms ease !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-english .sidebar-brand-logo-hover {
    visibility: hidden !important;
    opacity: 0 !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-english.is-fuuvo-video-playing
    .sidebar-brand-logo-static {
    visibility: hidden !important;
    opacity: 0 !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-english.is-fuuvo-video-playing
    .sidebar-brand-logo-hover {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Conversation actions are rendered as a body-level fixed menu. Keep the
 * clicked menu above drawers, search surfaces, and other application popups. */
html body #floating-conversation-menu.conversation-menu-floating {
    position: fixed !important;
    z-index: 100000 !important;
    pointer-events: auto !important;
}

.shell-theme-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #fff;
    color: #50627a;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.shell-theme-toggle:hover,
.shell-theme-toggle:focus-visible {
    border-color: #9bbcf1;
    background: #f1f6ff;
    color: #0d72f5;
}

.shell-theme-toggle:active {
    transform: scale(.96);
}

.shell-theme-toggle:focus-visible {
    outline: 3px solid rgba(13, 114, 245, .2);
    outline-offset: 2px;
}

.shell-theme-toggle-icon {
    width: 19px;
    height: 19px;
    display: block;
}

.shell-theme-toggle-icon-moon {
    display: none;
}

body[data-ui-theme="dark"] .shell-theme-toggle {
    border-color: #34445c;
    background: #172131;
    color: #c8d8ee;
}

body[data-ui-theme="dark"] .shell-theme-toggle:hover,
body[data-ui-theme="dark"] .shell-theme-toggle:focus-visible {
    border-color: #6ba8ff;
    background: #20334c;
    color: #e7f1ff;
}

body[data-ui-theme="dark"] .shell-theme-toggle-icon-sun {
    display: none;
}

body[data-ui-theme="dark"] .shell-theme-toggle-icon-moon {
    display: block;
}

aside[data-fuuvo-shared-sidebar="1"] a,
aside[data-fuuvo-shared-sidebar="1"] a:hover,
aside[data-fuuvo-shared-sidebar="1"] a:focus,
aside[data-fuuvo-shared-sidebar="1"] a:active,
aside[data-fuuvo-shared-sidebar="1"] a:visited {
    text-decoration: none !important;
}

[data-fuuvo-app-workspace="1"] a,
[data-fuuvo-app-workspace="1"] a:hover,
[data-fuuvo-app-workspace="1"] a:focus,
[data-fuuvo-app-workspace="1"] a:active,
[data-fuuvo-app-workspace="1"] a:visited {
    text-decoration: none !important;
}

.fuuvo-design-icon {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.fuuvo-linear-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}
.fuuvo-linear-icon.fuuvo-design-icon {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    flex: 0 0 20px;
}
header[data-fuuvo-shared-topbar="1"] .workspace-header-link > .fuuvo-linear-icon,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-search-trigger > .fuuvo-linear-icon,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-safety-link > .fuuvo-linear-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    flex: 0 0 20px !important;
}
.fuuvo-linear-svg {
    display: block;
    width: 100%;
    height: 100%;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.fuuvo-topbar-menu-icon,
.fuuvo-topbar-menu-icon > img { width: 22px; height: 22px; display: block; }

aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-row {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-row > .fuuvo-sidebar-brand {
    min-width: 0;
    flex: 1 1 auto;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-toggle-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-top: 6px;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-toggle-slot .desktop-history-toggle {
    position: static !important;
    inset: auto !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-toggle-slot .desktop-history-toggle:hover {
    background: rgba(15, 23, 42, 0.05) !important;
}

/* Canonical Recent interaction states. Apply the colour to the whole row so
 * feature pages do not colour only the link while leaving the delete area as
 * a different block. */
html body aside[data-fuuvo-shared-sidebar="1"] :is(.conversation-item, .task-item, .portal-recent-item) {
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color .16s ease, color .16s ease !important;
}

html:not([data-ui-theme="dark"]) body aside[data-fuuvo-shared-sidebar="1"] :is(.conversation-item, .task-item, .portal-recent-item):hover {
    background: #f6f9ff !important;
}

html:not([data-ui-theme="dark"]) body aside[data-fuuvo-shared-sidebar="1"] :is(.conversation-item, .task-item, .portal-recent-item).active {
    background: #e8f1ff !important;
}

body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] :is(.conversation-item, .task-item, .portal-recent-item):hover {
    background: rgba(96, 165, 250, .12) !important;
}

body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] :is(.conversation-item, .task-item, .portal-recent-item).active {
    background: rgba(37, 99, 255, .2) !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-item :is(.portal-recent-link, .portal-recent-link:hover, .portal-recent-link:focus, .portal-recent-link:active) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .portal-recent-item:hover :is(.portal-recent-link, .portal-recent-icon, .portal-recent-copy) {
    color: #8fc1ff !important;
}

html:not([data-ui-theme="dark"]) body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-item:hover :is(.portal-recent-link, .portal-recent-icon, .portal-recent-copy) {
    color: #0b6ff0 !important;
}

/* Function icons use their line color only; never place artwork on a color tile. */
html body :is(.home-tool-drawer, .workspace-tool-drawer) .home-tool-drawer-item,
html body :is(.home-tool-drawer, .workspace-tool-drawer) .home-tool-drawer-item:is(:hover, :focus-visible, .active) {
    background: transparent !important;
    box-shadow: none !important;
}

html body :is(.home-tool-drawer, .workspace-tool-drawer) .home-tool-drawer-item :is(.capability-icon, .core-feature-btn-icon),
html body :is(.home-tool-drawer, .workspace-tool-drawer) .home-tool-drawer-item:is(:hover, :focus-visible, .active) :is(.capability-icon, .core-feature-btn-icon) {
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Final More-panel sizing must come after legacy shared-sidebar invariants. */
@media (min-width: 921px) {
    html body.home-history-drawer-open.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .history-main {
        flex: 1 1 auto !important;
        overflow: hidden !important;
    }

    html body.home-history-drawer-open.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .history-main :is(.conversation-list, .task-list) {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    html body.home-history-drawer-open.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .portal-recent {
        flex: 1 1 auto !important;
        overflow: hidden !important;
    }

    html body.home-history-drawer-open.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .portal-recent-list {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
}

/* The desktop More panel is a history surface, not a second copy of the
 * primary navigation. Keep its search affordance and account controls, but
 * remove the already-visible brand/nav block and give Recent its own scroll
 * viewport so long histories never push the panel out of view. */
@media (min-width: 921px) {
    html body.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand,
    html body.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .portal-nav {
        display: none !important;
    }

    html body.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region {
        display: flex !important;
        min-height: 0 !important;
        overflow: hidden !important;
        flex-direction: column !important;
        padding: 14px 8px 8px !important;
    }

    html body.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .sidebar-shell {
        display: block !important;
        flex: 0 0 auto !important;
    }

    html body.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .portal-search {
        margin: 0 !important;
    }

    html body.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .portal-recent {
        display: flex !important;
        min-height: 0 !important;
        margin: 12px 0 0 !important;
        padding: 12px 0 0 !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        overflow: hidden !important;
        border-top: 1px solid rgba(148, 163, 184, .18) !important;
    }

    html body.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .portal-recent-list {
        display: grid !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 2px 4px !important;
        flex: 1 1 auto !important;
        align-content: start !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        scrollbar-width: thin !important;
        scrollbar-color: rgba(118, 132, 153, .46) transparent !important;
    }

    html body.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .portal-recent-list::-webkit-scrollbar {
        width: 6px;
    }

    html body.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .portal-recent-list::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(118, 132, 153, .46);
    }

    /* Home uses the conversation history variant instead of portal-recent. */
    html body.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .history-main {
        display: flex !important;
        min-height: 0 !important;
        margin: 12px 0 0 !important;
        padding: 12px 0 0 !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        gap: 8px !important;
        overflow: hidden !important;
        border-top: 1px solid rgba(148, 163, 184, .18) !important;
    }

    html body.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .history-main :is(.conversation-list, .task-list) {
        display: grid !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 2px 4px !important;
        flex: 1 1 auto !important;
        align-content: start !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        scrollbar-width: thin !important;
        scrollbar-color: rgba(118, 132, 153, .46) transparent !important;
    }

    html body.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .history-main :is(.conversation-list, .task-list)::-webkit-scrollbar {
        width: 6px;
    }

    html body.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .history-main :is(.conversation-list, .task-list)::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(118, 132, 153, .46);
    }

    html body.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .sidebar-safety-link {
        flex: 0 0 auto !important;
        margin-top: 8px !important;
    }
}

/* The generic capability display rules override the browser's [hidden] rule. */
html body [data-home-icon="ask"],
html body [data-chat-tool-action="quick"] {
    display: none !important;
}

/* Account portal: the launcher is shared by every workspace and the card opens
 * independently of the More/history drawer.  Keeping this layer outside the
 * drawer prevents the account surface from disappearing when the rail is
 * collapsed. */
[data-fuuvo-account-portal="1"] {
    --account-card-bg: #666666;
    --account-surface: #2d2b40;
    --account-ink: #ffffff;
    --account-muted: #a4a5b1;
    position: fixed !important;
    left: 0 !important;
    bottom: 0 !important;
    z-index: 1400 !important;
    width: var(--fuuvo-workspace-rail-width, 64px) !important;
    height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-menu {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    pointer-events: auto !important;
}

[data-fuuvo-account-portal="1"] .sidebar-account-toggle {
    position: absolute !important;
    left: 5px !important;
    bottom: 5px !important;
    z-index: 3 !important;
    width: 54px !important;
    min-width: 54px !important;
    height: 54px !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #5e6168 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease !important;
}

[data-fuuvo-account-portal="1"] .sidebar-account-toggle:hover,
[data-fuuvo-account-portal="1"] .sidebar-account-menu.is-open .sidebar-account-toggle,
[data-fuuvo-account-portal="1"] .sidebar-account-toggle:focus-visible {
    background: #e7e7e9 !important;
    color: #17181b !important;
    box-shadow: none !important;
    outline: none !important;
}

[data-fuuvo-account-portal="1"] .sidebar-account-toggle:focus-visible {
    box-shadow: inset 0 0 0 2px #6b7280 !important;
}

[data-fuuvo-account-portal="1"] .sidebar-account-toggle::after {
    content: none !important;
    display: none !important;
}

[data-fuuvo-account-portal="1"] .sidebar-account-menu:not(.is-open) .sidebar-account-toggle:hover {
    background: #e7e7e9 !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-launcher-icon {
    width: 28px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: currentColor !important;
}

:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) [data-fuuvo-account-portal="1"] .sidebar-account-toggle {
    color: #c8cbd0 !important;
}

:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) [data-fuuvo-account-portal="1"] .sidebar-account-toggle:hover,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) [data-fuuvo-account-portal="1"] .sidebar-account-menu.is-open .sidebar-account-toggle,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) [data-fuuvo-account-portal="1"] .sidebar-account-toggle:focus-visible,
:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) [data-fuuvo-account-portal="1"] .sidebar-account-menu:not(.is-open) .sidebar-account-toggle:hover {
    background: #2b2d31 !important;
    color: #f1f3f5 !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-launcher-icon svg {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-launcher-label {
    display: none;
}

[data-fuuvo-account-portal="1"] .sidebar-account-toggle > .workspace-account-avatar,
[data-fuuvo-account-portal="1"] .sidebar-account-toggle > .workspace-account-toggle-copy,
[data-fuuvo-account-portal="1"] .sidebar-account-toggle > .sidebar-account-chevron {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

[data-fuuvo-account-portal="1"] .sidebar-account-dropdown {
    position: fixed !important;
    left: 15px !important;
    /* Keep the card inside the viewport even though it lives in the 64px
       fixed launcher portal.  The legacy dropdown rule supplies a below-
       trigger top value, so use an explicit viewport-relative top here. */
    top: auto !important;
    bottom: 63px !important;
    z-index: 2 !important;
    width: min(360px, calc(100vw - 30px)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 90px) !important;
    margin: 0 !important;
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: var(--account-card-bg) !important;
    color: var(--account-ink) !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .34) !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

[data-fuuvo-account-portal="1"] .sidebar-account-dropdown.hidden,
[data-fuuvo-account-portal="1"] .sidebar-quick-settings.hidden,
[data-fuuvo-account-portal="1"] .sidebar-quick-settings-panel.hidden,
[data-fuuvo-account-portal="1"] .sidebar-quick-settings-main.hidden {
    display: none !important;
}

[data-fuuvo-account-portal="1"].is-account-menu-open {
    z-index: 6000 !important;
}

[data-fuuvo-account-portal="1"] .sidebar-account-dropdown:not(.hidden) {
    z-index: 6002 !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-profile-head {
    min-height: 113px !important;
    padding: 4px 18px 11px !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex: 0 0 auto !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-profile-avatar {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border-radius: 50% !important;
    background: #7b1fa2 !important;
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-profile-avatar img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-avatar-initial {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-profile-copy {
    min-width: 0 !important;
    display: grid !important;
    gap: 4px !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-profile-copy strong {
    display: block !important;
    overflow: hidden !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-profile-copy p {
    margin: 0 !important;
    overflow: hidden !important;
    color: var(--account-muted) !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-divider {
    height: 1px !important;
    min-height: 1px !important;
    margin: 0 0 8px !important;
    background: rgba(255, 255, 255, .92) !important;
    flex: 0 0 auto !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-profile-head + .workspace-account-divider {
    margin-bottom: 20px !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-plan,
[data-fuuvo-account-portal="1"] .workspace-account-credits {
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 0 6px !important;
    padding: 0 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: var(--account-surface) !important;
    color: #ad9cff !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-plan:hover,
[data-fuuvo-account-portal="1"] .workspace-account-plan:focus-visible,
[data-fuuvo-account-portal="1"] .workspace-account-credits:hover {
    background: #393650 !important;
    color: #c7bcff !important;
    outline: none !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-plan-arrow {
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #a998ff !important;
    color: #38314f !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-credits {
    justify-content: flex-start !important;
    gap: 12px !important;
    margin-bottom: 17px !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-credits strong {
    color: #ad9cff !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-actions {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex: 0 1 auto !important;
    flex-direction: column !important;
    gap: 2px !important;
    overflow: auto !important;
    scrollbar-width: none !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-actions::-webkit-scrollbar {
    display: none !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-actions > a,
[data-fuuvo-account-portal="1"] .workspace-account-actions > button {
    width: 100% !important;
    min-height: 48px !important;
    flex: 0 0 48px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 560 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-actions > a:hover,
[data-fuuvo-account-portal="1"] .workspace-account-actions > a:focus-visible,
[data-fuuvo-account-portal="1"] .workspace-account-actions > button:hover,
[data-fuuvo-account-portal="1"] .workspace-account-actions > button:focus-visible {
    background: rgba(255, 255, 255, .1) !important;
    color: #ffffff !important;
    outline: none !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-actions > a > :is(svg, .fuuvo-linear-icon),
[data-fuuvo-account-portal="1"] .workspace-account-actions > button > :is(svg, .fuuvo-linear-icon) {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    display: block !important;
    color: currentColor !important;
    fill: none !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-action-chevron {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin-left: auto !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-team-promo {
    position: fixed !important;
    left: 399px !important;
    bottom: 63px !important;
    z-index: 1 !important;
    width: 132px !important;
    height: min(648px, calc(100dvh - 90px)) !important;
    max-height: calc(100dvh - 90px) !important;
    padding: 82px 0 22px !important;
    display: none !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 28px !important;
    border-right: 1px solid rgba(255, 255, 255, .1) !important;
    color: #b5b6bd !important;
    pointer-events: auto !important;
}

[data-fuuvo-account-portal="1"] .sidebar-account-menu.is-open .workspace-account-team-promo {
    display: flex !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-team-label {
    font-size: 15px !important;
    line-height: 1.2 !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-team-icon {
    width: 37px !important;
    height: 37px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ce6b00 !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-team-icon svg {
    width: 37px !important;
    height: 37px !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-team-promo > a {
    display: grid !important;
    justify-items: center !important;
    gap: 10px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-team-promo > a:hover,
[data-fuuvo-account-portal="1"] .workspace-account-team-promo > a:focus-visible {
    color: #d2caff !important;
    outline: none !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-team-promo > a b {
    padding: 2px 10px !important;
    border-radius: 999px !important;
    background: #ff6144 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
}

[data-fuuvo-account-portal="1"] .sidebar-quick-settings {
    position: fixed !important;
    left: 15px !important;
    top: auto !important;
    right: auto !important;
    bottom: 63px !important;
    z-index: 4 !important;
    width: min(360px, calc(100vw - 30px)) !important;
    height: min(648px, calc(100dvh - 90px)) !important;
    max-height: calc(100dvh - 90px) !important;
    margin: 0 !important;
    padding: 18px !important;
    overflow: auto !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: var(--account-card-bg) !important;
    color: var(--account-ink) !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .34) !important;
    scrollbar-width: none !important;
}

[data-fuuvo-account-portal="1"] .sidebar-quick-settings::-webkit-scrollbar {
    display: none !important;
}

[data-fuuvo-account-portal="1"] .sidebar-quick-settings-title,
[data-fuuvo-account-portal="1"] .sidebar-quick-settings-row,
[data-fuuvo-account-portal="1"] .sidebar-quick-settings-back,
[data-fuuvo-account-portal="1"] .sidebar-quick-settings-option,
[data-fuuvo-account-portal="1"] .sidebar-quick-settings-footer {
    color: #ffffff !important;
}

@media (max-width: 539px) {
    [data-fuuvo-account-portal="1"] {
        left: auto !important;
        /* 100vw includes a classic scrollbar while fixed positioning uses
           the layout viewport. Compensate so the launcher stays aligned on
           home and content pages alike. */
        right: calc(10px - (100vw - 100%)) !important;
        width: 76px !important;
        height: 66px !important;
    }

    [data-fuuvo-account-portal="1"] .sidebar-account-toggle {
        left: 0 !important;
        bottom: 0 !important;
        width: 76px !important;
        min-width: 76px !important;
        height: 64px !important;
        min-height: 64px !important;
        flex-direction: column !important;
        gap: 2px !important;
        border-radius: 10px !important;
        color: #5f6672 !important;
    }

    [data-fuuvo-account-portal="1"] .workspace-account-launcher-icon,
    [data-fuuvo-account-portal="1"] .workspace-account-launcher-icon svg {
        width: 25px !important;
        height: 25px !important;
    }

    [data-fuuvo-account-portal="1"] .workspace-account-launcher-label {
        display: block;
        max-width: 72px;
        overflow: hidden;
        color: currentColor;
        font-size: 12px;
        font-weight: 500;
        line-height: 17px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    [data-fuuvo-account-portal="1"] .sidebar-account-dropdown,
    [data-fuuvo-account-portal="1"] .sidebar-quick-settings {
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: 0 !important;
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: min(78dvh, 680px) !important;
        padding: 14px 14px calc(16px + env(safe-area-inset-bottom)) !important;
        overflow-y: auto !important;
        border-radius: 18px 18px 0 0 !important;
        box-shadow: 0 -16px 42px rgba(0, 0, 0, .32) !important;
    }

    [data-fuuvo-account-portal="1"] .sidebar-account-menu.is-open .workspace-account-team-promo {
        display: none !important;
    }

    [data-fuuvo-account-portal="1"] .workspace-account-profile-head {
        padding-inline: 14px !important;
    }

    [data-fuuvo-account-portal="1"] .workspace-account-actions > a,
    [data-fuuvo-account-portal="1"] .workspace-account-actions > button {
        min-height: 46px !important;
        flex-basis: 46px !important;
        font-size: 15px !important;
    }

    [data-fuuvo-account-portal="1"] .workspace-account-actions > a > :is(svg, .fuuvo-linear-icon),
    [data-fuuvo-account-portal="1"] .workspace-account-actions > button > :is(svg, .fuuvo-linear-icon) {
        width: 21px !important;
        height: 21px !important;
        min-width: 21px !important;
    }
}

/* The old rail gear remains in the markup for route/assistive compatibility;
 * the account card now owns the visible Settings action. */
html body nav[data-fuuvo-workspace-rail="1"] [data-workspace-rail-item="settings"] {
    display: none !important;
}

/* Shared workspace rail: one desktop navigation contract for every app shell. */
:root {
    --fuuvo-workspace-rail-width: 72px;
    --fuuvo-workspace-drawer-width: 430px;
    --fuuvo-workspace-rail-bg: #fafbfc;
    --fuuvo-workspace-drawer-bg: #ffffff;
}

@media (min-width: 921px) {
    html body [data-fuuvo-app-shell="1"],
    html body [data-fuuvo-app-shell="1"].sidebar-collapsed,
    html body.sidebar-collapsed [data-fuuvo-app-shell="1"] {
        display: grid !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        grid-template-columns: var(--fuuvo-workspace-rail-width) minmax(0, 1fr) !important;
        gap: 0 !important;
    }

    html body [data-fuuvo-app-shell="1"] > [data-fuuvo-app-workspace="1"] {
        grid-column: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
    }

    html body nav[data-fuuvo-workspace-rail="1"] {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        z-index: 1300 !important;
        display: flex !important;
        width: var(--fuuvo-workspace-rail-width) !important;
        min-width: var(--fuuvo-workspace-rail-width) !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        margin: 0 !important;
        padding: 12px 4px max(12px, env(safe-area-inset-bottom)) !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        overflow: visible !important;
        border: 0 !important;
        border-right: 1px solid #e4e8ee !important;
        border-radius: 0 !important;
        background: var(--fuuvo-workspace-rail-bg) !important;
        color: #45474d !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    html body nav[data-fuuvo-workspace-rail="1"] :is(.home-workspace-rail-stack, .home-workspace-rail-footer) {
        display: flex !important;
        width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 7px !important;
    }

    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-logo {
        display: inline-flex !important;
        width: 56px !important;
        height: 36px !important;
        margin: 0 0 4px !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 9px !important;
        color: #17181b !important;
        text-decoration: none !important;
        transition: background-color .16s ease, color .16s ease !important;
    }

    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-logo:hover,
    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-logo:focus-visible {
        background: #e9e9eb !important;
        outline: none !important;
    }

    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-logo svg {
        display: block !important;
        width: 27px !important;
        height: 27px !important;
    }

    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-logo .home-rail-logo-wordmark {
        display: block !important;
        width: 50px !important;
        height: auto !important;
        max-height: 25px !important;
        object-fit: contain !important;
        background: transparent !important;
    }

    /* Feature pages share the rail markup with the home page. The generic
     * brand-motion mask is intended for legacy wordmarks and otherwise hides
     * the current Chinese FUUVO artwork on those pages. Keep the shared rail
     * on the same static/hover image layers everywhere. */
    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-logo.is-chinese::before,
    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-logo.is-chinese::after {
        display: none !important;
        content: none !important;
        opacity: 0 !important;
    }

    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-logo.is-chinese > .home-rail-logo-wordmark-static {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-logo.is-chinese > .home-rail-logo-wordmark-hover {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-logo.is-chinese.is-fuuvo-video-playing > .home-rail-logo-wordmark-static {
        visibility: hidden !important;
        opacity: 0 !important;
    }

    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-logo.is-chinese.is-fuuvo-video-playing > .home-rail-logo-wordmark-hover {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-action {
        position: relative !important;
        display: flex !important;
        width: 56px !important;
        min-width: 56px !important;
        min-height: 60px !important;
        margin: 0 !important;
        padding: 4px 2px 3px !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        overflow: hidden !important;
        border: 0 !important;
        border-radius: 8px !important;
        background: transparent !important;
        color: #525866 !important;
        font-family: inherit !important;
        font-size: 11.5px !important;
        font-weight: 600 !important;
        line-height: 1.15 !important;
        letter-spacing: 0 !important;
        text-align: center !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        box-shadow: none !important;
        cursor: pointer !important;
        transform: none !important;
        transition: background-color .14s ease, color .14s ease, box-shadow .14s ease !important;
    }

    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-action:hover,
    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-action:focus-visible {
        background: #edf0f4 !important;
        color: #20242c !important;
        outline: none !important;
    }

    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-action.is-expanded,
    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-action.is-active {
        background: #e8f1ff !important;
        color: #1265d6 !important;
        box-shadow: inset 3px 0 0 #2379e8 !important;
    }

    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-action:focus-visible {
        box-shadow: inset 0 0 0 2px #6b7280 !important;
    }

    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-action-icon {
        display: inline-flex !important;
        width: 36px !important;
        height: 34px !important;
        flex: 0 0 34px !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        background: transparent !important;
    }

    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-action-icon :is(svg, .fuuvo-linear-svg) {
        display: block !important;
        width: 23px !important;
        height: 23px !important;
    }

    html body [data-fuuvo-app-shell="1"] > .home-drawer-backdrop {
        position: fixed !important;
        inset: 0 !important;
        z-index: 1270 !important;
        display: block !important;
        visibility: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: rgba(20, 21, 24, .12) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity .18s ease, visibility .18s ease !important;
    }

    html body.home-drawer-pinned [data-fuuvo-app-shell="1"] > .home-drawer-backdrop {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    html body [data-fuuvo-app-shell="1"] > :is(.home-tool-drawer, aside[data-fuuvo-shared-sidebar="1"]) {
        position: fixed !important;
        top: 12px !important;
        bottom: 12px !important;
        left: calc(var(--fuuvo-workspace-rail-width) + 10px) !important;
        z-index: 1290 !important;
        width: min(var(--fuuvo-workspace-drawer-width), calc(100vw - var(--fuuvo-workspace-rail-width) - 28px)) !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        border: 1px solid #dfe4eb !important;
        border-radius: 8px !important;
        background: var(--fuuvo-workspace-drawer-bg) !important;
        color: #24262a !important;
        box-shadow: 0 18px 48px rgba(20, 28, 42, .16) !important;
        opacity: 0 !important;
        transform: translateX(-9px) scale(.99) !important;
        transform-origin: left center !important;
        pointer-events: none !important;
        transition: opacity .17s ease, transform .17s ease, visibility .17s ease !important;
    }

    html body [data-fuuvo-app-shell="1"] > .home-tool-drawer {
        display: grid !important;
        padding: 0 !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
    }

    html body [data-fuuvo-app-shell="1"] > aside[data-fuuvo-shared-sidebar="1"] {
        display: grid !important;
        width: 336px !important;
        min-width: 336px !important;
        padding: 14px 12px 12px !important;
        grid-template-rows: minmax(0, 1fr) auto !important;
        gap: 6px !important;
    }

    html body.home-tool-drawer-open [data-fuuvo-app-shell="1"] > .home-tool-drawer:not(.home-new-drawer),
    html body.home-new-drawer-open [data-fuuvo-app-shell="1"] > .home-new-drawer,
    html body.home-history-drawer-open [data-fuuvo-app-shell="1"] > aside[data-fuuvo-shared-sidebar="1"] {
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateX(0) scale(1) !important;
        pointer-events: auto !important;
    }

    html body [data-fuuvo-app-shell="1"] > aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-area {
        min-height: 56px !important;
        padding-top: 7px !important;
    }

    html body .home-tool-drawer-header {
        display: flex !important;
        min-height: 68px !important;
        padding: 14px 16px 11px !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 16px !important;
        border-bottom: 1px solid #dedee1 !important;
    }

    html body .home-tool-drawer-header > div {
        display: grid !important;
        min-width: 0 !important;
        gap: 4px !important;
    }

    html body .home-tool-drawer-header strong {
        font-size: 16px !important;
        font-weight: 680 !important;
        line-height: 1.3 !important;
    }

    html body .home-tool-drawer-header span {
        color: #767980 !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    html body .home-tool-drawer-close {
        display: inline-flex !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        border: 0 !important;
        border-radius: 8px !important;
        background: transparent !important;
        color: #666970 !important;
        cursor: pointer !important;
    }

    html body .home-tool-drawer-close:hover,
    html body .home-tool-drawer-close:focus-visible {
        background: #e2e2e4 !important;
        color: #18191c !important;
        outline: none !important;
    }

    html body .home-tool-drawer-close svg {
        width: 19px !important;
        height: 19px !important;
    }

    html body .home-tool-drawer-scroll {
        display: grid !important;
        padding: 7px 10px 14px !important;
        align-content: start !important;
        gap: 7px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        scrollbar-width: thin !important;
        scrollbar-color: #c8c9cc transparent !important;
    }

    html body .home-tool-group {
        display: grid !important;
        padding: 9px 5px 11px !important;
        gap: 8px !important;
        border-bottom: 1px solid #dfdfe2 !important;
    }

    html body .home-tool-group:last-child {
        border-bottom: 0 !important;
    }

    html body .home-tool-group h2 {
        margin: 0 !important;
        padding: 0 7px !important;
        color: #3d3f44 !important;
        font-size: 13px !important;
        font-weight: 670 !important;
        line-height: 1.4 !important;
    }

    html body .home-tool-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 4px !important;
    }

    html body .home-tool-drawer-item {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 78px !important;
        min-height: 78px !important;
        margin: 0 !important;
        padding: 8px 4px !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        overflow: hidden !important;
        border: 1px solid transparent !important;
        border-radius: 8px !important;
        background: transparent !important;
        color: #55585f !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;
        text-align: center !important;
        text-decoration: none !important;
        white-space: normal !important;
        box-shadow: none !important;
        cursor: pointer !important;
        transform: none !important;
    }

    html body .home-tool-drawer-item:hover,
    html body .home-tool-drawer-item:focus-visible,
    html body .home-tool-drawer-item.active {
        border-color: #d9dadd !important;
        background: #e7e7e9 !important;
        color: #1c1e22 !important;
        outline: none !important;
    }

    html body .home-tool-drawer-item .capability-icon {
        display: inline-flex !important;
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        flex: 0 0 34px !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: #386ecf !important;
    }

    html body .home-tool-group[data-home-tool-group="office"] .capability-icon {
        color: #23835e !important;
    }

    html body .home-tool-group[data-home-tool-group="creation"] .capability-icon {
        color: #9652b1 !important;
    }

    html body .home-tool-group[data-home-tool-group="utilities"] .capability-icon {
        color: #b45c20 !important;
    }

    html body .workspace-tool-drawer .capability-icon svg {
        display: block !important;
        width: 27px !important;
        height: 27px !important;
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 1.5 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
    }

    html body [data-fuuvo-app-shell="1"] > .desktop-sidebar-resizer {
        display: none !important;
    }
}

@media (max-width: 920px) {
    html body nav[data-fuuvo-workspace-rail="1"],
    html body [data-fuuvo-app-shell="1"] > .home-tool-drawer,
    html body [data-fuuvo-app-shell="1"] > .home-drawer-backdrop {
        display: none !important;
    }

    html body [data-fuuvo-app-shell="1"],
    html body [data-fuuvo-app-shell="1"].sidebar-collapsed,
    html body.sidebar-collapsed [data-fuuvo-app-shell="1"] {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body [data-fuuvo-app-shell="1"] > [data-fuuvo-app-workspace="1"] {
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
    }
}

/* The capability accordion belongs to the mobile sidebar. On desktop the
 * homepage's shared More drawer contains search and recent conversations;
 * exposing the mobile-only groups here makes feature pages render a narrow
 * stack of unstyled toggles instead of the common sidebar surface. */
@media (min-width: 921px) {
    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-groups {
        display: none !important;
    }
}

:is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) {
    --fuuvo-workspace-rail-bg: #151719;
    --fuuvo-workspace-drawer-bg: #1c1e21;
}

@media (min-width: 921px) {
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) nav[data-fuuvo-workspace-rail="1"] {
        border-right-color: #292c30 !important;
        color: #d1d4d8 !important;
    }

    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) nav[data-fuuvo-workspace-rail="1"] .home-rail-logo {
        color: #e7e9ec !important;
    }

    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) nav[data-fuuvo-workspace-rail="1"] .home-rail-logo:hover,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) nav[data-fuuvo-workspace-rail="1"] .home-rail-logo:focus-visible,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) nav[data-fuuvo-workspace-rail="1"] .home-rail-action:hover,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) nav[data-fuuvo-workspace-rail="1"] .home-rail-action:focus-visible {
        background: #292d34 !important;
        color: #f1f3f5 !important;
    }

    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) nav[data-fuuvo-workspace-rail="1"] .home-rail-action.is-expanded,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) nav[data-fuuvo-workspace-rail="1"] .home-rail-action.is-active {
        background: #223552 !important;
        color: #91c1ff !important;
        box-shadow: inset 3px 0 0 #5ca3ff !important;
    }

    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) nav[data-fuuvo-workspace-rail="1"] .home-rail-action {
        color: #c8cbd0 !important;
    }

    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) [data-fuuvo-app-shell="1"] > :is(.home-tool-drawer, aside[data-fuuvo-shared-sidebar="1"]) {
        border-color: #303338 !important;
        background: var(--fuuvo-workspace-drawer-bg) !important;
        color: #eceef1 !important;
        box-shadow: 0 22px 52px rgba(0, 0, 0, .38) !important;
    }

    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) :is(.home-tool-drawer-header, .home-tool-group) {
        border-color: #303338 !important;
    }

    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) :is(.home-tool-drawer-header span, .home-tool-group h2) {
        color: #adb1b8 !important;
    }

    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .home-tool-drawer-close,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .home-tool-drawer-item {
        color: #c7cbd1 !important;
    }

    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) :is(.home-tool-drawer-close, .home-tool-drawer-item):hover,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) :is(.home-tool-drawer-close, .home-tool-drawer-item):focus-visible,
    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) .home-tool-drawer-item.active {
        border-color: #3a3e44 !important;
        background: #2b2e32 !important;
        color: #f2f4f6 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    nav[data-fuuvo-workspace-rail="1"] *,
    [data-fuuvo-app-shell="1"] > :is(.home-tool-drawer, aside[data-fuuvo-shared-sidebar="1"], .home-drawer-backdrop) {
        transition: none !important;
    }
}

/* The public rail uses the same static/hover logo layers on every page and
 * in both languages. Keep the two images in one fixed slot so the feature
 * pages cannot show the GIF beside the static wordmark on first paint. */
@media (min-width: 921px) {
    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-logo {
        position: relative !important;
        isolation: isolate !important;
    }

    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-logo
        :is(.home-rail-logo-wordmark-static, .home-rail-logo-wordmark-hover) {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        display: block !important;
        width: 50px !important;
        height: 27px !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center !important;
        transform: translate(-50%, -50%) !important;
        pointer-events: none !important;
        transition: opacity 120ms ease, visibility 120ms ease !important;
    }

    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-logo
        .home-rail-logo-wordmark-static {
        visibility: visible !important;
        opacity: 1 !important;
    }

    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-logo
        .home-rail-logo-wordmark-hover {
        visibility: hidden !important;
        opacity: 0 !important;
    }

    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-logo.is-fuuvo-video-playing
        .home-rail-logo-wordmark-static {
        visibility: hidden !important;
        opacity: 0 !important;
    }

    html body nav[data-fuuvo-workspace-rail="1"] .home-rail-logo.is-fuuvo-video-playing
        .home-rail-logo-wordmark-hover {
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Food is a wide workspace. Center it inside the area to the right of the
 * shared rail while retaining a readable cap on very large monitors. */
@media (min-width: 921px) {
    html body .food-app .food-main {
        width: min(1480px, calc(100% - 72px)) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Fortune uses the same shared rail as food and the other feature pages.
     * Its legacy topbar toggle duplicates that rail on desktop, while the
     * mobile toggle remains available through the shared topbar. */
    html body .fortune-app header[data-fuuvo-shared-topbar="1"] [data-toggle-shared-sidebar] {
        display: none !important;
    }

    html body .fortune-app .fortune-main {
        width: min(1480px, calc(100% - 72px)) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Keep each conversation overflow control in its own stable grid track. The
 * control is transparent at rest so it cannot look like a second selected row
 * in the dark mobile drawer. */
html body aside[data-fuuvo-shared-sidebar="1"] .conversation-actions {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    display: inline-flex !important;
    flex: 0 0 28px !important;
    align-items: center !important;
    justify-content: center !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .conversation-more-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .conversation-more-btn:focus-visible,
html body aside[data-fuuvo-shared-sidebar="1"] .conversation-item.menu-open .conversation-more-btn {
    background: rgba(96, 165, 250, .14) !important;
    box-shadow: none !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .conversation-more-btn:focus-visible {
    outline: 2px solid rgba(96, 165, 250, .56) !important;
    outline-offset: -2px;
}

@media (hover: hover) {
    html body aside[data-fuuvo-shared-sidebar="1"] .conversation-more-btn:hover {
        background: rgba(96, 165, 250, .14) !important;
        box-shadow: none !important;
    }
}

@media (max-width: 920px) and (hover: none) {
    html body aside[data-fuuvo-shared-sidebar="1"] .conversation-more-btn:active {
        background: rgba(96, 165, 250, .14) !important;
        box-shadow: none !important;
    }
}

@media (max-width: 920px) {
    html body aside[data-fuuvo-shared-sidebar="1"] .conversation-list > .conversation-empty-state {
        width: 100% !important;
        height: auto !important;
        min-height: 44px !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 8px 10px !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        font-size: 13px !important;
        line-height: 1.65 !important;
        text-align: left !important;
        white-space: normal !important;
    }

}

.shell-topbar-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0d72f5;
    font-size: 15px;
    font-weight: 600;
}

.shell-topbar-back svg,
.shell-topbar-back > img {
    width: 20px;
    height: 20px;
}

.creation-app .sidebar-shell {
    display: grid;
    flex: 0 0 auto;
}

.creation-app .sidebar-nav-btn {
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.creation-app .sidebar-nav-btn .rail-icon {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.creation-app .sidebar-nav-btn .rail-glyph {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}
.sidebar-nav-btn picture.rail-glyph > img { width: 100%; height: 100%; }

.creation-app .sidebar-nav-btn .rail-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Canonical public sidebar appearance. Keep this after page-specific rules. */
@media (min-width: 921px) {
    aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand {
        min-height: 70px !important;
        margin-bottom: 8px !important;
        padding: 0 10px !important;
        display: grid !important;
        align-content: start !important;
        gap: 6px !important;
        text-decoration: none !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-logo {
        width: 118px !important;
        height: 32px !important;
        min-width: 118px !important;
        flex: 0 0 118px !important;
        overflow: visible !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-logo img {
        width: 118px !important;
        height: 32px !important;
        max-width: 118px !important;
        max-height: 32px !important;
        display: block !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        object-fit: contain !important;
        object-position: left center !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-copy {
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
        padding-top: 4px !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-name-image {
        width: 52px !important;
        height: auto !important;
        max-width: 52px !important;
        display: block !important;
        flex: 0 0 auto !important;
        border: 0 !important;
        background: transparent !important;
        object-fit: contain !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-chinese {
        min-height: 54px !important;
        gap: 2px !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-chinese .sidebar-brand-logo {
        width: 68px !important;
        height: 29px !important;
        min-width: 68px !important;
        flex-basis: 68px !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-chinese .sidebar-brand-logo img.sidebar-brand-zh-logo {
        width: 68px !important;
        height: auto !important;
        max-width: 68px !important;
        max-height: 29px !important;
        background: transparent !important;
        object-fit: contain !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-chinese .sidebar-brand-copy {
        display: none !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-copy strong,
    aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-copy .sidebar-brand-suffix {
        display: inline !important;
        overflow: visible !important;
        color: #0a70e5 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-copy strong {
        font-size: 16px !important;
        font-weight: 700 !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-copy .sidebar-brand-suffix {
        color: #0d72f5 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav {
        gap: 2px !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav-btn {
        min-height: 42px !important;
        padding: 0 14px !important;
        border-radius: 10px !important;
        font-size: 16px !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav-btn .rail-icon {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav-btn .rail-glyph {
        width: 22px !important;
        height: 22px !important;
        flex: 0 0 22px !important;
        display: block !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] #sidebar-new-chat,
    aside[data-fuuvo-shared-sidebar="1"] .portal-new-chat {
        min-height: 54px !important;
        justify-content: center !important;
        border: 1px solid #126fff !important;
        border-radius: 10px !important;
        background: #fff !important;
        color: #0b6ff0 !important;
        box-shadow: none !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] #sidebar-new-chat .rail-icon,
    aside[data-fuuvo-shared-sidebar="1"] .portal-new-chat .rail-icon {
        width: auto !important;
        justify-content: center !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] #sidebar-new-chat .rail-icon::before {
        content: none !important;
        display: none !important;
    }
}

.portal-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    transition: grid-template-columns .2s ease;
}

.portal-shell.sidebar-collapsed,
.creation-app.sidebar-collapsed,
.feature-shell.sidebar-collapsed {
    grid-template-columns: 0 minmax(0, 1fr);
}

.portal-shell.sidebar-collapsed > aside[data-fuuvo-shared-sidebar="1"],
.creation-app.sidebar-collapsed > aside[data-fuuvo-shared-sidebar="1"],
.feature-shell.sidebar-collapsed > aside[data-fuuvo-shared-sidebar="1"] {
    width: 0;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
    opacity: 0;
    overflow: hidden !important;
    pointer-events: none;
}

.portal-content {
    height: auto;
    min-height: 100vh;
    overflow: visible;
}

.portal-topbar {
    min-height: 86px;
    padding: 0 38px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 0;
}

.portal-sidebar-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #71809a;
    cursor: pointer;
}

.portal-sidebar-toggle:hover {
    background: #f4f8ff;
    color: #0d72f5;
}

.portal-sidebar-toggle svg,
.portal-sidebar-toggle img { width: 22px; height: 22px; display: block; }
.shell-topbar-left { display: flex; align-items: center; gap: 6px; }
.shell-history-back { min-width: 72px; min-height: 38px; padding: 0 12px 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 8px; background: transparent; color: #617391; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.shell-history-back:hover { background: #f4f8ff; color: #0d72f5; }
.shell-history-back svg { width: 20px; height: 20px; flex: 0 0 20px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.portal-back { display: none; }
.portal-subpage-back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-size: 15px; font-weight: 600; }
.portal-subpage-back svg,
.portal-subpage-back > img { width: 20px; height: 20px; }
.portal-topbar-title { color: #111827; font-size: 20px; font-weight: 700; }
.portal-top-safety-link { display: inline-flex; align-items: center; gap: 7px; color: #71809a; font-size: 15px; font-weight: 600; }
.portal-top-safety-link svg,
.portal-top-safety-link > img { width: 21px; height: 21px; }
.portal-topbar-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }

.portal-main {
    flex: none;
    height: auto;
    min-height: calc(100vh - 86px);
    overflow: visible;
}

@media (min-width: 921px) {
    .portal-shell { --sidebar: 370px; }

    .portal-sidebar {
        position: sticky;
        top: 0;
        width: var(--sidebar);
        align-self: start;
        height: 100vh;
        padding: 30px 22px 18px;
        background: #fff;
        border-right: 1px solid #edf1f7;
    }

    .portal-sidebar .sidebar-brand {
        display: grid;
        gap: 2px;
        align-items: start;
        padding: 0 10px;
    }

    .portal-sidebar .sidebar-brand img {
        display: block;
        width: 160px;
        height: auto;
        max-height: 46px;
        border: 0;
        border-radius: 0;
        background: transparent;
        object-fit: contain;
        object-position: left center;
    }

    .portal-sidebar .sidebar-brand-wordmark {
        display: block;
        color: #0b73e8;
        font: 800 43px/.92 Arial, sans-serif;
        letter-spacing: -2px;
    }

    .portal-sidebar .sidebar-brand-wordmark span {
        display: inline-block;
        margin-left: 4px;
        color: #0688ea;
        font-size: 22px;
        letter-spacing: -4px;
        transform: translateY(-6px);
    }

    .portal-sidebar .sidebar-brand-copy {
        display: flex;
        align-items: baseline;
        gap: 2px;
        padding-top: 3px;
    }

    .portal-sidebar .sidebar-brand-copy strong,
    .portal-sidebar .sidebar-brand-copy .sidebar-brand-suffix {
        display: inline;
        overflow: visible;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
    }

    .portal-sidebar .sidebar-brand-copy strong { color: #0a70e5; }
    .portal-sidebar .sidebar-brand-copy .sidebar-brand-suffix { color: #0d72f5; font-size: 13px; font-weight: 600; }

    .portal-sidebar .portal-search {
        min-height: 40px;
        margin-top: 22px;
        padding: 0 10px;
        border-radius: 8px;
        box-shadow: none;
    }

    .portal-sidebar .portal-new-chat {
        width: calc(100% + 8px);
        min-height: 54px;
        margin: 22px 0 0 -4px;
        justify-content: center;
        border: 1px solid #126fff;
        border-radius: 10px;
        color: #0b6ff0;
        background: #fff;
        font-size: 18px;
    }

    .portal-sidebar .portal-new-chat .plus { font-size: 30px; }

    .portal-sidebar .portal-nav { gap: 8px; margin-top: 12px; }
    .portal-sidebar .portal-nav a {
        min-height: 48px;
        padding: 0 14px;
        border-radius: 10px;
        color: #182b4c;
        font-size: 16px;
    }
    .portal-sidebar .portal-nav a:hover { background: #f4f8ff; color: #0b6ff0; }
    .portal-sidebar .portal-nav svg { width: 22px; height: 22px; }

    .portal-sidebar .portal-recent {
        margin-top: 18px;
        padding-top: 14px;
        border-top-color: #edf1f7;
    }
    .portal-sidebar .portal-recent h2 { padding: 0 10px; color: #7b8ba5; font-size: 14px; }
    .portal-sidebar .portal-recent-list a,
    .portal-sidebar .portal-recent-empty {
        min-height: 48px;
        padding: 8px 10px;
        border-radius: 9px;
        color: #273447;
        font-size: 13px;
    }
    .portal-sidebar .portal-recent-item {
        display: flex;
        align-items: center;
        gap: 4px;
        border-radius: 9px;
    }
    .portal-sidebar .portal-recent-link {
        min-width: 0;
        flex: 1 1 auto;
    }
    .portal-sidebar .portal-recent-delete {
        width: 28px;
        height: 28px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: #8b98ab;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 28px;
        opacity: 0;
        pointer-events: none;
        cursor: pointer;
    }
    .portal-sidebar .portal-recent-delete:hover {
        background: #fff1f1;
        color: #dc2626;
    }
    .portal-sidebar .portal-recent-delete svg {
        width: 16px;
        height: 16px;
    }
    .portal-sidebar .portal-recent-item:hover .portal-recent-delete,
    .portal-sidebar .portal-recent-delete:focus-visible {
        opacity: 1;
        pointer-events: auto;
    }
    .portal-sidebar .portal-recent-list a:hover,
    .portal-sidebar .portal-recent-item:hover { background: #f6f9ff; }
    .portal-sidebar .portal-recent-icon { width: 22px; height: 22px; }
    .portal-sidebar .portal-recent-icon svg { width: 20px; height: 20px; }
    .portal-sidebar .portal-recent-time { min-width: 42px; color: #7d899e; font-size: 12px; }

    .portal-sidebar .portal-safety-link { margin-top: 18px; padding: 0 10px; color: #71809a; }
.portal-sidebar .portal-account { min-height: 68px; margin-top: 8px; }
.portal-sidebar .portal-account-chevron { display: none; }

.portal-toc {
    position: sticky;
    top: 22px;
}

.portal-toc h2 { display: none; }

.safe-use-article { min-width: 0; }
.safe-use-risk-list { border-color: #f0c36d; background: #fffaf0; }
.safe-use-risk-list .portal-risk-item { min-height: 79px; padding: 0 25px; gap: 22px; color: #172033; font-size: 17px; font-weight: 600; }
.safe-use-risk-list .portal-risk-item + .portal-risk-item { border-top-color: #f0d9a9; }
.safe-use-risk-list .portal-risk-item svg { width: 30px; height: 30px; flex: 0 0 30px; color: #df8400; }
.safe-use-section-title { margin: 28px 0 14px; color: var(--ink); font-size: 22px; }
.safe-use-guidance { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 20px 0; border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; }
.safe-use-guidance .portal-action-card { min-height: 132px; padding: 8px 24px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; transform: none; text-align: left; align-items: flex-start; justify-content: flex-start; }
.safe-use-guidance .portal-action-card:last-child { border-right: 0; }
.safe-use-guidance .portal-icon-circle { width: 44px; height: 44px; flex-basis: 44px; }
.safe-use-guidance .portal-action-card strong { margin-top: 12px; color: var(--brand); font-size: 16px; }
.safe-use-guidance .portal-action-card span:not(.portal-icon-circle) { margin-top: 7px; color: #53627a; font-size: 13px; line-height: 1.65; }
.safe-use-actions { margin-top: 28px; }

.capabilities-article { min-width: 0; }
.capabilities-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.capability-card { min-height: 214px; padding: 25px 18px 22px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; border: 1px solid #d7e4f5; border-radius: 12px; background: #fff; color: var(--text); text-align: center; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.capability-card:hover { border-color: #8ab9fb; box-shadow: 0 10px 24px rgba(28,85,160,.08); transform: translateY(-1px); }
.capability-card-icon { width: 76px; height: 76px; display: inline-flex; align-items: center; justify-content: center; color: var(--brand); }
.capability-card-icon svg { width: 100%; height: 100%; display: block; }
.capability-card strong { margin-top: 10px; color: #10294e; font-size: 22px; line-height: 1.25; }
.capability-card > span:last-child { margin-top: 7px; color: #53627a; font-size: 15px; line-height: 1.5; }
.capabilities-note { margin-top: 26px; padding-top: 17px; border-top: 1px solid var(--line); color: #53627a; font-size: 15px; line-height: 1.6; }
.capabilities-actions { margin-top: 22px; }

.privacy-data-article { min-width: 0; }
.privacy-data-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 290px;
    padding: 34px 22px;
    border: 1px solid #bdd7ff;
    border-radius: 12px;
    background: linear-gradient(112deg, #f3f8ff 0%, #fbfdff 100%);
}
.privacy-data-item {
    min-width: 0;
    padding: 0 24px;
    border-right: 1px solid #c8dcfb;
}
.privacy-data-item:first-child { padding-left: 22px; }
.privacy-data-item:last-child { padding-right: 12px; border-right: 0; }
.privacy-data-icon {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
}
.privacy-data-icon svg { width: 100%; height: 100%; display: block; }
.privacy-data-item h3 {
    margin: 22px 0 10px;
    color: var(--ink);
    font-size: 19px;
    line-height: 1.3;
}
.privacy-data-item p {
    margin: 0;
    color: #53627a;
    font-size: 15px;
    line-height: 1.85;
}
.privacy-data-note {
    margin: 30px 0 0;
    color: #53627a;
    font-size: 15px;
    line-height: 1.75;
}
.privacy-data-actions { margin-top: 26px; }

.report-overview-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; margin-top: 20px; }
.report-overview-article { min-width: 0; }
.report-contact { min-height: 31px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 12px; color: #53627a; font-size: 14px; }
.report-contact svg { width: 22px; height: 22px; color: #53627a; }
.report-contact a { color: var(--brand); }
.report-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.report-feature-card { min-height: 300px; padding: 28px 28px 24px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; border: 1px solid #d3e1f3; border-radius: 13px; background: #fff; text-align: center; }
.report-feature-icon { width: 84px; height: 84px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #edf4ff; color: var(--brand); }
.report-feature-icon svg { width: 56px; height: 56px; display: block; }
.report-feature-card h2 { margin: 22px 0 10px; color: var(--ink); font-size: 22px; line-height: 1.3; }
.report-feature-card p { max-width: 330px; margin: 0; color: #53627a; font-size: 15px; line-height: 1.75; }
.report-feature-card-action .portal-button { min-width: 190px; margin-top: auto; }
.report-process { margin-top: 22px; padding: 24px 28px 19px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 18px; border: 1px solid #d3e1f3; border-radius: 13px; background: #fff; }
.report-process-step { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--ink); font-size: 16px; }
.report-process-icon { width: 58px; height: 58px; flex: 0 0 58px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #edf4ff; color: var(--brand); }
.report-process-icon svg { width: 34px; height: 34px; display: block; }
.report-process-arrow { color: #10294e; font-size: 31px; font-weight: 300; }
.report-process-caption { grid-column: 1 / -1; margin: 0; color: #53627a; font-size: 14px; line-height: 1.5; text-align: center; }
.report-overview-actions { justify-content: center; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }

.account-data-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; margin-top: 46px; }
.account-data-article { min-width: 0; }
.account-data-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.account-data-number { width: 56px; height: 56px; flex: 0 0 56px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #9ec5ff; border-radius: 50%; background: #edf5ff; color: var(--brand); font-size: 25px; }
.account-data-heading h1 { margin: 0; color: var(--ink); font-size: 31px; line-height: 1.2; }
.account-data-heading p { margin: 8px 0 0; color: #53627a; font-size: 15px; line-height: 1.6; }
.account-controls-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.account-control-card { min-height: 350px; padding: 34px 22px 26px; display: flex; flex-direction: column; align-items: center; border: 1px solid #d3e1f3; border-radius: 13px; background: #fff; text-align: center; }
.account-control-icon { width: 84px; height: 84px; display: inline-flex; align-items: center; justify-content: center; color: var(--brand); }
.account-control-icon svg { width: 100%; height: 100%; display: block; }
.account-control-card h2 { margin: 23px 0 9px; color: var(--ink); font-size: 19px; line-height: 1.35; }
.account-control-card p { margin: 0; color: #53627a; font-size: 14px; line-height: 1.65; }
.account-email-link { margin-top: 11px; color: var(--brand); font-size: 15px; }
.account-control-link { margin-top: auto; padding-top: 20px; color: var(--brand); font-size: 15px; font-weight: 700; }
.account-policy-links { min-height: 57px; display: flex; align-items: center; justify-content: center; gap: 22px; border-bottom: 1px solid var(--line); color: var(--brand); font-size: 15px; }
.account-policy-links a { color: var(--brand); }
.account-policy-links span { color: var(--ink); }
.account-contact-box { margin-top: 20px; padding: 20px 24px 16px; border: 1px solid #d3e1f3; border-radius: 13px; background: #fff; }
.account-contact-box h2 { margin: 0 0 18px; color: var(--ink); font-size: 18px; }
.account-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); align-items: center; gap: 28px; }
.account-contact-item { display: flex; align-items: center; gap: 18px; }
.account-contact-icon { width: 52px; height: 52px; flex: 0 0 52px; display: inline-flex; align-items: center; justify-content: center; color: var(--brand); }
.account-contact-icon svg { width: 100%; height: 100%; display: block; }
.account-contact-item strong { display: block; color: var(--ink); font-size: 15px; }
.account-contact-item a { display: block; margin-top: 7px; color: var(--brand); font-size: 15px; }
.account-contact-divider { width: 1px; height: 59px; background: #d7e3f4; }
.account-contact-box > p { margin: 18px 0 0; color: #53627a; font-size: 14px; line-height: 1.6; }
}

@media (max-width: 920px) {
    .capabilities-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .capability-card { min-height: 180px; }
    .capability-card-icon { width: 64px; height: 64px; }
    .capability-card strong { font-size: 19px; }
    .capability-card > span:last-child, .capabilities-note { font-size: 13px; }
    .privacy-data-overview { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; padding: 10px 16px; }
    .privacy-data-item, .privacy-data-item:first-child, .privacy-data-item:last-child { padding: 22px 4px; border-right: 0; border-bottom: 1px solid #c8dcfb; }
    .privacy-data-item:last-child { border-bottom: 0; }
    .privacy-data-icon { width: 58px; height: 58px; display: inline-flex; color: var(--brand); }
    .privacy-data-icon svg { width: 100%; height: 100%; display: block; }
    .privacy-data-item h3 { margin-top: 13px; font-size: 18px; }
    .privacy-data-item p, .privacy-data-note { font-size: 14px; }
    .portal-subpage-back { font-size: 14px; }
    .report-overview-layout { display: block; margin-top: 18px; }
    .report-contact { min-height: 31px; display: flex; align-items: center; justify-content: flex-start; margin-bottom: 12px; font-size: 13px; }
    .report-contact svg { width: 22px; height: 22px; flex: 0 0 22px; display: block; }
    .report-feature-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .report-feature-card { min-height: 250px; padding: 23px 18px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
    .report-feature-icon { width: 70px; height: 70px; display: inline-flex; align-items: center; justify-content: center; }
    .report-feature-icon svg { width: 48px; height: 48px; display: block; }
    .report-feature-card h2 { font-size: 20px; }
    .report-feature-card p { max-width: 330px; margin: 0; font-size: 14px; }
    .report-feature-card-action .portal-button { margin-top: auto; }
    .report-process { margin-top: 14px; padding: 20px 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .report-process-arrow { transform: rotate(90deg); font-size: 24px; }
    .report-process-step { display: flex; align-items: center; justify-content: flex-start; padding-left: 18%; }
    .report-process-icon { width: 50px; height: 50px; flex-basis: 50px; display: inline-flex; align-items: center; justify-content: center; }
    .report-process-icon svg { width: 30px; height: 30px; display: block; }
    .report-process-caption { grid-column: auto; }
    .account-data-layout { display: block; margin-top: 18px; }
    .account-data-heading { gap: 11px; margin-bottom: 18px; }
    .account-data-number { width: 45px; height: 45px; flex-basis: 45px; font-size: 20px; }
    .account-data-heading h1 { font-size: 24px; }
    .account-data-heading p { margin-top: 5px; font-size: 13px; }
    .account-controls-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .account-control-card { min-height: 270px; padding: 25px 18px 21px; }
    .account-control-icon { width: 70px; height: 70px; flex: 0 0 70px; display: inline-flex; align-items: center; justify-content: center; color: var(--brand); }
    .account-control-icon svg { width: 100%; height: 100%; display: block; }
    .account-control-card h2 { margin-top: 15px; font-size: 18px; }
    .account-control-card p { font-size: 13px; }
    .account-policy-links { min-height: 0; padding: 15px 0; flex-wrap: wrap; gap: 7px 12px; font-size: 13px; }
    .account-contact-box { padding: 17px 16px 15px; }
    .account-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
    .account-contact-divider { width: 100%; height: 1px; }
    .account-contact-item { gap: 13px; }
    .account-contact-icon { width: 44px; height: 44px; flex-basis: 44px; }
    .account-contact-item strong, .account-contact-item a { font-size: 13px; }
    .portal-topbar { min-height: 64px; padding: 0 16px; grid-template-columns: auto 1fr auto; }
    .portal-topbar-title { justify-self: center; max-width: 45vw; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
    .portal-topbar-actions { gap: 7px; }
    .portal-top-safety-link span { display: none; }
    .portal-top-safety-link svg { width: 19px; height: 19px; }
}

/* Canonical conversation search drawer used by the home page and every public
   feature/safety page. Keep this in the shared shell stylesheet only. */
.fuuvo-shell-search {
    position: fixed;
    inset: 0;
    z-index: 4100;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    background: rgba(15, 23, 42, .16);
    backdrop-filter: blur(6px);
}
.fuuvo-shell-search.hidden { display: none !important; }
/* The detail composer can use a higher local layer for its model picker.
   Keep the conversation search modal above the whole chat workspace while it
   is open, including the bottom composer. */
@media (min-width: 921px) {
    html body.fuuvo-shell-search-open .fuuvo-shell-search {
        z-index: 10000 !important;
    }
}
.fuuvo-shell-search-dialog {
    width: min(368px, calc(100vw - 12px));
    height: 100vh;
    height: 100dvh;
    max-height: none;
    overflow: hidden;
    border: 0;
    border-right: 1px solid rgba(15, 23, 42, .06);
    border-radius: 0 26px 26px 0;
    background: rgba(255, 255, 255, .98);
    box-shadow: 20px 0 48px rgba(15, 23, 42, .12);
}
.fuuvo-shell-search-head {
    min-height: 72px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(15, 23, 42, .05);
}
.fuuvo-shell-search-input-wrap {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 46px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    background: #f8fafc;
    color: #6b778c;
}
.fuuvo-shell-search-input-wrap svg,
.fuuvo-shell-search-input-wrap > img { width: 20px; height: 20px; flex: 0 0 20px; }
.fuuvo-shell-search-input-wrap input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #172033;
    font: inherit;
    font-size: 15px;
}
.fuuvo-shell-search-close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #6b778c;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.fuuvo-shell-search-close:hover { background: #f1f4f8; color: #172033; }
.fuuvo-shell-search-body {
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    max-height: none;
    padding: 12px;
    overflow-y: auto;
}
.fuuvo-shell-search-section-title {
    padding: 7px 8px;
    color: #8a94a6;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
}
.fuuvo-shell-search-create,
.fuuvo-shell-search-results a {
    width: 100%;
    min-height: 56px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    border: 0;
    background: transparent;
    color: #172033;
    font: inherit;
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
}
.fuuvo-shell-search-create:hover,
.fuuvo-shell-search-results a:hover { background: #f4f7fb; }
.fuuvo-shell-search-create-icon,
.fuuvo-shell-search-result-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #eaf3ff;
    color: #1672e8;
    font-size: 17px;
}
.fuuvo-shell-search-result-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}
.fuuvo-shell-search-create-icon img { width: 22px; height: 22px; }
.fuuvo-shell-search-create > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.fuuvo-shell-search-create strong,
.fuuvo-shell-search-results strong { overflow: hidden; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.fuuvo-shell-search-create small { color: #8490a4; font-size: 12px; }
.fuuvo-shell-search-create b { margin-left: auto; color: #9aa4b5; font-size: 14px; }
.fuuvo-shell-search-results { display: grid; gap: 2px; }
.fuuvo-shell-search-results a { min-height: 50px; }
.fuuvo-shell-search-results p { margin: 10px 8px 18px; color: #8a94a6; font-size: 13px; }

@media (min-width: 921px) {
    /* High-specificity shell guard: page-specific safety/detail CSS must never
       be allowed to resize the shared home shell. */
    header[data-fuuvo-shared-topbar="1"] {
        width: 100% !important;
        height: 86px !important;
        min-height: 86px !important;
        max-height: 86px !important;
        padding: 12px 22px 8px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    header[data-fuuvo-shared-topbar="1"]:has(.shell-topbar-back) {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }
    header[data-fuuvo-shared-topbar="1"]:has(.shell-topbar-back) .shell-topbar-center {
        display: none !important;
    }
    header[data-fuuvo-shared-topbar="1"]:has(.shell-topbar-back) .shell-topbar-right {
        grid-column: 2 !important;
    }
    header[data-fuuvo-shared-topbar="1"] .shell-topbar-left {
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        align-self: center !important;
        flex-wrap: nowrap !important;
    }
    header[data-fuuvo-shared-topbar="1"] .shell-topbar-back,
    header[data-fuuvo-shared-topbar="1"] .shell-topbar-middle,
    header[data-fuuvo-shared-topbar="1"] .shell-topbar-suffix,
    header[data-fuuvo-shared-topbar="1"] .shell-topbar-separator {
        white-space: nowrap !important;
    }
}

@media (max-width: 920px) {
    .fuuvo-shell-search-dialog { width: 100%; height: 100dvh; border-right: 0; border-radius: 0; }
    .fuuvo-shell-search-head { min-height: 64px; padding: 9px 10px 9px 12px; }
    .fuuvo-shell-search-body { height: calc(100dvh - 64px); padding: 10px; }
}

@media (min-width: 921px) {
    .portal-shell:has(.ai-info-overview),
    .portal-shell:has(.capabilities-page),
    .portal-shell:has(.community-rules-page),
    .portal-shell:has(.portal-layout),
    .portal-shell:has(.report-overview-layout),
    .portal-shell:has(.account-data-layout) { height: 100vh; min-height: 100vh; overflow: hidden; }
    .portal-shell:has(.ai-info-overview) .portal-content,
    .portal-shell:has(.capabilities-page) .portal-content,
    .portal-shell:has(.community-rules-page) .portal-content,
    .portal-shell:has(.portal-layout) .portal-content,
    .portal-shell:has(.report-overview-layout) .portal-content,
    .portal-shell:has(.account-data-layout) .portal-content { height: 100vh; min-height: 0; overflow: hidden; }
    .portal-shell:has(.ai-info-overview) .portal-main,
    .portal-shell:has(.capabilities-page) .portal-main,
    .portal-shell:has(.community-rules-page) .portal-main,
    .portal-shell:has(.portal-layout) .portal-main,
    .portal-shell:has(.report-overview-layout) .portal-main,
    .portal-shell:has(.account-data-layout) .portal-main { flex: 1 1 auto; height: calc(100vh - 86px); min-height: 0; overflow-y: auto; overflow-x: hidden; }
}

@media (min-width: 921px) {
    .portal-shell:has(.capabilities-page) { height: 100vh; min-height: 100vh; overflow: hidden; }
    .portal-shell:has(.capabilities-page) .portal-content { height: 100vh; min-height: 0; overflow: hidden; }
    .portal-shell:has(.capabilities-page) .portal-main { flex: 1 1 auto; height: calc(100vh - 86px); min-height: 0; overflow-y: auto; overflow-x: hidden; }
}

.capabilities-framework { display: grid; grid-template-columns: 258px minmax(0, 1fr); gap: 42px; margin: 22px auto 0; align-items: start; }
.capabilities-toc { position: sticky; top: 20px; padding: 16px 9px 20px; border: 1px solid #d8e3f1; border-radius: 10px; background: #fff; }
.capabilities-toc a { min-height: 51px; padding: 0 15px; display: flex; align-items: center; gap: 14px; border-radius: 9px; color: #293957; font-size: 16px; line-height: 1.3; }
.capabilities-toc a:hover, .capabilities-toc a.active { background: #eff5ff; color: var(--brand); }
.capabilities-toc a span { width: 30px; flex: 0 0 30px; font-size: 17px; }
.capabilities-content { min-width: 0; }
.capabilities-content-heading { margin: 7px 0 34px; }
.capabilities-content-heading h1 { margin: 0; color: var(--ink); font-size: 43px; line-height: 1.18; }
.capabilities-content-heading p { margin: 17px 0 0; color: #53627a; font-size: 18px; line-height: 1.6; }
.capabilities-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.capabilities-card { min-height: 214px; padding: 25px 18px 21px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; border: 1px solid #d5e2f4; border-radius: 12px; background: #fff; color: var(--text); text-align: center; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.capabilities-card:hover { border-color: #8ab9fb; box-shadow: 0 10px 24px rgba(28,85,160,.08); transform: translateY(-1px); }
.capabilities-card-icon { width: 76px; height: 76px; display: inline-flex; align-items: center; justify-content: center; color: var(--brand); }
.capabilities-card-icon svg { width: 100%; height: 100%; display: block; }
.capabilities-card strong { margin-top: 12px; color: var(--ink); font-size: 22px; line-height: 1.25; }
.capabilities-card > span:last-child { margin-top: 7px; color: #53627a; font-size: 15px; line-height: 1.5; }
.capabilities-page-note { margin: 25px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: #53627a; font-size: 15px; line-height: 1.6; }
.capabilities-page-actions { margin-top: 23px; }

@media (max-width: 1050px) and (min-width: 921px) {
    .capabilities-framework { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; }
    .capabilities-toc a { padding: 0 10px; gap: 9px; font-size: 14px; }
    .capabilities-card-grid { gap: 12px; }
    .capabilities-card { min-height: 190px; padding-left: 10px; padding-right: 10px; }
    .capabilities-card strong { font-size: 18px; }
    .capabilities-card > span:last-child { font-size: 13px; }
}

@media (max-width: 920px) {
    .portal-shell:has(.capabilities-page) .portal-topbar-title { display: none; }
    .portal-shell:has(.capabilities-page) .portal-subpage-back { min-width: 0; max-width: 52vw; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
    .capabilities-framework { display: block; margin-top: 16px; }
    .capabilities-toc { position: static; padding: 10px 7px; }
    .capabilities-toc a { min-height: 37px; padding: 0 10px; font-size: 13px; }
    .capabilities-toc a span { width: 24px; flex-basis: 24px; font-size: 14px; }
    .capabilities-content { margin-top: 20px; }
    .capabilities-content-heading { margin: 0 0 20px; }
    .capabilities-content-heading h1 { font-size: 28px; }
    .capabilities-content-heading p { margin-top: 9px; font-size: 14px; }
    .capabilities-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .capabilities-card { min-height: 170px; padding: 18px 8px 15px; }
    .capabilities-card-icon { width: 58px; height: 58px; }
    .capabilities-card strong { margin-top: 9px; font-size: 17px; }
    .capabilities-card > span:last-child { font-size: 12px; }
    .capabilities-page-note { margin-top: 18px; padding-top: 14px; font-size: 13px; }
    .capabilities-page-actions { margin-top: 17px; }
}

@media (min-width: 921px) {
    .portal-shell:has(.community-rules-page) { height: 100vh; min-height: 100vh; overflow: hidden; }
    .portal-shell:has(.community-rules-page) .portal-content { height: 100vh; min-height: 0; overflow: hidden; }
    .portal-shell:has(.community-rules-page) .portal-main { flex: 1 1 auto; height: calc(100vh - 86px); min-height: 0; overflow-y: auto; overflow-x: hidden; }
}

/* Safety home icons use the larger blue line-art proportions from the design. */
.portal-main:has(.portal-hero) .portal-featured-icon { width: 64px; height: 64px; flex-basis: 64px; color: var(--brand); }
.portal-main:has(.portal-hero) .portal-help-card .portal-icon-circle { width: 64px; height: 64px; flex-basis: 64px; border-radius: 0; background: transparent; color: var(--brand); }
.portal-main:has(.portal-hero) .portal-help-card .portal-icon-circle svg,
.portal-main:has(.portal-hero) .portal-help-card .portal-icon-circle img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 920px) {
    .portal-main:has(.portal-hero) .portal-featured-icon { width: 50px; height: 50px; flex-basis: 50px; }
    .portal-main:has(.portal-hero) .portal-help-card .portal-icon-circle { width: 50px; height: 50px; flex-basis: 50px; }
}

.ai-info-overview { margin-top: 23px; padding: 19px 23px 18px; border: 1px solid #c9ddff; border-radius: 11px; background: linear-gradient(110deg, #f3f8ff 0%, #fbfdff 100%); }
.ai-info-overview h2 { margin: 0 0 13px; color: var(--ink); font-size: 18px; }
.ai-info-overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ai-info-overview-item { min-width: 0; padding: 0 22px; display: flex; align-items: center; gap: 13px; border-right: 1px solid #cbdcf4; }
.ai-info-overview-item:first-child { padding-left: 0; }
.ai-info-overview-item:last-child { padding-right: 0; border-right: 0; }
.ai-info-overview-icon { width: 58px; height: 58px; flex: 0 0 58px; display: inline-flex; align-items: center; justify-content: center; color: var(--brand); }
.ai-info-overview-icon svg { width: 100%; height: 100%; display: block; }
.ai-info-overview-item strong { display: block; color: var(--ink); font-size: 16px; line-height: 1.35; }
.ai-info-overview-item div > span { display: block; margin-top: 4px; color: #53627a; font-size: 13px; line-height: 1.45; }
.ai-info-layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 28px; margin-top: 20px; align-items: start; }
.ai-info-toc { position: sticky; top: 20px; padding: 14px 8px 17px; border: 1px solid #dce5f1; border-radius: 11px; background: #fff; }
.ai-info-toc h2 { margin: 0 12px 10px; color: var(--ink); font-size: 18px; }
.ai-info-toc a { min-height: 42px; padding: 0 13px; display: flex; align-items: center; gap: 12px; border-radius: 8px; color: #53627a; font-size: 15px; }
.ai-info-toc a:hover, .ai-info-toc a.active { background: #eff5ff; color: var(--brand); }
.ai-info-toc a span { width: 28px; flex: 0 0 28px; font-size: 17px; }
.ai-info-content { min-width: 0; }
.ai-info-section { scroll-margin-top: 20px; }
.ai-info-section + .ai-info-section { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.ai-info-section-heading { display: flex; align-items: center; gap: 12px; }
.ai-info-section-heading h2 { margin: 0; color: var(--ink); font-size: 25px; line-height: 1.3; }
.ai-info-section-number { width: 40px; height: 40px; flex: 0 0 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 17px; }
.ai-info-section-number.blue { border: 1px solid #a8ccff; background: #edf5ff; color: var(--brand); }
.ai-info-section-number.amber { border: 1px solid #f2ca76; background: #fff6e4; color: #df8500; }
.ai-info-section p { margin: 10px 0 0 52px; color: #53627a; font-size: 15px; line-height: 1.75; }
.ai-info-capability-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0 52px; }
.ai-info-capability-grid a { min-height: 64px; padding: 9px 12px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #8fb9ff; border-radius: 10px; color: var(--ink); font-size: 16px; font-weight: 700; white-space: nowrap; }
.ai-info-capability-grid a:hover { border-color: var(--brand); background: #f6faff; color: var(--brand); }
.ai-info-capability-icon { width: 34px; height: 34px; flex: 0 0 34px; display: inline-flex; align-items: center; justify-content: center; color: var(--brand); }
.ai-info-capability-icon svg { width: 100%; height: 100%; display: block; }
.ai-info-risk-section { margin-left: 0; }
.ai-info-risk-list { margin: 14px 0 0; overflow: hidden; border: 1px solid #f3d18d; border-radius: 10px; background: #fffaf0; }
.ai-info-risk-list > div { min-height: 47px; padding: 0 17px; display: flex; align-items: center; gap: 12px; color: #293957; font-size: 15px; }
.ai-info-risk-list > div + div { border-top: 1px solid #f2dfb4; }
.ai-info-risk-icon { width: 28px; height: 28px; flex: 0 0 28px; display: inline-flex; color: #df8500; }
.ai-info-risk-icon svg { width: 100%; height: 100%; display: block; }
.ai-info-next { margin: 23px 0 0; padding-top: 16px; display: flex; align-items: center; justify-content: center; gap: 12px; border-top: 1px solid var(--line); color: var(--brand); font-size: 16px; font-weight: 600; }
.ai-info-next span { font-size: 28px; line-height: .7; }

@media (max-width: 1050px) and (min-width: 921px) {
    .ai-info-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 20px; }
    .ai-info-capability-grid { gap: 8px; margin-left: 0; }
    .ai-info-section p { margin-left: 0; }
    .ai-info-capability-grid a { padding: 8px 6px; font-size: 14px; }
    .ai-info-capability-icon { width: 30px; height: 30px; flex-basis: 30px; }
}

@media (max-width: 1300px) and (min-width: 1051px) {
    .ai-info-capability-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
    .portal-shell:has(.ai-info-overview) .portal-topbar-title { display: none; }
    .portal-shell:has(.ai-info-overview) .portal-subpage-back { min-width: 0; max-width: 52vw; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
    .ai-info-overview { margin-top: 17px; padding: 14px; }
    .ai-info-overview h2 { font-size: 16px; }
    .ai-info-overview-grid { grid-template-columns: minmax(0, 1fr); }
    .ai-info-overview-item, .ai-info-overview-item:first-child, .ai-info-overview-item:last-child { min-height: 63px; padding: 9px 0; border-right: 0; border-bottom: 1px solid #d7e4f7; }
    .ai-info-overview-item:last-child { border-bottom: 0; }
    .ai-info-overview-icon { width: 48px; height: 48px; flex-basis: 48px; }
    .ai-info-overview-item strong { font-size: 14px; }
    .ai-info-overview-item div > span { font-size: 12px; }
    .ai-info-layout { display: block; margin-top: 15px; }
    .ai-info-toc { position: static; padding: 10px 7px; }
    .ai-info-toc h2 { margin: 0 10px 7px; font-size: 16px; }
    .ai-info-toc a { min-height: 36px; font-size: 13px; }
    .ai-info-content { margin-top: 18px; }
    .ai-info-section-heading { gap: 9px; }
    .ai-info-section-heading h2 { font-size: 21px; }
    .ai-info-section-number { width: 35px; height: 35px; flex-basis: 35px; font-size: 15px; }
    .ai-info-section p { margin-left: 0; font-size: 13px; }
    .ai-info-capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-left: 0; }
    .ai-info-capability-grid a { min-height: 56px; padding: 7px 8px; font-size: 14px; }
    .ai-info-capability-icon { width: 30px; height: 30px; flex-basis: 30px; }
    .ai-info-risk-list > div { min-height: 49px; padding: 5px 11px; font-size: 13px; }
    .ai-info-next { font-size: 14px; }
}

@media (max-width: 920px) {
    .portal-sidebar .sidebar-brand { display: none; }
}

.portal-toc h2 { display: none !important; }

/* Community Rules follows the policy-page layout shown in the product designs. */
.community-rules-page { color: var(--text); }
.community-rules-header { padding: 2px 8px 0; }
.community-rules-header h1 { margin: 0; color: var(--ink); font-size: 38px; line-height: 1.2; }
.community-rules-meta { margin: 8px 0 0; color: #53627a; font-size: 15px; line-height: 1.5; }
.community-rules-intro { margin: 8px 0 0; color: var(--ink); font-size: 16px; line-height: 1.6; }
.community-policy-tabs { min-height: 58px; margin-top: 18px; padding: 0 8px; display: flex; align-items: center; gap: 0; border-bottom: 1px solid var(--line); }
.community-policy-tabs a { min-height: 58px; padding: 0 28px; display: inline-flex; align-items: center; justify-content: center; border-bottom: 3px solid transparent; color: var(--ink); font-size: 15px; font-weight: 600; white-space: nowrap; }
.community-policy-tabs a:first-child { padding-left: 10px; }
.community-policy-tabs a.active { border-bottom-color: var(--brand); color: var(--brand); }
.community-rules-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 36px; margin-top: 18px; padding: 0 8px 34px; align-items: start; }
.community-rules-toc { position: sticky; top: 22px; padding: 18px 12px 20px; border: 1px solid #dbe5f2; border-radius: 11px; background: #fff; }
.community-rules-toc h2 { margin: 0 10px 13px; color: var(--ink); font-size: 16px; }
.community-rules-toc a { min-height: 38px; padding: 0 10px; display: flex; align-items: center; gap: 10px; border-radius: 8px; color: #293957; font-size: 14px; line-height: 1.35; }
.community-rules-toc a:hover, .community-rules-toc a.active { background: #eff5ff; color: var(--brand); }
.community-rules-toc a span { width: 22px; flex: 0 0 22px; }
.community-rules-content { min-width: 0; }
.community-rule-section { scroll-margin-top: 20px; }
.community-rule-section + .community-rule-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.community-rule-section h2 { margin: 0 0 9px; color: var(--ink); font-size: 23px; line-height: 1.35; }
.community-rule-section > p { margin: 0; color: #53627a; font-size: 15px; line-height: 1.7; }
.community-rule-section > p + p { margin-top: 2px; }
.community-standard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 15px; }
.community-standard-card { min-height: 100px; padding: 16px 17px; display: flex; align-items: center; gap: 16px; border: 1px solid #d1dff1; border-radius: 10px; background: #fff; }
.community-standard-icon { width: 54px; height: 54px; flex: 0 0 54px; display: inline-flex; align-items: center; justify-content: center; color: var(--brand); }
.community-standard-icon svg { width: 100%; height: 100%; display: block; }
.community-standard-card h3 { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.35; }
.community-standard-card p { margin: 5px 0 0; color: #53627a; font-size: 13px; line-height: 1.5; }
.community-prohibited-list { margin-top: 15px; overflow: hidden; border: 1px solid #f3d38e; border-radius: 10px; background: #fffaf0; }
.community-prohibited-list > div { min-height: 40px; padding: 0 14px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; color: #293957; font-size: 14px; }
.community-prohibited-list > div + div { border-top: 1px solid #f2dfb4; }
.community-prohibited-icon { width: 27px; height: 27px; display: inline-flex; align-items: center; justify-content: center; color: #ec920d; }
.community-prohibited-icon svg { width: 27px; height: 27px; display: block; }
.community-prohibited-list b { color: #8b6d38; font-size: 23px; font-weight: 400; line-height: 1; }
.community-responsible-list { margin-top: 14px; overflow: hidden; border: 1px solid #c7dcff; border-radius: 10px; background: #f4f8ff; }
.community-responsible-list > div { min-height: 54px; padding: 8px 16px; display: grid; grid-template-columns: 38px 126px minmax(0, 1fr); align-items: center; gap: 12px; }
.community-responsible-list > div + div { border-top: 1px solid #d7e5fa; }
.community-responsible-icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #0d72f5; color: #fff; }
.community-responsible-icon svg { width: 23px; height: 23px; display: block; }
.community-responsible-list strong { color: var(--ink); font-size: 16px; }
.community-responsible-list span:last-child { color: #53627a; font-size: 14px; line-height: 1.5; }
.community-enforcement-flow { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.community-enforcement-flow > div { min-height: 64px; padding: 10px 12px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #aecdff; border-radius: 9px; background: #f5f9ff; color: #293957; font-size: 14px; text-align: center; }
.community-flow-icon { width: 30px; height: 30px; flex: 0 0 30px; color: var(--brand); }
.community-flow-icon svg { width: 100%; height: 100%; display: block; }
.community-flow-arrow { color: var(--brand); font-size: 28px; font-weight: 300; }
.community-enforcement-flow + p { margin-top: 10px; }
.community-report-box { margin-top: 14px; padding: 17px 18px; display: flex; align-items: center; gap: 17px; border: 1px solid #aecdff; border-radius: 10px; background: #fff; }
.community-report-icon { width: 62px; height: 62px; flex: 0 0 62px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #eaf2ff; color: var(--brand); }
.community-report-icon svg { width: 46px; height: 46px; display: block; }
.community-report-box p { margin: 0; color: #53627a; font-size: 14px; line-height: 1.6; }
.community-report-actions { margin-top: 11px; display: flex; align-items: center; flex-wrap: wrap; gap: 13px; color: #53627a; font-size: 13px; }
.community-report-actions .portal-button { min-height: 36px; padding: 0 18px; }
.community-report-actions > span + span { padding-left: 13px; border-left: 1px solid #d6e2f2; }
.community-report-actions a { color: var(--brand); }
.community-rule-note { margin-top: 9px !important; color: #7a879c !important; font-size: 12px !important; }
.community-contact-box { margin-top: 14px; padding: 18px 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: center; gap: 20px; border: 1px solid #d1dff1; border-radius: 10px; background: #fff; }
.community-contact-box strong { display: block; color: var(--ink); font-size: 14px; }
.community-contact-box a:not(.portal-button) { display: block; margin-top: 6px; color: var(--brand); font-size: 14px; }
.community-contact-box .portal-button { white-space: nowrap; }

@media (max-width: 920px) {
    .portal-shell:has(.community-rules-page) .portal-topbar-title { display: none; }
    .portal-shell:has(.community-rules-page) .portal-subpage-back { min-width: 0; max-width: 52vw; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
    .community-rules-header { padding: 0; }
    .community-rules-header h1 { font-size: 29px; }
    .community-rules-meta { font-size: 13px; }
    .community-rules-intro { font-size: 14px; }
    .community-policy-tabs { margin-top: 14px; padding: 0; overflow: visible; flex-wrap: wrap; justify-content: flex-start; }
    .community-policy-tabs a, .community-policy-tabs a:first-child { min-height: 49px; padding: 0 11px; font-size: 13px; }
    .community-rules-layout { display: block; margin-top: 14px; padding: 0 0 24px; }
    .community-rules-toc { position: static; padding: 13px 9px; }
    .community-rules-toc h2 { margin: 0 9px 8px; font-size: 15px; }
    .community-rules-toc a { min-height: 35px; font-size: 13px; }
    .community-rules-content { margin-top: 18px; }
    .community-rule-section + .community-rule-section { margin-top: 20px; padding-top: 17px; }
    .community-rule-section h2 { font-size: 20px; }
    .community-rule-section > p { font-size: 14px; }
    .community-standard-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .community-standard-card { min-height: 84px; padding: 13px; }
    .community-standard-icon { width: 46px; height: 46px; flex-basis: 46px; }
    .community-standard-card h3 { font-size: 15px; }
    .community-standard-card p { font-size: 12px; }
    .community-prohibited-list > div { min-height: 47px; grid-template-columns: 27px minmax(0, 1fr) auto; padding: 5px 10px; font-size: 13px; }
    .community-responsible-list > div { grid-template-columns: 34px minmax(0, 1fr); gap: 8px 10px; padding: 10px 12px; }
    .community-responsible-list span:last-child { grid-column: 2; font-size: 13px; }
    .community-responsible-list strong { font-size: 14px; }
    .community-enforcement-flow { grid-template-columns: minmax(0, 1fr); gap: 7px; }
    .community-flow-arrow { justify-self: center; transform: rotate(90deg); font-size: 23px; }
    .community-report-box { align-items: flex-start; padding: 14px; gap: 11px; }
    .community-report-icon { width: 48px; height: 48px; flex-basis: 48px; }
    .community-report-icon svg { width: 36px; height: 36px; }
    .community-report-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
    .community-report-actions > span + span { padding-left: 0; border-left: 0; }
    .community-contact-box { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 15px; }
    .community-contact-box .portal-button { justify-self: start; }
}

/*
 * Canonical application shell behavior.
 * Public feature and safety pages use the browser scrollbar. The shared
 * sidebar and topbar stay pinned while the document itself scrolls, avoiding
 * a second scrollbar inside the right-hand content pane.
 */
@media (min-width: 921px) {
    html:has(body > .creation-app),
    html:has(body > .portal-shell),
    html:has(body > .feature-shell) {
        height: auto !important;
        min-height: 100% !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    body:has(> .creation-app),
    body:has(> .portal-shell),
    body:has(> .feature-shell) {
        height: auto !important;
        min-height: 100% !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .creation-app,
    .portal-shell,
    .feature-shell {
        height: auto !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .creation-app > aside[data-fuuvo-shared-sidebar="1"],
    .portal-shell > aside[data-fuuvo-shared-sidebar="1"],
    .feature-shell > aside[data-fuuvo-shared-sidebar="1"] {
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        position: sticky !important;
        top: 0 !important;
        align-self: start !important;
        overflow: hidden !important;
    }

    .creation-workspace,
    .portal-content,
    .feature-shell > .workspace,
    .creation-app [data-fuuvo-app-workspace="1"],
    .portal-shell [data-fuuvo-app-workspace="1"],
    .feature-shell [data-fuuvo-app-workspace="1"] {
        width: 100%;
        height: auto !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        min-width: 0;
        overflow: visible !important;
    }

    .creation-topbar,
    .portal-topbar,
    .feature-shell .workspace-chat-header,
    .creation-app [data-fuuvo-shared-topbar="1"],
    .portal-shell [data-fuuvo-shared-topbar="1"],
    .feature-shell [data-fuuvo-shared-topbar="1"] {
        flex: 0 0 auto;
        position: sticky !important;
        top: 0 !important;
        z-index: 30;
    }

    .creation-main,
    .food-main,
    .analysis-main,
    .fortune-main,
    .portal-main,
    .feature-shell .main,
    .creation-app [data-fuuvo-app-scroll="1"],
    .portal-shell [data-fuuvo-app-scroll="1"],
    .feature-shell [data-fuuvo-app-scroll="1"] {
        height: auto !important;
        min-height: 0 !important;
        flex: 0 0 auto !important;
        overflow: visible !important;
        overscroll-behavior: auto;
    }
}

/* Keep every public right-hand content pane on the same left alignment line. */
@media (min-width: 921px) {
    [data-fuuvo-app-scroll="1"] {
        margin-left: 56px !important;
        margin-right: 40px !important;
    }

    .creation-main,
    .analysis-main {
        width: min(1120px, calc(100% - 96px)) !important;
    }

    .food-main {
        width: min(1220px, calc(100% - 96px)) !important;
    }

    .fortune-main {
        width: min(1180px, calc(100% - 96px)) !important;
    }

    .portal-main,
    .feature-shell .main {
        width: min(1220px, calc(100% - 96px)) !important;
    }
}

/*
 * Final desktop shell invariants.
 * The shared partials must render with the same proportions as the chat home,
 * regardless of legacy feature/safety styles loaded by an individual page.
 */
@media (min-width: 921px) {
    body.chat-landing[data-mode="chat"] {
        --chat-sidebar-width: 272px !important;
    }

    body.chat-landing[data-mode="chat"] .app {
        grid-template-columns: 272px 1px minmax(0, 1fr) !important;
    }

    body.sidebar-collapsed.chat-landing[data-mode="chat"] .app {
        grid-template-columns: 0 0 minmax(0, 1fr) !important;
    }

    .creation-app,
    .portal-shell,
    .feature-shell {
        grid-template-columns: 272px minmax(0, 1fr) !important;
    }

    .creation-app > aside[data-fuuvo-shared-sidebar="1"],
    .portal-shell > aside[data-fuuvo-shared-sidebar="1"],
    .feature-shell > aside[data-fuuvo-shared-sidebar="1"],
    [data-fuuvo-app-shell="1"] > aside[data-fuuvo-shared-sidebar="1"] {
        width: 272px !important;
        min-width: 272px !important;
        max-width: 272px !important;
        padding: 12px 8px 10px 10px !important;
        gap: 8px !important;
        border: 0 !important;
        border-right: 1px solid rgba(15, 23, 42, .06) !important;
        border-radius: 0 !important;
        background: #f8f8f8 !important;
        box-shadow: none !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-shell {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        display: grid !important;
        align-content: start !important;
        gap: 8px !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-row,
    aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav {
        margin: 0 !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-copy {
        margin-top: 0 !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-search-trigger {
        min-height: 44px !important;
        margin: 0 !important;
        padding: 0 12px 0 14px !important;
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        gap: 10px !important;
        border: 1px solid rgba(15, 23, 42, .06) !important;
        border-radius: 16px !important;
        background: rgba(255, 255, 255, .96) !important;
        color: #637086 !important;
        box-shadow: 0 10px 24px rgba(15, 23, 42, .04) !important;
        font: inherit !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-search-trigger-label {
        font-size: 14px !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-search-trigger-shortcut {
        min-height: 24px !important;
        padding: 0 8px !important;
        border-radius: 999px !important;
        background: rgba(15, 23, 42, .05) !important;
        color: #8c97aa !important;
        font-size: 11px !important;
        font-weight: 700 !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-safety-link {
        min-height: 40px !important;
        display: flex !important;
    }

    header[data-fuuvo-shared-topbar="1"] {
        min-height: 86px !important;
        padding: 12px 22px 8px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 10px !important;
        border: 0 !important;
        background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 82%, rgba(255,255,255,0) 100%) !important;
        backdrop-filter: blur(14px) !important;
    }

    header[data-fuuvo-shared-topbar="1"]:has(.shell-topbar-back) {
        grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr) !important;
    }

    header[data-fuuvo-shared-topbar="1"]:has(.shell-topbar-back) .shell-topbar-center {
        display: grid !important;
    }

    header[data-fuuvo-shared-topbar="1"]:has(.shell-topbar-back) .shell-topbar-right {
        grid-column: auto !important;
    }

    header[data-fuuvo-shared-topbar="1"] .shell-topbar-back,
    header[data-fuuvo-shared-topbar="1"] .shell-topbar-back span {
        min-width: 0;
        white-space: nowrap !important;
    }

    header[data-fuuvo-shared-topbar="1"] :is(.portal-top-safety-link, .creation-top-safety) > img.fuuvo-design-icon {
        width: 21px !important;
        height: 21px !important;
        display: block !important;
        flex: 0 0 21px !important;
        object-fit: contain !important;
        visibility: visible !important;
    }

    header[data-fuuvo-shared-topbar="1"] .workspace-chat-header-center,
    header[data-fuuvo-shared-topbar="1"] #feature-shell-title,
    header[data-fuuvo-shared-topbar="1"] .portal-top-safety-link {
        display: flex !important;
    }

    header[data-fuuvo-shared-topbar="1"] #feature-shell-title {
        color: #111827 !important;
        font-size: 15px !important;
        font-weight: 700 !important;
    }

    header[data-fuuvo-shared-topbar="1"] .workspace-header-login,
    header[data-fuuvo-shared-topbar="1"] .creation-login,
    header[data-fuuvo-shared-topbar="1"] .portal-login {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        min-width: 96px !important;
        min-height: 44px !important;
        padding: 0 22px !important;
        border: 0 !important;
        border-radius: 999px !important;
        background: #102746 !important;
        color: #fff !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        text-decoration: none !important;
        cursor: pointer;
    }
}

/* Mobile shared navigation drawer. */
.fuuvo-mobile-sidebar-close,
.fuuvo-mobile-sidebar-auth,
.fuuvo-mobile-explore,
.fuuvo-mobile-powered,
.fuuvo-mobile-sidebar-backdrop {
    display: none;
}

@media (max-width: 920px) {
    body.mobile-nav-open,
    body.fuuvo-mobile-sidebar-open {
        overflow: hidden !important;
    }

    aside[data-fuuvo-shared-sidebar="1"],
    [data-fuuvo-app-shell="1"] > aside[data-fuuvo-shared-sidebar="1"] {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        z-index: 230 !important;
        width: min(calc(var(--mobile-viewport-width, 100vw) * .76), 340px) !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        padding: 22px 20px 18px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
        box-shadow: 18px 0 42px rgba(20, 37, 64, .16) !important;
        transform: translateX(-105%) !important;
        transition: transform .24s ease !important;
        overscroll-behavior: contain;
        align-self: auto !important;
    }

    body.mobile-nav-open aside[data-fuuvo-shared-sidebar="1"],
    body.fuuvo-mobile-sidebar-open aside[data-fuuvo-shared-sidebar="1"] {
        transform: translateX(0) !important;
    }

    .fuuvo-mobile-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 225;
        padding: 0;
        border: 0;
        background: rgba(20, 33, 53, .42);
        backdrop-filter: blur(3px);
    }

    body.mobile-nav-open .fuuvo-mobile-sidebar-backdrop,
    body.fuuvo-mobile-sidebar-open .fuuvo-mobile-sidebar-backdrop {
        display: block;
    }

    body.mobile-nav-open #mobile-backdrop {
        display: none !important;
    }

    .fuuvo-mobile-sidebar-close {
        position: absolute;
        top: 32px;
        right: 19px;
        z-index: 4;
        width: 40px;
        height: 40px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: #10284c;
        cursor: pointer;
    }

    .fuuvo-mobile-sidebar-close svg {
        width: 27px;
        height: 27px;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-shell {
        width: 100% !important;
        flex: 0 0 auto !important;
        display: block !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand {
        width: calc(100% - 48px) !important;
        min-height: 72px !important;
        margin: 0 0 24px !important;
        padding: 0 4px !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-logo img {
        width: auto !important;
        max-width: 116px !important;
        height: 42px !important;
        object-fit: contain !important;
        object-position: left center !important;
        background: transparent !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-copy {
        margin-left: -116px !important;
        padding-top: 43px !important;
        min-width: 116px !important;
        display: block !important;
        color: #0877f9 !important;
        text-align: center !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-name {
        color: #0877f9 !important;
        font-size: 15px !important;
        font-weight: 650 !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-name-image {
        width: 52px !important;
        height: auto !important;
        max-width: 52px !important;
        margin: 0 auto !important;
        display: block !important;
        background: transparent !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-name::after {
        content: "鈩?;
        margin-left: 2px;
        font-size: 9px;
        vertical-align: top;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-suffix,
    aside[data-fuuvo-shared-sidebar="1"] .sidebar-search-trigger {
        display: none !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 0 20px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        border-bottom: 1px solid #dce3ed !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav-btn {
        width: 100% !important;
        min-height: 42px !important;
        padding: 0 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        border: 0 !important;
        border-radius: 10px !important;
        background: transparent !important;
        color: #10284c !important;
        font-size: 17px !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        box-shadow: none !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav-btn:first-child {
        min-height: 40px !important;
        margin-bottom: 8px !important;
        justify-content: center !important;
        border: 1.5px solid #0877f9 !important;
        color: #0877f9 !important;
        font-size: 14px !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav-btn .rail-icon {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 15px !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav-btn:first-child .rail-icon {
        width: auto !important;
        justify-content: center !important;
        gap: 13px !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav-btn .rail-glyph {
        width: 25px !important;
        height: 25px !important;
        flex: 0 0 25px !important;
        color: #0877f9 !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav-btn:first-child .rail-glyph {
        width: 22px !important;
        height: 22px !important;
        flex-basis: 22px !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .history-main,
    aside[data-fuuvo-shared-sidebar="1"] .portal-recent {
        width: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 19px 4px 12px !important;
        display: block !important;
        flex: 0 0 auto !important;
        overflow: visible !important;
        border: 0 !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .history-head,
    aside[data-fuuvo-shared-sidebar="1"] .history-composer-slot,
    aside[data-fuuvo-shared-sidebar="1"] .history-actions,
    aside[data-fuuvo-shared-sidebar="1"] .history-search,
    aside[data-fuuvo-shared-sidebar="1"] .pagination,
    aside[data-fuuvo-shared-sidebar="1"] .recent-empty,
    aside[data-fuuvo-shared-sidebar="1"] .conversation-preview,
    aside[data-fuuvo-shared-sidebar="1"] .conversation-meta {
        display: none !important;
    }

    /* Keep the more/delete button visible on mobile */
    aside[data-fuuvo-shared-sidebar="1"] .conversation-actions {
        display: inline-flex !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .conversation-more-btn {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-section-label,
    aside[data-fuuvo-shared-sidebar="1"] .portal-recent > h2 {
        margin: 0 0 6px !important;
        display: block !important;
        color: #6f809b !important;
        font-size: 14px !important;
        font-weight: 500 !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .conversation-list,
    aside[data-fuuvo-shared-sidebar="1"] .task-list,
    aside[data-fuuvo-shared-sidebar="1"] .portal-recent-list {
        display: block !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .conversation-item,
    aside[data-fuuvo-shared-sidebar="1"] .task-item,
    aside[data-fuuvo-shared-sidebar="1"] .portal-recent-item,
    aside[data-fuuvo-shared-sidebar="1"] .portal-recent-list > a,
    aside[data-fuuvo-shared-sidebar="1"] .portal-recent-link {
        min-height: 32px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        border: 0 !important;
        border-radius: 8px !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #10284c !important;
        text-decoration: none !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .portal-recent-item {
        gap: 6px !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .portal-recent-link {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .portal-recent-delete {
        width: 28px !important;
        height: 28px !important;
        flex: 0 0 28px !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .conversation-head {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 20px minmax(0, 1fr) auto auto !important;
        gap: 7px !important;
        align-items: center !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .conversation-item-icon {
        width: 20px !important;
        height: 20px !important;
        color: #10284c !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .conversation-item-icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .conversation-title {
        overflow: hidden !important;
        color: #10284c !important;
        font-size: 13px !important;
        font-weight: 450 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .conversation-time {
        min-width: 34px !important;
        padding: 0 !important;
        color: #7788a3 !important;
        font-size: 12px !important;
        text-align: right !important;
    }

    .fuuvo-mobile-sidebar-auth {
        width: 100%;
        padding: 14px 4px 19px;
        display: block;
        border-bottom: 1px solid #dce3ed;
    }

    .fuuvo-mobile-sidebar-auth p {
        margin: 0 0 8px;
        color: #7888a2;
        font-size: 13px;
        line-height: 1.5;
    }

    .fuuvo-mobile-sidebar-auth a,
    .fuuvo-mobile-sidebar-auth button,
    .fuuvo-mobile-sidebar-auth strong {
        padding: 0;
        border: 0;
        background: transparent;
        color: #0877f9 !important;
        font: inherit;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none !important;
        cursor: pointer;
    }

    .fuuvo-mobile-explore {
        width: 100%;
        padding: 19px 4px 10px;
        display: block;
    }

    .fuuvo-mobile-explore h2 {
        margin: 0 0 12px;
        color: #6f809b;
        font-size: 14px;
        font-weight: 500;
    }

    .fuuvo-mobile-explore a {
        min-height: 45px;
        display: flex;
        align-items: center;
        gap: 13px;
        color: #10284c !important;
        font-size: 15px;
        font-weight: 450;
        text-decoration: none !important;
    }

    .fuuvo-mobile-explore svg {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        color: #0877f9;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-safety-link,
    aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-area {
        display: none !important;
    }

    .fuuvo-mobile-powered {
        margin-top: auto;
        padding: 34px 4px 4px;
        display: block;
        color: #7f90aa;
        font-size: 13px;
    }

    body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] {
        background: #fff !important;
        color: #10284c !important;
    }
}

/* Shared settings drawer opened by the top-right sign-in button. */
a.workspace-header-login,
a.creation-login,
a.portal-login,
button.creation-login,
button.portal-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 0;
    font-family: inherit;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

/* Desktop explore menu opened by the top-left menu button. */
.topbar-explore-menu.hidden {
    display: none !important;
}

.topbar-explore-menu {
    position: fixed;
    width: 208px;
    padding: 15px 14px 0;
    overflow: hidden;
    border: 1px solid #d7dee9;
    border-radius: 12px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 10px 24px rgba(24, 43, 72, .13);
    color: #2c4263;
    z-index: 150;
}

.topbar-explore-menu section {
    margin: 0;
    padding: 0 0 10px;
}

.topbar-explore-menu section + section {
    padding-top: 12px;
    border-top: 1px solid #e1e6ee;
}

.topbar-explore-menu h2 {
    margin: 0 8px 7px;
    color: #50627d;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
}

.topbar-explore-menu a {
    min-height: 41px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    border-radius: 7px;
    color: #2f4667 !important;
    font-size: 15px;
    font-weight: 450;
    line-height: 1.4;
    text-decoration: none !important;
    white-space: nowrap;
}

.topbar-explore-menu a:hover,
.topbar-explore-menu a:focus-visible {
    background: #f2f6fb;
    color: #0877f9 !important;
    outline: 0;
}

.topbar-explore-menu .topbar-explore-powered {
    min-height: 48px;
    margin: 0 -14px;
    padding: 0 22px;
    border-top: 1px solid #e1e6ee;
    border-radius: 0;
    color: #8b99ad !important;
    font-size: 13px;
}

body[data-ui-theme="dark"] .topbar-explore-menu {
    border-color: #334155;
    background: rgba(22, 32, 51, .98);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .32);
}

body[data-ui-theme="dark"] .topbar-explore-menu section + section,
body[data-ui-theme="dark"] .topbar-explore-menu .topbar-explore-powered {
    border-color: #334155;
}

body[data-ui-theme="dark"] .topbar-explore-menu h2 {
    color: #aab8cb;
}

body[data-ui-theme="dark"] .topbar-explore-menu a {
    color: #e6edf8 !important;
}

body[data-ui-theme="dark"] .topbar-explore-menu a:hover,
body[data-ui-theme="dark"] .topbar-explore-menu a:focus-visible {
    background: #202b3d;
    color: #5ca8ff !important;
}

body[data-ui-theme="dark"] .topbar-explore-menu .topbar-explore-powered {
    color: #8fa0b8 !important;
}

@media (max-width: 920px) {
    .topbar-explore-menu {
        display: none !important;
    }
}

.topbar-settings-backdrop {
    position: fixed;
    inset: 84px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    z-index: 139;
}

.topbar-settings-backdrop.hidden,
.topbar-settings-drawer.hidden,
.topbar-settings-choice-panel.hidden,
.topbar-settings-drawer [data-settings-drawer-main].hidden {
    display: none !important;
}

.topbar-settings-drawer {
    position: fixed;
    top: 84px;
    right: 0;
    bottom: 0;
    width: 360px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e1e7f0;
    background: #fff;
    box-shadow: -10px 0 30px rgba(27, 45, 74, .08);
    color: #10213d;
    z-index: 140;
}

.topbar-settings-drawer-head {
    min-height: 70px;
    padding: 0 27px 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e1e7f0;
}

.topbar-settings-drawer-head h2 {
    margin: 0;
    color: #10213d;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.topbar-settings-drawer-head button {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #10213d;
    cursor: pointer;
}

.topbar-settings-drawer-head button:hover {
    background: #f3f6fa;
}

.topbar-settings-drawer-head svg {
    width: 25px;
    height: 25px;
}

.topbar-settings-drawer-body {
    min-height: 0;
    flex: 1 1 auto;
    padding: 19px 22px 20px 30px;
    overflow-x: hidden;
    overflow-y: auto;
}

.topbar-settings-drawer [data-settings-drawer-main] {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.topbar-settings-group {
    padding: 8px 0 15px;
    border-bottom: 1px solid #e1e7f0;
}

.topbar-settings-group + .topbar-settings-group {
    padding-top: 24px;
}

.topbar-settings-group h3 {
    margin: 0 0 12px;
    color: #7b8ba5;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.topbar-settings-row {
    width: 100%;
    min-height: 54px;
    padding: 0 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #182b4c !important;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
}

.topbar-settings-row:hover {
    background: #f5f8fc;
    color: #0877f9 !important;
}

.topbar-settings-row > span:last-child {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    color: #314463;
}

.topbar-settings-row b {
    max-width: 112px;
    overflow: hidden;
    font-size: 15px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-settings-row svg,
.topbar-settings-panel-back svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar-settings-account-action {
    min-height: 57px;
    margin-top: auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #9cafcc;
    border-radius: 8px;
    background: #fff;
    color: #233a5d !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-decoration: none !important;
}

.topbar-settings-account-action:hover {
    border-color: #0877f9;
    color: #0877f9 !important;
}

.topbar-settings-choice-panel {
    min-height: 100%;
}

.topbar-settings-panel-back {
    width: 100%;
    min-height: 52px;
    margin-bottom: 13px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid #e1e7f0;
    background: transparent;
    color: #10213d;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.topbar-settings-option {
    width: 100%;
    min-height: 52px;
    padding: 0 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #233a5d;
    font: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
}

.topbar-settings-option:hover {
    background: #f5f8fc;
}

.topbar-settings-option i {
    width: 17px;
    height: 17px;
    border: 1px solid #b9c5d5;
    border-radius: 50%;
}

.topbar-settings-option.is-selected {
    color: #0877f9;
    font-weight: 600;
}

.topbar-settings-option.is-selected i {
    border-color: #0877f9;
    background: #0877f9;
    box-shadow: inset 0 0 0 4px #fff;
}

body[data-ui-theme="dark"] .topbar-settings-drawer {
    border-left-color: #334155;
    background: #101a2b;
    color: #edf4ff;
}

body[data-ui-theme="dark"] .topbar-settings-drawer-head,
body[data-ui-theme="dark"] .topbar-settings-group,
body[data-ui-theme="dark"] .topbar-settings-panel-back {
    border-color: #334155;
}

body[data-ui-theme="dark"] .topbar-settings-drawer-head h2,
body[data-ui-theme="dark"] .topbar-settings-drawer-head button,
body[data-ui-theme="dark"] .topbar-settings-row,
body[data-ui-theme="dark"] .topbar-settings-row > span:last-child,
body[data-ui-theme="dark"] .topbar-settings-panel-back,
body[data-ui-theme="dark"] .topbar-settings-option {
    color: #edf4ff !important;
}

body[data-ui-theme="dark"] .topbar-settings-row:hover,
body[data-ui-theme="dark"] .topbar-settings-option:hover,
body[data-ui-theme="dark"] .topbar-settings-drawer-head button:hover {
    background: #1e293b;
}

body[data-ui-theme="dark"] .topbar-settings-account-action {
    border-color: #52637e;
    background: #162033;
    color: #edf4ff !important;
}

@media (max-width: 920px) {
    .topbar-settings-backdrop {
        inset: 64px 0 0;
    }

    .topbar-settings-drawer {
        top: 64px;
        width: min(360px, 100vw);
    }

    .topbar-settings-drawer-head {
        min-height: 62px;
        padding: 0 18px 0 22px;
    }

    .topbar-settings-drawer-body {
        padding: 14px 18px 18px 22px;
    }
}

/* Quick settings opened by the standalone gear button. */
aside[data-fuuvo-shared-sidebar="1"] {
    overflow: visible !important;
    z-index: 80 !important;
}

[data-fuuvo-app-shell="1"] > aside[data-fuuvo-shared-sidebar="1"],
.creation-app > aside[data-fuuvo-shared-sidebar="1"],
.portal-shell > aside[data-fuuvo-shared-sidebar="1"],
.feature-shell > aside[data-fuuvo-shared-sidebar="1"] {
    overflow: visible !important;
    z-index: 80 !important;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-settings.is-active {
    border: 2px solid #79b5ff;
    border-radius: 50%;
    background: #fff;
    color: #0877f9;
    box-shadow: 0 0 0 3px #e8f2ff;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings {
    position: absolute;
    right: -92px;
    bottom: calc(100% + 18px);
    width: 240px;
    padding: 15px 20px 12px;
    border: 1px solid #d7e0ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(29, 47, 77, .15);
    color: #10213d;
    z-index: 110;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings::before,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings::after {
    content: "";
    position: absolute;
    right: 105px;
    bottom: -10px;
    width: 18px;
    height: 18px;
    transform: rotate(45deg);
    border-right: 1px solid #d7e0ec;
    border-bottom: 1px solid #d7e0ec;
    background: #fff;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings::before {
    bottom: -12px;
    box-shadow: 5px 5px 12px rgba(29, 47, 77, .08);
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings.hidden,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-panel.hidden,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-main.hidden {
    display: none !important;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-title {
    display: block;
    margin: 0 0 10px;
    color: #10213d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-row {
    width: 100%;
    min-height: 31px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #263958 !important;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-row:hover {
    background: #f4f7fb;
    color: #0877f9 !important;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-row > svg,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-value svg,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-back svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-value {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    color: #425472;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-value b {
    max-width: 82px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-divider {
    height: 1px;
    margin: 10px 0 8px;
    background: #dfe5ee;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-footer {
    width: calc(100% + 4px);
    min-height: 33px;
    margin: 9px -2px -3px;
    padding: 8px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border: 0;
    border-top: 1px solid #edf0f5;
    background: transparent;
    color: #8b98ad !important;
    font: inherit;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-footer:hover {
    color: #0877f9 !important;
}

/* Let quick settings grow with all of its content.  The footer and nested
 * panels must not be trapped inside a fixed-height scrolling surface. */
aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-main,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-panel {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-back {
    width: 100%;
    min-height: 33px;
    margin: -4px 0 8px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 0;
    border-bottom: 1px solid #edf0f5;
    background: transparent;
    color: #10213d;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-option {
    width: 100%;
    min-height: 35px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #263958;
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-option:hover {
    background: #f4f7fb;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-option i {
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #b9c5d5;
    border-radius: 50%;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-option.is-selected {
    color: #0877f9;
    font-weight: 600;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-option.is-selected i {
    border-color: #0877f9;
    box-shadow: inset 0 0 0 4px #fff;
    background: #0877f9;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-explore-links {
    display: grid;
    gap: 2px;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-explore-links a {
    width: 100%;
    min-height: 34px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 7px;
    color: #263958 !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none !important;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-explore-links a:hover {
    background: #f4f7fb;
    color: #0877f9 !important;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-explore-links svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-powered {
    margin-top: 9px;
    padding-top: 10px;
    border-top: 1px solid #edf0f5;
    color: #8b98ad;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
}

body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings,
body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings::before,
body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings::after {
    border-color: #334155;
    background: #162033;
    color: #eef4ff;
}

body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-title,
body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-back,
body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-row,
body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-option,
body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-explore-links a {
    color: #eef4ff !important;
}

body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-row:hover,
body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-option:hover,
body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-explore-links a:hover {
    background: #202b3d;
}

body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-divider,
body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-footer,
body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-back,
body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-powered {
    border-color: #334155;
}

body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-powered {
    color: #94a3b8;
}

/* Final shared collapse contract; legacy page styles must not reopen the rail. */
@media (min-width: 921px) {
    .creation-app.sidebar-collapsed,
    .feature-shell.sidebar-collapsed,
    .portal-shell.sidebar-collapsed {
        grid-template-columns: 0 minmax(0, 1fr) !important;
    }

    .creation-app.sidebar-collapsed > aside[data-fuuvo-shared-sidebar="1"],
    .feature-shell.sidebar-collapsed > aside[data-fuuvo-shared-sidebar="1"],
    .portal-shell.sidebar-collapsed > aside[data-fuuvo-shared-sidebar="1"] {
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-right-width: 0 !important;
        opacity: 1 !important;
        overflow: visible !important;
        pointer-events: none !important;
        position: relative;
    }

    /* Keep the collapse control visible at the edge of the collapsed rail.
       It remains a child of the sidebar, never a detached topbar control. */
    .creation-app.sidebar-collapsed > aside[data-fuuvo-shared-sidebar="1"] .sidebar-toggle-slot,
    .feature-shell.sidebar-collapsed > aside[data-fuuvo-shared-sidebar="1"] .sidebar-toggle-slot,
    .portal-shell.sidebar-collapsed > aside[data-fuuvo-shared-sidebar="1"] .sidebar-toggle-slot {
        position: absolute;
        top: 14px;
        right: -42px;
        width: 36px;
        height: 36px;
        margin: 0;
        z-index: 1000;
        pointer-events: auto;
    }

    body.sidebar-collapsed .app > aside[data-fuuvo-shared-sidebar="1"] {
        opacity: 1 !important;
        overflow: visible !important;
        pointer-events: none !important;
        position: relative;
    }

    body.sidebar-collapsed .app > aside[data-fuuvo-shared-sidebar="1"] .sidebar-toggle-slot {
        position: absolute;
        top: 14px;
        right: -42px;
        width: 36px;
        height: 36px;
        margin: 0;
        z-index: 1000;
        pointer-events: auto;
    }

    body.sidebar-collapsed .app > aside[data-fuuvo-shared-sidebar="1"] .sidebar-toggle-slot .desktop-history-toggle {
        pointer-events: auto !important;
    }

    /* Chat detail uses a two-column shell instead of the landing page's
       three-column grid. Keep the shared trigger inside the sidebar while
       collapsing the actual rail, otherwise the fixed 272px history width
       makes the trigger appear detached without removing the rail. */
    body.chat-detail-open.sidebar-collapsed[data-mode="chat"] > .app {
        grid-template-columns: 0 minmax(0, 1fr) !important;
    }

    body.chat-detail-open.sidebar-collapsed[data-mode="chat"] > .app > aside[data-fuuvo-shared-sidebar="1"] {
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        opacity: 1 !important;
        overflow: visible !important;
        pointer-events: none !important;
        position: relative;
    }

    body.chat-detail-open.sidebar-collapsed[data-mode="chat"] > .app > aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-sidebar-close,
    body.chat-detail-open.sidebar-collapsed[data-mode="chat"] > .app > aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-sidebar-auth,
    body.chat-detail-open.sidebar-collapsed[data-mode="chat"] > .app > aside[data-fuuvo-shared-sidebar="1"] .history-account,
    body.chat-detail-open.sidebar-collapsed[data-mode="chat"] > .app > aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region > :not(.sidebar-shell),
    body.chat-detail-open.sidebar-collapsed[data-mode="chat"] > .app > aside[data-fuuvo-shared-sidebar="1"] .sidebar-shell > :not(.sidebar-brand-row),
    body.chat-detail-open.sidebar-collapsed[data-mode="chat"] > .app > aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-row > .fuuvo-sidebar-brand {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.chat-detail-open.sidebar-collapsed[data-mode="chat"] > .app > aside[data-fuuvo-shared-sidebar="1"] :is(.sidebar-scroll-region, .sidebar-shell, .sidebar-brand-row) {
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body.chat-detail-open.sidebar-collapsed[data-mode="chat"] > .app > aside[data-fuuvo-shared-sidebar="1"] .sidebar-toggle-slot {
        position: absolute;
        top: 18px;
        right: -52px;
        width: 40px;
        height: 40px;
        margin: 0;
        z-index: 1000;
        pointer-events: auto;
    }

    body.chat-detail-open.sidebar-collapsed[data-mode="chat"] > .app > aside[data-fuuvo-shared-sidebar="1"] .sidebar-toggle-slot .desktop-history-toggle {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        pointer-events: auto !important;
    }

    .creation-app.sidebar-collapsed > aside[data-fuuvo-shared-sidebar="1"] .sidebar-toggle-slot .desktop-history-toggle,
    .feature-shell.sidebar-collapsed > aside[data-fuuvo-shared-sidebar="1"] .sidebar-toggle-slot .desktop-history-toggle,
    .portal-shell.sidebar-collapsed > aside[data-fuuvo-shared-sidebar="1"] .sidebar-toggle-slot .desktop-history-toggle {
        pointer-events: auto !important;
    }
}

/* Use the same segmented language control on the home/chat shell as every
   feature page. This also removes the legacy divider-only presentation. */
header[data-fuuvo-shared-topbar="1"] .ui-language-switch {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 3px !important;
    border: 1px solid #d8e1ee !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    box-shadow: none !important;
}

header[data-fuuvo-shared-topbar="1"] .ui-language-switch-btn {
    min-width: 38px !important;
    min-height: 32px !important;
    padding: 0 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid transparent !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: #7b8ca3 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

header[data-fuuvo-shared-topbar="1"] .ui-language-switch-btn.active {
    border-color: #b8d3fa !important;
    background: #eaf3ff !important;
    color: #176dcc !important;
    box-shadow: inset 0 0 0 1px rgba(23, 109, 204, .08) !important;
}

header[data-fuuvo-shared-topbar="1"] .ui-language-switch-btn + .ui-language-switch-btn {
    border-left-color: transparent !important;
}

@media (max-width: 1180px) and (min-width: 921px) {
    aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings {
        right: -56px;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings::before,
    aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings::after {
        right: 69px;
    }
}

@media (max-width: 920px) {
    aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings {
        box-sizing: border-box;
        right: 0;
        width: min(310px, calc(100vw - 24px));
        padding-left: 18px;
        padding-right: 18px;
        padding-bottom: 16px;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        overscroll-behavior: auto;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-main {
        min-height: 0;
        overflow: visible !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-row {
        min-height: 31px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) max-content;
        align-items: center;
        column-gap: 10px;
        line-height: 1.4;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-row > span:first-child {
        min-width: 0;
        overflow-wrap: normal;
        word-break: normal;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-value {
        min-width: max-content;
        display: grid;
        grid-template-columns: max-content 18px;
        align-items: center;
        justify-content: end;
        gap: 7px;
        line-height: 20px;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-value b {
        width: auto;
        max-width: none;
        overflow: visible;
        line-height: 20px;
        text-overflow: clip;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-value svg,
    aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-row > svg {
        width: 18px;
        height: 18px;
        display: block;
        align-self: center;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings::before,
    aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings::after {
        right: 13px;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-quick-settings-footer {
        min-height: 40px;
        margin: 8px -2px 0;
        padding: 8px 4px 4px;
        align-items: center;
        line-height: 1.45;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
}

/* Shared account launcher and upward-opening account card. */
aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-area {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    margin-top: 8px !important;
    padding: 0 !important;
    z-index: 70;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-menu {
    position: relative;
    width: 100%;
    display: block;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-card {
    width: 100%;
    min-height: 52px;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 0 15px 0 10px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 11px;
    border: 0 !important;
    border-radius: 999px !important;
    background: #f1f4f8 !important;
    color: #10213d !important;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease, box-shadow .18s ease;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle:hover,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-menu.is-open .sidebar-account-toggle {
    background: #eaf0f8 !important;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle::after {
    content: none !important;
    display: none !important;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle > img,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle .workspace-header-user-fallback,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle .workspace-header-user-fallback.guest-avatar {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    object-fit: cover;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle .workspace-header-user-fallback.guest-avatar {
    border: 1px solid #e3e9f2;
    background: #f7f9fc !important;
    color: #10213d !important;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle .guest-avatar svg,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle .guest-avatar img {
    width: 25px !important;
    height: 25px !important;
    display: block;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-name {
    min-width: 0;
    overflow: hidden;
    color: #10213d;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-chevron {
    width: 18px;
    height: 18px;
    display: block;
    color: #10213d;
    transition: transform .18s ease;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-menu.is-open .sidebar-account-chevron {
    transform: rotate(-90deg);
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-settings {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #10213d;
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-settings:hover {
    background: #f1f4f8;
    color: #0b6ff0;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-settings svg,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-settings img {
    width: 25px;
    height: 25px;
    display: block;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-dropdown {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: calc(100% + 8px) !important;
    width: 100%;
    min-width: 0 !important;
    padding: 0;
    display: block;
    overflow: hidden;
    border: 1px solid #e3e8f0;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(22, 39, 68, .16);
    color: #10213d;
    z-index: 100;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-dropdown.hidden {
    display: none !important;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-welcome,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-profile {
    padding: 17px 24px 13px;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-welcome > strong,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-profile > strong {
    display: block;
    margin: 0;
    color: #10213d;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-welcome > p,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-profile > p {
    margin: 5px 0 13px;
    color: #71809a;
    font-size: 12px;
    line-height: 1.45;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-primary,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-guest,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-logout {
    width: 100%;
    min-height: 34px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-primary {
    background: #0877f9;
    color: #fff !important;
    box-shadow: 0 5px 12px rgba(8, 119, 249, .18);
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-primary:hover {
    background: #006be8;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-guest,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-logout {
    min-height: 31px;
    margin-top: 2px;
    background: transparent;
    color: #0877f9 !important;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-guest:hover,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-logout:hover {
    background: #f3f7ff;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-links {
    margin: 0 24px;
    padding: 8px 0 9px;
    border-top: 1px solid #dfe5ee;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-links > a {
    min-height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 7px;
    color: #10213d !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-links > a:hover {
    background: #f6f8fb;
    color: #0877f9 !important;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-links svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: block;
}

body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle,
body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-menu.is-open .sidebar-account-toggle {
    background: #202b3d !important;
    color: #eef4ff !important;
}

body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-name,
body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-chevron {
    color: #eef4ff;
}

body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-dropdown {
    border-color: #334155;
    background: #162033;
    color: #eef4ff;
}

body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-welcome > strong,
body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-profile > strong,
body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-links > a {
    color: #eef4ff !important;
}

body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-links {
    border-top-color: #334155;
}

@media (max-width: 920px) {
    aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-card {
        grid-template-columns: minmax(0, 1fr) 42px;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-dropdown {
        max-height: min(360px, calc(100dvh - 90px));
        overflow-y: auto;
    }
}

/* Final mobile drawer invariants. Account/settings styles above deliberately
 * allow desktop overflow, so the mobile drawer must reassert its own stacking
 * and scrolling behavior after them. */
@media (max-width: 920px) {
    body.mobile-nav-open,
    body.fuuvo-mobile-sidebar-open {
        touch-action: pan-y !important;
    }

    body aside[data-fuuvo-shared-sidebar="1"],
    body [data-fuuvo-app-shell="1"] > aside[data-fuuvo-shared-sidebar="1"],
    body .creation-app > aside[data-fuuvo-shared-sidebar="1"],
    body .portal-shell > aside[data-fuuvo-shared-sidebar="1"],
    body .feature-shell > aside[data-fuuvo-shared-sidebar="1"] {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        z-index: 260 !important;
        width: min(72vw, 330px) !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch;
        backdrop-filter: none !important;
        scrollbar-width: none;
        touch-action: pan-y;
    }

    body aside[data-fuuvo-shared-sidebar="1"] .conversation-item,
    body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-list > a {
        cursor: pointer;
        touch-action: manipulation !important;
    }

    body aside[data-fuuvo-shared-sidebar="1"]::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    body .fuuvo-mobile-sidebar-backdrop {
        z-index: 250 !important;
    }

    body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand {
        min-height: 58px !important;
        margin-bottom: 24px !important;
        align-items: flex-start !important;
    }

    body aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-logo,
    body aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-logo img {
        width: 116px !important;
        height: 42px !important;
        max-width: 116px !important;
        max-height: 42px !important;
        background: transparent !important;
    }

    body aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-copy,
    body aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-suffix,
    body aside[data-fuuvo-shared-sidebar="1"] .task-list .empty-state {
        display: none !important;
    }

    body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-chinese {
        min-height: 48px !important;
    }

    body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-chinese .sidebar-brand-logo,
    body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-chinese .sidebar-brand-logo img.sidebar-brand-zh-logo {
        width: 68px !important;
        height: 29px !important;
        max-width: 68px !important;
        max-height: 29px !important;
        min-width: 68px !important;
    }

    body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-chinese .sidebar-brand-copy {
        display: none !important;
    }

    body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-list > a:not(:has(.portal-recent-icon))::before,
    body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-link:not(:has(.portal-recent-icon))::before {
        content: "";
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
        display: block;
        background: #10284c;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6.75 7.5h10.5a2.25 2.25 0 0 1 2.25 2.25v4.5a2.25 2.25 0 0 1-2.25 2.25h-6.19L8.25 19.13V16.5h-1.5a2.25 2.25 0 0 1-2.25-2.25v-4.5A2.25 2.25 0 0 1 6.75 7.5Z' stroke='%23000' stroke-width='1.6'/%3E%3Ccircle cx='9' cy='12' r='.8' fill='%23000'/%3E%3Ccircle cx='12' cy='12' r='.8' fill='%23000'/%3E%3Ccircle cx='15' cy='12' r='.8' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6.75 7.5h10.5a2.25 2.25 0 0 1 2.25 2.25v4.5a2.25 2.25 0 0 1-2.25 2.25h-6.19L8.25 19.13V16.5h-1.5a2.25 2.25 0 0 1-2.25-2.25v-4.5A2.25 2.25 0 0 1 6.75 7.5Z' stroke='%23000' stroke-width='1.6'/%3E%3Ccircle cx='9' cy='12' r='.8' fill='%23000'/%3E%3Ccircle cx='12' cy='12' r='.8' fill='%23000'/%3E%3Ccircle cx='15' cy='12' r='.8' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
    }
}

/* Final desktop shared-navigation sizing invariant. Some legacy safety styles
 * add horizontal margins to the first item; together with width:100% that
 * pushed New Chat beyond the shared sidebar edge. */
@media (min-width: 921px) {
    aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] #sidebar-new-chat,
    aside[data-fuuvo-shared-sidebar="1"] .portal-new-chat,
    aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav-btn:first-child {
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        justify-self: stretch !important;
        box-sizing: border-box !important;
    }
}

/* Final shared navigation typography. Page-specific legacy rules must not
 * change the sidebar label size between routes or responsive states. */
html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav .sidebar-nav-btn .rail-text {
    font-size: 14px !important;
    line-height: 20px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

/* Keep the Chinese and English brand assets mutually exclusive even when
 * legacy sidebar rules force logo images or bylines to display. */
html body aside[data-fuuvo-shared-sidebar="1"] [data-fuuvo-brand-language][hidden] {
    display: none !important;
}

/* Keep the account launcher fixed while the sidebar content above it owns the
 * vertical scroll surface. The safety link sticks to the bottom of that
 * surface so it remains visible immediately above the account launcher. */
aside[data-fuuvo-shared-sidebar="1"] {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region {
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: scroll;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(118, 132, 153, .42) transparent;
    padding-right: 6px;
    background: inherit;
    box-sizing: border-box;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region::-webkit-scrollbar {
    width: 5px;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region::-webkit-scrollbar-track {
    background: rgba(118, 132, 153, .08);
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(118, 132, 153, .42);
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-shell,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .history-main,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .portal-recent,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .conversation-list,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .task-list,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .portal-recent-list,
aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 20;
    margin-top: auto !important;
    border-top: 1px solid rgba(148, 163, 184, .2) !important;
    background: inherit !important;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-area,
aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-sidebar-auth {
    flex: 0 0 auto !important;
    background: inherit;
}

/* Keep a clear separator above the safety link on desktop. */
@media (min-width: 921px) {
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link {
        min-height: 44px !important;
        margin-top: auto !important;
        border-top: 0 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: #d6deea;
        pointer-events: none;
    }
}

@media (max-width: 920px) {
    body aside[data-fuuvo-shared-sidebar="1"],
    body [data-fuuvo-app-shell="1"] > aside[data-fuuvo-shared-sidebar="1"],
    body .creation-app > aside[data-fuuvo-shared-sidebar="1"],
    body .portal-shell > aside[data-fuuvo-shared-sidebar="1"],
    body .feature-shell > aside[data-fuuvo-shared-sidebar="1"] {
        overflow: hidden !important;
    }

    aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region {
        padding-right: 7px;
    }

    aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-sidebar-auth {
        padding: 12px 4px 4px;
        border-top: 1px solid #dce3ed;
        border-bottom: 0;
    }
}

/* English sidebar brand lockup: use the supplied complete transparent logo.
 * Keep these final overrides after legacy desktop and mobile image sizing rules. */
html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-english {
    min-height: 58px !important;
    gap: 0 !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-english .sidebar-brand-logo {
    width: 148px !important;
    height: 46px !important;
    min-width: 148px !important;
    max-width: 148px !important;
    flex: 0 0 148px !important;
    overflow: visible !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-en-lockup {
    width: 148px !important;
    height: 46px !important;
    position: relative !important;
    display: grid !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: transparent !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-en-lockup[hidden] {
    display: none !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-logo img.sidebar-brand-en-logo {
    width: 148px !important;
    height: 46px !important;
    min-width: 148px !important;
    max-width: 148px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    flex: 0 0 148px !important;
    display: block !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    object-fit: contain !important;
    object-position: left center !important;
}

@media (max-width: 920px) {
    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-english {
        min-height: 50px !important;
        margin-bottom: 20px !important;
        align-items: center !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-english .sidebar-brand-logo,
    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-english .sidebar-brand-en-lockup {
        width: 136px !important;
        height: 42px !important;
        min-width: 136px !important;
        max-width: 136px !important;
        flex-basis: 136px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-english .sidebar-brand-logo img.sidebar-brand-en-logo {
        width: 136px !important;
        height: 42px !important;
        min-width: 136px !important;
        max-width: 136px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        flex-basis: 136px !important;
    }
}

/* Creation history belongs to the compact/mobile navigation only. Keep this
 * final so older shared sidebar display rules cannot expose it on desktop. */
html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-mobile-only {
    display: none !important;
}

@media (max-width: 920px) {
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-mobile-only {
        display: flex !important;
    }
}

html.fuuvo-compact-mobile body aside[data-fuuvo-shared-sidebar="1"] .sidebar-mobile-only {
    display: flex !important;
}

/* The compact New Chat accordion is a phone-only navigation surface. */
html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-new-chat {
    display: none !important;
}

/* Final shared recent-list invariant. Keep home, active chat, and feature
 * pages visually aligned even when chat or feature styles load different
 * history/sidebar rules. */
html body aside[data-fuuvo-shared-sidebar="1"] .history-main,
html body aside[data-fuuvo-shared-sidebar="1"] .portal-recent {
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 0 !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-section-label,
html body aside[data-fuuvo-shared-sidebar="1"] .portal-recent > h2 {
    margin: 0 10px 7px !important;
    padding: 0 !important;
    color: #7b8ba5 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    letter-spacing: 0 !important;
    border-top: 0 !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .conversation-list,
html body aside[data-fuuvo-shared-sidebar="1"] .task-list,
html body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-list {
    display: grid !important;
    align-content: start !important;
    gap: 2px !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .conversation-item,
html body aside[data-fuuvo-shared-sidebar="1"] .task-item,
html body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-list > a,
html body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-link,
html body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-empty {
    min-height: 36px !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    color: #273447 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
    letter-spacing: 0 !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-item {
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    border-radius: 8px !important;
    color: #273447 !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-item .portal-recent-link {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 7px !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-icon {
    width: 20px !important;
    height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #273447 !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-icon svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-copy {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-time {
    min-width: 34px !important;
    color: #7788a3 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 18px !important;
    text-align: right !important;
    white-space: nowrap !important;
}

/* Keep the footer safety entry visually separated from the recent-list rule. */
aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link {
    min-height: 52px !important;
    margin-top: 8px !important;
    padding: 11px 10px 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    line-height: 20px !important;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link > :is(img.fuuvo-design-icon, .fuuvo-linear-icon) {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    display: block !important;
    object-fit: contain !important;
}

aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link > span {
    min-height: 20px;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 20px !important;
}

/* Compact, balanced desktop footer controls. */
@media (min-width: 921px) {
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link {
        min-height: 44px !important;
        margin-top: 4px !important;
        padding: 8px 10px 4px !important;
        gap: 10px !important;
        border-radius: 8px !important;
        font-size: 15px !important;
        font-weight: 500 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link::before {
        left: -10px;
        right: -10px;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-area {
        margin-top: 4px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-card,
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle {
        min-height: 44px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-card {
        grid-template-columns: minmax(0, 1fr) 40px;
        gap: 8px;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle {
        padding: 0 12px 0 10px;
        grid-template-columns: 36px minmax(0, 1fr) 18px;
        gap: 10px;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle > img,
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle .workspace-header-user-fallback,
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle .workspace-header-user-fallback.guest-avatar {
        width: 36px !important;
        height: 36px !important;
        flex-basis: 36px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-settings {
        width: 40px;
        height: 40px;
    }
}

/* Keep the safety entry directly after the recent list. The scroll region
 * already owns sidebar overflow, so this must remain in normal flow: a sticky
 * row can otherwise cover the final conversation in a short desktop window. */
html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region {
    align-content: flex-start !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .history-main,
html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .portal-recent {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link {
    position: relative !important;
    z-index: auto !important;
    margin-top: 8px !important;
    margin-bottom: 4px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    background: #ffffff !important;
}

body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link {
    background: #23272d !important;
}

@media (min-width: 921px) {
    /* Keep the safety entry visually attached to the account launcher. */
    html body aside[data-fuuvo-shared-sidebar="1"] {
        row-gap: 0 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-area {
        margin-top: 0 !important;
    }
}

body[data-mode="chat"] .history.is-conversation-view .conversation-list::after {
    content: none !important;
    display: none !important;
    min-height: 0 !important;
}

/* Keep the back icon visible and truncate only the trailing title text. */
header[data-fuuvo-shared-topbar="1"] .shell-topbar-left {
    overflow: hidden;
}

header[data-fuuvo-shared-topbar="1"] .shell-topbar-back {
    min-width: 0 !important;
    max-width: 100%;
    flex: 0 1 auto;
    overflow: hidden;
    justify-content: flex-start !important;
    text-align: left !important;
    text-overflow: clip !important;
}

header[data-fuuvo-shared-topbar="1"] .shell-topbar-back > img,
header[data-fuuvo-shared-topbar="1"] .shell-topbar-back > svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

header[data-fuuvo-shared-topbar="1"] .shell-topbar-back > span {
    width: auto;
    max-width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

@media (max-width: 920px) {
    header[data-fuuvo-shared-topbar="1"] .shell-topbar-back {
        max-width: 42vw !important;
    }
}

html body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-delete {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #8b98ab !important;
    opacity: 0 !important;
    pointer-events: none !important;
    cursor: pointer !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-delete svg {
    width: 16px !important;
    height: 16px !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-item:hover .portal-recent-delete,
html body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-delete:focus-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-delete:hover {
    background: #fff1f1 !important;
    color: #dc2626 !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .conversation-title,
html body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-link {
    color: #273447 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .conversation-item:hover,
html body aside[data-fuuvo-shared-sidebar="1"] .task-item:hover,
html body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-item:hover,
html body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-list > a:hover {
    background: #f6f9ff !important;
}

body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-section-label,
body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .portal-recent > h2 {
    color: #d9e4f2 !important;
}

body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .conversation-item,
body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .task-item,
body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .portal-recent-item,
body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .portal-recent-list > a,
body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .portal-recent-link,
body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .portal-recent-empty,
body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .conversation-title {
    color: #d9e4f2 !important;
}

body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .portal-recent-icon {
    color: #d9e4f2 !important;
}

body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .portal-recent-time,
body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .portal-recent-delete {
    color: #9eacc0 !important;
}

/* Centre the logo inside the reserved brand area so the visual spacing above
 * and below it remains balanced on both desktop and mobile sidebars. */
html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand {
    align-items: center !important;
    align-content: center !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-logo {
    margin-top: 15px !important;
}

@media (max-width: 920px) {
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-logo {
        margin-top: 8px !important;
    }
}

/* Feature pages: new chat stays neutral until the user returns to chat. */
html:not([data-ui-theme="dark"]) body aside[data-fuuvo-shared-sidebar="1"] .portal-new-chat img.rail-glyph {
    filter: none !important;
}

html:not([data-ui-theme="dark"]) body aside[data-fuuvo-shared-sidebar="1"] .portal-new-chat:hover img.rail-glyph {
    filter: none !important;
}

html:not([data-ui-theme="dark"]) body aside[data-fuuvo-shared-sidebar="1"] .portal-new-chat .portal-new-chat-glyph {
    color: #273447 !important;
}

body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .portal-new-chat .portal-new-chat-glyph path {
    stroke: #d9e4f2 !important;
}

/* Final public Recent colours: identical on home and feature pages. */
html body aside[data-fuuvo-shared-sidebar="1"] :is(.conversation-item, .task-item, .portal-recent-item) {
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

html:not([data-ui-theme="dark"]) body aside[data-fuuvo-shared-sidebar="1"] :is(.conversation-item, .task-item, .portal-recent-item):hover {
    background: #f6f9ff !important;
}

html:not([data-ui-theme="dark"]) body aside[data-fuuvo-shared-sidebar="1"] :is(.conversation-item, .task-item, .portal-recent-item).active {
    background: #e8f1ff !important;
}

body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] :is(.conversation-item, .task-item, .portal-recent-item):hover {
    background: rgba(96, 165, 250, .12) !important;
}

body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] :is(.conversation-item, .task-item, .portal-recent-item).active {
    background: rgba(37, 99, 255, .2) !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-item :is(.portal-recent-link, .portal-recent-link:hover, .portal-recent-link:focus, .portal-recent-link:active) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .portal-recent-item:hover :is(.portal-recent-link, .portal-recent-icon, .portal-recent-copy) {
    color: #8fc1ff !important;
}

html:not([data-ui-theme="dark"]) body aside[data-fuuvo-shared-sidebar="1"] .portal-recent-item:hover :is(.portal-recent-link, .portal-recent-icon, .portal-recent-copy) {
    color: #0b6ff0 !important;
}

/* Tool artwork stays transparent; the row itself carries interaction state. */
html body :is(.home-tool-drawer, .workspace-tool-drawer) .home-tool-drawer-item {
    background: transparent !important;
    box-shadow: none !important;
}

html:not([data-ui-theme="dark"]) body :is(.home-tool-drawer, .workspace-tool-drawer) .home-tool-drawer-item:is(:hover, :focus-visible) {
    background: #f2f6fc !important;
}

html:not([data-ui-theme="dark"]) body :is(.home-tool-drawer, .workspace-tool-drawer) .home-tool-drawer-item.active {
    border-color: #b9d6ff !important;
    background: #e8f2ff !important;
    color: #0b5fc7 !important;
}

body[data-ui-theme="dark"] :is(.home-tool-drawer, .workspace-tool-drawer) .home-tool-drawer-item:is(:hover, :focus-visible) {
    background: #292e36 !important;
}

body[data-ui-theme="dark"] :is(.home-tool-drawer, .workspace-tool-drawer) .home-tool-drawer-item.active {
    border-color: #365f94 !important;
    background: #223652 !important;
    color: #a9d0ff !important;
}

html body :is(.home-tool-drawer, .workspace-tool-drawer) .home-tool-drawer-item :is(.capability-icon, .core-feature-btn-icon),
html body :is(.home-tool-drawer, .workspace-tool-drawer) .home-tool-drawer-item:is(:hover, :focus-visible, .active) :is(.capability-icon, .core-feature-btn-icon) {
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Every workspace uses the same More/Recent surface. Keep the feature-page
 * variant on the same heading scale and spacing as the home history drawer. */
@media (min-width: 921px) {
    html body.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .history-main {
        gap: 7px !important;
        padding: 19px 2px 0 0 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .history-main .history-title {
        margin: 0 !important;
        padding: 0 !important;
        color: #24262a !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
    }

    body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .history-main .history-title {
        color: #d9e4f2 !important;
    }
}

/* The More drawer is one shared surface on home and feature workspaces.
 * Feature pages also carry legacy sticky-sidebar rules, so reassert the
 * desktop drawer geometry after those rules have loaded. */
@media (min-width: 921px) {
    html body.home-history-drawer-open [data-fuuvo-app-shell="1"] > aside[data-fuuvo-shared-sidebar="1"][data-fuuvo-sidebar-context]:not([data-fuuvo-sidebar-context="home"]) {
        position: fixed !important;
        top: 12px !important;
        bottom: 12px !important;
        left: calc(var(--fuuvo-workspace-rail-width) + 10px) !important;
        width: min(var(--fuuvo-workspace-drawer-width), calc(100vw - var(--fuuvo-workspace-rail-width) - 28px)) !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        align-self: auto !important;
        display: grid !important;
        padding: 14px 12px 12px !important;
        grid-template-rows: minmax(0, 1fr) auto !important;
        gap: 6px !important;
        overflow: hidden !important;
        border: 1px solid #dfe4eb !important;
        border-radius: 8px !important;
        background: var(--fuuvo-workspace-drawer-bg) !important;
        box-shadow: 0 18px 48px rgba(20, 28, 42, .16) !important;
    }

    html body.home-history-drawer-open [data-fuuvo-app-shell="1"] > aside[data-fuuvo-shared-sidebar="1"][data-fuuvo-sidebar-context]:not([data-fuuvo-sidebar-context="home"]) {
        width: 336px !important;
        min-width: 336px !important;
    }

    html body.home-history-drawer-open [data-fuuvo-app-shell="1"] > aside[data-fuuvo-shared-sidebar="1"][data-fuuvo-sidebar-context]:not([data-fuuvo-sidebar-context="home"]) .sidebar-scroll-region {
        padding: 0 4px 0 0 !important;
    }

    html body.home-history-drawer-open [data-fuuvo-app-shell="1"] > aside[data-fuuvo-shared-sidebar="1"][data-fuuvo-sidebar-context]:not([data-fuuvo-sidebar-context="home"]) .sidebar-section-label {
        padding: 0 10px 7px !important;
        color: #8a8d94 !important;
        font-size: 12px !important;
        font-weight: 600 !important;
    }

    html body.home-history-drawer-open [data-fuuvo-app-shell="1"] > aside[data-fuuvo-shared-sidebar="1"][data-fuuvo-sidebar-context]:not([data-fuuvo-sidebar-context="home"]) .portal-recent-empty {
        padding: 18px 10px !important;
        color: #92959c !important;
        font-size: 12px !important;
        line-height: 1.6 !important;
        text-align: left !important;
    }
}

/* Final overflow escape hatch for the quick-settings popover.  These rules
 * intentionally stay last because shared drawer geometry restores overflow:
 * hidden for the sidebar surface. */
html body aside[data-fuuvo-shared-sidebar="1"].is-quick-settings-open,
html body aside[data-fuuvo-shared-sidebar="1"]:has(.sidebar-quick-settings:not(.hidden)) {
    overflow: visible !important;
}

@media (min-width: 921px) {
    html body.home-history-drawer-open [data-fuuvo-app-shell="1"] > aside[data-fuuvo-shared-sidebar="1"][data-fuuvo-sidebar-context]:not([data-fuuvo-sidebar-context="home"]).is-quick-settings-open,
    html body.home-history-drawer-open [data-fuuvo-app-shell="1"] > aside[data-fuuvo-shared-sidebar="1"][data-fuuvo-sidebar-context]:not([data-fuuvo-sidebar-context="home"]):has(.sidebar-quick-settings:not(.hidden)) {
        overflow: visible !important;
    }
}

@media (max-width: 920px) {
    html body aside[data-fuuvo-shared-sidebar="1"].is-quick-settings-open,
    html body aside[data-fuuvo-shared-sidebar="1"]:has(.sidebar-quick-settings:not(.hidden)),
    html body [data-fuuvo-app-shell="1"] > aside[data-fuuvo-shared-sidebar="1"].is-quick-settings-open,
    html body [data-fuuvo-app-shell="1"] > aside[data-fuuvo-shared-sidebar="1"]:has(.sidebar-quick-settings:not(.hidden)),
    html body .creation-app > aside[data-fuuvo-shared-sidebar="1"].is-quick-settings-open,
    html body .creation-app > aside[data-fuuvo-shared-sidebar="1"]:has(.sidebar-quick-settings:not(.hidden)),
    html body .portal-shell > aside[data-fuuvo-shared-sidebar="1"].is-quick-settings-open,
    html body .portal-shell > aside[data-fuuvo-shared-sidebar="1"]:has(.sidebar-quick-settings:not(.hidden)),
    html body .feature-shell > aside[data-fuuvo-shared-sidebar="1"].is-quick-settings-open,
    html body .feature-shell > aside[data-fuuvo-shared-sidebar="1"]:has(.sidebar-quick-settings:not(.hidden)) {
        overflow: visible !important;
    }
}

/* Mobile keeps the account card inside the More drawer.  The separate rail
 * launcher duplicates that control at the lower-right corner and leaves too
 * little room for the drawer footer. */
@media (max-width: 920px) {
    html body [data-fuuvo-account-portal="1"] {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region {
        position: relative !important;
        padding-bottom: 60px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link {
        position: absolute !important;
        left: 0 !important;
        right: 7px !important;
        bottom: 0 !important;
        z-index: 20 !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 52px !important;
        height: auto !important;
        margin: 0 !important;
        padding: 9px 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 9px !important;
        overflow: visible !important;
        border-top: 1px solid rgba(148, 163, 184, .2) !important;
        background: #ffffff !important;
        white-space: normal !important;
        text-overflow: clip !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link > span:last-child {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        display: block !important;
        overflow: visible !important;
        color: inherit !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        text-overflow: clip !important;
    }

    body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link {
        background: #23272d !important;
    }
}

/* Safety pages need a bounded content viewport so long articles can scroll
 * independently from the fixed shared shell and sidebar. */
@media (min-width: 921px) {
    html body.safety-portal-page > .portal-shell {
        height: 100vh !important;
        min-height: 100vh !important;
        overflow: hidden !important;
    }

    html body.safety-portal-page > .portal-shell > .portal-content {
        height: 100vh !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    html body.safety-portal-page > .portal-shell > .portal-content > .portal-main {
        flex: 1 1 auto !important;
        height: auto !important;
        min-height: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
    }
}

/* Shared phone sidebar contract. Chat has a dedicated navigation sheet, but
 * creation, research, and other workspaces only load this shared sheet. Keep
 * the drawer geometry and accordion controls identical on every route. */
@media (max-width: 920px) {
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-row {
        min-height: 46px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand,
    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-english,
    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-chinese {
        min-height: 40px !important;
        height: 40px !important;
        margin: 0 0 12px !important;
        padding: 0 4px !important;
        align-items: center !important;
        gap: 0 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-english .sidebar-brand-logo,
    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-english .sidebar-brand-en-lockup,
    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-english .sidebar-brand-logo img.sidebar-brand-en-logo {
        width: 112px !important;
        min-width: 112px !important;
        max-width: 112px !important;
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        flex: 0 0 112px !important;
        flex-basis: 112px !important;
        margin-top: 0 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-chinese .sidebar-brand-logo,
    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-chinese .sidebar-brand-logo img.sidebar-brand-zh-logo {
        width: 66px !important;
        min-width: 66px !important;
        max-width: 66px !important;
        height: 27px !important;
        min-height: 27px !important;
        max-height: 27px !important;
        flex: 0 0 66px !important;
        flex-basis: 66px !important;
        margin-top: 0 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-auto-flow: row !important;
        gap: 2px !important;
        padding: 0 0 10px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav .sidebar-nav-btn,
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav .sidebar-nav-btn:first-child {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
        margin: 0 !important;
        padding: 0 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        border-radius: 10px !important;
        font-size: 14px !important;
        line-height: 20px !important;
        text-align: left !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav .sidebar-nav-btn .rail-icon,
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav .sidebar-nav-btn:first-child .rail-icon {
        width: 100% !important;
        min-width: 0 !important;
        height: 100% !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        overflow: visible !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav .sidebar-nav-btn .rail-glyph,
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav .sidebar-nav-btn .rail-glyph :is(svg, .fuuvo-asset-icon, .fuuvo-linear-svg) {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
        flex: 0 0 18px !important;
        display: block !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav .sidebar-nav-btn .rail-text {
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        color: inherit !important;
        font-size: 14px !important;
        line-height: 20px !important;
        font-weight: 600 !important;
        text-align: left !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-groups {
        display: grid !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 0 8px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-group {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        border-top: 1px solid #e1e8f2 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-group-toggle {
        width: 100% !important;
        min-width: 0 !important;
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
        margin: 0 !important;
        padding: 0 4px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        border: 0 !important;
        border-radius: 0 !important;
        appearance: none !important;
        background: transparent !important;
        color: #34445c !important;
        font: inherit !important;
        font-size: 14px !important;
        font-weight: 720 !important;
        line-height: 20px !important;
        text-align: left !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-group-toggle > span {
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-group-toggle svg {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        min-height: 16px !important;
        flex: 0 0 16px !important;
        display: block !important;
        transition: transform .18s ease !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-group.is-open .fuuvo-mobile-tool-group-toggle svg {
        transform: rotate(180deg) !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-group-content {
        width: 100% !important;
        padding: 0 0 10px !important;
        box-sizing: border-box !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-group-content[hidden] {
        display: none !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 4px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-grid > a {
        min-width: 0 !important;
        min-height: 68px !important;
        padding: 7px 3px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        border: 1px solid transparent !important;
        border-radius: 9px !important;
        color: #56657b !important;
        font-size: 11px !important;
        font-weight: 650 !important;
        line-height: 15px !important;
        text-align: center !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-icon {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
        flex: 0 0 24px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-icon :is(svg, .fuuvo-asset-icon, .fuuvo-linear-svg) {
        width: 22px !important;
        height: 22px !important;
        max-width: 22px !important;
        max-height: 22px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-grid > a:is(:hover, :focus-visible, :active),
    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-group-toggle:is(:hover, :focus-visible),
    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-group.is-open .fuuvo-mobile-tool-group-toggle {
        outline: none !important;
        color: #1769d4 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region {
        position: relative !important;
        padding-bottom: 60px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link {
        position: absolute !important;
        left: 0 !important;
        right: 7px !important;
        bottom: 0 !important;
        z-index: 20 !important;
        width: auto !important;
        min-width: 0 !important;
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
        margin: 0 !important;
        padding: 9px 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 9px !important;
        overflow: visible !important;
        white-space: normal !important;
        text-overflow: clip !important;
        box-sizing: border-box !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link > span:last-child {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        display: block !important;
        overflow: visible !important;
        line-height: 18px !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        text-overflow: clip !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-area {
        flex: 0 0 auto !important;
        min-height: 63px !important;
    }
}

@media (max-width: 380px) {
    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-group-toggle {
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-grid > a {
        min-height: 64px !important;
        font-size: 10px !important;
    }
}

html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-group,
html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-group {
    border-top-color: #2d3a4d !important;
}

html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-group-toggle,
html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-group-toggle {
    color: #dce6f6 !important;
}

html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-grid > a,
html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-grid > a {
    color: #becbe0 !important;
}

html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-grid > a:is(:hover, :focus-visible, :active),
html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-grid > a:is(:hover, :focus-visible, :active),
html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-group-toggle:is(:hover, :focus-visible),
html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-group-toggle:is(:hover, :focus-visible),
html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-group.is-open .fuuvo-mobile-tool-group-toggle,
html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-group.is-open .fuuvo-mobile-tool-group-toggle {
    color: #a9d0ff !important;
}

html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link,
html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link {
    background: #151a23 !important;
    border-top-color: #2d3a4d !important;
}

/* Home brand v2: both language variants use the supplied transparent Logo.
 * The animated layer is lazy-loaded by fuuvo-chat-app.js and occupies the
 * exact same box as the static layer to keep the navigation layout stable. */
html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-fuuvo-v2 {
    transform: none !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-fuuvo-v2::before,
html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-fuuvo-v2::after {
    display: none !important;
    content: none !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-fuuvo-v2 .sidebar-brand-logo {
    position: relative !important;
    display: block !important;
    width: 148px !important;
    height: 56px !important;
    min-width: 148px !important;
    min-height: 56px !important;
    max-width: 148px !important;
    max-height: 56px !important;
    flex: 0 0 148px !important;
    margin-top: 0 !important;
    overflow: visible !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-fuuvo-v2
    .sidebar-brand-en-lockup,
html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-fuuvo-v2
    .sidebar-brand-zh-lockup {
    position: relative !important;
    display: grid !important;
    width: 148px !important;
    height: 56px !important;
    min-width: 148px !important;
    min-height: 56px !important;
    max-width: 148px !important;
    max-height: 56px !important;
    align-items: center !important;
    justify-items: start !important;
    overflow: visible !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-fuuvo-v2
    :is(.sidebar-brand-en-lockup, .sidebar-brand-zh-lockup)[hidden] {
    display: none !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-fuuvo-v2
    .sidebar-brand-logo :is(.sidebar-brand-logo-static, .sidebar-brand-logo-hover) {
    grid-area: 1 / 1 !important;
    display: block !important;
    width: 148px !important;
    height: 56px !important;
    min-width: 148px !important;
    min-height: 56px !important;
    max-width: 148px !important;
    max-height: 56px !important;
    flex: 0 0 148px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    object-fit: contain !important;
    object-position: left center !important;
    pointer-events: none !important;
    transition: opacity 120ms ease, visibility 120ms ease !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-fuuvo-v2
    .sidebar-brand-logo-hover {
    visibility: hidden !important;
    opacity: 0 !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-fuuvo-v2.is-fuuvo-video-playing
    .sidebar-brand-logo-static {
    visibility: hidden !important;
    opacity: 0 !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-fuuvo-v2.is-fuuvo-video-playing
    .sidebar-brand-logo-hover {
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 920px) {
    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-fuuvo-v2 {
        min-height: 48px !important;
        height: 48px !important;
        margin-bottom: 12px !important;
        padding: 0 4px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-fuuvo-v2 .sidebar-brand-logo,
    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-fuuvo-v2
        :is(.sidebar-brand-en-lockup, .sidebar-brand-zh-lockup),
    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-fuuvo-v2
        .sidebar-brand-logo :is(.sidebar-brand-logo-static, .sidebar-brand-logo-hover) {
        width: 120px !important;
        height: 44px !important;
        min-width: 120px !important;
        min-height: 44px !important;
        max-width: 120px !important;
        max-height: 44px !important;
        flex-basis: 120px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-fuuvo-v2.is-fuuvo-video-playing
        .sidebar-brand-logo-static {
        visibility: visible !important;
        opacity: 1 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-fuuvo-v2.is-fuuvo-video-playing
        .sidebar-brand-logo-hover {
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* Keep the shared tools drawer on feature workspaces pixel-aligned with the
 * current home drawer. These rules intentionally live last because older
 * feature-page styles are still loaded by a few legacy templates. */
@media (min-width: 921px) {
    html body [data-fuuvo-app-shell="1"] > .home-tool-drawer {
        top: 12px !important;
        bottom: 12px !important;
        left: calc(var(--fuuvo-workspace-rail-width) + 10px) !important;
        width: min(var(--fuuvo-workspace-drawer-width), calc(100vw - var(--fuuvo-workspace-rail-width) - 28px)) !important;
        border-radius: 8px !important;
        box-shadow: 0 18px 48px rgba(20, 28, 42, .16) !important;
    }

    html body .home-tool-drawer-header {
        min-height: 68px !important;
        padding: 14px 16px 11px !important;
    }

    html body .home-tool-drawer-scroll {
        padding: 7px 10px 14px !important;
        gap: 7px !important;
    }

    html body .home-tool-group {
        padding: 9px 5px 11px !important;
        gap: 8px !important;
    }

    html body .home-tool-grid {
        gap: 4px !important;
    }

    html body .home-tool-drawer-item {
        height: 78px !important;
        min-height: 78px !important;
        padding: 8px 4px !important;
        gap: 5px !important;
        border-radius: 8px !important;
        font-size: 12px !important;
        line-height: 1.25 !important;
        font-weight: 600 !important;
    }

    html body .home-tool-drawer-item .capability-icon {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        flex-basis: 34px !important;
    }

    html body .home-tool-drawer-item:hover,
    html body .home-tool-drawer-item:focus-visible,
    html body .home-tool-drawer-item.active {
        border-color: #e2e5e9 !important;
        background: #f1f3f5 !important;
        color: #172033 !important;
    }
}

@media (min-width: 921px) {
    body[data-ui-theme="dark"] [data-fuuvo-app-shell="1"] > .home-tool-drawer {
        border-color: #343940 !important;
        background: #1d2025 !important;
        box-shadow: 0 18px 42px rgba(0, 0, 0, .34) !important;
    }

    body[data-ui-theme="dark"] .home-tool-group h2 {
        color: #edf0f4 !important;
    }

    body[data-ui-theme="dark"] .home-tool-drawer-item {
        color: #cbd1d9 !important;
    }

    body[data-ui-theme="dark"] .home-tool-drawer-item:hover,
    body[data-ui-theme="dark"] .home-tool-drawer-item:focus-visible,
    body[data-ui-theme="dark"] .home-tool-drawer-item.active {
        border-color: #3c444f !important;
        background: #2b3139 !important;
        color: #ffffff !important;
    }
}

/* Canonical More/Recent surface. Both home and feature pages keep their own
 * data loader, while this shared panel owns the heading, spacing, and scroll
 * viewport so the drawer does not change shape between routes. */
@media (min-width: 921px) {
    html body.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .workspace-recent-panel {
        display: flex !important;
        min-height: 0 !important;
        margin: 12px 0 0 !important;
        padding: 19px 2px 0 0 !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        gap: 7px !important;
        overflow: hidden !important;
        border-top: 1px solid rgba(148, 163, 184, .18) !important;
    }

    html body.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .workspace-recent-head {
        display: flex !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: flex-start !important;
    }

    html body.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .workspace-recent-panel > .sidebar-section-label {
        margin: 0 !important;
        padding: 0 10px 7px !important;
        color: #8a8d94 !important;
        font-size: 12px !important;
        font-weight: 600 !important;
    }

    html body.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .workspace-recent-panel > :is(.task-list, .portal-recent-list) {
        display: grid !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 2px 4px !important;
        flex: 1 1 auto !important;
        align-content: start !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        scrollbar-width: thin !important;
        scrollbar-color: rgba(118, 132, 153, .46) transparent !important;
    }

    html body.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .workspace-recent-panel > :is(.task-list, .portal-recent-list)::-webkit-scrollbar {
        width: 6px;
    }

    html body.home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .workspace-recent-panel > :is(.task-list, .portal-recent-list)::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(118, 132, 153, .46);
    }

    html body[data-ui-theme="dark"].home-history-drawer-open aside[data-fuuvo-shared-sidebar="1"] .workspace-recent-panel > .sidebar-section-label {
        color: #9ca7b6 !important;
    }
}

@media (min-width: 921px) {
    /* The shared skills drawer reuses a few legacy homepage capability names
     * (core-feature-btn). Those names still have global theme rules, which
     * made only Data analysis/Office hub/utility items look like bordered
     * cards on feature pages. Keep the desktop drawer on the same transparent
     * tile system as the homepage while preserving its hover and active
     * states. */
    html body [data-fuuvo-app-shell="1"] > .home-tool-drawer .home-tool-drawer-item.core-feature-btn {
        border: 1px solid transparent !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html body [data-fuuvo-app-shell="1"] > .home-tool-drawer .home-tool-drawer-item.core-feature-btn:is(:hover, :focus-visible) {
        border-color: #d9dadd !important;
        background: #e7e7e9 !important;
        color: #1c1e22 !important;
    }

    html body [data-fuuvo-app-shell="1"] > .home-tool-drawer .home-tool-drawer-item.core-feature-btn.active {
        border-color: #b9d6ff !important;
        background: #e8f2ff !important;
        color: #0b5fc7 !important;
    }

    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) [data-fuuvo-app-shell="1"] > .home-tool-drawer .home-tool-drawer-item.core-feature-btn {
        border-color: transparent !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) [data-fuuvo-app-shell="1"] > .home-tool-drawer .home-tool-drawer-item.core-feature-btn:is(:hover, :focus-visible) {
        border-color: #3c444f !important;
        background: #2b3139 !important;
        color: #ffffff !important;
    }

    :is(html[data-ui-theme="dark"], body[data-ui-theme="dark"]) [data-fuuvo-app-shell="1"] > .home-tool-drawer .home-tool-drawer-item.core-feature-btn.active {
        border-color: #365f94 !important;
        background: #223652 !important;
        color: #a9d0ff !important;
    }
}

/* Mobile sidebar final pass. This intentionally follows all route-specific
 * styles above so the compact navigation contract wins on every workspace. */
@media (max-width: 920px) {
    html body aside[data-fuuvo-shared-sidebar="1"] {
        display: flex !important;
        flex-direction: column !important;
        width: min(84vw, 348px) !important;
        padding: 16px 14px max(10px, env(safe-area-inset-bottom)) !important;
        overflow: hidden !important;
        background: #ffffff !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region {
        min-height: 0 !important;
        padding: 0 5px 0 0 !important;
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        scrollbar-width: none !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-mobile-home,
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-mobile-home.sidebar-nav-btn {
        display: flex !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-mobile-hide,
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-mobile-hide-history,
    html body aside[data-fuuvo-shared-sidebar="1"] #sidebar-new-chat,
    html body aside[data-fuuvo-shared-sidebar="1"] .portal-new-chat,
    html body aside[data-fuuvo-shared-sidebar="1"] #sidebar-creation-history {
        display: none !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 2px !important;
        padding: 0 0 10px !important;
        border-bottom: 1px solid #e1e8f2 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav .sidebar-nav-btn {
        width: 100% !important;
        min-width: 0 !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        margin: 0 !important;
        padding: 0 9px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        border: 0 !important;
        border-radius: 9px !important;
        background: transparent !important;
        color: #24344d !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 20px !important;
        text-align: left !important;
        text-decoration: none !important;
        white-space: nowrap !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav .sidebar-nav-btn:is(:hover, :focus-visible, .active) {
        background: #edf4ff !important;
        color: #1769d4 !important;
        outline: none !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav .sidebar-nav-btn .rail-icon {
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav .sidebar-nav-btn .rail-glyph,
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav .sidebar-nav-btn .rail-glyph :is(svg, .fuuvo-asset-icon, .fuuvo-linear-svg) {
        width: 19px !important;
        height: 19px !important;
        min-width: 19px !important;
        min-height: 19px !important;
        max-width: 19px !important;
        max-height: 19px !important;
        flex: 0 0 19px !important;
        display: block !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav .sidebar-nav-btn .rail-text {
        min-width: 0 !important;
        overflow: hidden !important;
        color: inherit !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 20px !important;
        text-align: left !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-new-chat {
        display: block !important;
        margin: 0 !important;
        border-bottom: 1px solid #e1e8f2 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-new-chat-toggle {
        width: 100% !important;
        height: 46px !important;
        min-height: 46px !important;
        padding: 0 9px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        border: 0 !important;
        border-radius: 9px !important;
        background: transparent !important;
        color: #24344d !important;
        font: inherit !important;
        font-size: 14px !important;
        font-weight: 650 !important;
        line-height: 20px !important;
        text-align: left !important;
        cursor: pointer !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-new-chat-toggle:is(:hover, :focus-visible),
    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-new-chat.is-open .fuuvo-mobile-new-chat-toggle {
        background: #f2f6fb !important;
        color: #1769d4 !important;
        outline: none !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-new-chat-toggle .rail-icon {
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-new-chat-toggle .rail-glyph {
        width: 19px !important;
        height: 19px !important;
        min-width: 19px !important;
        min-height: 19px !important;
        flex: 0 0 19px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-new-chat-toggle > svg {
        width: 17px !important;
        height: 17px !important;
        flex: 0 0 17px !important;
        display: block !important;
        transition: transform .18s ease !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-new-chat.is-open .fuuvo-mobile-new-chat-toggle > svg {
        transform: rotate(180deg) !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-new-chat-content[hidden] {
        display: none !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-new-chat-content {
        width: 100% !important;
        padding: 0 0 2px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-groups {
        padding: 0 0 4px !important;
        display: grid !important;
        gap: 0 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-group {
        border-top: 0 !important;
        border-bottom: 1px solid #edf1f6 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-group-toggle {
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        padding: 0 9px 0 38px !important;
        color: #52637b !important;
        font-size: 13px !important;
        font-weight: 650 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-group-content {
        padding: 0 5px 8px 38px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 3px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-grid > a {
        min-height: 42px !important;
        padding: 5px 4px !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        border-radius: 7px !important;
        font-size: 11px !important;
        line-height: 15px !important;
        text-align: left !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-icon {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        flex: 0 0 20px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-icon :is(svg, .fuuvo-asset-icon, .fuuvo-linear-svg) {
        width: 18px !important;
        height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .workspace-recent-panel {
        min-height: 0 !important;
        margin: 0 !important;
        padding: 14px 4px 8px !important;
        display: block !important;
        flex: 0 0 auto !important;
        overflow: visible !important;
        border-top: 0 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .workspace-recent-panel .history-head {
        display: none !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .workspace-recent-panel .sidebar-section-label {
        margin: 0 5px 6px !important;
        color: #7b8ba5 !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 18px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .workspace-recent-panel :is(.conversation-list, .task-list, .portal-recent-list) {
        max-height: none !important;
        display: grid !important;
        gap: 2px !important;
        overflow: visible !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-sidebar-auth {
        display: none !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link {
        position: sticky !important;
        left: auto !important;
        right: auto !important;
        bottom: 0 !important;
        z-index: 20 !important;
        width: 100% !important;
        height: 45px !important;
        min-height: 45px !important;
        max-height: 45px !important;
        margin: auto 0 0 !important;
        padding: 8px 9px !important;
        display: flex !important;
        align-items: center !important;
        gap: 9px !important;
        border-top: 1px solid #e1e8f2 !important;
        background: #ffffff !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-area {
        width: 100% !important;
        min-height: 56px !important;
        margin: 0 !important;
        padding: 6px 0 0 !important;
        display: block !important;
        flex: 0 0 auto !important;
        border-top: 1px solid #e1e8f2 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-card {
        min-height: 48px !important;
        grid-template-columns: minmax(0, 1fr) 44px !important;
        gap: 7px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle {
        min-height: 48px !important;
        padding: 0 8px !important;
        grid-template-columns: 38px minmax(0, 1fr) 18px !important;
        gap: 9px !important;
        border-radius: 10px !important;
        background: transparent !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle > img,
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle .workspace-header-user-fallback,
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle .workspace-header-user-fallback.guest-avatar {
        width: 38px !important;
        height: 38px !important;
        flex-basis: 38px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-name,
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-chevron {
        display: none !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-settings {
        width: 42px !important;
        height: 42px !important;
        border-radius: 10px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-settings svg,
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-settings img {
        width: 21px !important;
        height: 21px !important;
    }

    html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"],
    html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] {
        background: #151a23 !important;
    }

    html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav,
    html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-new-chat,
    html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-area,
    html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link,
    html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav,
    html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-new-chat,
    html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-area,
    html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link {
        border-color: #2d3a4d !important;
    }

    html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav .sidebar-nav-btn,
    html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-new-chat-toggle,
    html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav .sidebar-nav-btn,
    html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-new-chat-toggle {
        color: #dce6f6 !important;
    }

    html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav .sidebar-nav-btn:is(:hover, :focus-visible, .active),
    html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-new-chat-toggle:is(:hover, :focus-visible),
    html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-new-chat.is-open .fuuvo-mobile-new-chat-toggle,
    html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav .sidebar-nav-btn:is(:hover, :focus-visible, .active),
    html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-new-chat-toggle:is(:hover, :focus-visible),
    html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-new-chat.is-open .fuuvo-mobile-new-chat-toggle {
        background: #223652 !important;
        color: #a9d0ff !important;
    }
}

/* The brand-motion stylesheet hides the source mark while it paints its
 * masked pseudo-element. The shared sidebar uses the supplied static/GIF
 * lockups directly, so keep that artwork visible in both languages. */
html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-fuuvo-v2 .sidebar-brand-logo {
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 920px) {
    /* Page-specific creation styles set every portal-nav row to flex. Keep
     * the legacy standalone New Chat row hidden so the shared accordion below
     * Research remains the only mobile entry point. */
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav .sidebar-mobile-hide,
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav .sidebar-mobile-hide-history,
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav #sidebar-new-chat,
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav .portal-new-chat,
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav #sidebar-creation-history {
        display: none !important;
    }
}

/* Mobile sidebar cleanup: the capability catalogue is now shown directly
 * below Research, without a redundant New Chat row or stacked rules. */
@media (max-width: 920px) {
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav,
    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-new-chat,
    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-group,
    html body aside[data-fuuvo-shared-sidebar="1"] .workspace-recent-panel,
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link,
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-area {
        border-top: 0 !important;
        border-bottom: 0 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-new-chat-content {
        display: block !important;
    }
}

/* Mobile sidebar spacing: keep the catalogue in normal flow so Recent follows
 * Utilities immediately, and keep Safety attached to the account launcher. */
@media (max-width: 920px) {
    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand.is-fuuvo-v2 {
        transform: translateY(-6px) !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-shell {
        flex: 0 0 auto !important;
        overflow: visible !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region {
        padding-bottom: 0 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .workspace-recent-panel {
        padding-top: 4px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link {
        bottom: 0 !important;
        margin-top: auto !important;
        margin-bottom: 0 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-area {
        min-height: 56px !important;
        padding-top: 2px !important;
    }
}

/* Keep the account popup typography aligned with the shared sidebar labels.
 * The popup uses a separate portal surface, so its legacy 16px action text
 * otherwise reads noticeably larger and heavier than the rest of the rail. */
[data-fuuvo-account-portal="1"] .workspace-account-profile-copy strong {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-profile-copy p {
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 18px !important;
}

[data-fuuvo-account-portal="1"] .workspace-account-actions > a,
[data-fuuvo-account-portal="1"] .workspace-account-actions > button {
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
}

/* The Chinese v2 lockup is shared by every non-home portal. The rail can be
 * 72px or 104px wide depending on the page, while the legacy 148px brand box
 * clipped the wordmark and made the logo appear corrupted. Fit the complete
 * artwork to the available rail width and leave the English lockup untouched. */
@media (min-width: 921px) {
    /* The rail contains both language lockups so the client can switch
     * language without rebuilding the shell. Legacy image rules use
     * display:block !important, which otherwise overrides the HTML hidden
     * attribute and paints the English and Chinese marks on top of each
     * other on feature pages. */
    html body:not(.chat-landing) nav[data-fuuvo-workspace-rail="1"]
        .home-rail-logo > .home-rail-logo-wordmark[hidden] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    html body:not(.chat-landing) nav[data-fuuvo-workspace-rail="1"]
        .home-rail-logo > .home-rail-logo-wordmark:not([hidden]) {
        display: block !important;
        visibility: visible !important;
    }

    /* Keep feature-page rails visually identical to the home rail. The base
     * portal rule leaves this mark at 50px, which makes the Chinese wordmark
     * look compressed beside the same navigation on the home page. */
    html body:not(.chat-landing) nav[data-fuuvo-workspace-rail="1"] .home-rail-logo.is-fuuvo-v2 {
        width: 64px !important;
        height: 40px !important;
        min-height: 40px !important;
        margin-bottom: 6px !important;
    }

    html body:not(.chat-landing) nav[data-fuuvo-workspace-rail="1"]
        .home-rail-logo.is-fuuvo-v2 .home-rail-logo-wordmark {
        width: 52px !important;
        max-width: 52px !important;
        max-height: 29px !important;
        object-fit: contain !important;
    }

    html body:not(.chat-landing) aside[data-fuuvo-shared-sidebar="1"]
        .fuuvo-sidebar-brand.is-fuuvo-v2 .sidebar-brand-logo,
    html body:not(.chat-landing) aside[data-fuuvo-shared-sidebar="1"]
        .fuuvo-sidebar-brand.is-fuuvo-v2
        :is(.sidebar-brand-en-lockup, .sidebar-brand-zh-lockup) {
        width: min(84px, calc(100% - 16px)) !important;
        min-width: 0 !important;
        max-width: 84px !important;
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        flex: 0 1 auto !important;
        flex-basis: auto !important;
        overflow: visible !important;
    }

    html body:not(.chat-landing) aside[data-fuuvo-shared-sidebar="1"]
        .fuuvo-sidebar-brand.is-fuuvo-v2
        .sidebar-brand-logo :is(.sidebar-brand-logo-static, .sidebar-brand-logo-hover) {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 84px !important;
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        object-fit: contain !important;
        object-position: left center !important;
    }
}

/* Mobile sidebar: the nav footer and the first capability group must not
 * render two adjacent separators between Creation Centre and Chat & research. */
@media (max-width: 920px) {
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav {
        border-bottom: 1px solid #e1e8f2 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-mobile-tool-group:first-child {
        border-top: 0 !important;
    }

    html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav,
    html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-nav.portal-nav {
        border-bottom-color: #2d3a4d !important;
    }
}

/* Sidebar brand mark: both language variants use the supplied transparent
 * icon only. Keep a fixed box in every viewport so legacy wordmark rules and
 * brand-motion layers cannot change the sidebar geometry. */
html body nav[data-fuuvo-workspace-rail="1"] .home-rail-logo {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

html body nav[data-fuuvo-workspace-rail="1"] .home-rail-logo-mark {
    display: block !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    flex: 0 0 36px !important;
    object-fit: contain !important;
    object-position: center !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

html body nav[data-fuuvo-workspace-rail="1"] .home-rail-logo::before,
html body nav[data-fuuvo-workspace-rail="1"] .home-rail-logo::after,
html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand::before,
html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .fuuvo-sidebar-brand {
    align-items: center !important;
    align-content: center !important;
    justify-items: center !important;
}

html body aside[data-fuuvo-shared-sidebar="1"]
    .brand.fuuvo-sidebar-brand[data-fuuvo-sidebar-brand] .sidebar-brand-logo {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    flex: 0 0 36px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
}

html body aside[data-fuuvo-shared-sidebar="1"]
    .brand.fuuvo-sidebar-brand[data-fuuvo-sidebar-brand] .sidebar-brand-logo-mark {
    display: block !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    flex: 0 0 36px !important;
    object-fit: contain !important;
    object-position: center !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-brand-logo
    :is(.sidebar-brand-logo-static, .sidebar-brand-logo-hover),
html body nav[data-fuuvo-workspace-rail="1"]
    :is(.home-rail-logo-wordmark, .home-rail-logo-wordmark-static, .home-rail-logo-wordmark-hover) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 920px) {
    html body aside[data-fuuvo-shared-sidebar="1"]
        .brand.fuuvo-sidebar-brand[data-fuuvo-sidebar-brand] .sidebar-brand-logo,
    html body aside[data-fuuvo-shared-sidebar="1"]
        .brand.fuuvo-sidebar-brand[data-fuuvo-sidebar-brand] .sidebar-brand-logo-mark {
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        flex-basis: 36px !important;
        margin: 0 auto !important;
    }
}

/* Restore the phone sidebar footer layout: Recent owns the flexible middle
 * space, Safety stays anchored above the account row, and the account label
 * remains visible beside the avatar. */
@media (max-width: 920px) {
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region {
        position: relative !important;
        padding-bottom: 52px !important;
        align-content: stretch !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .workspace-recent-panel {
        min-height: 0 !important;
        margin: 0 !important;
        padding: 14px 4px 8px !important;
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        overflow: visible !important;
        border-top: 0 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .workspace-recent-panel .sidebar-section-label {
        flex: 0 0 auto !important;
        margin: 0 5px 6px !important;
        color: #24344d !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 18px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .workspace-recent-panel :is(.conversation-list, .task-list, .portal-recent-list) {
        flex: 0 0 auto !important;
        max-height: none !important;
        display: grid !important;
        gap: 2px !important;
        overflow: visible !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link {
        position: absolute !important;
        left: 0 !important;
        right: 7px !important;
        bottom: 0 !important;
        z-index: 20 !important;
        width: auto !important;
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
        margin: 0 !important;
        padding: 9px 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 9px !important;
        border-top: 1px solid #e1e8f2 !important;
        background: #ffffff !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        white-space: normal !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-area {
        width: 100% !important;
        min-height: 62px !important;
        margin: 0 !important;
        padding: 7px 0 0 !important;
        display: block !important;
        flex: 0 0 auto !important;
        border-top: 0 !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-card {
        min-height: 48px !important;
        grid-template-columns: minmax(0, 1fr) 44px !important;
        gap: 7px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle {
        min-height: 46px !important;
        padding: 0 8px !important;
        grid-template-columns: 38px minmax(0, 1fr) 18px !important;
        gap: 9px !important;
        border-radius: 7px 0 0 7px !important;
        background: #f1f4f8 !important;
        color: #10213d !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle > img,
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle .workspace-header-user-fallback,
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle .workspace-header-user-fallback.guest-avatar {
        width: 38px !important;
        height: 38px !important;
        flex-basis: 38px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle .workspace-header-user-fallback.guest-avatar {
        border-color: #e3e9f2 !important;
        background: #f7f9fc !important;
        color: #10213d !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-name,
    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-chevron {
        display: block !important;
        color: #10213d !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-name {
        font-size: 14px !important;
        font-weight: 650 !important;
        line-height: 20px !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-settings {
        width: 44px !important;
        height: 46px !important;
        border-radius: 0 7px 7px 0 !important;
        background: transparent !important;
        color: #10213d !important;
    }

    html body aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-settings:is(:hover, :focus-visible) {
        background: #f1f4f8 !important;
        color: #0b6ff0 !important;
    }

    html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .workspace-recent-panel .sidebar-section-label,
    html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .workspace-recent-panel .sidebar-section-label {
        color: #d9e4f2 !important;
    }

    html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link,
    html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-scroll-region .sidebar-safety-link {
        background: #151a23 !important;
        border-top-color: #2d3a4d !important;
        color: #dce6f6 !important;
    }

    html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle,
    html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle {
        background: #223652 !important;
        color: #eef4ff !important;
    }

    html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle .workspace-header-user-fallback.guest-avatar,
    html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-toggle .workspace-header-user-fallback.guest-avatar {
        border-color: #365474 !important;
        background: #284262 !important;
        color: #a9d0ff !important;
    }

    html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-name,
    html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-chevron,
    html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-name,
    html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-chevron {
        color: #eef4ff !important;
    }

    html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-settings,
    html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-settings {
        background: #223652 !important;
        color: #a9d0ff !important;
    }

    html body[data-ui-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-settings:is(:hover, :focus-visible),
    html body[data-theme="dark"] aside[data-fuuvo-shared-sidebar="1"] .sidebar-account-settings:is(:hover, :focus-visible) {
        background: #294668 !important;
        color: #dcecff !important;
    }
}
