:root {
  --teal: #0d7377;
  --teal-dark: #0a5457;
  --teal-light: #14a3a8;
  --app-max: 560px;   /* 콘텐츠 최대 너비 (반응형) */
  --lake: #e6f4f4;
  --ink: #16343a;
  --muted: #5b7378;
  --line: #d4e6e6;
  --bg: #f2f8f8;

  /* 상태 5종 색 */
  --c-green: #1f9d55;     /* 받을 수 있음 */
  --c-green-bg: #e3f6ec;
  --c-orange: #e07b00;    /* 지금 해야 함 */
  --c-orange-bg: #fdf0db;
  --c-red: #d64545;       /* 놓칠 수 있음 */
  --c-red-bg: #fbe6e6;
  --c-gray: #6b7c80;      /* 확인 필요 */
  --c-gray-bg: #eef2f2;
  --c-off: #9aa8aa;       /* 해당 없음 */
  --c-off-bg: #f4f6f6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

/* 상단바 */
.topbar {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: #fff;
  padding: 20px 20px 18px;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
/* 넓은 화면: 상단바 안쪽 내용을 중앙 콘텐츠 폭에 맞춘다 */
@media (min-width: 600px) {
  .topbar {
    padding-left: max(20px, calc((100% - var(--app-max)) / 2));
    padding-right: max(20px, calc((100% - var(--app-max)) / 2));
  }
}
.settings-btn {
  background: rgba(255,255,255,0.18);
  border: 0;
  color: #fff;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}
.settings-btn:active { background: rgba(255,255,255,0.3); }
.brand { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.tagline { font-size: 13px; opacity: 0.92; margin-top: 4px; }

/* 본문 */
#app {
  max-width: var(--app-max);
  margin: 0 auto;
  padding: 18px 16px 110px;
}
@media (min-width: 600px) {
  #app { padding-bottom: 120px; }   /* 떠 있는 탭바(bottom:16px)에 안 가리게 */
}
.tab-panel { animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.panel-title { font-size: 22px; font-weight: 800; margin: 4px 0 2px; }
.panel-sub { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.section-h { font-size: 16px; font-weight: 700; margin: 24px 0 10px; color: var(--teal-dark); }

/* 폼 */
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.field > span { font-weight: 600; color: var(--ink); }
.unit-hint { font-style: normal; font-weight: 600; color: var(--teal); font-size: 12px; margin-left: 6px; }
.field input[type="number"],
.field input[type="text"],
.field select {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,115,119,0.12);
}
.field.toggle {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
}
.field.toggle > span { font-weight: 500; flex: 1; padding-right: 10px; }
.field.toggle input[type="checkbox"] {
  width: 20px; height: 20px; accent-color: var(--teal); flex-shrink: 0;
}
.field-group { display: flex; flex-direction: column; gap: 12px; }
[data-show] { }

.btn-primary {
  margin-top: 8px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--teal);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary:active { background: var(--teal-dark); }

/* 요약 카드 */
.summary-card {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: #fff;
  border-radius: 18px;
  padding: 22px 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(13,115,119,0.22);
}
.summary-amount-label { font-size: 13px; opacity: 0.9; }
.summary-amount { font-size: 38px; font-weight: 800; margin: 4px 0 8px; letter-spacing: -1px; }
.summary-range {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.16);
  border-radius: 10px; padding: 8px 12px; margin-bottom: 10px;
  font-size: 13px;
}
.summary-range .range-item { opacity: 0.95; }
.summary-range strong { font-size: 15px; font-weight: 800; }
.summary-range .range-sep { opacity: 0.7; }
.summary-todo { font-size: 14px; opacity: 0.95; }
.summary-todo strong { font-size: 18px; }

/* 혜택 카드 */
.benefit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}
.benefit-card .bc-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
}
.benefit-card .bc-name { font-size: 16px; font-weight: 700; }
.benefit-card .bc-amount {
  font-size: 24px; font-weight: 800; margin: 10px 0 6px; color: var(--teal-dark);
  letter-spacing: -0.5px;
}
.benefit-card .bc-amount.zero { color: var(--c-off); }
.benefit-card .bc-step { font-size: 13px; color: var(--ink); line-height: 1.5; }
.benefit-card .bc-reason { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 6px; }
.benefit-card .bc-source {
  font-size: 11px; color: var(--muted); margin-top: 10px;
  padding-top: 8px; border-top: 1px dashed var(--line);
}

/* 상태 칩 */
.chip {
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  white-space: nowrap; flex-shrink: 0;
}
.chip.green  { color: var(--c-green);  background: var(--c-green-bg); }
.chip.orange { color: var(--c-orange); background: var(--c-orange-bg); }
.chip.red    { color: var(--c-red);    background: var(--c-red-bg); }
.chip.gray   { color: var(--c-gray);   background: var(--c-gray-bg); }
.chip.off    { color: var(--c-off);    background: var(--c-off-bg); }

.empty-hint { color: var(--muted); text-align: center; padding: 30px 0; font-size: 14px; }

/* 퀘스트 */
.quest-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; margin-bottom: 16px;
}
.quest-head { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; }
.quest-head span:last-child { color: var(--teal); font-size: 13px; }
.progress { height: 8px; background: var(--lake); border-radius: 999px; margin: 10px 0 12px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--teal); transition: width 0.3s; }
.quest-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.quest-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.quest-list input { width: 18px; height: 18px; accent-color: var(--teal); margin-top: 1px; flex-shrink: 0; }
.quest-list .q-done { text-decoration: line-through; color: var(--muted); }

