body .header-service {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 22px;
    border-radius: 24px;
    background: #2374d9;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

body .header-nav-toggle {
    display: none;
}

body [data-front-await]:not(.front-ajax-ready) {
    visibility: hidden;
}

body [data-auth-only][hidden],
body [data-auth-guest][hidden],
body [data-auth-role][hidden] {
    display: none !important;
}

body .introduction-counter {
    margin: 6px 0 0;
    color: #687384;
    text-align: right;
    font-size: 12px;
}

body .salary-stack span {
    display: block;
    white-space: nowrap;
}

body [data-auth-notifications-hold] {
    display: none !important;
}

body[data-page-access]:not([data-access-granted]) {
    visibility: hidden;
}

@media (max-width: 640px) {
    body .popup-wrap .popup {
        max-width: calc(100% - 32px);
        padding: 20px;
    }

    body .header__inner {
        padding: 0 16px;
    }

    body .header-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        border: 0;
        background: none;
        font-size: 22px;
        cursor: pointer;
    }

    body .header-nav {
        display: none;
        position: absolute;
        left: 0;
        top: 58px;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 10px 20px 18px;
        transform: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        box-shadow: var(--shadow);
    }

    body .header-nav.is-open {
        display: flex;
    }

    body .header-nav a {
        min-height: 44px;
    }

    body .header-user {
        margin-left: auto;
        gap: 12px;
    }

    body .header-service {
        min-height: 36px;
        padding: 0 16px;
        font-size: 13px;
    }
}

@media (max-width: 700px) {
    body .footer-inner {
        flex-direction: column;
        gap: 0;
    }

    body .footer-company,
    body .footer-info,
    body .footer-links {
        flex: 0 1 auto;
        min-width: 0;
    }
}

body .chat-items {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

body .chat-list-empty {
    position: absolute;
    top: 50%;
    right: 20px;
    left: 20px;
    margin: 0;
    transform: translateY(-50%);
    color: var(--color-text-sub);
    text-align: center;
    font-size: 14px;
}

body .chat-room-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 24px;
    background: #fff;
}

body .chat-room-empty-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(100%, 440px);
    min-height: 160px;
    padding: 24px;
    border: 1px solid #dfe3e8;
    border-radius: 9px;
    background: #f8f9fb;
    color: #252a30;
    text-align: center;
}

body .chat-room-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #6c7278;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-style: normal;
}

body .chat-room-empty-card strong {
    font-size: 15px;
    font-weight: 700;
}

body .chat-room-empty-card p {
    margin: 6px 0 0;
    color: #4e5968;
    font-size: 13px;
    line-height: 1.5;
}

body .chat-room[hidden],
body .chat-room-empty[hidden],
body .chat-list-empty[hidden] {
    display: none !important;
}

@media (max-width: 620px) {
    body .chat-panel:has(.chat-items:empty) .chat-list {
        height: 330px;
    }

    body .chat-room-empty {
        min-height: 240px;
        border-top: 1px solid #e8eaed;
    }
}

body .join-wrap[data-member-signup] input[type="date"] {
    cursor: pointer;
}

body [data-member-profile] .form-row[hidden],
body .join-wrap[data-member-signup] .form-row[hidden],
body .join-wrap[data-member-signup] button[hidden] {
    display: none !important;
}

body .join-wrap[data-member-signup] .popup-selection-control {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-sizing: border-box;
    background: #fff;
}

body .join-wrap[data-member-signup] .popup-selection-control:focus-within {
    border-color: var(--blue);
}

body .join-wrap[data-member-signup] .popup-selection-control .selected-subject-wrap {
    display: none;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 7px 0 7px 12px;
}

body .join-wrap[data-member-signup] .popup-selection-control:has(.selected-subject) .selected-subject-wrap {
    display: flex;
}

body .join-wrap[data-member-signup] .popup-selection-control .popup-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    padding: 0 15px;
    border: 0;
    background-color: transparent;
    cursor: pointer;
    text-align: left;
}

body .join-wrap[data-member-signup] .popup-selection-control:has(.selected-subject) .popup-input {
    flex: 0 0 40px;
    width: 40px;
    padding: 0;
    background-position: center;
}

