/* ═══════════════════════════════════════════════════════════════
   신혼여행 예약맨 — 스타일시트 (2026-09-03 디자인 토큰 정리판)
   1. 토큰   2. 프리미티브(card · chip · btn · input · icon)
   3. 레이아웃(히어로 · 내비 · 섹션)   4. 섹션별   5. 반응형   6. 다크
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. 토큰: 모래·석양·바다 팔레트 ─────────────────────────── */
:root {
  color-scheme: light;
  --page: #faf6f0;
  --surface: #fffdf9;
  --surface-2: #f4ecdf;
  --ink: #2b2320;
  --ink-2: #6b5d54;
  --muted: #857468;          /* 4.4:1 on surface — 부제·날짜·힌트 */
  --grid: #ebe2d5;
  --baseline: #d6c9b8;
  --border: rgba(84, 62, 44, 0.12);
  --shadow: 0 2px 14px rgba(120, 84, 50, 0.08);
  --shadow-hover: 0 6px 24px rgba(120, 84, 50, 0.14);

  --ocean: #0e7c74;          /* 이코노미 · 선택 · 링크 */
  --coral: #d4593d;          /* 비즈니스 · 남음 (배경·선) */
  --coral-ink: #c04a30;      /* 글자용 4.9:1 */
  --gold: #a97d1e;           /* 호텔 · 최저 (배경·선) */
  --gold-ink: #8f6a12;       /* 글자용 4.9:1 */
  --rose: #bb3b52;           /* 상승 · 긴급 · 위험 */
  --palm: #2e7d43;           /* 완료 · 하락 */

  --hero-g1: #f9d9b8; --hero-g2: #f0a983; --hero-g3: #d97f66; --hero-ink: #58281c;
  --map-sea: #eaf3f1; --map-land: #f3e3c8; --map-coast: #d8c09a;

  /* 글자 7단계 */
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 14px; --fs-lg: 16px; --fs-xl: 20px; --fs-num: 26px; --fs-big: 32px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Noto Sans KR", system-ui, -apple-system, sans-serif;
  /* 모서리 4종 */
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;
}

* { box-sizing: border-box; margin: 0; }
body {
  background: var(--page); color: var(--ink);
  font-family: var(--sans); font-weight: 400; font-size: var(--fs-md); line-height: 1.55;
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--ocean); }
:focus-visible { outline: 2px solid var(--ocean); outline-offset: 2px; border-radius: var(--r-sm); }
[hidden] { display: none !important; }
b, strong { font-weight: 700; }
small { font-size: var(--fs-xs); }
.num, .tabular { font-variant-numeric: tabular-nums; }

/* ── 2. 프리미티브 ───────────────────────────────────────────── */
/* 아이콘: 단색 라인, 글자색 상속 */
.i { width: 1.05em; height: 1.05em; vertical-align: -0.18em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.i-lg { width: 20px; height: 20px; }
.i-fill { fill: currentColor; stroke: none; }

/* 카드 */
.card, .summary-card, .dc-card, .map-card, .trip-card, .total-card, .flight-checks, .row-card, .budget-card, .ck-card, .chart-box, .ht-card, .pl-day-card, .pl-closed {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow);
}

/* 상태칩: 읽기 전용, 24px */
.chip, .bg-chip, .dc-chip, .ck-due, .sig, .hl-refund, .sm-ro, .pkg-tag, .hl-votes, .rc-date-chip {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px;
  border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; line-height: 1; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2);
}
.chip-ok, .st-fixed, .dc-chip.done, .sig-now, .sig-done, .hl-refund.ok { background: color-mix(in srgb, var(--palm) 15%, transparent); color: var(--palm); }
.chip-warn, .dc-chip.open, .ck-due.over { background: color-mix(in srgb, var(--rose) 13%, transparent); color: var(--rose); }
.chip-coral { background: color-mix(in srgb, var(--coral) 14%, transparent); color: var(--coral-ink); }
.chip-gold, .st-est, .sig-good, .ck-due.soon, .pkg-tag { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold-ink); }
.chip-ocean, .st-tracking { background: color-mix(in srgb, var(--ocean) 13%, transparent); color: var(--ocean); }
.sig-wait, .st-miles, .dc-chip.miles { background: var(--surface-2); color: var(--muted); }
.sig { cursor: help; }
.sig::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sig-done::before { display: none; }

/* 버튼: 누르는 것, 36px (작은 것 32px) */
.btn, .badge, .hl-pick, .hl-vote, .tgt-btn, .bg-pill, .sm-share, .bk-form button, .tgt-form button, .ck-tools button, .ck-add button, .ck-edit button, .ck-more, .hl-more, .pl-closed button, .map-toggle, .pl-chip, .pl-bk, .theme-btn, .pl-nav, .hl-fav, .pl-sug, .ck-box, .hl-row-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 13px; font: inherit; font-size: var(--fs-sm); font-weight: 500; line-height: 1.2;
  border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
  cursor: pointer; white-space: nowrap; transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover, .badge:hover, .hl-pick:hover, .hl-vote:hover, .ck-tools button:hover, .ck-add button:hover, .bk-form button:hover { background: var(--surface-2); }
