/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--base); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); line-height: var(--lh-body); letter-spacing: var(--ls-body);
  word-break: keep-all; overflow-wrap: break-word; /* 한글은 낱말 단위로 줄바꿈 */
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-60); }
.loading { padding: var(--s-20) var(--s-6); text-align: center; color: var(--ink-60); }

/* ---------- 상단바 (iOS 내비게이션 바 느낌) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--ink-08);
  padding-top: env(safe-area-inset-top);
}
.topbar-inner {
  max-width: var(--wide); margin: 0 auto; height: 60px; padding: 0 var(--s-4);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-2);
}
.topbar-logo { font-weight: 800; font-size: var(--fs-2xl); text-decoration: none; letter-spacing: var(--ls-tight); justify-self: start; }
.topbar-back {
  justify-self: start; display: inline-flex; align-items: center; gap: var(--s-1); min-height: 48px; padding: 0 var(--s-2) 0 0;
  text-decoration: none; font-weight: 600; font-size: var(--fs-m);
}
.topbar-back span { font-size: 1.9rem; line-height: 1; margin-top: -4px; }
.topbar-title { font-weight: 700; font-size: var(--fs-m); text-align: center; white-space: nowrap; }
.topbar-size {
  justify-self: end; min-height: 44px; padding: 0 var(--s-4); border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--paper); font-weight: 700; font-size: var(--fs-s); cursor: pointer;
}
.topbar-size[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.demo-banner { background: var(--ink); color: var(--paper); text-align: center; font-size: var(--fs-xs); padding: var(--s-2) var(--s-3); }

/* ---------- 화면 틀 ---------- */
.main { min-height: calc(100vh - 60px); outline: none; }
.screen { margin: 0 auto; padding: var(--s-8) var(--s-5) 140px; max-width: var(--wide); }
.screen.narrow { max-width: var(--narrow); }
.screen.center { text-align: center; display: flex; flex-direction: column; align-items: stretch; gap: var(--s-5); padding-top: var(--s-16); }
.stack { display: flex; flex-direction: column; gap: var(--s-3); }
.section { margin-top: var(--s-16); }
.section-title { font-size: var(--fs-2xl); line-height: var(--lh-title); font-weight: 800; letter-spacing: var(--ls-title); margin: 0 0 var(--s-2); }

.eyebrow { font-size: var(--fs-s); font-weight: 700; margin: 0 0 var(--s-3); }
.display { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); font-weight: 800; margin: 0 0 var(--s-5); }
.title { font-size: var(--fs-title); line-height: var(--lh-title); letter-spacing: var(--ls-title); font-weight: 800; margin: 0 0 var(--s-3); }
.lead { font-size: var(--fs-l); line-height: var(--lh-body); color: var(--ink-80); margin: 0; }
.hint { margin: 0 0 var(--s-6); }
.section-title + .hint { margin-top: 0; }
.empty { padding: var(--s-10) var(--s-5); text-align: center; color: var(--ink-60); border: 1.5px dashed var(--ink-15); border-radius: var(--radius); }
.notice { padding: var(--s-4); border-radius: var(--radius); background: var(--ink-04); }
.footer { margin-top: var(--s-16); font-size: var(--fs-s); text-align: center; }
.footer-actions { margin-top: var(--s-10); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: var(--tap); padding: var(--s-3) var(--s-6); border-radius: 999px;
  font-weight: 700; font-size: var(--fs-l); text-decoration: none; text-align: center; cursor: pointer;
  border: 2px solid var(--ink); transition: transform 0.12s var(--ease), opacity 0.12s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(0.98); }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-secondary { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink-15); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-plain { background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.btn:disabled, .btn[aria-disabled='true'] { opacity: 0.25; cursor: not-allowed; transform: none; }
.btn-sub { font-size: var(--fs-xs); font-weight: 500; opacity: 0.7; }
.link { background: none; border: 0; padding: var(--s-2) 0 var(--s-2) var(--s-3); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; min-height: 44px; }

/* ---------- 홈 ---------- */
.hero { display: grid; gap: var(--s-8); padding-top: var(--s-3); }
.hero-actions { display: flex; flex-direction: column; gap: var(--s-3); }
.howto { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.howto-item { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-5); border-radius: var(--radius-l); background: var(--surface); }
.howto-num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 800; }
.howto-title { display: block; font-size: var(--fs-l); margin-bottom: var(--s-1); }
.howto-body { margin: 0; color: var(--ink-80); }
.checklist { list-style: none; margin: var(--s-5) 0 0; padding: var(--s-2) var(--s-5); display: grid; border-radius: var(--radius-l); background: var(--surface); }
.checklist li { position: relative; padding: var(--s-4) 0 var(--s-4) var(--s-10); }
.checklist li + li { border-top: 1px solid var(--ink-08); }
.checklist li::before { content: '✓'; position: absolute; left: 0; top: 17px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: var(--fs-2xs); display: grid; place-items: center; font-weight: 800; }
.partner-cta { padding: var(--s-5) var(--s-5) var(--s-6); border-radius: 28px; background: var(--surface); display: grid; gap: var(--s-5); }
.partner-cta .section-title { margin-bottom: var(--s-1); }
.partner-cta p { margin: 0; }