body .join-wrap[data-member-signup] .popup-selection-control:has(.selected-subject) .popup-placeholder {
    display: none;
}

body .join-wrap[data-member-signup] .popup-selection-control .selected-subject {
    max-width: 100%;
    min-width: 0;
    color: #191c24;
    white-space: nowrap;
}

body .join-wrap[data-member-signup] .popup-selection-control .selected-subject > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

body .join-wrap[data-member-signup] .popup-selection-control .selected-subject-remove {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    background: transparent;
}

body .join-wrap[data-member-signup="DOCTOR"] .file-form-item .form-control {
    flex: 0 1 450px;
    width: 100%;
    min-width: 0;
}

body .join-wrap[data-member-signup="DOCTOR"] .file-form-list {
    padding-inline: 40px;
}

body .join-wrap[data-member-signup="DOCTOR"] .file-form-item .file-input {
    width: 100%;
}

body .file-preview img[hidden],
body .logo-preview img[hidden],
body .my-info-profile img[hidden] {
    display: none;
}

@media (max-width: 767px) {
    body .join-wrap .agree-list,
    body .join-wrap .form-list,
    body .join-wrap .join-form-item:not(.file-form-item) {
        padding: 20px;
    }

    body .join-wrap .form-row {
        flex-direction: column;
        gap: 8px;
    }

    body .join-wrap .form-label {
        flex: 0 1 auto;
        padding-top: 0;
    }

    body .join-wrap .form-control {
        min-width: 0;
        max-width: 100%;
    }

    body .join-wrap .form-control-button .input {
        min-width: 0;
    }

    body .join-wrap .join-form-fields,
    body .join-wrap .join-form-fields .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    body .join-wrap .join-form-row-full .form-control,
    body .join-wrap .join-form-fields .date-range,
    body .join-wrap .logo-upload {
        flex-wrap: wrap;
    }

    body .join-wrap[data-member-signup="DOCTOR"] .file-form-list {
        padding-inline: 21px;
    }

    body .join-wrap[data-member-signup="DOCTOR"] .file-form-item .form-control {
        flex: 0 1 auto;
    }
}

body .multi-select-popup[data-reference-type="SPECIALTY"] .multi-select-category {
    display: none;
}

body .multi-select-procedure-categories,
body .multi-select-procedure-list {
    display: none;
}

body .multi-select-popup[data-type="procedure-subject"] .multi-select-list {
    display: none;
}

body .multi-select-popup[data-type="procedure-subject"] .multi-select-procedure-categories {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 12px;
    padding: 24px;
    overflow-y: auto;
}

body .multi-select-procedure-categories label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

body .multi-select-procedure-categories input {
    width: 18px;
    height: 18px;
    margin: 0;
}

body .multi-select-popup[data-type="procedure-subject"] .multi-select-procedure-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 12px;
    height: 140px;
    margin-top: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 9px;
    overflow-y: auto;
}

body .multi-select-empty {
    grid-column: 1 / -1;
    margin: 0;
    color: #b9c0cc;
    font-size: 13px;
}

body .reference-status {
    display: block;
    margin-top: 6px;
    color: #b42318;
    font-size: 12px;
}

body .reference-status[hidden] {
    display: none;
}

@media (max-width: 767px) {
    body .multi-select-category {
        flex-basis: 34%;
        padding: 8px;
    }

    body .multi-select-popup[data-type="procedure-subject"] .multi-select-procedure-categories,
    body .multi-select-popup[data-type="procedure-subject"] .multi-select-procedure-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 12px;
    }
}

body .search-popup-filter {
    display: flex;
    gap: 12px;
}

body .search-popup-filter[hidden] {
    display: none;
}

body .search-popup[data-type="exclude-hospital"] .popup-guide {
    color: #191c24;
    font-weight: 600;
}

body .search-filter-select {
    min-width: 0;
}

body .search-filter-options {
    max-height: 260px;
    overflow-y: auto;
}

@media (max-width: 560px) {
    body .pay-range__track {
        width: calc(100% - 64px);
    }
}
body .profile-logo img[hidden],
body .profile-image img[hidden] {
    display: none;
}

body .profile-logo:has(img:not([hidden]))::before,
body .profile-image:has(img:not([hidden]))::before {
    display: none;
}

