/* ============================================================
   REDESIGN v2 — Travel-on-the-go for Mum & Dad
   - Korean-primary typography
   - Bigger base font for older eyes
   - Sticky tab nav (Today / Itinerary / Hotels / Flights)
   - Today hero card (day-of, now, up-next, tonight)
   - Explicit TAP affordance
   - Better transport-mode connectors
   - Warmer travel-journal palette
   ============================================================ */

/* ---------- Bigger, softer base ---------- */
html { font-size: 17.5px; }
body {
  padding-bottom: 130px !important;     /* space for sticky tab + float widget */
  padding-top: 0 !important;
  font-size: 17.5px;
  line-height: 1.6;
}

/* ---------- New accent colour palette (sits over the existing one) ---------- */
:root {
  --amber: #D89438;
  --amber-soft: #FFF4E0;
  --sky: #4A8FB8;
  --sky-soft: #E2F0F8;
  --rose: #C84A4A;
  --rose-soft: #FFEAEA;
  --ink: #15281E;            /* deeper than seaweed for body text on cream */
}

/* ---------- KOREAN-PRIMARY TYPOGRAPHY ---------- */
/* When both languages are visible, Korean is larger and primary;
   English is smaller and italic-tinted, like a translation note. */

body.both-langs {}
body.both-langs .ko {
  display: block;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 500;
  color: var(--seaweed);
  font-size: 1.02em;            /* slightly bigger than English */
  line-height: 1.55;
  margin-top: 6px;
  opacity: 1;
}
body.both-langs .ko-title {
  display: block;
  font-family: 'Noto Serif KR', serif;
  font-weight: 700;
  color: var(--seaweed);
  font-size: 0.78em;
  margin-top: 4px;
  opacity: 0.9;
}

/* Make Korean larger and primary inside the description areas */
body.both-langs .timeline-content .ko,
body.both-langs .modal-section p .ko,
body.both-langs .tip-card .ko,
body.both-langs .alt-card .alt-why .ko,
body.both-langs .city-intro .intro-body .ko,
body.both-langs .callout .ko {
  font-size: 1.0em;
  font-weight: 500;
  color: var(--seaweed);
  margin-top: 8px;
  opacity: 1;
  line-height: 1.6;
}

/* English in both-langs mode: smaller, soft */
body.both-langs .timeline-content strong + .desc,
body.both-langs .timeline-content > br + *,
body.both-langs .modal-section p:not(.ko),
body.both-langs .tip-card:not(.ko-only) {
  /* don't change - we want English readable too */
}
body.both-langs .timeline-content .desc {
  font-size: 0.92em;
  color: var(--soft);
}