/* ---------- 사진 (컬러. 화면 색은 검정·흰색, 사진만 컬러) ---------- */
.photo { margin: 0; position: relative; border-radius: var(--radius-l); overflow: hidden; }
.photo img { width: 100%; aspect-ratio: var(--ratio, 3 / 2); object-fit: cover; display: block; background: var(--ink-08); }
.photo-credit { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-8) var(--s-3) var(--s-2); display: flex; justify-content: flex-end; text-align: right;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); color: rgba(255, 255, 255, 0.88);
  font-size: var(--fs-2xs); line-height: var(--lh-snug); letter-spacing: var(--ls-body); pointer-events: none; }
.photo-credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.45); text-underline-offset: 2px; pointer-events: auto; }
.photo-hero { margin-top: var(--s-8); }
.photo-where { margin-bottom: var(--s-4); }
.photo-partner { border-radius: var(--radius); }

/* ---------- 접수 단계 ---------- */
.progress { height: 6px; border-radius: var(--radius-xs); background: var(--ink-08); overflow: hidden; }
.progress-bar { height: 100%; background: var(--ink); border-radius: var(--radius-xs); transition: width 0.3s var(--ease); }
.step-count { margin: var(--s-4) 0 var(--s-2); font-weight: 700; color: var(--ink-60); font-size: var(--fs-s); }
.wizard .title { margin-bottom: var(--s-2); }
.wizard-body { margin-top: var(--s-5); }

.options { display: grid; gap: var(--s-3); }
.option {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); width: 100%;
  min-height: 68px; padding: var(--s-4) var(--s-5); border-radius: var(--radius); text-align: left; cursor: pointer;
  background: var(--paper); border: 2px solid var(--ink-15); transition: border-color 0.12s, background 0.12s;
}
.option:hover { border-color: var(--ink); }
.option.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.option-text { display: flex; flex-direction: column; }
.option-label { font-weight: 700; font-size: var(--fs-l); }
.option-hint { font-size: var(--fs-s); opacity: 0.7; }
.option-mark { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid currentColor; opacity: 0.35; display: grid; place-items: center; }
.option-mark.is-check { border-radius: var(--radius-xs); }
.option.is-on .option-mark { opacity: 1; background: var(--paper); }
.option.is-on .option-mark::after { content: '✓'; color: var(--ink); font-weight: 900; font-size: var(--fs-s); }

.segmented { display: flex; padding: var(--s-1); gap: var(--s-1); border-radius: var(--radius-s); background: var(--ink-08); }
.segment { flex: 1; min-height: 52px; border: 0; border-radius: 11px; background: transparent; font-weight: 700; cursor: pointer; }
.segment.is-on { background: var(--paper); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.grid-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
.choice { min-height: var(--tap); border-radius: var(--radius); border: 2px solid var(--ink-15); background: var(--paper); font-weight: 700; font-size: var(--fs-l); cursor: pointer; }
.choice:hover { border-color: var(--ink); }
.choice.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { min-height: 48px; padding: 0 var(--s-4); border-radius: 999px; border: 2px solid var(--ink-15); background: var(--paper); font-weight: 600; cursor: pointer; }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.photo-preview { width: 100%; max-height: 360px; object-fit: contain; border-radius: var(--radius); background: var(--ink-04); }

/* 화면 아래 고정 버튼 줄 (엄지 닿는 곳) */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-top: 1px solid var(--ink-08);
  padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom));
}
.actionbar-inner { max-width: var(--narrow); margin: 0 auto; display: flex; gap: var(--s-3); }
.actionbar-inner .btn:not(.btn-block) { flex: 0 0 34%; }

