/*
 * 인증 화면 — A안(PC) + M3 앱 화면형(휴대폰) (2026-11-18, 샘플 sample/auth-renewal/a-dark.html · m-index.html M3)
 *
 * 골격 = devise/shared/_auth_page 파셜. 접두어 .oda-*  ·  색 = 테마 토큰(var(--ord-*))만 — 라이트/다크 자동.
 * 같은 마크업을 폭으로 나눠 보인다: 641px↑ = A안(가운데 기둥·줄 펼침) / 640px↓ = M3(앱 상단 바·아래 버튼 바·단계 화면).
 *   · 휴대폰 아래 버튼 바(.oda-actions)는 sticky — 자판이 오르면 화면이 줄어(interactive-widget) 자판 바로 위에 붙는다.
 *     자판이 화면을 덮는 브라우저는 auth-page 컨트롤러가 --oda-kb 로 띄운다.
 *   · 휴대폰에서 뒤로 버튼이 있는 화면(.oda-bar.is-on)은 맨 위 로고 줄·바닥글을 숨긴다(앱 화면처럼).
 * ⭐규칙 10: 입력칸은 배경·글자색을 함께 지정(토큰) — 자동완성 칸 색도 못 박는다.
 */

body:has(.oda-page) { background: var(--ord-panel); }
/* application 레이아웃의 <main style="max-width·padding"> 를 인증 화면에서만 푼다(인라인 style 이라 !important) */
main:has(> .oda-page) { max-width: none !important; padding: 0 !important; display: flex; flex-direction: column; }
.oda-page {
  --oda-kb: 0px;
  --oda-ring: 0 0 0 3px color-mix(in srgb, var(--ord-brand) 30%, transparent);
  --oda-safe-b: env(safe-area-inset-bottom, 0px);
  position: relative; flex: 1 0 auto; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  overflow-x: clip;   /* 단계 전환(옆에서 밀려 들어옴) 순간 가로로 넘쳐 휴대폰이 화면을 축소하지 않게 — clip 은 스크롤 영역을 안 만들어 sticky 유지 */
  background: var(--ord-panel); color: var(--ord-text);
  font: 400 15px/1.55 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent;
}
.oda-page *, .oda-page *::before, .oda-page *::after { box-sizing: border-box; }
.oda-page [hidden] { display: none !important; }
/* 초기화는 특이도 0(:where) — 화면 클래스(.oda-btn·.oda-link 등) 색이 항상 이긴다 */
:where(.oda-page) a { color: inherit; }
:where(.oda-page) button { font: inherit; color: inherit; }
.oda-page :focus-visible { outline: none; box-shadow: var(--oda-ring); }

/* ── 맨 위 로고 줄 · 바닥글 ── */
.oda-top { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 22px 28px; }
/* 공식 로고 = OD 겹침 배지(앱 아이콘과 같은 원본) + ODAS 글자 */
.oda-brand { display: inline-flex; align-items: center; gap: 9px; margin-right: auto; font-size: 19px; font-weight: 900; letter-spacing: -.02em; text-decoration: none; color: var(--ord-text); border-radius: 8px; }
.oda-brand-mark { display: block; width: 30px; height: 30px; flex: none; }
.oda-theme { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--ord-text-3); cursor: pointer; }
.oda-theme:hover { color: var(--ord-text); background: var(--ord-band); }
.oda-theme svg { width: 20px; height: 20px; }
.oda-foot { flex: 0 0 auto; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 22px; padding: 24px 16px 32px; font-size: 13px; color: var(--ord-text-3); }
.oda-foot a { text-decoration: none; border-radius: 4px; }
.oda-foot a:hover { color: var(--ord-text); text-decoration: underline; }

/* ── 본문 기둥 ── */
.oda-frame { flex: 1 0 auto; display: flex; flex-direction: column; }
.oda-screen { width: 100%; max-width: 420px; margin: 0 auto; padding: 5vh 16px 24px; display: flex; flex-direction: column; }
.oda-screen.is-wide { max-width: 460px; }
.oda-step, .oda-login, .oda-signup { display: flex; flex-direction: column; flex: 1 0 auto; }
/* 가입 화면 본문 감싸개(약관 전문 화면이 열리면 auth-terms 가 hidden) — 세로로 늘어나야 휴대폰 아래 버튼 바가 화면 맨 아래에 붙는다 */
.oda-signup-main { display: flex; flex-direction: column; flex: 1 0 auto; }
.oda-signup-main[hidden] { display: none; }

