/* 샛길: AI 기반 여행 통합 플랫폼 시연 (detour). 인상: 여행 노트에 형광펜으로 그은 길 */

.dt {
  --bg: #FBFAF3;
  --surface: #FFFFFF;
  --surface-2: #F4F2E8;
  --text: #1B1730;
  --muted: #6B6780;
  --line: #E7E3D6;
  --line-strong: #CFCABA;
  --primary: #FFD21F;
  --primary-soft: #FFF4C2;
  --accent: #6B2BD9;
  --accent-ink: #5521B5;
  --accent-soft: #EFE7FC;
  --ok: #1E8E5A;
  --ok-ink: #146B43;
  --ok-soft: #E3F3EA;
  --warn: #B86E00;
  --warn-ink: #8A5200;
  --warn-soft: #FBF0DC;
  --danger: #C7372F;
  --danger-ink: #A32A23;
  --danger-soft: #FBE4E2;
  --num: "Lexend", "Pretendard Variable", Pretendard, sans-serif;
  --font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --r: 14px;
  --shadow: 0 1px 2px rgba(27, 23, 48, .06), 0 8px 22px rgba(27, 23, 48, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
.dt {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
  padding-bottom: 64px;
}
.dt.has-sheet { overflow: hidden; }
:where(.dt) :where(p, h1, h2, h3, h4, ol, ul, dl, dd, figure) { margin: 0; }
:where(.dt) :where(ol, ul) { padding: 0; list-style: none; }
:where(.dt) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.dt [hidden] { display: none !important; }
.dt :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.dt a { color: var(--accent-ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dt-num { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.dt-eyebrow { font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- 버튼·칩·배지 ---------- */
.dt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface);
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--text) !important;
  cursor: pointer; white-space: nowrap; transition: background .15s;
}
.dt-btn:hover { background: var(--surface-2); }
.dt-btn--primary { background: var(--primary); border-color: var(--text); }
.dt-btn--primary:hover { background: #FFC800; }
.dt-btn--ghost { background: transparent; }
.dt-btn--sm { min-height: 44px; padding: 0 14px; font-size: 13px; }
.dt-btn--block { width: 100%; }
.dt-btn.is-in { background: var(--surface-2); border-style: dashed; }
.dt-btn[disabled] { opacity: .45; cursor: not-allowed; }
.dt-icon-btn {
  width: 44px; height: 44px; flex: none; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); display: inline-grid; place-items: center; cursor: pointer;
}
.dt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dt-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer;
}
.dt-chip.is-on { background: var(--primary); border-color: var(--text); }
.dt-chip--cue { min-height: 28px; padding: 0 10px; font-size: 12px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); cursor: default; }
.dt-tag { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--surface-2); border-radius: 6px; padding: 0 6px; line-height: 19px; vertical-align: 1px; white-space: nowrap; }
.dt-badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; line-height: 1.3; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text); }
.dt-badge--ok { background: var(--ok-soft); color: var(--ok-ink); }
.dt-badge--danger { background: var(--danger-soft); color: var(--danger-ink); }
.dt-badge--accent { background: var(--accent-soft); color: var(--accent-ink); }
.dt-scope { display: inline-flex; align-items: center; font-family: var(--font); font-size: 11px; font-weight: 700; line-height: 16px; padding: 0 6px; border-radius: 999px; white-space: nowrap; vertical-align: 1px; }
.dt-scope--base { border: 1.5px solid var(--text); color: var(--text); background: var(--surface); }
.dt-scope--extra { border: 1.5px dashed var(--muted); color: var(--muted); background: transparent; }
.dt-src { display: inline-block; font-size: 11px; font-weight: 700; padding: 0 6px; line-height: 18px; border-radius: 4px; white-space: nowrap; }
.dt-src--map { background: var(--accent-soft); color: var(--accent-ink); }
.dt-src--tour { background: var(--ok-soft); color: var(--ok-ink); }
.dt-src--admin { background: var(--warn-soft); color: var(--warn-ink); }
.dt-src--none { background: transparent; color: var(--danger-ink); border: 1px dashed var(--danger); line-height: 16px; }
.st { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st--ok { background: var(--ok-soft); color: var(--ok-ink); }
.st--check { background: var(--warn-soft); color: var(--warn-ink); }
.st--fail { background: var(--danger-soft); color: var(--danger-ink); }

/* 1차 범위만 보기: 추가 범위 요소를 흐리게 */
.dt.is-scope-only [data-scope="추가"] { opacity: .35; filter: grayscale(1); }
.dt.is-scope-only .ad-panel[data-scope-panel="추가"] { opacity: 1; filter: none; }

/* ---------- 안내 띠·머리말 ---------- */
.dt-band {
  height: 28px; line-height: 28px; text-align: center; padding: 0 12px;
  font-size: 12px; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dt-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.dt-head__inner { max-width: 1160px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dt-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text) !important; min-width: 0; }
.dt-brand__mark { width: 30px; height: 30px; flex: none; }
.dt-brand__name { font-family: var(--num); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.dt-brand__sub { font-size: 13px; color: var(--muted); white-space: nowrap; }
.dt-head__tools { display: flex; align-items: center; gap: 8px; }
.dt-switch { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-size: 13px; font-weight: 700; white-space: nowrap; }
.dt-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dt-switch__track { width: 40px; height: 24px; border-radius: 12px; background: #D9D5C8; position: relative; flex: none; transition: background .15s; }
.dt-switch__thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.dt-switch input:checked + .dt-switch__track { background: var(--text); }
.dt-switch input:checked + .dt-switch__track .dt-switch__thumb { transform: translateX(16px); background: var(--primary); }
.dt-switch input:focus-visible + .dt-switch__track { outline: 3px solid var(--accent); outline-offset: 2px; }
.dt-switch--sm { font-size: 12px; }
.dt-nav { border-top: 1px solid var(--line); }
.dt-nav__inner { max-width: 1160px; margin: 0 auto; padding: 0 8px; display: grid; grid-template-columns: repeat(4, 1fr); }
.dt-nav__item {
  display: flex; align-items: center; justify-content: center; min-height: 46px; text-align: center;
  font-size: 14px; font-weight: 700; color: var(--muted) !important; text-decoration: none; position: relative;
}
.dt-nav__item.is-on { color: var(--text) !important; }
.dt-nav__item.is-on::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 0; height: 5px; border-radius: 3px 3px 0 0; background: var(--primary); box-shadow: inset 0 -1.5px 0 var(--text); }
@media (max-width: 480px) {
  .dt-brand__sub, .dt-band__long { display: none; }
  .dt-head__inner { padding: 6px 12px; }
  .dt-reset span { display: none; }
  .dt-reset { width: 44px; padding: 0; }
  .dt-nav__item { font-size: 13.5px; }
}

.dt-main { max-width: 1160px; margin: 0 auto; padding: 16px 16px 24px; }

/* ---------- 아래 범위 띠·공고 대응표 ---------- */
.dt-range {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: 52px;
  display: flex; align-items: center; justify-content: center; gap: 18px; padding: 0 16px;
  background: var(--text); color: #CFCBDB !important; text-decoration: none; font-size: 13px;
}
.dt-range__item { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.dt-range__item .dt-num { font-size: 15px; font-weight: 700; }
.dt-range__k { font-weight: 700; }
.dt-range__item.is-on { color: var(--primary); }
.dt-range__item:not(.is-on) { opacity: .7; }
.dt-range__go { color: #fff; font-weight: 700; white-space: nowrap; }
@media (max-width: 720px) {
  .dt-range { justify-content: space-between; gap: 10px; }
  .dt-range__item:not(.is-on) { display: none; }
  .dt-range__go { font-size: 12px; }
}
.dt-fab {
  position: fixed; right: 16px; bottom: 64px; z-index: 31; min-height: 44px; padding: 0 16px;
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--text); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.demo-notice { max-width: 1160px; margin: 0 auto; padding: 8px 16px 72px; font-size: 12px; color: var(--muted); }

/* ---------- 대화 상자 ---------- */
.dt-dialog { width: min(680px, calc(100% - 24px)); max-height: calc(100vh - 48px); border: none; border-radius: 20px; padding: 0; background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(27,23,48,.3); }
.dt-dialog::backdrop { background: rgba(27, 23, 48, .45); }
.dt-dialog--sm { width: min(420px, calc(100% - 24px)); }
.dt-dialog__body { padding: 20px; }
.dt-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.dt-dialog__title { font-size: 22px; font-weight: 800; }
.dt-dialog__foot { margin-top: 14px; font-size: 13px; color: var(--muted); }
.dt-map li { display: grid; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
.dt-map__need { font-size: 13px; color: var(--muted); }
.dt-map__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dt-map__show { font-weight: 700; text-decoration: none; }
.dt-info { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.dt-info__actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.dt-toast {
  position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 60;
  width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px;
  background: var(--text); color: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--shadow);
}
.dt-toast[data-tone="ok"] { border-left: 5px solid var(--primary); }

/* ---------- 시트 ---------- */
.dt-sheet { position: fixed; inset: 0; z-index: 50; }
.dt-sheet__backdrop { position: absolute; inset: 0; background: rgba(27, 23, 48, .42); }
.dt-sheet__panel {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(560px, 100%); max-height: 88vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px rgba(27,23,48,.2);
}
.dt-sheet__grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 8px auto 0; }
.dt-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 16px 8px; }
.dt-sheet__title { font-size: 18px; font-weight: 800; }
.dt-sheet__body { overflow-y: auto; padding: 0 16px 24px; display: grid; gap: 12px; }
.sh-lead { font-size: 14px; color: var(--text); }
.sh-hint { font-size: 14px; color: var(--muted); }
.sh-note { font-size: 12.5px; color: var(--muted); }
.sh-h3 { font-size: 15px; font-weight: 800; margin-top: 4px; }
.sh-h3 small { font-weight: 600; color: var(--muted); font-size: 13px; margin-left: 4px; }
.sh-best { border: 1.5px solid var(--text); border-radius: var(--r); padding: 12px; background: var(--primary-soft); display: grid; gap: 10px; }
.sh-best__k { font-size: 14px; font-weight: 800; }
.sh-pairs { display: grid; gap: 6px; font-size: 14px; }
.sh-pairs li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.sh-pairs small { color: var(--muted); font-size: 12px; }
.sh-pairs b { color: var(--accent-ink); }
.sh-compare { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 6px; font-size: 14px; background: var(--surface-2); }
.sh-compare .is-bad { color: var(--danger-ink); font-weight: 600; }
.sh-compare .dt-btn { justify-self: start; }

/* 대체 후보 카드 */
.cd { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 8px; background: var(--surface); }
.cd.is-bad { border-color: #E8B4AF; }
.cd-head { display: flex; gap: 10px; align-items: center; }
.cd-photo { width: 44px; height: 44px; border-radius: 10px; flex: none; background: var(--surface-2); position: relative; overflow: hidden; }
.cd-photo::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 3px solid var(--text); }
.cd-photo--food { background: linear-gradient(135deg, #FFE9A3, #FFD21F); }
.cd-photo--cafe { background: linear-gradient(135deg, #F1E3D3, #D9BFA2); }
.cd-photo--exhibit { background: repeating-linear-gradient(90deg, #fff 0 8px, #EFE7FC 8px 16px); }
.cd-photo--exhibit::after { border-radius: 2px; }
.cd-photo--workshop { background: linear-gradient(135deg, #F3DCCB, #D99A6C); }
.cd-photo--lounge { background: repeating-linear-gradient(0deg, #E3F3EA 0 6px, #fff 6px 12px); }
.cd-photo--lounge::after { border-radius: 3px; inset: 10px 14px; }
.cd-title { min-width: 0; }
.cd-name { font-size: 16px; font-weight: 800; }
.cd-kind { font-size: 13px; color: var(--muted); }
.cd-why { display: flex; flex-wrap: wrap; gap: 6px; }
.cd-why li { font-size: 12.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); }
.cd-why li.is-bad { background: var(--danger-soft); color: var(--danger-ink); }
.cd-why li.is-good { background: var(--ok-soft); color: var(--ok-ink); }
.cd-ratio { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; padding: 6px 8px; border: 1px dashed var(--line-strong); border-radius: 8px; }
.cd-ratio small { color: var(--muted); font-size: 12px; }
.cd-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cd-after { font-size: 12.5px; color: var(--muted); }
.cd--row { grid-template-columns: 1fr; }

/* 장소 상세 */
.dl-kind { font-size: 14px; color: var(--muted); }
.dl { display: grid; border-top: 1px solid var(--line); }
.dl-row { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dl-row dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.dl-row dd { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; }
.dl-v.is-empty { color: var(--danger-ink); font-weight: 600; }
.dl-book { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px; border: 1.5px solid var(--text); border-radius: var(--r); }
.dl-book__t { font-weight: 800; }
.dl-book__p { font-size: 13px; color: var(--muted); }
.dl-note { font-size: 12.5px; color: var(--muted); }

/* ---------- 오늘 일정 ---------- */
.hm-grid { display: grid; gap: 20px; }
.hm-phone__screen { display: grid; gap: 14px; }
.ap-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.ap-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.ap-start { font-size: 12.5px; color: var(--muted); text-align: right; }
.ap-start .dt-num { font-weight: 700; color: var(--text); font-size: 14px; }
.ap-alert {
  display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center;
  padding: 12px; border-radius: var(--r); background: var(--primary-soft); border: 1.5px solid var(--text);
}
.ap-alert .dt-btn { grid-column: 1 / -1; }
.ap-alert.is-changed { background: var(--accent-soft); border-color: var(--accent); }
.ap-alert__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); }
.ap-alert__icon--detour { color: var(--accent); }
.ap-alert__icon--ok { color: var(--ok); }
.ap-alert__k { font-size: 13px; font-weight: 700; }
.ap-alert__msg { font-size: 15px; font-weight: 800; }
@media (min-width: 420px) {
  .ap-alert { grid-template-columns: 36px 1fr auto; }
  .ap-alert .dt-btn { grid-column: auto; }
}
.ap-map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.ap-order { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: var(--surface-2); border-radius: 16px; }
.ap-order__btn { display: grid; gap: 0; text-align: left; padding: 8px 12px; min-height: 56px; border: 1.5px solid transparent; border-radius: 12px; background: transparent; cursor: pointer; }
.ap-order__btn.is-on { background: var(--surface); border-color: var(--text); box-shadow: var(--shadow); }
.ap-order__k { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ap-order__btn.is-on .ap-order__k { color: var(--text); }
.ap-order__v { font-size: 13px; }
.ap-order__v b { font-size: 17px; }
.ap-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.ap-tab { min-height: 44px; padding: 0 16px; border: none; background: none; font-size: 15px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; display: inline-flex; align-items: center; gap: 6px; }
.ap-tab.is-on { color: var(--text); border-bottom-color: var(--primary); }
.ap-sum { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.ap-sum b { color: var(--text); font-size: 15px; }
.ap-sum__diff { color: var(--accent-ink); font-weight: 600; }
.ap-undo { min-height: 44px; margin-left: 6px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--surface); color: var(--accent-ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.ap-h2 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }

.tl-list { display: grid; }
.tl { display: grid; }
.tl-leg { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 0 6px 21px; margin-left: 13px; border-left: 3px dotted var(--line-strong); font-size: 12.5px; color: var(--muted); min-height: 30px; }
.tl-leg b { color: var(--text); }
.tl-leg.is-changed { border-left: 3px solid var(--accent); }
.tl--end .tl-leg { border-left-style: solid; border-left-color: transparent; padding-left: 0; margin-left: 0; font-weight: 700; color: var(--text); }
.tl-card { display: grid; grid-template-columns: 58px 1fr; gap: 4px 10px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(27,23,48,.04); }
.tl-card.is-changed { border: 1.5px solid var(--accent); background: linear-gradient(0deg, var(--surface), var(--surface)) padding-box; }
.tl-card.is-conflict { border: 1.5px solid var(--danger); }
.tl-card.is-visited { background: var(--surface-2); }
.tl-time { display: grid; align-content: start; }
.tl-time__in { font-size: 17px; font-weight: 700; }
.tl-time small { font-size: 12px; color: var(--muted); }
.tl-body { min-width: 0; display: grid; gap: 4px; }
.tl-title { display: flex; align-items: center; gap: 6px; }
.tl-no { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--primary); border: 1.5px solid var(--text); }
.tl-card.is-changed .tl-no { background: var(--accent); color: #fff; border-color: var(--accent); }
.tl-name { border: none; background: none; padding: 0; min-height: 32px; font-size: 16px; font-weight: 800; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.tl-meta { font-size: 12.5px; color: var(--muted); }
.tl-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.tl-done { grid-column: 2; justify-self: start; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px dashed var(--line-strong); background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; margin-top: 2px; }
.tl-done.is-on { border-style: solid; border-color: var(--ok); color: var(--ok-ink); background: var(--ok-soft); }

.ap-incidents { padding-top: 6px; }
.ap-inc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ap-inc { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; gap: 2px 8px; align-items: center; text-align: left; min-height: 56px; padding: 8px 10px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; }
.ap-inc svg { grid-row: 1 / span 2; }
.ap-inc__label { font-size: 14px; font-weight: 700; }
.ap-inc .dt-scope { justify-self: start; }
.ap-inc:hover { border-color: var(--text); }
.ap-inc--toggle.is-on { background: var(--primary-soft); border-color: var(--text); }

.rc-pane { display: grid; gap: 10px; }
.rc-empty { font-size: 14px; color: var(--muted); padding: 16px; border: 1px dashed var(--line-strong); border-radius: var(--r); }
.rc { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.rc-photo { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(160deg, #FFE9A3 0 55%, #DDEDD9 55%); position: relative; overflow: hidden; }
.rc-photo span { position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); border: 2px solid var(--text); top: 14px; right: 14px; }
.rc-photo--outdoor { background: linear-gradient(180deg, #FFD9A8 0 50%, #DCE6EE 50%); }
.rc-photo--cafe { background: linear-gradient(160deg, #F1E3D3 0 60%, #D9BFA2 60%); }
.rc-photo--exhibit { background: repeating-linear-gradient(90deg, #fff 0 14px, #EFE7FC 14px 28px); }
.rc-body { display: grid; gap: 4px; align-content: start; min-width: 0; }
.rc-t { font-weight: 800; }
.rc-m { font-size: 12.5px; color: var(--muted); }
.rc-memo input { width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 10px; background: var(--bg); }
.rc-note { font-size: 12px; color: var(--muted); }

.hm-side { display: grid; gap: 16px; align-content: start; }
.hm-wide { display: none; }
.hm-wide__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hm-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: 18px; height: 0; margin-right: 5px; vertical-align: middle; }
.lg--route::before { border-top: 5px solid var(--primary); box-shadow: 0 0 0 1.5px var(--text); }
.lg--detour::before { border-top: 4px solid var(--accent); }
.lg--old::before { border-top: 2.5px dashed #9C98A8; }
.why { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 10px; }
.why-lead { font-size: 14px; }
.why-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.why-table th, .why-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.why-table thead th { font-size: 12.5px; color: var(--muted); }
.why-table td:last-child { font-weight: 700; background: var(--primary-soft); }
.why-conf { font-size: 13px; color: var(--danger-ink); display: grid; gap: 2px; }
.why-h3 { font-size: 14px; font-weight: 800; }
.why-rules { display: grid; gap: 4px; font-size: 13.5px; padding-left: 16px !important; list-style: disc !important; }
.why-note { font-size: 12.5px; color: var(--muted); }

@media (min-width: 1024px) {
  .hm-grid { grid-template-columns: 410px 1fr; gap: 32px; align-items: start; }
  .hm-phone { border: 10px solid var(--text); border-radius: 40px; background: var(--bg); box-shadow: var(--shadow); overflow: hidden; }
  .hm-phone__screen { height: 820px; overflow-y: auto; padding: 18px 14px 28px; scrollbar-width: thin; }
  .hm-side { position: sticky; top: 16px; }
  .hm-wide { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
}

/* ---------- 약도 ---------- */
.mp { display: block; width: 100%; height: auto; }
.mp-bg { fill: var(--bg); }
.mp-water { fill: #DCE6EE; }
.mp-park { fill: #DDEDD9; }
.mp-roads path { fill: none; stroke: var(--line); stroke-width: 7; stroke-linecap: round; }
.mp-rail path { fill: none; stroke: #ABA6BD; stroke-width: 2.5; stroke-dasharray: 7 3; }
.mp-station circle { fill: #fff; stroke: var(--text); stroke-width: 2; }
.mp-label text { font-family: var(--font); font-size: 10px; font-weight: 700; fill: var(--muted); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.mp-label .mp-label--area { fill: #2F6B3A; font-size: 12px; stroke: #DDEDD9; }
.mp-label .mp-label--water { fill: #4E6E86; font-size: 12px; stroke: #DCE6EE; }
.mp-route-edge { fill: none; stroke: var(--text); stroke-width: 8; stroke-linejoin: round; stroke-linecap: round; }
.mp-route { fill: none; stroke: var(--primary); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.mp-old { fill: none; stroke: #9C98A8; stroke-width: 2.5; stroke-dasharray: 5 5; stroke-linecap: round; }
.mp-detour { fill: none; stroke: var(--accent); stroke-width: 4.5; stroke-linecap: round; }
.mp-detour.is-anim { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dt-draw 1s ease-out forwards; }
@keyframes dt-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .mp-detour.is-anim { animation: none; stroke-dashoffset: 0; } }
.mp-pin circle { fill: var(--primary); stroke: var(--text); stroke-width: 2; }
.mp-pin text { font-family: var(--num); font-size: 10px; font-weight: 700; fill: var(--text); }
.mp-pin.is-changed circle { fill: var(--accent); stroke: var(--accent-ink); }
.mp-pin.is-changed text { fill: #fff; }
.mp-pin.is-conflict circle { stroke: var(--danger); stroke-width: 3; }
.mp-start rect { fill: var(--text); }
.mp-start text { font-size: 9px; font-weight: 700; fill: #fff; font-family: var(--font); }
.mp-gone circle { fill: #fff; stroke: #9C98A8; stroke-width: 2; stroke-dasharray: 2 2; }
.mp-name { font-family: var(--font); font-size: 10px; font-weight: 800; fill: var(--text); paint-order: stroke; stroke: var(--bg); stroke-width: 3.5px; }
.mp-name--gone { fill: #8E8A9C; font-weight: 600; }
.mp-layer--toilet rect { fill: #fff; stroke: #2C5D86; stroke-width: 1.5; }
.mp-layer--toilet text { font-size: 6.5px; font-weight: 800; fill: #2C5D86; font-family: var(--num); }
.mp-layer--smoke circle { stroke-width: 1.5; }
.mp-layer--smoke .smoke circle { fill: var(--warn-soft); stroke: var(--warn); }
.mp-layer--smoke .nosmoke circle { fill: var(--danger-soft); stroke: var(--danger); }
.mp-layer--smoke text { font-size: 7.5px; font-weight: 800; fill: var(--text); font-family: var(--font); }

/* ---------- 화면 머리 ---------- */
.pg-head { display: grid; gap: 6px; margin-bottom: 16px; }
.pg-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.pg-lead { font-size: 14px; color: var(--muted); max-width: 720px; }

/* ---------- 장소 저장 ---------- */
.sv-grid { display: grid; gap: 20px; }
.sv-col { display: grid; gap: 18px; align-content: start; min-width: 0; }
@media (min-width: 1024px) { .sv-grid { grid-template-columns: 1fr 360px; gap: 28px; } }
.in-card { background: var(--surface); border: 1.5px solid var(--text); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; }
.in-row { display: flex; align-items: center; gap: 10px; }
.in-upload { position: relative; cursor: pointer; }
.in-or { font-size: 13px; color: var(--muted); }
.in-link { display: flex; gap: 8px; }
.in-link input { flex: 1; min-width: 0; min-height: 44px; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 0 16px; background: var(--bg); }
.in-ex { align-items: center; }
.in-ex__k { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.in-ex .dt-chip { font-family: var(--num); font-size: 12.5px; font-weight: 500; }
.in-msg { font-size: 13.5px; font-weight: 700; color: var(--warn-ink); min-height: 0; }
.in-msg:empty { display: none; }
.in-note { font-size: 12.5px; color: var(--muted); }
.rcg-list { display: grid; gap: 12px; }
.rcg { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); border-left: 5px solid var(--ok); }
.rcg--check { border-left-color: var(--warn); }
.rcg--fail { border-left-color: var(--danger); }
.rcg-shot .shot { width: 96px; height: auto; display: block; }
.shot--img { width: 96px; height: 128px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.shot--up { width: 96px; height: 128px; border-radius: 12px; border: 1.5px dashed var(--line-strong); display: grid; place-items: center; font-size: 12px; color: var(--muted); background: var(--bg); }
.rcg-main { display: grid; gap: 8px; min-width: 0; align-content: start; }
.rcg-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rcg-title { font-size: 16px; font-weight: 800; }
.steps { display: grid; gap: 4px; font-size: 13px; }
.steps li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.steps__dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }
.steps .is-done { color: var(--text); font-weight: 600; }
.steps .is-done .steps__dot { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 2px #fff; }
.steps .is-warn { color: var(--warn-ink); font-weight: 700; }
.steps .is-warn .steps__dot { background: var(--warn); border-color: var(--warn); }
.steps .is-fail { color: var(--danger-ink); font-weight: 700; }
.steps .is-fail .steps__dot { background: var(--danger); border-color: var(--danger); }
.rcg-note { font-size: 13px; color: var(--muted); }
.rcg-place { display: grid; }
.rcg-place b { font-size: 15px; }
.rcg-place span { font-size: 12.5px; color: var(--muted); }
.rcg-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.rcg-q { font-size: 13.5px; font-weight: 700; }
.rcg-cands { display: grid; gap: 6px; }
.rcg-cand { display: grid; text-align: left; gap: 0; padding: 8px 12px; min-height: 52px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; }
.rcg-cand:hover { border-color: var(--text); background: var(--primary-soft); }
.rcg-cand span { font-size: 12.5px; color: var(--muted); }
.rcg-file { position: relative; justify-self: start; cursor: pointer; }
.rcg-search { display: flex; gap: 6px; }
.rcg-search input { flex: 1; min-width: 0; min-height: 44px; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 0 14px; background: var(--bg); }
.rcg-hits { display: grid; gap: 6px; }
.rcg-hits li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.rcg-none { color: var(--muted); font-size: 13px; }
.sv-foot { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.sv-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.sv-list { display: grid; }
.sv { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sv-name { display: grid; text-align: left; border: none; background: none; padding: 0; cursor: pointer; min-width: 0; min-height: 44px; }
.sv-name b { font-size: 14.5px; }
.sv-name span { font-size: 12px; color: var(--muted); }
.sv-empty { font-style: normal; color: var(--danger-ink); }
.co-row { display: grid; gap: 8px; }
.co { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); display: grid; gap: 2px; }
.co--ad { border: 1.5px solid var(--text); background: var(--primary-soft); }
.co-top { display: flex; gap: 6px; align-items: center; }
.co-ad { font-size: 11px; font-weight: 800; padding: 0 6px; line-height: 18px; border-radius: 4px; background: var(--text); color: #fff; }
.co-t { font-weight: 800; font-size: 14.5px; }
.co-m { font-size: 12.5px; color: var(--muted); }
.dt--save .dt-fab { bottom: 128px; }
.sv-cta-wrap { position: sticky; bottom: 60px; z-index: 5; margin-top: 18px; padding-top: 8px; background: linear-gradient(180deg, rgba(251,250,243,0), var(--bg) 40%); }
.sv-cta { min-height: 52px; font-size: 15px; box-shadow: var(--shadow); }

/* ---------- 관리자 ---------- */
.ad-sum { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
@media (min-width: 900px) { .ad-sum { grid-template-columns: repeat(4, 1fr); } }
.ad-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 4px; }
.ad-tile__k { font-size: 12.5px; font-weight: 700; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ad-tile__v { font-size: 22px; font-weight: 700; }
.ad-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ad-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 700; cursor: pointer; }
.ad-tab.is-on { background: var(--text); color: #fff; border-color: var(--text); }
.ad-tab.is-on .dt-scope--base { background: var(--primary); }
.ad-tab.is-on .dt-scope--extra { color: #CFCBDB; border-color: #CFCBDB; }
.ad-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 12px; }
.ad-tools { display: flex; justify-content: flex-end; }
.ad-h2 { margin: 6px 0 0; }
.ad-note { font-size: 12.5px; color: var(--muted); }
.tb { width: 100%; border-collapse: collapse; font-size: 14px; }
.tb th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 700; padding: 8px; border-bottom: 1.5px solid var(--line-strong); white-space: nowrap; }
.tb td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tb .num { text-align: right; }
.tb-url { font-family: var(--num); font-size: 12.5px; color: var(--muted); }
.tb-muted { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .tb thead { display: none; }
  .tb, .tb tbody, .tb tr, .tb td { display: block; width: 100%; }
  .tb tr { border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; margin-bottom: 8px; background: var(--surface); }
  .tb td { position: relative; min-height: 36px; padding: 8px 0 8px 38%; border-bottom: 1px dashed var(--line); text-align: right; }
  .tb td:last-child { border-bottom: none; }
  .tb td::before { content: attr(data-label); position: absolute; left: 0; top: 9px; width: 36%; font-size: 12px; font-weight: 700; color: var(--muted); text-align: left; }
  .tb .num { text-align: right; }
}
.fl-list { display: grid; gap: 8px; }
.fl { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
@media (min-width: 760px) { .fl { grid-template-columns: 240px 1fr; align-items: center; } }
.fl-k { display: grid; }
.fl-k span { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.fl-form { display: flex; gap: 6px; }
.fl-form input { flex: 1; min-width: 0; min-height: 44px; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 0 12px; background: var(--bg); }
.fl-form.is-done input { border-color: var(--ok); background: var(--ok-soft); }
.bn-grid { display: grid; gap: 10px; }
@media (min-width: 760px) { .bn-grid { grid-template-columns: 1fr 1fr; } }
.bn { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px; border-radius: 12px; border: 2px solid var(--text); }
.bn--adsense { border: 2px dashed var(--muted); background: var(--surface-2); }
.bn-img { border-radius: 8px; min-height: 80px; display: grid; place-items: center; text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 6px; background: repeating-linear-gradient(45deg, var(--primary-soft) 0 8px, #fff 8px 16px); }
.bn--adsense .bn-img { background: repeating-linear-gradient(45deg, #ECEAF1 0 8px, #fff 8px 16px); }
.bn-body { display: grid; gap: 4px; min-width: 0; }
.bn-top { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bn-kind { font-size: 12px; font-weight: 800; }
.bn-t { font-weight: 800; }
.bn-m, .bn-stat { font-size: 12.5px; color: var(--muted); }
.bn-stat { color: var(--text); font-weight: 600; }

/* ---------- 범위·견적 ---------- */
.sc-total { background: var(--surface); border: 1.5px solid var(--text); border-radius: var(--r); padding: 14px; display: grid; gap: 12px; margin-bottom: 20px; box-shadow: var(--shadow); }
.sc-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-figs { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 10px; }
.sc-k { font-size: 12px; font-weight: 700; color: var(--muted); }
.sc-v { font-size: 22px; font-weight: 700; }
.sc-figs > div:first-child .sc-v { font-size: 26px; }
@media (max-width: 480px) { .sc-v { font-size: 17px; } .sc-figs > div:first-child .sc-v { font-size: 20px; } }
.sc-bar { position: relative; height: 54px; margin: 0 8px; }
.sc-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 10px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); }
.sc-bar__band { position: absolute; top: 18px; height: 10px; background: var(--ok-soft); border: 1.5px solid var(--ok); border-radius: 5px; }
.sc-bar__band span { position: absolute; top: 14px; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 700; color: var(--ok-ink); white-space: nowrap; }
.sc-bar__mark { position: absolute; top: 10px; width: 0; transition: left .3s; }
.sc-bar__mark::before { content: ""; position: absolute; left: -2px; top: 0; width: 4px; height: 26px; border-radius: 2px; background: var(--text); }
.sc-bar__mark span { position: absolute; top: -12px; left: 6px; font-size: 12px; font-weight: 700; background: var(--primary); padding: 0 5px; border-radius: 4px; border: 1px solid var(--text); white-space: nowrap; }
.sc-bar__mark.is-out::before { background: var(--danger); }
.sc-bar__ticks span { position: absolute; top: 34px; transform: translateX(-50%); font-size: 11px; color: var(--muted); font-family: var(--num); white-space: nowrap; }
.sc-bar__ticks span:first-child { transform: none; }
.sc-bar__ticks span:last-child { transform: translateX(-100%); }
.sc-sub { font-size: 12.5px; color: var(--muted); }
.sc-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.vd { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 800; padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.vd--ok { background: var(--ok-soft); color: var(--ok-ink); }
.vd--cond { background: var(--warn-soft); color: var(--warn-ink); }
.vd--ext { background: var(--danger-soft); color: var(--danger-ink); }
.sc-group { font-size: 15px; font-weight: 800; margin: 16px 0 8px; }
.sc-list { display: grid; gap: 8px; }
.sc-row { display: grid; gap: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.sc-row:not(.is-on):not(.is-out) { background: var(--bg); border-style: dashed; }
.sc-row:not(.is-on):not(.is-out) .sc-main { opacity: .7; }
.sc-row.is-out { background: var(--surface-2); }
@media (min-width: 760px) { .sc-row { grid-template-columns: 1fr 260px; align-items: center; } }
.sc-main { display: grid; gap: 4px; min-width: 0; }
.sc-name { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14.5px; }
.sc-cond { font-size: 13px; color: var(--muted); }
.sc-details { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; }
.vd-dot::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: 0; }
.vd-dot--ok::before { background: var(--ok); }
.vd-dot--cond::before { background: var(--warn); }
.vd-dot--ext::before { background: var(--danger); }
.sc-side { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sc-amt { display: grid; text-align: right; }
.sc-amt .dt-num { font-size: 16px; font-weight: 700; }
.sc-amt small { font-size: 12px; color: var(--muted); }
.sc-act { display: flex; align-items: center; gap: 8px; }
.sc-fixed { font-size: 12.5px; font-weight: 700; color: var(--muted); min-width: 64px; text-align: center; }
.sc-go { font-size: 13px; font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 759px) { .sc-side { flex-direction: row-reverse; } .sc-amt { text-align: right; } }
.sc-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.sc-cost { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; }
.sc-users { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sc-users__k { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.sc-assume { font-size: 12.5px; color: var(--muted); }
.ch { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 0 6px; line-height: 19px; border-radius: 5px; margin-right: 4px; }
.ch--meter { background: var(--accent-soft); color: var(--accent-ink); }
.ch--free { background: var(--warn-soft); color: var(--warn-ink); }
.ch--public { background: var(--ok-soft); color: var(--ok-ink); }
.sc-maint { border-top: 1px solid var(--line); padding-top: 6px; }
.sc-mlist { display: grid; gap: 4px; font-size: 14px; }
.sc-final { margin-top: 16px; font-size: 14px; font-weight: 700; }

.sc-mini {
  position: sticky; top: 0; z-index: 4; margin: -10px 0 16px; padding: 8px 14px; min-height: 44px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13.5px;
  background: var(--text); color: #fff; border-radius: 0 0 12px 12px;
}
.sc-mini b { color: var(--primary); font-size: 16px; }
@media (max-width: 480px) { .rcg, .rc { grid-template-columns: 76px minmax(0, 1fr); } .rcg-shot .shot, .shot--img, .shot--up { width: 76px; } .shot--img, .shot--up { height: 101px; } }