.btn:active, .badge:active, .hl-pick:active, .hl-vote:active { transform: scale(0.97); }
.btn:disabled, .badge:disabled, .hl-pick:disabled, .hl-vote:disabled, .tgt-btn:disabled, .bg-pill:disabled, .hl-fav:disabled, .ck-box:disabled, .pl-bk:disabled { cursor: default; opacity: .6; }
.btn-primary, .ck-add button[type="submit"], .bk-form .bk-ok, .tgt-form button[type="submit"] { background: color-mix(in srgb, var(--ocean) 14%, transparent); color: var(--ocean); border-color: transparent; font-weight: 600; }
.btn-ok, .badge.done, .hl-pick.on { background: color-mix(in srgb, var(--palm) 15%, transparent); color: var(--palm); border-color: transparent; font-weight: 600; }
.badge.needed { background: color-mix(in srgb, var(--coral) 14%, transparent); color: var(--coral-ink); border-color: transparent; font-weight: 600; }
.btn-danger, .bk-form .bk-ok.danger, .ck-tools .danger { background: color-mix(in srgb, var(--rose) 12%, transparent); color: var(--rose); border-color: transparent; }
.btn-ghost, .tgt-btn, .hl-more, .map-toggle, .ck-more, .pl-sug { background: transparent; border-style: dashed; border-color: var(--baseline); }
.btn-ghost:hover, .tgt-btn:hover { border-color: var(--ocean); color: var(--ocean); }
.btn-sm, .tgt-btn, .ck-tools button, .ck-edit button, .pl-chip { min-height: 32px; padding: 0 11px; font-size: var(--fs-xs); }
.btn-icon, .theme-btn, .hl-fav, .pl-nav, .pl-sug, .ck-box { padding: 0; width: 40px; min-height: 40px; }

/* 입력 */
.input, .it-field, .bk-form input, .tgt-form input, .bg-input, .bg-select, .rate-select, .ck-add input, .ck-edit input, .hl-note-input, .ht-add {
  font: inherit; font-size: var(--fs-md); color: var(--ink); min-height: 40px; padding: 6px 12px;
  background: var(--surface-2); border: 1px solid transparent; border-radius: var(--r-sm);
  transition: border-color .15s ease, background .3s ease;
}
.input:focus, .it-field:focus, .bk-form input:focus, .tgt-form input:focus, .bg-input:focus, .bg-select:focus, .rate-select:focus, .ck-add input:focus, .ck-edit input:focus, .hl-note-input:focus, .ht-add:focus { outline: none; border-color: var(--ocean); background: var(--surface); }
.it-field::placeholder, .hl-note-input::placeholder, .ck-add input::placeholder { color: var(--muted); opacity: .7; }
.it-field.saved, .hl-note-input.saved { background: color-mix(in srgb, var(--palm) 14%, transparent); }
.it-field.save-fail { background: color-mix(in srgb, var(--rose) 16%, transparent); }
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* 등락 */
.delta { font-size: var(--fs-xs); font-weight: 600; }
.delta-down { color: var(--palm); }
.delta-up { color: var(--rose); }
.delta-flat, .delta-first { color: var(--muted); font-weight: 400; }
.divider { border: none; border-top: 1px solid var(--grid); margin: 10px 0; }

