:root {
  --paper: #F4EEE2;         /* app background */
  --card: #FFFCF6;          /* cards, sheets, tab bar */
  --ink: #1B2238;           /* text, indigo headers */
  --ink-2: #5A5F73;         /* secondary text */
  --line: #E3DAC7;          /* 1px card borders, rails */
  --rail: #D6CCB6;          /* timeline vertical rail & input border */
  --chip: #F1EADB;          /* inactive pills, round buttons */
  --vermilion: #C8412B;     /* primary action, leave-by tile */
  --vermilion-ink: #B73A25; /* vermilion text on light */
  --vermilion-tint: #FBE0D9;
  --amber-bg: #FFF0D2;
  --amber-line: #EFD59B;
  --amber-ink: #5E3F05;
  --ok: #2FB36D;
  --ok-ink: #1F7A4D;
  --scrim: rgba(15, 19, 34, 0.62);

  --font-serif: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', Georgia, serif;
  --font-sans: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', system-ui, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
}

[lang="ja"] {
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', sans-serif;
}

.font-serif {
  font-family: var(--font-serif);
}

.hidden {
  display: none !important;
}

button, a, input, textarea {
  font-family: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--vermilion);
  outline-offset: 2px;
}

/* =========================================================
   SCREEN 0: PIN LOCK
   ========================================================= */
.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 0 20px calc(24px + var(--safe-bottom));
}

.lock-watermark {
  position: absolute;
  left: -30px;
  top: -20px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 420px;
  line-height: 1;
  color: var(--paper);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

.lock-card {
  position: relative;
  width: 100%;
  max-width: 350px;
  text-align: center;
  padding-top: 76px;
}

.lock-overline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #CFC9DC;
}

.lock-title {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.15;
  color: var(--paper);
}

.lock-subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  color: #DAD5E7;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
}

.pin-dots.shake {
  animation: pinShake 0.36s ease-in-out;
}

@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #8F93AB;
  background: transparent;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.pin-dot.filled {
  background: var(--paper);
  border-color: var(--paper);
}

.pin-error {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: #FBE0D9;
}

.keypad {
  width: 272px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.key-btn {
  width: 80px;
  height: 80px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  color: var(--paper);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.key-btn:active {
  background: rgba(255, 255, 255, 0.22);
}

.key-back {
  background: transparent;
}

.lock-footer {
  position: relative;
  margin-top: auto;
  padding-top: 24px;
  font-size: 13px;
  color: #CFC9DC;
  text-align: center;
}

/* =========================================================
   APP SHELL & SHARED SYNC PILL
   ========================================================= */
.app-shell {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--paper);
  padding-bottom: calc(92px + var(--safe-bottom));
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.sync-pill-inner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--paper);
}

.sync-pill--light .sync-pill-inner {
  background: var(--line);
  color: var(--ink);
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #46D08A;
  flex: none;
}

.sync-pill--light .sync-dot {
  background: var(--ok);
}

.sync-pill.sync-syncing .sync-dot {
  background: #5AA9F0;
  animation: syncPulse 1s infinite ease-in-out;
}

.sync-pill.sync-offline .sync-pill-inner {
  background: var(--amber-bg);
  color: var(--amber-ink);
  border: 1px solid var(--amber-line);
}

.sync-pill.sync-offline .sync-dot {
  background: #D98A0B;
}

@keyframes syncPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.25); }
}

/* =========================================================
   SHARED BOTTOM TAB BAR (84px + safe area)
   ========================================================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(84px + var(--safe-bottom));
  padding: 8px 6px var(--safe-bottom);
  background: var(--card);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 250;
}

.nav-btn {
  flex: 1;
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--ink-2);
  cursor: pointer;
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 32px;
  border-radius: 16px;
  background: transparent;
  transition: background-color 0.15s ease;
}

.nav-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}

.nav-btn.active {
  color: var(--vermilion-ink);
}

.nav-btn.active .nav-pill {
  background: var(--vermilion-tint);
}

/* =========================================================
   SCREEN 1: SCHEDULE HEADER, TILES & TIMELINE
   ========================================================= */
.schedule-header {
  position: relative;
  background: var(--ink);
  border-radius: 0 0 28px 28px;
  padding: 14px 16px 18px;
  overflow: hidden;
  color: var(--paper);
}

.header-kanji-watermark {
  position: absolute;
  right: -6px;
  top: 34px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 120px;
  line-height: 1;
  letter-spacing: -8px;
  color: var(--paper);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}

.header-top-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}

.header-overline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #CFC9DC;
}

.header-day-title {
  position: relative;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 29px;
  line-height: 1.15;
  color: var(--paper);
}

