/*
 * 이미지 중심의 레거시 페이지는 원본 좌표와 크기를 유지한다.
 * 아래 규칙은 회원·게시판·마이페이지처럼 HTML로 구성된 화면에만 적용한다.
 */
:root {
    --platform-ink: #202833;
    --platform-muted: #667282;
    --platform-line: #e3e8ee;
    --platform-line-strong: #cfd7e1;
    --platform-surface: #f6f8fa;
    --platform-surface-accent: #eef5fb;
    --platform-primary: #175c94;
    --platform-primary-dark: #104a7a;
    --platform-danger: #b4232d;
    --platform-success: #18704a;
    --platform-shadow: 0 10px 32px rgba(27, 48, 73, .07);
}

/* 체크박스 공통 모양(위디플랫폼 전체). 화면마다 크기·색을 따로 정하지 않고 이 규칙만 쓴다. */
input[type=checkbox] {
    -webkit-appearance: none;
    appearance: none;
    display: inline-grid;
    flex: 0 0 18px;
    place-content: center;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 1.5px solid #aeb9c6;
    border-radius: 4px;
    background: #fff;
    vertical-align: middle;
    transform: none;
    cursor: pointer;
    transition: background-color .12s ease, border-color .12s ease;
}
input[type=checkbox]::before {
    width: 10px;
    height: 10px;
    background: #fff;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
    content: '';
    transform: scale(0);
    transition: transform .12s ease;
}
input[type=checkbox]:checked { border-color: var(--platform-primary); background: var(--platform-primary); }
input[type=checkbox]:checked::before { transform: scale(1); }
input[type=checkbox]:hover:not(:disabled) { border-color: var(--platform-primary); }
input[type=checkbox]:focus-visible { outline: 3px solid rgba(23, 92, 148, .25); outline-offset: 2px; }
input[type=checkbox]:disabled { cursor: not-allowed; opacity: .5; }

/* 라디오 공통 모양(위디플랫폼 전체). 체크박스와 같이 이 규칙만 쓰고, 화면별로는 체크 색만 바꾼다. */
input[type=radio] {
    -webkit-appearance: none;
    appearance: none;
    display: inline-grid;
    flex: 0 0 18px;
    place-content: center;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 1.5px solid #aeb9c6;
    border-radius: 50%;
    background: #fff;
    vertical-align: middle;
    transform: none;
    cursor: pointer;
    transition: border-color .12s ease;
}
input[type=radio]::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--platform-primary);
    content: '';
    transform: scale(0);
    transition: transform .12s ease;
}
input[type=radio]:checked { border-color: var(--platform-primary); }
input[type=radio]:checked::before { transform: scale(1); }
input[type=radio]:hover:not(:disabled) { border-color: var(--platform-primary); }
input[type=radio]:focus-visible { outline: 3px solid rgba(23, 92, 148, .25); outline-offset: 2px; }
input[type=radio]:disabled { cursor: not-allowed; opacity: .5; }

/* 레거시 페이지 공통 유틸리티: 인라인 style을 대체하므로 인라인과 같은 우선순위(!important)를 쓴다.
   [hidden] 규칙보다 앞에 두어 hidden 속성이 계속 이기게 한다. 새 화면은 구조화된 컴포넌트 클래스를 우선한다. */
.u-flex { display: flex !important; }
.u-block { display: block !important; }
.u-relative { position: relative !important; }
.u-flex-col { flex-direction: column !important; }
.u-justify-center { justify-content: center !important; }
.u-grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
.u-w-full { width: 100% !important; }
.u-w-half { width: 50% !important; }
.u-max-w-full { max-width: 100% !important; }
.u-max-w-half { max-width: 50% !important; }
.u-h-auto { height: auto !important; }
.u-text-left { text-align: left !important; }
.u-bg-none { background: 0 none !important; }
.u-border-b-0 { border-bottom: 0 none !important; }
.u-border-r-0 { border-right: 0 none !important; }
.u-gap-05 { gap: .5rem !important; }
.u-gap-075 { gap: .75rem !important; }
.u-gap-1 { gap: 1rem !important; }
.u-gap-2 { gap: 2rem !important; }
.u-pt-1 { padding-top: 1rem !important; }
.u-pt-3 { padding-top: 3rem !important; }
.u-pl-0 { padding-left: 0 !important; }
.u-pr-0 { padding-right: 0 !important; }
.u-pb-0 { padding-bottom: 0 !important; }
.u-mt-3 { margin-top: 3rem !important; }
/* 여백: u-p-상-우-하-좌 / u-m-상-우-하-좌 (단위 rem, _는 소수점) */
.u-p-0-0-0-0 { padding: 0 !important; }
.u-p-0-0-1_5-0 { padding: 0 0 1.5rem !important; }
.u-p-0-10-0-10 { padding: 0 10rem !important; }
.u-p-2-0-0-0 { padding: 2rem 0 0 !important; }
.u-p-2-0-0_5-0 { padding: 2rem 0 .5rem !important; }
.u-p-2-0-4-0 { padding: 2rem 0 4rem !important; }
.u-p-2-2-0-2 { padding: 2rem 2rem 0 !important; }
.u-p-2-2-2-2 { padding: 2rem !important; }
.u-p-4-0-0-0 { padding: 4rem 0 0 !important; }
.u-p-4-0-8-0 { padding: 4rem 0 8rem !important; }
.u-p-5-0-0-0 { padding: 5rem 0 0 !important; }
.u-p-6-0-0-0 { padding: 6rem 0 0 !important; }
.u-p-8-0-0-0 { padding: 8rem 0 0 !important; }
.u-m-0-0-0-0 { margin: 0 !important; }
.u-m-0-0-4-0 { margin: 0 0 4rem !important; }
.u-m-2-0-0-0 { margin: 2rem 0 0 !important; }
.u-m-2-0-4-0 { margin: 2rem 0 4rem !important; }
/* 1:1 정사각형 상품 썸네일 */
.thumb-square { position: relative !important; padding-top: 100% !important; overflow: hidden !important; }
.thumb-square__center { position: absolute !important; inset: 0 !important; transform: translate(50%, 50%) !important; }
.thumb-square__image { position: absolute !important; top: 0 !important; left: 0 !important; max-width: 100% !important; height: auto !important; transform: translate(-50%, -50%) !important; }