/* ---------- TAB NAV ---------- */
.tab-nav {
  position: sticky;
  top: 0;
  left: 0; right: 0;
  z-index: 80;
  background: rgba(250, 247, 233, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin: 0 -16px 16px;
  padding: 8px 8px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-nav button {
  flex: 1;
  min-width: 80px;
  background: transparent;
  border: none;
  padding: 12px 10px;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--soft);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all 0.18s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.tab-nav button .tab-emoji { font-size: 18px; line-height: 1; }
.tab-nav button .tab-label-en { font-size: 11px; }
.tab-nav button .tab-label-ko { font-size: 12px; font-family: 'Noto Sans KR', sans-serif; font-weight: 700; }
.tab-nav button.active {
  background: var(--seaweed);
  color: var(--cream);
}
.tab-nav button.active .tab-label-en { color: rgba(226, 255, 230, 0.7); }
.tab-nav button:active { transform: scale(0.96); }

/* ---------- VIEW SWITCHING via body class ---------- */
body[class*="view-"] .hero { display: none; }   /* hide big hero when switched to a focused view */
body[class*="view-"] .quick-nav { display: none; }
body[class*="view-"] .section-head:nth-of-type(1) { display: none; }   /* "Day by day" section title */

body.view-today .city-card,
body.view-today #flights,
body.view-today #hotels,
body.view-today #contacts,
body.view-today .section-head { display: none; }
body.view-today #todayView { display: block; }

body.view-itinerary #todayView,
body.view-itinerary #flights,
body.view-itinerary #hotels,
body.view-itinerary #contacts { display: none; }
body.view-itinerary .section-head { display: flex; }
body.view-itinerary .section-head:not(:first-of-type) { display: none; }
body.view-itinerary .city-card { display: block; }

body.view-hotels .city-card,
body.view-hotels #flights,
body.view-hotels #todayView,
body.view-hotels #contacts { display: none; }
body.view-hotels #hotels { display: block; }
body.view-hotels .section-head { display: none; }
body.view-hotels .section-head[data-section="hotels"] { display: flex; }

body.view-flights .city-card,
body.view-flights #hotels,
body.view-flights #todayView,
body.view-flights #contacts { display: none; }
body.view-flights #flights { display: block; }
body.view-flights .section-head { display: none; }
body.view-flights .section-head[data-section="flights"] { display: flex; }

/* When ANY view is active, also hide the big hero & redirect */
body.view-today .hero,
body.view-itinerary .hero,
body.view-hotels .hero,
body.view-flights .hero { display: none; }

/* ---------- TODAY VIEW HERO ---------- */
#todayView { display: none; padding: 4px 0 30px; }

.today-hero {
  background: linear-gradient(135deg, var(--seaweed) 0%, #0a2a1d 100%);
  color: var(--cream);
  border-radius: 22px;
  padding: 26px 22px 28px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.today-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 90% 10%, rgba(216, 148, 56, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 5% 95%, rgba(42, 200, 100, 0.14) 0%, transparent 50%);
  pointer-events: none;
}
.today-date-row {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.today-date-row .date-en {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: rgba(226, 255, 230, 0.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.today-date-row .date-ko {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
}
.today-day-num {
  font-family: 'DM Serif Display', serif;
  font-size: 13px;
  background: var(--primary);
  color: var(--seaweed);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
}
.today-title {
  font-family: 'DM Serif Display', 'Noto Serif KR', serif;
  font-size: 28px;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 6px;
  position: relative;
}
.today-title-ko {
  font-family: 'Noto Serif KR', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  position: relative;
}
.today-city-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 14px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* NOW + NEXT + TONIGHT cards */
.now-card, .next-card, .tonight-card, .tomorrow-card {
  background: var(--porcelain);
  border-radius: 18px;
  padding: 18px 18px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--primary);
  position: relative;
}
.now-card { border-left-color: #D8453F; animation: now-pulse 2.5s ease-in-out infinite; }
.next-card { border-left-color: var(--amber); }
.tonight-card { border-left-color: #4A8FB8; }
.tomorrow-card { border-left-color: var(--soft); }

@keyframes now-pulse {
  0%, 100% { box-shadow: 0 1px 0 var(--line), 0 4px 14px -10px rgba(216, 69, 63, 0.4); }
  50% { box-shadow: 0 1px 0 var(--line), 0 4px 24px -8px rgba(216, 69, 63, 0.5); }
}

.card-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.now-card .card-label { color: #D8453F; }
.now-card .card-label::before { content: "●"; animation: dot-pulse 1.4s ease-in-out infinite; }
.next-card .card-label { color: #8C5500; }
.tonight-card .card-label { color: #1F4F8C; }
.tomorrow-card .card-label { color: var(--soft); }

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.now-card .item-time, .next-card .item-time, .tonight-card .item-time, .tomorrow-card .item-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--soft);
  font-weight: 700;
  margin-bottom: 4px;
}
.now-card .item-name, .next-card .item-name, .tonight-card .item-name, .tomorrow-card .item-name {
  font-family: 'DM Serif Display', 'Noto Serif KR', serif;
  font-size: 22px;
  line-height: 1.2;
  color: var(--seaweed);
  margin-bottom: 4px;
}
.now-card .item-name-ko, .next-card .item-name-ko, .tonight-card .item-name-ko, .tomorrow-card .item-name-ko {
  font-family: 'Noto Serif KR', serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--seaweed);
  margin-bottom: 8px;
  opacity: 0.85;
}
.now-card .item-desc, .next-card .item-desc, .tonight-card .item-desc, .tomorrow-card .item-desc {
  font-size: 14px;
  color: var(--soft);
  line-height: 1.5;
}
.next-card .countdown {
  display: inline-block;
  background: var(--amber-soft);
  color: #7A4A00;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 8px;
  letter-spacing: 0.05em;
}
.today-cta {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 14px;
  background: var(--seaweed);
  color: var(--cream);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.today-cta:active { transform: scale(0.98); }
.today-cta .ko { display: inline; margin: 0 0 0 4px; opacity: 0.75; font-size: 0.9em; }

/* ---------- TAP affordance: badge on every linked timeline-item ---------- */
.timeline-item[data-place] {
  border: 1px solid var(--line);
  background: var(--porcelain);
  margin: 6px -8px !important;
  padding: 14px 14px 14px 18px !important;
  border-radius: 14px;
  position: relative;
}
.timeline-item[data-place]::after {
  content: "TAP · 누르세요 ›";
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--spinach);
  background: var(--mint);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  pointer-events: none;
}
.timeline-item[data-place].is-done::after {
  content: "✓ DONE · 완료";
  background: var(--primary);
  color: var(--seaweed);
}
.timeline-item[data-place].is-skip::after {
  content: "SKIP · 건너뜀";
  background: #888;
  color: #fff;
}

/* Hide the inline strong > arrow (replaced by the corner pill) */
.timeline-item[data-place] .timeline-content strong::after {
  content: "" !important;
}

/* Strong/title bigger for older eyes */
.timeline-item[data-place] .timeline-content strong {
  font-size: 1.05em;
  display: inline-block;
  margin-bottom: 2px;
  padding-right: 90px;          /* space for the TAP pill */
  line-height: 1.3;
}

/* ---------- TRANSPORT-MODE pill on walk connectors ---------- */
.walk-connector {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px !important;
  margin: 4px 0 4px 12px !important;
  font-size: 11px !important;
  width: fit-content;
}
.walk-connector .walk-icon {
  background: var(--seaweed) !important;
  color: var(--primary);
  margin-left: 0 !important;
}

/* ---------- City progress bar bigger ---------- */
.city-progress {
  font-size: 11.5px !important;
  padding: 14px 0 4px !important;
}
.city-progress .bar { height: 8px !important; }

/* ---------- Hide Korean from English-only mode override ---------- */
body.en-only .ko, body.en-only .ko-title { display: none !important; }
body.ko-only .en-only { display: none !important; }

/* ---------- Timeline-time bigger ---------- */
.timeline-time {
  font-size: 12.5px !important;
  font-weight: 800 !important;
  background: var(--seaweed);
  color: var(--cream);
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 6px;
}

/* ---------- Day summary bigger / clearer ---------- */
.day-title { font-size: 19px !important; }
.day-title .ko-title { font-size: 15px !important; opacity: 0.85; }

/* ---------- Quick reach: floating "ASK CLAUDE" button (placeholder) ---------- */
.ask-claude-btn {
  position: fixed;
  bottom: 78px;
  right: 16px;
  z-index: 88;
  background: linear-gradient(135deg, #D8744A 0%, #B85228 100%);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 12px 16px;
  font-family: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 30px -8px rgba(184, 82, 40, 0.5);
  -webkit-tap-highlight-color: transparent;
}
.ask-claude-btn:active { transform: scale(0.97); }
.ask-claude-btn .emoji { font-size: 16px; }
.ask-claude-btn .lbl { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.ask-claude-btn .lbl .en { font-size: 11px; opacity: 0.85; font-weight: 700; }
.ask-claude-btn .lbl .ko { font-size: 13px; }

/* ---------- Mobile readability tweaks ---------- */
@media (max-width: 480px) {
  .today-title { font-size: 24px; }
  .today-title-ko { font-size: 16px; }
  .now-card .item-name { font-size: 19px; }
  .timeline-item[data-place] { padding: 12px 12px 12px 14px !important; }
  .timeline-item[data-place]::after { font-size: 9px; padding: 3px 6px; }
}

/* ---------- Print-friendly (in case parents print boarding-pass-style summary) ---------- */
@media print {
  .tab-nav, .float-widget, .ask-claude-btn, .modal-overlay, .modal-sheet, .onboarding-overlay, .profile-chip { display: none !important; }
  body { font-size: 12pt; padding: 0 !important; max-width: none; color: #000; background: #fff; }
  .city-card, .flight-card, .hotel-card, .timeline-item { break-inside: avoid; }
}

/* ============================================================
   PROFILE SYSTEM v3 — interview-driven UX adaptation
   body.profile-{senior|young|solo|couple|family|friends|business|honeymoon}
   body.font-{S|M|L|XL}
   body.pace-{slow|moderate|fast}
   body.budget-{budget|mid|comfort|lux}
   body.lang-{ko-only|ko-primary|en-primary|en-only}
   ============================================================ */

/* FONT SIZE ladder */
body.font-S { font-size: 15.5px; }
body.font-M { font-size: 17.5px; }
body.font-L { font-size: 19px; }
body.font-XL { font-size: 21px; }

body.font-XL .timeline-item[data-place] .timeline-content strong { font-size: 1.1em; }
body.font-XL .now-card .item-name, body.font-XL .next-card .item-name, body.font-XL .tonight-card .item-name { font-size: 26px; }
body.font-XL .today-title { font-size: 32px; }

/* LANGUAGE modes — overrides earlier .both-langs rules selectively */
body.lang-ko-only .ko-only-hide-EN { display: none; }
body.lang-ko-only .ko, body.lang-ko-only .ko-title { display: block; }
body.lang-ko-only .timeline-content strong { display: none !important; }
body.lang-ko-only .timeline-content .desc { display: none !important; }
body.lang-ko-only .modal-section p:not(.ko) { display: none !important; }
body.lang-ko-only .tip-card { font-size: 0; }
body.lang-ko-only .tip-card .ko { font-size: 14px; display: block; margin-top: 0; }

body.lang-en-only .ko, body.lang-en-only .ko-title { display: none !important; }

body.lang-ko-primary .timeline-content strong + .desc,
body.lang-ko-primary .modal-section p:not(.ko) {
  font-size: 0.85em;
  opacity: 0.65;
  font-style: italic;
}
body.lang-ko-primary .ko, body.lang-ko-primary .ko-title {
  font-size: 1.05em;
  font-weight: 600;
  opacity: 1;
}
body.lang-ko-primary .timeline-item[data-place] .timeline-content strong {
  font-size: 0.92em;
  font-weight: 600;
}
body.lang-ko-primary .timeline-item[data-place] .timeline-content .ko {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--seaweed);
  margin-top: 6px;
}

body.lang-en-primary .ko { font-size: 0.85em; opacity: 0.7; font-style: italic; }
body.lang-en-primary .ko-title { font-size: 0.7em; opacity: 0.65; }

/* PACE — affects density / spacing */
body.pace-slow .timeline-item[data-place] { padding: 18px 16px 18px 20px !important; margin: 8px -8px !important; }
body.pace-slow .timeline-item[data-place] .timeline-content strong { font-size: 1.12em; }
body.pace-slow .day-body { padding-bottom: 30px !important; }

body.pace-fast .timeline-item[data-place] { padding: 8px 12px 8px 14px !important; margin: 3px -8px !important; }
body.pace-fast .timeline-item[data-place] .tl-meta { display: none; }
body.pace-fast .timeline-item[data-place]::after { display: none; }
body.pace-fast .timeline-content .desc { font-size: 0.85em; }
body.pace-fast .timeline-content .ko { font-size: 0.85em !important; }

/* PROFILE theme tweaks */
body.profile-senior {
  --primary: #2AC864;
  --amber: #D89438;
}
body.profile-senior .timeline-time {
  font-size: 14px !important;
  padding: 5px 12px;
}
body.profile-senior .timeline-item[data-place]::after {
  font-size: 10.5px;
  padding: 5px 10px;
}

body.profile-young {
  --primary: #FF6B6B;
  --amber: #FFD93D;
}
body.profile-young .modal-poster.cat-cafe { background: linear-gradient(135deg,#1A1146 0%, #4A1F8C 60%, #FF6B9D 100%); }
body.profile-young .timeline-item[data-place]::after {
  background: linear-gradient(135deg, #FF6B6B, #FFD93D);
  color: #fff;
}

body.profile-honeymoon .timeline-item[data-place]::after {
  background: linear-gradient(135deg, #E5547B, #FFA0A0);
  color: #fff;
}
body.profile-honeymoon .modal-poster {
  background: linear-gradient(135deg, #4A0E2A 0%, #8C2A4E 60%, #E58CA0 100%);
}

body.profile-business .timeline-item[data-place]::after {
  background: #1F3346;
  color: #E2F0FA;
}

body.profile-family .timeline-item[data-place]::after {
  background: #FFE5A0;
  color: #7A5A00;
}

/* BUDGET — surface or hide € chips with emphasis */
body.budget-budget .tl-chip:not(.cat-transit)[class*="€€€"],
body.budget-budget .tl-chip:not(.cat-transit)[class*="€€€€"] {
  background: var(--rose-soft);
  color: var(--rose);
  font-weight: 800;
}
body.budget-lux .tl-chip[class*="Free"] {
  opacity: 0.5;
}

/* ============================================================
   ONBOARDING modal — multi-step interview
   ============================================================ */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 55, 39, 0.75);
  backdrop-filter: blur(10px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.onboarding-overlay.is-open { opacity: 1; pointer-events: auto; }

.onboarding-sheet {
  background: var(--cream);
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.2, 1.0, 0.2, 1);
  box-shadow: 0 30px 80px -20px rgba(14, 55, 39, 0.6);
}
.onboarding-overlay.is-open .onboarding-sheet { transform: translateY(0) scale(1); }
.onboarding-sheet::-webkit-scrollbar { width: 0; }

.ob-header {
  position: sticky;
  top: 0;
  background: var(--cream);
  padding: 18px 22px 12px;
  z-index: 2;
  border-bottom: 1px solid var(--line);
}
.ob-step-indicator {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}
.ob-step-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  transition: background 0.3s;
}
.ob-step-dot.active { background: var(--primary); }
.ob-step-dot.done { background: var(--spinach); }
.ob-step-title {
  font-family: 'DM Serif Display', 'Noto Serif KR', serif;
  font-size: 22px;
  line-height: 1.2;
  color: var(--seaweed);
  margin-bottom: 2px;
}
.ob-step-title-ko {
  font-family: 'Noto Serif KR', serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--soft);
}

.ob-body { padding: 18px 22px 0; }
.ob-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.ob-card {
  background: var(--porcelain);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ob-card:active { transform: scale(0.96); }
.ob-card.selected {
  border-color: var(--primary);
  background: var(--mint);
  box-shadow: 0 4px 16px -8px var(--primary);
}
.ob-card .emoji { font-size: 32px; line-height: 1; margin-bottom: 6px; }
.ob-card .label-en { font-size: 12px; font-weight: 700; color: var(--seaweed); line-height: 1.2; }
.ob-card .label-ko { font-size: 13px; font-weight: 700; color: var(--seaweed); line-height: 1.3; font-family: 'Noto Sans KR', sans-serif; }
.ob-card .sublabel { font-size: 10.5px; color: var(--soft); margin-top: 4px; line-height: 1.3; font-weight: 500; }

/* full-width card variant */
.ob-card.wide {
  grid-column: 1 / -1;
  flex-direction: row;
  text-align: left;
  gap: 14px;
  padding: 14px 16px;
  align-items: center;
}
.ob-card.wide .emoji { font-size: 28px; margin: 0; }
.ob-card.wide .text-block { flex: 1; }
.ob-card.wide .label-en, .ob-card.wide .label-ko { display: block; }

/* font preview cards */
.ob-font-preview {
  display: block;
  width: 100%;
  background: var(--porcelain);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.18s;
  text-align: left;
  font-family: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif;
  -webkit-tap-highlight-color: transparent;
  color: var(--seaweed);
}
.ob-font-preview:active { transform: scale(0.99); }
.ob-font-preview.selected { border-color: var(--primary); background: var(--mint); }
.ob-font-preview .size-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--softer);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}
.ob-font-preview .preview-text { font-weight: 600; }
.ob-font-preview.size-S .preview-text { font-size: 14px; }
.ob-font-preview.size-M .preview-text { font-size: 16px; }
.ob-font-preview.size-L .preview-text { font-size: 18px; }
.ob-font-preview.size-XL .preview-text { font-size: 21px; }

.ob-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}
.ob-pair .ob-pair-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--softer);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}
.ob-pair .ob-card { padding: 12px 8px; }
.ob-pair .ob-card .emoji { font-size: 22px; margin-bottom: 2px; }
.ob-pair .ob-card .label-ko, .ob-pair .ob-card .label-en { font-size: 11px; }

.ob-summary {
  background: var(--mint);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}
.ob-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(14, 55, 39, 0.08);
  font-size: 14px;
}
.ob-summary-row:last-child { border-bottom: none; }
.ob-summary-row .k { color: var(--soft); font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700; }
.ob-summary-row .v { color: var(--seaweed); font-weight: 700; }

.ob-footer {
  position: sticky;
  bottom: 0;
  background: var(--cream);
  padding: 12px 22px 18px;
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--line);
}
.ob-btn {
  flex: 1;
  padding: 13px 14px;
  border-radius: 14px;
  font-family: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  border: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s;
}
.ob-btn:active { transform: scale(0.97); }
.ob-btn.primary { background: var(--seaweed); color: var(--cream); }
.ob-btn.secondary { background: var(--porcelain); color: var(--soft); border: 1px solid var(--line); }
.ob-btn.skip { flex: 0 0 auto; padding: 13px 18px; font-size: 12px; }

/* ============================================================
   v4 — TIMELINE ITEM REDESIGN: every item is a "what now / where / when until"
   ============================================================ */

/* Apply card treatment to ALL timeline items (not just decorated ones) */
.timeline-item {
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px !important;
  margin: 8px -8px !important;
  position: relative;
  box-shadow: 0 1px 0 var(--line);
}

/* Status pill — NOW / NEXT / IN X / PAST / TONIGHT — injected by JS */
.ti-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ti-status.status-now {
  background: #FFE3E3;
  color: #C82424;
}
.ti-status.status-now::before { content: "● "; animation: dot-pulse 1.4s ease-in-out infinite; }
.ti-status.status-next {
  background: var(--amber-soft, #FFF4E0);
  color: #7A4A00;
}
.ti-status.status-soon {
  background: #E2F0F8;
  color: #1F4F8C;
}
.ti-status.status-past {
  background: var(--mint);
  color: var(--spinach);
  opacity: 0.5;
}
.ti-status.status-tonight {
  background: #1A2A4A;
  color: #C5DAFA;
}
.ti-status.status-tomorrow {
  background: #F2EBD3;
  color: #6E5A1A;
}

/* Past items get faded */
.timeline-item.is-past {
  opacity: 0.55;
}
.timeline-item.is-past .timeline-content strong {
  text-decoration: line-through;
  text-decoration-color: rgba(14, 55, 39, 0.4);
}

/* WHAT-WHERE-HOW hierarchy applied to every item */
.timeline-item .timeline-content strong {
  display: block;
  font-size: 1.08em;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 4px;
}
.timeline-item .timeline-content .desc {
  font-size: 0.92em;
  color: var(--soft);
  line-height: 1.5;
  display: block;
  margin-top: 4px;
}
.timeline-item .timeline-content .ko {
  font-size: 1.0em;
  font-weight: 600;
  color: var(--seaweed);
  margin-top: 8px;
  line-height: 1.55;
}

/* Time chip — bigger, clearer, action-oriented */
.timeline-item .timeline-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px !important;
  font-weight: 800 !important;
  background: var(--seaweed);
  color: var(--cream);
  display: inline-block !important;
  padding: 4px 11px !important;
  border-radius: 8px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

/* HOW-to-get-there hint inline below title */
.ti-how {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--soft);
  margin: 6px 8px 0 0;
}
.ti-how .how-icon {
  display: inline-flex;
  width: 16px; height: 16px;
  align-items: center; justify-content: center;
}

/* Until-when label */
.ti-until {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--soft);
  background: rgba(14, 55, 39, 0.04);
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 700;
  margin-left: 6px;
  letter-spacing: 0.04em;
}

/* PROACTIVE BANNER — top of Today view, urgent reminders */
.proactive-banner {
  background: linear-gradient(135deg, #C82424 0%, #8C1818 100%);
  color: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px -8px rgba(200, 36, 36, 0.4);
}
.proactive-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(255,255,255,0.18) 0%, transparent 50%);
  pointer-events: none;
}
.proactive-banner .pb-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.proactive-banner .pb-label .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: dot-pulse 1.2s ease-in-out infinite; }
.proactive-banner .pb-action {
  font-family: 'DM Serif Display', 'Noto Serif KR', serif;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 4px;
  position: relative;
}
.proactive-banner .pb-action-ko {
  font-family: 'Noto Serif KR', serif;
  font-weight: 700;
  font-size: 16px;
  opacity: 0.92;
  position: relative;
}
.proactive-banner .pb-detail {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 8px;
  line-height: 1.5;
  position: relative;
}
.proactive-banner .pb-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  position: relative;
}
.proactive-banner .pb-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.25);
  font-family: inherit;
  cursor: pointer;
}
.proactive-banner .pb-cta:active { transform: scale(0.97); }

