.sv2 {
    --sv2-primary: #0094FF;
    --sv2-primary-dark: #007ACC;
    --sv2-text: #202020;
    --sv2-text-sub: #6B7684;
    --sv2-text-weak: #8B95A1;
    --sv2-border: #DEE5EE;
    --sv2-border-strong: #B0B8C1;
    --sv2-bg: #F7F9FC;
    --sv2-surface: #FFFFFF;
    --sv2-danger: #E5484D;
    --sv2-warning: #F59E0B;
    --sv2-success: #1CA672;
    --sv2-radius: 10px;
}

.sv2 {
    --sv2-header-h: 64px;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--sv2-bg);
    padding: calc(var(--sv2-header-h) + 40px) 16px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--sv2-text);
    box-sizing: border-box;
}

.sv2 *, .sv2 *::before, .sv2 *::after { box-sizing: border-box; }

.sv2-card {
    width: 100%;
    max-width: 480px;
    background: var(--sv2-surface);
    border: 1px solid var(--sv2-border);
    border-radius: 16px;
    padding: 40px 32px;
}

.sv2-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.sv2-subtitle {
    font-size: 14px;
    color: var(--sv2-text-sub);
    margin: 0 0 32px;
    line-height: 1.5;
}

.sv2-field { margin-bottom: 20px; }

.sv2-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.sv2-req { color: var(--sv2-primary); margin-left: 2px; }

.sv2-label-note {
    font-weight: 400;
    color: var(--sv2-text-weak);
    float: right;
    font-size: 12px;
}

.sv2 .sv2-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-size: 15px;
    color: var(--sv2-text);
    background: var(--sv2-surface);
    border: 1px solid var(--sv2-border);
    border-radius: var(--sv2-radius);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}

.sv2 .sv2-input::placeholder { color: var(--sv2-text-weak); }
.sv2 .sv2-input:hover:not(:disabled) { border-color: var(--sv2-border-strong); }

.sv2 .sv2-input:focus-visible,
.sv2 .sv2-input:focus {
    border-color: var(--sv2-primary);
    box-shadow: 0 0 0 3px rgba(0, 148, 255, .16);
}

.sv2 .sv2-input:disabled {
    background: #F2F4F6;
    color: var(--sv2-text-weak);
    cursor: not-allowed;
}

.sv2-field.is-error .sv2-input {
    border-color: var(--sv2-danger);
}
.sv2-field.is-error .sv2-input:focus {
    box-shadow: 0 0 0 3px rgba(229, 72, 77, .16);
}
.sv2-field.is-valid .sv2-input {
    border-color: var(--sv2-success);
}

.sv2-input-row { position: relative; display: flex; gap: 8px; }
.sv2 .sv2-input-row .sv2-input { flex: 1 1 auto; min-width: 0; }

.sv2-ghost-btn {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sv2-text);
    background: #F2F4F6;
    border: 1px solid transparent;
    border-radius: var(--sv2-radius);
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: background .15s;
}
.sv2-ghost-btn:hover:not(:disabled) { background: #E8EBEE; }
.sv2-ghost-btn:disabled { color: var(--sv2-text-weak); cursor: not-allowed; opacity: .6; }
.sv2-ghost-btn:focus-visible { outline: 2px solid var(--sv2-primary); outline-offset: 2px; }

.sv2-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--sv2-text-weak);
    padding: 0;
}
.sv2-eye:focus-visible { outline: 2px solid var(--sv2-primary); outline-offset: 1px; border-radius: 6px; }
.sv2 .sv2-has-eye .sv2-input { padding-right: 48px; }

.sv2-msg {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-size: 12.5px;
    line-height: 1.5;
    margin-top: 6px;
    min-height: 18px;
    color: var(--sv2-text-sub);
}

.sv2-msg[hidden] { display: none; }
.sv2-msg .sv2-msg-icon { flex: 0 0 auto; margin-top: 1px; font-style: normal; }
.sv2-msg.is-error { color: var(--sv2-danger); }
.sv2-msg.is-success { color: var(--sv2-success); }
.sv2-msg.is-hint { color: var(--sv2-text-weak); }

.sv2-msg-action {
    margin-left: 4px;
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.sv2-msg-action:hover { opacity: .8; }

.sv2-strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}
.sv2-strength-seg {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #E8EBEE;
    transition: background .2s;
}
.sv2-strength[data-level="1"] .sv2-strength-seg.is-on { background: var(--sv2-danger); }
.sv2-strength[data-level="2"] .sv2-strength-seg.is-on { background: var(--sv2-warning); }
.sv2-strength[data-level="3"] .sv2-strength-seg.is-on { background: var(--sv2-success); }

.sv2-otp { margin-top: 8px; }
.sv2-otp[hidden] { display: none; }