/* ---------- 입력칸 ---------- */
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field-label { font-weight: 700; font-size: var(--fs-m); }
.input {
  width: 100%; min-height: var(--tap); padding: var(--s-4) var(--s-4); border-radius: var(--radius-s);
  border: 2px solid var(--ink-15); background: var(--paper); font-size: var(--fs-l); appearance: none; -webkit-appearance: none;
}
textarea.input { min-height: 120px; resize: vertical; }
select.input { background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: var(--s-12); }
.input:focus { outline: none; border-color: var(--ink); }
.input.has-error { border-color: var(--ink); border-style: dashed; }
.field-hint { font-size: var(--fs-s); color: var(--ink-60); }
.field-error, .form-error { font-size: var(--fs-s); font-weight: 700; margin: 0; }
.form-error:empty { display: none; }
.form-error::before, .field-error::before { content: '! '; }

/* ---------- 목록·카드 ---------- */
.list { border: 1.5px solid var(--ink-15); border-radius: var(--radius); overflow: hidden; }
.list-row { display: grid; grid-template-columns: 84px 1fr auto; gap: var(--s-3); align-items: center; padding: var(--s-4) var(--s-4); min-height: 60px; }
.list-row + .list-row { border-top: 1px solid var(--ink-08); }
.list-key { color: var(--ink-60); font-size: var(--fs-s); font-weight: 600; }
.list-value { font-weight: 600; }
.summary { margin-top: var(--s-6); }

.cards { display: grid; gap: var(--s-3); }
.card { position: relative; display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); border-radius: var(--radius-l); border: 1.5px solid var(--ink-15); background: var(--paper); text-align: left; }
.card p { margin: 0; }
.card-link { text-decoration: none; cursor: pointer; width: 100%; font: inherit; transition: border-color 0.12s; }
.card-link:hover { border-color: var(--ink); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.card-title { font-size: var(--fs-l); }
.card-title.big { font-size: var(--fs-2xl); letter-spacing: var(--ls-title); }
.card.chosen { border: 2px solid var(--ink); }
.chevron { position: absolute; right: 18px; bottom: 16px; font-size: var(--fs-3xl); opacity: 0.4; letter-spacing: var(--ls-title); }
.price { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: var(--ls-title); }
.quote-msg { padding: var(--s-3) var(--s-4); border-radius: var(--radius-s); background: var(--ink-04); }
.quote .btn, .chosen .btn { margin-top: var(--s-2); }
.distance { font-weight: 800; white-space: nowrap; }
.contact { margin-top: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--ink-08); display: grid; gap: var(--s-2); }

.badge { color: var(--ink); display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--s-3); border-radius: 999px; border: 1.5px solid var(--ink); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; vertical-align: middle; }
.badge.is-solid { background: var(--ink); color: var(--paper); }

/* 진행 단계 */
.steps { list-style: none; padding: 0; margin: var(--s-5) 0 var(--s-2); display: grid; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--s-2); text-align: center; font-size: var(--fs-s); color: var(--ink-60); }
.step::before { content: ''; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: var(--ink-15); z-index: 0; }
.step:first-child::before { display: none; }
.step.is-done::before, .step.is-now::before { background: var(--ink); }
.step-dot { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink-15); background: var(--paper); }
.step.is-done .step-dot { background: var(--ink); border-color: var(--ink); }
.step.is-now .step-dot { border: 6px solid var(--ink); }
.step.is-now, .step.is-done { color: var(--ink); font-weight: 700; }

/* 완료 화면 */
.done-mark { width: 88px; height: 88px; margin: 0 auto; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; }
.ticket { display: flex; justify-content: space-between; align-items: center; padding: var(--s-5) var(--s-5); border-radius: var(--radius); border: 2px solid var(--ink); text-align: left; }
.ticket-no { font-size: var(--fs-2xl); letter-spacing: var(--ls-wide); }
.save-link { margin-top: var(--s-3); display: grid; gap: var(--s-2); }
.save-link p { margin: 0; font-size: var(--fs-s); }
.url { display: block; padding: var(--s-3); border-radius: var(--radius-s); background: var(--ink-04); font-size: var(--fs-xs); word-break: break-all; }