/* Yellow variant for soft alerts */
.proactive-banner.soft {
  background: linear-gradient(135deg, #D89438 0%, #B8741F 100%);
  box-shadow: 0 8px 24px -8px rgba(216, 148, 56, 0.45);
}

/* Sky variant for info */
.proactive-banner.info {
  background: linear-gradient(135deg, #4A8FB8 0%, #2A6A8E 100%);
  box-shadow: 0 8px 24px -8px rgba(74, 143, 184, 0.4);
}

/* ============================================================
   FLIGHT CARD upgrade — terminal, counter, baggage, transit, deep-links
   ============================================================ */
/* Header on every flight card — explicit tap-to-explore */
.flight-card { position: relative; }
.flight-card::before {
  content: "✈ TAP ANY ACTION BELOW · 아래 버튼을 누르세요";
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 800;
  color: var(--primary);
  background: rgba(42, 200, 100, 0.16);
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.flight-card .flight-deeplinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(226, 255, 230, 0.15);
}
.flight-card .flight-deeplink {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.10);
  color: #fff;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.15);
  -webkit-tap-highlight-color: transparent;
}
.flight-card .flight-deeplink:active { transform: scale(0.97); }
.flight-card .flight-deeplink .ico { font-size: 16px; }
.flight-card .flight-deeplink .lbl { line-height: 1.2; }
.flight-card .flight-deeplink .lbl .ko { display: block; font-size: 10px; opacity: 0.7; font-weight: 600; margin-top: 1px; }

.flight-card .flight-action-line {
  background: rgba(216, 148, 56, 0.18);
  border: 1px solid rgba(216, 148, 56, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 12px;
  font-size: 12.5px;
  color: #FFD89A;
  line-height: 1.5;
}
.flight-card .flight-action-line .icon { margin-right: 6px; }

/* ============================================================
   v5 — BOARDING PASSES (Finnair-style)
   ============================================================ */

.boarding-pass-section {
  margin-bottom: 24px;
}
.boarding-pass-section .bp-section-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  color: var(--spinach);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-left: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.boarding-pass-section .bp-section-title::before {
  content: "";
  width: 16px; height: 2px;
  background: var(--primary);
  border-radius: 1px;
}
.boarding-pass-section .bp-section-title .ko {
  display: inline;
  margin: 0 0 0 4px;
  color: var(--soft);
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 10.5px;
}

/* Boarding pass card — designed to look like a real ticket */
.boarding-pass {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8F6F0 100%);
  border-radius: 18px;
  margin-bottom: 14px;
  box-shadow: 0 8px 30px -10px rgba(14, 55, 39, 0.18), 0 1px 0 rgba(14, 55, 39, 0.05);
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
  color: var(--seaweed);
  display: block;
  /* Subtle pulse on first appearance to telegraph interactivity */
  animation: bp-attention 4s ease-in-out 1.5s 2;
}
@keyframes bp-attention {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 30px -10px rgba(14, 55, 39, 0.18); }
  50% { transform: scale(1.012); box-shadow: 0 12px 36px -10px rgba(0, 178, 240, 0.45); }
}
.boarding-pass:active {
  transform: scale(0.99);
  box-shadow: 0 4px 18px -10px rgba(14, 55, 39, 0.22);
}