[hidden] { display: none !important; }
body { min-width: 320px; }
html.is-layout-hidden [data-layout-chrome] { display: none !important; }
html.is-layout-hidden .container { min-height: 100dvh; }
.business-card-image { display: block; max-width: 100%; height: auto; margin: 20px auto; }
.skip-link { position: fixed; top: -100px; left: 10px; z-index: 1000; padding: 12px 16px; border-radius: 8px; background: #fff; color: #111; box-shadow: var(--platform-shadow); }
.skip-link:focus { top: 10px; }
.image-button { display: block; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.fixed-all-menu-container.is-open { display: block; }
.swiper-container { position: relative; min-width: 0; overflow: hidden; }
.swiper-wrapper { display: flex; width: 100%; gap: 16px; align-items: stretch; transition: transform .5s ease; }
.swiper-slide { flex: 0 0 100%; min-width: 0; }
.mainslide070802Swiper .swiper-slide { flex-basis: calc((100% - 16px) / 2); }
.main-gmf-swiper .swiper-slide { flex-basis: calc((100% - 8px) / 1.5); }
.main-shopping-swiper .swiper-wrapper { gap: 0; }
.swiper-button-prev, .swiper-button-next { position: absolute; z-index: 2; display: grid; place-items: center; cursor: pointer; }
.swiper-button-prev::after { content: '‹'; }
.swiper-button-next::after { content: '›'; }

/* 구조화된 본문 공통 */
.form-shell,
.dashboard-shell {
    width: auto;
    min-height: 0;
    margin: 36px clamp(16px, 4vw, 28px) 72px;
    color: var(--platform-ink);
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: -.012em;
}

.form-card {
    padding: clamp(26px, 5vw, 40px);
    border: 1px solid var(--platform-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--platform-shadow);
    color: var(--platform-ink);
    font-size: 16px;
    line-height: 1.65;
}
.form-card--center { text-align: center; }
.form-card h1,
.page-heading h1 {
    margin: 0 0 24px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--platform-line);
    color: var(--platform-ink);
    font-size: clamp(26px, 4vw, 32px);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -.04em;
}
.form-card h2 {
    margin: 34px 0 14px;
    color: var(--platform-ink);
    font-size: 19px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -.025em;
}
.form-card p { margin: 12px 0; line-height: 1.7; }
.form-card > p:first-of-type:not(.notice):not(.field-help) { margin-top: -10px; color: var(--platform-muted); }
.form-card strong { font-weight: 750; }
.eyebrow {
    display: block;
    margin: 0 0 7px !important;
    color: var(--platform-primary) !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}
.page-heading span { display: block; color: var(--platform-muted); font-size: 15px; line-height: 1.65; }

/* 회원·게시판 공통 골격: 회색 바탕 위에 흰 카드와 묶음 리스트를 쌓는다.
   안쪽 카드는 그림자 대신 테두리로 구분하므로 --platform-shadow를 이 범위에서 끈다. */
.member-page {
    --platform-shadow: none;
    --member-bg: #f2f4f7;
    --member-radius: 14px;
    box-sizing: border-box;
    width: 100%;
    min-height: 60vh;
    margin: 0;
    padding: 12px clamp(16px, 4vw, 24px) 48px;
    background: var(--member-bg);
    color: var(--platform-ink);
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: -.012em;
}
.member-page *,
.member-page *::before,
.member-page *::after { box-sizing: border-box; }
.member-page__header {
    display: flex;
    gap: 2px;
    align-items: flex-start;
    margin: 0 0 16px;
    padding: 0;
}
.member-page__heading { flex: 1; min-width: 0; padding-top: 7px; }
.member-page__heading .eyebrow { margin-bottom: 4px !important; }
.member-page__heading h1 {
    margin: 0;
    color: var(--platform-ink);
    font-size: 21px;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: -.03em;
}
.member-page__heading > p:not(.eyebrow) {
    margin: 4px 0 0;
    color: var(--platform-muted);
    font-size: 13px;
    line-height: 1.55;
    word-break: keep-all;
}
.member-page__back {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-left: -12px;
    place-items: center;
    border-radius: 10px;
    color: var(--platform-ink);
    font-size: 30px;
    line-height: 1;
    text-decoration: none;
}
.member-page__back:hover { background: rgba(32, 40, 51, .06); color: var(--platform-ink); text-decoration: none; }
.member-page__back:focus-visible { outline: 3px solid rgba(23, 92, 148, .25); outline-offset: 0; }
.member-card {
    border: 1px solid var(--platform-line);
    border-radius: var(--member-radius, 14px);
    background: #fff;
    box-shadow: var(--platform-shadow);
}
.member-page > .member-card + .member-card,
.member-page > .member-card + .member-section,
.member-page > .member-card + .notice,
.member-page > .member-section + .member-card { margin-top: 16px; }

/* 묶음 리스트: 섹션 이름 + 흰 카드 안 행 목록 */
.member-section { display: grid; gap: 6px; margin-top: 18px; }
.member-section:first-of-type { margin-top: 0; }
.member-section__title { margin: 0 4px; color: var(--platform-muted); font-size: 12px; font-weight: 750; letter-spacing: 0; }
.member-list { overflow: hidden; border: 1px solid var(--platform-line); border-radius: var(--member-radius, 14px); background: #fff; }
.member-list__item {
    display: flex;
    min-height: 52px;
    padding: 0 14px;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #eef1f4;
    color: var(--platform-ink);
    font-size: 15px;
    text-decoration: none;
}
.member-list__item:first-child { border-top: 0; }
a.member-list__item:hover { background: var(--platform-surface-accent); color: var(--platform-ink); text-decoration: none; }
a.member-list__item:focus-visible { outline: 2px solid var(--platform-primary); outline-offset: -2px; }
a.member-list__item:not(.member-list__item--post)::after { flex: 0 0 auto; color: #9aa5b2; font-size: 20px; content: '›'; }
.member-list__icon { display: flex; flex: 0 0 20px; color: var(--platform-primary); }
.member-list__label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.member-list__meta { flex: 0 0 auto; color: var(--platform-muted); font-size: 12px; }
.member-list__item--post { display: grid; gap: 4px; padding: 13px 14px; }
.member-list__title { display: flex; min-width: 0; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; }
.member-list__subject { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-list__lock { display: inline-flex; flex: 0 0 auto; color: var(--platform-muted); }
.member-empty { margin: 0; padding: 32px 16px; border: 1px solid var(--platform-line); border-radius: var(--member-radius, 14px); background: #fff; color: var(--platform-muted); font-size: 14px; text-align: center; }
.member-list .member-empty { border: 0; border-radius: 0; }
.member-count { margin: 0 4px 8px; color: var(--platform-muted); font-size: 12px; }

/* 처리 상태 칩: 완료(초록)·대기(주황)·진행(파랑)·종료(회색) */
.member-chip,
.submission-status,
.status-badge,
.member-order-status {
    display: inline-flex;
    flex: 0 0 auto;
    height: 22px;
    margin: 0;
    padding: 0 8px;
    align-items: center;
    border: 0;
    border-radius: 999px;
    background: var(--platform-surface-accent);
    color: var(--platform-primary);
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}
.member-chip--done, .status-done, .submission-status--paid, .submission-status--completed { background: #e6f3ec; color: var(--platform-success); }
.member-chip--wait, .status-wait, .submission-status--submitted, .submission-status--unpaid { background: #fff3e0; color: #8a4b00; }
.member-chip--muted, .submission-status--on_hold, .submission-status--cancelled { background: #eef0f3; color: var(--platform-muted); }

/* 회원 프로필 카드 */
.member-profile-card { display: flex; margin-bottom: 18px; padding: 16px; align-items: center; gap: 14px; }
.member-profile-card__avatar { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--platform-surface-accent); color: var(--platform-primary); font-size: 18px; font-weight: 750; }
.member-profile-card__text { display: grid; flex: 1; min-width: 0; gap: 1px; }
.member-profile-card__text strong { font-size: 16px; font-weight: 750; overflow-wrap: anywhere; }
.member-profile-card__text span { color: var(--platform-muted); font-size: 12px; overflow-wrap: anywhere; }
.member-profile-card .button { flex: 0 0 auto; min-height: 38px; padding: 7px 12px; font-size: 13px; }

/* 세그먼트 탭 */
.member-tabs,
.settle-history-tabs { display: flex; gap: 4px; margin: 0 0 14px; padding: 4px; border-radius: 12px; background: #e4e8ee; }
.member-tabs__tab,
.settle-history-tab { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--platform-muted); font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.member-tabs__tab[aria-selected=true],
.settle-history-tab.active { background: #fff; color: var(--platform-primary); box-shadow: 0 1px 3px rgba(27, 48, 73, .12); }
.member-tabs__tab:focus-visible,
.settle-history-tab:focus-visible { outline: 2px solid var(--platform-primary); outline-offset: 1px; }

/* 목록 위 검색·필터 줄 */
.member-toolbar { display: flex; margin: 0 0 12px; gap: 8px; flex-wrap: wrap; }
.member-toolbar > .member-control { flex: 1 1 160px; width: auto; min-width: 0; }
.member-toolbar > select.member-control { flex: 0 1 auto; }
.member-toolbar > .button { flex: 0 0 auto; min-height: 48px; }

/* 하단 주요 동작 */
.member-actions { display: flex; margin-top: 18px; gap: 8px; flex-wrap: wrap; }
.member-actions > * { flex: 1 1 0; }
.member-actions .button { width: 100%; min-height: 50px; font-size: 15px; }
.member-actions form { margin: 0; }
.member-actions--end { justify-content: flex-end; }
.member-actions--end > * { flex: 0 0 auto; }
.member-actions--end .button { width: auto; min-height: 44px; font-size: 14px; }
.member-card__title {
    margin: 0 0 16px;
    color: var(--platform-ink);
    font-size: 18px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -.025em;
}
.member-card__description { margin: -8px 0 16px; color: var(--platform-muted); font-size: 13px; }
.member-simple-card { padding: clamp(22px, 4vw, 32px); }
.member-field-label { display: block; margin-bottom: 7px; color: #2b3542; font-size: 14px; font-weight: 700; }
.member-required { color: var(--platform-danger); }
.member-help { margin: 6px 0 0; color: var(--platform-muted); font-size: 12px; }

/* 알림: .notice는 페이지 알림(바깥 여백 포함), .form-note는 양식 블록 안내 상자(여백은 블록이 정함) */
.notice,
.form-note {
    padding: 14px 16px;
    border: 1px solid #c9dced;
    border-radius: 11px;
    background: var(--platform-surface-accent);
    color: #244d70;
    font-size: 14px;
    line-height: 1.65;
}
.notice { margin: 20px 0; }
main > .notice { margin: 20px clamp(16px, 4vw, 28px) 0; }
.notice ul,
.form-note ul { margin: 0; padding-left: 20px; }
.notice--error { border-color: #efc9cd; background: #fff4f5; color: #87202a; }

/* 입력 */
.form-card form { margin: 0; }
/* 양식 블록 사이 간격은 블록이 정하고, 블록 안 첫·끝 요소의 바깥 여백은 쓰지 않는다. */
.application-form-block { min-width: 0; margin: 24px 0 0; padding: 0; border: 0; }
.application-form-block > :first-child { margin-top: 0; }
.application-form-block > :last-child { margin-bottom: 0; }
.form-card label {
    display: grid;
    gap: 7px;
    margin: 19px 0 0;
    color: #2b3542;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}
/* 입력칸 공통: 마이페이지(.member-control)와 양식 카드(.form-card) 입력칸이 같은 모양을 쓴다.
   레거시 board.css의 전역 input::placeholder(1.25rem)를 여기서 입력 글자 크기로 되돌린다. */
.member-control,
.form-card input:not([type=checkbox]):not([type=radio]):not([type=file]),
.form-card select,
.form-card textarea {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid var(--platform-line-strong);
    border-radius: 10px;
    outline: 0;
    background: #fff;
    color: var(--platform-ink);
    font: inherit;
    font-weight: 450;
    line-height: 1.45;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.form-card input:not([type=checkbox]):not([type=radio]):not([type=file]),
.form-card select { min-height: 48px; padding-block: 11px; }
.member-control::placeholder,
.form-card input::placeholder,
.form-card textarea::placeholder { color: #8a95a3; font-size: 1em; font-weight: 400; opacity: 1; }
.form-card textarea { min-height: 120px; }
.member-control:is(textarea),
.form-card textarea { resize: vertical; }
.member-control:hover,
.form-card input:hover,
.form-card select:hover,
.form-card textarea:hover { border-color: #aeb9c6; }
.member-control:focus,
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    border-color: var(--platform-primary);
    box-shadow: 0 0 0 3px rgba(23, 92, 148, .13);
}
.member-control[readonly],
.member-control:disabled,
.form-card input[disabled],
.form-card select[disabled],
.form-card textarea[disabled] { background: var(--platform-surface); color: var(--platform-muted); }
.member-control:disabled,
.form-card input[disabled],
.form-card select[disabled],
.form-card textarea[disabled] { cursor: not-allowed; }
.form-card input[type=file] { max-width: 100%; padding: 10px; border: 1px dashed var(--platform-line-strong); border-radius: 10px; background: var(--platform-surface); font-size: 14px; }
.form-card input[type=checkbox],
.form-card input[type=radio] { margin-top: 2px; }
.form-card .inline-choice {
    display: flex;
    grid-template-columns: none;
    gap: 9px;
    align-items: flex-start;
    width: fit-content;
    font-weight: 550;
}
.form-card .inline-choice--custom { align-items: center; }
.form-card .inline-choice--custom input[type=text] {
    display: inline-block;
    width: min(180px, 48vw);
    min-height: 40px;
    padding: 7px 10px;
}
.form-card fieldset.form-phone-field {
    margin: 19px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
}
.form-card fieldset.form-phone-field > legend {
    margin: 0 0 7px;
    padding: 0;
    color: #2b3542;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}
.form-phone {
    display: grid;
    grid-template-columns: minmax(0, .8fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid var(--platform-line-strong);
    border-radius: 10px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-phone:hover { border-color: #aeb9c6; }
.form-phone:focus-within { border-color: var(--platform-primary); box-shadow: 0 0 0 3px rgba(23, 92, 148, .13); }
.form-phone > span { align-self: center; color: var(--platform-muted); }
.form-card .form-phone input:not([type=checkbox]):not([type=radio]):not([type=file]) {
    min-width: 0;
    min-height: 46px;
    padding: 10px 4px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}
.business-card-list { display: grid; gap: 22px; margin-top: 22px; }
.business-card-list__item { padding: 18px; border: 1px solid var(--platform-line); border-radius: 12px; background: var(--platform-surface); }
.business-card-list__preview { display: block; }
.business-card-list__preview img { display: block; width: min(100%, 500px); height: auto; margin: 0 auto; }
.business-card-list__actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.business-card-detail { margin-top: 22px; }
.business-card-detail__preview { display: block; }
.business-card-detail__preview img { display: block; width: min(100%, 500px); height: auto; margin: 0 auto; }
.profile-consent-list { display: grid; gap: 10px; margin-top: 19px; }
.form-card .profile-consent-list .inline-choice {
    align-items: center;
    gap: 11px;
    width: 100%;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid var(--platform-line);
    border-radius: 9px;
    background: var(--platform-surface);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.form-card .profile-consent-list .inline-choice:hover { border-color: #aeb9c6; }
.form-card .profile-consent-list .inline-choice:focus-within {
    border-color: var(--platform-primary);
    box-shadow: 0 0 0 3px rgba(23, 92, 148, .13);
}
.form-card .profile-consent-list .inline-choice:has(input:checked) {
    border-color: #b9d2e7;
    background: var(--platform-surface-accent);
}
.form-card .profile-consent-list input[type=checkbox] { margin: 0; }
.form-card fieldset { min-width: 0; margin: 28px 0 0; padding: 18px 22px; border: 1px solid var(--platform-line); border-radius: 12px; }
.form-card legend { padding: 0 8px; font-size: 15px; font-weight: 750; line-height: 1.5; }
.form-card fieldset > label:first-of-type { margin-top: 0; }
.form-card fieldset > :last-child:not(.choice-group__summary) { margin-bottom: 0; }
.form-card .application-agreement > .inline-choice { align-items: center; margin-top: 19px; }
.form-card .application-agreement > .inline-choice input[type=checkbox] { margin-top: 0; }
.choice-group__options { margin-top: 0; }
.choice-group__options--scroll {
    max-height: min(48dvh, 26rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 12px;
}
.choice-group__options--scroll:focus-visible {
    border-radius: 6px;
    outline: 3px solid rgba(23, 92, 148, .2);
    outline-offset: 3px;
}
.choice-group__option { padding: 14px 0; border-bottom: 1px solid var(--platform-line); }
.choice-group__option:first-child { padding-top: 0; }
.choice-group__option:last-child { padding-bottom: 0; border-bottom: 0; }
.form-card .choice-group__option .inline-choice { width: 100%; margin-top: 0; cursor: pointer; }
.form-card .choice-group__option .field-help { margin: 8px 0 0 28px; }
.choice-group__summary {
    margin: 18px -22px -18px;
    padding: 15px 22px 17px;
    border-top: 1px solid #c9dced;
    border-radius: 0 0 11px 11px;
    background: var(--platform-surface-accent);
    color: #244d70;
}
.choice-group__summary-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.choice-group__summary-heading > span { color: var(--platform-muted); font-size: 13px; }
.choice-group__summary-values { display: grid; gap: 5px; margin-top: 7px; font-size: 14px; }
.choice-group__summary-values > span { white-space: nowrap; }
.choice-group__summary-values strong { margin-left: 4px; color: var(--platform-primary); }
.field-help { color: var(--platform-muted); font-size: 13px; font-weight: 450; line-height: 1.55; }
.field-success { color: var(--platform-success); }
.field-error { color: var(--platform-danger); font-size: 12px; line-height: 1.5; }
.input-row { display: flex; gap: 9px; align-items: center; }
.input-row > * { min-width: 0; }
.input-row > input { flex: 1; }

/* 회원가입 */
.registration-shell { max-width: 760px; margin-inline: auto; }
.registration-card { overflow: hidden; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.registration-hero {
    padding: clamp(28px, 5vw, 44px) clamp(22px, 6vw, 48px) 30px;
    background: linear-gradient(180deg, #eaf5fd 0%, #f5faff 100%);
    text-align: center;
}
.registration-card .registration-hero h1 {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--platform-primary);
    font-size: clamp(28px, 4vw, 36px);
}
.registration-hero > p { margin: 20px 0 0 !important; color: var(--platform-ink) !important; font-size: clamp(19px, 3vw, 24px); font-weight: 750; }
.registration-progress { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 380px; margin: 24px auto 0; padding: 0; list-style: none; }
.registration-progress li { position: relative; display: grid; gap: 7px; justify-items: center; color: var(--platform-muted); font-size: 13px; font-weight: 650; line-height: 1.35; }
.registration-progress li::before { position: absolute; top: 16px; right: 50%; left: -50%; height: 3px; background: var(--platform-line-strong); content: ''; }
.registration-progress li:first-child::before { display: none; }
.registration-progress span { position: relative; z-index: 1; display: grid; width: 34px; height: 34px; place-items: center; border: 2px solid #aeb9c6; border-radius: 50%; background: #fff; color: var(--platform-muted); font-size: 15px; font-weight: 800; }
.registration-progress .is-current { color: var(--platform-primary); }
.registration-progress .is-current span { border-color: var(--platform-primary); background: var(--platform-primary); color: #fff; }
.registration-body { padding: 30px clamp(20px, 6vw, 48px) 12px; }
.registration-required { margin: 0 0 24px !important; color: #4f5c6b; font-size: 13px; }
.registration-required span,
.required-mark { color: var(--platform-danger); }
sup.required-mark { position: relative; top: -.35em; margin-left: 2px; font-size: .85em; font-weight: 800; line-height: 0; vertical-align: baseline; }
.registration-form { max-width: 640px; margin: 0 auto; }
.registration-group + .registration-group { margin-top: 36px; }
.registration-card .registration-group h2 {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0 0 18px;
    color: var(--platform-ink);
    font-size: 21px;
}
.registration-card .registration-group h2::after { height: 1px; flex: 1; background: var(--platform-line-strong); content: ''; }
.registration-card .registration-group h2::before { width: 5px; height: 24px; border-radius: 3px; background: var(--platform-primary); content: ''; }
.registration-card .registration-group > label { display: block; }
.registration-card .registration-group > label > input:not([type=checkbox]):not([type=radio]):not([type=file]) { margin-top: 7px; }
.registration-card .registration-group > label > .field-help { display: block; margin-top: 5px; }
.registration-phone-field { margin-top: 19px; }
.registration-phone-field > label { display: block; margin: 0 0 7px; }
.registration-phone {
    display: grid;
    grid-template-columns: minmax(0, .8fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid var(--platform-line-strong);
    border-radius: 10px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.registration-phone:hover { border-color: #aeb9c6; }
.registration-phone:focus-within { border-color: var(--platform-primary); box-shadow: 0 0 0 3px rgba(23, 92, 148, .13); }
.registration-phone > span { align-self: center; color: var(--platform-muted); }
.registration-card .registration-phone input:not([type=checkbox]):not([type=radio]):not([type=file]) {
    min-width: 0;
    min-height: 46px;
    padding: 10px 4px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}
.registration-choices { display: grid; gap: 10px; margin-top: 16px; }
.registration-card .registration-choice-row {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 13px 15px;
    border: 1px solid #d2e2f0;
    border-radius: 10px;
    background: #f4f9fd;
}
.registration-choice-row span { color: var(--platform-muted); font-size: 13px; font-weight: 500; }
.registration-optional { margin-top: 38px; border: 1px solid #c8dceb; border-radius: 12px; background: #fff; }
.registration-optional summary { position: relative; padding: 16px 50px 16px 18px; border-radius: 11px; background: var(--platform-surface-accent); color: var(--platform-primary); font-size: 17px; font-weight: 750; line-height: 1.4; cursor: pointer; list-style: none; }
.registration-optional summary::-webkit-details-marker { display: none; }
.registration-optional summary::after { position: absolute; top: 50%; right: 20px; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ''; transform: translateY(-65%) rotate(45deg); transition: transform .15s ease; }
.registration-optional[open] summary { border-radius: 11px 11px 0 0; }
.registration-optional[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.registration-optional summary span { font-size: 14px; font-weight: 600; }
.registration-optional__body { padding: 2px 18px 22px; }
.registration-actions { display: grid; gap: 12px; margin-top: 28px; text-align: center; }
.registration-card .registration-actions .button { width: 100%; min-height: 54px; font-size: 17px; }
.registration-actions > a { justify-self: center; padding: 4px; color: var(--platform-primary); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* 버튼과 보조 링크 */
.button,
.form-card .button {
    display: inline-flex;
    min-height: 44px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 17px;
    border: 1px solid var(--platform-line-strong);
    border-radius: 10px;
    background: #fff;
    color: #344050;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .15s ease;
}
.button:hover { border-color: #aeb9c6; background: var(--platform-surface); }
.button:active { transform: translateY(1px); }
.button--primary,
.form-card .button--primary { border-color: var(--platform-primary); background: var(--platform-primary); color: #fff; }
.button--primary:hover,
.form-card .button--primary:hover { border-color: var(--platform-primary-dark); background: var(--platform-primary-dark); }
.button:focus-visible { outline: 3px solid rgba(23, 92, 148, .2); outline-offset: 2px; }
.button:disabled { opacity: .48; cursor: not-allowed; }
.form-actions { display: flex; gap: 9px; justify-content: flex-end; margin: 24px 0 0; flex-wrap: wrap; }
.form-actions form { margin: 0; }
.form-links { display: flex; justify-content: center; gap: 18px; margin-top: 20px; flex-wrap: wrap; color: var(--platform-muted); font-size: 14px; }
.form-links a,
.form-card > a:not(.button) { color: var(--platform-primary); text-decoration: underline; text-decoration-color: rgba(23, 92, 148, .3); text-underline-offset: 3px; }
.login-submit,
.login-join { width: 100%; margin-top: 14px !important; }
.form-card .login-submit { min-height: 52px; font-size: 16px; }
.form-card .login-join { min-height: 50px; background: var(--platform-surface); font-size: 15px; }
.member-login { padding-block: clamp(30px, 7vw, 50px); }
.login-guide { margin: 28px 0 0 !important; color: var(--platform-muted); text-align: center; font-size: 14px; }

/* 약관과 상세 정보 */
/* 회원가입 1단계 무료회원 혜택 */
.free-benefits { overflow: hidden; margin-bottom: 34px; border: 1px solid #c8dceb; border-radius: 16px; background: #fff; }
.free-benefits__head { padding: 24px 22px 22px; background: linear-gradient(135deg, var(--platform-primary-dark), #2a7cc0); color: #fff; text-align: center; }
.form-card .free-benefits__head h2 { margin: 0; color: rgba(255, 255, 255, .86); font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.form-card .free-benefits__head p { margin: 8px 0 0; color: #fff; font-size: clamp(24px, 5vw, 30px); font-weight: 800; line-height: 1.3; }
.free-benefits__head strong { color: #ffe066; }
.free-benefits__list { display: grid; gap: 0; margin: 0; padding: 8px 20px; list-style: none; }
.free-benefits__list li { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; }
.free-benefits__list li + li { border-top: 1px dashed var(--platform-line-strong); }
.free-benefits__list span { display: grid; flex: none; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--platform-surface-accent); color: var(--platform-primary); font-size: 13px; font-weight: 800; }
.form-card .free-benefits__list p { margin: 2px 0 0; color: var(--platform-ink); font-size: 15px; font-weight: 600; line-height: 1.5; }
.free-benefits__list em { color: var(--platform-primary); font-style: normal; font-weight: 800; }
.free-benefits__list small { display: block; margin-top: 2px; color: var(--platform-muted); font-size: 14px; font-weight: 500; }
.regi_term + .regi_term { margin-top: 34px; }
.terms-box {
    max-height: 230px;
    overflow: auto;
    padding: 18px;
    border: 1px solid var(--platform-line);
    border-radius: 10px;
    background: var(--platform-surface);
    color: #4d5967;
    font-size: 14px;
    line-height: 1.75;
    white-space: pre-wrap;
}
.terms-box:focus { outline: 3px solid rgba(23, 92, 148, .15); outline-offset: 2px; }
.terms-agree-all {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--platform-line);
}
.form-card .terms-agree-all .inline-choice { align-items: center; margin: 0; font-size: 16px; font-weight: 700; cursor: pointer; }
.preserve-text { overflow-wrap: anywhere; white-space: pre-wrap; }
.record-fields { margin: 24px 0; border-top: 1px solid var(--platform-line-strong); }
.record-fields dt { padding: 13px 14px 5px; border-top: 0; color: var(--platform-muted); background: transparent; font-size: 13px; font-weight: 700; }
.record-fields dd { margin: 0; padding: 0 14px 14px; border-bottom: 1px solid var(--platform-line); }
.record-list article { padding: 18px 4px; border-bottom: 1px solid var(--platform-line); }
.record-list article:first-child { border-top: 1px solid var(--platform-line); }
.record-list article p { margin: 5px 0 0; color: var(--platform-muted); font-size: 13px; }
.empty-panel { margin: 0; padding: 38px 18px; color: var(--platform-muted); font-size: 14px; line-height: 1.65; text-align: center; }

/* 표와 게시판 */
.form-card table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.form-card th,
.form-card td { padding: 14px 12px; border-bottom: 1px solid var(--platform-line); text-align: left; vertical-align: middle; }
.form-card .empty-panel { text-align: center; }
.form-card th { border-top: 1px solid var(--platform-line-strong); background: var(--platform-surface); color: #455160; font-size: 13px; font-weight: 750; }
.form-card tbody tr:hover td { background: #fafbfd; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--platform-line); border-radius: 11px; }
.table-scroll table { min-width: 520px; }
.table-scroll th:first-child,
.table-scroll td:first-child { padding-left: 16px; }
.table-scroll th:last-child,
.table-scroll td:last-child { padding-right: 16px; }
.faq-item { margin: 0; padding: 0; border-bottom: 1px solid var(--platform-line); font-size: 15px; line-height: 1.7; }
.faq-item:first-of-type { border-top: 1px solid var(--platform-line); }
.faq-item summary { padding: 16px 4px; font-weight: 700; cursor: pointer; }
.faq-item[open] summary { color: var(--platform-primary); }
.faq-item > div { padding: 0 4px 18px; color: #4e5967; }
.post-body { padding: 26px 2px; overflow-wrap: anywhere; font-size: 16px; line-height: 1.8; }
.post-body table { max-width: 100%; }
.post-comment { margin: 0; padding: 18px 4px; border-bottom: 1px solid var(--platform-line); }
.post-comment p { margin: 7px 0; }
.post-comment small { color: var(--platform-muted); font-size: 12px; }
.attachment { padding: 14px 0; overflow-wrap: anywhere; }
.attachment img { max-width: 100%; height: auto; margin: 10px 0; }
.pagination { display: flex; justify-content: center; gap: 4px; margin: 0; padding: 26px 0 4px; flex-wrap: wrap; font-size: 13px; }
.pagination a,
.pagination span { display: grid; min-width: 34px; min-height: 36px; padding: 6px 8px; place-items: center; border: 1px solid var(--platform-line); border-radius: 8px; background: #fff; }
.pagination a:hover { border-color: var(--platform-line-strong); background: var(--platform-surface); }
.pagination [aria-current=page] { border-color: var(--platform-primary); background: var(--platform-primary); color: #fff; }
.pagination [aria-disabled=true] { color: #a1a9b4; }

/* 게시판 화면: 마이페이지와 같은 member-page 골격 안에서 쓴다 */
html.is-layout-hidden .board-page--index .member-page__back { display: none; }
.member-page__close { display: none; }
/* 게시판 팝업: 창 전체를 채우고 제목 줄(‹ 뒤로·× 닫기)은 위, 화면의 주 버튼 줄은 아래에 고정한다.
   아래 버튼 줄은 화면 마지막의 .member-actions이며, 위에 X가 있으므로 그 안의 보조 닫기 버튼은 숨긴다. */
html.is-layout-hidden body:has(.board-page) { background: #f2f4f7; }
html.is-layout-hidden .container:has(.board-page),
html.is-layout-hidden .container:has(.board-page) > main { display: flex; flex: 1; flex-direction: column; }
html.is-layout-hidden .board-page { --popup-gutter: clamp(16px, 4vw, 24px); display: flex; flex: 1; flex-direction: column; min-height: 0; }
html.is-layout-hidden .board-page > .member-page__header { position: sticky; top: 0; z-index: 5; margin: -12px calc(-1 * var(--popup-gutter)) 16px; padding: 12px var(--popup-gutter); border-bottom: 1px solid var(--platform-line); background: var(--member-bg); }
html.is-layout-hidden .board-page .member-page__close { display: grid; flex: 0 0 44px; width: 44px; height: 44px; margin-right: -12px; place-items: center; border-radius: 10px; color: var(--platform-ink); font-size: 30px; line-height: 1; text-decoration: none; }
html.is-layout-hidden .board-page .member-page__close:hover { background: rgba(32, 40, 51, .06); text-decoration: none; }
html.is-layout-hidden .board-page .member-page__close:focus-visible { outline: 3px solid rgba(23, 92, 148, .25); outline-offset: 0; }
html.is-layout-hidden .board-page:has(> .member-actions:not(.member-actions--end):last-child) { padding-bottom: 0; }
html.is-layout-hidden .board-page > :has(+ .member-actions:not(.member-actions--end):last-child) { margin-bottom: 18px; }
html.is-layout-hidden .board-page > .member-actions:not(.member-actions--end):last-child { position: sticky; bottom: 0; z-index: 5; margin: auto calc(-1 * var(--popup-gutter)) 0; padding: 12px var(--popup-gutter) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--platform-line); background: var(--member-bg); }
html.is-layout-hidden .board-page > .member-actions:last-child > .button:not(.button--primary)[data-close-board-popup] { display: none; }
.member-actions__contact { display: none; }
html.is-layout-hidden .board-page > .member-actions:last-child > .member-actions__contact { display: flex; flex: 0 0 100%; min-height: 48px; margin: 0; align-items: center; justify-content: center; gap: 6px; color: var(--platform-muted); font-size: 14px; }
html.is-layout-hidden .member-actions__contact a { color: var(--platform-ink); font-weight: 700; }
.board-page .form-card { padding: 18px; border-radius: var(--member-radius); box-shadow: none; font-size: 15px; }
.board-page .form-card > :first-child { margin-top: 0; }
.member-page > .notice,
.board-page .notice { margin: 0 0 14px; }
.board-page .pagination { padding: 18px 0 0; }
.board-page .member-list .faq-item { border: 0; border-top: 1px solid #eef1f4; font-size: 15px; }
.board-page .member-list .faq-item:first-child { border-top: 0; }
.board-page .member-list .faq-item summary { padding: 14px; }
.board-page .member-list .faq-item > div { padding: 0 14px 16px; }
.board-post { padding: 18px; }
.board-post__title { margin: 0; color: var(--platform-ink); font-size: 18px; font-weight: 750; line-height: 1.45; letter-spacing: -.02em; overflow-wrap: anywhere; }
.board-post__meta { display: flex; margin: 6px 0 0; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--platform-muted); font-size: 12px; }
.board-post .post-body { margin-top: 14px; padding: 16px 0 0; border-top: 1px solid var(--platform-line); font-size: 15px; line-height: 1.8; }
.board-post .record-fields { margin: 14px 0 0; }
.board-post .iframe-wrapper,
.board-post .business-card-detail { margin-top: 14px; }
.board-attachments { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--platform-line); }
.board-attachments .attachment { padding: 8px 0; font-size: 14px; }
.board-page .post-comment { padding: 14px; border-top: 1px solid #eef1f4; border-bottom: 0; }
.board-page .post-comment:first-child { border-top: 0; }
.board-page .post-comment--staff strong { color: var(--platform-primary); }
.board-page .photo-board { margin: 0; gap: 10px; }
.board-page .photo-board article { padding: 10px; border: 1px solid var(--platform-line); border-radius: var(--member-radius); background: #fff; }
.board-page .photo-board a { color: var(--platform-ink); text-decoration: none; }
.board-page .photo-board img { margin-bottom: 8px; }
.board-page .photo-board .member-empty { grid-column: 1 / -1; }
.board-page .video-board article { margin: 0 0 12px; padding: 14px; border: 1px solid var(--platform-line); border-radius: var(--member-radius); background: #fff; }
.board-page .video-board h2 { margin: 0 0 10px; font-size: 16px; line-height: 1.45; }
.board-page .video-board h2 a { color: var(--platform-ink); }
.board-page .video-board .field-help { margin: 8px 0; }
.board-page .business-card-list { margin-top: 0; gap: 12px; }
.board-page .business-card-list__item { border-radius: var(--member-radius); background: #fff; }

/* 마이페이지는 카드 타일 대신 한 줄씩 읽히는 메뉴로 구성한다. */
.dashboard-shell .page-heading { margin-bottom: 18px; padding: 0; }
.dashboard-shell .page-heading > p { margin: 0 0 7px; color: var(--platform-primary); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; border: 0; }
.dashboard-grid a {
    display: grid;
    min-height: 0;
    padding: 18px 20px;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    border: 1px solid var(--platform-line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(27, 48, 73, .04);
    font-size: 15px;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.dashboard-grid a:hover { border-color: #bacdde; box-shadow: 0 8px 22px rgba(27, 48, 73, .08); transform: translateY(-1px); }
.dashboard-grid__icon { display: grid; width: 42px; height: 42px; grid-row: span 2; place-items: center; border-radius: 50%; background: var(--platform-surface-accent); font-size: 20px; }
.dashboard-grid strong { align-self: end; color: var(--platform-ink); font-size: 16px; line-height: 1.35; }
.dashboard-grid small { margin-top: 3px; color: var(--platform-muted); font-size: 13px; line-height: 1.5; }

.video-board article { margin: 30px 0 50px; }
.video-board__actions { display: flex; justify-content: center; }
/* 16:9 영상 공통. 여백은 modifier로, 좌표처럼 페이지마다 다른 값만 페이지에 둔다. */
.iframe-container { position: relative; width: 100%; box-sizing: border-box; }
.iframe-container--my-2 { margin-top: 2rem; margin-bottom: 2rem; }
.iframe-container--my-3 { margin-top: 3rem; margin-bottom: 3rem; }
.iframe-container--mb-2_5 { margin-bottom: 2.5rem; }
.iframe-wrapper { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; overflow: hidden; border-radius: 12px; background: #111; }
.iframe-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }
.photo-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.photo-board img { width: 100%; margin-bottom: 10px; aspect-ratio: 4 / 3; border-radius: 10px; object-fit: cover; }

@media (max-width: 640px) {
    .form-shell,
    .dashboard-shell { margin: 22px 12px 52px; font-size: 15px; }
    .form-card { padding: 24px 18px; border-radius: 14px; font-size: 15px; box-shadow: 0 7px 24px rgba(27, 48, 73, .055); }
    .form-card h1,
    .page-heading h1 { margin-bottom: 20px; padding-bottom: 17px; font-size: 25px; }
    .form-card h2 { margin-top: 30px; font-size: 18px; }
    .form-card label { font-size: 14px; }
    .form-actions { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
    .form-actions .button,
    .form-actions form,
    .form-actions form .button { width: 100%; }
    .input-row { gap: 6px; }
    .photo-board { grid-template-columns: minmax(0, 1fr); }
    .dashboard-grid a { padding: 16px; }
    .registration-shell { margin-top: 0; }
    .registration-card { margin-inline: -12px; border-radius: 0; }
    .registration-hero { padding: 28px 20px 26px; }
    .registration-body { padding: 26px 20px 8px; }
    .registration-card .registration-hero h1 { font-size: 28px; }
    .registration-hero > p { margin-top: 17px !important; font-size: 20px; }
    .registration-progress { margin-top: 20px; }
    .registration-card .registration-group h2 { font-size: 19px; }
    .registration-optional summary { font-size: 16px; }
}

@media (max-width: 480px) {
    main > .notice { margin-inline: 12px; }
    .form-card { padding-inline: 16px; }
    .form-card fieldset { padding: 15px 14px; }
    .choice-group__options--scroll { max-height: min(44dvh, 22rem); padding-right: 8px; }
    .choice-group__summary { margin: 16px -14px -15px; padding: 14px; }
    .choice-group__summary-values { display: grid; gap: 5px; }
    .terms-box { padding: 15px; }
    .registration-body { padding-inline: 16px; }
    .registration-phone { gap: 3px; padding-inline: 8px; }
    .registration-card .registration-phone input:not([type=checkbox]):not([type=radio]):not([type=file]) { padding-inline: 2px; font-size: 15px; }
    .registration-optional__body { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
.application-payment{display:grid;gap:12px}.application-payment__choices{display:flex;flex-wrap:wrap;gap:12px}.form-card .application-payment__choices .inline-choice{margin-top:0}.application-payment__panel{display:grid;gap:10px;margin:0}.application-payment__panel[hidden]{display:none}.application-payment__panel.notice p{margin:0}.application-payment__panel label{margin:0}.application-payment__download{display:flex;justify-content:flex-end}.application-payment__download .button{display:inline-flex;align-items:center;gap:6px}
.coin-payment-notice__list { display: grid; gap: 14px; margin-top: 12px; }
.coin-payment-notice__item { display: grid; gap: 7px; }
.coin-payment-notice__address { display: flex; gap: 8px; align-items: stretch; }
.coin-payment-notice__address code {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(19, 75, 122, .18);
    border-radius: 8px;
    background: #fff;
    color: var(--platform-ink);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.coin-payment-notice__copy {
    flex: 0 0 auto;
    padding: 8px 13px;
    border: 0;
    border-radius: 8px;
    background: var(--platform-primary);
    color: #fff;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}
.coin-payment-notice__copy:focus-visible { outline: 3px solid rgba(19, 75, 122, .25); outline-offset: 2px; }
.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    z-index: 1100;
    max-width: calc(100vw - 32px);
    padding: 11px 18px;
    border-radius: 999px;
    background: rgba(32, 40, 51, .92);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--platform-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity .2s, transform .2s;
}
.copy-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.copy-toast.is-failed { background: var(--platform-danger); }

@media (max-width: 575px) {
    .coin-payment-notice__address { align-items: stretch; flex-direction: column; }
    .coin-payment-notice__copy { min-height: 42px; }
}

/* 폼 제출·비동기 작업 중 화면을 덮는 로딩 막(WidiLoading, aws-* 세 저장소 공통). 이 블록은 세 저장소가 같은 내용이고,
   저장소별로는 아래 .widi-loading 변수(대표색·기준 글자 크기)만 다르다. 크기는 기준 글자 크기에 대한 em으로 쓴다.
   흐린 막 위 가운데에 WIDI 글자를 품은 링이 돌고, 대표색 빛이 아래에서 위로 쓸어 올린다.
   운영체제의 애니메이션 줄이기 설정과 상관없이 움직이도록 애니메이션·전환을 !important로 고정한다. */
.widi-loading {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: var(--widi-loading-size);
    background: rgba(255, 255, 255, .55);
    -webkit-backdrop-filter: blur(.375em);
    backdrop-filter: blur(.375em);
    cursor: progress;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease-out, visibility 0s linear .18s !important;
}
/* 대표색 파스텔 띠: 화면 폭 그대로 곧게 올라가고, 위아래 끝은 투명하며 위쪽이 진했다가(20·80·60·40·20) 아래로 옅어진다.
   막이 켜질 때(is-active)마다 처음부터 움직인다. */
.widi-loading::before {
    --widi-loading-wave: color-mix(in srgb, var(--widi-loading-color) 35%, #fff);
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 30%;
    background: linear-gradient(180deg,
        transparent,
        color-mix(in srgb, var(--widi-loading-wave) 8%, transparent) 8%,
        color-mix(in srgb, var(--widi-loading-wave) 30%, transparent) 22%,
        color-mix(in srgb, var(--widi-loading-wave) 22%, transparent) 42%,
        color-mix(in srgb, var(--widi-loading-wave) 15%, transparent) 62%,
        color-mix(in srgb, var(--widi-loading-wave) 8%, transparent) 82%,
        transparent);
}
.widi-loading.is-active::before {
    animation: widi-loading-sweep 2.5s cubic-bezier(.45, 0, .35, 1) infinite !important;
}
.widi-loading.is-active {
    visibility: visible;
    pointer-events: auto;
    transition: opacity .18s ease-out, visibility 0s !important;
}
.widi-loading.is-visible {
    opacity: 1;
}
.widi-loading__body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .875em;
    color: #16242b;
    transform: scale(.96);
    transition: transform .18s ease-out !important;
}
.widi-loading.is-visible .widi-loading__body {
    transform: scale(1);
}
.widi-loading__spinner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4em;
    height: 4em;
}
.widi-loading__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 15%, var(--widi-loading-color));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - .375em), #000 calc(100% - .3125em));
    mask: radial-gradient(farthest-side, transparent calc(100% - .375em), #000 calc(100% - .3125em));
    animation: widi-loading-spin .85s linear infinite !important;
}
.widi-loading__mark {
    font: 900 .875em/1 Arial, "Helvetica Neue", sans-serif;
    letter-spacing: -.02em;
    color: var(--widi-loading-color);
}
@keyframes widi-loading-spin {
    to { transform: rotate(360deg); }
}
/* 1.25초 동안 올라가고 다음 1.25초는 쉰다. */
@keyframes widi-loading-sweep {
    0% { top: 100%; }
    50%, 100% { top: -30%; }
}
/* 문구는 링 아래에 처음부터 보이고, 본문보다 조금 옅은 색으로 쓴다. */
.widi-loading__text {
    font-size: .9375em;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    color: #4b5a62;
    text-shadow: 0 0 .5em #fff, 0 0 .25em #fff;
}
.widi-loading {
    --widi-loading-color: var(--platform-primary);
    --widi-loading-size: 16px;
}
.password-field { position: relative; display: block; }
.password-field > input { width: 100%; padding-right: 44px; }
.password-field > input::-ms-reveal { display: none; }
.password-toggle { position: absolute; top: 50%; right: 6px; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 6px; color: var(--platform-muted); background: transparent; transform: translateY(-50%); cursor: pointer; }
.password-toggle:hover, .password-toggle:focus-visible { color: var(--platform-ink); }
.password-toggle[aria-pressed="true"] .password-toggle__slash { display: none; }

/* 공통 날짜 달력(window.WidiDatepicker) 칸: 오른쪽 달력 아이콘, 선택한 날은 기본색. 화면별 입력 칸 배경 규칙보다 앞서도록 :not(#id)로 우선순위를 올린다. */
input[data-datepicker]:not(#widi-datepicker-none) { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236b7280'%3E%3Cpath d='M4.5 0a.5.5 0 0 1 .5.5V1h6V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM2 5v9a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V5H2z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px 16px; cursor: pointer; }
.flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-monthSelect-month.selected, .flatpickr-monthSelect-month.selected:hover { border-color: var(--platform-primary); background: var(--platform-primary); }
