:root {
  color-scheme: light;
  font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  color: #201d16;
  background: #f4f1e8;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
}

a { color: inherit; }

.home-page {
  display: grid;
  place-items: center;
  padding: 18px;
  background: #f5c928;
}

.phone-shell {
  width: min(100%, 390px);
  min-height: min(720px, calc(100vh - 36px));
  border: 2px solid #201d16;
  border-radius: 28px;
  box-shadow: 8px 8px 0 #201d16;
}

.home-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 24px;
  background: #ffe675;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 12vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.home-copy {
  margin: 18px 0 28px;
  line-height: 1.55;
}

.home-actions {
  display: grid;
  gap: 12px;
}

.route-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 18px 20px;
  border: 2px solid #201d16;
  border-radius: 18px;
  text-decoration: none;
  box-shadow: 4px 4px 0 #201d16;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.route-button:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 #201d16;
}

.route-button span { font-size: 1.3rem; font-weight: 900; }
.route-button small { font-size: 0.8rem; font-weight: 700; }
.route-new { background: #73b7ff; }
.route-existing { background: #ff9fc6; }
.route-quick { background: #ffe07a; }
.route-interview { background: #7ee0c3; }


.text-link {
  font-size: 0.9rem;
  font-weight: 800;
  text-underline-offset: 4px;
}
.home-links { display: flex; justify-content: center; gap: 18px; margin-top: 24px; }

@media (max-width: 430px) {
  .home-page { padding: 0; }
  .phone-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

.landing-page {
  min-height: 100vh;
  padding: 18px;
}

.landing-new { background: #79baff; }
.landing-existing { background: #ffa6ca; }

.form-shell {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 22px 18px 28px;
  border: 2px solid #201d16;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.91);
  box-shadow: 7px 7px 0 #201d16;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.back-link, .db-link {
  font-size: 0.875rem;
  font-weight: 800;
  text-underline-offset: 3px;
}

.landing-title {
  margin: 0 0 6px;
  font-size: 2rem;
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.landing-intro {
  margin: 0 0 22px;
  color: #5b554a;
  line-height: 1.5;
}

.prototype-note {
  margin: 0 0 20px;
  padding: 10px 12px;
  border: 1px solid #201d16;
  border-radius: 10px;
  background: #fff7c9;
  font-size: 0.82rem;
  line-height: 1.45;
}

.form-grid { display: grid; gap: 15px; }

.field { display: grid; gap: 7px; }
.field label, .field legend { font-weight: 850; line-height: 1.35; }
.field legend { padding: 0; }

input, select, textarea, button { font: inherit; }

input[type="text"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1.5px solid #201d16;
  border-radius: 10px;
  background: #fff;
  color: #201d16;
}

textarea { min-height: 78px; resize: vertical; }

.consent-box {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid #7b7467;
  border-radius: 12px;
  background: #fff;
}

.check-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.check-row input { width: 20px; height: 20px; margin: 0; }

.submit-button {
  min-height: 54px;
  margin-top: 4px;
  border: 2px solid #201d16;
  border-radius: 12px;
  background: #201d16;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.tracking-code {
  overflow-wrap: anywhere;
  margin: 18px 0 0;
  color: #665f53;
  font-size: 0.75rem;
  line-height: 1.4;
}

dialog {
  width: min(calc(100% - 32px), 360px);
  padding: 22px;
  border: 2px solid #201d16;
  border-radius: 18px;
  box-shadow: 7px 7px 0 #201d16;
}

dialog::backdrop { background: rgba(20, 18, 14, 0.56); }
dialog h2 { margin-top: 0; }
.dialog-message { margin: 0 0 18px; font-weight: 700; line-height: 1.55; }
.dialog-actions { display: grid; gap: 8px; }
.dialog-actions a, .dialog-actions button {
  display: block;
  padding: 12px;
  border: 1.5px solid #201d16;
  border-radius: 10px;
  background: #fff;
  color: #201d16;
  text-align: center;
  text-decoration: none;
  font-weight: 850;
}

.members-page { background: #e9edf2; padding: 22px; }
.members-shell { width: min(100%, 1500px); margin: 0 auto; }
.members-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.members-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.members-meta { margin: 8px 0 0; color: #555; }
.table-card {
  height: calc(100vh - 190px);
  min-height: 440px;
  overflow: auto;
  border: 2px solid #201d16;
  border-radius: 14px;
  background: #fff;
  box-shadow: 5px 5px 0 #201d16;
}
.member-table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.member-table th, .member-table td {
  max-width: 230px;
  padding: 10px 11px;
  border-right: 1px solid #cdc8bd;
  border-bottom: 1px solid #cdc8bd;
  vertical-align: top;
  white-space: nowrap;
}
.member-table th:nth-child(6),
.member-table td:nth-child(6) {
  width: 390px;
  min-width: 390px;
  max-width: none;
}
.member-table th { position: sticky; top: 0; z-index: 1; background: #201d16; color: #fff; text-align: left; }
.member-table tbody tr:last-child td { border-bottom: 2px solid #201d16; }
.empty-state { padding: 40px 20px; text-align: center; color: #666; }
.answer-cell { position: relative; overflow: visible; }
.answer-trigger {
  position: relative;
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #6aa7ef;
  border-radius: 7px;
  color: #174d91;
  background: #edf5ff;
  font-weight: 850;
  cursor: default;
}
.answer-popover {
  display: none;
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 20;
  width: 300px;
  padding: 12px;
  border: 1.5px solid #201d16;
  border-radius: 10px;
  background: #fff;
  color: #201d16;
  box-shadow: 5px 5px 0 rgba(32, 29, 22, 0.45);
  white-space: normal;
}
.answer-trigger:hover .answer-popover,
.answer-trigger:focus .answer-popover,
.answer-trigger:focus-within .answer-popover { display: block; }
.answer-card { margin-top: 8px; padding: 9px; border-radius: 8px; background: #f2f4f7; line-height: 1.5; white-space: normal; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar a, .toolbar button {
  padding: 9px 12px;
  border: 1.5px solid #201d16;
  border-radius: 9px;
  background: #fff;
  color: #201d16;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.analytics-page { min-height: 100vh; padding: 22px; background: #f4f1e8; }
.analytics-shell { width: min(100%, 1180px); margin: 0 auto; }
.analytics-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.analytics-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.analytics-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 2px solid #201d16;
  border-radius: 12px;
  background: #fff;
}
.analytics-filter label { font-weight: 900; }
.analytics-filter select { width: min(100%, 330px); min-height: 42px; }
.stat-grid { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 10px; }
.stat-grid article {
  min-height: 105px;
  padding: 15px;
  border: 2px solid #201d16;
  border-radius: 12px;
  background: #fff;
  box-shadow: 3px 3px 0 #201d16;
}
.stat-grid span { display: block; color: #666; font-size: 0.85rem; font-weight: 750; }
.stat-grid strong { display: block; margin-top: 10px; font-size: 1.8rem; }
.analytics-note { margin: 14px 0; font-weight: 800; color: #665f53; }
.analytics-panel {
  margin-top: 18px;
  padding: 18px;
  border: 2px solid #201d16;
  border-radius: 14px;
  background: #fff;
  box-shadow: 4px 4px 0 #201d16;
}
.analytics-panel h2 { margin: 0 0 6px; }
.analytics-panel > p { margin: 0 0 14px; color: #666; font-size: 0.9rem; }
.analytics-table-wrap { overflow: auto; }
.analytics-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.86rem; }
.analytics-table th, .analytics-table td { padding: 10px; border-bottom: 1px solid #d6d1c7; text-align: left; white-space: nowrap; }
.analytics-table th { background: #201d16; color: #fff; }
.analytics-table td:nth-child(2), .analytics-table td:nth-child(4), .analytics-table td:last-child { white-space: normal; }

@media (max-width: 600px) {
  .landing-page { padding: 0; }
  .form-shell { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .members-page { padding: 14px; }
  .members-head { align-items: start; flex-direction: column; }
  .analytics-page { padding: 14px; }
  .analytics-head { align-items: start; flex-direction: column; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 601px) and (max-width: 980px) {
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* ── 인터뷰 예약: 심플한 성인용 위젯 스타일 ── */
.landing-interview { background: #f3efe3; padding: 24px 16px; }
.booking-shell { width: min(100%, 760px); margin: 0 auto; }
.booking-shell.is-narrow { width: min(100%, 460px); }
.booking-card {
  padding: 26px 24px; border-radius: 10px; background: #fff;
  box-shadow: 0 10px 28px rgba(32, 29, 22, 0.10);
}
.booking-title { margin: 0 0 24px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; } /* 디자인 규칙: 제목 밑 여백은 항상 넉넉히 */
.booking-intro { margin: 0 0 20px; color: #6b6558; font-size: 0.92rem; line-height: 1.5; }
.booking-label { margin: 0 0 14px; font-size: 0.95rem; font-weight: 700; color: #201d16; }
.booking-note { min-height: 1.3em; margin: 10px 0 0; font-size: 0.85rem; font-weight: 700; color: #8a6d00; }

.booking-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 100px; padding: 14px; border: 1px solid #e7e2d3; border-radius: 8px;
  background: #faf8f2; color: #201d16; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease;
}
.pill:hover { background: #f5f0e0; }
.pill.is-selected { background: #fed567; border-color: #fed567; font-weight: 700; }
.pill-main { font-size: 0.95rem; }
.pill-sub { font-size: 0.76rem; color: #8a8271; }
.pill.is-selected .pill-sub { color: #6b5900; }
.pill-row-2 { margin-top: 8px; }
.pill-row-2 .pill { flex: 1; min-width: 0; padding: 10px; }
.pill-sm { padding: 11px 14px; font-size: 0.9rem; }
.field-row { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.field-row.is-even { grid-template-columns: 1fr 1fr; }
.gender-toggle { display: flex; gap: 6px; height: 46px; }
.gender-toggle .pill { flex: 1; min-width: 0; padding: 0; font-size: 0.85rem; }

/* ── 달력 (격자) ── */
.calendar { padding: 16px; border: 1px solid #eee7d6; border-radius: 8px; background: #faf8f2; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-label { font-weight: 700; font-size: 1rem; }
.cal-nav {
  width: 30px; height: 30px; border: 1px solid #e7e2d3; border-radius: 6px;
  background: #fff; font-weight: 700; cursor: pointer; color: #201d16;
}
.cal-nav:hover { background: #f5f0e0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-weekday { padding: 4px 0; text-align: center; font-size: 0.76rem; font-weight: 700; color: #8a8271; }
.cal-weekday.is-sun { color: #d24b3f; }
.cal-weekday.is-sat { color: #2f6fd6; }
.cal-day {
  aspect-ratio: 1; border: 0; border-radius: 6px; background: transparent;
  font-size: 0.85rem; font-weight: 600; cursor: pointer; color: #201d16;
}
.cal-day.is-sun { color: #d24b3f; }
.cal-day.is-sat { color: #2f6fd6; }
.cal-day.is-muted, .cal-day.is-past { color: #d8d2c2; cursor: default; }
.cal-day:not(:disabled):hover { background: #f0ece0; }
.cal-day.is-selected { background: #fed567; color: #6b5900; font-weight: 700; }

/* ── 폼 필드 ── */
.booking-form .field { margin-top: 16px; }
.booking-form .field:first-of-type { margin-top: 0; }
.booking-form .field label { display: block; margin-bottom: 8px; font-size: 0.82rem; font-weight: 700; }
.booking-form input[type="text"],
.booking-form input[type="tel"],
.booking-form select {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #e7e2d3; border-radius: 8px;
  background: #faf8f2; color: #201d16; font-size: 0.94rem;
}
.phone-field { display: grid; grid-template-columns: 84px 14px 1fr 14px 1fr; align-items: center; gap: 4px; }
.phone-field select, .phone-field input { min-height: 46px; padding: 10px; text-align: center; border: 1px solid #eee7d6; border-radius: 8px; background: #faf8f2; color: #201d16; font-size: 0.94rem; }
.phone-sep { text-align: center; color: #c8c2b4; }

.consent-list { margin-top: 20px; padding-top: 14px; border-top: 1px solid #eee7d6; display: grid; gap: 10px; }
.consent-row { display: flex; align-items: center; gap: 9px; font-size: 0.86rem; color: #4a4638; }
.consent-row input { width: 18px; height: 18px; margin: 0; accent-color: #fed567; }
.consent-row-all { font-weight: 700; color: #201d16; padding-bottom: 8px; border-bottom: 1px solid #eee7d6; }

.booking-submit {
  width: 100%; min-height: 54px; margin-top: 22px; border: 0; border-radius: 8px;
  background: #fed567; color: #201d16; font-size: 1rem; font-weight: 700; cursor: pointer;
}
.booking-submit:active { background: #f5c928; }

@media (max-width: 720px) {
  .booking-columns { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 430px) {
  .landing-interview { padding: 0; }
  .booking-card { border-radius: 0; min-height: 100vh; box-shadow: none; }
  .booking-shell, .booking-shell.is-narrow { width: 100%; }
}


/* ── 인터뷰예약 라우터: 글자 2개만 중앙정렬 ── */
.region-pick {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.region-pick-title {
  margin: 0 0 28px; font-family: "Dancing Script", cursive; font-size: 4rem; font-weight: 700; color: #201d16;
}
.region-pick-row { display: flex; gap: 48px; }
.region-pick-btn {
  width: 160px; height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid #e7e2d3; border-radius: 8px; background: #faf8f2;
  text-decoration: none; color: #201d16;
  box-shadow: 0 6px 18px rgba(32, 29, 22, 0.08); transition: background 120ms ease;
}
.region-pick-btn:hover { background: #fed567; border-color: #fed567; }
.region-pick-main { font-size: 1.3rem; font-weight: 700; }
.region-pick-sub { font-size: 0.85rem; font-weight: 600; color: #8a8271; }
.region-pick-btn:hover .region-pick-sub { color: #6b5900; }


/* ── 인터뷰예약 완료 팝업: 노란 배경·가운데 정렬·꿀벌 ── */
.landing-interview dialog {
  border: none; border-radius: 10px; padding: 30px 26px;
  background: #fed567; text-align: center;
  box-shadow: 0 14px 34px rgba(32, 29, 22, 0.22);
}
.landing-interview dialog::backdrop { background: rgba(32, 29, 22, 0.45); }
.landing-quick dialog {
  border: none; border-radius: 10px; padding: 30px 26px;
  background: #fed567; text-align: center;
  box-shadow: 0 14px 34px rgba(32, 29, 22, 0.22);
}
.landing-quick dialog::backdrop { background: rgba(32, 29, 22, 0.45); }
.landing-quick .dialog-bee { width: 76px; height: 76px; display: block; margin: 0 auto 14px; object-fit: contain; }
.landing-quick .dialog-message { color: #201d16; font-size: 1.02rem; }
.landing-quick .dialog-actions { display: flex; justify-content: center; }
.landing-quick .dialog-actions a {
  display: inline-block; width: auto; border: none; border-radius: 8px;
  padding: 13px 32px; background: #201d16; color: #fed567; font-weight: 700;
}
.landing-interview .dialog-bee { width: 76px; height: 76px; display: block; margin: 0 auto 14px; object-fit: contain; }
.landing-interview .dialog-message { color: #201d16; font-size: 1.02rem; }
.landing-interview .dialog-actions { display: flex; justify-content: center; }
.landing-interview .dialog-actions a {
  display: inline-block; width: auto; border: none; border-radius: 8px;
  padding: 13px 32px; background: #201d16; color: #fed567; font-weight: 700;
}


/* ── 간편신청: 카카오 이벤트 카드 느낌 ── */
.landing-quick { background: #f3efe3; padding: 24px 16px; }
.quick-shell { width: min(100%, 430px); margin: 0 auto; }
.quick-card {
  padding: 26px 22px; border-radius: 10px; background: #fff;
  box-shadow: 0 10px 30px rgba(32, 29, 22, 0.08);
}
.quick-title { margin: 0 0 20px; text-align: center; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }

.quick-brand { display: flex; align-items: center; gap: 12px; }
.quick-brand-icon { width: 42px; height: 42px; padding: 7px; border-radius: 8px; background: #fef6d8; object-fit: contain; }
.quick-brand-name { margin: 0; font-size: 0.95rem; font-weight: 700; color: #201d16; }
.quick-brand-sub { margin: 3px 0 0; font-size: 0.8rem; color: #8a8271; }

.quick-divider { height: 1px; margin: 20px 0; background: #f0ece0; }

.quick-field { margin-bottom: 16px; }
.quick-field:last-child { margin-bottom: 0; }
.quick-field label { display: block; margin-bottom: 8px; font-size: 0.82rem; font-weight: 700; color: #201d16; }
.quick-field input[type="text"], .quick-field select {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #eee7d6; border-radius: 8px;
  background: #faf8f2; color: #201d16; font-size: 0.94rem;
}

.consent-block { display: grid; gap: 0; }
.consent-all-row { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; font-weight: 700; font-size: 0.95rem; color: #201d16; cursor: pointer; }
.consent-group { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid #f0ece0; }
.consent-item-row { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: #4a4638; cursor: pointer; }
.consent-item-row b { color: #201d16; }

.landing-quick input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; min-width: 22px; margin: 0;
  border: 2px solid #e2ddc9; border-radius: 50%; background: #fff; position: relative; cursor: pointer;
}
.landing-quick input[type="checkbox"]:checked { background: #fed567; border-color: #fed567; }
.landing-quick input[type="checkbox"]:checked::after {
  content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; color: #201d16;
}

.quick-submit {
  width: 100%; min-height: 54px; margin-top: 22px; border: 0; border-radius: 8px;
  background: #fed567; color: #201d16; font-size: 1rem; font-weight: 800; cursor: pointer;
}
.quick-submit:active { background: #f5c928; }

@media (max-width: 430px) {
  .landing-quick { padding: 0; }
  .quick-card { border-radius: 0; min-height: 100vh; box-shadow: none; }
  .quick-shell { width: 100%; }
}