body .profile-logo img:not([hidden]),
body .profile-image img:not([hidden]) {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

body .hospital-logo img[hidden] {
    display: none;
}

body .hospital-logo img:not([hidden]) {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

body .hospital-logo:has(img:not([hidden])) {
    background: transparent;
}

body .mini-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

body .unread[hidden] {
    display: none;
}

body .profile-open-control {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    cursor: pointer;
    font-weight: 700;
    color: #424b5a;
}

body .profile-open-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

body .profile-open-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
    flex: none;
    border-radius: 16px;
    background: #c9d1dc;
    transition: background .18s ease;
}

body .profile-open-switch::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px #0002;
    transition: transform .18s ease;
}

body .profile-open-control input:checked + .profile-open-switch {
    background: #2374d9;
}

body .profile-open-control input:checked + .profile-open-switch::after {
    transform: translateX(22px);
}

body .profile-open-control input:focus-visible + .profile-open-switch {
    outline: 3px solid #9ac3fa;
    outline-offset: 3px;
}

body .profile-open-help {
    display: block;
    margin-top: 8px;
    color: #717b8b;
    font-size: 13px;
}

body button.landing-button {
    cursor: pointer;
    font-family: inherit;
}

body .landing-faq__empty {
    margin: 0;
    padding: 28px 18px;
    border: 1px solid #e4e9f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #687384;
    text-align: center;
}

body .landing-faq__list details p {
    white-space: pre-line;
}

body [data-member-profile][data-loading] .my-info-profile,
body [data-member-profile][data-loading] .form-list,
body [data-member-profile][data-loading] .join-form-list,
body [data-member-profile][data-loading] .join-submit {
    visibility: hidden;
}

body [data-member-profile][data-loading] {
    pointer-events: none;
}

body [data-member-profile][data-loading] .my-info-content {
    position: relative;
}

body [data-member-profile][data-loading] .my-info-content::before {
    content: '정보를 불러오는 중입니다.';
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 28px;
    border: 1px solid #e4e9f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #687384;
    text-align: center;
}

body [data-member-profile][data-loading='error'] .my-info-content::before {
    content: '정보를 불러오지 못했습니다. 페이지를 새로고침해 주세요.';
}

body .dashboard-doctor-intro {
    margin: 0 0 28px;
}

body .dashboard-doctor-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #1c59e9;
    font-weight: 700;
    text-decoration: none;
}

body .dashboard-page .keyword-field input {
    padding-right: 62px;
}

@media (max-width: 767px) {
    body .dashboard-page .search-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    body .dashboard-page .date-field {
        width: 100%;
        max-width: none;
    }

    body .dashboard-page .keyword-field {
        grid-column: 1 / -1;
        width: 100%;
    }

    body .dashboard-page .search-button {
        top: auto;
        bottom: 0;
        right: 0;
        width: 54px;
        min-width: 0;
        z-index: 1;
    }

    body .dashboard-page--doctor .page-title-wrap {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        align-items: center;
    }

    body .dashboard-page--doctor .page-title-wrap .page-title {
        grid-column: 1;
        white-space: nowrap;
    }

    body .dashboard-page--doctor .page-title-wrap .arrow {
        grid-column: 1;
        white-space: nowrap;
    }

    body .dashboard-page--doctor .page-title-wrap .date-badge {
        grid-column: 2;
        grid-row: 1 / span 2;
        margin-left: 0;
    }
}

.candidate-table td.actions { display: table-cell; }
.candidate-table td.actions .btn { display: block; width: fit-content; margin: 5px auto; }
.detail-grid + .section-block { margin-top: 28px; }