/* Big OBVIOUS tap badge in the corner of every boarding pass */
.boarding-pass .bp-tap-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  background: #00B2F0;
  color: #0B0E40;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 0 0 0 rgba(0, 178, 240, 0.6);
  animation: bp-tap-pulse 2s ease-in-out infinite;
}
@keyframes bp-tap-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 178, 240, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(0, 178, 240, 0); }
}

/* Header — Finnair brand bar */
.boarding-pass .bp-header {
  background: linear-gradient(135deg, #0B0E40 0%, #1F2880 100%);
  color: #FFF;
  padding: 14px 20px 12px;
  position: relative;
  overflow: hidden;
}
.boarding-pass .bp-header::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(0, 178, 240, 0.32) 0%, transparent 70%);
  pointer-events: none;
}
.boarding-pass .bp-airline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.boarding-pass .bp-airline .bp-class-tag {
  background: #00B2F0;
  color: #0B0E40;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
}
.boarding-pass .bp-flight-no {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.1em;
  position: relative;
}

/* Route block (BLQ → HEL) */
.boarding-pass .bp-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 14px;
  border-bottom: 1px dashed rgba(14, 55, 39, 0.18);
}
.boarding-pass .bp-route .bp-airport {
  display: flex;
  flex-direction: column;
}
.boarding-pass .bp-route .bp-airport.right { text-align: right; align-items: flex-end; }
.boarding-pass .bp-route .bp-code {
  font-family: 'DM Serif Display', serif;
  font-size: 38px;
  line-height: 1;
  color: var(--seaweed);
  font-weight: 400;
}
.boarding-pass .bp-route .bp-city {
  font-size: 11px;
  color: var(--soft);
  margin-top: 4px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.boarding-pass .bp-route .bp-arrow {
  font-size: 22px;
  color: var(--primary);
  font-weight: 800;
}

/* Departure datetime row */
.boarding-pass .bp-when {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  font-family: 'IBM Plex Mono', monospace;
  border-bottom: 1px dashed rgba(14, 55, 39, 0.18);
}
.boarding-pass .bp-when .label {
  font-size: 9.5px;
  color: var(--softer);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2px;
}
.boarding-pass .bp-when .value {
  font-size: 16px;
  color: var(--seaweed);
  font-weight: 700;
}

/* Passenger + Seat — the big part */
.boarding-pass .bp-pax {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px dashed rgba(14, 55, 39, 0.18);
  align-items: center;
}
.boarding-pass .bp-pax .bp-pax-info .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  color: var(--softer);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 3px;
}
.boarding-pass .bp-pax .bp-pax-info .name {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  line-height: 1.1;
  color: var(--seaweed);
  font-weight: 400;
}
.boarding-pass .bp-pax .bp-pax-info .name-ko {
  font-size: 12px;
  color: var(--soft);
  margin-top: 2px;
  font-weight: 600;
}
.boarding-pass .bp-pax .bp-seat {
  text-align: right;
}
.boarding-pass .bp-pax .bp-seat .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  color: var(--softer);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 3px;
}
.boarding-pass .bp-pax .bp-seat .number {
  font-family: 'DM Serif Display', serif;
  font-size: 56px;
  line-height: 0.95;
  color: #0B0E40;
  font-weight: 400;
}
.boarding-pass .bp-pax .bp-seat .pos {
  font-size: 11px;
  color: #00B2F0;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Gate row */
.boarding-pass .bp-gate {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 20px;
  background: linear-gradient(180deg, rgba(11, 14, 64, 0.04) 0%, transparent 100%);
}
.boarding-pass .bp-gate .gate-cell {
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
}
.boarding-pass .bp-gate .gate-cell .label {
  font-size: 9px;
  color: var(--softer);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 3px;
}
.boarding-pass .bp-gate .gate-cell .value {
  font-size: 17px;
  color: var(--seaweed);
  font-weight: 700;
}
.boarding-pass .bp-gate .gate-cell.urgent .value { color: #C82424; }

/* Footer — VERY prominent open-PDF CTA — this is the primary action */
.boarding-pass .bp-footer {
  background: linear-gradient(135deg, #00B2F0 0%, #0090C8 100%);
  color: #FFF;
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.boarding-pass .bp-footer .ticket-no {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.85;
  text-align: center;
}
.boarding-pass .bp-footer .open-pass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #FFFFFF;
  color: #0B0E40;
  padding: 13px 20px;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px -4px rgba(11, 14, 64, 0.3);
  position: relative;
}
.boarding-pass .bp-footer .open-pass::after {
  content: " →";
  font-size: 18px;
  color: #00B2F0;
  font-weight: 900;
}
.boarding-pass .bp-footer .open-pass .ko {
  display: inline;
  margin: 0 0 0 4px;
  font-size: 0.85em;
  opacity: 0.7;
}

/* "Punched ticket" notch effect on each side */
.boarding-pass::before, .boarding-pass::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cream);
  z-index: 2;
}
body.view-flights .boarding-pass::before, body.view-flights .boarding-pass::after { background: var(--cream); }
.boarding-pass::before {
  left: -8px;
  top: calc(100% - 88px);
  box-shadow: inset 1px 0 4px -1px rgba(14, 55, 39, 0.15);
}
.boarding-pass::after {
  right: -8px;
  top: calc(100% - 88px);
  box-shadow: inset -1px 0 4px -1px rgba(14, 55, 39, 0.15);
}

/* ============================================================
   "BOARDING PASS READY" tile in Today view
   ============================================================ */
.boarding-ready-tile {
  background: linear-gradient(135deg, #00B2F0 0%, #0B0E40 100%);
  color: #FFF;
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px -8px rgba(11, 14, 64, 0.4);
  position: relative;
  overflow: hidden;
}
.boarding-ready-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 20%, rgba(255,255,255,0.18) 0%, transparent 50%);
  pointer-events: none;
}
.boarding-ready-tile .br-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.8;
  display: flex; align-items: center; gap: 6px;
  position: relative;
}
.boarding-ready-tile .br-label .dot { width: 8px; height: 8px; border-radius: 50%; background: #00FF99; animation: dot-pulse 1.4s ease-in-out infinite; }
.boarding-ready-tile .br-action {
  font-family: 'DM Serif Display', 'Noto Serif KR', serif;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 4px;
  position: relative;
}
.boarding-ready-tile .br-action-ko {
  font-family: 'Noto Serif KR', serif;
  font-weight: 700;
  font-size: 16px;
  opacity: 0.92;
  position: relative;
}
.boarding-ready-tile .br-passes {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  position: relative;
}
.boarding-ready-tile .br-pass-mini {
  flex: 1;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 10px 12px;
  text-decoration: none;
  color: #FFF;
  -webkit-tap-highlight-color: transparent;
}
.boarding-ready-tile .br-pass-mini:active { transform: scale(0.96); }
.boarding-ready-tile .br-pass-mini .name {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}
.boarding-ready-tile .br-pass-mini .seat {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  line-height: 1;
}
.boarding-ready-tile .br-pass-mini .pos {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: #00FF99;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 800;
}

/* HIDDEN for now — profile chip & Ask Claude (de-cluttering per Grace's feedback)
   To restore: remove the display:none rule below. Profile is still applied
   via body classes and re-onboarding works via URL `?profile=...&clear=1` or
   localStorage.removeItem('tc_profile_v1'). */
.profile-chip { display: none !important; }
.ask-claude-btn { display: none !important; }

/* (Original profile chip styles retained below in case we restore the floating placement) */
.profile-chip {
  position: fixed;
  top: 14px;
  left: 14px;
  background: var(--seaweed);
  color: var(--cream);
  border: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 99;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px -4px rgba(14, 55, 39, 0.4);
  -webkit-tap-highlight-color: transparent;
}
.profile-chip:active { transform: scale(0.96); }
.profile-chip .pc-emoji { font-size: 14px; }

/* ============================================================
   AGENTIC LAYER — Nomni cream-and-green, no darkness
   Status ribbon · live clock · all-today · city filter · chat
   ============================================================ */

/* Body stays cream — NO gradient, NO dark background */
body {
  background: var(--cream) !important;
  color: var(--seaweed);
}

/* ---------- STATUS RIBBON — sticky chips on cream ---------- */
.status-ribbon {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  gap: 8px;
  padding: 10px 4px;
  margin: 0 -16px;
  background: rgba(250, 247, 233, 0.96);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(14, 55, 39, 0.06);
}
.status-ribbon::-webkit-scrollbar { display: none; }
.status-ribbon .sr-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--porcelain);
  border: 1.5px solid rgba(14, 55, 39, 0.12);
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--seaweed);
  text-decoration: none;
  box-shadow: 0 1px 0 0 rgba(14, 55, 39, 0.05);
  cursor: pointer;
  transition: transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.status-ribbon .sr-chip:active { transform: translateY(1px); }
