:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --primary: #1f6feb;
  --primary-d: #1858bf;
  --text: #1a1a1e;
  --muted: #6b7280;
  --line: #e5e7eb;
  --ok: #15803d;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic",
    "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

/* 모바일 폭 기준, 데스크탑에서는 가운데 카드형 */
#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 16px calc(32px + env(safe-area-inset-bottom));
}

.appbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  height: calc(52px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 12px 0;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.appbar h1 { flex: 1; font-size: 17px; font-weight: 700; margin: 0; text-align: center; }
.icon-btn {
  border: none;
  background: transparent;
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--text);
}
.icon-btn:active { background: var(--bg); }

.view { display: none; }
.view.active { display: block; animation: fade 0.18s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* 홈 */
.home-hero { padding: 20px 4px 16px; }
.home-sub { margin: 0; color: var(--muted); font-size: 15px; }
.menu-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  text-align: left;
}
.menu-card:active { transform: scale(0.99); }
.menu-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.menu-text strong { font-size: 16px; letter-spacing: -0.2px; }
.menu-text span { font-size: 13px; color: var(--muted); }
.chev { font-size: 22px; color: var(--muted); font-weight: 300; }

/* 입력 */
.field { margin-bottom: 14px; }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }
.field > label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field > label small { font-weight: 400; }
.text-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 16px;
  background: var(--card);
  color: var(--text);
}
.text-input:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
select.text-input { appearance: none; }

/* 카테고리 칩 — 한 줄 가로 스크롤 (즐겨찾기 fav-bar 와 동일 패턴) */
.chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 16px 2px 0;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 16px), transparent 100%);
}
.chips::-webkit-scrollbar { display: none; }
.chips .chip { flex: 0 0 auto; white-space: nowrap; }
.quick-fill { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.quick-fill .chip { font-size: 13px; padding: 7px 12px; }
.quick-fill .chip-mini { padding: 7px 10px; color: #b91c1c; }
.quick-fill .chip-save {
  background: #fff7ed;
  border-color: #fdba74;
  color: #b45309;
  font-weight: 600;
}
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text);
}
.chip:active { background: var(--bg); }

/* 메뉴1 검색 중심(출발/도착) 세그먼티드 컨트롤 */
.anchor-toggle {
  display: flex;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 3px;
  gap: 3px;
}
.anchor-toggle .ax-opt {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 10px 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.anchor-toggle .ax-opt.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(31, 111, 235, 0.25);
}

/* 메뉴1 안내문 — 60% 폴백 시 결과 위에 보여줌 */
.result-note {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
  font-weight: 500;
}