.header-subline {
  position: relative;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #DAD5E7;
}

.subline-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #DAD5E7;
}

.city-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

/* Day Scrubber */
.day-scrubber {
  position: relative;
  display: flex;
  gap: 6px;
  margin: 14px -16px 0 0;
  padding-right: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.day-scrubber::-webkit-scrollbar { display: none; }

.day-pill {
  flex: none;
  width: 44px;
  height: 62px;
  border: 0;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.10);
  color: var(--paper);
  padding: 0;
  cursor: pointer;
}

.day-pill.active {
  background: var(--paper);
  color: var(--ink);
}

.day-pill-wk {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.day-pill-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}

.day-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* 23-Segment Trip Bar */
.trip-bar {
  position: relative;
  display: flex;
  gap: 2px;
  align-items: center;
  height: 6px;
  margin-top: 12px;
}

.trip-bar-seg {
  flex: 1;
  border-radius: 3px;
  height: 4px;
}

.trip-bar-seg.is-current {
  height: 6px;
  opacity: 1;
}

.trip-bar-seg.is-past {
  opacity: 0.4;
}

.trip-bar-seg.is-future {
  opacity: 0.85;
}

/* Schedule Body */
.schedule-body {
  padding: 14px 16px 0;
}

.dual-tiles {
  display: flex;
  gap: 10px;
}

.leave-tile {
  flex: 1;
  min-width: 0;
  background: var(--vermilion);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 12px 14px;
}

.leave-tile-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.leave-tile-time {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  margin-top: 4px;
}

.stay-tile {
  flex: 1;
  min-width: 0;
  display: block;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 20px;
  padding: 12px 14px;
  cursor: pointer;
}

.stay-tile-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5B3F8C;
}

.stay-tile-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stay-tile-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 1px;
}

/* Weather Swap Bar */
.weather-swap-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

/* Amber Booking Banner */
.booking-banner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  color: var(--amber-ink);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.booking-banner-text {
  flex: 1;
}

/* Timeline Rows */
.timeline-list {
  margin-top: 16px;
}

.timeline-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tl-time-col {
  flex: none;
  width: 46px;
  text-align: right;
  padding-top: 3px;
}

.tl-time-num {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.tl-time-ampm {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
}

.tl-rail-col {
  flex: none;
  position: relative;
  width: 16px;
}

.tl-rail-line {
  position: absolute;
  left: 7px;
  top: 16px;
  bottom: -12px;
  width: 2px;
  background: var(--rail);
}

.timeline-row:last-child .tl-rail-line {
  display: none;
}

.tl-rail-node {
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid #2F5F9E;
}

.event-card {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px 12px;
  color: var(--ink);
  cursor: pointer;
}

.cat-tile {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-card-body {
  flex: 1;
  min-width: 0;
}

.event-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.event-card-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}

.timed-pill {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--amber-bg);
  color: var(--amber-ink);
  font-size: 11px;
  font-weight: 700;
}

.event-card-meta {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 2px;
}

