:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --surface-3: #eef2f5;
  --ink: #17212b;
  --text: #22313f;
  --muted: #697887;
  --subtle: #9aa6b2;
  --line: #dbe2e8;
  --brand: #d71920;
  --brand-dark: #a70f17;
  --accent: #ffd400;
  --accent-2: #ff8a00;
  --blue: #0b66c3;
  --green: #16a06a;
  --danger: #d71920;
  --focus: #0b66c3;
  --shadow: 0 14px 34px rgba(26, 39, 52, 0.12);
  --shadow-soft: 0 8px 22px rgba(26, 39, 52, 0.08);
  --font-zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Songti SC", "STSong", "SimSun", sans-serif;
  --font-en: "Poppins", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font-en), var(--font-zh);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  padding-bottom: 172px;
  color: var(--text);
  background:
    linear-gradient(180deg, #fff8cf 0, rgba(255, 248, 207, 0) 230px),
    radial-gradient(circle at 12% -10%, rgba(215, 25, 32, 0.14), transparent 280px),
    var(--bg);
  font-family: var(--font-en), var(--font-zh);
  overflow-x: hidden;
}

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.persona-card strong,
.selected-persona strong,
.answer-box strong {
  color: var(--ink);
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 span[lang="en"],
h2 span[lang="en"] {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.54em;
  font-weight: 700;
  line-height: 1.15;
}

h2 {
  margin-bottom: 0;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

:lang(zh-CN),
.script-text,
.persona-card strong,
.persona-card span,
.selected-persona,
.answer-box,
.feedback-note {
  font-family: var(--font-zh), var(--font-en);
}

.eyebrow,
.section-kicker,
.count-pill,
.status-pill,
.route-summary strong,
.guide-meta,
code {
  font-family: var(--font-en), var(--font-zh);
}

.app-shell {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 10px 10px 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 142px;
  padding: 18px;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 212, 0, 0.92) 0 21%, transparent 21%),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 72%);
  box-shadow: var(--shadow);
}

.topbar::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -92px;
  width: 210px;
  height: 210px;
  border: 24px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.topbar h1,
.topbar .eyebrow,
.topbar .app-context {
  color: #ffffff;
}

.topbar .eyebrow {
  color: var(--accent);
}

.app-context {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.eyebrow,
.section-kicker {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--brand);
  background: var(--accent);
  box-shadow: 0 10px 20px rgba(78, 12, 17, 0.18);
  font-size: 26px;
  font-weight: 900;
}

.hero-panel {
  display: none;
}

.layout-grid {
  display: block;
  margin-top: 10px;
}

.panel,
.guide-card,
.recommendation-card,
.story-card,
.story-mode-panel,
.tool-panel,
.qa-card,
.feedback-panel,
.location-card,
.selected-persona,
.selected-mood,
.answer-box,
.memory-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.panel {
  min-width: 0;
  padding: 14px;
}

body[data-active-view] .persona-panel,
body[data-active-view] .route-panel,
body[data-active-view] .assistant-panel {
  display: none;
}

body[data-active-view="persona"] .persona-panel,
body[data-active-view="guide"] .route-panel,
body[data-active-view="story"] .route-panel,
body[data-active-view="story"] .assistant-panel,
body[data-active-view="tools"] .assistant-panel,
body[data-active-view="feedback"] .assistant-panel {
  display: block;
}

body[data-active-view="guide"] .story-card,
body[data-active-view="story"] .route-panel > .panel-heading,
body[data-active-view="story"] .route-summary,
body[data-active-view="story"] .map-sim,
body[data-active-view="story"] .location-card,
body[data-active-view="story"] .guide-card,
body[data-active-view="story"] .recommendation-card,
body[data-active-view="story"] .qa-card,
body[data-active-view="story"] .assistant-panel > .panel-heading,
body[data-active-view="story"] .selected-persona,
body[data-active-view="story"] .qa-list,
body[data-active-view="story"] #answerBox,
body[data-active-view="story"] .tool-panel,
body[data-active-view="story"] .profile-panel,
body[data-active-view="tools"] .assistant-panel > :not(.tool-panel),
body[data-active-view="feedback"] .assistant-panel > :not(.profile-panel) {
  display: none;
}

body[data-active-view="guide"] .topbar,
body[data-active-view="feedback"] .topbar {
  display: none;
}

body[data-active-view="feedback"] .player-bar {
  display: none;
}