/* 업체 화면 */
.board-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); margin-bottom: var(--s-5); }
.board-head .title { margin-bottom: var(--s-1); }
.board-head > .btn { flex: none; white-space: nowrap; min-height: 52px; }
.board-head p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1); }
.tabs { margin-bottom: var(--s-5); max-width: 520px; }

/* 시트 */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); opacity: 0; transition: opacity 0.2s; }
.sheet-panel { position: relative; width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; background: var(--paper); border-radius: var(--radius-l) var(--radius-l) 0 0; padding: 0 var(--s-5) calc(var(--s-6) + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform 0.25s var(--ease); }
.sheet.is-open .sheet-backdrop { opacity: 1; }
.sheet.is-open .sheet-panel { transform: none; }
.sheet-head { position: sticky; top: 0; background: var(--paper); display: flex; justify-content: space-between; align-items: center; padding: var(--s-5) 0 var(--s-3); z-index: 1; }
.sheet-title { font-size: var(--fs-xl); letter-spacing: var(--ls-title); }
.sheet-close { min-height: 44px; padding: 0 var(--s-4); border-radius: 999px; border: 1.5px solid var(--ink); background: var(--paper); font-weight: 700; cursor: pointer; }

/* 알림 */
.toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 60; background: var(--ink); color: var(--paper); padding: var(--s-4) var(--s-6); border-radius: 999px; font-weight: 700; transition: all 0.2s var(--ease); max-width: 90vw; text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 운영 표 */
.table-wrap { overflow-x: auto; border: 1.5px solid var(--ink-15); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
.table th, .table td { padding: var(--s-3) var(--s-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--ink-08); }
.table th { font-size: var(--fs-xs); color: var(--ink-60); background: var(--ink-04); white-space: nowrap; }
.table .btn { min-height: 44px; font-size: var(--fs-s); padding: var(--s-2) var(--s-3); }

/* ---------- PC (넓은 화면) ---------- */
@media (min-width: 720px) {
  .grid-choices { grid-template-columns: repeat(3, 1fr); }
  .cards.grid { grid-template-columns: repeat(2, 1fr); }
  .partner-cta { grid-template-columns: 1fr 280px; align-items: center; }
  .partner-cta .photo-partner { grid-column: 1 / -1; }
  .partner-cta .photo-partner img { aspect-ratio: 21 / 8; object-position: center 65%; }
  .photo-where { max-width: 720px; }
  .howto { grid-template-columns: repeat(3, 1fr); }
  .howto-item { flex-direction: column; }
  .sheet { align-items: center; }
  .sheet-panel { border-radius: var(--radius-l); transform: translateY(24px) scale(0.98); opacity: 0; transition: all 0.2s var(--ease); }
  .sheet.is-open .sheet-panel { opacity: 1; transform: none; }
}
@media (min-width: 960px) {
  .screen { padding: var(--s-12) var(--s-8) 140px; }
  .hero { grid-template-columns: 1.3fr 1fr; align-items: end; gap: var(--s-12); padding-top: var(--s-10); }
  .hero-actions { padding-bottom: var(--s-3); }
  .photo-hero img { aspect-ratio: 21 / 9; }
  .grid-choices { grid-template-columns: repeat(4, 1fr); }
  .cards.grid { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- 소개·설명서 ---------- */
.small { font-size: var(--fs-s); }
.intro-p + .intro-p { margin-top: var(--s-3); }
.who { display: grid; gap: var(--s-3); }
.who { margin-top: var(--s-5); }
.who-item { padding: var(--s-5); border-radius: var(--radius-l); background: var(--surface); }
.more { margin-top: var(--s-4); }
.toc { margin: var(--s-2) 0 var(--s-2); }
.toc .chip { display: inline-flex; align-items: center; text-decoration: none; }
.guide-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-8); }
.guide-step { display: grid; gap: var(--s-4); }
.guide-title { display: block; font-size: var(--fs-xl); margin-bottom: var(--s-1); letter-spacing: var(--ls-title); }
.guide-figure { margin: 0; }
.guide-figure img { width: 100%; max-width: 300px; height: auto; border-radius: 28px; border: 8px solid var(--ink); background: var(--paper); }
.guide-cta { margin-top: var(--s-10); }
.faq { margin-top: var(--s-3); border-top: 1px solid var(--ink-15); }
.faq-item { border-bottom: 1px solid var(--ink-15); }
.faq-q { list-style: none; cursor: pointer; min-height: var(--tap); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-1); font-weight: 700; font-size: var(--fs-l); }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 800; }
.faq-item[open] .faq-q::after { content: '−'; background: var(--ink); color: var(--paper); }
.faq-a { margin: 0 var(--s-1) var(--s-5); color: var(--ink-80); }
@media (min-width: 720px) {
  .who { grid-template-columns: 1fr 1fr; }
  .guide-step.with-images, .guide-steps.with-images .guide-step { grid-template-columns: 1fr 300px; align-items: center; gap: var(--s-10); padding: var(--s-6); border-radius: var(--radius-l); background: var(--ink-04); }
  .guide-steps.with-images { grid-template-columns: 1fr; }
}
@media (min-width: 1100px) {
  .guide-steps.with-images { grid-template-columns: 1fr 1fr; }
  .guide-steps.with-images .guide-step { grid-template-columns: 1fr 220px; gap: var(--s-6); }
}
@media (max-width: 719px) {
  .guide-figure { display: flex; justify-content: center; }
  .guide-figure img { max-width: 230px; border-width: 6px; border-radius: var(--radius-l); }
}