/* =========================================================
   SCREEN 2: EVENT SHEET & WEATHER SWAP MODAL
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--scrim);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bottom-sheet {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: calc(100vh - 64px);
  max-height: calc(100vh - 64px);
  background: var(--card);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -8px 30px rgba(15, 19, 34, 0.25);
  overflow: hidden;
  animation: sheetRise 0.22s ease-out;
}

.bottom-sheet--compact {
  height: auto;
  max-height: 70vh;
}

@keyframes sheetRise {
  from { transform: translateY(24px); opacity: 0.9; }
  to { transform: translateY(0); opacity: 1; }
}

.sheet-handle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 8px;
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: var(--rail);
  z-index: 2;
}

.sheet-scroll {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: calc(150px + var(--safe-bottom));
  overflow-y: auto;
  padding: 20px 20px 20px;
}

.sheet-scroll--compact {
  padding: 24px 20px 24px;
}

.sheet-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.amber-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--amber-bg);
  color: var(--amber-ink);
  font-size: 12px;
  font-weight: 700;
}

.round-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--chip);
  color: var(--ink);
  cursor: pointer;
  flex: none;
}

.sheet-title {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
}

.sheet-subline {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-2);
}

.fact-tiles {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.fact-tile {
  flex: 1;
  min-width: 0;
  background: var(--paper);
  border-radius: 16px;
  padding: 10px 12px;
}

.fact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.fact-value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.booking-alert-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  color: var(--amber-ink);
  font-size: 13px;
  line-height: 1.35;
}

.booking-alert-btn {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.section-kicker {
  margin-top: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kicker-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline, #D7D2C6);
  background: var(--paper-2, #F2EDE2);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
}

.kicker-link:active {
  opacity: 0.75;
}

.steps-list {
  margin-top: 10px;
}

.step-row {
  display: flex;
  gap: 12px;
  min-height: 46px;
  padding-bottom: 6px;
}

.step-rail-col {
  flex: none;
  position: relative;
  width: 14px;
}

.step-rail-line {
  position: absolute;
  left: 6px;
  top: 14px;
  bottom: -6px;
  width: 2px;
  background: var(--rail);
}

.step-row:last-child .step-rail-line {
  display: none;
}

.step-node {
  position: absolute;
  left: 0;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid #2F5F9E;
}

.step-node.is-main {
  background: var(--vermilion);
  border-color: var(--vermilion);
}

.step-title {
  font-size: 15px;
  font-weight: 700;
}

.step-detail {
  font-size: 13px;
  color: var(--ink-2);
}

.dining-line {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-2);
}

.luggage-card {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--vermilion-tint);
  color: #8F2B19;
  font-size: 13px;
  font-weight: 500;
}

.swap-header {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.swap-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  margin-right: -20px;
  padding-right: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.swap-row::-webkit-scrollbar { display: none; }

.swap-card {
  flex: none;
  width: 168px;
  background: var(--paper);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.swap-card-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}

.swap-card-btn {
  margin-top: 10px;
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.sheet-notes-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Composer Footer (150px + safe area) */
.sheet-composer-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(150px + var(--safe-bottom));
  padding: 10px 16px var(--safe-bottom);
  background: var(--card);
  border-top: 1px solid var(--line);
}

.author-pills {
  display: flex;
  gap: 6px;
}

.author-pill {
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: var(--chip);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.author-pill.active {
  background: var(--ink);
  color: var(--paper);
}

.author-avatar-sm {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.composer-input-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.composer-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 1.5px solid var(--rail);
  border-radius: 14px;
  padding: 0 14px;
  background: #FFFFFF;
  font-size: 14px;
  color: var(--ink);
}

.composer-save-btn {
  flex: none;
  width: 76px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--vermilion);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.composer-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-2);
}

/* =========================================================
   SCREEN 3: TONIGHT'S STAY
   ========================================================= */
.stay-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  justify-content: center;
  background: var(--scrim);
}

.stay-container {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100%;
  background: var(--paper);
  overflow: hidden;
}

.stay-hero {
  position: relative;
  height: 214px;
  background: #43306A;
  overflow: hidden;
  color: #FFFFFF;
}

.stay-hero-kanji {
  position: absolute;
  right: -10px;
  top: 18px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 190px;
  line-height: 1;
  color: #FFFFFF;
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}

.stay-hero-waves {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 214px;
  pointer-events: none;
}

.stay-hero-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 0;
}

.stay-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  cursor: pointer;
}

.stay-night-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
}

.stay-hero-info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 34px;
}

.stay-hero-overline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.stay-hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  margin-top: 4px;
}

.stay-hero-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}

.stay-scroll {
  position: absolute;
  left: 0;
  right: 0;
  top: 190px;
  bottom: calc(96px + var(--safe-bottom));
  overflow-y: auto;
  padding: 0 16px 20px;
}

.stay-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin-top: 10px;
}

.stay-card--lead {
  margin-top: 0;
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(27, 34, 56, 0.08);
}

.stay-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.stay-ja-block {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--paper);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.stay-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn-outline-ink {
  flex: 1;
  height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.stay-times-grid {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.stay-times-grid .stay-card {
  flex: 1;
  margin-top: 0;
  padding: 12px 14px;
}

.stay-time-val {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  margin-top: 2px;
}

.stay-taxi-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--amber-ink);
  background: var(--amber-bg);
  border-radius: 10px;
  padding: 8px 10px;
}

.stay-shared-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ok-ink);
  font-weight: 700;
}

.stay-shared-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}

.stay-door-input {
  margin-top: 8px;
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--rail);
  border-radius: 12px;
  padding: 0 14px;
  background: #FFFFFF;
  font-size: 15px;
  color: var(--ink);
}

.stay-payment-card {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  border-radius: 18px;
  padding: 14px;
  color: var(--amber-ink);
}

.stay-payment-card.is-paid {
  background: #DDF1E6;
  border-color: #B4E2C9;
  color: var(--ok-ink);
}

.stay-countdown-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--amber-ink);
  color: var(--amber-bg);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.stay-bottom-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(96px + var(--safe-bottom));
  padding: 12px 16px var(--safe-bottom);
  background: var(--card);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
}

