@media (max-width: 920px), (hover: none) and (pointer: coarse) and (max-width: 1366px) {
    html:has(body.chat-landing),
    body.chat-landing {
        position: static !important;
        width: var(--mobile-viewport-width, 100%) !important;
        min-width: 0 !important;
        max-width: var(--mobile-viewport-width, 100%) !important;
        height: auto !important;
        min-height: 100% !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: auto !important;
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch;
        background: #fff !important;
        scrollbar-width: thin;
        scrollbar-color: rgba(113, 128, 154, .42) transparent;
    }

    html:has(body.chat-landing)::-webkit-scrollbar,
    body.chat-landing::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }

    html:has(body.chat-landing)::-webkit-scrollbar-thumb,
    body.chat-landing::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(113, 128, 154, .42);
    }

    body.chat-landing .app[data-fuuvo-app-shell="1"] {
        width: var(--mobile-viewport-width, 100%) !important;
        min-width: 0 !important;
        max-width: var(--mobile-viewport-width, 100%) !important;
        height: auto !important;
        min-height: 100dvh !important;
        max-height: none !important;
        display: block !important;
        overflow: visible !important;
        background: #fff !important;
    }

    body.chat-landing .workspace[data-fuuvo-app-workspace="1"] {
        position: relative !important;
        inset: auto !important;
        width: var(--mobile-viewport-width, 100%) !important;
        min-width: 0 !important;
        max-width: var(--mobile-viewport-width, 100%) !important;
        height: auto !important;
        min-height: 100dvh !important;
        max-height: none !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
        background: #fff !important;
    }

    body.chat-landing .mobile-chat-topbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 80 !important;
        width: 100% !important;
        min-height: 78px !important;
        padding: 10px 14px !important;
        display: grid !important;
        grid-template-columns: 46px minmax(92px, 1fr) auto !important;
        align-items: center !important;
        border: 0 !important;
        background: rgba(255, 255, 255, .96) !important;
        box-shadow: none !important;
        backdrop-filter: blur(14px) !important;
    }

    body.chat-landing .mobile-nav-trigger {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        overflow: visible !important;
    }

    body.chat-landing .mobile-nav-pill {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.chat-landing .mobile-nav-bars {
        width: 30px !important;
        height: 30px !important;
        flex: 0 0 30px !important;
        color: #10284c !important;
    }

    body.chat-landing .mobile-nav-bars svg {
        width: 30px !important;
        height: 30px !important;
    }

    body.chat-landing .mobile-nav-title,
    body.chat-landing .mobile-chat-brand {
        display: none !important;
    }

    body.chat-landing .mobile-chat-bar {
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: visible !important;
    }

    body.chat-landing .mobile-chat-logo {
        min-width: 94px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0;
        color: #0877f9;
        line-height: 1;
        text-decoration: none;
    }

    body.chat-landing .mobile-chat-logo img {
        width: auto;
        max-width: 88px;
        height: 26px;
        display: block;
        object-fit: contain;
    }

    body.chat-landing .mobile-chat-logo [data-fuuvo-brand-language][hidden] {
        display: none !important;
    }

    body.chat-landing .mobile-chat-brand-en {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        color: #0877f9;
        font-size: 20px;
        font-weight: 750;
        letter-spacing: -.45px;
        line-height: 1;
    }

    body.chat-landing .mobile-chat-brand-en img {
        width: 22px;
        height: 22px;
        max-width: none;
        flex: 0 0 22px;
    }

    body.chat-landing .mobile-chat-logo img.mobile-chat-brand-zh {
        width: auto;
        height: 25px;
        max-width: 78px;
    }

    body.chat-landing .mobile-chat-actions {
        position: static !important;
        min-width: 0 !important;
        max-width: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        overflow: visible !important;
    }

    body.chat-landing .mobile-chat-link[data-safety-center-link] {
        display: none !important;
    }

    body.chat-landing .mobile-chat-actions .ui-language-switch {
        min-width: 58px !important;
        height: 34px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.chat-landing .mobile-chat-actions .ui-language-switch-btn {
        position: relative;
        min-width: 29px !important;
        height: 32px !important;
        padding: 0 6px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: #71809a !important;
        -webkit-text-fill-color: currentColor !important;
        font-size: 14px !important;
        font-weight: 500 !important;
    }

    body.chat-landing .mobile-chat-actions .ui-language-switch-btn.active {
        color: #10284c !important;
        -webkit-text-fill-color: #10284c !important;
    }

    body.chat-landing .mobile-chat-actions .ui-language-switch-btn + .ui-language-switch-btn::before {
        content: "";
        position: absolute;
        left: 0;
        top: 8px;
        width: 1px;
        height: 16px;
        background: #d9e0e9;
    }

    body.chat-landing .mobile-chat-btn {
        min-width: 58px !important;
        min-height: 40px !important;
        padding: 0 15px !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: #10284c !important;
        color: #fff !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        box-shadow: 0 7px 16px rgba(16, 40, 76, .16) !important;
    }

    body.chat-landing[data-mode="chat"] .hero,
    body.chat-landing[data-mode="chat"] .stage,
    body.chat-landing[data-mode="chat"] .workspace-records,
    body.chat-landing[data-mode="chat"] .workspace-chat-header,
    body.chat-landing[data-mode="chat"] .workspace-composer-anchor {
        display: none !important;
    }

    body.chat-landing[data-mode="chat"] .composer {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        min-height: calc(100dvh - 78px) !important;
        margin: 0 !important;
        padding: 43px 20px 34px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
        transform: none !important;
        flex: 0 0 auto !important;
    }

    body.chat-landing[data-mode="chat"] .composer-top {
        order: 1;
        margin: 0 0 29px !important;
        display: block !important;
        text-align: center !important;
    }

    body.chat-landing[data-mode="chat"] .composer-top > div:first-child {
        width: 100%;
    }

    body.chat-landing[data-mode="chat"] .composer-title {
        color: #10284c !important;
        font-size: clamp(26px, 7.2vw, 31px) !important;
        font-weight: 720 !important;
        line-height: 1.28 !important;
        letter-spacing: -.8px !important;
        white-space: nowrap;
    }

    body.chat-landing[data-mode="chat"] .composer-title.has-wenzhi-slogan {
        font-size: 18px !important;
        line-height: 1.35 !important;
        letter-spacing: 0 !important;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    body.chat-landing[data-mode="chat"] .composer-desc {
        margin: 14px 0 0 !important;
        display: block !important;
        color: #72819a !important;
        font-size: 17px !important;
        line-height: 1.5 !important;
        white-space: normal !important;
    }

    body.chat-landing[data-mode="chat"] .composer-top .toolbar-group,
    body.chat-landing[data-mode="chat"] .composer-actions,
    body.chat-landing[data-mode="chat"] #media-compose {
        display: none !important;
    }

    body.chat-landing[data-mode="chat"] #chat-compose-field {
        order: 2;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
    }

    body.chat-landing[data-mode="chat"] #chat-compose-field > label,
    body.chat-landing[data-mode="chat"] .chat-quick-actions,
    body.chat-landing[data-mode="chat"] .composer-capability-bar,
    body.chat-landing[data-mode="chat"] .landing-workspace-disclaimer,
    body.chat-landing[data-mode="chat"] .work-skill-bar,
    body.chat-landing[data-mode="chat"] .mobile-chat-toolbar {
        display: none !important;
    }

    body.chat-landing[data-mode="chat"] .chat-input-wrap {
        order: 1;
        position: relative !important;
        width: 100% !important;
        min-height: 172px !important;
        height: 172px !important;
        margin: 0 !important;
        overflow: visible !important;
        border: 1px solid #d7e0eb !important;
        border-radius: 20px !important;
        background: #fff !important;
        box-shadow: 0 9px 20px rgba(23, 49, 84, .08) !important;
    }

    body.chat-landing[data-mode="chat"] .chat-input-wrap textarea {
        width: 100% !important;
        min-height: 172px !important;
        height: 172px !important;
        padding: 23px 20px 70px !important;
        border: 0 !important;
        border-radius: 20px !important;
        color: #10284c !important;
        -webkit-text-fill-color: #10284c !important;
        font-size: 17px !important;
        line-height: 1.55 !important;
        resize: none !important;
    }

    body.chat-landing[data-mode="chat"] .chat-input-hint {
        top: 23px !important;
        left: 20px !important;
        right: 20px !important;
        height: auto !important;
        color: #8290a6 !important;
        font-size: 16px !important;
        line-height: 1.45 !important;
        white-space: nowrap !important;
    }

    body.chat-landing[data-mode="chat"] .chat-input-tools {
        position: absolute !important;
        left: 17px !important;
        right: 17px !important;
        bottom: 17px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    body.chat-landing[data-mode="chat"] .chat-tool-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        padding: 0 !important;
        border: 1px solid #d7e0eb !important;
        border-radius: 50% !important;
        background: #fff !important;
        color: #10284c !important;
        box-shadow: none !important;
    }

    body.chat-landing[data-mode="chat"] .chat-tool-btn svg {
        width: 23px !important;
        height: 23px !important;
    }

    body.chat-landing[data-mode="chat"] .chat-input-action-group {
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    body.chat-landing[data-mode="chat"] .send-btn {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: #0877f9 !important;
        color: #fff !important;
        opacity: 1 !important;
        box-shadow: 0 8px 17px rgba(8, 119, 249, .24) !important;
    }

    body.chat-landing[data-mode="chat"] .send-btn:disabled {
        background: #0877f9 !important;
        color: #fff !important;
        opacity: 1 !important;
    }

    body.chat-landing[data-mode="chat"] .mobile-home-capabilities {
        order: 2;
        position: relative;
        width: 100%;
        margin-top: 18px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    body.chat-landing[data-mode="chat"] .mobile-home-capabilities > button {
        min-width: 0;
        min-height: 38px;
        padding: 0 5px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        flex: 1 1 auto;
        border: 1px solid #d7e0eb;
        border-radius: 9px;
        background: #fff;
        color: #10284c;
        font: inherit;
        font-size: 11px;
        font-weight: 500;
        line-height: 1;
        white-space: nowrap;
        cursor: pointer;
    }

    body.chat-landing[data-mode="chat"] .mobile-home-capabilities > button > .fuuvo-icon {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
        background-color: transparent !important;
        background-image: var(--fuuvo-icon-url) !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-size: contain !important;
        -webkit-mask: none !important;
        mask: none !important;
    }

    body.chat-landing[data-mode="chat"] .mobile-home-capability-icon {
        width: 19px;
        height: 19px;
        flex: 0 0 19px;
        display: block;
        border: 0;
        border-radius: 0;
        background: transparent;
        object-fit: contain;
    }

    body.chat-landing[data-mode="chat"] .mobile-home-capabilities > .mobile-home-capabilities-more {
        width: 32px;
        min-width: 32px;
        padding: 0;
        flex: 0 0 32px;
    }

    body.chat-landing[data-mode="chat"] .mobile-home-capabilities-more svg {
        width: 18px;
        height: 18px;
    }

    body.chat-landing[data-mode="chat"] .mobile-home-capabilities-menu {
        position: absolute;
        top: calc(100% + 9px);
        right: 0;
        z-index: 95;
        width: 164px;
        padding: 7px;
        border: 1px solid #d9e1ec;
        border-radius: 11px;
        background: #fff;
        box-shadow: 0 14px 30px rgba(22, 43, 72, .16);
    }

    body.chat-landing[data-mode="chat"] .mobile-home-capabilities-menu.hidden {
        display: none !important;
    }

    body.chat-landing[data-mode="chat"] .mobile-home-capabilities-menu button {
        width: 100%;
        min-height: 38px;
        padding: 0 11px;
        display: flex;
        align-items: center;
        border: 0;
        border-radius: 7px;
        background: transparent;
        color: #10284c;
        font: inherit;
        font-size: 14px;
        text-align: left;
    }

    body.chat-landing[data-mode="chat"] .mobile-home-capabilities-menu button img {
        width: 22px;
        height: 22px;
        margin-right: 9px;
        flex: 0 0 22px;
        display: block;
        border: 0;
        border-radius: 0;
        background: transparent;
        object-fit: contain;
    }

    body.chat-landing[data-mode="chat"] .mobile-home-scenes-title {
        order: 3;
        margin: 38px 4px 17px;
        display: block;
        color: #10284c;
        font-size: 18px;
        font-weight: 580;
        line-height: 1.4;
    }

    body.chat-landing[data-mode="chat"] #core-feature-slot {
        order: 4;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        display: block !important;
    }

    body.chat-landing[data-mode="chat"] .core-feature-actions {
        width: 100% !important;
        margin: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    body.chat-landing[data-mode="chat"] .core-feature-btn {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 122px !important;
        padding: 17px 8px 15px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 14px !important;
        border: 1px solid #d9e1eb !important;
        border-radius: 15px !important;
        background: #fff !important;
        color: #10284c !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        line-height: 1.35 !important;
        box-shadow: none !important;
    }

    body.chat-landing[data-mode="chat"] .core-feature-btn-icon,
    body.chat-landing[data-mode="chat"] .core-feature-btn-icon .fuuvo-icon {
        width: 45px !important;
        height: 45px !important;
        flex: 0 0 45px !important;
    }

    body.chat-landing[data-mode="chat"] .core-feature-btn-icon .fuuvo-icon {
        background-color: transparent !important;
        background-image: var(--fuuvo-icon-url) !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-size: contain !important;
        -webkit-mask: none !important;
        mask: none !important;
    }

    body.chat-landing[data-mode="chat"] .mobile-home-disclaimer {
        order: 5;
        margin: 38px 0 0;
        padding-bottom: max(8px, env(safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        color: #72819a;
        font-size: 13px;
        line-height: 1.5;
        text-align: center;
    }

    body.chat-landing[data-mode="chat"] .mobile-home-disclaimer a {
        color: #6d82a1;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
    }
}

@media (max-width: 380px) {
    body.chat-landing[data-mode="chat"] .mobile-home-capabilities > button[data-chat-capability="translation"] {
        display: none;
    }
}

@media (max-width: 920px), (hover: none) and (pointer: coarse) and (max-width: 1366px) {
    /* Keep the mobile header functional without spending a row on branding. */
    body[data-mode="chat"] .chat-detail-back-desktop {
        display: none !important;
    }

    body[data-mode="chat"] .chat-detail-back-mobile {
        grid-column: 1 !important;
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        border: 0 !important;
        border-radius: 10px !important;
        background: transparent !important;
        color: #10284c !important;
        box-shadow: none !important;
    }

    body[data-mode="chat"] .chat-detail-back-mobile svg {
        width: 27px !important;
        height: 27px !important;
    }

    body.chat-detail-open[data-mode="chat"] .chat-detail-back-mobile:not(.hidden) {
        display: inline-flex !important;
    }

    body.chat-detail-open[data-mode="chat"] .mobile-nav-trigger {
        display: none !important;
    }

    body[data-mode="chat"] .mobile-chat-topbar,
    body.chat-landing[data-mode="chat"] .mobile-chat-topbar {
        min-height: 54px !important;
        padding: calc(env(safe-area-inset-top, 0px) + 5px) 10px 5px !important;
        grid-template-columns: max-content minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    body[data-mode="chat"] .mobile-chat-bar,
    body.chat-landing[data-mode="chat"] .mobile-chat-bar {
        display: none !important;
    }

    body[data-mode="chat"] .mobile-chat-actions,
    body.chat-landing[data-mode="chat"] .mobile-chat-actions {
        position: relative !important;
        inset: auto !important;
        grid-column: 2 !important;
        justify-self: end !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    body[data-mode="chat"] .mobile-nav-trigger,
    body.chat-landing[data-mode="chat"] .mobile-nav-trigger {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
    }

    body[data-mode="chat"] .mobile-home-scenes-title,
    body[data-mode="chat"] .mobile-home-capabilities,
    body[data-mode="chat"] .mobile-home-disclaimer {
        display: none !important;
    }

    body[data-mode="chat"] .mobile-chat-toolbar {
        left: 56px !important;
        right: auto !important;
        bottom: 7px !important;
        z-index: 7 !important;
        width: auto !important;
        padding: 0 !important;
    }

    body[data-mode="chat"] .mobile-chat-toolbar .mobile-chat-more-menu {
        left: 0 !important;
        width: 220px !important;
        min-width: 220px !important;
        max-width: calc(100vw - 24px) !important;
    }

    body.chat-landing[data-mode="chat"] .composer {
        min-height: calc(100dvh - 122px) !important;
        padding-top: 30px !important;
        padding-bottom: 24px !important;
    }

    body.chat-landing[data-mode="chat"] #chat-compose-field {
        position: relative !important;
    }

    body.chat-landing[data-mode="chat"] .mobile-chat-toolbar {
        position: absolute !important;
        left: 68px !important;
        right: auto !important;
        bottom: 19px !important;
        z-index: 12 !important;
        width: auto !important;
        min-height: 38px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        pointer-events: none !important;
    }

    body.chat-landing[data-mode="chat"] .mobile-chat-toolbar-btn,
    body.chat-landing[data-mode="chat"] .mobile-chat-more-menu {
        pointer-events: auto !important;
    }

    body.chat-landing[data-mode="chat"] .mobile-chat-more-menu {
        max-height: min(38vh, 220px) !important;
    }

    body.chat-landing[data-mode="chat"] .mobile-chat-toolbar-btn {
        min-height: 36px !important;
        padding: 0 11px !important;
        border: 1px solid #d7e0eb !important;
        border-radius: 999px !important;
        background: #fff !important;
        color: #10284c !important;
        box-shadow: none !important;
        font-size: 12px !important;
    }

    body[data-mode="chat"] .landing-workspace-disclaimer,
    body[data-mode="chat"] .mobile-home-disclaimer {
        display: none !important;
    }

    body[data-mode="chat"] .workspace > .workspace-disclaimer:not(.landing-workspace-disclaimer),
    body.chat-landing[data-mode="chat"] .workspace > .workspace-disclaimer:not(.landing-workspace-disclaimer) {
        position: static !important;
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 3px 8px max(5px, env(safe-area-inset-bottom)) !important;
        display: flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 2px 5px !important;
        color: #98a2b3 !important;
        font-size: 9px !important;
        font-weight: 400 !important;
        line-height: 1.25 !important;
        text-align: center !important;
        white-space: normal !important;
        overflow: visible !important;
    }

    body[data-mode="chat"] .workspace > .workspace-disclaimer:not(.landing-workspace-disclaimer) > span {
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important;
    }

    body[data-mode="chat"] .workspace > .workspace-disclaimer:not(.landing-workspace-disclaimer) > a {
        color: #8a96a8 !important;
        font-size: inherit !important;
        text-decoration: none !important;
        white-space: nowrap !important;
    }

    body[data-ui-theme="dark"][data-mode="chat"] .workspace > .workspace-disclaimer:not(.landing-workspace-disclaimer) {
        color: #77869d !important;
    }

    body[data-ui-theme="dark"][data-mode="chat"] .workspace > .workspace-disclaimer:not(.landing-workspace-disclaimer) > a {
        color: #8494ac !important;
    }
}

/* A resized desktop window still needs desktop density. The mobile shell is
 * used below 921px, but tablet-width windows keep the four primary actions in
 * one compact row instead of inheriting the large two-column phone cards. */
@media (min-width: 601px) and (max-width: 920px), (hover: none) and (pointer: coarse) and (min-width: 601px) and (max-width: 1366px) {
    body.chat-landing[data-mode="chat"] .composer {
        min-height: calc(100dvh - 54px) !important;
        padding: 20px 20px 18px !important;
    }

    body.chat-landing[data-mode="chat"] .composer-top {
        margin-bottom: 14px !important;
    }

    body.chat-landing[data-mode="chat"] .composer-title {
        font-size: 22px !important;
        line-height: 1.25 !important;
        letter-spacing: 0 !important;
    }

    body.chat-landing[data-mode="chat"] .composer-desc {
        margin-top: 6px !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    body.chat-landing[data-mode="chat"] .composer-desc[hidden] {
        display: none !important;
        margin: 0 !important;
    }

    body.chat-landing[data-mode="chat"] .chat-input-wrap,
    body.chat-landing[data-mode="chat"] .chat-input-wrap textarea {
        min-height: 108px !important;
        height: 108px !important;
        border-radius: 16px !important;
    }

    body.chat-landing[data-mode="chat"] .chat-input-wrap textarea {
        padding: 17px 16px 52px !important;
        font-size: 14px !important;
    }

    body.chat-landing[data-mode="chat"] .chat-input-hint {
        top: 17px !important;
        left: 16px !important;
        right: 16px !important;
        font-size: 13px !important;
    }

    body.chat-landing[data-mode="chat"] .chat-input-tools {
        left: 12px !important;
        right: 12px !important;
        bottom: 10px !important;
    }

    body.chat-landing[data-mode="chat"] .chat-tool-btn {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
    }

    body.chat-landing[data-mode="chat"] .chat-tool-btn svg {
        width: 19px !important;
        height: 19px !important;
    }

    body.chat-landing[data-mode="chat"] .send-btn {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
    }

    body.chat-landing[data-mode="chat"] .mobile-chat-toolbar {
        left: 58px !important;
        bottom: 10px !important;
    }

    body.chat-landing[data-mode="chat"] #core-feature-slot {
        margin-top: 12px !important;
    }

    body[data-mode="chat"] .workspace > .workspace-disclaimer:not(.landing-workspace-disclaimer),
    body.chat-landing[data-mode="chat"] .workspace > .workspace-disclaimer:not(.landing-workspace-disclaimer) {
        position: absolute !important;
        right: 10px !important;
        bottom: 4px !important;
        left: 10px !important;
        width: auto !important;
    }

    body.chat-landing[data-mode="chat"] .workspace > .fuuvo-ai-disclaimer {
        position: static !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 5px 10px max(6px, env(safe-area-inset-bottom)) !important;
        flex: 0 0 auto !important;
        gap: 1px !important;
        font-size: 9px !important;
        line-height: 1.35 !important;
    }

    body.chat-landing[data-mode="chat"] .core-feature-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body.chat-landing[data-mode="chat"] .core-feature-btn {
        min-height: 82px !important;
        padding: 10px 6px !important;
        gap: 7px !important;
        border-radius: 11px !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    body.chat-landing[data-mode="chat"] .core-feature-btn-icon,
    body.chat-landing[data-mode="chat"] .core-feature-btn-icon .fuuvo-icon,
    body.chat-landing[data-mode="chat"] .core-feature-btn-icon .home-core-feature-icon {
        width: 30px !important;
        height: 30px !important;
        flex: 0 0 30px !important;
    }
}

/* Phone landing page polish. Keep Chinese and English layouts visually
 * consistent while allowing longer English copy to wrap safely. */
@media (max-width: 600px) {
    body.chat-landing[data-mode="chat"] .composer {
        padding: 24px 18px 18px !important;
    }

    body.chat-landing[data-mode="chat"] .composer-top {
        margin-bottom: 20px !important;
    }

    body.chat-landing[data-mode="chat"] .composer-title {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: auto !important;
        margin-left: auto !important;
        font-size: clamp(23px, 6.5vw, 26px) !important;
        line-height: 1.24 !important;
        letter-spacing: -.45px !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
        text-wrap: balance;
    }

    body.chat-landing[data-mode="chat"] .composer-title.has-wenzhi-slogan {
        gap: 6px !important;
        font-size: clamp(16px, 4.5vw, 18px) !important;
        line-height: 1.4 !important;
        letter-spacing: 0 !important;
        flex-wrap: wrap !important;
        white-space: normal !important;
    }

    body.chat-landing[data-mode="chat"] .composer-desc[hidden] {
        display: none !important;
        margin: 0 !important;
    }

    body.chat-landing[data-mode="chat"] .composer-desc:not([hidden]) {
        max-width: 320px !important;
        margin: 8px auto 0 !important;
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    body.chat-landing[data-mode="chat"] .chat-input-wrap,
    body.chat-landing[data-mode="chat"] .chat-input-wrap textarea {
        min-height: 150px !important;
        height: 150px !important;
    }

    body.chat-landing[data-mode="chat"] .chat-input-wrap textarea {
        padding: 20px 18px 64px !important;
        font-size: 16px !important;
    }

    body.chat-landing[data-mode="chat"] .chat-input-hint {
        top: 20px !important;
        right: 18px !important;
        left: 18px !important;
        font-size: 15px !important;
        white-space: normal !important;
    }

    body.chat-landing[data-mode="chat"] .chat-input-tools {
        right: 14px !important;
        bottom: 14px !important;
        left: 14px !important;
    }

    body.chat-landing[data-mode="chat"] .chat-tool-btn {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
    }

    body.chat-landing[data-mode="chat"] .chat-tool-btn svg {
        width: 21px !important;
        height: 21px !important;
    }

    body.chat-landing[data-mode="chat"] .send-btn {
        width: 46px !important;
        min-width: 46px !important;
        height: 46px !important;
    }

    body.chat-landing[data-mode="chat"] .mobile-chat-toolbar {
        left: 64px !important;
        bottom: 17px !important;
    }

    body.chat-landing[data-mode="chat"] .mobile-chat-more-menu {
        border-radius: 16px !important;
        scrollbar-width: thin;
        scrollbar-color: #b9c5d5 transparent;
    }

    body.chat-landing[data-mode="chat"] .mobile-chat-more-item {
        min-height: 42px !important;
        gap: 10px !important;
        font-size: 14px !important;
    }

    body.chat-landing[data-mode="chat"] .mobile-chat-more-icon,
    body.chat-landing[data-mode="chat"] .mobile-chat-more-icon svg,
    body.chat-landing[data-mode="chat"] .mobile-chat-more-icon .fuuvo-icon {
        width: 20px !important;
        height: 20px !important;
        flex: 0 0 20px !important;
        color: #0d72f5 !important;
    }

    body.chat-landing[data-mode="chat"] .mobile-chat-more-icon img {
        width: 20px !important;
        height: 20px !important;
        flex: 0 0 20px !important;
        display: block !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        object-fit: contain !important;
    }

    body[data-ui-theme="dark"].chat-landing[data-mode="chat"] .mobile-home-capability-icon,
    body[data-ui-theme="dark"].chat-landing[data-mode="chat"] .mobile-home-capabilities-menu button img,
    body[data-ui-theme="dark"].chat-landing[data-mode="chat"] .mobile-chat-more-icon img {
        background: transparent !important;
        filter: none !important;
    }

    body.chat-landing[data-mode="chat"] .core-feature-actions {
        gap: 10px !important;
    }

    body.chat-landing[data-mode="chat"] .core-feature-btn {
        min-height: 100px !important;
        padding: 12px 8px !important;
        gap: 9px !important;
        border-radius: 14px !important;
        font-size: 15px !important;
        line-height: 1.35 !important;
    }

    body.chat-landing[data-mode="chat"] .core-feature-favorite-btn {
        padding-right: 26px !important;
    }

    body.chat-landing[data-mode="chat"] .core-feature-btn-icon,
    body.chat-landing[data-mode="chat"] .core-feature-btn-icon .fuuvo-icon,
    body.chat-landing[data-mode="chat"] .core-feature-btn-icon .home-core-feature-icon,
    body.chat-landing[data-mode="chat"] .core-feature-btn-icon .home-capability-icon {
        width: 36px !important;
        height: 36px !important;
        flex: 0 0 36px !important;
        max-width: none !important;
        object-fit: contain !important;
    }

    body.chat-landing[data-mode="chat"] .home-favorite-group:last-child .home-favorite-option:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc(50% - 4px);
        justify-self: center;
    }

    body.chat-landing[data-mode="chat"] .workspace > .fuuvo-ai-disclaimer {
        position: static !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 7px 10px max(7px, env(safe-area-inset-bottom)) !important;
        flex: 0 0 auto !important;
        gap: 2px !important;
        font-size: 10px !important;
        line-height: 1.4 !important;
    }

    body.chat-landing[data-mode="chat"] .fuuvo-ai-disclaimer-product {
        line-height: 1.35 !important;
    }
}

@media (max-width: 350px) {
    body.chat-landing[data-mode="chat"] .composer {
        padding-right: 14px !important;
        padding-left: 14px !important;
    }

    body.chat-landing[data-mode="chat"] .composer-title {
        font-size: 22px !important;
    }

    body.chat-landing[data-mode="chat"] .composer-title.has-wenzhi-slogan {
        font-size: 16px !important;
    }

    body.chat-landing[data-mode="chat"] .core-feature-btn {
        min-height: 94px !important;
        font-size: 14px !important;
    }

    body.chat-landing[data-mode="chat"] .core-feature-btn-icon,
    body.chat-landing[data-mode="chat"] .core-feature-btn-icon .fuuvo-icon,
    body.chat-landing[data-mode="chat"] .core-feature-btn-icon .home-core-feature-icon,
    body.chat-landing[data-mode="chat"] .core-feature-btn-icon .home-capability-icon {
        width: 34px !important;
        height: 34px !important;
        flex-basis: 34px !important;
    }
}

@media (min-width: 921px) and (hover: hover) and (pointer: fine) {
    .mobile-chat-logo,
    .mobile-home-scenes-title,
    .mobile-home-capabilities,
    .mobile-home-disclaimer {
        display: none !important;
    }
}

@media (min-width: 921px) {
    body.chat-landing[data-mode="chat"] .mobile-chat-toolbar {
        display: none !important;
    }
}


/* 2026-07-30: restore the phone landing page to the simple reference layout. */
@media (max-width: 600px) {
    body.chat-landing[data-mode="chat"] .mobile-chat-topbar {
        min-height: 62px !important;
        padding: calc(env(safe-area-inset-top, 0px) + 9px) 14px 7px !important;
    }

    body.chat-landing[data-mode="chat"] #mobile-new-chat-trigger {
        display: none !important;
    }

    body.chat-landing[data-mode="chat"] .composer {
        padding: 31px 20px 18px !important;
    }

    body.chat-landing[data-mode="chat"] .composer-top {
        margin-bottom: 23px !important;
    }

    body.chat-landing[data-mode="chat"] .composer-title.has-wenzhi-slogan {
        gap: 6px !important;
        color: #10284c !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
    }

    body.chat-landing[data-mode="chat"] .chat-input-wrap,
    body.chat-landing[data-mode="chat"] .chat-input-wrap textarea {
        min-height: 150px !important;
        height: 150px !important;
    }

    body.chat-landing[data-mode="chat"] .chat-input-wrap textarea {
        padding: 18px 18px 64px !important;
        font-size: 15px !important;
    }

    body.chat-landing[data-mode="chat"] .chat-input-hint {
        top: 19px !important;
        left: 18px !important;
        right: 18px !important;
        color: #8290a6 !important;
        font-size: 15px !important;
    }

    body.chat-landing[data-mode="chat"] .chat-input-tools {
        left: 14px !important;
        right: 14px !important;
        bottom: 13px !important;
    }

    body.chat-landing[data-mode="chat"] .chat-tool-btn {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        border-radius: 50% !important;
    }

    body.chat-landing[data-mode="chat"] .chat-tool-btn svg {
        width: 20px !important;
        height: 20px !important;
    }

    body.chat-landing[data-mode="chat"] .send-btn {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
    }

    body.chat-landing[data-mode="chat"] .mobile-chat-toolbar {
        left: 64px !important;
        bottom: 16px !important;
    }

    body.chat-landing[data-mode="chat"] .mobile-chat-toolbar-btn {
        min-height: 34px !important;
        padding: 0 12px !important;
        gap: 6px !important;
        border-radius: 999px !important;
        font-size: 13px !important;
        font-weight: 500 !important;
    }

    body.chat-landing[data-mode="chat"] .mobile-chat-toolbar-icon,
    body.chat-landing[data-mode="chat"] .mobile-chat-toolbar-icon svg {
        width: 16px !important;
        height: 16px !important;
    }

    body.chat-landing[data-mode="chat"] #core-feature-slot {
        margin-top: 10px !important;
    }

    body.chat-landing[data-mode="chat"] .core-feature-actions {
        gap: 8px !important;
    }

    body.chat-landing[data-mode="chat"] .core-feature-btn {
        min-height: 78px !important;
        padding: 7px 6px !important;
        gap: 6px !important;
        border-radius: 11px !important;
        font-size: 15px !important;
        font-weight: 500 !important;
    }

    body.chat-landing[data-mode="chat"] .core-feature-btn-icon,
    body.chat-landing[data-mode="chat"] .core-feature-btn-icon .fuuvo-icon,
    body.chat-landing[data-mode="chat"] .core-feature-btn-icon .home-core-feature-icon,
    body.chat-landing[data-mode="chat"] .core-feature-btn-icon .home-capability-icon {
        width: 28px !important;
        height: 28px !important;
        flex-basis: 28px !important;
    }
}

@media (max-width: 600px) {
    html:has(body[data-ui-theme="dark"].chat-landing),
    body[data-ui-theme="dark"].chat-landing,
    body[data-ui-theme="dark"].chat-landing .app[data-fuuvo-app-shell="1"],
    body[data-ui-theme="dark"].chat-landing .workspace[data-fuuvo-app-workspace="1"],
    body[data-ui-theme="dark"].chat-landing[data-mode="chat"] .composer {
        background: #080f1c !important;
        color: #edf2ff !important;
    }

    body[data-ui-theme="dark"].chat-landing .mobile-chat-topbar {
        background: rgba(8, 15, 28, .96) !important;
        border-bottom-color: rgba(148, 163, 184, .12) !important;
    }

    body[data-ui-theme="dark"].chat-landing .mobile-nav-bars,
    body[data-ui-theme="dark"].chat-landing .mobile-chat-actions .ui-language-switch-btn,
    body[data-ui-theme="dark"].chat-landing .mobile-chat-actions .ui-language-switch-btn.active {
        color: #dbe7ff !important;
        -webkit-text-fill-color: #dbe7ff !important;
    }

    body[data-ui-theme="dark"].chat-landing .mobile-chat-actions .ui-language-switch-btn + .ui-language-switch-btn::before {
        background: rgba(148, 163, 184, .24) !important;
    }

    body[data-ui-theme="dark"].chat-landing[data-mode="chat"] .composer-title.has-wenzhi-slogan {
        color: #edf2ff !important;
    }

    body[data-ui-theme="dark"].chat-landing[data-mode="chat"] .chat-input-wrap {
        background: #111827 !important;
        border-color: rgba(148, 163, 184, .22) !important;
        box-shadow: 0 12px 26px rgba(2, 6, 23, .34) !important;
    }

    body[data-ui-theme="dark"].chat-landing[data-mode="chat"] .chat-input-wrap textarea {
        color: #edf2ff !important;
        -webkit-text-fill-color: #edf2ff !important;
        caret-color: #7db5ff !important;
    }

    body[data-ui-theme="dark"].chat-landing[data-mode="chat"] .chat-input-hint,
    body[data-ui-theme="dark"].chat-landing[data-mode="chat"] .chat-input-wrap textarea::placeholder {
        color: #8fa0bc !important;
        -webkit-text-fill-color: #8fa0bc !important;
    }

    body[data-ui-theme="dark"].chat-landing[data-mode="chat"] .chat-tool-btn,
    body[data-ui-theme="dark"].chat-landing[data-mode="chat"] .mobile-chat-toolbar-btn {
        background: #0b1220 !important;
        border-color: rgba(148, 163, 184, .24) !important;
        color: #edf2ff !important;
    }

    body[data-ui-theme="dark"].chat-landing[data-mode="chat"] .send-btn {
        background: #0d72f5 !important;
        color: #fff !important;
        box-shadow: 0 8px 16px rgba(13, 114, 245, .22) !important;
    }

    body[data-ui-theme="dark"].chat-landing[data-mode="chat"] .core-feature-btn {
        background: #0f172a !important;
        border-color: rgba(148, 163, 184, .18) !important;
        color: #edf2ff !important;
    }

    body[data-ui-theme="dark"].chat-landing[data-mode="chat"] .mobile-home-disclaimer,
    body[data-ui-theme="dark"].chat-landing[data-mode="chat"] .workspace > .fuuvo-ai-disclaimer {
        background: #080f1c !important;
        color: #9fb0c8 !important;
    }
}