/* ---------- 증상 안내 ---------- */
.option.has-art { align-items: center; }
.option-art { flex: none; width: 64px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-s); background: var(--paper); border: 1.5px solid var(--ink-15); }
.option-art svg { width: 56px; height: 42px; }
.option.is-on .option-art { border-color: var(--paper); }
.option.has-art .option-text { flex: 1; }
.symptom-grid { display: grid; gap: var(--s-3); }
.symptom-card { display: grid; grid-template-columns: 88px 1fr; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-5) var(--s-4) var(--s-4); border-radius: var(--radius-l); background: var(--paper); border: 1px solid var(--ink-08); box-shadow: var(--shadow); }
.symptom-art { width: 88px; height: 88px; display: grid; place-items: center; border-radius: var(--radius); background: var(--surface); }
.symptom-art svg { width: 76px; height: 57px; }
.symptom-title { display: block; font-size: var(--fs-l); line-height: var(--lh-snug); letter-spacing: var(--ls-body); margin-bottom: var(--s-1); }
.symptom-look { margin: 0; color: var(--ink-60); font-size: var(--fs-s); line-height: var(--lh-body); }
.symptom-urgent { margin: var(--s-3) 0 0; display: flex; gap: var(--s-2); align-items: flex-start; font-weight: 700; font-size: var(--fs-s); line-height: var(--lh-snug); }
.symptom-urgent::before { content: '!'; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: var(--fs-2xs); font-weight: 900; display: grid; place-items: center; }
.plainlist { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-2); color: var(--ink-80); }
.urgent-banner { margin: 0; padding: var(--s-4) var(--s-4); border-radius: var(--radius); background: var(--ink); color: var(--paper); font-weight: 700; }
.inline-help { border-top: 1.5px solid var(--ink-15); margin-top: var(--s-2); }
.inline-help .section { margin: 0 0 var(--s-4); }
.inline-help .section-title { display: none; }
.tip { display: grid; grid-template-columns: 72px 1fr; gap: var(--s-4); align-items: center; padding: var(--s-4); border-radius: var(--radius); background: var(--surface); }
.tip p { margin: 0; font-size: var(--fs-m); }
.tip-art svg { width: 72px; height: 54px; }
@media (min-width: 720px) { .symptom-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .symptom-grid { grid-template-columns: 1fr 1fr 1fr; } }


