:root,
html[data-theme="rose"] {
  /* Soft travel lifestyle: cream + blush/rose from home hero mood (default) */
  --ink: #2c2428;
  --muted: #7d6f74;
  --paper: #ffffff;
  --mist: #f6ebe8;
  --sand: #faf6f3;
  --line: rgba(44, 36, 40, 0.11);
  --sky: #d4877c;
  --sky-deep: #c46f64;
  --ocean: #e2a090;
  --foam: #f8ebe6;
  --sunset: #d4896a;
  --sunset-deep: #b56a52;
  --sun: #e6c4a0;
  --hill: #c97b72;
  --ticket: #ffffff;
  --danger: #b33232;
  --accent: #c46f64;
  --accent-soft: #d4877c;
  --accent-warm: #e2a090;
  --accent-rgb: 196, 111, 100;
  --accent-dot: #e8b4a8;
  --icon-well: linear-gradient(155deg, #c46f64 0%, #d4877c 55%, #e2a090 100%);
  --icon-well-soft: linear-gradient(160deg, #faf0ec, #fff);
  --shadow: 0 12px 32px rgba(44, 36, 40, 0.1);
  --shadow-soft: 0 2px 10px rgba(44, 36, 40, 0.05);
  --body-wash: linear-gradient(180deg, #eef3f8 0%, #f7efe9 36%, var(--sand) 70%, var(--mist) 100%);
  --mast-scrim:
    linear-gradient(180deg, rgba(42, 28, 32, 0.2) 0%, rgba(52, 34, 36, 0.38) 40%, rgba(250, 246, 243, 0.9) 78%, var(--sand) 100%),
    linear-gradient(90deg, rgba(48, 30, 34, 0.22) 0%, transparent 62%);
  --hero-scrim:
    linear-gradient(180deg, rgba(42, 28, 32, 0.14) 0%, rgba(52, 34, 36, 0.3) 40%, rgba(40, 26, 30, 0.78) 100%),
    linear-gradient(90deg, rgba(48, 30, 34, 0.32) 0%, transparent 58%);
  --radius: 14px;
  --radius-sm: 10px;
  --space-1: 0.45rem;
  --space-2: 0.75rem;
  --space-3: 1.1rem;
  --font-display: "Outfit", "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --hero-photo: url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1800&q=80");
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[data-theme="green"] {
  /* Previous green travel palette */
  --ink: #1e2a24;
  --muted: #5c6b63;
  --paper: #ffffff;
  --mist: #e8f0eb;
  --sand: #f3f7f4;
  --line: rgba(30, 42, 36, 0.11);
  --sky: #4a9b78;
  --sky-deep: #2f7a58;
  --ocean: #6aaf8e;
  --foam: #eaf5ee;
  --sunset: #d4a06a;
  --sunset-deep: #b57f45;
  --sun: #e6d0a0;
  --hill: #3d8f6a;
  --ticket: #ffffff;
  --danger: #b33232;
  --accent: #2f7a58;
  --accent-soft: #4a9b78;
  --accent-warm: #6aaf8e;
  --accent-rgb: 47, 122, 88;
  --accent-dot: #8ec9ad;
  --icon-well: linear-gradient(155deg, #2f7a58 0%, #4a9b78 55%, #6aaf8e 100%);
  --icon-well-soft: linear-gradient(160deg, #eef6f1, #fff);
  --shadow: 0 12px 32px rgba(30, 42, 36, 0.1);
  --shadow-soft: 0 2px 10px rgba(30, 42, 36, 0.05);
  --body-wash: linear-gradient(180deg, #e7f1eb 0%, #eef5f0 36%, var(--sand) 70%, var(--mist) 100%);
  --mast-scrim:
    linear-gradient(180deg, rgba(18, 40, 30, 0.22) 0%, rgba(28, 52, 40, 0.4) 40%, rgba(243, 247, 244, 0.9) 78%, var(--sand) 100%),
    linear-gradient(90deg, rgba(20, 42, 32, 0.24) 0%, transparent 62%);
  --hero-scrim:
    linear-gradient(180deg, rgba(18, 40, 30, 0.16) 0%, rgba(28, 52, 40, 0.32) 40%, rgba(16, 36, 28, 0.78) 100%),
    linear-gradient(90deg, rgba(20, 42, 32, 0.34) 0%, transparent 58%);
  --hero-photo: url("https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=1800&q=80");
}

html[data-theme="ocean"] {
  /* Soft blue (label: ??? / Blue) ? keep teal-leaning blues, less ?sea? wording */
  --ink: #1c2736;
  --muted: #5a6a7c;
  --paper: #ffffff;
  --mist: #e8f0f8;
  --sand: #f2f6fb;
  --line: rgba(28, 39, 54, 0.11);
  --sky: #5b9fd4;
  --sky-deep: #3b7fb8;
  --ocean: #7eb4db;
  --foam: #eaf3fa;
  --sunset: #d4a06a;
  --sunset-deep: #b57f45;
  --sun: #e6d4a8;
  --hill: #4a8fc4;
  --ticket: #ffffff;
  --danger: #b33232;
  --accent: #3b7fb8;
  --accent-soft: #5b9fd4;
  --accent-warm: #7eb4db;
  --accent-rgb: 59, 127, 184;
  --accent-dot: #9ec8e8;
  --icon-well: linear-gradient(155deg, #3b7fb8 0%, #5b9fd4 55%, #7eb4db 100%);
  --icon-well-soft: linear-gradient(160deg, #eef5fb, #fff);
  --shadow: 0 12px 32px rgba(28, 39, 54, 0.1);
  --shadow-soft: 0 2px 10px rgba(28, 39, 54, 0.05);
  --body-wash: linear-gradient(180deg, #e3eef8 0%, #eef5fb 36%, var(--sand) 70%, var(--mist) 100%);
  --mast-scrim:
    linear-gradient(180deg, rgba(18, 36, 56, 0.22) 0%, rgba(28, 48, 72, 0.4) 40%, rgba(242, 246, 251, 0.9) 78%, var(--sand) 100%),
    linear-gradient(90deg, rgba(18, 40, 62, 0.24) 0%, transparent 62%);
  --hero-scrim:
    linear-gradient(180deg, rgba(18, 36, 56, 0.14) 0%, rgba(28, 48, 72, 0.3) 40%, rgba(14, 32, 52, 0.78) 100%),
    linear-gradient(90deg, rgba(18, 40, 62, 0.32) 0%, transparent 58%);
  /* Soft blue sky / water ? palette only; theme label is Blue */
  --hero-photo: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1800&q=80");
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--sand);
  background-image: var(--body-wash);
  background-attachment: fixed;
  /* Avoid white flash while fonts / modules load */
  min-height: 100%;
}
#app {
  min-height: 100vh;
  background: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
input, select, textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-top: 0.45rem;
  line-height: 1.5;
}
label { display: block; margin: 1rem 0; font-size: 0.95rem; color: var(--muted); font-weight: 600; }
a { color: var(--sky-deep); }

.shell {
  max-width: 820px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 20px 132px;
  position: relative;
}
.shell-home {
  max-width: none;
  padding: 0 0 48px;
}
.shell-welcome {
  max-width: none;
  padding: 0;
  min-height: 100dvh;
}
.welcome-landing {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px) + 1.5rem);
  color: #fff;
  overflow: hidden;
  background: #3a2a2e;
}
.welcome-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-photo);
  background-size: cover;
  background-position: center 42%;
  transform: scale(1.04);
  animation: hero-kenburns 20s ease-in-out infinite alternate;
}
.welcome-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(42, 28, 32, 0.18) 0%, rgba(52, 34, 36, 0.42) 38%, rgba(36, 24, 28, 0.88) 100%),
    linear-gradient(90deg, rgba(48, 30, 34, 0.35) 0%, transparent 60%);
}
.welcome-lang {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top, 0px) + 0.75rem);
  left: clamp(1.15rem, 4.5vw, 2.4rem);
  z-index: 3;
}
.welcome-inner {
  position: relative;
  z-index: 2;
  max-width: 26rem;
  animation: fadein 0.65s ease both;
}
.welcome-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}
.welcome-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 10vw, 3.6rem);
  margin: 0 0 0.55rem;
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}
.welcome-headline {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}
.welcome-body {
  margin: 0 0 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.65;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}