/* 제목 줄: PC = «‹ 뒤로» 작은 링크 + 큰 제목 / 휴대폰 = 앱 상단 바 */
.oda-bar { margin: 0 0 4px; }
.oda-back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 14px -6px; padding: 4px 6px; border: 0; background: none; color: var(--ord-text-3); font-size: 14px; text-decoration: none; cursor: pointer; border-radius: 8px; }
.oda-back:hover { color: var(--ord-text); }
.oda-back svg { width: 16px; height: 16px; }
.oda-title { margin: 0; font-size: 28px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; color: var(--ord-text); }
.oda-bar-r { display: none; }
.oda-lead { margin: 8px 0 24px; color: var(--ord-text-3); font-size: 15px; }
.oda-lead b { color: var(--ord-text); font-weight: 600; }
.oda-h2 { margin: 0 0 4px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.oda-sec-d { margin: 0 0 14px; font-size: 13.5px; color: var(--ord-text-3); }

/* ── 입력 ── */
.oda-form { display: flex; flex-direction: column; }
.oda-field { margin: 0 0 16px; }
.oda-label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ord-text); }
.oda-label small { font-weight: 400; color: var(--ord-text-3); font-size: 13px; margin-left: 4px; }
.oda-input {
  display: block; width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--ord-line-2); border-radius: 10px;
  background: var(--ord-input-bg); color: var(--ord-text); font: inherit; font-size: 15.5px; transition: border-color .15s, box-shadow .15s;
}
.oda-input::placeholder { color: var(--ord-text-4); }
.oda-input:hover { border-color: var(--ord-text-4); }
.oda-input:focus { outline: none; border-color: var(--ord-brand); box-shadow: var(--oda-ring); }
.oda-input[aria-invalid="true"] { border-color: var(--ord-tint-red-fg); }
.oda-input:disabled { background: var(--ord-band); color: var(--ord-text-3); }
.oda-input:-webkit-autofill, .oda-input:-webkit-autofill:hover, .oda-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ord-text); caret-color: var(--ord-text);
  box-shadow: 0 0 0 1000px var(--ord-input-bg) inset; transition: background-color 9999s ease-out 0s;
}
.oda-input.is-code { text-align: center; font-size: 22px; font-weight: 700; letter-spacing: .3em; }
.oda-pw { position: relative; }
.oda-pw .oda-input { padding-right: 68px; }
.oda-pw-btn { position: absolute; right: 6px; top: 6px; height: 34px; min-width: 52px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--ord-text-3); font-size: 13px; cursor: pointer; }
.oda-pw-btn:hover { background: var(--ord-line-soft); color: var(--ord-text); }
.oda-msg { margin: 6px 0 0; font-size: 13px; line-height: 1.45; }
.oda-msg.is-err { color: var(--ord-tint-red-fg); }
.oda-msg.is-warn { color: var(--ord-tint-amber-fg); }
.oda-msg.is-ok { color: var(--ord-tint-green-fg); }
.oda-msg.is-help { color: var(--ord-text-3); }
.oda-msg button { border: 0; background: none; padding: 0 2px; color: var(--ord-link); font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.oda-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 16px; font-size: 14px; }
.oda-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ord-text-3); }
.oda-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--ord-brand-solid); flex: 0 0 auto; }
.oda-link { color: var(--ord-text-3); text-decoration: none; border-radius: 6px; padding: 2px; border: 0; background: none; cursor: pointer; font-size: 14px; }
.oda-link:hover { color: var(--ord-text); text-decoration: underline; }
.oda-pwrules { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; padding: 0; font-size: 13px; color: var(--ord-text-3); }
.oda-pwrules li { display: inline-flex; align-items: center; gap: 6px; }
.oda-pwrules li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; }
.oda-pwrules li.is-ok { color: var(--ord-tint-green-fg); }
.oda-pwrules li.is-ok::before { border: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0Zm3.7 5.3a.9.9 0 0 0-1.3 0L7 8.7 5.6 7.3a.9.9 0 1 0-1.3 1.3l2 2a.9.9 0 0 0 1.3 0l4-4a.9.9 0 0 0 0-1.3Z'/%3E%3C/svg%3E") center/14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0Zm3.7 5.3a.9.9 0 0 0-1.3 0L7 8.7 5.6 7.3a.9.9 0 1 0-1.3 1.3l2 2a.9.9 0 0 0 1.3 0l4-4a.9.9 0 0 0 0-1.3Z'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ── 버튼 ── */
.oda-actions { display: grid; gap: 10px; margin: 4px 0 0; }
.oda-btns { display: flex; gap: 10px; }
.oda-btns > .is-ghost { flex: 0 0 104px; }
.oda-btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 46px; padding: 0 16px;
  border: 0; border-radius: 10px; cursor: pointer; text-decoration: none;
  background: var(--ord-brand-solid); color: var(--ord-on-solid); font-size: 15.5px; font-weight: 600; transition: background-color .15s;
}
.oda-btn:hover { background: var(--ord-brand-solid-hover); color: var(--ord-on-solid); }
.oda-btn:focus-visible { box-shadow: 0 0 0 3px var(--ord-panel), 0 0 0 5px var(--ord-brand); }
.oda-btn:disabled { cursor: default; opacity: .6; }
.oda-btn.is-ghost, .oda-btn.is-google { background: var(--ord-panel); color: var(--ord-text); border: 1px solid var(--ord-line-2); font-weight: 500; }
.oda-btn.is-ghost:hover, .oda-btn.is-google:hover { background: var(--ord-band); color: var(--ord-text); }
.oda-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.oda-btn.is-loading { color: transparent; }
.oda-btn.is-loading svg { visibility: hidden; }
.oda-btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--ord-on-solid) 45%, transparent); border-top-color: var(--ord-on-solid); animation: oda-spin .7s linear infinite;
}
.oda-btn.is-ghost.is-loading::after, .oda-btn.is-google.is-loading::after { border-color: var(--ord-line-2); border-top-color: var(--ord-text); }
@keyframes oda-spin { to { transform: rotate(360deg); } }
.oda-google-form { margin: 0; }
.oda-or { display: flex; align-items: center; gap: 12px; margin: 22px 0; font-size: 13px; color: var(--ord-text-3); }
.oda-or::before, .oda-or::after { content: ""; flex: 1; height: 1px; background: var(--ord-line); }
.oda-alt { margin: 20px 0 0; text-align: center; font-size: 14.5px; color: var(--ord-text-3); }
.oda-alt a, .oda-alt button { color: var(--ord-link); font-weight: 600; text-decoration: none; margin: 0 4px; border: 0; background: none; padding: 0; cursor: pointer; font-size: inherit; border-radius: 4px; }
.oda-alt a:hover, .oda-alt button:hover { text-decoration: underline; }