.status-ribbon .sr-chip.flight {
  background: var(--seaweed);
  color: var(--mint);
  border-color: var(--seaweed);
}
.status-ribbon .sr-chip.flight .sr-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  animation: sr-pulse 1.6s ease-in-out infinite;
}
@keyframes sr-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--primary); }
  50%      { box-shadow: 0 0 0 6px rgba(42, 200, 100, 0); }
}
.status-ribbon .sr-chip.weather { background: var(--mint); border-color: rgba(7, 103, 21, 0.2); color: var(--spinach); }
.status-ribbon .sr-chip.hotel { background: var(--warn-bg); border-color: rgba(216, 148, 56, 0.32); color: var(--warn-text); }

/* The BIG LIVE CLOCK chip — primary visual anchor */
.status-ribbon .sr-chip.clock {
  background: var(--seaweed);
  color: var(--mint);
  border-color: var(--seaweed);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 8px 14px;
}
.status-ribbon .sr-chip.clock .sr-clock-time {
  font-size: 17px;
  line-height: 1;
  color: var(--mint);
}
.status-ribbon .sr-chip.clock .sr-clock-city {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
  line-height: 1;
  margin-top: 2px;
  font-weight: 700;
}
.status-ribbon .sr-chip.clock .sr-clock-stack {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
}