body[data-active-view="guide"]:not(.is-journey-active) .player-bar {
  display: none;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.count-pill,
.status-pill {
  display: inline-flex;
  min-width: 38px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(215, 25, 32, 0.18);
  border-radius: 999px;
  color: var(--brand);
  background: #fff3f3;
  font-size: 12px;
  font-weight: 900;
}

.status-pill {
  color: #4d3800;
  border-color: rgba(255, 212, 0, 0.7);
  background: var(--accent);
}

.persona-list,
.qa-list,
.mood-list,
.story-list,
.memory-list,
.recommendation-list {
  display: grid;
  gap: 10px;
}

.persona-list,
.qa-list {
  max-height: none;
  overflow: auto;
  padding-right: 2px;
}

.persona-card,
.qa-button,
.story-button,
.mood-chip {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.persona-card {
  padding: 13px;
}

.persona-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 900;
}

.persona-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.persona-card.active,
.qa-button.active,
.mood-chip.active {
  border-color: var(--brand);
  background: #fff5f5;
  box-shadow: inset 4px 0 0 var(--brand);
}

.persona-card:hover,
.qa-button:hover,
.story-button:hover,
.mood-chip:hover,
.secondary:hover,
.icon-button:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.mood-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.compact-heading {
  margin-bottom: 10px;
}

.mood-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mood-chip {
  min-height: 42px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 800;
}

.selected-mood {
  margin-top: 10px;
  padding: 12px;
  background: #fffbea;
  box-shadow: none;
}

.selected-mood strong,
.selected-mood span,
.selected-persona small {
  display: block;
}

.selected-mood span,
.selected-persona small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.route-panel {
  padding: 0;
  overflow: hidden;
}

.route-panel > .panel-heading {
  margin: 0;
  padding: 16px 16px 8px;
  background: var(--surface);
}

.route-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 16px 12px;
}

.route-summary div {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.route-summary strong,
.route-summary span {
  display: block;
}

.route-summary strong {
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 19px;
  font-weight: 1000;
  line-height: 1.2;
}

.route-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.map-sim {
  position: relative;
  min-height: 286px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(11, 102, 195, 0.08), transparent 45%),
    #dbe9f6;
}

.map-grid {
  position: absolute;
  inset: -26px;
  opacity: 0.8;
  background-image:
    linear-gradient(rgba(122, 145, 165, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 145, 165, 0.24) 1px, transparent 1px);
  background-size: 38px 38px;
  transform: rotate(-9deg) scale(1.18);
}

.map-sim::before {
  content: "London route";
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  font-size: 12px;
  font-weight: 900;
}

.route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 12px rgba(20, 31, 43, 0.18));
}

.route-svg-line {
  fill: none;
  stroke: var(--brand);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
  vector-effect: non-scaling-stroke;
}

.route-svg-stop circle {
  fill: #ffffff;
  stroke: var(--brand);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.route-svg-stop text {
  fill: var(--ink);
  font-size: 5px;
  font-weight: 1000;
  text-anchor: middle;
}

.route-svg-stop.is-current circle,
.route-svg-user {
  fill: var(--accent);
  stroke: var(--brand);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.map-legend {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  font-size: 12px;
  font-weight: 800;
}

.location-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 12px 16px 0;
  padding: 14px;
  background: #f7fbff;
  box-shadow: none;
}

.location-card strong,
.location-card span {
  display: block;
}

.location-card strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.location-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.location-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.location-card.is-near {
  border-color: var(--green);
  background: #effbf5;
}

.location-card.is-off-route {
  border-color: var(--danger);
  background: #fff5f5;
}

.guide-card,
.recommendation-card,
.story-card,
.qa-card {
  margin: 12px 16px 0;
  padding: 16px;
}

.story-mode-panel,
.tool-panel,
.profile-panel {
  margin-top: 12px;
  padding: 16px;
}

.guide-card {
  border-color: rgba(215, 25, 32, 0.2);
}

.recommendation-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.recommendation-item span,
.recommendation-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.recommendation-item h3 {
  margin: 4px 0 6px;
  font-size: 17px;
}

.recommendation-item p {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.recommendation-item a {
  align-self: start;
  padding: 8px 10px;
  border: 1px solid rgba(215, 25, 32, 0.18);
  border-radius: 999px;
  color: var(--brand);
  background: #fff5f5;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.guide-meta span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 800;
}

#stopRole {
  color: var(--brand);
  font-weight: 900;
}

.script-text {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.68;
}

#stopOutline {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.next-hint {
  margin: 14px 0 0;
  padding: 12px;
  border-left: 4px solid var(--brand);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
  background: #fff5f5;
  line-height: 1.55;
}