/* ── 3. 레이아웃 ─────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; text-align: center; padding: 30px 20px 50px;
  background: linear-gradient(160deg, var(--hero-g1) 0%, var(--hero-g2) 55%, var(--hero-g3) 100%); color: var(--hero-ink);
}
.hero-eyebrow { font-size: var(--fs-xs); letter-spacing: .35em; font-weight: 500; opacity: .75; margin-bottom: 6px; }
.hero-title { font-family: var(--serif); font-size: clamp(36px, 6vw, 56px); font-weight: 600; line-height: 1.1; }
.hero-title .amp { font-style: italic; font-weight: 500; opacity: .7; }
.hero-route { margin-top: 6px; font-size: var(--fs-lg); font-weight: 500; opacity: .85; }
.dot { opacity: .5; margin: 0 4px; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-wave svg { width: 100%; height: 42px; display: block; }

main { max-width: 1060px; margin: 0 auto; padding: 12px 22px 48px; }
section { margin-top: 40px; scroll-margin-top: 60px; }
.sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-head h2 { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: var(--fs-num); font-weight: 600; letter-spacing: .01em; }
.sec-head h2 .i, .sec-head h3 .i { width: 22px; height: 22px; color: var(--gold-ink); stroke-width: 1.7; }
.sec-sub { font-size: var(--fs-sm); color: var(--muted); }
.sec-head-sub { margin-top: 26px; margin-bottom: 12px; }
.sec-head-sub h3 { display: inline-flex; align-items: center; gap: 6px; font-family: var(--serif); font-size: var(--fs-xl); font-weight: 600; }

.quick-nav {
  position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 8px 14px; margin: 0 -22px; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.quick-nav::-webkit-scrollbar { display: none; }
.quick-nav a {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 13px;
  font-size: var(--fs-sm); color: var(--ink-2); text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); white-space: nowrap;
}
.quick-nav a .i { width: 15px; height: 15px; color: var(--muted); }
.quick-nav a.on { background: color-mix(in srgb, var(--hero-g2) 35%, var(--surface)); color: var(--hero-ink); border-color: transparent; font-weight: 600; }
.quick-nav a.on .i { color: var(--hero-ink); }
.theme-btn { margin-left: auto; width: 36px; min-height: 34px; }

footer { text-align: center; color: var(--muted); font-size: var(--fs-xs); padding: 20px 16px 28px; }
.toast-msg { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 50; background: var(--ink); color: var(--page); font-size: var(--fs-sm); padding: 10px 16px; border-radius: var(--r-md); box-shadow: 0 6px 24px rgba(0,0,0,.25); transition: opacity .2s, transform .2s; max-width: 90vw; text-align: center; }
.toast-msg.show { opacity: 1; transform: translate(-50%, 0); }
.toast-msg.warn { background: var(--rose); color: #fff; }
.toast-msg.ok { background: var(--palm); color: #fff; }
.tooltip { position: fixed; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: var(--r-md); padding: 7px 11px; font-size: var(--fs-xs); box-shadow: var(--shadow); z-index: 10; display: none; white-space: nowrap; }

/* ── 4. 섹션: 오늘 한눈에 ────────────────────────────────────── */
#summary-section { margin-top: 14px; }
.summary-card { padding: 16px 20px 14px; }
.sm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sm-title { font-family: var(--serif); font-size: var(--fs-num); font-weight: 600; }
.sm-actions { display: flex; gap: 8px; align-items: center; }
.sm-date { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-sm); color: var(--ink-2); margin: 2px 0 12px; }
.sm-dday { display: inline-flex; align-items: center; gap: 5px; }
.sm-dday .i { color: var(--muted); }
.sm-dday b { color: var(--ink); }
.sm-dday small { color: var(--muted); }
.sm-asof { color: var(--muted); margin-left: auto; }
.sm-hero { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r-md); background: linear-gradient(135deg, color-mix(in srgb, var(--hero-g1) 55%, var(--surface)), color-mix(in srgb, var(--hero-g2) 30%, var(--surface))); margin-bottom: 10px; }
.sm-hero-label { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 500; }
.sm-hero-value { font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: .01em; }
.sm-hero-sub { font-size: var(--fs-sm); color: var(--muted); }
.sm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sm-tile { background: var(--surface-2); border-radius: var(--r-md); padding: 12px 14px; min-height: 96px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sm-label { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .02em; }
.sm-value { font-family: var(--serif); font-size: var(--fs-num); font-weight: 600; line-height: 1.1; }
.sm-sub { font-size: var(--fs-xs); color: var(--ink-2); }
.sm-sig { margin-top: auto; padding-top: 4px; }
.sm-legend { font-size: var(--fs-xs); color: var(--muted); margin-top: 10px; display: flex; align-items: center; gap: 6px; }

/* ── 남은 결정 ─────────────────────────────────────────────── */
.dc-card { padding: 6px 18px 8px; }
.dc-progress { display: flex; align-items: center; gap: 10px; padding: 10px 0 8px; font-size: var(--fs-sm); color: var(--ink-2); white-space: nowrap; }
.dc-bar { flex: 1; height: 8px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.dc-bar .fill { height: 100%; background: linear-gradient(90deg, var(--palm), var(--ocean)); border-radius: var(--r-pill); transition: width .5s ease; }
.dc-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 2px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--grid); text-decoration: none; color: inherit; }
.dc-icon { width: 36px; height: 36px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--gold-ink); }
.dc-icon .i { width: 18px; height: 18px; }
.dc-row.done .dc-icon { color: var(--palm); background: color-mix(in srgb, var(--palm) 10%, transparent); }
.dc-name { font-size: var(--fs-md); font-weight: 600; }
.dc-main { font-size: var(--fs-sm); color: var(--ink-2); }
.dc-hint { grid-column: 2 / -1; display: flex; align-items: center; gap: 5px; font-size: var(--fs-xs); color: var(--muted); }
.dc-hint .i { color: var(--muted); }
.dc-hint.urgent { color: var(--rose); font-weight: 500; }
.dc-hint.urgent .i { color: var(--rose); }
.dc-row.done .dc-name { color: var(--ink-2); font-weight: 500; }

/* ── 지도 ──────────────────────────────────────────────────── */
#map-section { margin-top: 14px; }
.map-time { fill: var(--ink-2); font-weight: 600; }
.map-card { padding: 10px 12px 4px; overflow-x: auto; }
.map-card svg { width: 100%; min-width: 560px; height: auto; display: block; }
.map-card svg.map-m { min-width: 0; }
.map-label { font-size: 15px; font-weight: 700; fill: var(--ink); }
.map-sub { font-size: 12px; fill: var(--muted); }
.map-pill-text { font-size: 12px; font-weight: 500; fill: var(--hero-ink); }
.map-emoji-sm { font-size: 16px; }
.map-m .map-label { font-size: 22px; }
.map-m .map-sub, .map-m .map-pill-text { font-size: 15px; }
.map-m .map-emoji-sm { font-size: 20px; }
.map-toggle { display: none; width: 100%; min-height: 42px; }