/* ── 안내 띠: 바탕만 상태색, 글자는 본문색 ── */
.oda-banner { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 12px 14px; margin: 0 0 16px; border-radius: 10px; font-size: 14px; line-height: 1.5; color: var(--ord-text); }
.oda-banner svg { width: 20px; height: 20px; margin-top: 1px; }
.oda-banner.is-err { background: var(--ord-tint-red-bg); }
.oda-banner.is-err svg { color: var(--ord-tint-red-fg); }
.oda-banner.is-info { background: var(--ord-tint-blue-bg); }
.oda-banner.is-info svg { color: var(--ord-tint-blue-fg); }
.oda-banner.is-ok { background: var(--ord-tint-green-bg); }
.oda-banner.is-ok svg { color: var(--ord-tint-green-fg); }
.oda-banner.is-warn { background: var(--ord-tint-amber-bg); }
.oda-banner.is-warn svg { color: var(--ord-tint-amber-fg); }
.oda-banner b { font-weight: 600; }
.oda-banner a { color: var(--ord-link); font-weight: 600; }
.oda-banner-meta { display: block; margin-top: 4px; font-size: 13px; color: var(--ord-text-2); }
.oda-banner .oda-banner-act { margin-top: 8px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--ord-line-2); background: var(--ord-panel); color: var(--ord-text); font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }

/* ── 계정 목록 (이 기기에서 로그인한 계정) ── */
.oda-sub-row { margin: 8px 0 22px; }
.oda-sub-row .oda-lead { margin: 0; }
.oda-accts { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ord-line); border-radius: 14px; overflow: hidden; }
.oda-acct { position: relative; transition: background-color .2s; }
.oda-acct + .oda-acct { border-top: 1px solid var(--ord-line); }
.oda-acct.is-open { background: var(--ord-band); }
.oda-accts.has-open .oda-acct:not(.is-open) .oda-acct-head { opacity: .5; }
.oda-acct-head {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  width: 100%; padding: 14px 16px; border: 0; background: none; text-align: left; cursor: pointer; transition: opacity .2s;
}
.oda-acct-head:focus-visible { box-shadow: inset 0 0 0 2px var(--ord-brand); }
.oda-av {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; overflow: hidden;
  font-weight: 700; font-size: 17px; background: hsl(var(--h, 210) var(--ord-avatar-bg)); color: hsl(var(--h, 210) var(--ord-avatar-fg));
}
.oda-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oda-av.is-add { background: none; border: 1.5px dashed var(--ord-line-2); color: var(--ord-text-3); font-weight: 400; font-size: 22px; }
.oda-av.is-sm { width: 32px; height: 32px; border-radius: 9px; font-size: 13px; }
.oda-av.is-lg { width: 72px; height: 72px; border-radius: 20px; font-size: 28px; }
.oda-acct-id { min-width: 0; display: grid; }
.oda-acct-id b { font-weight: 600; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oda-acct-id > span { color: var(--ord-text-3); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oda-acct-when { font-size: 12.5px; color: var(--ord-text-3); white-space: nowrap; font-feature-settings: "tnum"; }
.oda-chev { display: none; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid var(--ord-text-4); border-top: 2px solid var(--ord-text-4); transform: rotate(45deg); }
/* 이 기기에서 지우기 — 줄마다 늘 보이는 × (편집 단계 없음, 지우면 «되돌리기») */
.oda-acct-head.has-del { padding-right: 60px; }
.oda-acct-del { position: absolute; right: 12px; top: 18px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--ord-text-4); cursor: pointer; }
.oda-acct-del svg { width: 16px; height: 16px; }
.oda-acct-del:hover { background: var(--ord-tint-red-bg); color: var(--ord-tint-red-fg); }
.oda-acct-del:focus-visible { box-shadow: var(--oda-ring); }
.oda-acct.is-open .oda-acct-del { display: none; }
.oda-acct-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .24s cubic-bezier(.2, .7, .2, 1); }
.oda-acct.is-open .oda-acct-wrap { grid-template-rows: 1fr; }
.oda-acct-wrap > div { overflow: hidden; }
.oda-acct-body { padding: 0 16px 18px 74px; }
.oda-undo { display: flex; align-items: center; gap: 8px; margin: 10px 2px 0; font-size: 13.5px; color: var(--ord-text-3); }
.oda-undo button { border: 0; background: none; padding: 2px 4px; color: var(--ord-link); font-weight: 600; cursor: pointer; border-radius: 6px; }
.oda-hint { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin: 10px 2px 0; font-size: 12.5px; color: var(--ord-text-3); }
.oda-kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid var(--ord-line); border-bottom-width: 2px; border-radius: 5px; font-size: 11.5px; color: var(--ord-text-3); background: var(--ord-panel); }
@media (hover: none) { .oda-hint { display: none; } }
.oda-person { display: grid; justify-items: center; gap: 2px; margin: 12px 0 24px; text-align: center; }
.oda-person .oda-av { margin-bottom: 10px; }
.oda-person b { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.oda-person > span:not(.oda-av) { font-size: 14.5px; color: var(--ord-text-3); }
.oda-email-quiet { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }

/* ── 2차 인증: 입력칸 하나 + 보이는 상자 6개 ── */
.oda-who { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 8px 12px 8px 8px; border: 1px solid var(--ord-line); border-radius: 12px; }
.oda-who b { font-weight: 600; font-size: 14.5px; }
.oda-who div span { color: var(--ord-text-3); font-size: 13px; }
.oda-otp { position: relative; margin: 4px 0 8px; }
.oda-otp-in { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; font-size: 16px; color: transparent; caret-color: transparent; background: none; }
.oda-otp-boxes { display: grid; grid-template-columns: repeat(3, 1fr) 10px repeat(3, 1fr); gap: 8px; pointer-events: none; }
.oda-otp-boxes span { display: grid; place-items: center; height: 58px; border: 1px solid var(--ord-line-2); border-radius: 10px; background: var(--ord-input-bg); color: var(--ord-text); font-size: 24px; font-weight: 600; font-feature-settings: "tnum"; }
.oda-otp.is-focus .oda-otp-boxes span.is-cur { border-color: var(--ord-brand); box-shadow: var(--oda-ring); }
.oda-otp.is-focus .oda-otp-boxes span.is-cur:empty::after { content: ""; width: 2px; height: 24px; background: var(--ord-brand); animation: oda-blink 1s step-end infinite; }
.oda-otp.is-err .oda-otp-boxes span { border-color: var(--ord-tint-red-fg); }
.oda-otp.is-err { animation: oda-shake .3s; }
@keyframes oda-blink { 50% { opacity: 0; } }
@keyframes oda-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.oda-otp-tools { display: flex; align-items: center; gap: 12px; margin: 8px 0 4px; }
.oda-paste { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--ord-line-2); border-radius: 18px; background: var(--ord-panel); color: var(--ord-text-2); font-size: 13.5px; cursor: pointer; }
.oda-paste svg { width: 16px; height: 16px; }
.oda-more { margin: 18px 0 0; border-top: 1px solid var(--ord-line); padding-top: 14px; font-size: 14px; }
.oda-more summary { cursor: pointer; color: var(--ord-text-3); list-style: none; display: inline-flex; gap: 6px; align-items: center; border-radius: 6px; }
.oda-more summary::-webkit-details-marker { display: none; }
.oda-more summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.oda-more[open] summary::before { transform: rotate(45deg); }
.oda-more p { margin: 10px 0 12px; color: var(--ord-text-3); }
.oda-more .oda-otp { margin-top: 12px; }

