/* ============================================================
   CSS Custom Properties — Dark Theme
   ============================================================ */
:root {
  --bg:            #0d0d14;
  --surface:       #151828;
  --card:          #1c2035;
  --card-hover:    #222540;
  --border:        #252a3d;
  --border-light:  #2e3450;

  --text:          #dde3f0;
  --text-muted:    #8896b0;
  --text-dim:      #4e5a78;

  /* Accent palette */
  --c-flight:    #5b8dee;
  --c-hotel:     #9b6dff;
  --c-transport: #f7913a;
  --c-event:     #43d68c;
  --c-research:  #f5c842;
  --c-meal:      #f06292;
  --c-meeting:   #38bdf8;
  --c-break:     #4e5a78;

  --font: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 10px;
  --transition: 0.2s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

code {
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  font-size: 0.85em;
  background: var(--border);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--c-event);
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ============================================================
   Site Footer
   ============================================================ */
.site-footer-bar {
  flex-shrink: 0;
  background: #0a0b12;
  border-top: 1px solid var(--border);
  padding: 10px 24px;
  z-index: 10;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 1600px;
  margin: 0 auto;
}

.footer-version {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-event);
  background: rgba(67,214,140,0.1);
  border: 1px solid rgba(67,214,140,0.2);
  border-radius: 4px;
  padding: 1px 7px;
  letter-spacing: 0.03em;
}

.footer-divider {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.footer-credit {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-link {
  color: var(--c-flight);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}

.footer-link:hover { color: #93c5fd; text-decoration: underline; }

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .site-footer-bar { padding: 10px 16px; }
  .footer-version   { font-size: 0.88rem; }
  .footer-credit    { font-size: 0.88rem; }
  .footer-copy      { font-size: 0.85rem; }
}

/* ============================================================
   Lock Screen
   ============================================================ */
.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lock-screen.hidden { display: none; }

.lock-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.lock-hero {
  position: relative;
  height: 170px;
  overflow: hidden;
}

.lock-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.lock-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--surface) 100%);
}

.lock-body {
  padding: 0 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lock-icon {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
  margin-top: -28px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  border: 2px solid var(--border-light);
  margin-bottom: 14px;
}

.lock-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.lock-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.lock-input-wrap {
  display: flex;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.lock-input-wrap:focus-within {
  border-color: var(--c-event);
}

.lock-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.2em;
}

.lock-input::placeholder { letter-spacing: 0; color: var(--text-dim); }

.lock-submit {
  background: var(--c-event);
  border: none;
  color: #0a0b12;
  font-size: 1.1rem;
  font-weight: 700;
  width: 46px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}

.lock-submit:hover { background: #5ff0a0; }

.lock-error {
  font-size: 0.75rem;
  color: var(--c-meal);
  margin-top: 8px;
  min-height: 18px;
  display: none;
}

.lock-error.visible { display: block; }

.lock-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.lock-remember input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--c-event);
  cursor: pointer;
}

/* ============================================================
   Logout Button (topnav)
   ============================================================ */
.topnav-logout {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.78rem;
  padding: 5px 11px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  margin-left: 8px;
  white-space: nowrap;
}

.topnav-logout:hover {
  color: var(--c-meal);
  border-color: var(--c-meal);
  background: rgba(240,98,146,0.08);
}

.logout-icon { display: flex; align-items: center; flex-shrink: 0; }

@media (max-width: 768px) {
  .logout-label { display: none; }
  .topnav-logout { padding: 5px 8px; }
}

/* ============================================================
   Page System
   ============================================================ */
#pagesContainer {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.app-page {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.app-page.active { display: flex; }

/* ============================================================
   Inner page header (계산기·회화 공통)
   ============================================================ */
.inner-page-header {
  flex-shrink: 0;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.inner-page-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.inner-page-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   Topnav — page buttons
   ============================================================ */
.topnav-pages {
  display: flex;
  gap: 2px;
  margin-right: 6px;
}

.topnav-page-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.topnav-page-btn:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.topnav-page-btn.active {
  color: var(--c-event);
  background: rgba(67,214,140,0.1);
  border-color: rgba(67,214,140,0.25);
}

/* Hide day links when not on main page */
body.on-page-calc  .topnav-days,
body.on-page-phrases .topnav-days { display: none !important; }

/* ============================================================
   Offcanvas menu list (page links)
   ============================================================ */
.oc-menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.oc-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  text-align: left;
}

