/*
 * Shared right-pane proportions.
 * Smaller type and artwork are paired with wider section/card spacing so
 * public feature pages feel lighter without becoming visually cramped.
 */

body.chat-landing .composer-title.has-wenzhi-slogan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .38em;
    flex-wrap: wrap;
}

body.chat-landing .composer-title-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    line-height: 0;
}

body.chat-landing .composer-title-logo {
    display: block;
    width: auto;
    height: 1em;
    max-width: none;
    object-fit: contain;
}

body.chat-landing .composer-desc .fuuraa-site-link {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

body.chat-landing .composer-desc .fuuraa-site-link:hover { text-decoration: underline; }

@media (min-width: 921px) {
    /* Feature pages already render their title in the content area. Keep the
       shared top bar clear on desktop so the same title is not shown twice. */
    header[data-fuuvo-shared-topbar="1"] #feature-shell-title {
        display: none !important;
    }

    /* Shared typography and controls */
    .creation-main,
    .food-main,
    .analysis-main,
    .fortune-main,
    .portal-main {
        --refined-page-title: 34px;
        --refined-section-title: 19px;
        --refined-card-title: 16px;
        --refined-body: 13px;
        --refined-card-gap: 26px;
        --refined-section-gap: 32px;
    }

    .creation-heading h1,
    .research-app .research-home-heading h1,
    .food-heading h1,
    .analysis-heading h1,
    .analysis-home-heading h1,
    .fortune-hero h1,
    .capabilities-content-heading h1,
    .community-rules-header h1,
    .account-data-heading h1 {
        font-size: var(--refined-page-title) !important;
        letter-spacing: .005em;
    }

    .creation-heading p,
    .research-app .research-home-heading p,
    .food-heading p,
    .analysis-heading p,
    .fortune-hero p,
    .capabilities-content-heading p {
        font-size: 14px !important;
        line-height: 1.75;
    }

    .creation-primary,
    .creation-outline,
    .analysis-primary,
    .analysis-outline,
    .fortune-primary,
    .portal-button {
        font-size: 14px;
        border-radius: 8px;
    }

    .creation-main,
    .food-main,
    .analysis-main { padding-top: 31px; }

    /* Creation centre */
    .creation-tabs { gap: 38px; margin-top: 28px; }
    .creation-tabs button,
    .creation-tabs a { min-height: 42px; font-size: 14px; }
    .creation-section-title { margin: 27px 0 19px; font-size: 20px; }
    .creation-card-grid { gap: var(--refined-card-gap); }
    .creation-visual-card {
        min-height: 170px;
        padding: 18px 19px;
        grid-template-columns: minmax(0, 1fr) 126px;
        gap: 24px;
        border-radius: 12px;
    }
    .creation-card-icon { width: 31px; height: 31px; }
    .creation-visual-card h3 { margin: 14px 0 7px; font-size: 17px; }
    .creation-visual-card p { font-size: 13px; line-height: 1.65; }
    .creation-card-art { width: 126px; height: 112px; border-radius: 7px; }
    .creation-inspiration { margin-top: 34px; padding-top: 27px; }
    .creation-inspiration h2 { font-size: 18px; }
    .creation-inspiration p { font-size: 13px; line-height: 1.7; }
    .creation-pills { gap: 14px; margin-top: 19px; }
    .creation-pill { min-height: 35px; padding: 0 16px; font-size: 13px; }

    /* Search and research */
    .research-app .research-tabs { margin-top: 25px; gap: 56px; }
    .research-app .research-tabs a,
    .research-app .research-tabs button { min-height: 42px; font-size: 14px; }
    .research-tool-grid { gap: 27px; margin-top: 35px; }
    .research-tool-card {
        min-height: 194px;
        padding: 18px 19px 19px;
        border-radius: 12px;
    }
    .research-tool-art { width: 220px; height: 88px; object-fit: contain; }
    .research-tool-card h2 { margin: 14px 0 7px; font-size: 17px; }
    .research-tool-card p { font-size: 13px; line-height: 1.65; }
    .research-subheading h1 { font-size: 31px; }
    .research-work-grid,
    .learning-layout,
    .analysis-layout,
    .result-research-layout { gap: 28px; margin-top: 30px; }
    .research-panel,
    .learning-panel,
    .learning-help-card,
    .analysis-panel,
    .analysis-side,
    .conclusion-panel,
    .source-panel,
    .operation-panel { border-radius: 11px; }
    .research-panel { padding: 22px 23px; }
    .research-panel h2,
    .learning-panel h2,
    .learning-help-card h2,
    .analysis-side h2 { font-size: 16px; }
    .research-panel h3 { margin-top: 27px; font-size: 14px; }
    .research-select-row,
    .research-source-row { gap: 20px; }
    .research-select { min-height: 43px; font-size: 13px; }
    .research-source { min-height: 50px; font-size: 13px; }
    .research-source img,
    .research-setting-head img,
    .learning-step-head img,
    .learning-tool img { width: 19px; height: 19px; }
    .research-variant-row,
    .learning-mode-row { gap: 12px; }
    .research-variant,
    .learning-mode { min-height: 37px; padding: 0 15px; font-size: 13px; }
    .research-setting-block { padding-bottom: 24px; }
    .research-setting-block + .research-setting-block { padding-top: 24px; }
    .learning-upload { min-height: 158px; }
    .learning-upload img { width: 96px; height: 70px; object-fit: contain; }
    .analysis-drop { min-height: 172px; }
    .analysis-drop img { width: 75px; height: 77px; object-fit: contain; }
    .analysis-preview > img { height: 168px; }
    .conclusion-panel { padding: 18px 21px; }
    .conclusion-panel h2 { font-size: 17px; }
    .conclusion-list { gap: 15px; }
    .research-result-cards { gap: 20px; margin-top: 20px; }
    .research-result-card { min-height: 164px; padding: 17px; border-radius: 11px; }
    .research-result-card h3 { font-size: 15px; }
    .source-list { gap: 13px; }
    .source-item { min-height: 57px; }
    .source-item img { width: 25px; height: 25px; }

    /* Document analysis */
    .analysis-home-layout,
    .analysis-setup-layout,
    .analysis-result-layout { gap: 40px; margin-top: 31px; }
    .analysis-upload-drop { min-height: 238px; padding: 24px; border-radius: 12px; }
    .analysis-upload-drop img { width: 77px; height: 77px; }
    .analysis-upload-drop strong { margin-top: 15px; font-size: 17px; }
    .analysis-upload-drop > span { font-size: 13px; }
    .analysis-drop-notes { min-height: 61px; }
    .analysis-drop-notes span { gap: 12px; font-size: 13px; }
    .analysis-prompt-title { font-size: 14px; }
    .analysis-prompt { min-height: 96px; padding: 14px 16px; font-size: 14px; line-height: 1.7; }
    .analysis-quick-pills { gap: 12px 14px; margin-top: 19px; }
    .analysis-quick-pills button { min-height: 37px; padding: 0 12px; font-size: 12px; }
    .analysis-quick-pills .analysis-icon { width: 17px; height: 17px; }
    .analysis-home-footer { grid-template-columns: minmax(0, 1fr) 280px; gap: 34px; }
    .analysis-primary { min-height: 50px; font-size: 15px; }
    .analysis-process-panel { border-radius: 11px; }
    .analysis-process-panel > h2 { padding: 21px 19px 17px; font-size: 17px; }
    .analysis-process-panel article {
        min-height: 125px;
        margin: 0 17px 19px;
        padding: 17px 15px;
        grid-template-columns: 35px minmax(0, 1fr);
        gap: 14px;
    }
    .analysis-process-panel article > .analysis-icon { width: 35px; height: 35px; }
    .analysis-process-panel h3 { font-size: 14px; }
    .analysis-process-panel strong { font-size: 12px; line-height: 1.65; }
    .analysis-uploaded-list { gap: 9px; }
    .analysis-uploaded-file { min-height: 45px; }
    .analysis-method-row { gap: 22px; margin-bottom: 17px; }
    .analysis-method-option { min-height: 67px; padding: 11px 15px; grid-template-columns: 35px minmax(0, 1fr) 21px; gap: 14px; }
    .analysis-method-option > .analysis-icon { width: 35px; height: 35px; }
    .analysis-method-option strong { font-size: 14px; }
    .analysis-output-row { gap: 18px; margin-bottom: 17px; }
    .analysis-output-row button { min-height: 44px; font-size: 13px; }
    .analysis-settings-side { padding: 23px 20px; }
    .analysis-settings-side p { margin-bottom: 25px; gap: 16px; font-size: 13px; }
    .analysis-result-three { gap: 21px; margin-top: 21px; }
    .analysis-result-three article { min-height: 158px; padding: 18px; }
    .analysis-result-three h2 { font-size: 15px; }
    .analysis-data-panel { margin-top: 22px; padding: 20px; }
    .analysis-result-side > section { padding: 21px 18px; }
    .analysis-source-file { margin-bottom: 13px; }

    /* Food exploration */
    .food-location-panel { max-width: 760px; margin-top: 30px; padding: 19px 21px; border-radius: 12px; }
    .food-location-panel h2 { font-size: 16px; }
    .food-location-panel h2 img,
    .food-location-current img,
    .food-location-input img { width: 22px; height: 22px; flex-basis: 22px; }
    .food-location-current,
    .food-location-input { min-height: 46px; font-size: 14px; }
    .food-filter-row { gap: 22px; margin-top: 27px; }
    .food-filter { min-height: 64px; padding: 9px 13px; border-radius: 10px; }
    .food-filter span { font-size: 12px; }
    .food-filter span img { width: 19px; height: 19px; }
    .food-filter strong { font-size: 14px; }
    .food-content-grid { gap: 32px; margin-top: 35px; }
    .food-start-section h2,
    .food-method-panel h2 { margin-bottom: 19px; font-size: 18px; }
    .food-quick-grid { gap: 21px; }
    .food-quick-card { min-height: 108px; padding: 15px 8px 13px; border-radius: 11px; font-size: 13px; }
    .food-quick-card img { width: 42px; height: 42px; }
    .food-method-panel,
    .food-refine-panel,
    .food-before-panel { padding: 20px 18px; border-radius: 11px; }
    .food-method-panel button,
    .food-refine-panel > button { min-height: 59px; grid-template-columns: 29px minmax(0, 1fr) auto; gap: 13px; font-size: 13px; }
    .food-method-panel img,
    .food-refine-panel img { width: 26px; height: 26px; }
    .food-prompt-box { max-width: 780px; min-height: 88px; margin-top: 34px; border-radius: 13px; }
    .food-prompt-box > img { width: 25px; height: 25px; flex-basis: 25px; }
    .food-prompt-box input { font-size: 14px; }
    .food-prompt-box button { width: 39px; height: 39px; flex-basis: 39px; font-size: 23px; }
    .food-results-heading h1,
    .food-detail-heading h1 { font-size: 31px; }
    .food-result-layout,
    .food-detail-layout { gap: 34px; margin-top: 31px; }
    .food-suggestion,
    .food-info-panel { padding: 20px 22px; border-radius: 11px; }
    .food-suggestion strong { font-size: 16px; }
    .food-restaurant-card { min-height: 132px; margin-top: 20px; padding: 13px; grid-template-columns: 150px minmax(0, 1fr) 120px; gap: 23px; border-radius: 11px; }
    .food-restaurant-art { width: 150px; height: 116px; }
    .food-restaurant-copy h2 { font-size: 17px; }
    .food-tags { gap: 11px; margin: 13px 0; }
    .food-tags span { padding: 4px 10px; font-size: 12px; }
    .food-refine-panel h2,
    .food-before-panel h2,
    .food-continue-card h2 { font-size: 17px; }
    .food-reference-grid { gap: 20px; }
    .food-reference-grid > div { min-height: 98px; }
    .food-reference-grid img { width: 26px; height: 26px; }

    /* Fortune and culture exploration */
    .fortune-home-main { width: min(1080px, calc(100% - 96px)); padding-top: 38px; }
    .fortune-hero { padding-bottom: 34px; }
    .fortune-hero.compact h1,
    .fortune-result-heading h1,
    .inspiration-heading h1 { font-size: 31px !important; }
    .fortune-deco { font-size: 30px; }
    .fortune-home-grid { gap: 28px; }
    .fortune-entry { min-height: 172px; padding: 20px 18px; border-radius: 12px; }
    .fortune-entry > svg,
    .fortune-entry > img { width: 54px; height: 54px; margin-bottom: 13px; }
    .fortune-entry > img { width: 62px; height: 52px; }
    .fortune-entry h2 { font-size: 17px; }
    .fortune-entry p { margin-top: 8px; font-size: 13px; }
    .fortune-home-bottom { gap: 28px; margin-top: 29px; }
    .fortune-methods,
    .fortune-explain { min-height: 163px; padding: 21px 24px; border-radius: 11px; }
    .fortune-method-row { gap: 18px; margin-top: 24px; }
    .fortune-method-row span { gap: 10px; font-size: 12px; }
    .fortune-method-row i { width: 40px; height: 40px; font-size: 19px; }
    .fortune-method-row i svg { width: 22px; height: 22px; }
    .fortune-two-column,
    .fortune-result-layout { gap: 30px; }
    .fortune-panel { border-radius: 11px; }
    .fortune-setup { padding: 21px 23px; }
    .fortune-setup > h2,
    .fortune-step h2 { font-size: 17px; }
    .zodiac-grid { gap: 14px 18px; }
    .fortune-choice { min-height: 68px; gap: 13px; }
    .fortune-choice img { width: 42px; height: 42px; }
    .fortune-choice strong { font-size: 14px; }
    .fortune-choice small { font-size: 12px; }
    .fortune-topic-grid { gap: 18px; }
    .fortune-topic-grid button { min-height: 72px; }
    .fortune-topic-grid svg { width: 29px; height: 29px; }
    .fortune-primary { min-height: 40px; font-size: 15px; }
    .fortune-side-info { padding: 24px 23px; }
    .fortune-side-info h2 { font-size: 17px; }
    .fortune-side-info > div { min-height: 91px; gap: 16px; }
    .fortune-side-info > div > svg { width: 31px; height: 31px; flex-basis: 31px; }
    .animal-grid { gap: 13px 17px; }
    .animal-choice { min-height: 82px; }
    .animal-choice img { width: 48px; height: 42px; }
    .fortune-result-heading { padding-bottom: 25px; }
    .fortune-keywords { min-height: 153px; padding: 23px 25px; border-radius: 11px; }
    .fortune-keywords h2 { font-size: 17px; }
    .fortune-keywords > div { gap: 20px; }
    .fortune-keywords span { min-width: 120px; min-height: 38px; padding: 0 19px; font-size: 14px; }
    .fortune-reading-grid { gap: 20px; margin-top: 22px; }
    .fortune-reading-grid article { min-height: 211px; padding: 21px 16px; border-radius: 11px; }
    .fortune-reading-grid article > svg { width: 34px; height: 34px; }
    .fortune-reading-grid h3 { font-size: 15px; }
    .fortune-question-strip,
    .fortune-action-strip { min-height: 88px; margin-top: 22px; padding: 18px 22px; gap: 22px; }
    .fortune-question-strip > svg,
    .fortune-action-strip > svg { width: 35px; height: 35px; flex-basis: 35px; }
    .fortune-continue { padding: 21px 19px; }
    .fortune-continue h2 { font-size: 17px; }
    .fortune-continue > a { min-height: 55px; margin-top: 13px; font-size: 13px; }
    .inspiration-card { min-height: 420px; padding: 34px 52px 29px; border-radius: 13px; }
    .inspiration-card h2 { margin: 35px 0 23px; font-size: 29px; }
    .inspiration-points { margin-top: 31px; }
    .inspiration-points > div { min-height: 120px; padding: 0 27px; }
    .inspiration-points svg { width: 35px; height: 35px; }
    .fortune-inspiration-side > a { min-height: 68px; margin-bottom: 18px; }

    /* Safety and transparency centre */
    .capabilities-framework { grid-template-columns: 235px minmax(0, 1fr); gap: 46px; }
    .capabilities-toc a { min-height: 46px; font-size: 14px; }
    .capabilities-content-heading { margin-bottom: 31px; }
    .capabilities-card-grid,
    .capabilities-grid { gap: 28px; }
    .capabilities-card,
    .capability-card { min-height: 178px; padding: 22px 17px; border-radius: 10px; }
    .capabilities-card-icon,
    .capability-card-icon { width: 56px; height: 56px; }
    .capabilities-card strong,
    .capability-card strong { margin-top: 10px; font-size: 17px; }
    .capabilities-card > span:last-child,
    .capability-card > span:last-child { margin-top: 7px; font-size: 13px; line-height: 1.65; }
    .ai-info-layout { grid-template-columns: 245px minmax(0, 1fr); gap: 40px; }
    .ai-info-section + .ai-info-section { margin-top: 25px; padding-top: 24px; }
    .ai-info-section-heading h2 { font-size: 21px; }
    .ai-info-section-number { width: 35px; height: 35px; flex-basis: 35px; font-size: 15px; }
    .ai-info-capability-grid { gap: 16px; margin-top: 18px; }
    .ai-info-capability-grid a { min-height: 56px; font-size: 14px; }
    .safe-use-risk-list .portal-risk-item { min-height: 66px; padding: 0 21px; gap: 19px; font-size: 14px; }
    .safe-use-risk-list .portal-risk-item svg { width: 25px; height: 25px; flex-basis: 25px; }
    .safe-use-section-title { font-size: 19px; }
    .safe-use-guidance { margin-top: 18px; padding: 21px 0; }
    .safe-use-guidance .portal-action-card { min-height: 117px; padding: 7px 27px; }
    .report-feature-grid { gap: 30px; }
    .report-feature-card { min-height: 250px; padding: 25px; border-radius: 11px; }
    .report-feature-icon { width: 66px; height: 66px; }
    .report-feature-icon svg { width: 43px; height: 43px; }
    .report-feature-card h2 { margin-top: 18px; font-size: 18px; }
    .report-feature-card p { font-size: 13px; line-height: 1.8; }
    .account-controls-grid { gap: 27px; }
    .account-control-card { min-height: 292px; padding: 28px 20px; border-radius: 11px; }
    .account-control-icon { width: 64px; height: 64px; }
    .account-control-card h2 { margin-top: 18px; font-size: 17px; }
    .community-rules-layout { gap: 44px; }
    .community-standard-grid { gap: 24px; }
    .community-standard-card { min-height: 91px; padding: 15px 16px; gap: 18px; }
    .community-standard-icon { width: 45px; height: 45px; flex-basis: 45px; }
}