/* 일자리 */
.fixed-notice {
  background: var(--c-orange-bg); color: var(--c-orange);
  padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; margin: 0 0 8px;
}
.field-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 10px; overflow: hidden;
}
.field-card .fc-head {
  display: flex; align-items: center; gap: 10px; padding: 15px 16px; cursor: pointer;
  font-weight: 700; font-size: 16px;
}
.field-card .fc-emoji { font-size: 22px; }
.field-card .fc-arrow { margin-left: auto; color: var(--muted); transition: transform 0.2s; }
.field-card.open .fc-arrow { transform: rotate(180deg); }
.fc-titles { display: flex; flex-direction: column; gap: 1px; }
.fc-name { font-weight: 700; font-size: 15px; }
.fc-short { font-size: 12px; color: var(--muted); font-weight: 500; }
.field-card .fc-body { padding: 0 16px 16px; font-size: 13px; line-height: 1.6; display: none; }
.field-card.open .fc-body { display: block; }
.field-card .fc-body dt { font-weight: 700; color: var(--teal-dark); margin-top: 8px; }
.field-card .fc-body dd { margin: 2px 0 0; color: var(--ink); }
.field-card .fc-note { color: var(--c-orange); font-size: 12px; margin-top: 8px; }
.fc-budget-btn {
  margin-top: 12px; width: 100%; padding: 11px; border: 0; border-radius: 10px;
  background: var(--lake); color: var(--teal-dark); font-weight: 700; cursor: pointer;
}

.channel-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; margin-bottom: 8px;
}
.channel-card .ch-name { font-weight: 700; margin-bottom: 3px; }
.channel-card .ch-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }

.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist li {
  display: flex; gap: 10px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 14px;
}
.checklist input { width: 20px; height: 20px; accent-color: var(--teal); flex-shrink: 0; }
.checklist .c-done { text-decoration: line-through; color: var(--muted); }