.oc-menu-btn:hover { background: var(--card-hover); color: var(--text); }

.oc-menu-btn.active {
  color: var(--c-event);
  border-color: rgba(67,214,140,0.35);
  background: rgba(67,214,140,0.07);
}

/* ============================================================
   Calculator Page
   ============================================================ */
.calc-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.calc-rate-card {
  width: 100%;
  max-width: 480px;
  background: rgba(67,214,140,0.07);
  border: 1px solid rgba(67,214,140,0.25);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.calc-rate-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.calc-rate-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-event);
  flex: 1;
}

.calc-rate-date {
  font-size: 0.7rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.calc-card {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Direction toggle */
.calc-dir-toggle {
  display: flex;
  background: var(--bg);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}

.calc-dir-btn {
  flex: 1;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 8px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.calc-dir-btn.active {
  background: var(--card-hover);
  color: var(--c-event);
}

/* From input */
.calc-from-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calc-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color var(--transition);
  margin-top: 6px;
}

.calc-input-wrap:focus-within { border-color: var(--c-event); }

.calc-currency-badge {
  padding: 0 14px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.calc-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  min-width: 0;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Quick amount buttons */
.calc-quick-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.calc-quick {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 4px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.calc-quick:hover {
  background: var(--card-hover);
  border-color: var(--c-event);
  color: var(--c-event);
}

/* Arrow */
.calc-arrow {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-dim);
}

/* Result */
.calc-result-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: var(--bg);
  border-radius: 10px;
  padding: 14px 16px;
  min-height: 64px;
}

.calc-result-currency {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-muted);
}

.calc-result-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-event);
  letter-spacing: -0.02em;
}

.calc-tip {
  width: 100%;
  max-width: 480px;
  font-size: 0.73rem;
  color: var(--text-dim);
  background: var(--card);
  border-radius: 8px;
  padding: 10px 14px;
  line-height: 1.5;
}

/* ============================================================
   Phrasebook Page
   ============================================================ */
.phrases-wrap {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.phrase-cat-tabs {
  flex-shrink: 0;
  display: flex;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  gap: 4px;
}

.phrase-cat-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 13px 18px 10px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.phrase-cat-btn:hover { color: var(--text); }
.phrase-cat-btn.active { color: var(--c-event); border-bottom-color: var(--c-event); }

.phrase-search-wrap {
  flex-shrink: 0;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.phrase-search {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: 9px;
  padding: 9px 14px;
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.phrase-search:focus { border-color: var(--c-event); }
.phrase-search::placeholder { color: var(--text-dim); }

/* Phrase grid */
.phrase-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
  align-content: start;
}

/* Category divider */
.phrase-cat-divider {
  grid-column: 1 / -1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 2px 4px;
  border-bottom: 1px solid var(--border);
  margin-top: 4px;
}

.phrase-cat-divider:first-child { margin-top: 0; }

/* Phrase card */
.phrase-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  cursor: default;
  transition: background var(--transition), border-color var(--transition);
}

.phrase-card:hover {
  background: var(--card-hover);
  border-color: var(--border-light);
}

.phrase-ko {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.phrase-jp {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  word-break: keep-all;
}

.phrase-read {
  font-size: 0.83rem;
  color: #9faec8;
  font-style: italic;
}

/* Actions row */
.phrase-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

/* Play button */
.phrase-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(67,214,140,0.1);
  border: 1px solid rgba(67,214,140,0.3);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--c-event);
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.phrase-play-btn:hover { background: rgba(67,214,140,0.2); }

.phrase-play-btn.playing {
  background: var(--c-event);
  color: #0a0b12;
  border-color: var(--c-event);
}

.phrase-play-btn.playing svg polygon {
  /* show stop square when playing */
  d: path("M6,6 h12 v12 h-12 z");
}

/* Copy button */
.phrase-copy-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-family: var(--font);
  color: var(--text-dim);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.phrase-copy-btn:hover { color: var(--c-event); border-color: var(--c-event); }
.phrase-copy-btn.copied { color: var(--c-event); border-color: var(--c-event); }

/* No results */
.phrase-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 40px 0;
}