/* 여행 일정표 */
.trip-card { margin-top: 12px; padding: 14px 18px 10px; }
.tl-head { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: var(--fs-md); margin-bottom: 6px; }
.tl-head .i { color: var(--coral-ink); }
.tl-mag { font-weight: 500; font-size: var(--fs-xs); color: var(--coral-ink); text-decoration: none; margin-left: 6px; }
.tl-mag:hover { text-decoration: underline; }
.tl-note { margin-left: auto; font-weight: 400; font-size: var(--fs-xs); color: var(--muted); }
.tl-row { display: grid; grid-template-columns: 58px 52px 20px 1fr auto; align-items: baseline; gap: 10px; padding: 5px 0; font-size: var(--fs-sm); }
.tl-row.tl-first { border-top: 1px solid var(--grid); margin-top: 3px; padding-top: 8px; }
.tl-row.tl-first:first-of-type { border-top: 0; }
.tl-date b { font-family: var(--serif); font-size: var(--fs-lg); font-weight: 600; }
.tl-date small { margin-left: 4px; color: var(--muted); }
.tl-time { font-weight: 700; color: var(--ink); }
.tl-row:not(.tl-flight) .tl-time { font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.tl-ic { color: var(--muted); align-self: center; display: flex; }
.tl-flight .tl-ic { color: var(--coral-ink); }
.tl-body small { color: var(--muted); margin-left: 8px; font-size: var(--fs-xs); }

/* ── 항공 ──────────────────────────────────────────────────── */
.total-card { padding: 20px 22px; margin-bottom: 14px; }
.tc-label { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 500; margin-bottom: 10px; }
.tc-cabins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tc-cabins.one { grid-template-columns: minmax(0, 560px); }
.tc-cab { background: var(--surface-2); border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tc-cab .cabin { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; }
.tc-cab .cabin .i { width: 15px; height: 15px; }
.cabin.eco { color: var(--ocean); }
.cabin.biz { color: var(--coral-ink); }
.cabin.hotel { color: var(--gold-ink); }
.tc-cab .num { font-family: var(--serif); font-size: var(--fs-big); font-weight: 600; line-height: 1; color: inherit; text-decoration: none; }
.tc-cab .num-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tc-goal { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.goal-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--ink-2); }
.goal-bar { height: 8px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--baseline) 45%, transparent); overflow: hidden; }
.goal-bar .fill { height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--gold), var(--coral)); transition: width .6s ease; }
.tc-cab.eco .goal-bar .fill { background: linear-gradient(90deg, var(--ocean), var(--palm)); }
.goal-bar .fill.hit { background: linear-gradient(90deg, var(--palm), var(--ocean)); }
.goal-note { font-size: var(--fs-xs); color: var(--muted); }
.sig-reason { font-size: var(--fs-xs); color: var(--muted); }
.tgt-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tgt-form input { width: 96px; min-height: 32px; padding: 4px 8px; }
.tgt-form button { min-height: 32px; }
.tc-leg2 { font-size: var(--fs-sm); margin-top: 12px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.tc-leg2.ok { color: var(--palm); background: color-mix(in srgb, var(--palm) 10%, transparent); }
.tc-leg2.warn { color: var(--rose); background: color-mix(in srgb, var(--rose) 10%, transparent); }
/* 예약한 항공편 구간 카드 */
.segs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.seg { background: var(--surface-2); border-radius: var(--r-md); padding: 12px 14px; }
.seg-top { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.seg-no { font-weight: 700; color: var(--coral-ink); }
.seg-day { font-weight: 600; color: var(--ink-2); }
.seg-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.seg-end { display: flex; flex-direction: column; gap: 1px; font-size: var(--fs-sm); }
.seg-end b { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; }
.seg-end b sup { font-family: var(--sans); font-size: var(--fs-xs); color: var(--rose); margin-left: 2px; }
.seg-end small { color: var(--muted); font-size: var(--fs-xs); }
.seg-arr { text-align: right; align-items: flex-end; }
.seg-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: var(--fs-xs); color: var(--muted); min-width: 0; }
.seg-line { width: 100%; display: flex; align-items: center; justify-content: center; color: var(--coral-ink); background: linear-gradient(var(--baseline), var(--baseline)) center / 100% 1px no-repeat; }
.seg-line .i { background: var(--surface-2); padding: 0 5px; box-sizing: content-box; }
.seg-stop { color: var(--gold-ink); font-weight: 600; }
.seg-note { margin-top: 8px; font-size: var(--fs-xs); color: var(--muted); display: flex; gap: 5px; align-items: baseline; }
.seg-fare { margin-top: 12px; font-size: var(--fs-sm); color: var(--ink-2); display: flex; gap: 7px; align-items: baseline; }
.seg-fare .i { color: var(--muted); }
.seg-local { font-weight: 400; color: var(--muted); font-size: var(--fs-xs); margin-left: 6px; }
details.itin, details.planb { margin-top: 10px; border-top: 1px solid var(--grid); padding-top: 4px; }
details.itin > summary, details.planb > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 500; }
details > summary::-webkit-details-marker { display: none; }
details.itin > summary .i-chev, details.planb > summary .i-chev { color: var(--muted); transition: transform .15s ease; }
details[open] > summary .i-chev { transform: rotate(180deg); }
.itin-checked { font-weight: 400; color: var(--muted); margin-left: auto; font-size: var(--fs-xs); }
.itin.stale .itin-row { opacity: .6; }
.itin.stale .itin-checked { color: var(--rose); }
.itin-row { display: flex; align-items: baseline; gap: 12px; font-size: var(--fs-sm); padding: 4px 0; flex-wrap: wrap; }
.itin-date { font-family: var(--serif); font-weight: 600; font-size: var(--fs-lg); color: var(--ink-2); min-width: 64px; }
.itin-body { flex: 1; min-width: 240px; }
.itin-meta { font-size: var(--fs-xs); color: var(--muted); }
.itin-note { font-size: var(--fs-xs); color: var(--muted); margin-top: 5px; }
.planb-row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); padding: 4px 0; flex-wrap: wrap; }
.planb-row .pb-name { color: var(--ink-2); }
.planb-row .pb-prices { display: flex; gap: 14px; }
.planb-row .pb-prices > span { display: inline-flex; align-items: baseline; gap: 5px; }
.planb-row .pb-prices b { font-weight: 600; }