/* ── 회원가입 ── */
.oda-steps { list-style: none; display: flex; gap: 8px; margin: 18px 0 26px; padding: 0; }
.oda-steps li { flex: 1; padding-top: 10px; border-top: 3px solid var(--ord-line); font-size: 13.5px; color: var(--ord-text-3); }
.oda-steps li span { font-weight: 700; margin-right: 6px; font-feature-settings: "tnum"; }
.oda-steps li.is-on { border-color: var(--ord-brand-solid); color: var(--ord-text); font-weight: 600; }
.oda-steps li.is-done { border-color: color-mix(in srgb, var(--ord-brand) 45%, var(--ord-panel)); }
.oda-progress { display: none; }
.oda-part + .oda-part { margin-top: 18px; }
.oda-only-m { display: none; }
.oda-part-h { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.oda-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--ord-line); border-radius: 12px 12px 0 0; cursor: pointer; }
.oda-switch-row b { font-weight: 600; font-size: 14.5px; }
.oda-switch { position: relative; flex: 0 0 auto; width: 44px; height: 26px; }
.oda-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.oda-switch span { position: absolute; inset: 0; border-radius: 13px; background: var(--ord-line-2); transition: background-color .15s; pointer-events: none; }
.oda-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ord-on-solid); transition: transform .18s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.oda-switch input:checked + span { background: var(--ord-brand-solid); }
.oda-switch input:checked + span::after { transform: translateX(18px); }
.oda-switch input:focus-visible + span { box-shadow: var(--oda-ring); }
.oda-expose { padding: 14px 16px 16px; border: 1px solid var(--ord-line); border-top: 0; border-radius: 0 0 12px 12px; }
.oda-expose.is-off .oda-chips, .oda-expose.is-off .oda-preview { opacity: .4; pointer-events: none; }
.oda-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.oda-chip { position: relative; }
.oda-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.oda-chip span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--ord-line-2); border-radius: 17px; font-size: 14px; color: var(--ord-text-3); pointer-events: none; }
.oda-chip input:checked + span { border-color: var(--ord-brand); color: var(--ord-link); background: var(--ord-tint-blue-bg); font-weight: 600; }
.oda-chip input:checked + span::before { content: ""; width: 9px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translate(1px, -1px); }
.oda-chip input:focus-visible + span { box-shadow: var(--oda-ring); }
.oda-preview { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--ord-line); font-size: 13px; color: var(--ord-text-3); }
.oda-preview-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--ord-text); }
.oda-preview-row b { font-weight: 600; font-size: 14px; }
.oda-preview-row div span { color: var(--ord-text-3); font-size: 13px; }
.oda-preview-row em { font-style: normal; color: var(--ord-text-3); }
.oda-terms { border: 1px solid var(--ord-line); border-radius: 12px; }
.oda-terms.has-err { border-color: var(--ord-tint-red-fg); }
.oda-terms-all { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--ord-line); font-weight: 600; cursor: pointer; }
.oda-terms-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 16px; }
.oda-terms-row + .oda-terms-row, .oda-doc + .oda-terms-row { border-top: 1px solid var(--ord-line-soft); }
.oda-terms-row label { display: flex; align-items: center; gap: 10px; flex: 1; cursor: pointer; font-size: 14.5px; }
.oda-terms input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--ord-brand-solid); flex: 0 0 auto; }
.oda-tag { font-size: 12.5px; font-weight: 600; color: var(--ord-link); }
.oda-tag.is-opt { color: var(--ord-text-3); }
.oda-view { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--ord-text-3); font-size: 13px; padding: 4px 6px; cursor: pointer; border-radius: 6px; text-decoration: underline; text-underline-offset: 2px; }
.oda-doc { margin: 0 12px 12px 44px; max-height: 220px; overflow: auto; padding: 12px 14px; background: var(--ord-band); border-radius: 8px; font-size: 13px; color: var(--ord-text-2); line-height: 1.65; }
.oda-doc :where(h1, h2, h3, h4) { margin: 10px 0 6px; font-size: 13.5px; color: var(--ord-text); }
.oda-doc :where(p, ul, ol) { margin: 0 0 8px; }
.oda-terms-foot { padding: 10px 16px 14px; font-size: 12.5px; color: var(--ord-text-3); border-top: 1px solid var(--ord-line-soft); }
.oda-terms-foot a { color: var(--ord-text-2); }
.oda-review { display: none; }
.oda-docscreen .oda-docbody { font-size: 15px; line-height: 1.75; color: var(--ord-text-2); }
.oda-docscreen .oda-docbody :where(h1, h2, h3, h4) { margin: 18px 0 6px; font-size: 16px; color: var(--ord-text); }
.oda-docscreen .oda-docbody :where(p, ul, ol) { margin: 0 0 10px; }