/* ============================================================
   Responsive overrides for new pages
   ============================================================ */
@media (max-width: 768px) {
  .topnav-pages { display: none; }

  .calc-wrap { padding: 16px; }
  .calc-input { font-size: 1.3rem; }
  .calc-result-val { font-size: 1.6rem; }
  .calc-quick-btns { grid-template-columns: repeat(3, 1fr); }

  .phrase-list {
    grid-template-columns: 1fr;
    padding: 12px 14px 40px;
  }

  .inner-page-header { padding: 16px 16px 12px; }
}

/* ============================================================
   Hero Banner — offcanvas only (main page hero removed)
   ============================================================ */

/* ============================================================
   Offcanvas hero image
   ============================================================ */
.oc-hero {
  flex-shrink: 0;
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: #0a0b12;
  position: relative;
  cursor: zoom-in;
}

.oc-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.oc-hero:hover .oc-hero-img,
.oc-hero:focus .oc-hero-img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.oc-hero-hint {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.45);
  border-radius: 6px;
  padding: 3px 8px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 900px);
  max-height: 90vh;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  transform: scale(0.9);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.is-open .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  display: block;
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 14px;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}

.lightbox-close:hover { background: rgba(240,98,146,0.7); }

/* ============================================================
   Topnav brand image
   ============================================================ */
.topnav-brand-img {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.oc-brand-img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

/* ============================================================
   Top Navigation Bar
   ============================================================ */
.topnav {
  flex-shrink: 0;
  height: 52px;
  background: #0a0b12;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}

.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 20px;
  max-width: 1600px;
  margin: 0 auto;
}

.topnav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger button */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.2s;
  transform-origin: center;
}

.hamburger-btn:hover span { background: var(--text); }

.hamburger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Brand */
.topnav-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.topnav-brand-icon { font-size: 1rem; }

.topnav-brand-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Desktop day links (topnav right) */
.topnav-right { display: flex; align-items: center; }

.topnav-days {
  display: flex;
  gap: 2px;
}

.topnav-day {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.topnav-day em {
  font-style: normal;
  font-weight: 400;
  opacity: 0.7;
  margin-left: 2px;
}

.topnav-day:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.topnav-day.active {
  color: var(--c-event);
  background: rgba(67, 214, 140, 0.1);
}

/* ============================================================
   Offcanvas Backdrop
   ============================================================ */
.oc-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.oc-backdrop.is-open {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   Offcanvas Sidebar
   ============================================================ */
.offcanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 88vw;
  height: 100%;
  background: var(--surface);
  border-right: 1px solid var(--border-light);
  z-index: 400;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.offcanvas.is-open { transform: translateX(0); }

/* Offcanvas header */
.oc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 52px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: #0a0b12;
}

.oc-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.oc-brand-icon { font-size: 1rem; }

.oc-brand-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.oc-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), background var(--transition);
}

.oc-close-btn:hover { color: var(--text); background: var(--card-hover); }

/* Offcanvas body */
.oc-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 32px;
}

.oc-body::-webkit-scrollbar { width: 4px; }
.oc-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Sections */
.oc-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.oc-section:last-child { border-bottom: none; }

.oc-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Key-value rows */
.oc-kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}

.oc-kv span {
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.oc-kv strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

/* Day list */
.oc-day-list { display: flex; flex-direction: column; gap: 4px; }

.oc-day-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 14px;
  cursor: pointer;
  font-family: var(--font);
  transition: background var(--transition), border-color var(--transition);
  text-align: left;
}

.oc-day-btn:hover { background: var(--card-hover); border-color: var(--border-light); }