/* Push original sticky tab nav below the ribbon */
.tab-nav { top: 50px !important; }
.tab-nav button.active {
  background: var(--mint) !important;
  color: var(--seaweed) !important;
  box-shadow: inset 0 -3px 0 0 var(--primary) !important;
  border-radius: 8px;
}

/* ---------- ALL-TODAY OVERVIEW CARD ---------- */
.all-today-card {
  background: var(--porcelain);
  border: 1.5px solid rgba(14, 55, 39, 0.10);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px -10px rgba(14, 55, 39, 0.18);
}
.all-today-card .at-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 10px;
}
.all-today-card .at-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(14, 55, 39, 0.08);
  position: relative;
}
.all-today-card .at-row:first-of-type { border-top: none; padding-top: 4px; }
.all-today-card .at-time {
  flex: 0 0 60px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 800;
  font-size: 15px;
  color: var(--seaweed);
  line-height: 1.3;
}
.all-today-card .at-time .at-dur {
  display: block;
  font-size: 10px;
  color: var(--soft);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}
.all-today-card .at-body { flex: 1; min-width: 0; }
.all-today-card .at-name {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  line-height: 1.2;
  color: var(--seaweed);
  margin-bottom: 2px;
}
.all-today-card .at-name-ko {
  font-family: 'Noto Serif KR', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--soft);
  margin-bottom: 4px;
}
.all-today-card .at-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12px;
  color: var(--soft);
  margin-top: 4px;
  font-family: 'IBM Plex Mono', monospace;
}
.all-today-card .at-row.is-now {
  background: var(--mint);
  margin: 0 -18px;
  padding: 12px 18px;
  border-top-color: transparent;
}
.all-today-card .at-row.is-now .at-name { color: var(--spinach); }
.all-today-card .at-row.is-now::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(42, 200, 100, 0.20);
}
.all-today-card .at-row.is-past { opacity: 0.45; }
.all-today-card .at-row.is-past .at-name { text-decoration: line-through; text-decoration-color: rgba(14, 55, 39, 0.4); }

/* ---------- BOTTOM ACTION BAR — bright green CTA ---------- */
.bottom-action-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 95;
  background: linear-gradient(180deg, transparent 0%, rgba(250,247,233,0.95) 30%, var(--cream) 100%);
  padding: 22px 16px 18px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.bottom-action-bar .ba-btn {
  pointer-events: auto;
  width: 100%;
  max-width: 510px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--seaweed);
  color: var(--mint);
  border: 2px solid var(--seaweed);
  border-radius: 16px;
  padding: 16px 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 0 0 rgba(14,55,39,0.18), 0 12px 26px -10px rgba(14,55,39,0.35);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}
.bottom-action-bar .ba-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 rgba(14,55,39,0.18), 0 6px 14px -8px rgba(14,55,39,0.35);
}
.bottom-action-bar .ba-btn .ba-arrow {
  font-size: 22px;
  background: var(--primary);
  color: var(--seaweed);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bottom-action-bar .ba-btn .ba-text {
  text-align: left;
  flex: 1;
  line-height: 1.2;
}
.bottom-action-bar .ba-btn .ba-text .ko {
  display: block;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.9;
  margin-top: 3px;
  text-transform: none;
  letter-spacing: 0;
}
body { padding-bottom: 130px !important; }

/* ---------- CITY FILTER — only show today's city in itinerary ---------- */
body.in-bologna   .city-card:not(#bologna),
body.in-helsinki  .city-card:not(#helsinki),
body.in-tallinn   .city-card:not(#tallinn),
body.in-frankfurt .city-card:not(#frankfurt),
body.in-home      .city-card:not(#home) { display: none !important; }
body.show-all-cities .city-card { display: block !important; }

.other-cities-toggle {
  display: block;
  width: 100%;
  margin: 14px 0 16px;
  padding: 12px 16px;
  border: 1.5px dashed rgba(14, 55, 39, 0.22);
  background: var(--porcelain);
  border-radius: 12px;
  color: var(--soft);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.other-cities-toggle:active { background: var(--mint); }
body.show-all-cities .other-cities-toggle {
  background: var(--mint);
  border-style: solid;
  border-color: var(--primary);
  color: var(--spinach);
}

/* ---------- CLAUDE CHAT BOTTOM SHEET — cream surfaces ---------- */
.claude-chat-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.claude-chat-sheet .ccs-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 55, 39, 0);
  transition: background 0.28s ease;
  pointer-events: auto;
}
.claude-chat-sheet.is-open .ccs-overlay {
  background: rgba(14, 55, 39, 0.45);
}
.claude-chat-sheet .ccs-panel {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: var(--cream);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  box-shadow: 0 -16px 48px -16px rgba(14, 55, 39, 0.4);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  max-height: 86vh;
  height: 86vh;
  max-width: 540px;
  margin: 0 auto;
}
.claude-chat-sheet.is-open .ccs-panel { transform: translateY(0); }
.claude-chat-sheet .ccs-grip {
  width: 44px; height: 5px;
  border-radius: 999px;
  background: rgba(14, 55, 39, 0.18);
  margin: 10px auto 4px;
}
.claude-chat-sheet .ccs-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 12px;
  border-bottom: 1px solid rgba(14, 55, 39, 0.08);
}
.claude-chat-sheet .ccs-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--seaweed);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  border: 2px solid var(--seaweed);
  box-shadow: 0 3px 0 0 var(--seaweed);
}
.claude-chat-sheet .ccs-title { flex: 1; }
.claude-chat-sheet .ccs-title .en {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--seaweed);
  letter-spacing: 0.02em;
}
.claude-chat-sheet .ccs-title .ko {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--soft);
  margin-top: 2px;
}
.claude-chat-sheet .ccs-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--seaweed);
  background: var(--porcelain);
  color: var(--seaweed);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 0 0 var(--seaweed);
  -webkit-tap-highlight-color: transparent;
}
.claude-chat-sheet .ccs-close:active { transform: translateY(2px); box-shadow: 0 1px 0 0 var(--seaweed); }