/* ── 메일 안내·완료·방법 탭·타이머 ── */
.oda-mail { width: 56px; height: 56px; border-radius: 16px; background: var(--ord-tint-blue-bg); display: grid; place-items: center; margin: 0 0 18px; }
.oda-mail svg { width: 28px; height: 28px; color: var(--ord-tint-blue-fg); }
.oda-addr { display: inline-block; margin: 0 0 2px; padding: 2px 8px; border-radius: 6px; background: var(--ord-band); font-weight: 600; color: var(--ord-text); overflow-wrap: anywhere; }
.oda-tip { margin: 20px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--ord-band); font-size: 13.5px; color: var(--ord-text-3); }
.oda-tip b { color: var(--ord-text); font-weight: 600; }
.oda-tip a { color: var(--ord-link); }
.oda-done { text-align: center; padding-top: 6vh; }
.oda-done .oda-spin { width: 28px; height: 28px; margin: 0 auto 18px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--ord-brand) 22%, transparent); border-top-color: var(--ord-brand); animation: oda-spin .8s linear infinite; }
.oda-mseg { display: flex; gap: 4px; padding: 4px; margin: 0 0 22px; border-radius: 12px; background: var(--ord-band); }
.oda-mseg a { flex: 1; display: grid; place-items: center; height: 38px; border-radius: 9px; font-size: 14px; color: var(--ord-text-3); text-decoration: none; }
.oda-mseg a.is-on { background: var(--ord-raised); color: var(--ord-text); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.oda-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 16px; font-size: 13.5px; color: var(--ord-text-3); }
.oda-timer { color: var(--ord-text); font-weight: 600; font-feature-settings: "tnum"; }
.oda-timer.is-low { color: var(--ord-tint-red-fg); }
.oda-otp-tools .oda-msg { margin: 0; }
.oda-mt { margin-top: 18px; }