.oc-day-btn.active {
  border-color: rgba(67, 214, 140, 0.4);
  background: rgba(67, 214, 140, 0.07);
}

.oc-day-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-event);
  background: rgba(67, 214, 140, 0.12);
  border: 1px solid rgba(67, 214, 140, 0.2);
  border-radius: 5px;
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.oc-day-name {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text);
  flex: 1;
}

.oc-day-arrow {
  font-size: 1rem;
  color: var(--text-dim);
  margin-left: auto;
}

/* Flights */
.oc-flight {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 13px;
  margin-bottom: 8px;
}

.oc-flight:last-child { margin-bottom: 0; }

.oc-flight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.oc-flight-code {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-flight);
}

.oc-flight-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--c-flight);
  background: rgba(91, 141, 238, 0.12);
  border: 1px solid rgba(91, 141, 238, 0.2);
  border-radius: 4px;
  padding: 1px 7px;
}

.oc-flight-tag-return {
  color: var(--c-hotel);
  background: rgba(155, 109, 255, 0.12);
  border-color: rgba(155, 109, 255, 0.2);
}

.oc-flight-route {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.oc-flight-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Places */
.oc-place {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.oc-place:last-child { margin-bottom: 0; }

.oc-place-icon { font-size: 1.1rem; margin-top: 1px; flex-shrink: 0; }

.oc-place-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 2px;
}

.oc-place-sub {
  display: block;
  font-size: 0.71rem;
  color: var(--text-muted);
}

/* ============================================================
   Site Header
   ============================================================ */
.site-header {
  flex-shrink: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1600px;
  margin: 0 auto;
}

.trip-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trip-route {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(91, 141, 238, 0.12);
  border: 1px solid rgba(91, 141, 238, 0.25);
  border-radius: 8px;
  padding: 5px 10px;
}

.route-city {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--c-flight);
  letter-spacing: 0.04em;
}

.route-arrow {
  font-size: 0.75rem;
  color: var(--c-flight);
  opacity: 0.7;
}

.trip-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.trip-dates {
  display: block;
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Header right (chips + exchange) */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.flight-chips {
  display: flex;
  gap: 8px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 7px 12px;
  transition: border-color var(--transition);
}

.chip:hover { border-color: var(--c-flight); }

.chip-icon {
  font-size: 0.95rem;
  color: var(--c-flight);
  flex-shrink: 0;
  display: inline-block;
}

.chip-icon-flip { transform: scaleX(-1); }

.chip-code {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.chip-route {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.2;
  white-space: nowrap;
}

/* Exchange Rate Badge */
.exchange-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 200, 66, 0.08);
  border: 1px solid rgba(245, 200, 66, 0.2);
  border-radius: var(--radius);
  padding: 7px 12px;
  min-width: 110px;
}

.exchange-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.exchange-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.exchange-value {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-research);
  line-height: 1.2;
  white-space: nowrap;
}

.exchange-value.loading {
  color: var(--text-dim);
  font-weight: 400;
}

/* ============================================================
   Weather Bar
   ============================================================ */
.weather-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.weather-bar::-webkit-scrollbar { height: 0; }

.weather-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.weather-cards {
  display: flex;
  gap: 8px;
  flex: 1;
}

.weather-card {
  flex: 1;
  min-width: 80px;
  max-width: 120px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color var(--transition), background var(--transition);
  cursor: default;
}

.weather-card.active-day {
  border-color: var(--c-event);
  background: rgba(67, 214, 140, 0.05);
}

.weather-card:hover {
  background: var(--card-hover);
}

.wc-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1;
}

.wc-info {
  min-width: 0;
}

.wc-date {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1px;
}