.flight-checks { padding: 6px 18px; display: flex; flex-direction: column; }
.fc-item { display: flex; align-items: center; gap: 14px; padding: 10px 0; font-size: var(--fs-md); }
.fc-date { font-family: var(--serif); font-weight: 600; font-size: var(--fs-lg); color: var(--ink-2); min-width: 52px; line-height: 1.2; }
.fc-title { flex: 1; }
.fc-sub { display: block; font-size: var(--fs-xs); color: var(--muted); }
.fc-item.done-card .fc-title { color: var(--muted); }

/* ── 호텔 ──────────────────────────────────────────────────── */
.rows { display: flex; flex-direction: column; gap: 10px; }
.row-card { padding: 15px 18px; display: grid; grid-template-columns: 74px 1fr auto auto; gap: 4px 16px; align-items: center; }
.rc-date { font-family: var(--serif); font-size: var(--fs-lg); font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.25; white-space: pre-line; }
.rc-main { min-width: 0; }
.rc-title { font-size: var(--fs-lg); font-weight: 500; }
.rc-note { font-size: var(--fs-xs); color: var(--muted); margin-top: 1px; }
.rc-prices { display: flex; gap: 18px; text-align: right; }
.rc-price .cabin { display: block; font-size: var(--fs-xs); font-weight: 500; }
.rc-price .num { font-size: var(--fs-lg); font-weight: 700; color: inherit; text-decoration: none; }
.rc-price .delta { display: block; }
.row-card.done-card { opacity: .78; }
.row-card.done-card .rc-title { color: var(--ink-2); }
.rate-pick { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-end; font-size: var(--fs-xs); color: var(--ink-2); }
.rate-pick label { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 240px; max-width: 380px; }
.rate-select { width: 100%; }
.rate-meta { font-size: var(--fs-xs); color: var(--muted); }

.hotel-list { grid-column: 1 / -1; margin-top: 10px; border-top: 1px solid var(--grid); padding-top: 4px; }
.hl-row { border-bottom: 1px solid var(--grid); }
.hl-row:last-of-type { border-bottom: none; }
.hl-main { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 2px 0; }
.hl-row.rich .hl-main { cursor: pointer; }
.hl-fav { width: 32px; min-height: 32px; border: none; background: transparent; color: var(--muted); }
.hl-fav .i { width: 18px; height: 18px; }
.hl-fav.on { color: var(--gold-ink); }
.hl-fav.on .i { fill: currentColor; }
.hl-name { color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.hl-name a { color: inherit; text-decoration: none; }
.hl-name a:hover { color: var(--ocean); }
.hl-name .i-target { color: var(--ocean); }
.hl-dots { flex: 1; border-bottom: 1px dotted var(--baseline); transform: translateY(-2px); min-width: 12px; }
.hl-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hl-delta { font-size: var(--fs-xs); min-width: 52px; text-align: right; white-space: nowrap; }
.hl-row.best .hl-name, .hl-row.best .hl-price { color: var(--gold-ink); font-weight: 700; }
.hl-row.chosen .hl-name { color: var(--ocean); font-weight: 700; }
.hl-chev { color: var(--muted); transition: transform .15s ease; }
.hl-row.open .hl-chev { transform: rotate(180deg); }
.hl-detail { padding: 2px 0 12px 40px; display: flex; flex-direction: column; gap: 8px; }
.hl-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hl-note { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hl-note-input { flex: 1 1 200px; min-height: 36px; }
.hl-vote.on { background: color-mix(in srgb, var(--coral) 14%, transparent); color: var(--coral-ink); border-color: transparent; font-weight: 600; }
.hotel-list.collapsible.collapsed .hl-row.hl-hidden { display: none; }
.hl-more { width: 100%; margin-top: 6px; }

/* 래플스 객실 표 (공홈 회원가 · 포인트) */
.room-table { grid-column: 1 / -1; margin-top: 10px; border-top: 1px solid var(--grid); padding-top: 6px; width: 100%; }
.rt-head, .rt-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 96px 118px; gap: 10px; align-items: center; text-align: right; }
.rt-head { font-size: var(--fs-xs); color: var(--muted); padding: 4px 8px; }
.rt-head > span:first-child, .rt-row > .rt-name { text-align: left; }
.rt-row { width: 100%; font: inherit; font-size: var(--fs-sm); color: var(--ink); background: transparent; border: none; border-top: 1px solid var(--grid); padding: 9px 8px; min-height: 40px; cursor: pointer; border-radius: 0; }
.rt-row:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.rt-row.on { background: color-mix(in srgb, var(--ocean) 8%, transparent); font-weight: 600; }
.rt-row:disabled { cursor: default; }
.rt-name { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rt-row small { color: var(--muted); font-weight: 400; }
.rt-note { font-size: var(--fs-xs); color: var(--muted); padding: 8px 8px 0; }
@media (max-width: 640px) {
  .rt-head { display: none; }
  .rt-row { grid-template-columns: 1fr auto; gap: 2px 10px; }
  .rt-row > .rt-name { grid-column: 1 / -1; }
  .rt-row > span:nth-child(3) { text-align: left; grid-column: 1; grid-row: 2; }
  .rt-row > span:nth-child(2) { grid-column: 1; grid-row: 3; text-align: left; }
  .rt-row > span:nth-child(4) { grid-column: 2; grid-row: 2 / 4; align-self: center; }
}

/* 아코르 포인트 예상 내역 */
.pt-ledger { margin: 12px 8px 0; padding: 10px 14px; background: var(--surface-2); border-radius: var(--r-md); max-width: 520px; }
.pt-title { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 700; margin-bottom: 4px; }
.pt-title .i { color: var(--gold-ink); }
.pt-line { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); padding: 3px 0; color: var(--ink-2); }
.pt-line small { color: var(--muted); }
.pt-line.total { border-top: 1px solid var(--baseline); margin-top: 4px; padding-top: 6px; color: var(--ink); font-weight: 700; }

/* ── 예산 ──────────────────────────────────────────────────── */
.budget-card { padding: 8px 20px 14px; }
.bg-group-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 6px; font-size: var(--fs-sm); font-weight: 700; letter-spacing: .02em; }
.bg-group-head > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.bg-group-head .i { color: var(--gold-ink); }
.bg-subtotal { font-size: var(--fs-md); font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bg-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--grid); }
.bg-icon { width: 26px; display: flex; justify-content: center; color: var(--muted); }
.bg-icon .i { width: 18px; height: 18px; }
.bg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bg-name { font-size: var(--fs-md); font-weight: 500; }
.bg-sub { font-size: var(--fs-xs); color: var(--muted); }
.bg-price { font-size: var(--fs-lg); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 96px; text-align: right; }
.bg-edit { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; }
.bg-input { font-weight: 700; font-size: var(--fs-lg); width: 76px; text-align: right; padding: 4px 8px; font-variant-numeric: tabular-nums; }
.bg-unit { font-size: var(--fs-xs); color: var(--muted); }
.bg-picker { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.bg-pill.on.economy { background: color-mix(in srgb, var(--ocean) 16%, transparent); color: var(--ocean); border-color: transparent; font-weight: 600; }
.bg-pill.on.business { background: color-mix(in srgb, var(--coral) 16%, transparent); color: var(--coral-ink); border-color: transparent; font-weight: 600; }
.bg-select { margin-top: 6px; max-width: 320px; font-size: var(--fs-sm); }
.bg-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 2px; border-top: 2px solid var(--grid); margin-top: 6px; font-size: var(--fs-md); font-weight: 500; }
.bg-total b { font-family: var(--serif); font-size: var(--fs-num); font-weight: 600; font-variant-numeric: tabular-nums; }
.bg-note { font-size: var(--fs-xs); color: var(--muted); margin-top: 8px; }