.welcome-feats {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.welcome-feats li {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}
.welcome-cta {
  width: 100%;
  max-width: 18rem;
  background: #fff !important;
  color: var(--sky-deep) !important;
  border: 0 !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.home-about {
  text-align: center;
  margin: 1.25rem 0 0.5rem;
}
.home-about-lite {
  text-align: center;
  margin: 1.5rem 0 0.75rem;
}
.home-about-lite .ghost {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.welcome-lang .lang-switch {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.home-about-block {
  margin: 0.35rem 0 1.35rem;
  padding: 1.35rem 1.2rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  background:
    linear-gradient(165deg, rgba(255, 248, 246, 0.98), rgba(255, 255, 255, 0.94)),
    var(--icon-well-soft);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.06);
}
.home-about-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-soft);
}
.home-about-headline {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.8vw, 1.35rem);
  font-weight: 650;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: var(--ink);
}
.home-about-body {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
}
.home-about-feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.home-about-feats li {
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--sky-deep);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
}
.soft-link-btn {
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
}
.soft-link-btn:hover {
  color: var(--sky-deep);
}
.shell-trip {
  background: transparent;
  position: relative;
  isolation: isolate;
  /* Clip masthead kenburns ? animation transform must not widen the page */
  overflow-x: clip;
}
/* Trip screens inherit home photo atmosphere (full-bleed masthead).
   Use width:100% (not 100vw + translateX) so kenburns scale cannot
   override centering and create ~200px horizontal overflow on phones. */
.shell-trip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: min(46vh, 360px);
  z-index: 0;
  pointer-events: none;
  background-color: #3a282c;
  background-image: var(--hero-photo);
  background-size: cover;
  background-position: center 38%;
  transform-origin: center center;
  will-change: transform;
  animation: hero-kenburns 28s ease-in-out infinite alternate;
  backface-visibility: hidden;
}
.shell-trip::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: min(46vh, 360px);
  z-index: 0;
  pointer-events: none;
  background: var(--mast-scrim);
}
.shell-trip > * {
  position: relative;
  z-index: 1;
}
.home-body {
  max-width: 820px;
  margin: -2.2rem auto 0;
  padding: 0 20px 2rem;
  position: relative;
  z-index: 2;
}
.home-templates {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem 1.35rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-soft);
}
.home-templates-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.home-templates-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}
.home-templates-head .meta { margin: 0; }
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.template-card {
  text-align: left;
  padding: 1rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #faf7f4, #fff);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 5.2rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.template-card strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.template-card span {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}
.template-card:hover { transform: translateY(-1px); border-color: rgba(var(--accent-rgb), 0.35); }
.template-card.tone-forest { background: linear-gradient(160deg, #faf0ec, #fff); }
.template-card.tone-sky { background: linear-gradient(160deg, #f3f0f4, #fff); }
.template-card.tone-sun { background: linear-gradient(160deg, #faf6ee, #fff); }
.template-card.tone-sea { background: linear-gradient(160deg, #f5f0ec, #fff); }
.home-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}
.hub-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hub-chip.on {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: var(--foam);
  color: var(--sky-deep);
}
.hub-chip-ai .chi-avatar { width: 22px; height: 22px; }
.hub-chip-ai span { margin-left: 0.1rem; }
.add-plan-trigger {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
}
.add-plan-trigger .text { font-size: 1rem; }
.pack-inline { margin-top: 0; }
.pack-inline-list { margin-top: 0.85rem; }
.note-soft { color: var(--muted); font-size: 0.85rem; }
.sky-decor {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 120px;
  overflow: hidden;
  z-index: 0;
  opacity: 0.55;
}
.swipe-main { position: relative; z-index: 1; }
.sky-cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 40px;
  filter: blur(0.2px);
}
.sky-cloud::before,
.sky-cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}
.sky-cloud.c1 {
  width: 72px;
  height: 22px;
  top: 28px;
  left: 8%;
}
.sky-cloud.c1::before { width: 28px; height: 28px; top: -14px; left: 12px; }
.sky-cloud.c1::after { width: 36px; height: 36px; top: -18px; left: 30px; }
.sky-cloud.c2 {
  width: 54px;
  height: 16px;
  top: 52px;
  right: 14%;
  opacity: 0.7;
}
.sky-cloud.c2::before { width: 22px; height: 22px; top: -10px; left: 8px; }
.sky-cloud.c2::after { width: 28px; height: 28px; top: -14px; left: 22px; }
.sky-plane {
  position: absolute;
  top: 36px;
  right: 22%;
  width: 18px;
  height: 18px;
  opacity: 0.45;
  background:
    linear-gradient(135deg, transparent 42%, var(--sky-deep) 42%, var(--sky-deep) 58%, transparent 58%),
    linear-gradient(45deg, transparent 40%, var(--ocean) 40%, var(--ocean) 60%, transparent 60%);
  clip-path: polygon(0 45%, 70% 40%, 100% 20%, 78% 48%, 100% 80%, 70% 58%, 0 55%, 18% 50%);
  background: var(--sky-deep);
}
.trip-band {
  position: relative;
  z-index: 1;
  padding: 1.35rem 0.1rem 1.2rem;
  margin: 0.15rem 0 0.85rem;
  border-bottom: 0;
  background: transparent;
  border-radius: 0;
  align-items: center;
  color: #fff;
}
.brand-bar.trip-band {
  border-bottom: 0;
  box-shadow: none;
}
.brand-bar.trip-band h1 {
  color: #fff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
}
.brand-bar.trip-band .meta {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-bar.trip-band .menu-trigger {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.brand-bar.trip-band .menu-trigger:hover {
  background: rgba(255, 255, 255, 0.22);
}
.brand-bar.trip-band .home-back,
.brand-bar.trip-band .ghost.sm {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.brand-bar.trip-band .lang-switch--compact {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(40, 28, 26, 0.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.brand-bar.trip-band .lang-switch--compact .lang-switch-btn {
  color: rgba(255, 255, 255, 0.85);
}
.brand-bar.trip-band .lang-switch--compact .lang-switch-btn.on {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.brand-bar.trip-band .collab-badge {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.shell-trip .card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 32px rgba(44, 36, 40, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.shell-trip .schedule-card {
  border-color: rgba(var(--accent-rgb), 0.14);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(250, 240, 236, 0.92));
}

/* ?? Full-bleed photo hero ?? */
.hero-home {
  position: relative;
  overflow: hidden;
  min-height: min(72vh, 640px);
  margin: 0;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 5vw, 2.5rem) clamp(2rem, 5vw, 3rem);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 0;
  background: #3a2a2e;
}
.hero-home--solo { min-height: min(48vh, 380px); }
.hero-home--list { min-height: min(36vh, 300px); }
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-photo);
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.02);
  animation: hero-kenburns 18s ease-in-out infinite alternate;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-scrim);
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 32rem;
  animation: fadein 0.7s ease 0.1s both;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.hero-lang { align-self: flex-start; }
.hero-lang--top {
  position: absolute;
  top: clamp(1rem, 3.2vw, 1.55rem);
  left: clamp(1.15rem, 4.5vw, 2.4rem);
  z-index: 3;
  align-self: auto;
}
.hero-brand {
  display: flex;
  align-items: flex-end;
  gap: 0.95rem;
}
.hero-brand .chi-avatar {
  width: 64px;
  height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  animation: chi-float 4.8s ease-in-out infinite;
}
.hero-brand-text { min-width: 0; }
.hero-home h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 11vw, 4rem);
  margin: 0 0 0.45rem;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}
.hero-home .tagline {
  max-width: 18rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.04em;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.hero-home .cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero-home .primary {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.hero-home .ghost,
.hero-home .btn-like {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.home-trip-panel {
  max-width: 820px;
  margin: 0 auto;
  padding: 0.35rem 0 0;
}
.home-trip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.95rem;
}
.home-trip-panel h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  margin: 0;
  color: var(--ink);
}
.home-trip-head .meta { margin: 0; }

.brand-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1.15rem;
  padding: 1rem 0 0.85rem;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  position: relative;
}
.brand-bar h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 1.9rem);
  margin: 0;
  letter-spacing: 0.03em;
  line-height: 1.25;
  color: var(--ink);
}
.brand-bar .meta { margin: 0.2rem 0 0; }
.brand-actions { flex-wrap: wrap; justify-content: flex-end; }
.eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.card {
  background: var(--ticket);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.45rem;
  margin-bottom: 1.1rem;
  box-shadow: none;
  position: relative;
}
/* First paint only ? remounts must not restart opacity:0 (white flash) */
html:not(.render-quiet) .shell-home .hero-home {
  animation: rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html:not(.render-quiet) .shell-home .card {
  animation: rise 0.4s ease both;
}
.card::after { display: none; }
.card h2, .card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.55rem;
  letter-spacing: 0.03em;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink);
}
.card p { margin: 0 0 0.75rem; color: var(--muted); line-height: 1.7; }
.meta { font-size: 0.92rem; color: var(--muted); line-height: 1.6; }
.disc { font-size: 0.88rem; color: #9a5a22; line-height: 1.55; }

.primary, .ghost, .danger, .text, .big-btn {
  border-radius: 10px;
  padding: 0.78rem 1.15rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.primary {
  background: var(--sky-deep);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.22);
}
.primary:active { filter: brightness(0.97); }
.primary:hover, .ghost:hover, .big-btn:hover { transform: translateY(-1px); }
.primary.sm, .ghost.sm { padding: 0.5rem 0.9rem; font-size: 0.9rem; }
.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-weight: 600;
}
.danger { color: var(--danger); border: 1px solid rgba(197, 61, 61, 0.35); }
.text { color: var(--sunset-deep); padding: 0; font-weight: 600; }
.photo-pick-row { gap: 0.45rem; }
.photo-pick-actions { margin-top: 0.35rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

.trip-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.trip-list li {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.8rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.trip-list li:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: var(--shadow-soft);
}
.trip-cover {
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
  overflow: hidden;
  flex: 0 0 auto;
  background:
    linear-gradient(145deg, var(--sky), var(--ocean) 50%, var(--hill));
}
.trip-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.trip-cover--blank {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.88);
  background: var(--icon-well);
}
.trip-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}
.trip-list span { color: var(--muted); font-size: 0.86rem; }

/* Bottom nav ? ?? / ??? */
.nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 28px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(21, 37, 54, 0.12);
  z-index: 20;
}
.nav.nav-compact { max-width: 360px; }
.nav::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--sky), var(--ocean));
  opacity: 0.75;
}
.nav button {
  position: relative;
  padding: 0.72rem 0.4rem 0.62rem;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.nav button.on {
  background: rgba(184, 122, 110, 0.12);
  color: var(--sky-deep);
}
.nav button:active { transform: scale(0.98); }

/* FAB ?????????????????? */
.quick-dock,
.fab-btn { display: none !important; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
}
.icon-btn .chi-avatar { width: 28px; height: 28px; }
.icon-btn.text-ico {
  width: auto;
  padding: 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sky-deep);
}
.panel-close-bar {
  display: flex;
  justify-content: flex-end;
  margin: 0.85rem 0 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.section-head h2 { margin: 0 0 0.2rem; }
.quiet-links { gap: 0.35rem; flex-wrap: wrap; justify-content: flex-end; }
.more-tile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.75rem;
}
.more-tile {
  text-align: left;
  padding: 0.9rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8fbfd;
}
.more-tile strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  letter-spacing: 0.03em;
}
.more-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.day-tabs { display: flex; gap: 0.45rem; overflow-x: auto; padding-bottom: 0.4rem; margin-bottom: 0.6rem; }
.day-tabs button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.45rem 0.85rem;
  color: var(--muted);
  background: #fff;
  font-weight: 700;
  min-width: 4.5rem;
}
.day-tabs button.on {
  background: linear-gradient(135deg, var(--sky), var(--ocean));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.22);
}

