@charset "UTF-8";

/**
 * is생활정보 공용 미니멀 UI
 * 심리테스트는 별도 디자인 작업 대상으로 이 파일의 범위에서 제외한다.
 */
:is(
    body.life-business-registration-page,
    body.life-emedicine-page,
    body.life-growth-chart-page,
    body.life-qr-generator-page,
    body.life-cdr-test-page,
    body.weather-unified-page
) {
    --life-ink: #171717;
    --life-muted: #6b7280;
    --life-line: #e1e4e8;
    --life-soft: #f5f6f7;
    --life-yellow: #ffdd2d;
    --life-yellow-hover: #f3cd00;
    background: #fff !important;
    color: var(--life-ink) !important;
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

:is(
    body.life-business-registration-page,
    body.life-emedicine-page,
    body.life-growth-chart-page,
    body.life-qr-generator-page,
    body.life-cdr-test-page,
    body.weather-unified-page
) .life-info-hero {
    border-bottom: 0 !important;
    background: #fff !important;
}

:is(
    body.life-business-registration-page,
    body.life-emedicine-page,
    body.life-growth-chart-page,
    body.life-qr-generator-page,
    body.life-cdr-test-page
) .life-main {
    padding: 0 0 64px !important;
    background: #fff !important;
}

:is(
    body.life-business-registration-page,
    body.life-emedicine-page,
    body.life-growth-chart-page,
    body.life-qr-generator-page,
    body.life-cdr-test-page
) .life-container {
    width: min(1200px, calc(100% - 40px)) !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

:is(
    body.life-business-registration-page,
    body.life-emedicine-page,
    body.life-growth-chart-page,
    body.life-qr-generator-page,
    body.life-cdr-test-page
) .pc-search-interface {
    display: grid !important;
    grid-template-columns: 224px minmax(0, 1fr) !important;
    gap: 24px !important;
    align-items: start !important;
}

:is(
    body.life-business-registration-page,
    body.life-emedicine-page,
    body.life-growth-chart-page,
    body.life-qr-generator-page,
    body.life-cdr-test-page
) .search-sidebar {
    position: sticky !important;
    top: 92px !important;
    height: auto !important;
    max-height: none !important;
    padding: 14px 0 24px !important;
    overflow: visible !important;
    border: 0 !important;
    border-top: 3px solid var(--life-ink) !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
}

:is(
    body.life-business-registration-page,
    body.life-emedicine-page,
    body.life-growth-chart-page,
    body.life-qr-generator-page,
    body.life-cdr-test-page
) .search-results-area {
    min-width: 0 !important;
    min-height: 440px !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-top: 3px solid var(--life-ink) !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
}

:is(
    body.life-business-registration-page,
    body.life-emedicine-page,
    body.life-growth-chart-page,
    body.life-qr-generator-page,
    body.life-cdr-test-page
) .search-sidebar-header {
    min-height: 64px !important;
    margin: 0 0 14px !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid var(--life-line) !important;
    background: #fff !important;
}

:is(
    body.life-business-registration-page,
    body.life-emedicine-page,
    body.life-growth-chart-page,
    body.life-qr-generator-page,
    body.life-cdr-test-page
) .header-with-back {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

:is(
    body.life-business-registration-page,
    body.life-emedicine-page,
    body.life-growth-chart-page,
    body.life-qr-generator-page,
    body.life-cdr-test-page
) .back-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border: 1px solid var(--life-line) !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: var(--life-ink) !important;
    box-shadow: none !important;
}

:is(
    body.life-business-registration-page,
    body.life-emedicine-page,
    body.life-growth-chart-page,
    body.life-qr-generator-page,
    body.life-cdr-test-page
) .header-text {
    min-width: 0;
}

:is(
    body.life-business-registration-page,
    body.life-emedicine-page,
    body.life-growth-chart-page,
    body.life-qr-generator-page,
    body.life-cdr-test-page
) .header-text :is(h1, h3) {
    margin: 0 0 3px !important;
    overflow: hidden;
    color: var(--life-ink) !important;
    font-size: 16px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:is(
    body.life-business-registration-page,
    body.life-emedicine-page,
    body.life-growth-chart-page,
    body.life-qr-generator-page,
    body.life-cdr-test-page
) .header-text p {
    margin: 0 !important;
    overflow: hidden;
    color: var(--life-muted) !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:is(
    body.life-business-registration-page,
    body.life-emedicine-page,
    body.life-growth-chart-page,
    body.life-qr-generator-page,
    body.life-cdr-test-page
) :is(.insu-info-pc-fchome, .insu-link-mobile-fchome) {
    display: none !important;
}

.life-services-dashboard {
    display: flex;
    flex-direction: column;
    gap: 2px !important;
    margin: 0 0 14px !important;
    padding: 0 0 14px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--life-line, #e1e4e8) !important;
    background: #fff !important;
}

.life-dashboard-btn {
    position: relative;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 44px !important;
    padding: 10px 11px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: var(--life-ink, #171717) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.life-dashboard-btn:hover {
    background: var(--life-soft, #f5f6f7) !important;
    color: var(--life-ink, #171717) !important;
}

.life-dashboard-btn.active {
    background: var(--life-yellow, #ffdd2d) !important;
    color: var(--life-ink, #171717) !important;
    font-weight: 700 !important;
}

.life-dashboard-btn.is-disabled {
    background: #f5f6f7 !important;
    color: #8a9099 !important;
    cursor: default !important;
}

.life-dashboard-btn i {
    width: 18px;
    color: currentColor !important;
    text-align: center;
}

.life-dashboard-status {
    margin-left: auto;
    color: #7a6330;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.life-btn-text-mobile {
    display: none;
}

:is(
    body.life-business-registration-page,
    body.life-emedicine-page,
    body.life-growth-chart-page,
    body.life-qr-generator-page,
    body.life-cdr-test-page
) :is(input[type="text"], input[type="search"], input[type="number"], input[type="date"], select, textarea, .form-control) {
    min-height: 44px !important;
    border: 1px solid #d7dbe0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--life-ink) !important;
    box-shadow: none !important;
}

:is(
    body.life-business-registration-page,
    body.life-emedicine-page,
    body.life-growth-chart-page,
    body.life-qr-generator-page,
    body.life-cdr-test-page
) :is(input, select, textarea, .form-control):focus {
    outline: none !important;
    border-color: #b49b00 !important;
    box-shadow: 0 0 0 3px rgba(255, 221, 45, 0.22) !important;
}

:is(
    body.life-business-registration-page,
    body.life-emedicine-page,
    body.life-growth-chart-page,
    body.life-qr-generator-page,
    body.life-cdr-test-page
) :is(.search-btn-primary, .search-btn-simple, .input-btn, .cdr-btn-next, .qr-generate-btn, button[type="submit"]) {
    min-height: 46px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: var(--life-yellow) !important;
    color: var(--life-ink) !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    transform: none !important;
}

:is(
    body.life-business-registration-page,
    body.life-emedicine-page,
    body.life-growth-chart-page,
    body.life-qr-generator-page,
    body.life-cdr-test-page
) :is(.search-btn-primary, .search-btn-simple, .input-btn, .cdr-btn-next, .qr-generate-btn, button[type="submit"]):hover {
    background: var(--life-yellow-hover) !important;
    color: var(--life-ink) !important;
    transform: none !important;
}

:is(
    body.life-business-registration-page,
    body.life-emedicine-page,
    body.life-growth-chart-page,
    body.life-qr-generator-page,
    body.life-cdr-test-page
) :is(.info-section-simple, .search-guide, .initial-state, .info-card-simple, .form-helper) {
    border: 0 !important;
    border-top: 1px solid var(--life-line) !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: var(--life-muted) !important;
    box-shadow: none !important;
}

body.life-business-registration-page :is(.business-toggle .toggle-button.active, .mobile-business-toggle .mobile-toggle-button.active),
body.life-growth-chart-page :is(.toggle-button.active, .radio-group label:has(input:checked)) {
    border-color: var(--life-yellow) !important;
    background: var(--life-yellow) !important;
    color: var(--life-ink) !important;
    box-shadow: none !important;
}

body.life-emedicine-page .gradient-text {
    background: none !important;
    color: var(--life-ink) !important;
    -webkit-text-fill-color: currentColor !important;
}

/* 검색형 생활서비스: 장식 아이콘 대신 텍스트와 하단선으로 정보 위계를 정리 */
body.life-business-registration-page .business-mobile-form .form-label i,
body.life-emedicine-page #medicineSearchFormMobile .form-label i {
    display: none !important;
}

body.life-business-registration-page .business-mobile-form .form-label,
body.life-emedicine-page #medicineSearchFormMobile .form-label {
    gap: 0 !important;
    color: var(--life-ink) !important;
    font-weight: 650 !important;
}

body.life-business-registration-page .business-mobile-form .form-control,
body.life-emedicine-page #medicineSearchFormMobile .form-control {
    padding-right: 4px !important;
    padding-left: 4px !important;
    border: 0 !important;
    border-bottom: 2px solid #34383f !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.life-business-registration-page .business-mobile-form .form-control:focus,
body.life-emedicine-page #medicineSearchFormMobile .form-control:focus {
    border-bottom-color: var(--life-yellow) !important;
    outline: 0 !important;
    box-shadow: none !important;
}

body.life-business-registration-page [data-result-empty] .empty-state > i,
body.life-emedicine-page [data-result-empty] .empty-state > i,
body.life-growth-chart-page #searchPlaceholder .empty-state > i {
    display: none !important;
}

body.life-emedicine-page .life-right-guide,
body.life-growth-chart-page .growth-guide-inline {
    display: none !important;
}

body.life-emedicine-page [data-result-empty] .empty-state h4,
body.life-emedicine-page [data-result-empty] .empty-state p,
body.life-growth-chart-page #searchPlaceholder .empty-state h4,
body.life-growth-chart-page #searchPlaceholder .empty-state > p {
    font-size: 0 !important;
}

body.life-emedicine-page [data-result-empty] .empty-state h4::after {
    content: '일반의약품 이용 가이드';
    font-size: 21px;
}

body.life-emedicine-page [data-result-empty] .empty-state p::after {
    content: '의약품명 일부만 입력하면 효능, 복용법과 주의사항을 확인할 수 있습니다. 검색 정보는 30일 주기로 최신화됩니다.';
    display: block;
    max-width: 560px;
    font-size: 14px;
    line-height: 1.7;
}

body.life-growth-chart-page #searchPlaceholder .empty-state h4::after {
    content: '성장도표 안내';
    font-size: 21px;
}

body.life-growth-chart-page #searchPlaceholder .empty-state > p::after {
    content: '2017년 질병관리본부 표준성장도표를 기준으로 신장 백분위와 BMI 기반 체중 상태를 분석합니다.';
    display: block;
    max-width: 580px;
    font-size: 14px;
    line-height: 1.7;
}

body.life-growth-chart-page #searchPlaceholder .search-examples {
    margin-top: 22px !important;
}

/* 검색형 생활서비스: 좌측은 서비스 이동/향후 광고 영역으로 두고 입력과 안내는 우측에서 처리 */
.life-right-guide {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0;
    padding: 13px 0;
    border-bottom: 1px solid var(--life-line);
    color: var(--life-muted);
    font-size: 13px;
    line-height: 1.55;
}

.life-right-guide strong {
    flex: 0 0 auto;
    color: var(--life-ink);
    font-size: 13px;
    font-weight: 650;
}

@media (min-width: 1025px) {
    :is(
        body.life-business-registration-page,
        body.life-emedicine-page,
        body.life-growth-chart-page
    ) .search-sidebar > .search-form-container,
    :is(
        body.life-business-registration-page,
        body.life-emedicine-page,
        body.life-growth-chart-page
    ) .search-sidebar > .info-section {
        display: none !important;
    }

    body.life-business-registration-page .business-mobile-search-wrap,
    body.life-emedicine-page .emedicine-mobile-search-wrap,
    body.life-growth-chart-page .growth-mobile-search-wrap {
        display: block !important;
        margin: 0 !important;
        padding: 16px 0 18px !important;
        border: 0 !important;
        border-bottom: 1px solid var(--life-line) !important;
        background: #fff !important;
    }

    body.life-business-registration-page .business-mobile-search-inner,
    body.life-emedicine-page .emedicine-mobile-search-inner {
        padding: 0 !important;
    }

    body.life-emedicine-page #medicineSearchFormMobile {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 118px;
        gap: 10px;
        align-items: end;
    }

    body.life-emedicine-page #medicineSearchFormMobile .form-group,
    body.life-emedicine-page #medicineSearchFormMobile .search-btn-primary {
        margin: 0 !important;
    }

    body.life-emedicine-page #medicineSearchFormMobile .form-hint {
        display: none !important;
    }

    body.life-business-registration-page .business-mobile-search-wrap .business-toggle {
        display: inline-flex !important;
        width: auto !important;
        margin: 0 0 12px !important;
        gap: 6px !important;
        align-items: stretch !important;
    }

    body.life-business-registration-page .business-mobile-search-wrap .business-toggle .toggle-button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        width: auto !important;
        min-width: 112px !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 15px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.life-business-registration-page .business-mobile-form {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) 128px !important;
        gap: 10px !important;
        align-items: end !important;
    }

    body.life-business-registration-page [data-form-section="status"][data-mobile-section] .business-mobile-form {
        grid-template-columns: minmax(0, 1fr) 128px !important;
    }

    body.life-business-registration-page .business-mobile-form :is(.form-group, .search-btn-primary, .form-helper) {
        margin: 0 !important;
    }

    body.life-business-registration-page .business-mobile-form .form-label {
        display: flex !important;
        align-items: center !important;
        min-height: 20px !important;
        margin: 0 0 6px !important;
        font-size: 13px !important;
        line-height: 20px !important;
        white-space: nowrap !important;
    }

    body.life-business-registration-page .business-mobile-form :is(.form-control, .search-btn-primary) {
        width: 100% !important;
        height: 46px !important;
        min-height: 46px !important;
        margin: 0 !important;
    }

    body.life-business-registration-page .business-mobile-search-wrap {
        padding-bottom: 16px !important;
    }

    body.life-business-registration-page .business-mobile-form :is(.form-hint, .form-helper) {
        display: none !important;
    }

    body.life-growth-chart-page #mobileGrowthForm {
        display: grid !important;
        grid-template-columns: 170px minmax(150px, 0.8fr) minmax(250px, 1.15fr) 138px;
        gap: 10px !important;
        align-items: end !important;
    }

    body.life-growth-chart-page #mobileGrowthForm > .mobile-form-group,
    body.life-growth-chart-page #mobileGrowthForm > .growth-mobile-height-weight-row,
    body.life-growth-chart-page #mobileGrowthForm > .mobile-search-btn {
        margin: 0 !important;
    }

    body.life-growth-chart-page #mobileGrowthForm .mobile-form-hint {
        display: none !important;
    }

    body.life-growth-chart-page .growth-mobile-height-weight-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px !important;
    }

    body.life-growth-chart-page .growth-guide-inline {
        margin: 0 !important;
        padding: 13px 0 !important;
        border: 0 !important;
        border-bottom: 1px solid var(--life-line) !important;
        border-radius: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    body.life-growth-chart-page .growth-guide-inline ul {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 20px;
        margin: 6px 0 0 !important;
        padding: 0 !important;
        list-style: none;
    }
}