.sv2-otp-input-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
.sv2 .sv2-otp-input-wrap .sv2-input { letter-spacing: 4px; font-size: 16px; }
.sv2 .sv2-otp-input-wrap .sv2-input::placeholder { letter-spacing: normal; }

.sv2-timer {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    color: var(--sv2-danger);
    font-variant-numeric: tabular-nums;
}

.sv2-resend {
    background: none;
    border: 0;
    padding: 0;
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--sv2-text-sub);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    font-family: inherit;
}
.sv2-resend:hover { color: var(--sv2-text); }
.sv2-resend:focus-visible { outline: 2px solid var(--sv2-primary); outline-offset: 2px; border-radius: 4px; }

.sv2-consent {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 28px 0 24px;
}

.sv2-consent-all {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 8px;
    cursor: pointer;
    border-bottom: 1.5px solid #EFEFEF;
}

.sv2-consent-all-text {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.sv2-consent-all-sub { font-size: 12px; color: rgba(32, 32, 32, .6); font-weight: 400; }

.sv2-consent-head {
    display: flex;
    align-items: center;
}

.sv2-consent-head-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 12px 8px;
    cursor: pointer;
}

.sv2-consent-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}
.sv2-consent-title .sv2-req { margin-left: 0; font-size: 12px; }

.sv2-chevron {
    flex: 0 0 auto;
    width: 30px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--sv2-text-weak);
    padding: 0;
}
.sv2-chevron svg { transition: transform .2s; }
.sv2-chevron[aria-expanded="true"] svg { transform: rotate(180deg); }
.sv2-chevron:focus-visible { outline: 2px solid var(--sv2-primary); outline-offset: 1px; border-radius: 6px; }

.sv2-consent-items {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows .25s ease, visibility 0s linear .25s;
}
.sv2-consent-items.is-open {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows .25s ease;
}
.sv2-consent-items-inner { min-height: 0; overflow: hidden; }

.sv2-consent-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 36px;
    padding-right: 8px;
    border-radius: 8px;
    transition: background .2s;
}
.sv2-consent-item:hover { background: rgba(32, 32, 32, .05); }
.sv2-consent-item-label {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    padding: 12px 0;
    font-size: 13px;
    color: var(--sv2-text);
    cursor: pointer;
}
.sv2-consent-item-text {
    color: var(--sv2-text);
    text-decoration: none;
    cursor: pointer;
}
.sv2-consent-item-view {
    flex: 0 0 auto;
    padding: 12px 4px;
    font-size: 12px;
    color: var(--sv2-text-weak);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.sv2-consent-item-view:hover { color: var(--sv2-text); }

.sv2-check {
    flex: 0 0 auto;
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 0;
    background: var(--sv2-cb-unchecked) center / contain no-repeat;
    cursor: pointer;
    margin: 0;
}
.sv2-check:checked { background-image: var(--sv2-cb-checked); }
.sv2-check:focus-visible { outline: 2px solid var(--sv2-primary); outline-offset: 2px; }

.sv2-submit {
    width: 100%;
    height: 52px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--sv2-primary);
    border: 0;
    border-radius: var(--sv2-radius);
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}
.sv2-submit:hover:not([aria-disabled="true"]) { background: var(--sv2-primary-dark); }
.sv2-submit:focus-visible { outline: 2px solid var(--sv2-primary); outline-offset: 3px; }
.sv2-submit[aria-busy="true"] { opacity: .7; cursor: progress; }
.sv2-submit[aria-disabled="true"] { background: var(--sv2-border-strong); cursor: not-allowed; }

.sv2-form-error {
    margin-top: 12px;
    font-size: 13px;
    color: var(--sv2-danger);
    text-align: center;
    line-height: 1.5;
}
.sv2-form-error[hidden] { display: none; }

.sv2-login-link {
    margin-top: 20px;
    text-align: center;
    font-size: 13.5px;
    color: var(--sv2-text-sub);
}
.sv2-login-link a {
    color: var(--sv2-primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-left: 4px;
}

.sv2-done { text-align: center; }
.sv2-done-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(28, 166, 114, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sv2-success);
}
.sv2-done .sv2-title { margin-bottom: 10px; }
.sv2-done .sv2-subtitle { margin-bottom: 28px; }

.sv2-done-actions { display: flex; flex-direction: column; gap: 10px; }

.sv2-page-done .btn-03.signup, .sv2-page-done .nav-btn.btn-02 { display: none !important; }

@media (max-width: 560px) {
    .sv2 { padding: calc(var(--sv2-header-h) + 16px) 0 16px; background: var(--sv2-surface); }
    .sv2-card { border: 0; border-radius: 0; padding: 28px 20px 40px; max-width: none; }
    .sv2-title { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
    .sv2 *, .sv2 *::before, .sv2 *::after { transition: none !important; }
}