/* Timeline ? rail outside swipe clip so connectors stay continuous */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  list-style: none;
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  column-gap: 0.45rem;
  align-items: stretch;
  overflow: visible;
  margin: 0;
  border: 0;
  background: transparent;
  touch-action: pan-y;
}
.timeline-item + .timeline-item {
  margin-top: 0.35rem;
}
/* Clip viewport for opaque swipe front ? parent radius hides ?? at corners */
.timeline-swipe {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  box-shadow: 0 2px 10px rgba(42, 36, 34, 0.04);
  background: #fff;
  isolation: isolate;
}
.timeline-swipe-actions {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 5.5rem;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  z-index: 0;
  border-radius: 0;
  overflow: hidden;
  background: #c23b3b;
  isolation: isolate;
  visibility: hidden;
  pointer-events: none;
}
.timeline-item.swiping .timeline-swipe-actions,
.timeline-item.swipe-open .timeline-swipe-actions {
  visibility: visible;
  pointer-events: auto;
}
.timeline-del-btn {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: #c23b3b;
  color: #fff;
  -webkit-text-fill-color: #fff;
  opacity: 1;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-shadow: none;
  mix-blend-mode: normal;
}
.timeline-swipe-front {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.45rem;
  align-items: start;
  padding: 0.7rem 0.75rem 0.7rem 0.55rem;
  /* Opaque rectangle ? radius clipped by .timeline-swipe so corners never reveal ?? */
  background: linear-gradient(105deg, #faf4ef, #ffffff 48%);
  border: 0;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
  will-change: transform;
  -webkit-user-select: none;
  user-select: none;
  isolation: isolate;
}
.timeline-rail .timeline-track {
  position: relative;
  width: 1.1rem;
  justify-self: center;
  align-self: stretch;
  min-height: 100%;
  pointer-events: none;
}
/* Continuous spine between cards (rail lives outside overflow:hidden swipe) */
.timeline-rail .timeline-track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.55rem;
  bottom: -0.55rem;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(var(--accent-rgb), 0.55),
    rgba(var(--accent-rgb), 0.42) 55%,
    rgba(var(--accent-rgb), 0.35)
  );
  border-radius: 2px;
}
/* First node: spine starts at the dot (nothing above). */
.timeline-rail .timeline-item:first-child .timeline-track::before {
  top: 1.15rem;
}
/* Last node: spine arrives from above and stops at the dot. */
.timeline-rail .timeline-item.is-last .timeline-track::before,
.timeline-rail .timeline-item:last-child .timeline-track::before {
  top: -0.55rem;
  bottom: auto;
  height: calc(0.55rem + 1.15rem);
}
/* Single item: no connector segment. */
.timeline-rail .timeline-item:only-child .timeline-track::before {
  display: none;
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0.85rem;
  width: 0.72rem;
  height: 0.72rem;
  transform: translate(-50%, 0);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent-dot), var(--accent) 70%);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14), 0 2px 6px rgba(var(--accent-rgb), 0.22);
  z-index: 1;
}
.timeline-item.editing .timeline-dot {
  background: radial-gradient(circle at 35% 30%, #f0b27a, #c97a3a 70%);
  box-shadow: 0 0 0 4px rgba(201, 122, 58, 0.2), 0 2px 8px rgba(201, 122, 58, 0.28);
}
.timeline-item.swipe-open .timeline-swipe-front,
.timeline-item.swiping .timeline-swipe-front {
  transition: none;
}
.timeline-item.swipe-open .timeline-swipe-front {
  transform: translateX(-5.5rem);
  transition: transform 0.18s ease;
}
.timeline-item.editing .timeline-swipe {
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.35), 0 2px 10px rgba(42, 36, 34, 0.04);
}
.timeline-item.editing .timeline-swipe-front {
  /* Opaque wash (no alpha) so delete reveal stays solid on rose/green */
  background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 12%, #fff), #fff 45%);
}
.timeline time {
  color: var(--sunset-deep);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
  font-size: 0.92rem;
  padding-top: 0.55rem;
  white-space: nowrap;
}
.timeline strong {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.timeline .note {
  color: var(--muted);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.timeline-rail .item-body { padding-top: 0.35rem; padding-bottom: 0.15rem; }
.item-body { min-width: 0; }
.item-main {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.kind-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--icon-well);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.18);
}
.kind-ico .kind-svg { display: block; }
.kind-ico-train { background: linear-gradient(155deg, var(--accent), var(--accent-soft)); }
.kind-ico-food { background: linear-gradient(155deg, var(--sunset-deep), var(--sunset)); }
.kind-ico-hotel { background: linear-gradient(155deg, #8a9bb0, #b8a0a8); }
.kind-ico-spot { background: linear-gradient(155deg, var(--hill), var(--ocean)); }
.kind-ico-activity { background: linear-gradient(155deg, #c49a58, #e6c4a0); }
.kind-ico-other { background: linear-gradient(155deg, #6a5a5e, #8a7a7e); }
.photo-by {
  position: absolute;
  left: 6px;
  top: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.4rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  max-width: calc(100% - 40px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.album-hint { margin: 0.7rem 0 0; line-height: 1.55; }
.album-plan-note { margin: 0.35rem 0 0; line-height: 1.5; color: var(--muted); }
.album-grid .album-tile.is-video video.album-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #2a1e22;
}
.album-grid .album-tile .album-video-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  color: #fff;
  background: rgba(42, 28, 32, 0.72);
  pointer-events: none;
}
.plan-card h3,
.plan-gate h2 {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  margin: 0 0 0.35rem;
}
.plan-current {
  margin: 0 0 0.65rem;
  font-weight: 600;
  color: var(--rose-deep, var(--ink));
}
.plan-benefits {
  margin: 0.35rem 0 0.55rem;
  padding-left: 1.15rem;
  color: var(--ink);
  line-height: 1.55;
}
.plan-benefits li { margin: 0.2rem 0; }
.plan-gate .consult-hero-head { margin-bottom: 0.35rem; }
/* Album: home-like photo stage (not green-panel heavy) */
.shell-trip-album::before,
.shell-trip-album::after {
  height: min(56vh, 460px);
}
.shell-trip-album::after {
  background:
    linear-gradient(180deg, rgba(42, 28, 32, 0.18) 0%, rgba(52, 34, 36, 0.34) 36%, rgba(250, 246, 243, 0.82) 72%, var(--sand) 100%),
    linear-gradient(90deg, rgba(48, 30, 34, 0.26) 0%, transparent 58%);
}
.album-stage {
  margin: -0.15rem 0 1.25rem;
  animation: fadein 0.35s ease both;
}
.album-toolbar {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem 1.25rem;
  box-shadow: 0 14px 36px rgba(42, 30, 28, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: 1.05rem;
}
.album-add-btn {
  width: 100%;
  min-height: 3rem;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.album-loading { margin: 0 0 0.75rem; }
.album-grid {
  margin-top: 0;
}
.album-grid .album-tile {
  border-radius: 14px;
  background: #3a2a2e;
  box-shadow: 0 10px 28px rgba(42, 30, 28, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transform: translateZ(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.album-grid .album-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(42, 30, 28, 0.2);
}
.album-grid .album-tile img {
  animation: fadein 0.4s ease both;
}
.album-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.2rem 1.25rem;
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 244, 0.9)),
    rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 32px rgba(42, 30, 28, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.album-empty strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.album-empty .meta { margin: 0; }
.advanced-link {
  display: inline-block;
  color: var(--muted);
  font-weight: 500;
}
.icon-photo-setting {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.4rem;
}
.icon-photo-setting strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.15rem;
}
.photo-tile .photo-icon-btn {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
}
.text.sm { font-size: 0.8rem; }
.kind {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  background: rgba(14, 155, 181, 0.12);
  color: #0a6f82;
  font-weight: 700;
}

.pack-list { list-style: none; margin: 0; padding: 0; }
.pack-list li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px dashed rgba(16, 42, 67, 0.1);
}
.pack-list li.done .pack-item-name { text-decoration: line-through; opacity: 0.5; }
.pack-item-name {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.pack-secret-badge {
  display: inline-flex;
  color: var(--sunset-deep);
  opacity: 0.85;
}
.pack-secret-btn {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 8px;
  color: var(--muted);
  border-color: transparent;
  background: transparent;
}
.pack-secret-btn.on,
.pack-list li.pack-secret .pack-secret-btn {
  color: var(--sunset-deep);
  background: rgba(201, 122, 58, 0.12);
  border-color: rgba(201, 122, 58, 0.28);
}
.pack-secret-toggle {
  position: relative;
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  max-width: 100%;
  margin: 0.55rem 0 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  flex-wrap: nowrap;
  box-sizing: border-box;
}
.pack-secret-toggle input[type="checkbox"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0 !important;
  appearance: none;
}
.pack-secret-toggle-label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.2;
  flex: 0 0 auto;
}
.pack-secret-toggle-label svg {
  flex: 0 0 auto;
  display: block;
}
.pack-secret-toggle.on {
  border-color: rgba(158, 82, 48, 0.4);
  background: rgba(201, 122, 58, 0.12);
  color: var(--sunset-deep);
}
.cat-label {
  margin: 1rem 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ocean);
  font-weight: 800;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-height: 48vh;
  overflow: auto;
  margin-bottom: 0.8rem;
}
.bubble-row.ai {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  max-width: 96%;
  align-self: flex-start;
  animation: fadein 0.3s ease both;
}
.bubble-stack {
  display: grid;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}
.bubble-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.bubble-row.ai .bubble {
  max-width: none;
  flex: 1;
  animation: none;
}
.home-back {
  font-weight: 700;
  border-color: rgba(27, 155, 224, 0.35);
  color: var(--sky-deep);
}
.swipe-main {
  touch-action: pan-y;
}
/* ???????????? */
.menu-panel {
  padding: 1.25rem 1rem 1.35rem;
}
.menu-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.menu-panel-head h2 { margin: 0; font-size: 1.25rem; }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.menu-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.menu-row:hover {
  border-color: rgba(var(--accent-rgb), 0.28);
  background: #faf7f4;
}
.menu-row:active { background: #f5eeea; }
.menu-row-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.menu-row-text strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.menu-row-text span {
  font-size: 0.84rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.menu-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.55rem;
  min-height: 108px;
  padding: 1rem 0.95rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #fbf9f7 100%);
  box-shadow: none;
  text-align: left;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.menu-cell:hover {
  border-color: rgba(var(--accent-rgb), 0.28);
  background: #fff;
}
.menu-cell:active { transform: scale(0.98); background: #f5f0ec; }
.menu-cell strong {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.menu-cell span:last-child {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.menu-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--icon-well);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.22);
}
.menu-hint {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.book-panel .disc { margin: 0 0 0.65rem; }
.book-fav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}
.book-fav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0.25rem 0.65rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.book-fav:active { transform: scale(0.97); }
.book-fav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--icon-well);
  color: #fff;
  box-shadow: 0 3px 10px rgba(var(--accent-rgb), 0.2);
}
.book-fav-ico .book-svg { display: block; }
.book-fav strong {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}
@media (max-width: 380px) {
  .book-fav-grid { grid-template-columns: repeat(3, 1fr); }
}
.action-sheet-overlay {
  place-items: end center;
  background: rgba(8, 18, 30, 0.52);
}
.action-sheet {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 16px 16px 12px 12px;
  padding: 0.85rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 0.45rem;
  animation: sheetup 0.28s ease both;
}
.action-sheet-title {
  margin: 0.15rem 0.4rem 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
}
.action-sheet-item,
.action-sheet-cancel {
  width: 100%;
  padding: 1rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  text-align: center;
}
.action-sheet-item {
  background: #f3f6f9;
  color: var(--ink);
  border: 1px solid var(--line);
}
.action-sheet-item:active { background: #e8eef3; }
.action-sheet-cancel {
  margin-top: 0.15rem;
  background: transparent;
  color: var(--muted);
}
.bubble {
  max-width: 92%;
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  line-height: 1.55;
  animation: fadein 0.3s ease both;
}
.bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(255, 106, 69, 0.14), rgba(255, 143, 74, 0.18));
  border: 1px solid rgba(255, 106, 69, 0.28);
}
.bubble.ai {
  align-self: flex-start;
  background:
    linear-gradient(145deg, rgba(255, 248, 238, 0.95), rgba(227, 242, 249, 0.9));
  border: 1px solid rgba(196, 138, 78, 0.28);
}
.chi-avatar,
.mate-avatar {
  display: block;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.65), transparent 45%),
    linear-gradient(160deg, #f8ebe6, #f0d2c8 55%, #e2a090);
  border: 2px solid rgba(196, 111, 100, 0.35);
  box-shadow: 0 4px 12px rgba(196, 111, 100, 0.18);
  object-fit: cover;
}
.chi-avatar.sm,
.mate-avatar.sm { width: 36px; height: 36px; }
.chi-avatar.md,
.mate-avatar.md { width: 44px; height: 44px; }
.chi-avatar.lg,
.mate-avatar.lg { width: 64px; height: 64px; }
.menu-ico-chi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(160deg, #faf0ec, #f8ebe6);
  box-shadow: 0 4px 12px rgba(196, 111, 100, 0.16);
  border: 0;
}
.menu-ico-chi .chi-avatar { width: 34px; height: 34px; border-width: 1.5px; }
.brand-with-chi,
.consult-hero-head,
.consult-cta-copy,
.ai-result-head {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.brand-with-chi { align-items: center; }
.ai-result-head {
  align-items: center;
  margin-bottom: 0.35rem;
}
.ai-result-head h2,
.ai-result-head h3 {
  margin: 0;
}
.consult-hero-head { margin-bottom: 0.75rem; }
.consult-hero-head h2 { margin-top: 0.1rem; }
.consult-cta-copy {
  flex: 1;
  min-width: 0;
  align-items: center;
}
.compose { display: grid; grid-template-columns: 1fr auto auto; gap: 0.45rem; }

.book-grid { display: grid; grid-template-columns: 1fr; gap: 0.65rem; }
@media (min-width: 560px) {
  .book-grid { grid-template-columns: 1fr 1fr; }
}
.book-grid a,
.book-card {
  display: grid;
  gap: 0.3rem;
  position: relative;
  text-decoration: none;
  color: inherit;
  padding: 1rem 1rem 0.9rem;
  border-radius: 16px;
  border: 1px dashed rgba(14, 155, 181, 0.35);
  background: linear-gradient(180deg, #fff, #eef8fc);
}
.book-grid a:hover,
.book-card:hover { border-color: var(--ocean); }
.book-grid strong,
.book-card strong { display: block; color: var(--sunset-deep); margin-bottom: 0.1rem; }
.book-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: none;
}
.book-note {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  background: rgba(14, 155, 181, 0.12);
  color: #0a6f82;
  font-size: 0.78rem;
  font-weight: 700;
  width: fit-content;
}
.book-pr {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.products { list-style: none; margin: 0; padding: 0; }
.products li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  align-items: start;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.products span, .products em { display: block; color: var(--muted); font-size: 0.85rem; font-style: normal; }
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0.7rem;
  background: #fff;
}
.toggle button { padding: 0.45rem 0.9rem; color: var(--muted); font-weight: 700; }
.toggle button.on {
  background: linear-gradient(135deg, var(--sunset), #ff8f4a);
  color: #fff;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
@media (min-width: 560px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}
.photo-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #dceaf2;
  box-shadow: var(--shadow-soft);
}
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-tile .del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(16, 42, 67, 0.55);
  color: #fff;
  font-weight: 700;
}
.photo-tile .cover-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sunset-deep);
}
.cover-hero {
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-right: -16px;
  height: 180px;
  border-radius: 0 0 22px 22px;
  object-fit: cover;
  margin-bottom: 0.95rem;
  background: linear-gradient(135deg, var(--sky), var(--ocean), var(--hill));
  box-shadow: var(--shadow);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.4rem 0 0.8rem; }
.chip {
  border-radius: 10px;
  padding: 0.35rem 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.chip.on {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--sky-deep);
  border-color: transparent;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 0.75rem 1.15rem;
  border-radius: 10px;
  z-index: 30;
  animation: fadein 0.25s ease both;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  max-width: min(92vw, 420px);
  text-align: center;
  line-height: 1.45;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 42, 67, 0.48);
  display: grid;
  place-items: end center;
  z-index: 40;
  padding: 1rem;
}
.sheet {
  width: min(560px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: var(--ticket);
  animation: sheetup 0.3s ease both;
  border-radius: 22px 22px 12px 12px;
}
.warn-inline { color: var(--danger); font-size: 0.88rem; }
.actions { display: grid; gap: 0.6rem; }
.big-btn {
  display: grid;
  place-items: center;
  min-height: 3.5rem;
  background: linear-gradient(180deg, #fff, #eef8fc);
  border: 1px dashed rgba(14, 155, 181, 0.55);
  color: var(--ink);
  font-weight: 800;
}
.big-btn.alt {
  border-style: solid;
  background: linear-gradient(135deg, rgba(255, 106, 69, 0.1), rgba(255, 143, 74, 0.12));
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes sheetup {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-kenburns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.05) translate3d(0, -0.8%, 0); }
}
@keyframes chi-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Soften / kill entrance blinks after first shell mount */
html.render-quiet .card,
html.render-quiet .brand-bar,
html.render-quiet .hero-home,
html.render-quiet .hero-copy,
html.render-quiet .hero-photo,
html.render-quiet .option-card,
html.render-quiet .voice-consult,
html.render-quiet .consult-hero,
html.render-quiet .album-stage,
html.render-quiet .menu-drawer {
  animation: none !important;
}

.ad-slot {
  margin: 0.75rem 0 1.1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  border: 1px dashed rgba(var(--accent-rgb), 0.22);
  background: rgba(255, 255, 255, 0.55);
  display: grid;
  gap: 0.15rem;
  justify-items: center;
  text-align: center;
  min-height: 52px;
  color: var(--muted);
  font-size: 0.8rem;
}
.home-body > .ad-slot { margin-top: 0.35rem; }
.ad-slot-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.7;
}
.ad-slot-body { font-weight: 600; color: var(--ink); }
.ad-slot-hint { font-size: 0.76rem; opacity: 0.82; }
.ad-slot--live {
  border-style: solid;
  border-color: rgba(var(--accent-rgb), 0.12);
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.82);
  min-height: 90px;
  overflow: hidden;
}
.ad-slot--live .adsbygoogle { width: 100%; }
.add-plan-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.add-plan-bar .primary {
  flex: 1 1 auto;
  width: auto;
}
.schedule-voice-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: linear-gradient(180deg, #fff, #faf3f0);
  color: var(--sky-deep);
  opacity: 0.88;
  box-shadow: none;
}
.schedule-voice-btn:hover,
.schedule-voice-btn:focus-visible {
  opacity: 1;
  border-color: rgba(var(--accent-rgb), 0.38);
  background: linear-gradient(180deg, #fff, #f8ebe6);
}
.schedule-voice-btn.listening {
  opacity: 1;
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.1);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}
.schedule-editor-head-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.schedule-editor-head-actions .schedule-voice-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo,
  .hero-home,
  .hero-brand .chi-avatar,
  .card,
  .brand-bar,
  .shell-trip::before,
  .option-card,
  .voice-consult {
    animation: none !important;
  }
}