/* 생활 진단 결과 */
.budget-result {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; margin-top: 16px;
}
.budget-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; color: var(--muted); }
.budget-row strong { color: var(--ink); font-weight: 700; }
.budget-leftover {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line);
}
.budget-leftover span { font-weight: 700; }
.budget-leftover strong { font-size: 30px; font-weight: 800; color: var(--teal-dark); letter-spacing: -1px; }
.budget-verdict {
  margin-top: 12px; text-align: center; font-weight: 800; font-size: 18px;
  padding: 10px; border-radius: 10px;
}
.budget-verdict.v-rich { color: var(--c-green); background: var(--c-green-bg); }
.budget-verdict.v-ok { color: var(--teal); background: var(--lake); }
.budget-verdict.v-tight { color: var(--c-red); background: var(--c-red-bg); }
.budget-formula { margin-top: 10px; font-size: 12.5px; color: var(--ink); text-align: center; line-height: 1.5; }
.budget-subnote { margin-top: 4px; font-size: 11.5px; color: var(--muted); text-align: center; }
.footnote { font-size: 11px; color: var(--muted); margin: 10px 2px 0; line-height: 1.5; }

/* 타임라인 */
.timeline-slider { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.timeline-slider span { font-weight: 700; color: var(--teal); }
.timeline-slider input[type="range"] { width: 100%; accent-color: var(--teal); }
.timeline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.timeline-col { border-radius: 14px; padding: 16px 14px; }
.timeline-col.seoul { background: #eceff3; }
.timeline-col.chuncheon { background: var(--lake); }
.timeline-title { font-weight: 700; font-size: 14px; }
.timeline-amount { font-size: 22px; font-weight: 800; margin: 8px 0; letter-spacing: -0.5px; }
.timeline-col.chuncheon .timeline-amount { color: var(--teal-dark); }
.timeline-col.chuncheon .timeline-amount.minus { color: var(--c-red); }
.timeline-log { list-style: none; padding: 0; margin: 0; font-size: 11px; color: var(--muted); }
.timeline-log li { margin-top: 4px; }
.timeline-log li.incentive { color: var(--c-green); font-weight: 700; }

/* 하단 탭바 */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; background: #fff; border-top: 1px solid var(--line);
  max-width: var(--app-max); margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 20;
}
.tab-btn {
  flex: 1; border: 0; background: none; padding: 10px 0 12px;
  font-size: 11px; color: var(--muted); display: flex; flex-direction: column;
  align-items: center; gap: 3px; cursor: pointer; font-weight: 600;
  position: relative;
  min-height: 56px;                 /* 터치 영역 확보 */
  transition: color 0.15s;
}
.tab-btn span { font-size: 20px; filter: grayscale(0.4); opacity: 0.6; transition: 0.15s; }
.tab-btn.active { color: var(--teal); }
.tab-btn.active span { filter: none; opacity: 1; transform: translateY(-1px); }
/* 활성 탭 상단 인디케이터 */
.tab-btn.active::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--teal);
}

/* 넓은 화면: 하단 중앙에 떠 있는 둥근 탭바(pill) */
@media (min-width: 600px) {
  .tabbar {
    left: 50%; right: auto; transform: translateX(-50%);
    bottom: 16px;
    width: min(var(--app-max), calc(100% - 32px));
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(10, 84, 87, 0.18);
    padding: 4px;
    gap: 2px;
  }
  .tab-btn { border-radius: 14px; min-height: 52px; }
  .tab-btn.active { background: var(--lake); }
  .tab-btn.active::before { display: none; }   /* pill에서는 상단 바 대신 배경 강조 */
}