.claude-chat-sheet .ccs-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.claude-chat-sheet .ccs-msg {
  max-width: 92%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 16px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.claude-chat-sheet .ccs-msg.user {
  align-self: flex-end;
  background: var(--seaweed);
  color: var(--mint);
  border-bottom-right-radius: 6px;
  font-weight: 600;
}
.claude-chat-sheet .ccs-msg.assistant {
  align-self: flex-start;
  background: var(--porcelain);
  color: var(--seaweed);
  border-bottom-left-radius: 6px;
  border: 1px solid rgba(14, 55, 39, 0.08);
}
.claude-chat-sheet .ccs-thinking {
  display: inline-flex;
  gap: 6px;
  padding: 16px 18px;
}
.claude-chat-sheet .ccs-thinking .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: ccs-thinking 1.2s ease-in-out infinite;
}
.claude-chat-sheet .ccs-thinking .dot:nth-child(2) { animation-delay: 0.18s; }
.claude-chat-sheet .ccs-thinking .dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes ccs-thinking {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  40%      { opacity: 1; transform: translateY(-3px); }
}
.claude-chat-sheet .ccs-prose { font-size: 16px; line-height: 1.55; }

/* In-chat suggestion card */
.claude-chat-sheet .ccs-suggest {
  margin: 10px 0 4px;
  padding: 14px 16px 12px;
  background: var(--mint);
  border: 2px solid var(--spinach);
  border-radius: 14px;
  box-shadow: 0 4px 0 0 var(--spinach);
}
.claude-chat-sheet .ccs-suggest.is-applied {
  background: var(--warn-bg);
  border-color: var(--warn-text);
  box-shadow: 0 4px 0 0 var(--warn-text);
}
.claude-chat-sheet .ccs-suggest-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--spinach);
  margin-bottom: 6px;
}
.claude-chat-sheet .ccs-suggest-name {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  line-height: 1.15;
  color: var(--seaweed);
}
.claude-chat-sheet .ccs-suggest-name-ko {
  font-family: 'Noto Serif KR', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--soft);
  margin-bottom: 6px;
}
.claude-chat-sheet .ccs-suggest-why { font-size: 14px; line-height: 1.55; color: rgba(14,55,39,0.78); }
.claude-chat-sheet .ccs-suggest-why-ko {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 13px; line-height: 1.5;
  color: var(--soft);
  margin-top: 4px;
}
.claude-chat-sheet .ccs-suggest-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.claude-chat-sheet .ccs-use {
  flex: 1;
  background: var(--seaweed);
  color: var(--mint);
  border: 2px solid var(--seaweed);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.05em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 3px 0 0 rgba(14,55,39,0.4);
  transition: transform 0.1s;
}
.claude-chat-sheet .ccs-use:active { transform: translateY(2px); box-shadow: 0 1px 0 0 rgba(14,55,39,0.4); }
.claude-chat-sheet .ccs-mapbtn {
  background: var(--primary);
  color: var(--seaweed);
  border: 2px solid var(--seaweed);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 3px 0 0 var(--seaweed);
}

/* Starter chips */
.claude-chat-sheet .ccs-starters {
  padding: 4px 18px 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.claude-chat-sheet .ccs-chip {
  background: var(--porcelain);
  border: 2px solid var(--seaweed);
  border-radius: 999px;
  padding: 10px 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--seaweed);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 3px 0 0 var(--seaweed);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.claude-chat-sheet .ccs-chip:active { transform: translateY(2px); box-shadow: 0 1px 0 0 var(--seaweed); }
.claude-chat-sheet .ccs-chip .ko {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.7;
}

/* Input row */
.claude-chat-sheet .ccs-form {
  display: flex;
  gap: 10px;
  padding: 12px 14px 18px;
  border-top: 1px solid rgba(14, 55, 39, 0.08);
  background: var(--cream);
}
.claude-chat-sheet .ccs-input {
  flex: 1;
  background: var(--porcelain);
  border: 2px solid rgba(14, 55, 39, 0.16);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--seaweed);
  outline: none;
  transition: border-color 0.15s;
}
.claude-chat-sheet .ccs-input:focus {
  border-color: var(--primary);
}
.claude-chat-sheet .ccs-send {
  width: 52px;
  height: 52px;
  background: var(--seaweed);
  color: var(--mint);
  border: 2px solid var(--seaweed);
  border-radius: 14px;
  font-size: 26px;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 3px 0 0 rgba(14,55,39,0.45);
}
.claude-chat-sheet .ccs-send:active { transform: translateY(2px); box-shadow: 0 1px 0 0 rgba(14,55,39,0.45); }

/* ============================================================
   v3 LAYOUT — iOS dashboard: top greeting · bottom tabs · trip view
   ============================================================ */

/* ---------- BOTTOM TABS (iOS-style) ---------- */
.tab-nav.tab-nav-bottom {
  position: fixed !important;
  top: auto !important;
  bottom: 0;
  left: 0; right: 0;
  z-index: 90;
  background: rgba(250, 247, 233, 0.97);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid rgba(14, 55, 39, 0.08);
  box-shadow: 0 -8px 22px -10px rgba(14, 55, 39, 0.18);
  padding: 8px 6px calc(env(safe-area-inset-bottom, 0px) + 8px);
  display: flex;
  gap: 2px;
  margin: 0;
  border-radius: 0;
}
.tab-nav.tab-nav-bottom button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent !important;
  border: none !important;
  padding: 8px 4px !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--soft) !important;
  cursor: pointer;
  border-radius: 14px;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  min-height: 56px;
  box-shadow: none !important;
}
.tab-nav.tab-nav-bottom button .tab-emoji {
  font-size: 24px !important;
  line-height: 1;
}
.tab-nav.tab-nav-bottom button .tab-label-en {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tab-nav.tab-nav-bottom button .tab-label-ko {
  font-size: 10px;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  display: none;
}
body.lang-ko-only .tab-nav.tab-nav-bottom button .tab-label-en { display: none; }
body.lang-ko-only .tab-nav.tab-nav-bottom button .tab-label-ko { display: block; }
.tab-nav.tab-nav-bottom button.active {
  background: var(--mint) !important;
  color: var(--spinach) !important;
  box-shadow: inset 0 0 0 2px rgba(7, 103, 21, 0.15) !important;
}
.tab-nav.tab-nav-bottom button:active {
  transform: scale(0.94);
}

/* Body needs space for bottom tabs */
body { padding-bottom: 96px !important; }

/* Bottom action bar sits ABOVE the tabs, not at very bottom */
.bottom-action-bar {
  bottom: 86px !important;
}

/* Ask Claude FAB sits above the tabs */
.ask-claude-btn {
  bottom: 168px !important;
  right: 14px !important;
}

/* Status ribbon stays at top, no longer needs to push tab-nav */
.status-ribbon { top: 0; }
/* Old "tab-nav top: 50px" override is no longer needed; tabs are at bottom now */

/* ---------- DASHBOARD GREETING ---------- */
.dashboard-greeting {
  margin: 14px 0 18px;
  padding: 18px 20px 20px;
  background: var(--porcelain);
  border-radius: 22px;
  box-shadow: 0 8px 30px -12px rgba(14, 55, 39, 0.18);
  border: 1.5px solid rgba(14, 55, 39, 0.08);
}
.dg-clock-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.dg-clock {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--seaweed);
  flex: 0 0 auto;
}
.dg-date { flex: 1; min-width: 0; }
.dg-date-en {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--seaweed);
}
.dg-date-ko {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--soft);
  margin-top: 2px;
}
.dg-city-pill {
  display: inline-block;
  background: var(--mint);
  color: var(--spinach);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  margin-top: 8px;
}

