:root {
  --navy: #0F2A44;
  --ink: #1F2937;
  --body: #374151;
  --muted: #4B5563;
  --line: #E5E7EB;
  --field: #C9D2DC;
  --soft: #F7F9FB;
  --page: #F4F6F9;
  --green: #2DB37A;
  --green-ink: #1B7A4E;
  --green-bg: #E6F5ED;
  --blue: #3558A8;
  --blue-bg: #EEF3FA;
  --amber-bg: #FFF4E5;
  --amber-ink: #9A4A00;
  --red: #B42318;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { word-break: keep-all; overflow-wrap: anywhere;
  font-family: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--ink);
  background: var(--page);
  -webkit-text-size-adjust: 100%;
}
a { color: var(--blue); }
.app { max-width: 480px; min-height: 100vh; margin: 0 auto; background: #fff; display: flex; flex-direction: column; }
.app.gray { background: var(--page); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 20px; min-height: 64px; background: #fff; border-bottom: 1px solid var(--line); }
.top .logo { height: 38px; width: auto; }
.top .title { font-size: 17px; font-weight: 600; color: var(--navy); }
.top .side { font-size: 13px; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 44px; padding: 0; margin-left: -10px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--navy); text-decoration: none; cursor: pointer; }
.linkbtn { min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }

main { flex: 1; display: flex; flex-direction: column; gap: 22px; padding: 26px 20px 28px; }
.app.gray main { padding: 22px 16px 28px; }
h1 { margin: 0; font-size: 26px; line-height: 1.32; font-weight: 700; color: var(--navy); }
h1.sm { font-size: 21px; }
h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--navy); }
p { margin: 0; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--green-ink); }
.lead { font-size: 15px; line-height: 1.6; color: var(--muted); }
.small { font-size: 13px; line-height: 1.55; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack.lg { gap: 12px; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #F1F4F8; border-radius: 12px; }
.tabs button { height: 44px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; font-weight: 600; color: var(--navy); box-shadow: 0 1px 2px rgba(15, 42, 68, .12); }

label.field { font-size: 14px; font-weight: 600; color: var(--navy); }
input[type=text], input[type=tel], textarea, select {
  width: 100%; height: 56px; padding: 0 16px; border: 1.5px solid var(--field); border-radius: 12px;
  font: inherit; font-size: 17px; color: var(--navy); background: #fff;
}
textarea { height: auto; padding: 14px 16px; font-size: 15px; line-height: 1.6; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(53, 88, 168, .25); border-color: var(--blue); }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 56px; border: 0; border-radius: 12px; background: var(--navy); font: inherit; font-size: 17px; font-weight: 600; color: #fff; text-decoration: none; cursor: pointer; }
.btn:disabled { background: #9AA8B8; cursor: not-allowed; }
.btn.line { height: 52px; border: 1.5px solid var(--field); background: #fff; color: var(--navy); font-size: 16px; }
.btn.ghost { height: 48px; background: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }

.note { display: flex; gap: 10px; padding: 14px 16px; border-radius: 12px; font-size: 13px; line-height: 1.55; }
.note.green { background: #EEF7F2; color: #1F4D36; }
.note.blue { background: var(--blue-bg); color: #23407F; }
.note.amber { background: var(--amber-bg); color: #5C3300; }
.note svg { flex-shrink: 0; margin-top: 1px; }
.err { padding: 12px 14px; border-radius: 10px; background: #FDECEA; color: #8A1C12; font-size: 14px; line-height: 1.5; }

.hero { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 20px; border-radius: 16px; text-align: center; }
.hero.ok { border: 1.5px solid #9FD9BC; background: #F3FAF6; }
.hero.no { border: 1.5px solid var(--line); background: var(--soft); }

dl.rows { margin: 0; border-top: 1px solid var(--line); }
dl.rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
dl.rows dt { font-size: 14px; color: var(--muted); }
dl.rows dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--navy); text-align: right; }
dl.grid { margin: 0; display: grid; grid-template-columns: 72px 1fr; gap: 10px 12px; font-size: 14px; line-height: 1.5; }
dl.grid dt { color: var(--muted); }
dl.grid dd { margin: 0; }

.card { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(15, 42, 68, .08); }
.card.bordered { box-shadow: none; border: 1px solid var(--line); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.pill.green { background: var(--green-bg); color: var(--green-ink); }
.pill.gray { background: #ECEFF3; color: var(--muted); }
.pill.amber { background: var(--amber-bg); color: var(--amber-ink); }
.pill.blue { background: #E3EBF8; color: #23407F; }
.period { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--soft); border-radius: 12px; }
.period strong { font-size: 16px; color: var(--navy); }

.menu-main { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 0 18px; background: var(--navy); border-radius: 14px; text-decoration: none; color: #fff; }
.menu-main span span { display: block; font-size: 13px; color: #C9D6E3; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-grid a { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 84px; padding: 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--navy); }

.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input { height: 56px; padding: 0; text-align: center; font-size: 22px; font-weight: 600; }

.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 12px; border: 1.5px solid #D5DCE4; border-radius: 12px; font-size: 14px; cursor: pointer; }
.chip:has(input:checked) { border-color: var(--navy); background: var(--blue-bg); font-weight: 600; color: var(--navy); }
.chip input { width: 18px; height: 18px; accent-color: var(--navy); }
.chips.round { display: flex; flex-wrap: wrap; }
.chips.round .chip { min-height: 44px; border-radius: 999px; padding: 0 14px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--navy); }
.check.boxed { min-height: 52px; padding: 0 16px; border: 1.5px solid var(--navy); border-radius: 12px; background: var(--soft); font-size: 15px; font-weight: 600; color: var(--navy); }

.attach { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.attach label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 96px; border: 1.5px dashed #9AA8B8; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--navy); cursor: pointer; }
.attach input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upl { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; }
.upl .row { display: flex; justify-content: space-between; gap: 8px; }
.upl .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--blue); }
.upl.failed .bar > i { background: var(--red); }
.upl button { border: 0; background: none; font: inherit; font-size: 13px; color: var(--blue); cursor: pointer; padding: 0; }

ul.tips { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
ol.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
ol.steps li { display: flex; gap: 12px; font-size: 14px; line-height: 1.55; }
ol.steps b.n { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--navy); font-size: 13px; color: #fff; }

.idbox { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px; background: var(--soft); border-radius: 14px; }
.idbox strong { font-size: 22px; color: var(--navy); letter-spacing: .02em; }

.inq { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(15, 42, 68, .08); }
.inq .meta { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }
.inq h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--navy); }
.inq .q { font-size: 14px; line-height: 1.6; color: var(--body); white-space: pre-wrap; }
.inq .a { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--soft); border-radius: 10px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }

.foot { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; background: var(--soft); border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--muted); }
.foot .roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.foot strong { display: block; color: var(--navy); }
.foot .row { display: flex; justify-content: space-between; align-items: center; }
.foot .row img { height: 13px; }
.foot a.cs { font-size: 14px; font-weight: 600; text-decoration: none; }

.consent-box dl.grid { grid-template-columns: 64px 1fr; font-size: 13px; }
.spinner { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ts { min-height: 0; }
.hidden { display: none !important; }

/* 홈 화면에 추가 */
.a2hs { display: flex; flex-direction: column; gap: 6px; }
.a2hs .btn.sm { height: 40px; width: auto; align-self: flex-start; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); font-size: 13.5px; font-weight: 600; }
.a2hs-guide { margin: 0; font-size: 12.5px; color: var(--body); }