/* ═══ 모달 ═══ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(16, 52, 58, 0.5);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: #fff;
  width: 100%; max-width: 480px;
  border-radius: 20px 20px 0 0;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
  max-height: 88vh; overflow-y: auto;
  animation: slideup 0.25s ease;
}
@keyframes slideup { from { transform: translateY(100%); } to { transform: none; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-head h2 { margin: 0; font-size: 20px; font-weight: 800; }
.modal-close {
  background: var(--lake); border: 0; width: 34px; height: 34px; border-radius: 10px;
  font-size: 16px; color: var(--teal-dark); cursor: pointer;
}

.setting-block { margin-bottom: 22px; }
.setting-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }

/* 세그먼트 토글 (금액 형식) */
.segmented { display: flex; background: var(--lake); border-radius: 12px; padding: 4px; gap: 4px; }
.segmented button {
  flex: 1; border: 0; background: none; padding: 10px 6px; border-radius: 9px;
  font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.segmented button.active { background: #fff; color: var(--teal-dark); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

/* 계정 영역 */
.account-row { display: flex; flex-direction: column; gap: 10px; }
.account-name { font-size: 15px; font-weight: 700; }
.account-name span { color: var(--teal); }
.account-sub { font-size: 12px; color: var(--muted); }
.btn-line {
  padding: 11px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-weight: 700; cursor: pointer; font-size: 14px; color: var(--ink);
}
.btn-line:active { background: var(--bg); }
.btn-danger {
  padding: 11px; border: 1px solid var(--c-red); border-radius: 10px;
  background: #fff; color: var(--c-red); font-weight: 700; cursor: pointer; font-size: 14px;
}
.btn-danger:active { background: var(--c-red-bg); }

/* 인증 폼 */
.auth-error {
  background: var(--c-red-bg); color: var(--c-red); font-size: 13px; font-weight: 600;
  padding: 10px 12px; border-radius: 10px; margin: 0;
}
.auth-switch { text-align: center; font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.linklike { background: none; border: 0; color: var(--teal); font-weight: 700; cursor: pointer; font-size: 13px; }

/* 구직 관리 */
.jobsearch-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.jobsearch-item .js-name { flex: 1; font-weight: 600; font-size: 14px; }
.jobsearch-item .js-check {
  display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); cursor: pointer;
}
.jobsearch-item .js-check input { width: 18px; height: 18px; accent-color: var(--teal); }
.jobsearch-item .js-noint input { accent-color: var(--c-gray); }
.jobsearch-summary { font-size: 13px; color: var(--muted); margin-top: 4px; padding: 0 2px; }

/* 채용공고(예시) */
.posting-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.posting-filter button {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.posting-filter button.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.posting-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; margin-bottom: 10px;
}
.posting-card .pc-top { display: flex; align-items: flex-start; gap: 10px; }
.posting-card .pc-emoji {
  font-size: 22px; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--lake);
  display: flex; align-items: center; justify-content: center;
}
.posting-card .pc-head { flex: 1; min-width: 0; }
.posting-card .pc-company { font-size: 12px; color: var(--muted); }
.posting-card .pc-title { font-size: 15px; font-weight: 700; margin: 2px 0 6px; }
.posting-card .pc-type {
  font-size: 11px; font-weight: 700; color: var(--teal-dark); background: var(--lake);
  padding: 3px 8px; border-radius: 999px; white-space: nowrap; flex-shrink: 0;
}
.posting-card .pc-meta { font-size: 12.5px; color: var(--ink); line-height: 1.6; }
.posting-card .pc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0; }
.posting-card .pc-tag { font-size: 11px; color: var(--muted); background: var(--bg); border-radius: 6px; padding: 3px 7px; }
.posting-card .pc-actions { display: flex; gap: 8px; margin-top: 10px; }
.posting-card .pc-btn {
  flex: 1; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 12.5px; font-weight: 700; padding: 8px; border-radius: 9px; cursor: pointer;
}
.posting-card .pc-btn.on { border-color: var(--teal); color: var(--teal); background: var(--lake); }
.posting-card .pc-btn.applied.on { border-color: var(--c-green); color: var(--c-green); background: var(--c-green-bg); }
.posting-card.recommended { border-color: var(--teal); box-shadow: 0 2px 10px rgba(13,115,119,0.12); }
.posting-card .pc-rec {
  display: inline-block; font-size: 11.5px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  padding: 4px 10px; border-radius: 999px; margin-bottom: 8px;
}
.posting-tip {
  font-size: 12.5px; color: var(--teal-dark); background: var(--lake);
  padding: 10px 12px; border-radius: 10px; margin: 0 0 10px; line-height: 1.5;
}
.login-hint {
  background: var(--lake); color: var(--teal-dark); font-size: 13px;
  padding: 12px 14px; border-radius: 10px; margin-bottom: 10px; line-height: 1.5;
}
.login-hint button { margin-top: 6px; }