.dg-greet {
  margin: 4px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(14, 55, 39, 0.08);
}
.dg-greet-en {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  line-height: 1.15;
  color: var(--seaweed);
  margin-bottom: 6px;
}
.dg-greet-en strong { font-weight: 400; color: var(--spinach); }
.dg-greet-ko {
  font-family: 'Noto Serif KR', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--soft);
  line-height: 1.3;
}
.dg-greet-ko strong { color: var(--spinach); font-weight: 700; }

.dg-important-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 10px;
}
.dg-important ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dg-important li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--cream);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}
.dg-important li .dg-imp-emoji {
  font-size: 20px;
  line-height: 1.4;
  flex: 0 0 auto;
}
.dg-important li .dg-imp-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  color: var(--seaweed);
  flex: 1;
}
.dg-important li .dg-imp-text .ko {
  display: block;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--soft);
  margin-top: 3px;
}

/* ---------- VIEW: TRIP (overview + map) ---------- */
body.view-trip .city-card,
body.view-trip #flights,
body.view-trip #hotels,
body.view-trip #contacts,
body.view-trip #todayView,
body.view-trip .section-head,
body.view-trip .other-cities-toggle { display: none !important; }
body.view-trip #tripView { display: block; }
#tripView { display: none; }

.trip-header { padding: 18px 4px 6px; }
.trip-h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  line-height: 1;
  color: var(--seaweed);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trip-h1 .ko {
  font-family: 'Noto Serif KR', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--soft);
}
.trip-sub {
  margin: 8px 0 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trip-sub .ko {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 11px;
  font-weight: 600;
}

.trip-map {
  margin: 14px 0 4px;
  padding: 8px;
  background: var(--mint);
  border-radius: 18px;
  border: 1.5px solid rgba(7, 103, 21, 0.18);
  box-shadow: 0 4px 22px -10px rgba(14, 55, 39, 0.20);
}
.trip-map-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.trip-map-svg .trip-pin {
  transition: transform 0.15s ease;
  transform-origin: center;
}
.trip-map-svg .trip-pin:active { transform: scale(0.95); }

.trip-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 10px 6px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
}
.trip-legend .leg-item { display: inline-flex; align-items: center; gap: 6px; }
.trip-legend .leg-dash {
  width: 26px; height: 2px;
  background: var(--spinach);
  display: inline-block;
}
.trip-legend .leg-dash.flight {
  background: repeating-linear-gradient(90deg, var(--spinach) 0 6px, transparent 6px 10px);
}
.trip-legend .leg-dash.ferry {
  background: repeating-linear-gradient(90deg, var(--spinach) 0 2px, transparent 2px 5px);
}
.trip-legend .leg-pin {
  width: 12px; height: 12px;
  background: var(--primary);
  border: 2px solid var(--spinach);
  border-radius: 50%;
}

/* ---------- CITY SUMMARY CARDS ---------- */
.trip-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 8px;
}
.city-summary-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--porcelain);
  border: 2px solid rgba(14, 55, 39, 0.10);
  border-radius: 18px;
  padding: 16px 18px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s, box-shadow 0.12s;
  font-family: inherit;
  color: inherit;
  box-shadow: 0 4px 18px -10px rgba(14, 55, 39, 0.20);
}
.city-summary-card:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px -8px rgba(14, 55, 39, 0.18);
}
.city-summary-card.city-current {
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--mint) 0%, var(--porcelain) 50%);
  box-shadow: 0 6px 24px -10px rgba(42, 200, 100, 0.45);
}
.city-summary-card.city-past { opacity: 0.66; }

.csc-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.csc-num {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  background: var(--seaweed);
  color: var(--mint);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 800;
  font-size: 14px;
}
.city-current .csc-num { background: var(--primary); color: var(--seaweed); }
.csc-flag { font-size: 28px; line-height: 1; }
.csc-title { flex: 1; min-width: 0; }
.csc-name {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  line-height: 1.1;
  color: var(--seaweed);
}
.csc-name-ko {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--soft);
  margin-top: 2px;
}
.city-state {
  flex: 0 0 auto;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 5px 9px;
  border-radius: 999px;
  margin-top: 4px;
  white-space: nowrap;
}
.city-state.current { background: var(--primary); color: var(--seaweed); }
.city-state.past    { background: var(--cream); color: var(--soft); border: 1px solid rgba(14,55,39,0.15); }
.city-state.future  { background: var(--mint); color: var(--spinach); }

.csc-row {
  display: flex;
  gap: 18px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(14, 55, 39, 0.12);
}
.csc-stat .csc-stat-k {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 2px;
}
.csc-stat .csc-stat-v {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  color: var(--seaweed);
}
.csc-hotel {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--seaweed);
  margin-bottom: 10px;
}
.csc-transport {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--soft);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.csc-highlights {
  list-style: none;
  padding: 0; margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.csc-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
}
.csc-highlights li .emoji { font-size: 18px; flex: 0 0 auto; line-height: 1.3; }
.csc-highlights li .text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--seaweed);
  line-height: 1.4;
  flex: 1;
}
.csc-highlights li .text .ko {
  display: block;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--soft);
  margin-top: 2px;
}
.csc-cta {
  margin-top: 6px;
  padding: 10px 12px;
  background: var(--seaweed);
  color: var(--mint);
  border-radius: 10px;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.city-current .csc-cta { background: var(--primary); color: var(--seaweed); }


/* ============================================================
   ADDRESS PROMINENCE — most important info for elderly travellers
   ============================================================ */

/* All Hotels tab: promote .hotel-addr to a big callout */
.hotel-addr {
  font-size: 17px !important;
  color: var(--seaweed) !important;
  font-weight: 600 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  line-height: 1.45 !important;
  background: var(--mint);
  padding: 14px 16px 14px 44px !important;
  border-radius: 14px;
  border-left: 5px solid var(--primary);
  margin: 12px 0 !important;
  position: relative;
  letter-spacing: 0.005em;
}
.hotel-addr::before {
  content: "📍";
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 22px;
  line-height: 1;
}

/* Tonight-card and other inline address callouts */
.address-block {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--mint);
  border: 2px solid var(--primary);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0 8px;
  text-decoration: none;
  color: var(--seaweed);
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 0 0 var(--spinach);
  transition: transform 0.1s, box-shadow 0.1s;
}
.address-block:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 0 var(--spinach);
}
.address-block .address-pin {
  font-size: 26px;
  line-height: 1;
  flex: 0 0 auto;
}
.address-block .address-text {
  flex: 1;
  min-width: 0;
}
.address-block .address-line {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--seaweed);
  line-height: 1.35;
}
.address-block .address-line-ko {
  display: block;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--soft);
  margin-top: 3px;
  line-height: 1.3;
}
.address-block .address-tap {
  flex: 0 0 auto;
  background: var(--seaweed);
  color: var(--mint);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Phone row in tonight-card */
.phone-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  color: var(--seaweed);
  border: 1.5px solid rgba(14, 55, 39, 0.16);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 4px;
  -webkit-tap-highlight-color: transparent;
}

/* Trip view city summary card — hotel block with prominent address */
.csc-hotel {
  background: var(--cream);
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 10px;
  border-left: 4px solid var(--primary);
}
.csc-hotel-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--seaweed);
  margin-bottom: 6px;
}
.csc-hotel-addr {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--seaweed);
  line-height: 1.4;
}
.csc-hotel-addr-ko {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--soft);
  margin-top: 3px;
  line-height: 1.3;
}