@media (max-width: 720px) {
  .shell-trip::before,
  .hero-photo {
    animation-duration: 40s;
  }
}

.consult-hero {
  background:
    radial-gradient(circle at 8% 18%, rgba(232, 196, 154, 0.35), transparent 40%),
    radial-gradient(circle at 92% 10%, rgba(14, 155, 181, 0.12), transparent 42%),
    linear-gradient(180deg, #fff, #eef8fc);
}
.consult-hero h2 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
}
.consult-hero-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.option-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.option-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.95rem 1rem 1.05rem;
  background: linear-gradient(180deg, #fff, #eef8fc);
  box-shadow: var(--shadow-soft);
}
.option-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}
.option-kicker {
  margin: 0 0 0.2rem !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sunset-deep) !important;
}
.food-picks { margin: 0.55rem 0 0.7rem; }
.food-pick {
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
}
.food-pick:last-child { border-bottom: 0; }
.food-pick strong { display: block; font-size: 0.95rem; }
.food-pick span { display: block; color: var(--muted); font-size: 0.82rem; }
.suggest-cards { display: grid; gap: 0.55rem; }
.suggest-disc { margin: 0.15rem 0 0.35rem !important; font-size: 0.78rem !important; }
.suggest-card {
  padding: 0.7rem 0.8rem !important;
  border: 1px solid rgba(14, 155, 181, 0.18);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 248, 250, 0.95), rgba(238, 248, 252, 0.92));
  border-bottom: 1px solid rgba(14, 155, 181, 0.18) !important;
}
.suggest-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.suggest-card-top strong { flex: 1; }
.suggest-area {
  flex-shrink: 0;
  font-size: 0.72rem !important;
  font-weight: 700;
  color: var(--sunset-deep) !important;
  letter-spacing: 0.02em;
}
.suggest-why {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.suggest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.timeline.compact li { padding: 0.45rem 0.65rem; }
.timeline li.empty-row {
  display: block;
  border: 0;
  background: none;
  padding: 0.4rem 0 0.2rem;
  margin: 0;
}
.item-cta { margin-top: 0.45rem; }
.chip { cursor: pointer; }
.chip:hover { border-color: rgba(14, 155, 181, 0.55); color: #0a6f82; }

.feature-guide {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0.4rem 0 0.2rem;
}
.feature-guide::after { display: none; }
.feature-guide h2,
.onboarding-sheet h3 {
  font-family: var(--font-display);
  margin: 0 0 0.65rem;
}
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.feature-grid li {
  padding: 0.75rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(14, 155, 181, 0.28);
}
.feature-grid strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: var(--sky-deep);
}
.feature-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}
.onboarding-sheet { text-align: left; }
.onboarding-grid { margin: 0.9rem 0 1rem; }
.empty-copy { padding: 0.35rem 0; }
.empty-copy strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.98rem;
}
.empty-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.consult-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 106, 69, 0.14), transparent 42%),
    linear-gradient(135deg, #fff 35%, #e3f2f9 100%);
  animation: rise 0.45s ease both;
}
.consult-cta h2 {
  font-family: var(--font-display);
  margin: 0.1rem 0 0.25rem;
  font-size: 1.25rem;
}
.consult-cta .primary {
  flex: 0 0 auto;
  white-space: nowrap;
}
.soft-link {
  background: linear-gradient(180deg, #fff, #faf0ec);
}
.voice-consult {
  /* no entrance animation ? remounts used to flash from opacity 0 */
}
.option-list-lead {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.option-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.option-count {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0a6f82;
  background: rgba(14, 155, 181, 0.14);
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
}
.option-advice {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 0.35rem;
}
.ai-result {
  border: 1px solid rgba(14, 155, 181, 0.35);
  box-shadow: 0 10px 28px rgba(14, 155, 181, 0.12);
}
@media (max-width: 420px) {
  .consult-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .consult-cta .primary { width: 100%; }
  .nav button { font-size: 0.92rem; }
  .more-tile-row { grid-template-columns: 1fr; }

  /* Schedule / trip header: stack so title is not crushed to ~5px width */
  .shell {
    padding-left: 14px;
    padding-right: 14px;
  }
  .brand-bar.trip-band {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.55rem 0.65rem;
    padding: 1.1rem 0 1rem;
  }
  .brand-bar.trip-band .brand-lead {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }
  .brand-bar.trip-band .brand-actions {
    flex: 1 1 100%;
    width: 100%;
    justify-content: flex-end;
    gap: 0.45rem;
  }
  .brand-bar.trip-band .lang-switch--compact .lang-switch-btn {
    padding: 0.28rem 0.5rem;
    font-size: 0.72rem;
  }
  .trip-header-cover {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }
  .schedule-card {
    padding: 1.1rem 0.85rem 1.2rem;
  }
  .timeline-swipe-front {
    grid-template-columns: 2.9rem minmax(0, 1fr);
    gap: 0.35rem;
    padding: 0.65rem 0.65rem 0.65rem 0.5rem;
  }
  .timeline time { font-size: 0.88rem; }
  .day-tabs {
    margin-left: -0.15rem;
    margin-right: -0.15rem;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
    -webkit-overflow-scrolling: touch;
  }
}

/* --- ?????? / ???? / ??? --- */
.crew-hub h2 { margin: 0.15rem 0 0.35rem; }
.crew-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.crew-tile {
  display: grid;
  gap: 0.15rem;
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1px dashed rgba(14, 155, 181, 0.3);
  background: linear-gradient(160deg, #fff 0%, #eef8fc 100%);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.crew-tile:active { transform: scale(0.97); }
.crew-tile strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
}
.crew-tile span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
}
.crew-tile-ico {
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 0.15rem;
}
.sync-hint { margin-top: 0.75rem; }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: linear-gradient(145deg, var(--mist), #d7f0ff);
  border: 1px solid rgba(14, 155, 181, 0.25);
  object-fit: cover;
  font-size: 1.35rem;
}
.avatar.sm { width: 28px; height: 28px; font-size: 0.95rem; }
.avatar.photo { padding: 0; background: #ddd; }

.member-list { list-style: none; margin: 0; padding: 0; }
.member-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.member-list strong { display: block; }
.tag-self {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--sky-deep);
  background: rgba(var(--accent-rgb), 0.16);
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  vertical-align: middle;
  margin-left: 0.35rem;
}
.collab-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
  color: #1b5c3f;
  background: linear-gradient(135deg, rgba(61, 143, 106, 0.18), rgba(74, 143, 122, 0.28));
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  white-space: nowrap;
}
.collab-badge-demo {
  color: #7a4a12;
  background: linear-gradient(135deg, rgba(212, 162, 74, 0.22), rgba(194, 106, 58, 0.18));
  border-color: rgba(158, 82, 48, 0.3);
}
.collab-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: rgba(61, 143, 106, 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
}
.collab-banner .meta { margin: 0; flex: 1; min-width: 12rem; }
.collab-dot {
  color: var(--sky-deep);
  font-size: 0.7rem;
  vertical-align: middle;
}
.avatar-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.avatar-pick {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.4rem;
}
.avatar-pick.on {
  border-color: transparent;
  background: linear-gradient(135deg, var(--sky), var(--ocean));
  box-shadow: 0 6px 16px rgba(27, 155, 224, 0.28);
  transform: scale(1.05);
}
.avatar-preview { display: inline-flex; }
.avatar-edit-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.35rem 0 0.55rem;
}
.avatar-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.file-btn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
}
.file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-end;
}
.text-link,
.url-chip {
  color: var(--sky-deep);
  word-break: break-all;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.url-chips {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0.35rem 0 0.15rem;
}
.url-chip {
  font-size: 0.85rem;
  line-height: 1.4;
}

.friend-chat { max-height: 50vh; }
.friend-bubble { display: grid; gap: 0.3rem; max-width: 94%; }
.friend-bubble.mine { align-self: flex-end; }
.friend-bubble.theirs { align-self: flex-start; }
.friend-bubble-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}
.friend-bubble.mine .friend-bubble-meta { justify-content: flex-end; }
.friend-compose { grid-template-columns: 1fr auto; }