/* ---- 11/19 발전소마켓 벤치마킹 반영: 5단계 접수, 증상 카드 바로 접수, 알림 ---- */
a.symptom-card { color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.symptom-card:hover { border-color: var(--ink); }
a.symptom-card:active { transform: scale(0.99); }
.symptom-cta { display: inline-block; margin-top: var(--s-3); font-weight: 800; font-size: var(--fs-s); text-decoration: underline; text-underline-offset: 4px; }
.field-group { display: flex; flex-direction: column; gap: var(--s-3); }
.field-group + .field-group { margin-top: var(--s-4); }
.group-label { margin: 0; font-size: var(--fs-l); font-weight: 800; line-height: var(--lh-snug); letter-spacing: var(--ls-body); }
.grid-choices.two { grid-template-columns: repeat(2, 1fr); }
.choice-tall { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-1); padding: var(--s-3) var(--s-3); min-height: 76px; text-align: center; }
.choice-label { font-weight: 800; line-height: var(--lh-snug); }
.choice-hint { font-size: var(--fs-xs); font-weight: 500; color: var(--ink-60); line-height: var(--lh-snug); }
.choice.is-on .choice-hint { color: var(--paper); opacity: 0.85; }
.age-note { margin: 0; font-size: var(--fs-m); line-height: var(--lh-body); }
.faster { padding: var(--s-4) var(--s-4); border-radius: var(--radius); background: var(--surface); }
.faster strong { display: block; margin-bottom: var(--s-2); }
.faster .plainlist { margin: 0; font-size: var(--fs-m); }
.badge-urgent { background: var(--ink); color: var(--paper); }
.alert-box { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); border-radius: var(--radius); background: var(--surface); }
.alert-box p { margin: 0; font-size: var(--fs-m); }
.sms-actions { display: flex; flex-direction: column; gap: var(--s-2); }
.privacy .table td:first-child { font-weight: 700; white-space: nowrap; }
@media (min-width: 720px) { .grid-choices.two { grid-template-columns: repeat(2, 1fr); } }

/* =====================================================================
   리퀴드 글라스 (11/19). 색은 그대로 흑백, 질감만 유리처럼.
   - 바탕에 아주 옅은 회색 빛 번짐을 깔아 유리 뒤가 비쳐 보이게 한다.
   - 상단바·아래 버튼 줄은 떠 있는 유리 알약, 카드·선택지는 반투명 유리, 검정 버튼은 검은 유리.
   - 투명도 줄이기 설정을 켠 기기는 불투명으로 돌아간다(읽기 우선).
   ===================================================================== */
body { background: #f6f6f7; }
body::before {
  content: ''; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at 12% 8%, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0) 70%),
    radial-gradient(36vmax 36vmax at 92% 18%, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0) 70%),
    radial-gradient(44vmax 44vmax at 80% 92%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
    radial-gradient(38vmax 38vmax at 6% 78%, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0) 70%),
    #f2f2f4;
}

/* 상단바: 화면 위에 떠 있는 유리 알약 */
.topbar { background: transparent; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding: calc(var(--s-2) + env(safe-area-inset-top)) var(--s-3) 0; }
.topbar-inner {
  height: 60px; padding: 0 var(--s-2) 0 var(--s-5); border-radius: 999px;
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-shine), var(--glass-shadow);
}
.topbar-size { background: rgba(255, 255, 255, 0.6); border: 1px solid var(--glass-line); box-shadow: var(--glass-shine); }
.topbar-size[aria-pressed='true'] { background: var(--ink-glass); box-shadow: var(--ink-shine); }

/* 아래 고정 버튼 줄: 떠 있는 유리 판 */
.actionbar { background: transparent; border-top: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0 var(--s-3) calc(var(--s-3) + env(safe-area-inset-bottom)); }
.actionbar-inner {
  padding: var(--s-2); border-radius: 999px;
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-shine), 0 12px 40px rgba(0, 0, 0, 0.14);
}

/* 버튼: 검정은 검은 유리, 테두리 버튼은 맑은 유리 */
.btn-primary { background: linear-gradient(180deg, rgba(40, 40, 40, 0.92), rgba(0, 0, 0, 0.94)); border-color: transparent; box-shadow: var(--ink-shine), 0 6px 18px rgba(0, 0, 0, 0.18); }
.btn-secondary { background: var(--glass-bg-strong); border: 1px solid var(--glass-line); box-shadow: var(--glass-shine), 0 2px 8px rgba(0, 0, 0, 0.05); }
.btn-secondary:hover { border-color: rgba(0, 0, 0, 0.35); }
.btn:active { transform: scale(0.97); }

/* 유리 카드 (흐림 없이 반투명 + 빛 반사: 많은 카드에서도 가볍게) */
.option, .choice, .card, .symptom-card, .pain, .howto-item, .checklist, .who-item, .partner-cta,
.list, .table-wrap, .notice, .faster, .alert-box, .tip, .ticket, .url, .quote-msg, .empty, .input, .guide-steps.with-images .guide-step {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shine), var(--glass-shadow);
}
.input { border: 1.5px solid var(--glass-line); }
.input:focus { border-color: var(--ink); box-shadow: var(--glass-shine), 0 0 0 4px rgba(0, 0, 0, 0.06); }
.option:hover, .choice:hover, .card-link:hover, a.symptom-card:hover { border-color: rgba(0, 0, 0, 0.35); }
.empty { border-style: solid; }
.ticket { border: 1.5px solid var(--ink); }
.card.chosen { border: 2px solid var(--ink); }
.symptom-art, .option-art { background: rgba(255, 255, 255, 0.7); box-shadow: var(--glass-shine); border: 1px solid var(--glass-line); }