/* PC: 보조 링크는 버튼 아래로 */
.oda-form > .oda-alt { order: 3; }

/* ─────────────── 휴대폰 (M3 앱 화면형) ─────────────── */
@media (max-width: 640px) {
  .oda-page { font-size: 16px; }
  .oda-top { padding: 6px 8px 0 16px; min-height: 56px; }
  .oda-brand { font-size: 17px; gap: 8px; }
  .oda-brand-mark { width: 27px; height: 27px; }
  .oda-theme { width: 44px; height: 44px; }
  .oda-page:has(.oda-bar.is-on:not([hidden])) .oda-top,
  .oda-page:has(.oda-bar.is-on:not([hidden])) .oda-foot { display: none; }
  .oda-screen, .oda-screen.is-wide { max-width: none; padding: 4px 20px 0; flex: 1 0 auto; }
  .oda-foot { padding: 20px 16px calc(20px + var(--oda-safe-b)); }

  .oda-bar.is-on {
    position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 48px minmax(0, 1fr) 56px; align-items: center;
    min-height: 56px; margin: 0 -20px 8px; padding: 0 4px; background: var(--ord-panel);
  }
  .oda-bar.is-on .oda-back { width: 44px; height: 44px; justify-content: center; margin: 0; padding: 0; color: var(--ord-text-2); }
  .oda-bar.is-on .oda-back svg { width: 24px; height: 24px; }
  .oda-bar.is-on .oda-back-t { display: none; }
  .oda-bar.is-on .oda-title { font-size: 17px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
  .oda-bar.is-on .oda-bar-r { display: block; justify-self: end; padding-right: 12px; font-size: 14px; color: var(--ord-text-3); font-weight: 600; font-feature-settings: "tnum"; }
  .oda-title { font-size: 26px; }
  .oda-lead { font-size: 15px; margin-bottom: 20px; }
  .oda-h2 { font-size: 24px; margin-top: 6px; }

  .oda-form { flex: 1 0 auto; }
  .oda-form > .oda-alt { order: 0; }
  .oda-alt.is-back { display: none; }
  .oda-actions {
    position: sticky; bottom: var(--oda-kb); z-index: 4; margin: auto -20px 0; order: 9;
    padding: 12px 20px calc(12px + var(--oda-safe-b)); background: var(--ord-panel); border-top: 1px solid var(--ord-line);
  }
  .oda-step > .oda-actions, .oda-form > .oda-actions { margin-top: auto; }
  .oda-step > .oda-actions { order: 9; }
  .oda-stepbody { display: flex; flex-direction: column; flex: 1 0 auto; }
  /* 처음 온 사람(기억된 계정 없음): 폼이 목록 자리에 — 버튼은 칸 바로 아래(구글·회원가입이 이어진다) */
  .oda-solo .oda-form { flex: 0 0 auto; }
  .oda-solo .oda-actions { position: static; margin: 4px 0 0; padding: 0; border: 0; }

  .oda-input { height: 52px; padding: 0 16px; border-radius: 12px; font-size: 17px; }
  .oda-pw .oda-input { padding-right: 76px; }
  .oda-pw-btn { right: 4px; top: 4px; height: 44px; min-width: 64px; font-size: 15px; border-radius: 9px; }
  .oda-label { font-size: 15px; margin-bottom: 8px; }
  .oda-msg { font-size: 14px; }
  .oda-check { min-height: 44px; font-size: 15px; gap: 10px; color: var(--ord-text-2); }
  .oda-check input { width: 22px; height: 22px; }
  .oda-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; }
  .oda-row { margin: -4px 0 12px; }
  .oda-btn { height: 54px; border-radius: 14px; font-size: 17px; }
  .oda-alt { font-size: 15px; }
  .oda-alt a, .oda-alt button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
  .oda-banner { font-size: 15px; padding: 14px; border-radius: 14px; }

  .oda-accts { border-radius: 16px; }
  .oda-acct-head { min-height: 72px; padding: 12px 16px; }
  .oda-acct-id b { font-size: 16px; }
  .oda-acct-id > span { font-size: 14px; }
  .oda-acct-when { display: none; }
  .oda-chev { display: block; }
  .oda-acct-head.has-del .oda-chev { display: none; }   /* 계정 줄 오른쪽은 지우기 ×, 화살표는 «다른 계정» 줄만 */
  .oda-acct-del { top: 16px; width: 40px; height: 40px; }
  .oda-acct.is-open { background: none; }
  .oda-accts.has-open .oda-acct:not(.is-open) .oda-acct-head { opacity: 1; }
  .oda-acct-wrap { display: none; }
  .oda-sub-row { margin: 6px 0 18px; }

  .oda-otp-boxes { gap: 6px; grid-template-columns: repeat(3, 1fr) 12px repeat(3, 1fr); }
  .oda-otp-boxes span { height: 60px; border-radius: 12px; font-size: 26px; }
  .oda-paste { height: 44px; padding: 0 14px; border-radius: 22px; font-size: 15px; }
  .oda-who { margin-top: 4px; }

  .oda-steps { display: none; }
  .oda-progress { display: flex; gap: 4px; margin: -4px -20px 14px; padding: 0 20px; }
  .oda-progress span { flex: 1; height: 3px; border-radius: 2px; background: var(--ord-line); }
  .oda-progress span.is-on { background: var(--ord-brand-solid); }
  .oda-part-h { display: none; }
  .oda-only-m { display: block; }
  .oda-part + .oda-part { margin-top: 0; }
  .oda-review { display: block; margin: 0 0 20px; padding: 6px 16px; border-radius: 14px; background: var(--ord-band); }
  .oda-review div { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
  .oda-review div + div { border-top: 1px solid var(--ord-line); }
  .oda-review dt { color: var(--ord-text-3); font-size: 14.5px; }
  .oda-review dd { margin: 0; display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; font-size: 15px; }
  .oda-review dd span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .oda-review dd button { flex: 0 0 auto; min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--ord-link); font-size: 14px; font-weight: 600; cursor: pointer; }
  .oda-switch-row { min-height: 60px; border-radius: 14px 14px 0 0; }
  .oda-switch { width: 52px; height: 32px; }
  .oda-switch span { border-radius: 16px; }
  .oda-switch span::after { width: 26px; height: 26px; }
  .oda-switch input:checked + span::after { transform: translateX(20px); }
  .oda-chip span { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 20px; }
  .oda-terms-row { min-height: 52px; }
  .oda-terms-row label { font-size: 15.5px; }
  .oda-terms input[type="checkbox"] { width: 22px; height: 22px; }
  .oda-view { min-height: 44px; min-width: 56px; justify-content: center; text-decoration: none; font-size: 14px; }
  .oda-view .oda-chev { display: block; width: 8px; height: 8px; margin: 0; }
  .oda-terms .oda-doc { display: none !important; }
  .oda-mseg a { height: 44px; font-size: 15px; }

  /* 단계 화면 전환 — 앞으로 = 오른쪽에서, 뒤로 = 왼쪽에서 */
  .oda-step.is-in-fwd { animation: oda-in-fwd .26s cubic-bezier(.2, .7, .2, 1) both; }
  .oda-step.is-in-back { animation: oda-in-back .26s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes oda-in-fwd { from { transform: translateX(40px); opacity: 0; } }
@keyframes oda-in-back { from { transform: translateX(-40px); opacity: 0; } }

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