/* Operational overlays only; the approved landing layout remains unchanged. */
/* Application result dialog — independent of landing motion and policy dialogs. */
.application-dialog {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: min(400px, calc(100% - 32px));
    max-height: calc(100svh - 32px);
    margin: auto;
    padding: 48px 28px 24px;
    overflow-y: auto;
    border: 1px solid rgb(14 107 88 / 8%);
    border-radius: 24px;
    background: #fff;
    color: var(--ink, #172d27);
    font-family: var(--font-ko, "Pretendard", sans-serif);
    text-align: center;
    box-shadow: 0 24px 80px rgb(10 73 61 / 14%);
}
.application-dialog::backdrop {
    background: rgb(18 45 39 / 38%);
    backdrop-filter: blur(4px);
}
.application-dialog[open] { animation: application-appear 180ms ease-out; }
.application-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6d8980;
    cursor: pointer;
}
.application-close span { position: relative; width: 14px; height: 14px; }
.application-close span::before,
.application-close span::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
    width: 14px;
    height: 1.5px;
    border-radius: 1px;
    background: currentColor;
    transform: rotate(45deg);
}
.application-close span::after { transform: rotate(-45deg); }
.application-symbol {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 12px auto 20px;
    place-items: center;
    border-radius: 50%;
    background: #e8f2ed;
    color: var(--green, #0e6b58);
}
.application-symbol [hidden] { display: none; }
.application-dialog[data-result="duplicate"] .application-symbol { background: #fff2dc; color: #8b6125; }
.application-dialog[data-result="error"] .application-symbol { background: #fcf0e7; color: #a25b31; }
.application-dialog h2 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.45; letter-spacing: -0.03em; }
.application-message,
.application-detail { margin: 12px 0 0; color: #627d73; font-size: 15px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.application-detail { margin-top: 16px; }
.application-detail[hidden] { display: none; }
.application-confirm {
    display: block;
    width: 100%;
    min-height: 50px;
    margin-top: 24px;
    padding: 13px 20px;
    border: 0;
    border-radius: 12px;
    background: var(--green, #0e6b58);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    transition: background 160ms ease;
}
.application-close:focus-visible,
.application-confirm:focus-visible { outline: 3px solid #f2a33a; outline-offset: 3px; }
.apply-form [aria-invalid="true"] { outline: 2px solid #a25b31; outline-offset: 2px; }
.apply-form[aria-busy="true"] .apply-submit { cursor: wait; opacity: 0.7; }
@media (hover: hover) and (pointer: fine) {
    .application-close:hover { background: #edf4f0; color: #0e6b58; }
    .application-confirm:hover { background: var(--dark, #0a493d); }
}
@media (max-width: 640px) {
    .application-dialog { padding: 44px 24px 24px; border-radius: 22px; }
    .application-dialog h2 { font-size: 20px; }
    .application-message,
    .application-detail { font-size: 14px; }
}
@keyframes application-appear {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .application-dialog[open] { animation: none; }
    .application-confirm { transition: none; }
}

.policy-dialog .site-document {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.site-notice-list {
    display: grid;
    gap: 12px;
    padding: 0;
    list-style: none;
}
.site-notice-list button {
    width: 100%;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid #dde5df;
    color: #172d27;
    background: transparent;
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.site-promotion {
    position: fixed;
    z-index: 80;
    right: 24px;
    bottom: 24px;
    width: min(430px, calc(100% - 48px));
    padding: 24px;
    border: 1px solid #b9cec4;
    background: #fcfcf8;
    color: #172d27;
    box-shadow: 0 8px 28px #172d2714;
}
.site-promotion[data-theme="green"] { background: #0e6b58; color: #fff; }
.site-promotion[data-theme="orange"] { background: #f2a33a; }
.site-promotion strong { display: block; padding-right: 20px; font-size: 20px; }
.site-promotion p { margin: 12px 0; line-height: 1.6; white-space: pre-wrap; }
.site-promotion a { color: inherit; text-underline-offset: 4px; font-weight: 700; }
.site-promotion-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 24px;
    cursor: pointer;
}
.site-promotion[data-type="strip_banner"] {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 16px max(24px, calc((100vw - 1200px) / 2));
}
.site-promotion[data-type="strip_banner"] strong { font-size: 17px; }
.site-promotion[data-type="strip_banner"] p { display: inline; margin-right: 20px; }
/* Image popups: the artwork is edge-to-edge and keeps its original ratio. */
.site-popup {
    position: fixed;
    box-sizing: border-box;
    width: min(var(--popup-width, 480px), calc(100vw - 32px));
    max-width: none;
    max-height: calc(100svh - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #172d27;
    font: inherit;
    overscroll-behavior: contain;
}
.site-popup::backdrop { background: rgb(10 31 24 / 48%); }
.site-popup-close {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 94%);
    color: #172d27;
    cursor: pointer;
}
.site-popup-link { display: block; color: inherit; text-decoration: none; }
.site-popup-image {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.site-popup-copy { padding: 28px; overflow-wrap: anywhere; }
.site-popup-content > .site-popup-copy:first-child,
.site-popup-content > .site-popup-link:first-child > .site-popup-copy { padding-top: 60px; }
.site-popup-copy h2 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.4; }
.site-popup-copy p { margin: 0; font-size: 16px; line-height: 1.7; white-space: pre-wrap; }
.site-popup-copy h2 + p { margin-top: 12px; }
.site-popup-footer {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 8px 16px;
    background: #fff;
    font-size: 14px;
    line-height: 1.4;
}
.site-popup-footer label { display: flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; }
.site-popup-footer input { width: 17px; height: 17px; margin: 0; accent-color: #0e6b58; }
.site-popup :focus-visible { outline: 2px solid #0e6b58; outline-offset: -3px; }
@media (max-width: 640px) {
    .site-popup { width: min(var(--popup-width, 480px), calc(100vw - 24px)); max-height: calc(100svh - 24px); }
    .site-popup-copy { padding: 24px; }
    .site-popup-copy h2 { font-size: 21px; }
}
@media (max-width: 640px) {
    .site-promotion { right: 16px; bottom: 16px; width: calc(100% - 32px); padding: 20px; }
    .site-promotion[data-type="strip_banner"] { padding: 16px 48px 16px 20px; }
    .site-promotion[data-type="strip_banner"] p { display: block; margin: 8px 0; }
}
