/* D2-28 (DES_DECISIONS 15): the mobile home (767px and below) is the previous
   production (V4, 3ad34fa) screen. Only what the owner asked for differs: no quick
   access dialog and no always-visible hint under the search module. Desktop (768px
   and wider) is untouched by this file. */
@media (max-width: 767px) {
    /* Restore V4 token values only inside home chrome/cards. Result, detail,
       weather and consortium dialogs retain the shared readability floors. */
    html body.unified-page:not(.results-dialog-active) #searchSection,
    html body.unified-page :is(header, #mobileHomeSummaryRegion, #newsCard, #stockCard, #bidWorkCard, #homeModules .service-footer) {
        --font-body-min: 0px;
        --font-meta-min: 0px;
        --text-line-height-min: 0;
        --touch-target-min: 0px;
        --color-text-muted: #94a3b8;
        --readable-meta-color: #94a3b8;
    }
    html[data-theme="dark"] body.unified-page:not(.results-dialog-active) #searchSection,
    html[data-theme="dark"] body.unified-page :is(header, #mobileHomeSummaryRegion, #newsCard, #stockCard, #bidWorkCard, #homeModules .service-footer) {
        --color-text-muted: #8fa0b5;
        --readable-meta-color: #94a3b8;
    }
    /* V4 had no notice band (the notice popup opens by itself) and no card settings row. */
    html body.unified-page #homeNoticeSlot,
    html body.unified-page #homeModules #homeCardSettingsRow,
    html body.unified-page #homeModules #bidWorkFooter:empty {
        display: none !important;
    }
    /* V4 spacing: 8px side padding, cards 2px apart, footer 8px below. */
    html body.unified-page:not(.mobile-shell-embed) #homeModules {
        --home-gap: 2px;
        --home-gutter: 8px;
        padding: 4px 8px var(--app-bottom-reserved, 0px) !important;
    }
    /* V4 입찰업무 list: three rows, content height (no 220px reservation). */
    html body.unified-page #homeModules #bidWorkCard #bidWorkContent {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }
    html body.unified-page #homeModules #infoCardsSection .service-footer { margin-top: 6px !important; }
    /* V4 date·weather row: content height, no reserved feedback line. */
    html body.unified-page #weatherCard {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding-bottom: 0 !important;
        overflow: hidden !important;
    }
    html body.unified-page #weatherCard > .home-card-feedback { display: none !important; }
}