/* 고른 것: 검은 유리 */
.option.is-on, .choice.is-on, .chip.is-on {
  background: linear-gradient(180deg, rgba(38, 38, 38, 0.94), rgba(0, 0, 0, 0.96)); border-color: transparent;
  box-shadow: var(--ink-shine), 0 8px 22px rgba(0, 0, 0, 0.2);
}
.option, .choice { transition: background 0.18s var(--ease), border-color 0.18s, box-shadow 0.18s, transform 0.12s var(--ease); }
.option:active, .choice:active { transform: scale(0.985); }

/* 탭(세그먼트): 유리 홈 위에 유리 알약 */
.segmented { background: rgba(0, 0, 0, 0.06); border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06); border-radius: 999px; }
.segment { border-radius: 999px; transition: background 0.2s var(--ease), box-shadow 0.2s; }
.segment.is-on { background: rgba(255, 255, 255, 0.92); box-shadow: var(--glass-shine), 0 3px 10px rgba(0, 0, 0, 0.12); }
.chip { background: var(--glass-bg-strong); border: 1px solid var(--glass-line); box-shadow: var(--glass-shine); }

/* 진행 막대·배지·검정 요소 */
.progress { background: rgba(0, 0, 0, 0.07); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06); }
.progress-bar { background: linear-gradient(90deg, #2a2a2a, #000); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.badge { background: rgba(255, 255, 255, 0.7); }
.badge.is-solid, .urgent-banner, .howto-num, .done-mark, .toast { background: linear-gradient(180deg, rgba(40, 40, 40, 0.94), rgba(0, 0, 0, 0.96)); box-shadow: var(--ink-shine), 0 6px 18px rgba(0, 0, 0, 0.18); }

/* 시트: 유리 판 */
.sheet-backdrop { background: rgba(0, 0, 0, 0.25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet-panel, .sheet-head { background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.sheet-panel { border: 1px solid var(--glass-edge); box-shadow: var(--glass-shine), 0 -10px 40px rgba(0, 0, 0, 0.15); }
.sheet-close { background: rgba(255, 255, 255, 0.7); border: 1px solid var(--glass-line); box-shadow: var(--glass-shine); }

/* 사진 위 이름표처럼 유리 띠 */
.photo { box-shadow: var(--glass-shadow); }
.faq-q::after { background: rgba(255, 255, 255, 0.8); box-shadow: var(--glass-shine), 0 1px 4px rgba(0, 0, 0, 0.08); }
.guide-figure img { border: 6px solid #111; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18); }
.demo-banner { background: rgba(0, 0, 0, 0.88); }

/* 유리 흐림을 못 쓰는 브라우저·투명도 줄이기 설정: 불투명으로 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar-inner, .actionbar-inner, .sheet-panel, .sheet-head { background: rgba(255, 255, 255, 0.97); }
}
@media (prefers-reduced-transparency: reduce) {
  body::before { display: none; }
  .topbar-inner, .actionbar-inner, .sheet-panel, .sheet-head, .option, .choice, .card, .symptom-card, .pain, .list, .input { background: #fff; }
}
/* 설명서 단계 카드: 폰에서도 둥근 유리 카드로 */
.guide-steps.with-images .guide-step { padding: var(--s-5); border-radius: var(--radius-l); }
@media (max-width: 719px) { .guide-steps.with-images .guide-step { padding: var(--s-5) var(--s-4) var(--s-5); } }

/* 일반 글자 크기(16px) 맞춤: 큰 제목도 한 단계 줄임 (11/19) */
.display { font-size: var(--fs-hero); letter-spacing: var(--ls-title); }
.title { font-size: var(--fs-title-s); letter-spacing: var(--ls-title); }
.section-title { font-size: var(--fs-2xl); letter-spacing: var(--ls-title); }
.topbar-inner { height: var(--tap); }
.topbar-logo { display: inline-flex; align-items: baseline; gap: var(--s-2); }
.topbar-tag { font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--ls-body); padding: var(--s-1) var(--s-2); border-radius: 999px; background: rgba(0, 0, 0, 0.06); }

/* 전국 확대(11/19): 시·도 17개는 작은 칸 4줄로 */
.grid-choices.compact { grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
.grid-choices.compact .choice { min-height: 48px; font-size: var(--fs-m); border-radius: var(--radius-s); }
@media (min-width: 720px) { .grid-choices.compact { grid-template-columns: repeat(6, 1fr); } }

/* 명판(이름표) 단계: 사진과 글자 칸을 나란히 대조 */
.plate-photo { max-height: 46vh; object-fit: contain; background: #fff; }
.plate-field.is-differ .input { background: #fff6c2; border-color: #111; border-width: 2.5px; }
.plate-field.is-differ .field-label::after { content: ' · 확인 필요'; font-weight: 700; }
.plate-alt { display: block; margin-top: var(--s-2); text-align: left; font-size: 0.95em; }
.notice.plate-warn { background: #fff6c2; border: 2px solid #111; font-weight: 600; }
.check-row { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) var(--s-4); border: 2px solid var(--ink, #111); border-radius: var(--radius); font-weight: 600; cursor: pointer; }
.check-row input { width: 24px; height: 24px; flex: none; margin-top: var(--s-1); accent-color: #111; }
.plate-cell { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: var(--ls-wide); }

/* 화면 확대 막기(ZoomGuard.js와 함께): 두 번 톡톡 확대 없음, 입력칸 눌러도 아이폰 자동 확대 없음(16px 이상) */
html, body { touch-action: pan-x pan-y; }
input, select, textarea, .input { font-size: max(16px, 1.05rem); }
.photo-preview { cursor: zoom-in; }

/* 사진 크게 보기 */
.viewer { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, 0.94); display: flex; flex-direction: column; color: #fff; }
.viewer-bar { background: #000; display: flex; align-items: center; gap: var(--s-2); padding: calc(var(--s-3) + env(safe-area-inset-top)) var(--s-3) var(--s-3); }
.viewer-btn { min-height: 48px; padding: 0 var(--s-4); border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.08); color: #fff; font-weight: 700; font-size: var(--fs-m); cursor: pointer; }
.viewer-close { margin-left: auto; background: #fff; color: #000; }
.viewer-zoom { min-width: 40px; text-align: center; font-weight: 800; }
.viewer-scroll { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; display: block; }
.viewer-img { display: block; margin: 0 auto; height: auto; }
.viewer-hint { margin: 0; padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom)); font-size: var(--fs-s); opacity: 0.75; text-align: center; }

/* 운영 화면 기사 배정 */
.assign-box { display: grid; gap: var(--s-2); min-width: 260px; }
.assign-box select.input { min-height: 44px; padding: var(--s-2) var(--s-10) var(--s-2) var(--s-3); max-width: 320px; }


/* 디자인 규칙(11/19): 제목은 줄 길이를 고르게 */
h1, h2, h3, .title, .display, .section-title, .group-label { text-wrap: balance; }

/* 방문 가능한 날: 다 골랐을 때 남은 날짜는 흐리게 */
.chip:disabled { opacity: 0.25; cursor: not-allowed; }
.field-group .hint { margin-bottom: var(--s-3); }

/* 이럴 때 막막하셨다면: 불편 한 줄 + 우리가 하는 일 */
.pain-list { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.pain { padding: var(--s-5); border-radius: var(--radius-l); display: flex; flex-direction: column; gap: var(--s-3); }
.pain-title { font-size: var(--fs-l); font-weight: 800; line-height: var(--lh-snug); letter-spacing: var(--ls-body); }
.pain-answer { margin: 0; padding: var(--s-4); border-radius: var(--radius); background: var(--paper); color: var(--ink-80); font-size: var(--fs-m); line-height: var(--lh-body); box-shadow: var(--shadow); }
.pain-answer strong { color: var(--ink); }
@media (min-width: 720px) { .pain-list { grid-template-columns: 1fr 1fr; } }

/* 확인 창: 왼쪽 닫기, 오른쪽 실행 */
.sheet-text { margin: 0; color: var(--ink-80); }
.sheet-actions { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-3); margin-top: var(--s-5); }
.sheet-confirm .sheet-head { position: static; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