.wc-temp {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.wc-precip {
  font-size: 0.65rem;
  color: var(--c-flight);
  margin-top: 1px;
}

/* Skeleton loader */
.weather-skeleton {
  flex: 1;
  min-width: 80px;
  max-width: 120px;
  height: 52px;
  background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   Day Tabs
   ============================================================ */
.day-tabs {
  flex-shrink: 0;
  display: flex;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.day-tabs::-webkit-scrollbar { height: 0; }

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 11px 22px 8px;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-family: var(--font);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  border-radius: 0;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text);
  background: rgba(255,255,255,0.03);
}

.tab-btn.active {
  color: var(--c-event);
  border-bottom-color: var(--c-event);
}

.tab-date { font-size: 0.93rem; font-weight: 700; }
.tab-dow  { font-size: 0.68rem; font-weight: 400; opacity: 0.8; }

/* ============================================================
   Content Wrapper
   ============================================================ */
.content-wrapper {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

/* ============================================================
   Timeline Panel
   ============================================================ */
.timeline-panel {
  width: 380px;
  min-width: 300px;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 24px 22px 40px;
  border-right: 1px solid var(--border);
  background: var(--bg);
}

/* Day header */
.day-header {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.day-header-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
}

.day-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(67, 214, 140, 0.12);
  border: 1px solid rgba(67, 214, 140, 0.25);
  border-radius: 6px;
  padding: 2px 9px;
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--c-event);
}

.day-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.day-date {
  font-size: 0.73rem;
  color: var(--text-muted);
}

/* Timeline */
.tl-list { position: relative; }

.tl-item {
  display: flex;
  gap: 0;
  position: relative;
  animation: fadeSlideIn 0.25s ease both;
}

.tl-item:last-child .tl-line { display: none; }

.tl-time {
  width: 50px;
  flex-shrink: 0;
  text-align: right;
  padding-top: 11px;
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.2;
  padding-right: 10px;
}

.tl-axis {
  width: 18px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tl-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 12px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 3px var(--bg);
}

.tl-line {
  width: 2px;
  flex: 1;
  min-height: 16px;
  margin: 3px 0 0;
  opacity: 0.22;
}

.tl-card {
  flex: 1;
  margin: 5px 0 14px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 13px;
  border-left: 3px solid;
  transition: background var(--transition);
  cursor: default;
}

.tl-card:hover { background: var(--card-hover); }

.tl-card-header {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 2px;
}

.tl-icon { font-size: 0.82rem; flex-shrink: 0; margin-top: 1px; }

.tl-title {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.tl-subtitle { font-size: 0.74rem; color: var(--text-muted); margin: 2px 0 4px; }

.tl-location {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.tl-location-icon { flex-shrink: 0; margin-top: 1px; opacity: 0.7; }

.tl-timerange { font-size: 0.7rem; color: var(--text-dim); margin-top: 4px; }

/* Clickable timeline item */
.tl-item-clickable .tl-card { cursor: pointer; }
.tl-item-clickable .tl-card:hover { background: var(--card-hover); border-left-width: 4px; }
.tl-item-active .tl-card {
  background: var(--card-hover) !important;
  border-left-width: 4px !important;
  box-shadow: 0 0 0 1px rgba(67,214,140,0.18);
}
.tl-map-hint {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 6px;
  opacity: 0.6;
}
.tl-item-clickable .tl-card:hover .tl-map-hint,
.tl-item-active .tl-map-hint { opacity: 1; color: var(--c-event); }

.tl-note {
  margin-top: 7px;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 0.71rem;
  line-height: 1.4;
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border-left: 2px solid;
}

/* ── Type colours ── */
.type-flight    .tl-dot  { background: var(--c-flight); }
.type-flight    .tl-line { background: var(--c-flight); }
.type-flight    .tl-card { border-left-color: var(--c-flight); }
.type-flight    .tl-title { color: var(--c-flight); }
.type-flight    .tl-note { border-left-color: var(--c-flight); }

.type-hotel     .tl-dot  { background: var(--c-hotel); }
.type-hotel     .tl-line { background: var(--c-hotel); }
.type-hotel     .tl-card { border-left-color: var(--c-hotel); }
.type-hotel     .tl-note { border-left-color: var(--c-hotel); }

.type-transport .tl-dot  { background: var(--c-transport); }
.type-transport .tl-line { background: var(--c-transport); }
.type-transport .tl-card { border-left-color: var(--c-transport); }
.type-transport .tl-note { border-left-color: var(--c-transport); }

.type-event     .tl-dot  { background: var(--c-event); }
.type-event     .tl-line { background: var(--c-event); }
.type-event     .tl-card { border-left-color: var(--c-event); }
.type-event     .tl-note { border-left-color: var(--c-event); }

.type-research  .tl-dot  { background: var(--c-research); }
.type-research  .tl-line { background: var(--c-research); }
.type-research  .tl-card { border-left-color: var(--c-research); }
.type-research  .tl-note { border-left-color: var(--c-research); }

.type-meal      .tl-dot  { background: var(--c-meal); }
.type-meal      .tl-line { background: var(--c-meal); }
.type-meal      .tl-card { border-left-color: var(--c-meal); }
.type-meal      .tl-note { border-left-color: var(--c-meal); }

.type-meeting   .tl-dot  { background: var(--c-meeting); }
.type-meeting   .tl-line { background: var(--c-meeting); }
.type-meeting   .tl-card { border-left-color: var(--c-meeting); }
.type-meeting   .tl-note { border-left-color: var(--c-meeting); }

.type-break     .tl-dot  { background: var(--c-break); }
.type-break     .tl-line { background: var(--c-break); }
.type-break     .tl-card { border-left-color: var(--c-break); }
.type-break     .tl-note { border-left-color: var(--c-break); }

/* ============================================================
   Map Panel
   ============================================================ */
.map-panel {
  flex: 1;
  position: relative;
  background: var(--card);
  min-width: 0;
}

#map { width: 100%; height: 100%; min-height: 300px; }

.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  z-index: 1;
}

.map-placeholder-body { text-align: center; padding: 32px; }

.map-placeholder-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 14px;
  opacity: 0.55;
}