.stay-taxi-cta {
  flex: 1;
  height: 60px;
  border: 0;
  border-radius: 18px;
  background: var(--vermilion);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
}

.stay-action-icon-btn {
  flex: none;
  width: 60px;
  height: 60px;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

/* =========================================================
   SCREEN 4: TAXI MODE (PURE WHITE / BLACK)
   ========================================================= */
.taxi-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #FFFFFF;
  color: #000000;
  display: flex;
  justify-content: center;
}

.taxi-inner {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100%;
  background: #FFFFFF;
  color: #000000;
  display: flex;
  flex-direction: column;
}

.taxi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 0;
}

.taxi-top-label {
  font-size: 13px;
  font-weight: 700;
  color: #3A3A3A;
  letter-spacing: 0.04em;
}

.taxi-close-btn {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #EDEDED;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.taxi-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 16px;
}

.taxi-prompt {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
}

.taxi-rule {
  height: 3px;
  background: #000000;
  margin: 16px 0 20px;
}

.taxi-postcode {
  font-size: 24px;
  font-weight: 700;
  color: #3A3A3A;
}

.taxi-ja-lines {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.25;
  margin-top: 8px;
  word-break: break-word;
}

.taxi-ja-landmarks {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 16px;
}

.taxi-bottom {
  padding: 14px 22px calc(22px + var(--safe-bottom));
  background: #F3F3F3;
  border-top: 2px solid #000000;
}