@media (max-width: 920px) {
    .creation-heading h1,
    .research-app .research-home-heading h1,
    .food-heading h1,
    .analysis-heading h1,
    .fortune-hero h1 { font-size: 28px !important; }

    .creation-card-grid,
    .research-tool-grid,
    .analysis-result-three,
    .fortune-home-grid { gap: 16px; }
}

/* Compact desktop pass for redesigned public pages. The source mockups use
 * generous whitespace, but their controls and cards are deliberately small;
 * these final rules keep that balance across page-specific stylesheets. */
@media (min-width: 921px) {
    /* Safety centre and account/data pages */
    .sr-hero,
    .sr-hero.compact,
    .ss-hero,
    .ss-hero.compact,
    .rr-hero {
        padding-top: 7px !important;
        padding-bottom: 19px !important;
    }

    .sr-hero h1,
    .sr-hero.compact h1,
    .ss-hero h1,
    .rr-hero h1,
    .ac-heading h1,
    .dc-heading h1,
    .ai-card-heading h1 {
        font-size: 18px !important;
        line-height: 1.35 !important;
        letter-spacing: 0 !important;
    }

    .sr-hero p,
    .ss-hero p,
    .rr-hero p,
    .ac-heading p,
    .dc-heading p,
    .ai-card-heading p {
        margin-top: 7px !important;
        font-size: 14px !important;
        line-height: 1.65 !important;
    }

    .sr-section-title { margin: 23px 0 15px !important; font-size: 18px !important; }
    .sr-feature-card {
        min-height: 106px !important;
        padding: 17px 20px !important;
        grid-template-columns: 48px minmax(0, 1fr) auto !important;
        gap: 16px !important;
        border-radius: 9px !important;
    }
    .sr-feature-card > svg { width: 46px !important; height: 46px !important; }
    .sr-feature-card span { gap: 5px !important; }
    .sr-feature-card strong { font-size: 18px !important; }
    .sr-feature-card small { font-size: 12.5px !important; line-height: 1.55 !important; }
    .sr-wide-grid { gap: 16px 18px !important; }
    .sr-wide-card {
        min-height: 104px !important;
        padding: 16px 18px !important;
        grid-template-columns: 44px minmax(0, 1fr) auto !important;
        gap: 15px !important;
        border-radius: 9px !important;
    }
    .sr-wide-card > svg { width: 42px !important; height: 42px !important; }
    .sr-wide-card span { gap: 5px !important; }
    .sr-wide-card strong { font-size: 16px !important; }
    .sr-wide-card small { font-size: 12.5px !important; line-height: 1.55 !important; }
    .sr-wide-card > b { font-size: 25px !important; }
    .sr-banner { min-height: 98px !important; margin-bottom: 18px !important; padding: 17px 21px !important; gap: 20px !important; }
    .sr-banner.slim { min-height: 76px !important; margin-top: 14px !important; }
    .sr-banner.training { min-height: 112px !important; }
    .sr-banner strong { font-size: 17px !important; }
    .sr-banner small { font-size: 12.5px !important; }
    .sr-action-row > a { min-height: 56px !important; padding: 0 18px !important; font-size: 13px !important; }
    .sr-three-grid,
    .sr-content-grid,
    .sr-account-grid { gap: 17px !important; }
    .sr-three-grid article,
    .sr-content-grid article {
        min-height: 118px !important;
        padding: 18px !important;
        grid-template-columns: 44px minmax(0, 1fr) !important;
        gap: 15px !important;
    }
    .sr-three-grid strong,
    .sr-content-grid strong { font-size: 16px !important; }
    .sr-rights-grid { gap: 18px !important; }
    .sr-rights-grid > a { min-height: 228px !important; padding: 24px 18px 18px !important; }
    .sr-rights-grid strong { margin-top: 17px !important; font-size: 17px !important; }
    .sr-rights-grid small { margin-top: 9px !important; font-size: 12.5px !important; }
    .sr-account-grid > a {
        min-height: 106px !important;
        padding: 17px 20px !important;
        grid-template-columns: 48px minmax(0, 1fr) auto !important;
        gap: 16px !important;
    }
    .sr-account-grid strong { font-size: 16px !important; }

    .ss-warning-banner { min-height: 92px !important; padding: 16px 22px !important; gap: 20px !important; }
    .ss-warning-banner strong { font-size: 17px !important; }
    .ss-warning-banner small { font-size: 12.5px !important; }
    .ss-entry-grid { gap: 16px 18px !important; }
    .ss-entry-grid > a {
        min-height: 104px !important;
        padding: 16px 18px !important;
        grid-template-columns: 44px minmax(0, 1fr) auto !important;
        gap: 15px !important;
    }
    .ss-entry-grid > a > svg { width: 42px !important; height: 42px !important; }
    .ss-entry-grid strong { font-size: 16px !important; }
    .ss-entry-grid small { font-size: 12.5px !important; line-height: 1.55 !important; }
    .ss-action-grid > a { min-height: 56px !important; padding: 0 19px !important; font-size: 14px !important; }
    .ss-decision-grid article { min-height: 126px !important; padding: 18px !important; grid-template-columns: 60px minmax(0, 1fr) !important; }
    .ss-list-panel { padding: 19px 20px 12px !important; }
    .ss-list-panel > a { min-height: 82px !important; grid-template-columns: 48px minmax(0, 1fr) auto !important; }
    .ss-minor-grid article { min-height: 238px !important; padding: 21px 22px 19px !important; }

    .rr-layout { gap: 18px !important; }
    .rr-panel { padding: 20px 21px !important; }
    .rr-panel h2 { margin-bottom: 13px !important; font-size: 18px !important; }
    .rr-report-form,
    .rr-processing-panel { min-height: 520px !important; }
    .rr-category-grid label { min-height: 67px !important; }
    .rr-primary { min-height: 44px !important; font-size: 14px !important; }
    .rr-record-box { min-height: 232px !important; padding: 24px 18px !important; gap: 14px !important; }
    .rr-record-box > svg { width: 68px !important; height: 68px !important; padding: 14px !important; }
    .rr-record-box a { min-width: 178px !important; min-height: 43px !important; font-size: 14px !important; }
    .rr-appeal-link { min-height: 84px !important; margin-top: 17px !important; padding: 16px 19px !important; }
    .rr-appeal-link strong { font-size: 15px !important; }
    .rr-notice { min-height: 52px !important; margin-top: 16px !important; font-size: 12.5px !important; }

    .ac-heading { margin-bottom: 18px !important; }
    .ac-home-grid { gap: 16px 18px !important; }
    .ac-home-grid > a {
        min-height: 102px !important;
        padding: 16px 18px !important;
        grid-template-columns: 44px minmax(0, 1fr) auto !important;
        gap: 15px !important;
        border-radius: 9px !important;
    }
    .ac-home-grid svg { width: 42px !important; height: 42px !important; }
    .ac-home-grid span { gap: 5px !important; }
    .ac-home-grid strong { font-size: 16px !important; }
    .ac-home-grid small { font-size: 12.5px !important; line-height: 1.55 !important; }
    .ac-home-grid b { font-size: 25px !important; }
    .ac-panel { border-radius: 9px !important; }
    .ac-training-banner { min-height: 132px !important; padding: 19px 28px !important; gap: 28px !important; }
    .ac-training-banner > svg { width: 92px !important; height: 92px !important; flex-basis: 92px !important; }
    .ac-training-banner strong { font-size: 17px !important; }
    .ac-training-banner small { font-size: 14px !important; }
    .ac-training-grid { gap: 17px !important; margin-top: 20px !important; }
    .ac-training-grid > .ac-panel { min-height: 218px !important; padding: 20px !important; }
    .ac-contact-cards { gap: 18px !important; }
    .ac-contact-cards article { min-height: 108px !important; padding: 17px !important; grid-template-columns: 54px minmax(0, 1fr) !important; gap: 15px !important; }
    .ac-contact-cards i { width: 52px !important; height: 52px !important; }
    .ac-contact-cards svg { width: 34px !important; height: 34px !important; }
    .ac-contact-cards strong { font-size: 16px !important; }
    .ac-info-strip { min-height: 62px !important; margin-top: 20px !important; padding: 0 19px !important; font-size: 13px !important; }
    .ac-policy-tabs { margin-bottom: 19px !important; }
    .ac-policy-tabs button { min-height: 44px !important; font-size: 13px !important; }
    .ac-policy-layout { gap: 20px !important; }
    .ac-policy-timeline article { min-height: 104px !important; margin-bottom: 20px !important; padding: 17px !important; }
    .ac-delete-layout { gap: 18px !important; }
    .ac-chat-delete,
    .ac-account-delete { padding: 20px 21px !important; }

    /* Main feature hubs */
    .creation-card-grid { gap: 20px !important; }
    .creation-visual-card { min-height: 150px !important; padding: 16px 17px !important; grid-template-columns: minmax(0, 1fr) 108px !important; gap: 18px !important; }
    .creation-card-art { width: 108px !important; height: 96px !important; }
    .creation-visual-card h3 { margin-top: 11px !important; font-size: 16px !important; }
    .research-tool-grid { gap: 20px !important; margin-top: 28px !important; }
    .research-tool-card { min-height: 174px !important; padding: 16px 17px !important; }
    .research-tool-art { width: 184px !important; height: 72px !important; }
    .research-tool-card h2 { margin: 11px 0 6px !important; font-size: 16px !important; }
    .office-workflow-card { min-height: 98px !important; padding: 15px !important; }
    .fortune-home-grid { gap: 20px !important; }
    .fortune-entry { min-height: 148px !important; padding: 17px 16px !important; }
    .fortune-entry > svg,
    .fortune-entry > img { width: 48px !important; height: 48px !important; margin-bottom: 10px !important; }

    /* Reassert document/browser scrolling after page-specific layout rules. */
    .portal-shell:has(.safety-account-page),
    .portal-shell:has(.data-control-page),
    .portal-shell:has(.ai-card-redesign),
    .portal-shell:has(.safety-redesign-page),
    .portal-shell:has(.safety-safe-page),
    .portal-shell:has(.safety-report-page) {
        height: auto !important;
        min-height: 100vh !important;
        max-height: none !important;
        overflow: visible !important;
    }
    .portal-shell:has(.safety-account-page) .portal-content,
    .portal-shell:has(.data-control-page) .portal-content,
    .portal-shell:has(.ai-card-redesign) .portal-content,
    .portal-shell:has(.safety-redesign-page) .portal-content,
    .portal-shell:has(.safety-safe-page) .portal-content,
    .portal-shell:has(.safety-report-page) .portal-content,
    .portal-shell:has(.safety-account-page) .portal-main,
    .portal-shell:has(.data-control-page) .portal-main,
    .portal-shell:has(.ai-card-redesign) .portal-main,
    .portal-shell:has(.safety-redesign-page) .portal-main,
    .portal-shell:has(.safety-safe-page) .portal-main,
    .portal-shell:has(.safety-report-page) .portal-main {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* Final right-pane refinement. These rules intentionally stay conservative:
   content remains readable, while oversized cards and controls are brought
   back to the lighter proportions used by the home page. */
@media (min-width: 921px) {
    .creation-main,
    .food-main,
    .analysis-main,
    .fortune-main,
    .office-main,
    .pricing-main,
    .portal-main,
    .feature-shell .main {
        width: min(1080px, calc(100% - 96px)) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-top: 28px !important;
        padding-bottom: 36px !important;
    }

    .creation-heading h1,
    .research-app .research-home-heading h1,
    .food-heading h1,
    .analysis-heading h1,
    .analysis-home-heading h1,
    .fortune-hero h1,
    .office-heading h1,
    .pricing-heading h1,
    .portal-hero h1,
    .portal-heading h1,
    .report-redesign-heading h1,
    .safe-use-redesign-heading h1,
    .account-control-heading h1 {
        font-size: 18px !important;
        line-height: 1.35 !important;
    }

    .creation-detail-layout { gap: 28px !important; margin-top: 25px !important; }
    .creation-detail-card { padding: 21px !important; border-radius: 10px !important; }
    .creation-detail-card > h2 { font-size: 17px !important; }
    .detail-label { margin-top: 19px !important; font-size: 13px !important; }
    .detail-textarea-wrap textarea { min-height: 92px !important; font-size: 13px !important; }
    .detail-dropzone { min-height: 112px !important; }
    .detail-dropzone.compact { min-height: 88px !important; }
    .compare-detail-grid .compare-upload-zone { min-height: 88px !important; }
    .detail-option,
    .poster-option,
    .poster-style { min-height: 48px !important; font-size: 13px !important; }
    .detail-submit { min-height: 46px !important; font-size: 14px !important; }
    .detail-media,
    .poster-preview,
    .compare-stage { border-radius: 9px !important; }

    .office-heading p,
    .pricing-heading p,
    .portal-hero p,
    .portal-heading p { font-size: 14px !important; line-height: 1.7 !important; }
    .office-start-panel { margin-top: 26px !important; padding: 20px 22px !important; border-radius: 11px !important; }
    .office-start-panel textarea { min-height: 72px !important; font-size: 14px !important; }
    .office-workflows { margin-top: 30px !important; }
    .office-workflow-grid { gap: 18px !important; }
    .office-workflow-card { min-height: 98px !important; padding: 15px !important; border-radius: 10px !important; }
    .office-workflow-card img { width: 35px !important; height: 35px !important; }
    .office-workflow-card strong { font-size: 15px !important; }
    .office-workflow-card small { font-size: 12px !important; line-height: 1.6 !important; }
    .office-recent-grid { gap: 18px !important; }
    .office-recent-card { min-height: 70px !important; padding: 13px 15px !important; }

    .pricing-grid { gap: 18px !important; margin-top: 28px !important; }
    .pricing-card { min-height: 286px !important; padding: 22px !important; border-radius: 11px !important; }
    .pricing-card h2 { font-size: 20px !important; }
    .pricing-card .price { margin: 13px 0 !important; font-size: 28px !important; }
    .pricing-card p,
    .pricing-card li { font-size: 13px !important; line-height: 1.65 !important; }

    .portal-featured { padding: 20px 22px !important; border-radius: 11px !important; }
    .portal-help-grid,
    .portal-feature-grid,
    .portal-control-grid,
    .portal-contact-grid { gap: 20px !important; }
    .portal-help-card,
    .portal-feature-card,
    .portal-control-card,
    .portal-contact-card { padding: 20px !important; border-radius: 10px !important; }
    .portal-help-card h2,
    .portal-feature-card h2,
    .portal-control-card h2,
    .portal-contact-card h2 { font-size: 17px !important; }
    .portal-help-card p,
    .portal-feature-card p,
    .portal-control-card p,
    .portal-contact-card p { font-size: 13px !important; line-height: 1.7 !important; }
    .report-feature-card { min-height: 196px !important; padding: 19px !important; }
    .report-feature-icon { width: 52px !important; height: 52px !important; }
    .account-control-card { min-height: 224px !important; padding: 20px 17px !important; }
    .account-control-icon { width: 52px !important; height: 52px !important; }
}

@media (max-width: 920px) {
    [data-fuuvo-app-scroll="1"] { padding-bottom: 28px !important; }
    .creation-detail-card,
    .office-start-panel,
    .pricing-card,
    .portal-help-card,
    .portal-feature-card,
    .portal-control-card,
    .portal-contact-card { border-radius: 10px !important; }
}

/* Final desktop alignment and scrolling contract. Keep public content on the
 * shared left guide instead of centering a fixed-width pane on wide screens. */
@media (min-width: 921px) {
    .creation-app [data-fuuvo-app-scroll="1"],
    .portal-shell [data-fuuvo-app-scroll="1"],
    .feature-shell [data-fuuvo-app-scroll="1"] {
        width: min(1080px, calc(100% - 96px)) !important;
        margin-left: 56px !important;
        margin-right: 40px !important;
    }

    .portal-shell:has(.ai-card-redesign),
    .portal-shell:has(.ai-card-redesign) .portal-content,
    .portal-shell:has(.ai-card-redesign) .portal-main,
    .portal-shell:has(.ai-card-redesign) .ai-card-redesign {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }
}