/* ── 체크리스트 ─────────────────────────────────────────────── */
.ck-card { padding: 6px 18px 12px; }
.ck-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 2px 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--grid); }
.ck-row:first-child { border-top: none; }
.ck-box { border-radius: var(--r-md); color: var(--palm); border-color: var(--baseline); }
.ck-box .i { width: 20px; height: 20px; }
.ck-box.on { background: color-mix(in srgb, var(--palm) 16%, transparent); border-color: var(--palm); }
.ck-title { font-size: var(--fs-md); cursor: pointer; }
.ck-row.done .ck-title { color: var(--muted); text-decoration: line-through; }
.ck-tools { grid-column: 2 / -1; display: flex; gap: 6px; flex-wrap: wrap; padding-top: 4px; }
.ck-edit { grid-column: 2 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.ck-edit input.t { flex: 1 1 200px; }
.ck-add { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--grid); margin-top: 4px; }
.ck-add .t { flex: 1 1 220px; }
.ck-more { border: none; padding-left: 0; color: var(--muted); }

/* ── 플래너 ─────────────────────────────────────────────────── */
.pl-closed { padding: 22px 20px; text-align: center; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.7; border-style: dashed; border-color: var(--baseline); box-shadow: none; }
.pl-closed button { margin-top: 10px; }
.pl-strip-wrap { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.pl-nav { border-radius: var(--r-md); min-height: 46px; font-size: var(--fs-xl); }
.pl-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; flex: 1; }
.pl-strip::-webkit-scrollbar { display: none; }
.pl-tab { flex: 0 0 auto; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 5px 10px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--ink-2); cursor: pointer; font: inherit; }
.pl-tab-md { font-family: var(--serif); font-size: var(--fs-lg); font-weight: 600; }
.pl-tab-wd { font-size: var(--fs-xs); color: var(--muted); }
.pl-tab.on { background: linear-gradient(150deg, var(--hero-g1), var(--hero-g2)); color: var(--hero-ink); border-color: transparent; }
.pl-tab.on .pl-tab-wd { color: var(--hero-ink); opacity: .7; }
.pl-tab.filled .pl-tab-md::after { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--palm); margin-left: 3px; vertical-align: middle; }
.pl-day-card { overflow: hidden; }
.pl-day-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; background: linear-gradient(150deg, color-mix(in srgb, var(--hero-g1) 45%, var(--surface)), color-mix(in srgb, var(--hero-g2) 30%, var(--surface))); }
.pl-date { font-family: var(--serif); font-size: var(--fs-num); font-weight: 600; white-space: nowrap; }
.pl-wd { font-size: var(--fs-lg); color: var(--ink-2); }
.pl-count { font-size: var(--fs-xs); color: var(--muted); margin-left: 6px; }
.pl-lodging-wrap { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 220px; font-size: var(--fs-lg); }
.pl-lodging { flex: 1; font-weight: 600; color: var(--gold-ink); background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--border); }
.pl-daysum { font-size: var(--fs-sm); color: var(--ink-2); white-space: nowrap; }
.pl-daysum b { font-family: var(--serif); font-size: var(--fs-xl); color: var(--ink); }
.pl-table { display: grid; grid-template-columns: 168px minmax(0, 1fr) 116px 96px; column-gap: 12px; align-items: center; padding: 6px 24px 20px; }
.pl-th { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; color: var(--muted); padding: 10px 2px 8px; text-transform: uppercase; }
.pl-th small { font-weight: 400; letter-spacing: 0; }
.th-c { text-align: center; }
.pl-cell { padding: 9px 0; border-bottom: 1px solid var(--grid); height: 100%; display: flex; align-items: center; }
.pl-table > .pl-cell:nth-last-child(-n+4) { border-bottom: none; }
.pl-label { gap: 11px; position: relative; }
.pl-label::before { content: ''; position: absolute; left: 18px; top: 0; bottom: 0; width: 1.5px; background: var(--baseline); opacity: .45; }
.pl-label.first::before { top: 50%; }
.pl-label.last::before { bottom: 50%; }
.pl-dot { position: relative; z-index: 1; flex: 0 0 auto; width: 37px; height: 37px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: var(--fs-lg); background: var(--surface); border: 1.5px solid var(--slot-c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--slot-c) 12%, transparent); }
.pl-label-text { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.pl-c-content .it-field, .pl-c-bud .it-field { min-height: 42px; border-radius: var(--r-sm); }
.pl-c-content .it-field:focus, .pl-c-bud .it-field:focus { border-color: var(--slot-c, var(--ocean)); }
.pl-bud { text-align: right; font-variant-numeric: tabular-nums; }
.pl-bk { width: 100%; min-height: 42px; border-radius: var(--r-sm); border-style: dashed; border-color: var(--baseline); background: transparent; color: var(--muted); font-size: var(--fs-xs); padding: 0 6px; }
.pl-bk.s1 { border-style: solid; border-color: transparent; background: color-mix(in srgb, var(--coral) 14%, transparent); color: var(--coral-ink); font-weight: 600; }
.pl-bk.s2 { border-style: solid; border-color: transparent; background: color-mix(in srgb, var(--palm) 15%, transparent); color: var(--palm); font-weight: 600; }
.pl-k-meal { --slot-c: var(--gold); }
.pl-k-act { --slot-c: var(--ocean); }
.pl-input-wrap { position: relative; display: flex; gap: 6px; align-items: center; width: 100%; }
.pl-input-wrap input { flex: 1; min-width: 0; }
.pl-sug { width: 36px; min-height: 40px; border-radius: var(--r-sm); font-size: 15px; }
.pl-pop { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; right: 0; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.pl-chip:hover { border-color: var(--ocean); color: var(--ocean); }
.pl-chip-x { color: var(--muted); }

/* ── 추이 ──────────────────────────────────────────────────── */
#charts { display: grid; grid-template-columns: 1fr; gap: 14px; }
.chart-box { padding: 15px 17px; }
.chart-box h3 { display: flex; align-items: center; gap: 6px; font-size: var(--fs-md); font-weight: 600; margin-bottom: 4px; }
.chart-box .legend { font-size: var(--fs-xs); color: var(--ink-2); display: flex; gap: 12px; margin-bottom: 6px; }
.legend .sw { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.chart-box > svg { width: 100%; height: auto; display: block; }
#hotel-trends { display: flex; flex-direction: column; gap: 18px; }
.ht-group-title { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; border-left: 3px solid var(--gc); padding-left: 8px; }
.ht-count { font-size: var(--fs-xs); font-weight: 400; color: var(--muted); }
.ht-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ht-card { padding: 11px 13px 9px; min-width: 0; }
.ht-card.best { border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.ht-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; min-width: 0; }
.ht-name { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--ink-2); min-width: 0; line-height: 1.3; }
.ht-name .i { width: 13px; height: 13px; }
.ht-card.best .ht-name { color: var(--gold-ink); font-weight: 700; }
.ht-price { font-size: var(--fs-md); font-weight: 700; font-variant-numeric: tabular-nums; }
.ht-card svg.spark { width: 100%; height: 44px; display: block; }
.ht-foot { display: flex; justify-content: space-between; font-size: var(--fs-xs); margin-top: 3px; }
.ht-low { color: var(--muted); }
.ht-add { margin-top: 8px; max-width: 100%; font-size: var(--fs-sm); }

/* ── 인라인 예약 폼 ─────────────────────────────────────────── */
.bk-form { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bk-form input { width: 140px; min-height: 36px; }
.bk-q { font-size: var(--fs-sm); color: var(--ink-2); }

/* ── 5. 반응형 ──────────────────────────────────────────────── */
@media (min-width: 900px) {
  main { max-width: 1200px; }
  .row-card, .total-card, .chart-box, .dc-row, .ck-row { transition: box-shadow .18s ease; }
  .row-card:hover, .total-card:hover, .chart-box:hover { box-shadow: var(--shadow-hover); }
  .dc-row:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
  .hl-row.rich .hl-main:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); border-radius: var(--r-sm); }
  .ht-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  main { padding: 8px 14px 40px; }
  section { margin-top: 30px; }
  .hero { padding: 20px 16px 40px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 12px; }
  .sec-head h2 { font-size: 24px; }
  .quick-nav { margin: 0 -14px; padding: 8px 12px; }
  .map-toggle { display: flex; }
  #map-section.collapsed .map-card { display: none; }
  #map-section:not(.collapsed) .map-toggle { margin-bottom: 8px; }
  .map-card { padding: 6px 6px 0; }
  .trip-card { padding: 12px 14px 8px; }
  .tl-row { grid-template-columns: 44px 44px 18px 1fr; gap: 8px; }
  .tl-row .chip { grid-column: 4; justify-self: start; }
  .tl-body small { display: block; margin-left: 0; }
  .tl-note { display: none; }
  .segs { grid-template-columns: 1fr; }

  .sm-hero-value { font-size: 34px; }
  .sm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-tile { min-height: 84px; padding: 10px 12px; }
  .sm-value { font-size: 22px; }

  .total-card { padding: 16px; }
  .tc-cabins { grid-template-columns: 1fr; }
  .tc-cab .num { font-size: 28px; }
  .itin-row { flex-direction: column; gap: 1px; padding: 7px 0; }
  .itin-date { min-width: 0; }
  .planb-row { flex-direction: column; gap: 2px; }
  .fc-item { padding: 12px 0; flex-wrap: wrap; }
  .fc-title { min-width: 200px; }

  .row-card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 14px 16px; }
  .row-card .rc-date { order: 0; flex: 0 0 auto; white-space: nowrap; font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); background: var(--surface-2); border-radius: var(--r-pill); padding: 3px 10px; line-height: 1.4; }
  .row-card .rc-main { order: 1; flex: 1 1 100%; }
  .row-card .rc-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .row-card .rc-prices { order: 2; flex: 1 1 0; min-width: 0; text-align: left; }
  .row-card .rc-price .cabin { display: block; margin-bottom: 1px; }
  .row-card .rc-price .num { font-size: var(--fs-xl); margin-right: 6px; }
  .row-card .rc-price .delta { display: inline; }
  .row-card .badge { order: 3; flex: 0 0 auto; margin-left: auto; }
  .row-card .hotel-list { order: 4; flex: 1 1 100%; margin-top: 6px; }
  .hl-name { flex: 1 1 auto; white-space: normal; line-height: 1.3; }
  .hl-dots { display: none; }
  .hl-delta { min-width: 0; }
  .hl-detail { padding-left: 0; }

  .bg-price { min-width: 80px; }
  .bg-chip { display: none; }
  .bg-input { width: 64px; }

  .ck-row { grid-template-columns: 40px 1fr; }
  .ck-due { grid-column: 2; justify-self: start; }

  .pl-table { grid-template-columns: 1.1fr 0.9fr; column-gap: 10px; padding: 4px 16px 16px; }
  .pl-th { display: none; }
  .pl-cell { border-bottom: none; padding: 4px 0; }
  .pl-label { grid-column: 1 / -1; padding-top: 16px; }
  .pl-label::before { display: none; }
  .pl-dot { width: 32px; height: 32px; font-size: 15px; }
  .pl-c-content { grid-column: 1 / -1; }
  .pl-c-bk { grid-column: 1; }
  .pl-c-bud { grid-column: 2; }
  .pl-table > .pl-cell.pl-c-bk, .pl-table > .pl-cell.pl-c-bud { border-bottom: 1px solid var(--grid); padding-bottom: 14px; }
  .pl-table > .pl-cell:nth-last-child(-n+2) { border-bottom: none; }
  .pl-daysum { width: 100%; text-align: right; }

  .ht-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ht-card { padding: 9px 10px 7px; }
  .ht-card svg.spark { height: 38px; }
  footer { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

/* ── 6. 다크 ────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #171310; --surface: #211c18; --surface-2: #2a231d;
    --ink: #f3ece4; --ink-2: #c9bbae; --muted: #9a8b7f;
    --grid: #322a23; --baseline: #4a3f35; --border: rgba(255, 232, 210, 0.10);
    --shadow: 0 2px 14px rgba(0, 0, 0, 0.35); --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.5);
    --ocean: #35b3a8; --coral: #e97b5d; --coral-ink: #ef8f74; --gold: #d4a244; --gold-ink: #dcb05c; --rose: #e06a80; --palm: #5cb872;
    --hero-g1: #3a2420; --hero-g2: #57302a; --hero-g3: #74413a; --hero-ink: #f7dfc9;
    --map-sea: #131b1a; --map-land: #33291d; --map-coast: #4d3f2c;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #171310; --surface: #211c18; --surface-2: #2a231d;
  --ink: #f3ece4; --ink-2: #c9bbae; --muted: #9a8b7f;
  --grid: #322a23; --baseline: #4a3f35; --border: rgba(255, 232, 210, 0.10);
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.35); --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.5);
  --ocean: #35b3a8; --coral: #e97b5d; --coral-ink: #ef8f74; --gold: #d4a244; --gold-ink: #dcb05c; --rose: #e06a80; --palm: #5cb872;
  --hero-g1: #3a2420; --hero-g2: #57302a; --hero-g3: #74413a; --hero-ink: #f7dfc9;
  --map-sea: #131b1a; --map-land: #33291d; --map-coast: #4d3f2c;
}