.taxi-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.taxi-btn-outline {
  flex: 1;
  height: 48px;
  border: 2px solid #000000;
  border-radius: 14px;
  background: #FFFFFF;
  color: #000000;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.taxi-btn-solid {
  flex: 1;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: #000000;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* =========================================================
   SCREEN 5: ROUTE MAP
   ========================================================= */
.map-viewport {
  position: relative;
  height: calc(100vh - 84px - var(--safe-bottom));
  min-height: 540px;
  background: #E9E3D2;
  overflow: hidden;
}

.leaflet-map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-top-card {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: var(--card);
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(27, 34, 56, 0.16);
}

.map-step-btn {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--chip);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.map-top-center {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.map-top-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5B3F8C;
}

.map-top-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-mode-switch {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 80px;
  z-index: 400;
  display: flex;
  padding: 4px;
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(27, 34, 56, 0.16);
}

.seg-btn {
  flex: 1;
  height: 40px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.seg-btn.active {
  background: var(--ink);
  color: var(--paper);
}

.map-zoom-stack {
  position: absolute;
  right: 12px;
  top: 146px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-zoom-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(27, 34, 56, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.map-bottom-card {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 400;
  padding: 12px;
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 -4px 20px rgba(27, 34, 56, 0.18);
}

.map-stops-row {
  display: flex;
  gap: 8px;
  margin-right: -12px;
  padding-right: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.map-stops-row::-webkit-scrollbar { display: none; }

.map-stop-chip {
  flex: none;
  width: 150px;
  border: 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.map-stop-chip.active {
  outline: 2px solid var(--ink);
}

.map-stop-num {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--vermilion);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-stop-chip.active .map-stop-num {
  background: var(--ink);
}

.map-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.map-gmaps-btn {
  flex: 1.1;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.map-cache-btn {
  flex: 1.3;
  height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.map-caption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-2);
  text-align: center;
}

/* Custom Leaflet Pin Labels */
.washi-pin-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.washi-pin-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--vermilion);
  border: 3px solid #FFFFFF;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(27, 34, 56, 0.28);
}

.washi-pin-circle.is-selected {
  width: 38px;
  height: 38px;
  background: var(--ink);
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(27, 34, 56, 0.35);
}

.washi-pin-label {
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.washi-pin-circle.is-selected + .washi-pin-label {
  background: var(--ink);
  color: var(--paper);
}

/* =========================================================
   SCREENS 6, 7, 8: TRIP OVERVIEW, CHECKLIST, JOURNAL
   ========================================================= */
.page-pad {
  padding: 18px 16px 24px;
}

.page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.page-overline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.page-title {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
}

.page-title--lg {
  font-size: 36px;
}

.countdown-pill {
  margin-top: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--vermilion-tint);
  color: #8F2B19;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* Trip Overview */
.prop-trip-bar {
  display: flex;
  gap: 3px;
  margin-top: 14px;
  height: 12px;
}

.prop-seg {
  border-radius: 6px;
  height: 12px;
}

.trip-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.overview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.overview-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border-radius: 18px;
  text-align: left;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  cursor: pointer;
}

.overview-row.is-active {
  background: #FFFFFF;
  border-color: var(--vermilion);
}

.date-tile {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.date-tile-dow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.date-tile-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.05;
}

.overview-row-main {
  flex: 1;
  min-width: 0;
}

.overview-row-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.overview-row-sub {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 1px;
}

.overview-row-right {
  flex: none;
  text-align: right;
}

.overview-leave-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.overview-leave-time {
  font-size: 14px;
  font-weight: 700;
}

/* Checklist */
.progress-track {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  margin-top: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 6px;
  border-radius: 3px;
  background: var(--ok);
  transition: width 0.25s ease;
}

.next-deadline-card {
  background: var(--vermilion);
  color: #FFFFFF;
  border-radius: 22px;
  padding: 14px 16px;
  margin-top: 14px;
}

.next-deadline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.next-deadline-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #8F2B19;
  font-size: 12px;
  font-weight: 700;
}

.next-deadline-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  margin-top: 6px;
}

.filter-chips {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.filter-chip {
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: var(--chip);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.filter-chip.active {
  background: var(--ink);
  color: var(--paper);
}

.check-group-title {
  margin: 16px 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.check-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 4px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  margin-bottom: 8px;
}

.check-hit-btn {
  flex: none;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.check-box {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 2px solid #9A927F;
}

.check-card.is-done .check-box {
  background: var(--ok);
  border-color: var(--ok);
}

.check-card.is-done .check-title {
  text-decoration: line-through;
  color: var(--ink-2);
}

.check-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.check-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.cat-tag-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

/* Journal */
.journal-composer-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  margin-top: 12px;
}

.journal-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px;
}

.journal-entry-card {
  display: flex;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 8px;
}

.author-avatar-lg {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.queued-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--amber-bg);
  color: var(--amber-ink);
  font-size: 12px;
  font-weight: 700;
}

.journal-empty {
  text-align: center;
  padding: 48px 20px;
}

.journal-empty-kanji {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 120px;
  line-height: 1;
  color: var(--ink);
  opacity: 0.12;
}

.journal-empty-text {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-2);
}

@media (prefers-reduced-motion: reduce) {
  .sync-pill.sync-syncing .sync-dot,
  .pin-dots.shake,
  .bottom-sheet,
  .progress-fill {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   UTILITY BUTTONS, SEARCH, VAULT, YEN CALCULATOR & EDITORS
   ========================================================= */
.header-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  cursor: pointer;
}

.header-tool-pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.add-stop-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  border-radius: 16px;
  border: 1.5px dashed var(--line);
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.ev-edit-pill {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ev-ref-badge {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.checklist-add-panel {
  margin-top: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}

.journal-toolbar {
  margin-top: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px 12px;
}

.search-results-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-result-card {
  width: 100%;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--ink);
  cursor: pointer;
}

.search-result-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

.search-result-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  margin-top: 2px;
}

.search-result-sub {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 2px;
}

.phrase-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.phrase-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.phrase-en {
  font-size: 12px;
  color: var(--ink-2);
}

.phrase-ja {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.sos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.sos-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px;
  border-radius: 14px;
  background: var(--vermilion-tint);
  border: 1px solid #E5B4A9;
  color: var(--vermilion-ink);
  text-decoration: none;
}

.sos-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}

.sos-lbl {
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
}

.yen-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.yen-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.vault-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
}

/* Header City Options Pill & Swap Drawer */
.city-options-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.swap-drawer-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
}

.swap-slot-picker {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.swap-slot-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  margin-top: 6px;
  cursor: pointer;
}

.swap-slot-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--vermilion);
  flex: none;
}

.swap-title-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(27, 34, 56, 0.28);
  text-underline-offset: 3px;
}

.swap-title-link:hover,
.swap-title-link:active {
  color: var(--vermilion);
  text-decoration-color: var(--vermilion);
}

.swap-day-preview {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--card);
  border: 1px dashed var(--line);
}

.swap-preview-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 9px;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.3;
  background: var(--paper);
}

.swap-preview-row.is-new {
  background: #DDF1E6;
  border: 1px solid rgba(31, 122, 77, 0.28);
}

.swap-preview-badge {
  flex: none;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink-2);
}

.swap-preview-row.is-new .swap-preview-badge {
  background: #1F7A4D;
  color: #FFFFFF;
}

.phrase-btn {
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  cursor: pointer;
}

.phrase-speaker-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--chip);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.phrase-btn.is-speaking {
  border-color: var(--vermilion);
  background: var(--vermilion-tint);
}

.phrase-btn.is-speaking .phrase-speaker-icon {
  background: var(--vermilion);
  color: #FFFFFF;
}