.money-summary-card {
  background: linear-gradient(145deg, rgba(27, 155, 224, 0.12), rgba(14, 155, 181, 0.1));
  border: 1px solid rgba(14, 155, 181, 0.28);
}
.money-summary-card.compact { padding: 1rem 1.1rem; }
.money-hero {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.3rem);
  margin: 0.1rem 0;
  letter-spacing: -0.02em;
}
.total-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.total-mini h2 {
  font-family: var(--font-display);
  margin: 0.1rem 0;
  font-size: 1.55rem;
}

.settle-list { list-style: none; margin: 0; padding: 0; }
.settle-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.settle-list em {
  font-style: normal;
  font-weight: 800;
  color: var(--sunset-deep);
  font-variant-numeric: tabular-nums;
}

.settle-hero-card {
  background: linear-gradient(165deg, #e8f5ee 0%, #fff 52%);
  border-color: rgba(var(--accent-rgb), 0.22);
}
.settle-hero-title {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.settle-transfer-cards {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.settle-transfer-card {
  padding: 1rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.settle-people {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.45rem;
  align-items: center;
}
.settle-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}
.settle-person strong { font-size: 0.95rem; }
.settle-person span { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.settle-arrow {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sky-deep);
}
.settle-amount {
  margin: 0.75rem 0 0.2rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2rem);
  font-weight: 800;
  color: var(--sky-deep);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.settle-caption {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}
.settle-count { margin: 0.75rem 0 0; text-align: center; }
.settle-done, .settle-empty {
  margin-top: 0.85rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px dashed rgba(var(--accent-rgb), 0.3);
  text-align: center;
}
.settle-done strong, .settle-empty strong { display: block; margin-bottom: 0.25rem; }

.balance-list { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.balance-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.balance-who { display: flex; align-items: center; gap: 0.45rem; }
.balance-list em {
  font-style: normal;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.balance-list li.plus em { color: var(--sky-deep); }
.balance-list li.minus em { color: var(--sunset-deep); }
.paid-by-list { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.paid-by-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.paid-by-list em {
  font-style: normal;
  font-weight: 800;
  color: var(--sky-deep);
  font-variant-numeric: tabular-nums;
}
.warikan-live-share {
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: #faf0ec;
  color: var(--ink);
  font-size: 0.95rem;
}
.warikan-live-share strong {
  color: var(--sky-deep);
  font-variant-numeric: tabular-nums;
}
.warikan-form-card label { font-weight: 600; }
.warikan-amount-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.65rem;
  align-items: end;
}
.warikan-amount-row label { margin: 0; }
.warikan-fx-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin: 0.35rem 0 0.55rem;
}
.warikan-fx-meta {
  margin: 0;
  font-size: 0.8rem;
}
.warikan-fx-manual {
  margin: 0.35rem 0 0.6rem;
  border-radius: 12px;
  background: rgba(14, 155, 181, 0.05);
  overflow: hidden;
}
.warikan-fx-manual-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.warikan-fx-manual-toggle:hover {
  background: rgba(14, 155, 181, 0.06);
}
.warikan-fx-manual-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
  flex: 0 0 auto;
  transition: transform 0.18s ease;
}
.warikan-fx-manual.is-open .warikan-fx-manual-chevron {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}
.warikan-fx-manual-body {
  padding: 0 0.75rem 0.65rem;
}
.warikan-fx-manual-body[hidden] {
  display: none;
}
.warikan-fx-manual-body > .meta {
  margin: 0 0 0.2rem;
}
.warikan-fx-rate-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.warikan-fx-rate-row input {
  width: 7rem;
  margin: 0;
}
.warikan-fx-warn { color: #b45309; }

.warikan-list { list-style: none; margin: 0; padding: 0; }
.warikan-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.warikan-main {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  min-width: 0;
}
.warikan-main strong { display: block; }
.warikan-side {
  display: grid;
  gap: 0.25rem;
  justify-items: end;
  flex: 0 0 auto;
}
.warikan-side em {
  font-style: normal;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.participant-chips .check-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}
.participant-chips .check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.participant-chips .check-chip.on {
  background: linear-gradient(135deg, var(--sky), var(--ocean));
  color: #fff;
  border-color: transparent;
}

.total-rows { list-style: none; margin: 0; padding: 0; }
.total-rows li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.total-rows li.total-grand {
  border-bottom: none;
  margin-top: 0.2rem;
  padding-top: 0.9rem;
  font-size: 1.05rem;
  color: var(--sky-deep);
}
.total-rows strong { font-variant-numeric: tabular-nums; }

/* ?? Home start CTA ?? */
.home-start {
  padding: 0;
  margin-bottom: var(--space-3);
}
.start-trip-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  text-align: left;
  padding: 1.1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--accent-rgb), 0.26);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 244, 239, 0.96)),
    var(--icon-well-soft);
  color: var(--sky-deep);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.1);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.start-trip-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.42);
  box-shadow: 0 12px 28px rgba(var(--accent-rgb), 0.14);
}
.start-trip-btn:active { transform: scale(0.99); }
.start-trip-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--icon-well);
  color: #fff;
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.24);
}
.start-trip-ico svg { display: block; color: #fff; }
.start-trip-ico svg circle[fill] { fill: rgba(255, 255, 255, 0.18); }
.start-trip-copy {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  flex: 1;
  min-width: 0;
}
.start-trip-copy strong {
  font-family: var(--font-display);
  font-size: 1.22rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.start-trip-copy span { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.start-trip-arrow {
  flex: 0 0 auto;
  color: var(--sky-deep);
  opacity: 0.55;
}
.home-start .home-secondary-actions { margin-top: 0.85rem; }
.add-plan-bar {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.add-plan-bar .primary {
  min-height: 3rem;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}
.nested-editor {
  margin-top: 1rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  background: #faf7f4;
}
.schedule-card .section-head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

/* ?? Schedule fullscreen / menu drawer ?? */
.shell-trip-full { padding-bottom: 48px; }
.brand-lead {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
}
.brand-lead h1 { font-size: clamp(1.2rem, 4.5vw, 1.75rem); }
.brand-title-with-cover {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex: 1 1 auto;
}
.brand-title-block {
  min-width: 0;
  flex: 1 1 auto;
}
.trip-title-btn {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.trip-title-btn h1 {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.trip-title-btn:hover h1,
.trip-title-btn:focus-visible h1 {
  border-bottom-color: rgba(255, 255, 255, 0.55);
}
.trip-title-btn:focus-visible {
  outline: none;
}
.trip-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  min-width: 0;
}
.trip-dest-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trip-dates-btn {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
  white-space: nowrap;
}
.trip-dates-btn:hover,
.trip-dates-btn:focus-visible {
  border-bottom-color: rgba(255, 255, 255, 0.55);
}
.trip-dates-btn:focus-visible {
  outline: none;
}
.trip-header-cover {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  overflow: hidden;
  background: var(--icon-well);
  color: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: none;
}
.trip-header-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.trip-header-cover--blank {
  background: var(--icon-well);
}
.trip-header-cover:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  transform: translateY(-1px);
}
.trip-header-cover-icon { display: block; }
.menu-trigger {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  color: var(--sky-deep);
  border-color: rgba(var(--accent-rgb), 0.25);
  background: #faf4f1;
}
.menu-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(42, 36, 34, 0.42);
  display: flex;
  justify-content: flex-end;
  /* opacity ????????????????????????????????????? */
  animation: menu-overlay-in 0.2s ease;
}
.menu-drawer {
  width: min(400px, 92vw);
  height: 100%;
  background:
    linear-gradient(180deg, #f7f0eb 0%, var(--sand) 42%, var(--mist) 100%);
  box-shadow: -12px 0 40px rgba(42, 36, 34, 0.18);
  display: flex;
  flex-direction: column;
  animation: drawer-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.menu-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1rem 1rem;
  border-bottom: 0;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(42, 30, 28, 0.55) 0%, rgba(48, 32, 30, 0.42) 100%),
    var(--hero-photo);
  background-size: cover;
  background-position: center 40%;
}
.menu-drawer-head strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.menu-drawer-head .ghost {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.menu-drawer-body {
  flex: 1;
  overflow: auto;
  padding: 0.85rem 0.9rem 2rem;
}
.menu-panel-drawer { background: transparent; border: 0; box-shadow: none; padding: 0; }
.menu-drawer-body .brand-bar { margin-top: 0.35rem; }
.menu-drawer-body .card { box-shadow: var(--shadow-soft); }
.menu-ico-svg {
  background: var(--icon-well);
  color: #fff;
}
.menu-ico-svg .menu-svg { display: block; }
@keyframes menu-overlay-in {
  from { background: rgba(42, 36, 34, 0); }
  to { background: rgba(42, 36, 34, 0.42); }
}
@keyframes drawer-in {
  from { transform: translateX(18px); }
  to { transform: none; }
}

/* ?? Schedule fold ?? */
.schedule-fold-head {
  align-items: flex-start;
  gap: 0.5rem 0.75rem;
}
.schedule-fold-btn {
  flex: 0 0 auto;
  margin-top: 0.15rem;
}
.schedule-body {
  animation: fadein 0.22s ease both;
}
.schedule-fold-actions {
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--line);
}
.schedule-fold-actions .text.on { color: var(--sky-deep); }

/* ?? Pack accordion (schedule) ?? */
.pack-accordion {
  margin: 0.75rem 0 0;
  padding: 0.95rem 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: linear-gradient(180deg, #faf7f4, #fff);
  animation: fadein 0.25s ease both;
}
.pack-accordion h3 { margin: 0 0 0.15rem; font-size: 1.05rem; }
.add-plan-trigger .text.on { color: var(--sky-deep); }

/* ?? Packing templates ?? */
.pack-tpl-card h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.pack-tpl-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.pack-tpl-list > li {
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.pack-tpl-main {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.pack-tpl-main strong { font-size: 0.98rem; }
.pack-tpl-actions { flex-wrap: wrap; gap: 0.35rem; }
.pack-tpl-rename-input { margin-top: 0; }

/* Full-panel chat: avoid nested drawer scroll feel */
.shell-trip-full .chat-panel .friend-chat {
  max-height: min(58vh, calc(100dvh - 280px));
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Language switch ? home / join / schedule */
.lang-switch {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(40, 28, 26, 0.28);
  backdrop-filter: blur(8px);
}
.lang-switch--home,
.lang-switch--settings,
.lang-switch--join,
.lang-switch--compact {
  border-color: rgba(var(--accent-rgb), 0.28);
  background: #fff;
  box-shadow: 0 2px 10px rgba(42, 36, 34, 0.06);
}
.lang-switch-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.82);
}
.lang-switch--home .lang-switch-btn,
.lang-switch--settings .lang-switch-btn,
.lang-switch--join .lang-switch-btn,
.lang-switch--compact .lang-switch-btn {
  color: var(--muted);
}
.lang-switch-btn.on {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.lang-switch--home .lang-switch-btn.on,
.lang-switch--settings .lang-switch-btn.on,
.lang-switch--join .lang-switch-btn.on,
.lang-switch--compact .lang-switch-btn.on {
  background: linear-gradient(135deg, var(--sky), var(--ocean));
  color: #fff;
}
.lang-switch--compact .lang-switch-btn {
  padding: 0.32rem 0.6rem;
  font-size: 0.75rem;
}
.home-lang-bar,
.join-lang-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.95rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #faf7f4, #fff);
}
.join-lang-bar { margin: 0.35rem 0 0.85rem; }
.hero-lang .lang-switch {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

/* Menu panel headers: menu left, no home */
.panel-band .brand-lead {
  flex: 1;
  min-width: 0;
}
.panel-band .menu-trigger {
  margin-top: 0.05rem;
}

/* Members: add-first UX */
.members-add-cta {
  width: 100%;
  font-size: 1.05rem;
  padding: 0.95rem 1rem;
  letter-spacing: 0.03em;
}
.members-add-hint { margin: 0.55rem 0 0; }
.members-invite-card h2 { margin-bottom: 0.25rem; }

/* Theme picker (settings) */
.theme-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin: 0.55rem 0 0.35rem;
}
.theme-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.4rem 0.65rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.theme-opt.on {
  border-color: rgba(var(--accent-rgb), 0.45);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.16);
}
.theme-opt:hover { transform: translateY(-1px); }
.theme-swatch {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(30, 30, 30, 0.12);
}
.theme-swatch--rose {
  background: linear-gradient(145deg, #e8b4a8, #c46f64 60%, #e2a090);
}
.theme-swatch--green {
  background: linear-gradient(145deg, #8ec9ad, #2f7a58 60%, #6aaf8e);
}
.theme-swatch--ocean {
  background: linear-gradient(145deg, #9ec8e8, #3b7fb8 60%, #7eb4db);
}