/* 버튼 */
.primary-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-top: 6px;
}
.primary-btn:active { background: var(--primary-d); }
.primary-btn:disabled { opacity: 0.55; }
.ghost-btn {
  width: 100%;
  height: 44px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

/* place-input (자동완성) */
.place-box { position: relative; transition: box-shadow 0.15s; }
/* 빠른 입력 바가 어느 박스에 채울지 시각적으로 표시 */
.place-input.is-target .place-box {
  box-shadow: 0 0 0 2px rgba(31, 111, 235, 0.28);
  border-radius: 12px;
}
.place-box .selected {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: var(--card);
}
.place-box .selected .nm { flex: 1; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-box .selected .x { color: var(--muted); font-size: 18px; padding: 4px; }
.suggest {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 280px;
  overflow-y: auto;
}
.suggest .item { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.suggest .item:last-child { border-bottom: none; }
.suggest .item:active { background: var(--bg); }
.suggest .item .nm { font-size: 15px; font-weight: 600; }
.suggest .item .ad { font-size: 12px; color: var(--muted); }
.suggest .empty { padding: 14px; color: var(--muted); font-size: 14px; text-align: center; }

.wp-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.wp-row .place-input { flex: 1; }
.wp-row .del { color: #b91c1c; font-size: 20px; padding: 6px; }

/* 결과 */
.result { margin-top: 16px; }
.result:empty { display: none; }
.res-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.res-card.best { border-color: var(--primary); border-width: 2px; }
.res-card.clickable { cursor: pointer; transition: transform 0.05s, box-shadow 0.15s, background 0.15s; }
.res-card.clickable:active { transform: scale(0.99); }
.res-card.selected {
  background: #eef4ff;
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: 0 2px 6px rgba(31, 111, 235, 0.18), 0 8px 24px rgba(31, 111, 235, 0.1);
}
.tap-hint {
  float: right;
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
}
.res-card.selected .tap-hint { color: var(--primary); }
.res-rank { font-size: 12px; font-weight: 700; color: var(--primary); }
.res-name { font-size: 16px; font-weight: 700; margin: 2px 0; }
.res-meta { font-size: 13px; color: var(--muted); }
.res-time { font-size: 18px; font-weight: 800; color: var(--text); }
.badge { display: inline-block; background: var(--ok); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }

.map { width: 100%; height: 320px; border-radius: 14px; overflow: hidden; margin-top: 12px; border: 1px solid var(--line); }

/* 외부 길안내 앱 버튼 (지도 바로 아래, 선택한 경로 그대로 인계) */
.nav-apps { margin-top: 10px; }
.nav-apps[hidden] { display: none; }
.nav-apps .nav-apps-title {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  margin: 0 0 8px;
}
.nav-apps .nav-apps-row {
  display: flex;
  gap: 8px;
}
.nav-apps .nav-app {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.05s;
}
.nav-apps .nav-app:active { transform: scale(0.98); }
.nav-app.nav-tmap  { background: #ec1d44; color: #fff; }
.nav-app.nav-naver { background: #03c75a; color: #fff; }
.nav-app.nav-kakao { background: #ffeb00; color: #3c1e1e; }

/* 모달 */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-end;
  z-index: 50;
}
.modal-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 20px 20px 0 0;
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  animation: up 0.2s ease;
}
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.modal-card h2 { margin: 0 0 4px; font-size: 18px; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .ghost-btn { flex: 0 0 90px; color: #b91c1c; border-color: #f3c9c9; }
.modal-actions .primary-btn { flex: 1; margin-top: 0; }

.hint { font-size: 13px; color: var(--muted); margin: 10px 2px; }

.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -3px;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1e;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 100;
  max-width: 90%;
}

/* ─── 풀스크린 배경 (홈 전용) — 화려한 파스텔 블롭이 빠르게 흐름 ───── */
/* saturation 한 단계 더 올리고 alpha 65% 까지 끌어올려 색이 또렷하게 보이게.
   사이클 40s → 14s 로 단축, 블롭이 6장으로 늘어 mixing 도 더 활발. */
.weather-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  display: none;
  background:
    radial-gradient(ellipse 55% 42% at 12% 18%, #ff8fc5 0%, transparent 58%),   /* hot pink */
    radial-gradient(ellipse 45% 52% at 88% 60%, #8aabff 0%, transparent 58%),   /* azure */
    radial-gradient(ellipse 60% 45% at 50% 105%, #ffb380 0%, transparent 58%),  /* peach */
    radial-gradient(ellipse 45% 55% at 92% 8%, #c082ff 0%, transparent 58%),    /* violet */
    radial-gradient(ellipse 50% 60% at 8% 85%, #6de2d4 0%, transparent 58%),    /* aqua */
    radial-gradient(ellipse 40% 45% at 65% 35%, #ffd870 0%, transparent 55%),   /* sunshine */
    linear-gradient(135deg, #f7eeff 0%, #eef2ff 100%);
  background-size:
    220% 220%, 220% 220%, 220% 220%, 220% 220%, 220% 220%, 220% 220%, 100% 100%;
  animation: bg-shift 14s ease-in-out infinite;
}
body.home-active .weather-bg { display: block; }
@keyframes bg-shift {
  0%   { background-position: 0% 0%,    100% 100%, 50% 100%, 100% 0%,   0% 100%, 50% 0%,   0 0; }
  20%  { background-position: 60% 20%,  40% 70%,   20% 60%,  50% 40%,   40% 50%, 80% 30%,  0 0; }
  40%  { background-position: 100% 100%, 0% 0%,    100% 30%, 20% 80%,   80% 20%, 30% 70%,  0 0; }
  60%  { background-position: 30% 80%,  70% 20%,   80% 70%,  90% 60%,   20% 30%, 60% 100%, 0 0; }
  80%  { background-position: 80% 40%,  10% 80%,   40% 0%,   30% 30%,   60% 80%, 0% 50%,   0 0; }
  100% { background-position: 0% 0%,    100% 100%, 50% 100%, 100% 0%,   0% 100%, 50% 0%,   0 0; }
}

/* 홈에서는 헤더/메인 배경을 투명하게 만들어 배경이 보이게 한다 (light pastel) */
body.home-active { background: transparent; }
body.home-active .appbar {
  background: transparent;
  border-bottom: 0;
  color: var(--text);
}
body.home-active .appbar h1 { visibility: hidden; }
body.home-active .icon-btn { color: var(--text); }

/* 홈 화면 자체: #app 의 padding/max-width 를 깨고 전체를 차지 */
.view.home-screen {
  display: none;
  margin: -12px -16px calc(-32px - env(safe-area-inset-bottom));
  position: relative;
  min-height: calc(100vh - 52px - env(safe-area-inset-top));
  overflow: hidden;
  color: var(--text);
  flex-direction: column;
}
.view.home-screen.active { display: flex; }

.home-screen .home-top {
  padding: 16px 24px 0;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.home-screen .home-top .welcome-info {
  font-size: 13.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: #4a4a6a;
  margin-bottom: 8px;
  letter-spacing: -0.1px;
}
.home-screen .home-top .w-dot { color: #b5b5c8; }
.home-screen .home-top .welcome-greeting {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.7px;
  color: #1a1a2e;
}
.home-screen .home-top .welcome-sub {
  margin: 0;
  font-size: 14.5px;
  color: #5a5a7a;
  font-weight: 500;
}

/* 메뉴 카드 영역 — margin-top: auto 로 하단 고정 대신 인사말 바로 아래 붙임.
   메뉴 3장이 한 화면에 다 들어오도록. */
.home-screen .home-menus {
  margin-top: 18px;
  padding: 0 14px calc(18px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

/* 메뉴 카드: 솔리드 흰색, light 배경 위에서도 깔끔하게 떠 보이도록 */
.menu-card.glass {
  background: #ffffff;
  border: 1px solid rgba(220, 220, 240, 0.8);
  color: var(--text);
  box-shadow: 0 6px 20px rgba(80, 80, 120, 0.12);
  margin: 0;
}
.menu-card.glass .menu-text strong { color: var(--text); }
.menu-card.glass .menu-text span { color: var(--muted); }
.menu-card.glass .chev { color: var(--muted); }
/* 날씨별 특수 배경/파티클(해·달·별·비·눈·구름)은 그라데이션 단일화로 제거됨. */

/* ─── 즐겨찾기 섹션 ───────────────────────────────────── */
.fav-section {
  margin-top: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: var(--shadow);
}
.fav-header { display: flex; justify-content: space-between; align-items: center; }
.fav-header h3 { margin: 0; font-size: 15px; }
.fav-header .muted { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 4px; }
.fav-add-btn { width: auto; height: 36px; padding: 0 14px; }
.fav-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.fav-grid:empty::before {
  content: '아직 즐겨찾기가 없어요';
  color: var(--muted);
  font-size: 13px;
  padding: 8px 0;
}
/* 라벨 칩 — 탭하면 아래 폼이 열린다 (인라인 버튼 없음) */
.fav-item {
  /* <button> 기본 appearance/폰트 normalize (iOS Safari 가 회색 그라디언트 입힘) */
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  background: #f1f5fb;
  border: 1px solid #d8e3ef;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.05s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  max-width: 100%;
}
.fav-item .lbl {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.fav-item:active { transform: scale(0.97); }
.fav-item.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* 즐겨찾기 인라인 폼 */
.fav-form {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fbff;
}
.fav-form h4 { margin: 0 0 10px; font-size: 14px; }
.fav-form .form-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: stretch;
}
/* 전역 .ghost-btn / .primary-btn 에 width:100% 가 박혀 있어 flex 안에서 폭이 깨진다.
   여기선 명시적으로 width:auto + flex basis 로 잡아준다. */
.fav-form .form-actions .ghost-btn,
.fav-form .form-actions .primary-btn {
  width: auto;
  height: 44px;
  margin-top: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  padding: 0 14px;
  white-space: nowrap;
}
.fav-form .form-actions .fav-cancel-btn {
  flex: 0 0 80px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: #fff;
}
.fav-form .form-actions .fav-delete-btn {
  flex: 0 0 80px;
  color: #b91c1c;
  border: 1px solid #f3c9c9;
  background: #fff5f5;
}
.fav-form .form-actions .fav-delete-btn:active { background: #ffe1e1; }
.fav-form .form-actions .primary-btn {
  flex: 1 1 auto;
  min-width: 0;
}

/* 메뉴1·2 상단의 "빠른 입력" 컨테이너 — 라벨 + 칩 한 줄 */
.quick-fav {
  margin: -4px 0 14px;
  padding: 10px 12px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.quick-fav-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.quick-fav-bar { margin-top: 0; }
.quick-fav-empty {
  font-size: 12.5px;
  color: var(--muted);
  padding: 6px 2px;
  display: inline-block;
}

/* 검색 입력 아래에 붙는 즐겨찾기 칩 행 — 한 줄, 가로 스크롤 */
.fav-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 8px;
  /* 가로 스크롤: 칩이 많아도 텍스트박스 폭만큼만 차지 */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  /* iOS Safari 의 스크롤바를 숨겨 깔끔하게 — 손가락 스와이프로만 이동 */
  scrollbar-width: none;
  /* 짤리는 칩이 있다는 힌트로 오른쪽 끝을 살짝 페이드 */
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 16px), transparent 100%);
  padding: 2px 16px 2px 0; /* 마지막 칩이 마스크에 너무 잘리지 않도록 여유 */
}
.fav-bar::-webkit-scrollbar { display: none; }
.fav-bar .chip {
  flex: 0 0 auto;       /* 줄어들지 않고 한 줄에 그대로 */
  white-space: nowrap;
  font-size: 12.5px;
  padding: 6px 11px;
  background: #f1f5fb;
  border-color: #d8e3ef;
}
.fav-bar .chip-cur {
  background: #e8f5ee;
  border-color: #bfe3ce;
  color: #15803d;
}
.fav-bar .chip-save {
  background: #fff7ed;
  border-color: #fdba74;
  color: #b45309;
}

/* ─── 시간 픽커 (지금 / 나중에 출발) — 2-세그먼트 ───────── */
/* 두 행이 항상 같이 보이고, 활성 행만 진하게 / 비활성은 흐릿하게.
   탭하면 그 행이 활성화. 나중에 출발 탭 시 datetime picker 도 같이 팝. */
.time-pick {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.tp-seg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: opacity 0.18s ease, background 0.18s ease, filter 0.18s ease;
  font-variant-numeric: tabular-nums;
}
.tp-seg + .tp-seg { border-top: 1px solid var(--line); }
.tp-seg:not(.active) {
  opacity: 0.4;
  filter: grayscale(60%);
}
.tp-seg.active {
  background: rgba(31, 111, 235, 0.04);
}
.tp-seg-label {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -0.1px;
}
.tp-seg.active .tp-seg-label { color: var(--primary); }
.tp-seg-value {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-seg-now .tp-seg-value b {
  color: var(--primary);
  font-weight: 700;
}

/* 나중에 출발 세그먼트 안의 datetime picker — 자체 테두리/패딩 제거 */
.tp-seg-future .dt-wrap {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
  min-height: 0;
  display: flex;
  justify-content: flex-end;
  cursor: pointer;
}
.tp-seg-future .dt-display {
  width: auto;
  gap: 6px;
}
.tp-seg-future .dt-d-date,
.tp-seg-future .dt-d-time {
  font-size: 15px;
}
.tp-seg-future.active .dt-d-time { color: var(--primary); }
/* 비활성 상태에서는 네이티브 input 이 탭을 가로채지 못하게 — 그러면 세그먼트 click 으로 활성화됨 */
.tp-seg:not(.active) .dt-native { pointer-events: none; }

/* ─── 날짜/시간 픽커 (재사용) ─────────────────────────── */
/* 네이티브 input 은 투명하게 wrap 전체를 덮어 탭 영역만 차지하고,
   실제로 보이는 텍스트는 .dt-display 가 한글로 포맷해서 보여준다. */
.dt-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
  min-height: 56px;
  display: flex;
  align-items: center;
}
.dt-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.10);
}
.dt-display {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'ss01' 1;
  letter-spacing: -0.3px;
  width: 100%;
}
.dt-d-date {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.dt-d-dot {
  color: #cbd5e0;
  font-size: 13px;
  font-weight: 400;
}
.dt-d-time {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
}
.dt-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px; /* iOS 자동 줌 방지 */
  color: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.dt-native::-webkit-date-and-time-value { text-align: left; }
.dt-native::-webkit-calendar-picker-indicator { opacity: 0; }