.member-date-selects { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.member-date-part { min-width: 70px; height: 42px; padding: 6px 24px 6px 10px; border: 1px solid #d7dce3; border-radius: 6px; background-color: #fff; color: inherit; font: inherit; }
.member-date-part[data-date-part="year"] { min-width: 92px; }
.member-date-part:disabled { background-color: #f3f4f6; color: #6b7280; }
input[type="date"][hidden] { display: none !important; }
.join-form-fields .date-range { flex-wrap: wrap; }
.join-form-fields .date-input { width: auto; max-width: 100%; }

body .join-wrap .join-form-fields .date-range {
    display: grid;
    grid-template-columns: max-content max-content max-content auto;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    width: auto;
    min-width: 0;
    column-gap: 12px;
    row-gap: 10px;
}
body .join-wrap .join-form-fields .date-input { flex: 0 0 auto; width: auto; min-width: 0; max-width: none; }
body .join-wrap .join-form-fields .date-range-separator { flex: 0 0 auto; }
body .join-wrap .join-form-fields .member-date-selects { gap: 8px; }
body .join-wrap .join-form-fields .member-date-part { width: 62px; min-width: 62px; padding-inline: 8px 20px; }
body .join-wrap .join-form-fields .member-date-part[data-date-part="year"] { width: 86px; min-width: 86px; }
body .join-wrap .join-form-row-full .form-control:has(> .date-range) { align-items: center; max-width: none; }
[data-fixed-graduation] { pointer-events: none; background-image: none; }
body .join-wrap .member-birth-row { padding-block: 8px; }
body .join-wrap .member-birth-row .member-date-selects { gap: 10px; padding-block: 6px; }
body .join-wrap [data-fixed-graduation-row][hidden] { display: none !important; }
body .dashboard-page .search-form:has(> .dashboard-date-guide:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 200px) auto minmax(0, 200px) minmax(160px, 1fr);
    column-gap: 12px;
    row-gap: 12px;
}
body .dashboard-page .search-form:has(> .dashboard-date-guide:not([hidden])) .keyword-field { grid-column: 4; grid-row: 1; }
.dashboard-date-guide { grid-column: 1 / span 3; grid-row: 2; margin: 0; color: #687384; font-size: 13px; line-height: 1.6; }
[data-dashboard-role][hidden] { display: none !important; }
@media (max-width: 767px) {
    body .join-wrap .join-form-fields .date-range { grid-template-columns: max-content max-content max-content; }
    body .join-wrap .join-form-fields .date-range .check-label { grid-column: 1 / -1; }
    body .dashboard-page .search-form:has(> .dashboard-date-guide:not([hidden])) {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        column-gap: 8px;
        row-gap: 10px;
    }
    body .dashboard-page .search-form:has(> .dashboard-date-guide:not([hidden])) .keyword-field { grid-column: 1 / -1; grid-row: 3; }
    .dashboard-date-guide { grid-column: 1 / -1; }
    body .dashboard-page:not(.dashboard-page--doctor) .page-title-wrap {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 8px;
        align-items: baseline;
    }
    body .dashboard-page:not(.dashboard-page--doctor) .page-title { grid-column: 1; grid-row: 1; font-size: 28px; white-space: nowrap; }
    body .dashboard-page:not(.dashboard-page--doctor) .page-title-wrap .arrow { grid-column: 2; grid-row: 1; font-size: 12px; white-space: nowrap; }
    body .dashboard-page:not(.dashboard-page--doctor) .page-title-wrap .date-badge { grid-column: 1 / -1; grid-row: 2; justify-self: end; margin: 0; }
}
@media (max-width: 575px) {
    body .join-wrap .join-form-fields .date-range { column-gap: 8px; }
    body .join-wrap .join-form-fields .member-date-selects { gap: 6px; }
    body .join-wrap .join-form-fields .member-date-part { width: 49px; min-width: 49px; padding-inline: 5px 15px; font-size: 13px; }
    body .join-wrap .join-form-fields .member-date-part[data-date-part="year"] { width: 71px; min-width: 71px; }
}
@media (max-width: 360px) {
    body .join-wrap .join-form-fields .date-range { column-gap: 6px; }
    body .join-wrap .join-form-fields .member-date-selects { gap: 4px; }
    body .join-wrap .join-form-fields .member-date-part { width: 42px; min-width: 42px; }
    body .join-wrap .join-form-fields .member-date-part[data-date-part="year"] { width: 61px; min-width: 61px; }
    body .join-wrap .member-birth-row .member-date-selects { gap: 8px; }
    body .join-wrap .member-birth-row .member-date-part { width: 62px; min-width: 62px; }
    body .join-wrap .member-birth-row .member-date-part[data-date-part="year"] { width: 86px; min-width: 86px; }
}

[data-fixed-graduation][hidden] { display: none !important; }