.map-placeholder-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.map-placeholder-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.8;
}

/* Google Maps dark InfoWindow */
.gm-style .gm-style-iw-c {
  background-color: #1c2035 !important;
  border: 1px solid #2e3450 !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6) !important;
  padding: 0 !important;
}

.gm-style .gm-style-iw-d { overflow: hidden !important; }

.gm-style .gm-style-iw-t::after {
  background: linear-gradient(45deg, #1c2035 50%, transparent 51%) !important;
  box-shadow: -2px 2px 3px -1px rgba(0,0,0,0.4) !important;
}

.gm-style .gm-ui-hover-effect > span { background-color: #8896b0 !important; }

/* ============================================================
   Animations
   ============================================================ */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-6px); }
  40%     { transform: translateX(6px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tl-item:nth-child(1) { animation-delay: 0.03s; }
.tl-item:nth-child(2) { animation-delay: 0.07s; }
.tl-item:nth-child(3) { animation-delay: 0.11s; }
.tl-item:nth-child(4) { animation-delay: 0.15s; }
.tl-item:nth-child(5) { animation-delay: 0.19s; }

/* ============================================================
   Responsive — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* topnav: hide desktop day links */
  .topnav-days { display: none; }

  html, body {
    overflow: auto;
    height: auto;
  }

  .site-header { padding: 10px 16px; }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .header-right {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }

  .flight-chips { gap: 6px; }

  .chip {
    padding: 6px 10px;
    flex: 1;
    min-width: 0;
  }

  .chip-route { font-size: 0.67rem; }

  .exchange-badge { flex: 1; min-width: 120px; }

  .weather-bar { padding: 8px 16px; }

  .weather-card { min-width: 70px; padding: 6px 8px; }

  .wc-icon { font-size: 1.1rem; }

  .day-tabs { padding: 0 16px; }

  .tab-btn { padding: 10px 14px 7px; }

  .content-wrapper {
    flex-direction: column;
    overflow: visible;
    height: auto;
  }

  .timeline-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-y: visible;
    padding: 18px 14px 28px;
  }

  .map-panel {
    width: 100%;
    height: 340px;
    flex: none;
  }
}

/* ============================================================
   Responsive — Large screens (≥ 1400px)
   ============================================================ */
@media (min-width: 1400px) {
  .timeline-panel { width: 440px; }
}

/* ============================================================
   Mobile font scale — 1.5× 이상
   ============================================================ */