.controls,
.voice-actions,
.feedback-actions {
  display: grid;
  gap: 8px;
}

.controls {
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 14px;
}

.voice-actions {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 10px;
}

.feedback-actions {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 10px;
}

.feedback-actions:last-of-type {
  grid-template-columns: 1fr 1fr;
}

.primary,
.secondary,
.qa-button,
.story-button {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 900;
}

.primary {
  border: 1px solid var(--brand);
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 8px 16px rgba(215, 25, 32, 0.22);
}

.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}

.primary:disabled,
.secondary:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.active-choice {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff5f5;
}

.selected-persona {
  min-height: 92px;
  margin-bottom: 12px;
  padding: 13px;
  background: var(--surface-2);
  box-shadow: none;
  color: var(--muted);
  line-height: 1.5;
}

.selected-persona strong {
  display: block;
  margin-bottom: 6px;
}

.story-button {
  background: var(--surface-2);
}

.story-button strong,
.story-button span {
  display: block;
}

.story-button span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.qa-list {
  max-height: 290px;
}

.free-qa {
  margin-bottom: 12px;
}

.free-qa textarea {
  min-height: 84px;
}

.qa-button {
  color: var(--text);
  background: var(--surface-2);
  font-size: 13px;
  line-height: 1.45;
}

.answer-box {
  margin-top: 12px;
  min-height: 132px;
  padding: 14px;
  border-color: rgba(255, 212, 0, 0.85);
  background: #fffbea;
  box-shadow: none;
  color: var(--text);
  line-height: 1.65;
}

.story-output,
.compact-output {
  margin-top: 10px;
}

.story-result span,
.story-result small,
.memory-item span,
.memory-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.story-result h3 {
  margin: 7px 0 8px;
  font-size: 20px;
}

.story-result p {
  line-height: 1.7;
}

textarea {
  width: 100%;
  min-height: 104px;
  margin-bottom: 10px;
  padding: 12px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: var(--surface-2);
  line-height: 1.5;
}

textarea::placeholder {
  color: var(--subtle);
}

textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(11, 102, 195, 0.14);
}

.tool-panel input[type="file"] {
  width: 100%;
  margin: 2px 0 10px;
  color: var(--muted);
}

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

.memory-item {
  padding: 11px;
  background: var(--surface-2);
  box-shadow: none;
}

.memory-item p {
  margin-bottom: 6px;
  line-height: 1.55;
}

.feedback-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

code {
  color: var(--brand);
  font-weight: 800;
}