body.life-emedicine-page .emedicine-result-item {
    padding: 16px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--life-line) !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    transform: none !important;
}

body.life-growth-chart-page :is(.chart-container, .result-card, .growth-result, .reference-table-container),
body.life-qr-generator-page :is(.qr-container, .qr-result, .qr-preview, .option-section),
body.life-business-registration-page :is(.result-card, .business-result-card) {
    border: 0 !important;
    border-bottom: 1px solid var(--life-line) !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.life-cdr-test-page .cdr-page-content {
    max-width: 860px !important;
    margin: 0 auto !important;
    padding: 22px 0 48px !important;
}

body.life-cdr-test-page .cdr-step-progress {
    gap: 3px !important;
    margin: 0 0 28px !important;
}

body.life-cdr-test-page .cdr-step-dot {
    height: 4px !important;
    border-radius: 0 !important;
    background: #e5e7eb !important;
}

body.life-cdr-test-page .cdr-step-dot:is(.active, .done) {
    background: var(--life-yellow) !important;
}

body.life-cdr-test-page .cdr-step-header {
    gap: 12px !important;
    margin-bottom: 18px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid var(--life-line) !important;
}

body.life-cdr-test-page .cdr-step-header .step-num {
    border-radius: 8px !important;
    background: var(--life-yellow) !important;
    color: var(--life-ink) !important;
}

body.life-cdr-test-page :is(.cdr-warning, .section-note) {
    padding: 14px 0 !important;
    border: 0 !important;
    border-top: 1px solid var(--life-line) !important;
    border-bottom: 1px solid var(--life-line) !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #4b5563 !important;
    box-shadow: none !important;
}

body.life-cdr-test-page .question-group {
    margin: 0 !important;
    padding: 18px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--life-line) !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.life-cdr-test-page .question-options label {
    border: 1px solid #d7dbe0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.life-cdr-test-page .question-options label:has(input:checked) {
    border-color: var(--life-yellow) !important;
    background: #fffbe5 !important;
    color: var(--life-ink) !important;
}

/* 관리자 전용 날씨 화면 */
body.weather-unified-page .weather-bg {
    display: none !important;
}

.life-weather-main {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 64px;
}

.life-weather-layout {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.life-weather-sidebar {
    position: sticky;
    top: 92px;
    padding: 14px 0 24px;
    border-top: 3px solid var(--life-ink);
    background: #fff;
}

.life-weather-workspace {
    min-width: 0;
    border-top: 3px solid var(--life-ink);
    background: #fff;
}

body.weather-unified-page .life-weather-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.weather-unified-page :is(
    .weather-content-header,
    .location-bar,
    .current-weather-card,
    .life-index-compact,
    .hourly-section,
    .daily-section,
    .forecast-text-section,
    .sea-forecast-section,
    .forecast-text-card
) {
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: var(--life-ink) !important;
    box-shadow: none !important;
}

body.weather-unified-page .weather-content-header {
    margin: 0 !important;
    padding: 0 0 14px !important;
    border-bottom: 1px solid var(--life-line) !important;
}

body.weather-unified-page .weather-actions-bar {
    min-height: 60px;
    padding: 8px 0 !important;
}

body.weather-unified-page .weather-page-title,
body.weather-unified-page .weather-page-title * {
    color: var(--life-ink) !important;
    font-weight: 650 !important;
}

body.weather-unified-page :is(.back-link, .refresh-btn, .location-icon-btn, .location-search-btn) {
    border: 1px solid var(--life-line) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--life-ink) !important;
    box-shadow: none !important;
}

body.weather-unified-page .location-bar {
    min-height: 54px;
    padding: 8px 0 !important;
    border-top: 1px solid var(--life-line) !important;
}

body.weather-unified-page :is(.current-weather-card, .life-index-compact, .hourly-section, .daily-section, .forecast-text-section, .sea-forecast-section) {
    margin: 0 !important;
    padding: 22px 0 !important;
    border-bottom: 1px solid var(--life-line) !important;
}

body.weather-unified-page .current-weather-card::before,
body.weather-unified-page .current-weather-card::after {
    display: none !important;
}

body.weather-unified-page .current-weather-card *,
body.weather-unified-page .life-index-compact *,
body.weather-unified-page .daily-item * {
    color: inherit;
    text-shadow: none !important;
}

body.weather-unified-page :is(.weather-details, .index-badge, .life-advice-list, .daily-item, .hourly-item) {
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.weather-unified-page :is(.daily-item, .hourly-item) {
    border-right: 1px solid var(--life-line) !important;
}

body.weather-unified-page :is(.section-badge, .sea-region-badge) {
    border: 0 !important;
    border-radius: 4px !important;
    background: #fff5a6 !important;
    color: #5f5000 !important;
}

body.weather-unified-page .data-source {
    padding: 18px 0 !important;
    border: 0 !important;
    color: var(--life-muted) !important;
}

@media (max-width: 1024px) {
    body.life-cdr-test-page .search-sidebar {
        display: block !important;
    }

    body.life-cdr-test-page .search-sidebar .life-services-dashboard {
        display: grid !important;
    }

    :is(
        body.life-business-registration-page,
        body.life-emedicine-page,
        body.life-growth-chart-page,
        body.life-qr-generator-page,
        body.life-cdr-test-page
    ) .life-container,
    .life-weather-main {
        width: calc(100% - 30px) !important;
    }

    :is(
        body.life-business-registration-page,
        body.life-emedicine-page,
        body.life-growth-chart-page,
        body.life-qr-generator-page,
        body.life-cdr-test-page
    ) .pc-search-interface,
    .life-weather-layout {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0 !important;
    }

    :is(
        body.life-business-registration-page,
        body.life-emedicine-page,
        body.life-growth-chart-page,
        body.life-qr-generator-page,
        body.life-cdr-test-page
    ) .search-sidebar,
    .life-weather-sidebar {
        position: static !important;
        top: auto !important;
        padding: 10px 0 14px !important;
        border-top: 3px solid var(--life-ink) !important;
    }

    :is(
        body.life-business-registration-page,
        body.life-emedicine-page,
        body.life-growth-chart-page,
        body.life-qr-generator-page,
        body.life-cdr-test-page
    ) .search-results-area,
    .life-weather-workspace {
        min-height: 0 !important;
        border-top: 1px solid var(--life-line) !important;
    }

    .life-services-dashboard,
    .life-services-dashboard.life-services-dashboard-mobile {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 5px !important;
        margin: 0 !important;
        padding: 0 0 14px !important;
        border-bottom: 0 !important;
    }

    .life-dashboard-btn {
        justify-content: center !important;
        min-width: 0 !important;
        min-height: 46px !important;
        padding: 8px 5px !important;
        border: 1px solid var(--life-line, #e1e4e8) !important;
        text-align: center;
    }

    .life-btn-text-pc {
        display: none !important;
    }

    .life-btn-text-mobile {
        display: inline !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .life-dashboard-status {
        position: absolute;
        top: 2px;
        right: 4px;
        margin: 0;
        font-size: 8px;
    }

    body.weather-unified-page .life-weather-container {
        padding-bottom: 20px !important;
    }
}

@media (max-width: 480px) {
    :is(
        body.life-business-registration-page,
        body.life-emedicine-page,
        body.life-growth-chart-page,
        body.life-qr-generator-page,
        body.life-cdr-test-page
    ) .life-container,
    .life-weather-main {
        width: calc(100% - 24px) !important;
    }

    .life-dashboard-btn {
        gap: 5px !important;
        font-size: 11px !important;
    }

    .life-dashboard-btn i {
        width: 14px;
        font-size: 12px;
    }

    body.life-cdr-test-page .cdr-page-content {
        padding: 18px 0 36px !important;
    }

    body.weather-unified-page :is(.current-weather-card, .life-index-compact, .hourly-section, .daily-section, .forecast-text-section, .sea-forecast-section) {
        padding: 18px 0 !important;
    }
}

/* 사업자·의약품·성장도표·QR 모바일 상단을 CDR 평가 구조와 통일 */
@media (max-width: 1024px) {
    :is(
        body.life-business-registration-page,
        body.life-emedicine-page,
        body.life-growth-chart-page,
        body.life-qr-generator-page
    ) .search-sidebar {
        display: block !important;
    }

    :is(
        body.life-business-registration-page,
        body.life-emedicine-page,
        body.life-growth-chart-page,
        body.life-qr-generator-page
    ) .search-sidebar > :is(.search-form-container, .info-section) {
        display: none !important;
    }

    :is(
        body.life-business-registration-page,
        body.life-emedicine-page,
        body.life-growth-chart-page,
        body.life-qr-generator-page
    ) .search-sidebar .life-services-dashboard:not(.life-services-dashboard-mobile) {
        display: grid !important;
    }

    body.life-business-registration-page .search-results-area > .life-services-dashboard.life-services-dashboard-mobile,
    body.life-emedicine-page .search-results-area > .life-services-dashboard.life-services-dashboard-mobile,
    body.life-growth-chart-page .search-results-area > .life-services-dashboard.life-services-dashboard-mobile,
    body.life-qr-generator-page .search-results-area > .life-services-dashboard.life-services-dashboard-mobile {
        display: none !important;
    }

    :is(
        body.life-business-registration-page,
        body.life-emedicine-page,
        body.life-growth-chart-page,
        body.life-qr-generator-page,
        body.life-cdr-test-page
    ) .life-info-hero {
        height: 63px !important;
        min-height: 63px !important;
        padding: 13px 10px 11px !important;
        box-sizing: border-box !important;
    }

    :is(
        body.life-business-registration-page,
        body.life-emedicine-page,
        body.life-growth-chart-page,
        body.life-qr-generator-page,
        body.life-cdr-test-page
    ) .life-info-hero-title {
        font-size: 20px !important;
        line-height: 24px !important;
    }

    :is(
        body.life-business-registration-page,
        body.life-emedicine-page,
        body.life-growth-chart-page,
        body.life-qr-generator-page,
        body.life-cdr-test-page
    ) .life-container {
        width: 100% !important;
        max-width: none !important;
        margin-right: auto !important;
        margin-left: auto !important;
        padding-right: 10px !important;
        padding-left: 10px !important;
        box-sizing: border-box !important;
    }

    body:has(.life-info-hero).life-business-registration-page .life-container,
    body:has(.life-info-hero).life-emedicine-page .life-container,
    body:has(.life-info-hero).life-growth-chart-page .life-container,
    body:has(.life-info-hero).life-qr-generator-page .life-container,
    body:has(.life-info-hero).life-cdr-test-page .life-container,
    body.insu-info-dashboard-page.life-cdr-test-page .life-container {
        width: 100% !important;
        max-width: none !important;
        margin-right: auto !important;
        margin-left: auto !important;
        padding-right: 10px !important;
        padding-left: 10px !important;
        box-sizing: border-box !important;
    }

    :is(
        body.life-business-registration-page,
        body.life-emedicine-page,
        body.life-growth-chart-page,
        body.life-qr-generator-page,
        body.life-cdr-test-page
    ) .search-sidebar {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        margin-right: 0 !important;
        margin-left: calc(50% - 50vw + 10px) !important;
    }
}

/* PC 페이지 전환 시 상단 구분선과 대시보드 시작 위치 고정 */
@media (min-width: 1025px) {
    :is(
        body.life-business-registration-page,
        body.life-emedicine-page,
        body.life-growth-chart-page,
        body.life-qr-generator-page,
        body.life-cdr-test-page
    ) .life-info-hero-title {
        font-size: 26.4px !important;
        line-height: 31.68px !important;
    }

    body.life-growth-chart-page .insurance-content {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .life-dashboard-btn,
    :is(
        body.life-business-registration-page,
        body.life-emedicine-page,
        body.life-growth-chart-page,
        body.life-qr-generator-page,
        body.life-cdr-test-page,
        body.weather-unified-page
    ) * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