@media (max-width: 768px) {

  /* ── topnav ── */
  .topnav-brand-title { font-size: 1.2rem; }

  /* ── header ── */
  .trip-title         { font-size: 1.5rem; }
  .trip-dates         { font-size: 1.0rem; }
  .route-city         { font-size: 1.15rem; }
  .chip-code          { font-size: 1.1rem; }
  .chip-route         { font-size: 0.95rem; }
  .exchange-label     { font-size: 0.95rem; }
  .exchange-value     { font-size: 1.1rem; }

  /* ── weather ── */
  .weather-label      { font-size: 1.0rem; }
  .wc-date            { font-size: 0.95rem; }
  .wc-temp            { font-size: 1.05rem; font-weight: 700; }
  .wc-precip          { font-size: 0.9rem; }
  .wc-icon            { font-size: 1.6rem; }

  /* ── day tabs ── */
  .tab-date           { font-size: 1.2rem; }
  .tab-dow            { font-size: 0.95rem; }

  /* ── timeline ── */
  .day-badge          { font-size: 1.0rem; }
  .day-title          { font-size: 1.3rem; }
  .day-date           { font-size: 1.0rem; }
  .tl-time            { font-size: 1.0rem;  width: 58px; }
  .tl-icon            { font-size: 1.1rem; }
  .tl-title           { font-size: 1.15rem; }
  .tl-subtitle        { font-size: 1.0rem; }
  .tl-location        { font-size: 0.98rem; }
  .tl-timerange       { font-size: 0.95rem; }
  .tl-note            { font-size: 0.98rem; }
  .tl-map-hint        { font-size: 0.95rem; }

  /* ── calculator ── */
  .inner-page-title   { font-size: 1.4rem; }
  .inner-page-sub     { font-size: 1.0rem; }
  .calc-rate-val      { font-size: 1.1rem; }
  .calc-rate-label    { font-size: 0.95rem; }
  .calc-from-label    { font-size: 1.05rem; }
  .calc-currency-badge{ font-size: 1.4rem; }
  .calc-input         { font-size: 1.8rem; }
  .calc-dir-btn       { font-size: 1.05rem; }
  .calc-quick         { font-size: 1.0rem;  padding: 10px 4px; }
  .calc-result-currency { font-size: 1.5rem; }
  .calc-result-val    { font-size: 2.2rem; }
  .calc-tip           { font-size: 0.98rem; }

  /* ── phrasebook ── */
  .phrase-cat-btn     { font-size: 1.1rem; padding: 14px 20px 11px; }
  .phrase-search      { font-size: 1.05rem; padding: 11px 16px; }
  .phrase-cat-divider { font-size: 0.9rem; }
  .phrase-ko          { font-size: 1.05rem; }
  .phrase-jp          { font-size: 1.35rem; }
  .phrase-read        { font-size: 1.1rem; }
  .phrase-play-btn    { font-size: 0.9rem; padding: 8px 14px; }
  .phrase-play-btn svg { width: 15px; height: 15px; }
  .phrase-copy-btn    { font-size: 0.9rem; padding: 8px 12px; }

  /* ── offcanvas ── */
  .oc-brand-title     { font-size: 1.15rem; }
  .oc-section-label   { font-size: 0.85rem; }
  .oc-day-badge       { font-size: 1.0rem; }
  .oc-day-name        { font-size: 1.05rem; }
  .oc-flight-code     { font-size: 1.0rem; }
  .oc-flight-route    { font-size: 1.1rem; }
  .oc-flight-meta     { font-size: 0.9rem; }
  .oc-place-name      { font-size: 1.05rem; }
  .oc-place-sub       { font-size: 0.9rem; }
  .oc-kv span         { font-size: 1.0rem; }
  .oc-kv strong       { font-size: 1.05rem; }

  /* ── lock screen ── */
  .lock-title         { font-size: 1.5rem; }
  .lock-sub           { font-size: 1.0rem; }
  .lock-input         { font-size: 1.1rem; }
  .lock-remember      { font-size: 1.0rem; }
}