.player-bar {
  position: fixed;
  right: auto;
  bottom: 76px;
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: calc(100% - 24px);
  max-width: 536px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid rgba(215, 25, 32, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(26, 39, 52, 0.18);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.player-progress {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}

.player-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 180ms ease;
}

.player-copy {
  min-width: 0;
}

.player-copy span,
.player-copy strong,
.player-copy p {
  display: block;
}

.player-copy span {
  margin-bottom: 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.player-copy strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 1000;
}

.player-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.player-actions {
  display: grid;
  align-self: center;
  gap: 8px;
}

.player-button {
  align-self: center;
  min-width: 112px;
}

.player-actions .secondary {
  border-color: #17212b;
  color: #ffffff;
  background: #17212b;
}

.app-tabbar {
  position: fixed;
  right: auto;
  bottom: 10px;
  left: 50%;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-width: 0;
  gap: 4px;
  width: calc(100% - 24px);
  max-width: 536px;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 42px rgba(26, 39, 52, 0.16);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.tab-button {
  display: grid;
  min-width: 0;
  min-height: 52px;
  padding: 0;
  place-items: center;
  gap: 2px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
}

.tab-button span,
.tab-button small {
  display: block;
  line-height: 1.1;
}

.tab-button span {
  font-size: 13px;
  font-weight: 1000;
}

.tab-button small {
  font-size: 10px;
  font-weight: 800;
}

.tab-button.active {
  color: var(--ink);
  background: var(--accent);
}

@media (max-width: 760px) {
  body {
    padding-bottom: 176px;
  }

  .app-shell {
    max-width: 430px;
    margin: 0;
    padding: 0 10px;
  }

  .topbar {
    margin: 0 -10px;
    border-radius: 0 0 8px 8px;
  }

  .panel {
    padding: 14px;
  }

  .route-summary,
  .controls,
  .location-card {
    grid-template-columns: 1fr;
  }

  .route-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .route-summary div {
    padding: 10px;
  }

  .route-summary strong {
    font-size: 17px;
  }

  .route-summary span {
    font-size: 10px;
  }

  .persona-list,
  .qa-list {
    max-height: none;
  }

  .map-sim {
    min-height: 270px;
  }

  .map-legend {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .location-card,
  .guide-card,
  .recommendation-card,
  .story-card,
  .qa-card {
    margin-right: 14px;
    margin-left: 14px;
  }

  .player-bar {
    right: auto;
    bottom: 76px;
    left: 12px;
    grid-template-columns: minmax(0, 1fr);
    width: min(calc(100vw - 24px), 406px);
    transform: none;
  }

  .player-actions {
    grid-template-columns: 1fr 1fr;
  }

  .player-button {
    width: 100%;
    min-width: 0;
  }

  .app-tabbar {
    right: auto;
    left: 12px;
    bottom: 10px;
    width: min(calc(100vw - 24px), 406px);
    transform: none;
  }
}

@media (min-width: 900px) {
  .app-shell {
    max-width: 560px;
  }
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #fffdfb;
  animation: splashExit 2800ms ease forwards;
}

.splash-logo-wrap {
  width: min(78vw, 360px);
  animation: walkerFloat 1800ms ease-in-out infinite;
}

.splash-logo-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.splash-screen.is-hidden {
  animation: none;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

@keyframes splashExit {
  0%,
  68% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@keyframes walkerFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.home-panel {
  padding: 18px 16px 0;
  background: #fffaf9;
}

.language-pill {
  display: inline-flex;
  height: 30px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  float: right;
  margin-bottom: 14px;
  border: 1px solid #eadfda;
  border-radius: 999px;
  color: var(--ink);
  background: #f2ebe7;
  font-size: 12px;
  font-weight: 900;
}

.ai-guide-cta {
  clear: both;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  gap: 10px;
  min-height: 182px;
  padding: 24px 22px;
  overflow: hidden;
  border: 1px solid #eadfda;
  border-radius: 8px;
  background: #fff7f4;
  box-shadow: none;
}

.ai-guide-cta::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 18px;
  width: 92px;
  height: 92px;
  border: 14px solid rgba(23, 33, 43, 0.08);
  border-radius: 8px;
}

.ai-guide-cta h2 {
  max-width: 230px;
  margin-bottom: 12px;
  font-size: 26px;
}

.ai-guide-cta p:not(.section-kicker) {
  max-width: 275px;
  margin-bottom: 18px;
  color: #5c5756;
  font-size: 14px;
  line-height: 1.45;
}

.guide-select-button {
  width: min(100%, 260px);
  text-transform: uppercase;
}

.guide-cta-icon {
  position: relative;
  z-index: 1;
  align-self: end;
  justify-self: center;
  color: var(--brand);
  font-size: 28px;
  font-weight: 1000;
}

.search-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 24px 0 28px;
  padding: 0 16px;
  min-height: 56px;
  border: 1px solid #d9d1cd;
  background: #fffdfb;
}

.search-box span {
  color: var(--ink);
  font-size: 21px;
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}

.home-section-title {
  margin: 0 0 12px;
}

.home-section-title.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
}

.home-section-title.split h2 {
  font-size: 26px;
}

.text-link {
  min-height: auto;
  padding: 0;
  border: 0;
  color: var(--brand);
  background: transparent;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-experience {
  overflow: hidden;
  border: 1px solid #eadfda;
  border-radius: 8px;
  background: #fffdfb;
  box-shadow: var(--shadow-soft);
}

.featured-image {
  position: relative;
  aspect-ratio: 1.55 / 1;
  overflow: hidden;
  background: #151515;
}

.featured-image img,
.journey-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-badges {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  gap: 6px;
}

.image-badges span,
.journey-card > span,
.journey-card strong {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
}

.featured-copy {
  padding: 22px;
}

.featured-copy .tags {
  max-width: 250px;
  margin: 0 auto 12px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.featured-copy h2 {
  margin-bottom: 12px;
  font-size: 28px;
}

.featured-copy > p {
  color: #4c4442;
  line-height: 1.58;
}

.route-facts,
.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.feature-chips span {
  padding: 6px 10px;
  border: 1px solid #e5dcd8;
  border-radius: 999px;
  background: #fff;
}

.featured-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eee5e1;
}

.featured-guide span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-guide strong {
  color: var(--ink);
  font-size: 14px;
}

.journey-carousel {
  display: grid;
  grid-auto-columns: minmax(220px, 82%);
  grid-auto-flow: column;
  gap: 16px;
  margin: 0 -16px;
  padding: 0 16px 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.journey-card {
  position: relative;
  scroll-snap-align: start;
}

.journey-card img {
  height: 310px;
  border-radius: 6px;
}

.journey-card > span {
  position: absolute;
  left: 10px;
  top: 278px;
}

.journey-card h3 {
  margin: 14px 0 6px;
  font-size: 18px;
}

.journey-card p {
  color: #4c4442;
  font-size: 13px;
  line-height: 1.45;
}

.profile-panel {
  min-height: calc(100vh - 110px);
  padding-bottom: 94px;
  border: 0;
  background: #fffaf9;
  box-shadow: none;
}

.profile-current-trip {
  position: sticky;
  top: 10px;
  z-index: 8;
  display: none;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(215, 25, 32, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(45, 28, 20, 0.12);
  backdrop-filter: blur(14px);
}

body.is-journey-active[data-active-view="feedback"] .profile-current-trip {
  display: grid;
}

.profile-current-trip span,
.profile-current-trip strong {
  display: block;
}

.profile-current-trip span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-current-trip strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 14px;
}

.profile-current-trip > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

.profile-avatar {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, #10212d, #7a1118);
  font-weight: 1000;
}

.profile-hero h3 {
  margin-bottom: 4px;
  font-size: 24px;
}

.profile-hero p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.profile-section {
  margin-top: 30px;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 30px;
}

.account-stats div {
  padding: 15px 10px;
  border: 1px solid #ead8d5;
  border-radius: 8px;
  background: #fffdfb;
  text-align: center;
}

.account-stats strong,
.account-stats span {
  display: block;
}

.account-stats strong {
  color: var(--ink);
  font-size: 21px;
}

.account-stats span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-section h2 {
  margin-bottom: 14px;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding: 16px;
  border: 1px solid #ead8d5;
  border-radius: 8px;
  background: #fffdfb;
}

.account-row strong,
.account-row span {
  display: block;
}

.account-row div span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.account-row > span {
  color: var(--brand);
  font-size: 17px;
}

.profile-journeys .journey-card img {
  height: 280px;
}

.journey-card.large {
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: #111;
}

.journey-card.large::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.76));
}

.journey-card.large strong {
  position: absolute;
  left: 12px;
  bottom: 58px;
  z-index: 1;
  color: #fff;
  background: var(--brand);
}

.journey-card.large h3,
.journey-card.large p {
  position: absolute;
  z-index: 1;
  left: 12px;
  right: 12px;
}

.journey-card.large h3 {
  bottom: 24px;
  color: #fff;
}

.journey-card.large p {
  bottom: -26px;
  color: var(--muted);
}

.saved-story {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #efe4e0;
  border-radius: 8px;
  background: #fffdfb;
}

.saved-story button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  color: var(--brand);
  background: #f5e8e8;
}

.saved-story strong,
.saved-story span {
  display: block;
}

.saved-story span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.preference-list {
  margin-top: 14px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5eeee;
}

.preference-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px;
  border-bottom: 1px solid #e8dcda;
}

.preference-list div:last-child {
  border-bottom: 0;
}

.preference-list strong {
  color: var(--brand);
  text-transform: uppercase;
  text-align: right;
}

.toggle-on {
  padding: 2px 10px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--brand);
}

.privacy-card {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid #ead8d5;
  border-radius: 8px;
  background: #f8eeee;
}

.privacy-card p {
  color: #695c5a;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .home-panel {
    margin: -14px;
    padding: 16px 16px 0;
  }

  .ai-guide-cta {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .ai-guide-cta h2 {
    font-size: 21px;
  }

  .featured-copy h2 {
    font-size: 25px;
  }

  .featured-guide {
    grid-template-columns: minmax(0, 1fr);
  }
}