/* ═══ 안내 가이드 (슬라이드형) ═══ */
.guide-modal { overflow: hidden; }
.guide-viewport { overflow: hidden; width: 100%; }
.guide-track { display: flex; transition: transform 0.3s ease; }
.guide-slide { min-width: 100%; box-sizing: border-box; padding: 2px; }

.guide-visual {
  background: linear-gradient(160deg, var(--lake), #fff);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  min-height: 170px;
  display: flex; flex-direction: column; gap: 8px; justify-content: center;
  margin-bottom: 14px;
}
.guide-stitle { font-size: 17px; font-weight: 800; margin: 0 0 6px; color: var(--ink); }
.guide-sdesc { font-size: 13.5px; line-height: 1.65; color: var(--muted); margin: 0; }
.guide-sdesc b { color: var(--ink); }

/* 미니 목업 그림들 */
.mock-phone { text-align: center; padding: 10px; }
.mock-brand { font-size: 26px; font-weight: 800; color: var(--teal-dark); }
.mock-sub { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

.mock-form, .mock-result { display: flex; flex-direction: column; gap: 8px; }
.mock-field, .mock-toggle, .mock-rrow {
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 11px; font-size: 12.5px; display: flex; justify-content: space-between; align-items: center;
}
.mock-field span, .mock-toggle span, .mock-rrow span { color: var(--muted); }
.mock-field em, .mock-rrow b { font-style: normal; font-weight: 700; color: var(--ink); }
.mock-switch { width: 30px; height: 18px; border-radius: 999px; background: #cdd; position: relative; display: inline-block; }
.mock-switch.on { background: var(--teal); }
.mock-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: 0.2s; }
.mock-switch.on::after { left: 14px; }
.mock-btn { background: var(--teal); color: #fff; text-align: center; padding: 9px; border-radius: 9px; font-weight: 700; font-size: 12.5px; }

.mock-summary { background: linear-gradient(135deg, var(--teal), var(--teal-light)); color: #fff; border-radius: 12px; padding: 12px 14px; }
.mock-slabel { font-size: 11px; opacity: 0.9; }
.mock-stotal { font-size: 26px; font-weight: 800; margin: 2px 0; }
.mock-srange { font-size: 11px; background: rgba(255,255,255,0.18); border-radius: 8px; padding: 4px 8px; display: inline-block; }
.mock-benefit { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.mock-brow { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.mock-bamt { font-size: 18px; font-weight: 800; color: var(--teal-dark); margin-top: 4px; }
.mock-chip { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.mock-chip.orange { color: var(--c-orange); background: var(--c-orange-bg); }

.mock-jobrow { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.mock-jobrow em { font-style: normal; color: var(--muted); font-size: 11px; }
.mock-notice { background: var(--c-orange-bg); color: var(--c-orange); font-size: 11.5px; font-weight: 600; padding: 8px 10px; border-radius: 9px; }

.mock-seg { display: flex; background: var(--lake); border-radius: 9px; padding: 3px; gap: 3px; }
.mock-seg i { flex: 1; text-align: center; font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); padding: 7px 0; border-radius: 7px; }
.mock-seg i.on { background: #fff; color: var(--teal-dark); }
.mock-verdict { text-align: center; font-weight: 800; color: var(--teal); background: var(--lake); border-radius: 8px; padding: 7px; font-size: 13px; margin-top: 4px; }

.mock-gear { font-size: 40px; text-align: center; }
.mock-hint { background: var(--lake); color: var(--teal-dark); font-size: 12px; text-align: center; padding: 8px; border-radius: 9px; }

/* 상태 설명용 작은 점 */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 2px 0 6px; vertical-align: middle; }
.dot.green { background: var(--c-green); }
.dot.orange { background: var(--c-orange); }
.dot.red { background: var(--c-red); }
.dot.gray { background: var(--c-gray); }

/* 진행 점 */
.guide-dots { display: flex; justify-content: center; gap: 7px; margin: 16px 0 12px; }
.guide-dots .gdot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: 0.2s; }
.guide-dots .gdot.active { background: var(--teal); width: 20px; border-radius: 999px; }

.guide-nav { display: flex; gap: 10px; }
.guide-nav .btn-line { flex: 1; }
.guide-nav .btn-primary { flex: 2; margin-top: 0; }
.guide-dismiss {
  display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 12px;
  font-size: 13px; color: var(--muted); cursor: pointer;
}
.guide-dismiss input { width: 17px; height: 17px; accent-color: var(--teal); }

/* ═══ 로그인/회원가입 전체 화면 페이지 ═══ */
.auth-page {
  position: fixed;
  inset: 0;
  z-index: 200;               /* 상단바(10)·탭바·모달(100)보다 위 */
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-light) 55%, var(--lake) 140%);
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  animation: fade 0.2s ease;
}
.auth-page[hidden] { display: none; }
.auth-page-inner {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px 24px;
  box-shadow: 0 16px 40px rgba(10, 84, 87, 0.3);
}
.auth-brand { text-align: center; margin-bottom: 20px; }
.auth-logo { font-size: 32px; font-weight: 800; color: var(--teal-dark); letter-spacing: -1px; }
.auth-tagline { font-size: 13px; color: var(--muted); margin-top: 6px; }
.auth-heading { font-size: 20px; font-weight: 800; margin: 0 0 16px; color: var(--ink); }
.auth-skip {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 10px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.auth-skip:active { color: var(--teal); }
.auth-notice {
  background: var(--c-green-bg);
  color: var(--c-green);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  margin: 0 0 16px;
}

/* ═══ 토스트(스낵바) ═══ */
.toast-area {
  position: fixed;
  left: 50%;
  bottom: 84px;                 /* 하단 탭바 위 */
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 32px);
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toast-in 0.22s ease;
}
.toast.hide { animation: toast-out 0.25s ease forwards; }
.toast.success { background: var(--c-green); }
.toast.error { background: var(--c-red); }
.toast.info { background: var(--teal-dark); }
.toast .toast-ico { font-size: 15px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); } }

@media (min-width: 600px) {
  .toast-area { bottom: 92px; }
}

/* ═══ 로딩 스피너 ═══ */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(16, 52, 58, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-overlay[hidden] { display: none; }
.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255,255,255,0.5);
  border-top-color: var(--teal);
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  box-sizing: border-box;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══ 월세 실거래가 조회 ═══ */
.rent-real {
  background: var(--lake);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: -4px;
}
.rr-head { font-size: 12.5px; font-weight: 700; color: var(--teal-dark); margin-bottom: 8px; }
.rr-types { display: flex; gap: 6px; margin-bottom: 8px; }
.rr-types button {
  flex: 1; border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: 12px; font-weight: 700; padding: 7px 4px; border-radius: 8px; cursor: pointer;
}
.rr-types button.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.rr-result { font-size: 12.5px; color: var(--ink); line-height: 1.6; }
.rr-result .rr-apply {
  margin-top: 8px; width: 100%; border: 0; background: var(--teal); color: #fff;
  font-weight: 700; font-size: 12.5px; padding: 8px; border-radius: 8px; cursor: pointer;
}
.rr-result .rr-note { color: var(--muted); font-size: 11px; }
