:root {
  --ink: #193129;
  --ink-soft: #2d463b;
  --forest: #244b3c;
  --paper: #f4f1e9;
  --surface: #fffdf8;
  --surface-deep: #eae5d9;
  --muted: #737c75;
  --muted-light: #a5aaa4;
  --line: rgba(25, 49, 41, 0.1);
  --lime: #daf36d;
  --lime-deep: #c4df58;
  --orange: #ed7856;
  --sand: #e8d9bf;
  --blue: #9ec7c3;
  --purple: #cab9e4;
  --shadow: 0 18px 50px rgba(20, 35, 29, 0.12);
  --accent-soft: #eef1dc;
  --warm-soft: #f4e5c5;
  --orange-soft: #f4dfd4;
  --sand-soft: #e8e2d5;
  --nav-bg: rgba(25, 49, 41, 0.96);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
}

:root[data-theme="salt"] {
  --ink: #163840;
  --ink-soft: #31535a;
  --forest: #2b6570;
  --paper: #edf4f2;
  --surface: #fbfffd;
  --surface-deep: #dbe8e4;
  --muted: #6d8081;
  --muted-light: #9baaab;
  --line: rgba(22, 56, 64, 0.11);
  --lime: #b9e6dd;
  --lime-deep: #89cfc3;
  --orange: #ef8c78;
  --sand: #dfd8ca;
  --blue: #91c7d2;
  --purple: #b9c9df;
  --shadow: 0 18px 50px rgba(22, 56, 64, 0.12);
  --accent-soft: #e0f0eb;
  --warm-soft: #f4e5c8;
  --orange-soft: #f5deda;
  --sand-soft: #dfe9e5;
  --nav-bg: rgba(22, 56, 64, 0.96);
}

:root[data-theme="clay"] {
  --ink: #3d2a22;
  --ink-soft: #5c4438;
  --forest: #704b38;
  --paper: #f7eee5;
  --surface: #fffaf5;
  --surface-deep: #eeddd0;
  --muted: #826f65;
  --muted-light: #b3a298;
  --line: rgba(61, 42, 34, 0.11);
  --lime: #f1c872;
  --lime-deep: #dfad4f;
  --orange: #c95e45;
  --sand: #dfc7ac;
  --blue: #a9b8ac;
  --purple: #cfb6b1;
  --shadow: 0 18px 50px rgba(61, 42, 34, 0.12);
  --accent-soft: #f2e3d4;
  --warm-soft: #f4dfbf;
  --orange-soft: #f5d9cf;
  --sand-soft: #e9d7c6;
  --nav-bg: rgba(61, 42, 34, 0.96);
}

:root[data-theme="lilac"] {
  --ink: #30263d;
  --ink-soft: #4d3d59;
  --forest: #5b4669;
  --paper: #f4eff6;
  --surface: #fdf9ff;
  --surface-deep: #e7ddec;
  --muted: #786b80;
  --muted-light: #aa9eaf;
  --line: rgba(48, 38, 61, 0.11);
  --lime: #dcc6ef;
  --lime-deep: #c5a8de;
  --orange: #d67b96;
  --sand: #ddc8d5;
  --blue: #b8c4dd;
  --purple: #cab9e4;
  --shadow: 0 18px 50px rgba(48, 38, 61, 0.12);
  --accent-soft: #eee2f1;
  --warm-soft: #f1e2cf;
  --orange-soft: #f1dce4;
  --sand-soft: #e6dce8;
  --nav-bg: rgba(48, 38, 61, 0.96);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 17% 18%, rgba(218, 243, 109, 0.13), transparent 25%),
    radial-gradient(circle at 83% 76%, rgba(237, 120, 86, 0.13), transparent 28%),
    var(--ink);
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(237, 120, 86, 0.42);
  outline-offset: 2px;
}

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.desktop-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 8vw, 120px);
  min-height: 100dvh;
  padding: 24px;
  overflow: hidden;
}

.desktop-stage::before,
.desktop-stage::after {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.desktop-stage::before {
  top: -28vw;
  right: -15vw;
  width: 70vw;
  height: 70vw;
}

.desktop-stage::after {
  bottom: -32vw;
  left: -16vw;
  width: 74vw;
  height: 74vw;
}

.desktop-wordmark {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  width: 260px;
  color: rgba(255, 253, 248, 0.92);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.04em;
}

.desktop-mark {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-size: 24px;
  letter-spacing: 0;
}

.phone-shell {
  position: relative;
  z-index: 2;
  width: min(430px, 100%);
  height: min(880px, calc(100dvh - 48px));
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.13);
  border-radius: 48px;
  background: var(--paper);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.38);
  isolation: isolate;
}

.app-view {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
  border-radius: inherit;
  background: var(--paper);
}

.app-view.is-active {
  display: block;
  animation: view-in 360ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view-scroll {
  width: 100%;
  height: 100%;
  padding: 0 22px calc(104px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.inner-topbar + .view-scroll {
  height: calc(100% - 78px);
}

.view-scroll::-webkit-scrollbar,
.sheet-scroll::-webkit-scrollbar,
.idea-row::-webkit-scrollbar,
.food-row::-webkit-scrollbar {
  display: none;
}

.scroll-spacer {
  height: 16px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.home-topbar {
  height: 82px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-dot {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
}

.brand-dot .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.icon-button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--ink);
}

.icon-button:active {
  transform: scale(0.95);
}

.notification-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 6px;
  height: 6px;
  border: 1.5px solid var(--paper);
  border-radius: 50%;
  background: var(--orange);
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.greeting-block {
  isolation: isolate;
  padding: 15px 0 22px;
}

.greeting-block h1 {
  margin-top: 7px;
  color: var(--ink);
  font-size: clamp(40px, 10vw, 50px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.075em;
}

.greeting-block h1 em {
  position: relative;
  display: inline-block;
  font-style: normal;
}

.greeting-block h1 em::after {
  position: absolute;
  right: 1px;
  bottom: 1px;
  left: 3px;
  z-index: -1;
  height: 10px;
  border-radius: 4px;
  background: var(--lime);
  content: "";
  transform: rotate(-1deg);
}

.smart-search {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(25, 49, 41, 0.08);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 25px rgba(20, 35, 29, 0.06);
}

.smart-search:active {
  transform: scale(0.99);
}

.search-icon-wrap {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  background: var(--ink);
  color: var(--lime);
}

.search-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.search-copy strong {
  font-size: 14px;
  font-weight: 500;
}

.search-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-tune {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-soft);
}

.search-tune .icon {
  width: 17px;
  height: 17px;
}

.quick-destinations {
  display: flex;
  gap: 8px;
  padding: 12px 0 22px;
}

.quick-destinations button {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
}

.quick-destinations button:active {
  background: var(--surface);
}

.featured-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 29px;
  background: #d9d8cb;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.travel-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.art-shanghai {
  background: linear-gradient(160deg, #d9e7d7 0%, #ebe5d3 43%, #eacab2 75%, #b9cbc7 100%);
}

.art-sun {
  position: absolute;
  top: 43px;
  right: 55px;
  width: 59px;
  height: 59px;
  border-radius: 50%;
  background: #f5bf79;
  box-shadow: 0 0 0 12px rgba(245, 191, 121, 0.14);
}

.art-cloud {
  position: absolute;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.56);
  filter: blur(1px);
}

.cloud-one {
  top: 78px;
  left: 36px;
  width: 88px;
}

.cloud-two {
  top: 108px;
  left: 130px;
  width: 48px;
}

.art-building {
  position: absolute;
  bottom: 65px;
  border-radius: 3px 3px 0 0;
  background: rgba(52, 72, 62, 0.8);
}

.building-one {
  left: 27px;
  width: 56px;
  height: 116px;
  box-shadow: inset 8px 15px 0 rgba(255, 255, 255, 0.1), inset 21px 36px 0 rgba(255, 255, 255, 0.07);
}

.building-two {
  left: 89px;
  width: 92px;
  height: 157px;
  background: rgba(45, 65, 55, 0.87);
  clip-path: polygon(0 16%, 50% 0, 100% 16%, 100% 100%, 0 100%);
}

.building-three {
  right: 25px;
  width: 79px;
  height: 97px;
  background: rgba(59, 80, 69, 0.68);
}

.art-water {
  position: absolute;
  right: -20px;
  bottom: -67px;
  left: -20px;
  height: 145px;
  border-radius: 50%;
  background: rgba(129, 164, 158, 0.73);
  box-shadow: 0 -8px 35px rgba(255, 255, 255, 0.3);
}

.featured-kicker {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.featured-content {
  position: absolute;
  right: 20px;
  bottom: 55px;
  left: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.featured-content p {
  margin-bottom: 4px;
  color: rgba(25, 49, 41, 0.72);
  font-size: 12px;
}

.featured-content h2 {
  font-size: 33px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.07em;
}

.round-arrow {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
}

.round-arrow .icon {
  width: 22px;
  height: 22px;
}

.featured-meta {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(25, 49, 41, 0.78);
  font-size: 10px;
}

.featured-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.featured-meta .icon {
  width: 13px;
  height: 13px;
}

.section-block {
  margin-top: 32px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 15px;
}

.section-heading h2 {
  margin-top: 5px;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.text-button {
  padding: 4px 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.idea-row {
  display: flex;
  gap: 12px;
  width: 100%;
  padding-right: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.idea-card {
  flex: 0 0 212px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  scroll-snap-align: start;
  box-shadow: 0 8px 20px rgba(20, 35, 29, 0.05);
}

.idea-card:active {
  opacity: 0.88;
}

.idea-art {
  position: relative;
  display: block;
  height: 124px;
  overflow: hidden;
}

.art-chengdu {
  background: linear-gradient(165deg, #cbdac6, #eff0d7 55%, #b3c5a7);
}

.mountain {
  position: absolute;
  bottom: -45px;
  width: 190px;
  height: 140px;
  border-radius: 50% 50% 0 0;
  transform: rotate(-9deg);
}

.m1 {
  left: -20px;
  background: rgba(64, 103, 77, 0.65);
}

.m2 {
  right: -64px;
  bottom: -55px;
  background: rgba(85, 123, 86, 0.52);
  transform: rotate(12deg);
}

.panda-dot {
  position: absolute;
  top: 26px;
  right: 34px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: -9px -5px 0 -4px var(--ink), 9px -5px 0 -4px var(--ink);
}

.art-kyoto {
  background: linear-gradient(155deg, #ead6b8, #d99e7b 52%, #a95e53);
}

.torii {
  position: absolute;
  right: 54px;
  bottom: -11px;
  width: 85px;
  height: 86px;
  border-radius: 50% 50% 0 0;
  border: 10px solid rgba(91, 46, 39, 0.8);
  border-bottom: 0;
}

.torii::before {
  position: absolute;
  top: -10px;
  left: -26px;
  width: 118px;
  height: 10px;
  border-radius: 2px;
  background: rgba(91, 46, 39, 0.8);
  content: "";
}

.maple {
  position: absolute;
  top: 22px;
  left: 26px;
  width: 33px;
  height: 33px;
  border-radius: 50% 5% 50% 5%;
  background: #c24c3f;
  transform: rotate(22deg);
}

.art-sanya {
  background: linear-gradient(170deg, #b9d7d2, #f0d9b7 58%, #8dbeb7);
}

.sun-disc {
  position: absolute;
  top: 23px;
  right: 37px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f4bb69;
}

.wave {
  position: absolute;
  right: -30px;
  bottom: -22px;
  left: -30px;
  height: 75px;
  border-radius: 50%;
}

.w1 {
  background: rgba(56, 118, 112, 0.58);
}

.w2 {
  bottom: -42px;
  left: -5px;
  background: rgba(54, 101, 95, 0.66);
}

.idea-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 14px 15px;
}

.idea-copy strong {
  font-size: 13px;
  font-weight: 500;
}

.idea-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-draft-section {
  padding-bottom: 10px;
}

.draft-card {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px dashed rgba(25, 49, 41, 0.17);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.44);
  color: var(--ink);
  text-align: left;
}

.draft-icon {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: var(--surface-deep);
}

.draft-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.draft-copy strong {
  font-size: 13px;
  font-weight: 500;
}

.draft-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-chevron {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.inner-topbar {
  padding: 0 20px;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(16px);
}

.inner-topbar > strong {
  font-size: 15px;
  font-weight: 500;
}

.topbar-title-button {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 7px 9px;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.topbar-title-button .icon {
  width: 13px;
  height: 13px;
  transform: rotate(90deg);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.topbar-actions .icon-button {
  width: 38px;
  height: 38px;
}

.topbar-spacer {
  width: 42px;
  height: 42px;
}

.bottom-nav {
  position: absolute;
  right: 14px;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background: var(--nav-bg);
  box-shadow: 0 12px 30px rgba(20, 35, 29, 0.28);
  backdrop-filter: blur(16px);
}

.nav-item {
  position: relative;
  display: flex;
  min-height: 55px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-direction: column;
  border-radius: 19px;
  background: transparent;
  color: rgba(255, 253, 248, 0.46);
  font-size: 8px;
}

.nav-item .icon {
  width: 20px;
  height: 20px;
}

.nav-item.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--lime);
}

.nav-map-item {
  overflow: visible;
}

.nav-map-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin-top: -13px;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 13px;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 7px 16px rgba(8, 25, 19, 0.24);
}

.nav-map-icon .icon {
  width: 17px;
  height: 17px;
}

.nav-map-item.is-active .nav-map-icon {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--lime);
}

.nav-icon-wrap {
  position: relative;
  display: flex;
}

.saved-count {
  position: absolute;
  top: -6px;
  right: -9px;
  display: grid;
  min-width: 15px;
  height: 15px;
  place-items: center;
  padding: 0 3px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-size: 8px;
}

/* Planner */
.sheet-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.sheet-layer.is-open {
  visibility: visible;
  opacity: 1;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  background: rgba(8, 25, 19, 0.58);
  backdrop-filter: blur(5px);
}

.bottom-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(530px, 100%);
  max-height: min(94dvh, 890px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 32px 32px 0 0;
  background: var(--paper);
  box-shadow: 0 -30px 80px rgba(7, 25, 17, 0.25);
  transform: translateY(102%);
  transition: transform 360ms cubic-bezier(0.2, 0.82, 0.2, 1);
}

.sheet-layer.is-open .bottom-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 38px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: rgba(25, 49, 41, 0.18);
}

.sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 22px 14px;
}

.sheet-header h1 {
  margin-top: 5px;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.sheet-header .icon-button {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
}

.sheet-scroll {
  max-height: calc(min(94dvh, 890px) - 88px);
  padding: 0 22px max(28px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface-deep);
}

.mode-switch button {
  min-height: 38px;
  padding: 5px;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.mode-switch button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 3px 9px rgba(25, 49, 41, 0.07);
}

.planner-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.field-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-block > label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
}

.input-shell {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-shell:focus-within {
  border-color: rgba(25, 49, 41, 0.3);
  box-shadow: 0 0 0 3px rgba(25, 49, 41, 0.06);
}

.input-shell .icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.input-shell input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.input-shell input::placeholder {
  color: var(--muted-light);
}

.input-shell.compact input {
  font-size: 12px;
}

.search-suggestion-panel {
  display: flex;
  max-height: 352px;
  flex-direction: column;
  gap: 7px;
  padding: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(25, 49, 41, 0.08);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(20, 35, 29, 0.08);
  overscroll-behavior: contain;
  scrollbar-width: none;
  animation: suggestion-in 180ms ease-out;
}

.search-suggestion-panel::-webkit-scrollbar {
  display: none;
}

.search-suggestion-panel[hidden] {
  display: none;
}

@keyframes suggestion-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.suggestion-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.suggestion-card {
  display: flex;
  width: 100%;
  align-items: stretch;
  gap: 11px;
  padding: 10px;
  border: 1px solid rgba(25, 49, 41, 0.06);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  transition: background 150ms ease, transform 150ms ease;
}

.suggestion-card:active {
  background: #ede9de;
  transform: scale(0.994);
}

.suggestion-thumb {
  position: relative;
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  min-height: 62px;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  color: var(--surface);
}

.suggestion-thumb::after {
  position: absolute;
  right: -12px;
  bottom: -19px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  content: "";
}

.suggestion-thumb .icon {
  position: absolute;
  z-index: 0;
  width: 20px;
  height: 20px;
}

.suggestion-thumb img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.suggestion-thumb.is-city {
  background: linear-gradient(145deg, #8eaa8d, #315545);
}

.suggestion-thumb.is-spot {
  background: linear-gradient(145deg, #dec099, #9b6851);
}

.suggestion-thumb.is-custom {
  background: linear-gradient(145deg, #a8b9c8, #526777);
}

.suggestion-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

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

.suggestion-title-row strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-rating {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  color: #936326;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.suggestion-rating .icon {
  width: 10px;
  height: 10px;
  fill: currentColor;
  stroke-width: 1.2;
}

.suggestion-meta {
  color: var(--muted);
  font-size: 8px;
}

.suggestion-description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.suggestion-footer {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.suggestion-tags {
  display: flex;
  min-width: 0;
  flex: 1;
  gap: 4px;
  overflow: hidden;
}

.suggestion-tags span {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(25, 49, 41, 0.06);
  color: var(--muted);
  font-size: 7px;
  white-space: nowrap;
}

.suggestion-pick {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  color: var(--ink);
  font-size: 8px;
  font-weight: 500;
}

.suggestion-pick .icon {
  width: 12px;
  height: 12px;
}

.suggestion-empty {
  padding: 18px 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
  text-align: center;
}

.selected-search-card,
.selected-spot-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(25, 49, 41, 0.08);
  border-radius: 14px;
  background: var(--accent-soft);
}

.selected-search-card[hidden],
.selected-spot-card[hidden] {
  display: none;
}

.selected-search-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: var(--lime);
}

.selected-search-icon .icon {
  width: 16px;
  height: 16px;
}

.selected-search-image {
  position: relative;
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-deep);
}

.selected-search-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selected-search-image.is-small {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.selected-search-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.selected-search-copy small {
  color: var(--muted);
  font-size: 8px;
}

.selected-search-copy strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-search-copy p {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-remove {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(25, 49, 41, 0.07);
  color: var(--ink-soft);
}

.selected-remove .icon {
  width: 13px;
  height: 13px;
}

.selected-spots {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.selected-spots:empty {
  display: none;
}

.selected-spot-card {
  padding: 8px 10px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.selected-spot-card .selected-search-icon {
  flex-basis: 30px;
  width: 30px;
  height: 30px;
  background: var(--surface-deep);
  color: var(--ink);
}

.selected-spot-card .selected-search-copy strong {
  font-size: 10px;
}

.date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.spot-inputs {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.route-inputs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.route-inputs label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.route-inputs label + label {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.route-inputs span {
  color: var(--muted);
  font-size: 9px;
}

.route-inputs input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.route-waypoint {
  min-height: 44px;
}

.route-waypoint input {
  height: 42px;
  font-size: 12px;
}

.is-hidden {
  display: none !important;
}

.preference-group {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.preference-group legend {
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.choice-chip.is-selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.interest-grid .choice-chip {
  min-height: 34px;
  padding: 0 12px;
}

.two-prefs {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
}

.segmented {
  display: grid;
  gap: 3px;
  padding: 3px;
  border-radius: 12px;
  background: var(--surface-deep);
}

.compact-segment {
  grid-template-columns: repeat(3, 1fr);
}

.segmented button {
  min-height: 35px;
  padding: 0 5px;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}

.segmented button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 5px rgba(25, 49, 41, 0.07);
}

.planner-error {
  min-height: 17px;
  margin-top: 10px;
  color: #ad4937;
  font-size: 11px;
}

.primary-button {
  display: flex;
  width: 100%;
  min-height: 53px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--lime);
  font-size: 14px;
  font-weight: 500;
}

.primary-button:active {
  transform: scale(0.99);
}

.primary-button.is-loading {
  pointer-events: none;
  opacity: 0.8;
}

.primary-button.is-loading .icon {
  animation: sparkle-spin 900ms linear infinite;
}

@keyframes sparkle-spin {
  to { transform: rotate(360deg); }
}

.planner-footnote {
  margin: 9px 0 2px;
  color: var(--muted-light);
  font-size: 9px;
  text-align: center;
}

/* Generated itinerary */
.plan-scroll {
  padding: 0 20px 112px;
}

.plan-heading {
  padding: 10px 2px 18px;
}

.plan-heading .eyebrow {
  margin-bottom: 5px;
}

.plan-heading h1 {
  font-size: 29px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.06em;
}

.plan-heading p:last-child {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.plan-overview {
  position: relative;
  height: 166px;
  overflow: hidden;
  border-radius: 25px;
  background: #d8e0d4;
}

.plan-overview-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) brightness(0.9);
}

.plan-overview::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(242, 243, 232, 0.78), rgba(223, 231, 218, 0.24));
  content: "";
}

.plan-overview > :not(.plan-overview-photo) {
  z-index: 2;
}

.overview-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(25, 49, 41, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 49, 41, 0.13) 1px, transparent 1px);
  background-size: 31px 31px;
  transform: rotate(-8deg) scale(1.2);
}

.overview-river {
  position: absolute;
  top: 27px;
  right: -25px;
  bottom: -20px;
  width: 115px;
  border-radius: 55% 0 0 40%;
  background: rgba(111, 163, 157, 0.52);
  transform: rotate(12deg);
}

.overview-route {
  position: absolute;
  top: 49px;
  left: 33px;
  width: 205px;
  height: 86px;
  border: 2px dashed var(--ink);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 80% 0 0 0;
  transform: rotate(9deg);
  opacity: 0.62;
}

.map-pin {
  position: absolute;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 3px solid rgba(255, 253, 248, 0.88);
  border-radius: 50% 50% 50% 10%;
  background: var(--ink);
  color: var(--lime);
  font-size: 9px;
  transform: rotate(-45deg);
  box-shadow: 0 4px 12px rgba(25, 49, 41, 0.18);
}

.map-pin span {
  transform: rotate(45deg);
}

.pin-a { top: 46px; left: 39px; }
.pin-b { top: 82px; left: 143px; background: var(--orange); color: white; }
.pin-c { top: 34px; right: 52px; background: var(--surface); color: var(--ink); }

.overview-label {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 9px;
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.84);
  font-size: 9px;
  backdrop-filter: blur(8px);
}

.overview-stats {
  position: absolute;
  right: 13px;
  bottom: 12px;
  display: flex;
  gap: 11px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(25, 49, 41, 0.86);
  color: rgba(255, 253, 248, 0.84);
  font-size: 9px;
}

.day-tabs {
  display: flex;
  gap: 8px;
  margin: 22px -20px 0;
  padding: 0 20px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.day-tabs::-webkit-scrollbar {
  display: none;
}

.day-tab {
  display: flex;
  flex: 0 0 auto;
  min-width: 64px;
  height: 51px;
  align-items: center;
  justify-content: center;
  gap: 1px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: transparent;
  color: var(--muted);
}

.day-tab strong {
  font-size: 16px;
  font-weight: 500;
}

.day-tab span {
  font-size: 9px;
}

.day-tab.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
}

.day-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px 17px;
}

.day-summary h2 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.day-summary p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.weather-pill {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--warm-soft);
  color: #8a6428;
  font-size: 9px;
}

.weather-pill .icon {
  width: 13px;
  height: 13px;
}

.day-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 48px;
}

.timeline-line {
  position: absolute;
  top: 15px;
  bottom: 20px;
  left: 20px;
  width: 1px;
  background: repeating-linear-gradient(to bottom, rgba(25, 49, 41, 0.24) 0 4px, transparent 4px 9px);
}

.timeline-item {
  position: relative;
}

.timeline-time {
  position: absolute;
  top: 17px;
  left: -48px;
  width: 38px;
  color: var(--muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.timeline-dot {
  position: absolute;
  top: 21px;
  left: -31px;
  z-index: 1;
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px rgba(25, 49, 41, 0.35);
}

.timeline-card {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(25, 49, 41, 0.07);
  border-radius: 18px;
  background: var(--surface);
  text-align: left;
  box-shadow: 0 7px 20px rgba(20, 35, 29, 0.045);
}

.timeline-card:active {
  transform: scale(0.992);
}

.timeline-card > .icon:last-child {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--muted-light);
}

.place-art {
  position: relative;
  display: grid;
  flex: 0 0 68px;
  width: 68px;
  height: 70px;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  color: rgba(255, 253, 248, 0.9);
}

.place-art .icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.5;
}

.place-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.74) saturate(0.92);
}

.place-art-icon {
  position: relative;
  z-index: 2;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 9px;
  background: rgba(14, 30, 24, 0.48);
  backdrop-filter: blur(5px);
}

.place-art-icon .icon {
  width: 15px;
  height: 15px;
}

.place-art::after {
  position: absolute;
  right: -10px;
  bottom: -17px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  content: "";
}

.place-art.type-spot { background: linear-gradient(145deg, #91a78e, #3c6552); }
.place-art.type-food { background: linear-gradient(145deg, #e4a67d, #b95f4e); }
.place-art.type-hotel { background: linear-gradient(145deg, #b6a9c8, #5f5676); }
.place-art.type-route { background: linear-gradient(145deg, #9ebfb8, #4f7777); }
.place-art.type-night { background: linear-gradient(145deg, #747f9f, #343d5d); }

.timeline-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.timeline-copy strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}

.place-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.place-meta .icon {
  width: 11px;
  height: 11px;
}

.timeline-note {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-arrow {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--muted-light);
}

.travel-segment {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: -4px 0 -3px 4px;
  color: var(--muted);
  font-size: 9px;
}

.travel-segment .icon {
  width: 12px;
  height: 12px;
}

.plan-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 2px 13px;
}

.plan-section-head h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.plan-section-head span {
  color: var(--muted);
  font-size: 10px;
}

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

.review-section .plan-section-head {
  margin-top: 0;
}

.review-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
  padding: 13px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--surface);
}

.review-score {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  flex-direction: column;
  padding-right: 11px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.review-score strong {
  color: var(--lime);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.review-score small {
  margin-top: 3px;
  color: rgba(255, 253, 248, 0.5);
  font-size: 7px;
  white-space: nowrap;
}

.review-summary-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.review-summary-copy strong {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 500;
}

.review-summary-copy strong .icon {
  width: 12px;
  height: 12px;
  color: var(--lime);
}

.review-summary-copy p {
  color: rgba(255, 253, 248, 0.55);
  font-size: 8px;
  line-height: 1.5;
}

.review-avatar-stack {
  display: flex;
  flex: 0 0 auto;
  padding-left: 8px;
}

.review-avatar-stack img {
  display: block;
  width: 25px;
  height: 25px;
  margin-left: -8px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--surface-deep);
  object-fit: cover;
}

.tone-mint {
  background: #cfe8a3;
}

.tone-peach {
  background: #efb79f;
}

.tone-blue {
  background: #a8c8ce;
}

.review-row {
  display: flex;
  width: 100%;
  gap: 10px;
  padding: 1px 1px 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.review-row::-webkit-scrollbar {
  display: none;
}

.review-card {
  display: flex;
  flex: 0 0 258px;
  flex-direction: column;
  padding: 14px;
  border: 1px solid rgba(25, 49, 41, 0.07);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: 0 7px 20px rgba(20, 35, 29, 0.04);
  scroll-snap-align: start;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.review-avatar {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(25, 49, 41, 0.08);
  color: var(--ink);
  font-size: 12px;
  object-fit: cover;
}

.review-person {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.review-person strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-person small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-stars {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  color: #986624;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.review-stars .icon {
  width: 10px;
  height: 10px;
  fill: currentColor;
  stroke-width: 1.2;
}

.review-text {
  display: -webkit-box;
  min-height: 60px;
  margin-top: 11px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.review-tags span {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink-soft);
  font-size: 7px;
}

.review-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
}

.review-like {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 0 4px 8px;
  background: transparent;
  color: var(--muted);
  font-size: 8px;
}

.review-like .icon {
  width: 12px;
  height: 12px;
}

.review-like[aria-pressed="true"] {
  color: #b35948;
}

.review-like[aria-pressed="true"] .icon {
  fill: currentColor;
}

.food-row {
  display: flex;
  gap: 10px;
  width: 100%;
  padding-right: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.food-card {
  position: relative;
  flex: 0 0 180px;
  overflow: hidden;
  padding: 0;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.food-photo {
  position: relative;
  display: block;
  height: 108px;
  overflow: hidden;
  border-radius: 17px 17px 0 0;
}

.food-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.food-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 25, 20, 0.32));
  content: "";
}

.food-photo .rating {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(6px);
}

.food-card-content {
  display: block;
  padding: 11px;
}

.food-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}

.food-badge {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 11px;
  background: var(--orange-soft);
  color: #a75340;
}

.food-badge .icon {
  width: 17px;
  height: 17px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #9f6728;
  font-size: 10px;
}

.rating .icon {
  width: 11px;
  height: 11px;
  fill: currentColor;
  stroke-width: 1.2;
}

.food-card strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}

.food-card p {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.food-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 9px;
}

.stay-card {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border-radius: 20px;
  background: var(--sand-soft);
  text-align: left;
}

.stay-art {
  position: relative;
  display: grid;
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(145deg, #b9adc4, #625a75);
  color: var(--surface);
}

.stay-art .icon {
  position: relative;
  z-index: 2;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 9px;
  background: rgba(20, 31, 27, 0.42);
  backdrop-filter: blur(4px);
}

.stay-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.66);
}

.stay-art > .icon {
  z-index: 3;
}

.stay-art::before,
.stay-art::after {
  position: absolute;
  bottom: -23px;
  width: 55px;
  height: 55px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  content: "";
}

.stay-art::before { left: -25px; }
.stay-art::after { right: -24px; }

.stay-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.stay-copy small {
  color: var(--muted);
  font-size: 9px;
}

.stay-copy strong {
  font-size: 13px;
  font-weight: 500;
}

.stay-copy p {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stay-price {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 10px;
}

.stay-price strong {
  display: block;
  font-size: 13px;
}

.budget-card {
  display: grid;
  grid-template-columns: 102px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  padding: 16px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--surface);
}

.budget-ring {
  position: relative;
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--lime) 0 42%, #dfa472 42% 65%, #83a99d 65% 82%, rgba(255, 255, 255, 0.11) 82% 100%);
}

.budget-ring::after {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.budget-ring-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.budget-ring-content small {
  display: block;
  color: rgba(255, 253, 248, 0.54);
  font-size: 8px;
}

.budget-ring-content strong {
  font-size: 16px;
  font-weight: 500;
}

.budget-copy h3 {
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 500;
}

.budget-copy > p {
  color: rgba(255, 253, 248, 0.56);
  font-size: 9px;
  line-height: 1.55;
}

.budget-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  margin-top: 10px;
  color: rgba(255, 253, 248, 0.72);
  font-size: 8px;
}

.budget-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.budget-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.empty-plan {
  display: flex;
  height: calc(100% - 80px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  text-align: center;
}

.empty-art {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 36px;
  background: #e7e1d4;
  color: var(--ink);
  transform: rotate(-5deg);
}

.empty-art .icon {
  width: 43px;
  height: 43px;
  stroke-width: 1.2;
}

.empty-plan h1 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.empty-plan p {
  max-width: 250px;
  margin: 9px 0 22px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.empty-plan .primary-button {
  width: auto;
  min-height: 46px;
  padding: 0 20px;
}

/* Saved */
.saved-scroll {
  padding-top: 0;
}

.saved-intro {
  padding: 18px 2px 22px;
}

.saved-intro h1 {
  margin-top: 7px;
  font-size: 35px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.065em;
}

.saved-filter {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.saved-filter button {
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}

.saved-filter button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
}

.saved-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.saved-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 19px;
  background: var(--surface);
  text-align: left;
  box-shadow: 0 7px 20px rgba(20, 35, 29, 0.045);
}

.saved-card .place-art {
  width: 74px;
  height: 74px;
  flex-basis: 74px;
}

.saved-photo {
  display: block;
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  overflow: hidden;
  border-radius: 13px;
}

.saved-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saved-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

.saved-copy small {
  color: var(--muted);
  font-size: 9px;
}

.saved-copy strong {
  font-size: 14px;
  font-weight: 500;
}

.saved-copy p {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-remove {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--ink);
}

.saved-remove .icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.saved-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 45px 16px;
  color: var(--muted);
  text-align: center;
}

.saved-empty-icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 24px;
  background: var(--surface-deep);
  color: var(--ink);
}

.saved-empty strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.saved-empty p {
  max-width: 220px;
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.6;
}

/* Profile */
.profile-scroll {
  padding-top: 4px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0 24px;
}

.avatar {
  display: grid;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 5px solid var(--surface);
  border-radius: 50%;
  background: linear-gradient(145deg, #d3e79b, #a3bd76);
  color: var(--ink);
  font-size: 25px;
  box-shadow: 0 8px 20px rgba(25, 49, 41, 0.1);
}

.profile-hero h1 {
  margin-top: 2px;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.profile-hero p:last-child {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.profile-edit {
  align-self: flex-start;
  margin-left: auto;
  padding: 5px 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.preference-card {
  padding: 18px;
  border-radius: 24px;
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow);
}

.preference-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.preference-card .eyebrow {
  color: rgba(255, 253, 248, 0.5);
}

.preference-card h2 {
  margin-top: 4px;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.sparkle-icon {
  width: 23px;
  height: 23px;
  color: var(--lime);
}

.preference-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.preference-tags span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--lime);
  font-size: 9px;
}

.preference-note {
  margin-top: 13px;
  color: rgba(255, 253, 248, 0.56);
  font-size: 10px;
  line-height: 1.7;
}

.outline-button {
  width: 100%;
  min-height: 40px;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: transparent;
  color: var(--surface);
  font-size: 10px;
}

.theme-section {
  margin-top: 18px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--surface);
}

.theme-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.theme-section-head h2 {
  margin-top: 4px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.theme-current {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--lime);
  font-size: 9px;
}

.theme-intro {
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.theme-option {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr 15px;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.theme-option:active {
  transform: scale(0.98);
}

.theme-option[aria-checked="true"] {
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 8%, transparent);
}

.theme-preview {
  position: relative;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 12px;
}

.preview-nature {
  background: linear-gradient(150deg, #dce9d2, #315545);
}

.preview-salt {
  background: linear-gradient(150deg, #c7e5e1, #2b6570);
}

.preview-clay {
  background: linear-gradient(150deg, #f1d4b4, #92553e);
}

.preview-lilac {
  background: linear-gradient(150deg, #e2d2ec, #5b4669);
}

.preview-sun {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f4c479;
}

.preview-clay .preview-sun {
  background: #f0b05f;
}

.preview-lilac .preview-sun {
  background: #e6a9bc;
}

.preview-line {
  position: absolute;
  right: -7px;
  bottom: -6px;
  left: -7px;
  height: 25px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(-8deg);
}

.preview-line.line-two {
  bottom: -16px;
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(7deg);
}

.theme-option-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.theme-option-copy strong {
  font-size: 11px;
  font-weight: 500;
}

.theme-option-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-check {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--lime);
  font-size: 9px;
}

.theme-option[aria-checked="true"] .theme-check {
  border-color: var(--ink);
  background: var(--ink);
}

.theme-option[aria-checked="true"] .theme-check::after {
  content: "✓";
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--line);
}

.mini-stats div {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-direction: column;
  background: var(--surface);
}

.mini-stats strong {
  font-size: 20px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.mini-stats span {
  color: var(--muted);
  font-size: 8px;
}

.settings-list {
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
}

.settings-list button {
  display: flex;
  width: 100%;
  min-height: 57px;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  background: transparent;
  font-size: 12px;
  text-align: left;
}

.settings-list button + button {
  border-top: 1px solid var(--line);
}

.setting-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-soft);
}

.setting-icon .icon {
  width: 16px;
  height: 16px;
}

.setting-arrow {
  width: 15px;
  height: 15px;
  margin-left: auto;
  color: var(--muted-light);
}

/* Detail sheet */
.detail-layer {
  z-index: 110;
}

.detail-sheet {
  width: min(490px, 100%);
}

#detailContent {
  padding: 12px 22px max(30px, env(safe-area-inset-bottom));
}

.detail-visual {
  position: relative;
  display: flex;
  height: 190px;
  align-items: flex-end;
  overflow: hidden;
  padding: 20px;
  border-radius: 24px;
  color: var(--surface);
}

.detail-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.64) saturate(0.9);
}

.detail-visual > *:not(.detail-photo-bg) {
  position: relative;
  z-index: 2;
}

.detail-visual::before,
.detail-visual::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  content: "";
}

.detail-visual::before {
  top: -60px;
  right: -40px;
  width: 190px;
  height: 190px;
}

.detail-visual::after {
  top: 18px;
  right: 38px;
  width: 72px;
  height: 72px;
}

.detail-visual-icon {
  position: absolute;
  top: 25px;
  left: 23px;
  width: 40px;
  height: 40px;
  opacity: 0.88;
}

.detail-visual-copy {
  position: relative;
  z-index: 1;
}

.detail-visual-copy small {
  font-size: 10px;
  opacity: 0.7;
}

.detail-visual-copy h1 {
  margin-top: 4px;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.05em;
}

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

.detail-heading h2 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.detail-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.bookmark-button {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
}

.bookmark-button.is-saved {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
}

.bookmark-button .icon {
  fill: transparent;
}

.bookmark-button.is-saved .icon {
  fill: currentColor;
}

.detail-description {
  margin: 16px 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.8;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.detail-facts div {
  padding: 10px;
  border-radius: 13px;
  background: var(--surface);
}

.detail-facts small {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.detail-facts strong {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
}

.detail-tip {
  margin-top: 14px;
  padding: 13px;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.7;
}

.detail-tip strong {
  color: var(--ink);
  font-weight: 500;
}

.detail-actions {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr;
  gap: 9px;
  margin-top: 16px;
}

.secondary-button {
  min-height: 49px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  font-size: 12px;
}

.detail-actions .primary-button {
  min-height: 49px;
}

.guide-panel {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.guide-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: var(--lime);
}

.guide-icon .icon {
  width: 18px;
  height: 18px;
}

.guide-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.guide-copy small {
  color: var(--muted);
  font-size: 8px;
}

.guide-copy strong {
  font-size: 11px;
  font-weight: 500;
}

.guide-play {
  display: flex;
  flex: 0 0 auto;
  min-height: 34px;
  align-items: center;
  gap: 4px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--lime);
  font-size: 9px;
}

.guide-play .icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.guide-play.is-playing {
  background: var(--orange);
  color: var(--surface);
}

.guide-transcript {
  margin-top: 9px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.checkin-detail-photo {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 23px;
  background: var(--surface-deep);
}

.checkin-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkin-detail-photo > span {
  position: absolute;
  right: 13px;
  bottom: 13px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(12, 28, 22, 0.68);
  color: white;
  font-size: 8px;
  backdrop-filter: blur(7px);
}

.checkin-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.checkin-detail-heading h1 {
  margin-top: 4px;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.checkin-detail-note {
  margin: 13px 0 16px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.8;
}

.checkin-local-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 8px;
}

.checkin-local-note .icon {
  width: 12px;
  height: 12px;
}

.checkin-close-full {
  margin-top: 17px;
}

/* Travel map */
.map-scroll {
  padding: 0 18px 112px;
}

.map-intro {
  padding: 11px 2px 20px;
}

.map-intro h1 {
  margin-top: 7px;
  font-size: 37px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.07em;
}

.map-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 27px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.map-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 4px 11px;
  color: var(--ink-soft);
  font-size: 10px;
}

.map-card-head > span:first-child {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.map-card-head .icon {
  width: 13px;
  height: 13px;
}

.map-live-badge {
  color: var(--muted);
  font-size: 8px;
}

.map-live-badge.is-recording {
  color: #b34d3c;
}

.map-live-badge.is-recording::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
  animation: record-pulse 1.2s ease-in-out infinite;
}

@keyframes record-pulse {
  50% { opacity: 0.3; }
}

.map-viewport {
  position: relative;
  height: 310px;
  overflow: hidden;
  border-radius: 20px;
  background: #dce5da;
}

.map-canvas {
  position: absolute;
  inset: 0;
  background-color: #dce5da;
  background-image:
    linear-gradient(22deg, transparent 46%, rgba(255, 255, 255, 0.68) 47% 49%, transparent 50%),
    linear-gradient(112deg, transparent 33%, rgba(255, 255, 255, 0.7) 34% 36%, transparent 37%),
    linear-gradient(167deg, transparent 63%, rgba(255, 255, 255, 0.55) 64% 66%, transparent 67%),
    linear-gradient(rgba(25, 49, 41, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 49, 41, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 34px 34px, 34px 34px;
  transform: scale(1);
  transition: transform 260ms ease;
}

.map-canvas::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, transparent 35%, rgba(25, 49, 41, 0.06));
  content: "";
  pointer-events: none;
}

.map-river {
  position: absolute;
  top: -70px;
  right: -31px;
  width: 105px;
  height: 470px;
  border-radius: 50%;
  background: #a9cbc8;
  transform: rotate(15deg);
}

.map-park {
  position: absolute;
  border-radius: 44% 56% 50% 50%;
  background: #bfd0b5;
}

.park-one {
  top: 22px;
  left: 23px;
  width: 91px;
  height: 58px;
  transform: rotate(-10deg);
}

.park-two {
  right: 112px;
  bottom: 26px;
  width: 75px;
  height: 56px;
  transform: rotate(16deg);
}

.map-road {
  position: absolute;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(25, 49, 41, 0.035);
}

.road-one { top: 88px; left: -20px; width: 390px; transform: rotate(-14deg); }
.road-two { top: 183px; left: -10px; width: 320px; transform: rotate(16deg); }
.road-three { top: 152px; left: 105px; width: 285px; transform: rotate(74deg); }
.road-four { top: 224px; left: 10px; width: 270px; transform: rotate(-3deg); }

.map-track-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

#activeTrackPath {
  fill: none;
  stroke: var(--orange);
  stroke-dasharray: 5 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  filter: drop-shadow(0 2px 2px rgba(255, 255, 255, 0.8));
}

.map-place-label {
  position: absolute;
  z-index: 1;
  color: rgba(25, 49, 41, 0.55);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.label-one { top: 63px; left: 103px; }
.label-two { top: 148px; right: 31px; }
.label-three { bottom: 52px; left: 89px; }

.map-user-location {
  position: absolute;
  top: 47%;
  left: 56%;
  z-index: 4;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: rgba(90, 162, 215, 0.21);
  transform: translate(-50%, -50%);
}

.map-user-location span {
  width: 8px;
  height: 8px;
  border: 2px solid white;
  border-radius: 50%;
  background: #4b9ad7;
  box-shadow: 0 0 0 2px rgba(75, 154, 215, 0.28);
}

.map-checkin-pins {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.map-checkin-pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 2px solid white;
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
  box-shadow: 0 5px 14px rgba(25, 49, 41, 0.18);
  transform: translate(-50%, -50%);
}

.map-checkin-pin img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
}

.map-checkin-pin span {
  display: none;
  max-width: 72px;
  padding-right: 4px;
  overflow: hidden;
  font-size: 8px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-pin-count {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-size: 8px;
}

.map-checkin-pin.is-featured span {
  display: block;
}

.map-zoom-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 7;
  display: flex;
  overflow: hidden;
  border-radius: 11px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  box-shadow: 0 5px 15px rgba(25, 49, 41, 0.14);
  backdrop-filter: blur(8px);
}

.map-zoom-controls button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: transparent;
  font-size: 17px;
}

.map-zoom-controls button + button {
  border-left: 1px solid var(--line);
}

.map-zoom-controls .icon {
  width: 15px;
  height: 15px;
}

.map-action-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8px;
  padding-top: 9px;
}

.map-checkin-button,
.map-record-button {
  min-height: 47px;
  border-radius: 14px;
  font-size: 11px;
}

.map-record-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.map-record-button .icon {
  width: 16px;
  height: 16px;
}

.map-record-button.is-recording {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: #a14d3e;
}

.map-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--line);
}

.map-stats div {
  display: flex;
  min-height: 67px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-direction: column;
  background: var(--surface);
}

.map-stats strong {
  font-size: 19px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.map-stats span {
  color: var(--muted);
  font-size: 8px;
}

.map-section {
  margin-top: 27px;
}

.map-section-note {
  color: var(--muted);
  font-size: 9px;
}

.checkin-list {
  display: flex;
  gap: 10px;
  width: 100%;
  padding-bottom: 3px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.checkin-list::-webkit-scrollbar,
.track-list::-webkit-scrollbar {
  display: none;
}

.checkin-card {
  position: relative;
  flex: 0 0 218px;
  height: 146px;
  overflow: hidden;
  padding: 0;
  border-radius: 20px;
  background: var(--surface-deep);
  color: var(--surface);
  text-align: left;
  scroll-snap-align: start;
}

.checkin-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.checkin-card:active img {
  transform: scale(1.03);
}

.checkin-card::after {
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent, rgba(10, 25, 20, 0.8));
  content: "";
}

.checkin-card-copy {
  position: absolute;
  right: 12px;
  bottom: 11px;
  left: 12px;
  z-index: 1;
}

.checkin-card-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}

.checkin-card-copy span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-card {
  flex-basis: 228px;
}

.album-photo-stack {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  flex-direction: row-reverse;
}

.album-photo-stack img {
  width: 31px;
  height: 31px;
  margin-left: -8px;
  border: 2px solid var(--surface);
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.album-count {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(12, 28, 22, 0.64);
  color: white;
  font-size: 8px;
  backdrop-filter: blur(7px);
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.track-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border-radius: 17px;
  background: var(--surface);
  text-align: left;
}

.track-mini-map {
  display: grid;
  flex: 0 0 63px;
  width: 63px;
  height: 56px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #dce5da;
}

.track-mini-map svg {
  width: 100%;
  height: 100%;
}

.track-mini-map path {
  fill: none;
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.track-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.track-copy small {
  color: var(--muted);
  font-size: 8px;
}

.track-copy strong {
  font-size: 12px;
  font-weight: 500;
}

.track-copy p {
  color: var(--muted);
  font-size: 8px;
}

.track-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink-soft);
  font-size: 8px;
}

.map-empty {
  width: 100%;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

/* Photo check-in */
.checkin-sheet {
  width: min(510px, 100%);
}

.checkin-scroll {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sr-only-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.photo-picker {
  position: relative;
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed rgba(25, 49, 41, 0.22);
  border-radius: 22px;
  background: var(--surface-deep);
  cursor: pointer;
}

.photo-picker img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.photo-picker-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.photo-picker-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 11px;
  place-items: center;
  border-radius: 18px;
  background: var(--ink);
  color: var(--lime);
}

.photo-picker-empty strong {
  font-size: 12px;
  font-weight: 500;
}

.photo-picker-empty small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.photo-change {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(25, 49, 41, 0.78);
  color: var(--surface);
  font-size: 9px;
  backdrop-filter: blur(6px);
}

.checkin-note-shell {
  min-height: 80px;
  align-items: flex-start;
  padding-top: 11px;
}

.checkin-note-shell textarea {
  width: 100%;
  min-height: 56px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
  line-height: 1.6;
}

.input-shell select {
  width: 100%;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  appearance: none;
  font-size: 12px;
}

.checkin-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkin-location {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--surface);
}

.checkin-location-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--ink-soft);
}

.checkin-location-icon .icon {
  width: 15px;
  height: 15px;
}

.checkin-location > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.checkin-location small {
  color: var(--muted);
  font-size: 8px;
}

.checkin-location strong {
  overflow: hidden;
  font-size: 9px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Collaboration */
.collab-card {
  margin-top: 28px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.collab-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.collab-avatar-stack {
  display: flex;
  flex: 0 0 auto;
}

.collab-avatar-stack img {
  width: 31px;
  height: 31px;
  margin-left: -9px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  object-fit: cover;
}

.collab-avatar-stack img:first-child {
  margin-left: 0;
}

.collab-card-title {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.collab-card-title strong {
  font-size: 11px;
  font-weight: 500;
}

.collab-card-title small {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 8px;
}

.collab-card-title small::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #76a465;
  content: "";
}

.collab-invite {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--lime);
  font-size: 8px;
}

.collab-note-shell {
  position: relative;
  margin-top: 12px;
}

.collab-note-input {
  width: 100%;
  min-height: 72px;
  padding: 10px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 10px;
  line-height: 1.6;
}

.collab-note-input:focus {
  border-color: color-mix(in srgb, var(--ink) 30%, transparent);
}

.collab-status {
  display: flex;
  justify-content: flex-end;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
}

.collab-status .icon {
  width: 11px;
  height: 11px;
}

.collab-people {
  display: flex;
  align-items: center;
  padding: 4px 0 16px;
}

.collab-people img {
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  object-fit: cover;
}

.collab-people span {
  margin-left: 19px;
  color: var(--muted);
  font-size: 10px;
}

.collab-description,
.collab-note {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.collab-link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  padding: 10px 10px 10px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.collab-link-box span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collab-link-box button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 9px;
}

.collab-permission {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface);
}

.collab-permission > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.collab-permission strong {
  font-size: 11px;
  font-weight: 500;
}

.collab-permission small {
  color: var(--muted);
  font-size: 8px;
}

.collab-switch {
  position: relative;
  width: 37px;
  height: 21px;
  border-radius: 999px;
  background: var(--surface-deep);
}

.collab-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--surface);
  content: "";
  transition: transform 180ms ease;
}

.collab-switch.is-on {
  background: var(--ink);
}

.collab-switch.is-on::after {
  transform: translateX(16px);
}

.collab-note {
  margin: 13px 2px 17px;
  padding: 11px;
  border-radius: 13px;
  background: var(--accent-soft);
}

.collab-history {
  margin-top: 13px;
  padding: 12px;
  border-radius: 15px;
  background: var(--surface);
}

.collab-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.collab-history-head strong {
  font-size: 10px;
  font-weight: 600;
}

.collab-history-head small {
  color: var(--muted);
  font-size: 8px;
}

.collab-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.collab-history-list > p {
  padding: 8px 4px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.6;
}

.collab-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.collab-history-version {
  display: grid;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: var(--ink);
  color: var(--lime);
  font-size: 8px;
}

.collab-history-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.collab-history-copy strong {
  overflow: hidden;
  font-size: 9px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collab-history-copy small {
  color: var(--muted);
  font-size: 7px;
}

.collab-history-item > button {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 8px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 200;
  max-width: min(360px, calc(100% - 36px));
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(25, 49, 41, 0.94);
  color: var(--surface);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .desktop-wordmark {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    background: var(--paper);
  }

  .desktop-stage {
    display: block;
    min-height: 100dvh;
    padding: 0;
  }

  .desktop-stage::before,
  .desktop-stage::after {
    display: none;
  }

  .phone-shell {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .app-view {
    border-radius: 0;
  }

  .view-scroll {
    padding-top: env(safe-area-inset-top);
  }

  .inner-topbar {
    padding-top: env(safe-area-inset-top);
    height: calc(78px + env(safe-area-inset-top));
  }

  .inner-topbar + .view-scroll {
    height: calc(100% - 78px - env(safe-area-inset-top));
  }

  .home-topbar {
    height: calc(82px + env(safe-area-inset-top));
  }

  .bottom-nav {
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .bottom-sheet {
    border-radius: 28px 28px 0 0;
  }

  .toast {
    bottom: max(28px, calc(env(safe-area-inset-bottom) + 20px));
  }
}

@media (max-width: 370px) {
  .view-scroll {
    padding-right: 17px;
    padding-left: 17px;
  }

  .plan-scroll {
    padding-right: 16px;
    padding-left: 16px;
  }

  .greeting-block h1 {
    font-size: 39px;
  }

  .day-tabs {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 17px;
    padding-left: 17px;
  }

  .sheet-header,
  .sheet-scroll {
    padding-right: 17px;
    padding-left: 17px;
  }

  .two-prefs {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .date-row {
    grid-template-columns: 1fr;
  }

  .food-row {
    width: 100%;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High-impact editorial refresh */
.view-scroll {
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

.scroll-spacer {
  height: 0;
}

.home-scroll {
  background:
    radial-gradient(circle at 96% 12%, color-mix(in srgb, var(--lime) 30%, transparent), transparent 22%),
    var(--paper);
}

.home-topbar {
  height: 72px;
}

.brand-lockup {
  padding: 5px 11px 5px 5px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

.brand-dot {
  width: 28px;
  height: 28px;
  background: var(--ink);
}

.home-topbar .icon-button {
  border: 2px solid var(--ink);
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--ink);
}

.greeting-block {
  position: relative;
  isolation: isolate;
  min-height: 218px;
  padding: 21px 20px 30px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 26%, color-mix(in srgb, var(--orange) 42%, transparent), transparent 25%),
    radial-gradient(circle at 94% 82%, color-mix(in srgb, var(--lime) 22%, transparent), transparent 29%),
    var(--ink);
  color: var(--surface);
  box-shadow: 0 8px 0 color-mix(in srgb, var(--ink) 88%, black);
}

.greeting-block::after {
  position: absolute;
  top: 15px;
  right: -39px;
  width: 146px;
  height: 146px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.greeting-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.greeting-topline .eyebrow {
  color: var(--lime);
}

.greeting-topline span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.greeting-block h1 {
  position: relative;
  z-index: 1;
  margin-top: 13px;
  color: var(--surface);
  font-size: clamp(43px, 11vw, 53px);
  font-weight: 600;
  line-height: 0.98;
}

.greeting-block h1 em {
  z-index: 1;
  color: var(--lime);
}

.greeting-block h1 em::after {
  display: none;
}

.greeting-sub {
  position: relative;
  z-index: 1;
  max-width: 240px;
  margin-top: 13px;
  color: rgba(255, 253, 248, 0.7);
  font-size: 11px;
  line-height: 1.65;
}

.greeting-stamp {
  position: absolute;
  right: 19px;
  bottom: 15px;
  color: rgba(255, 255, 255, 0.11);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.12em;
  transform: rotate(-5deg);
}

.smart-search {
  position: relative;
  z-index: 2;
  margin-top: -18px;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 6px 0 var(--ink);
}

.search-icon-wrap {
  background: var(--lime);
  color: var(--ink);
}

.search-copy strong {
  font-size: 15px;
  font-weight: 600;
}

.quick-destinations {
  padding-top: 17px;
}

.quick-destinations button {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-weight: 500;
}

.quick-destinations button:first-child {
  background: var(--ink);
  color: var(--lime);
}

.featured-card {
  min-height: 344px;
  border: 2px solid var(--ink);
  border-radius: 28px;
  box-shadow: 0 8px 0 var(--ink);
}

.featured-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.08);
}

.travel-art::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 21, 16, 0.08), rgba(9, 21, 16, 0.18) 45%, rgba(9, 21, 16, 0.9)),
    linear-gradient(110deg, rgba(9, 21, 16, 0.12), transparent 58%);
  content: "";
}

.travel-art > :not(.featured-photo) {
  display: none;
}

.featured-kicker {
  z-index: 2;
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
}

.featured-number {
  position: absolute;
  top: 13px;
  right: 17px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.88);
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.08em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.featured-content {
  z-index: 2;
  right: 18px;
  bottom: 54px;
  left: 18px;
  color: var(--surface);
}

.featured-content p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.featured-content h2 {
  color: white;
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.26);
}

.round-arrow {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.featured-meta {
  z-index: 2;
  color: rgba(255, 255, 255, 0.78);
}

.section-block {
  margin-top: 28px;
}

.section-heading h2 {
  font-size: 24px;
  font-weight: 600;
}

.text-button {
  padding: 6px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.idea-row {
  gap: 10px;
}

.idea-card {
  position: relative;
  flex-basis: 218px;
  height: 190px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--ink);
  box-shadow: 0 5px 0 var(--ink);
}

.idea-art {
  position: absolute;
  inset: 0;
  height: auto;
}

.idea-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.idea-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 21, 16, 0.02) 20%, rgba(9, 21, 16, 0.85));
  content: "";
}

.idea-art > :not(.idea-photo) {
  display: none;
}

.idea-copy {
  position: absolute;
  right: 13px;
  bottom: 12px;
  left: 13px;
  z-index: 2;
  color: white;
}

.idea-copy strong {
  font-size: 15px;
  font-weight: 600;
}

.idea-copy small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
}

.quick-tools-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 24px;
}

.quick-tools-section button {
  display: flex;
  min-width: 0;
  min-height: 106px;
  align-items: flex-start;
  flex-direction: column;
  padding: 11px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 4px 0 var(--ink);
}

.quick-tools-section button:nth-child(2) {
  background: var(--accent-soft);
}

.quick-tools-section button:nth-child(3) {
  background: var(--orange-soft);
}

.tool-icon {
  display: grid;
  width: 31px;
  height: 31px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: var(--lime);
}

.tool-collab {
  background: var(--forest);
}

.tool-guide {
  background: var(--orange);
  color: white;
}

.quick-tools-section .icon {
  width: 15px;
  height: 15px;
}

.quick-tools-section strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-tools-section small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 7px;
}

.trip-draft-section {
  margin-top: 26px;
}

.draft-card {
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--lime);
  box-shadow: 0 5px 0 var(--ink);
}

.draft-icon {
  background: var(--ink);
  color: var(--lime);
}

.draft-copy strong {
  font-size: 14px;
  font-weight: 600;
}

.inner-topbar {
  border-bottom: 1px solid var(--line);
}

.inner-topbar > strong {
  font-size: 16px;
  font-weight: 600;
}

.plan-heading h1,
.saved-intro h1,
.profile-hero h1,
.map-intro h1 {
  font-weight: 600;
}

.map-card {
  border: 2px solid var(--ink);
  box-shadow: 0 7px 0 var(--ink);
}

.collab-card {
  border: 1.5px solid var(--ink);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--ink) 90%, black);
}

.bottom-nav {
  border: 1.5px solid color-mix(in srgb, var(--lime) 44%, transparent);
}

@media (max-width: 760px) {
  .view-scroll,
  .map-scroll,
  .plan-scroll {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .home-topbar {
    height: calc(70px + env(safe-area-inset-top));
  }
}

/* Daily commute map */
.commute-map-card {
  position: relative;
  height: 260px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--ink);
  box-shadow: 0 6px 0 var(--ink);
}

.commute-map-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) brightness(0.72) blur(0.7px);
  transform: scale(1.06);
}

.commute-map-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 27, 21, 0.15), rgba(11, 27, 21, 0.78)),
    linear-gradient(120deg, color-mix(in srgb, var(--forest) 24%, transparent), transparent 65%);
}

.commute-map-stops {
  position: absolute;
  top: 35px;
  right: 16px;
  left: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
}

.commute-route-line {
  position: absolute;
  top: 24px;
  right: 28px;
  left: 28px;
  height: 3px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, var(--lime) 0 9px, transparent 9px 15px);
}

.commute-map-card[data-mode="walk"] .commute-route-line {
  background: repeating-linear-gradient(90deg, #fff 0 5px, transparent 5px 10px);
}

.commute-map-card[data-mode="taxi"] .commute-route-line {
  background: linear-gradient(90deg, var(--orange), #ffd2a9);
}

.commute-stop {
  position: relative;
  z-index: 1;
  display: flex;
  width: 25%;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  color: white;
  text-align: center;
}

.commute-stop i {
  display: block;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--surface-deep);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.commute-stop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.commute-stop small {
  margin-top: 5px;
  color: var(--lime);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.commute-stop strong {
  width: 100%;
  margin-top: 2px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 8px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commute-map-summary {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  background: rgba(12, 27, 21, 0.88);
  color: var(--surface);
  backdrop-filter: blur(10px);
}

.commute-pulse {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(218, 243, 109, 0.15);
}

.commute-map-summary > span:nth-child(2),
.commute-cost {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 2px;
}

.commute-map-summary small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 7px;
}

.commute-map-summary strong {
  font-size: 13px;
  font-weight: 600;
}

.commute-detail {
  min-width: 0;
  flex: 1;
  color: rgba(255, 255, 255, 0.56);
  font-size: 8px;
  line-height: 1.45;
  text-align: right;
}

.commute-mode-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 9px;
}

.commute-mode-switch button {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 9px;
}

.commute-mode-switch button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
}

.commute-mode-switch .icon {
  width: 14px;
  height: 14px;
}

/* Spot album */
.album-detail-cover {
  position: relative;
  height: 270px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface-deep);
}

.album-detail-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
}

.album-detail-cover::after {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(10, 24, 18, 0.86));
  content: "";
}

.album-detail-badge {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 9px;
  font-weight: 600;
}

.album-detail-title {
  position: absolute;
  right: 18px;
  bottom: 17px;
  left: 18px;
  z-index: 2;
  color: white;
}

.album-detail-title small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
}

.album-detail-title h1 {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.album-detail-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 14px;
}

.album-detail-heading > p {
  flex: 1;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.75;
}

.album-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 13px;
}

.album-photo-grid button {
  position: relative;
  height: 125px;
  overflow: hidden;
  padding: 0;
  border-radius: 15px;
  background: var(--surface-deep);
}

.album-photo-grid button:first-child:last-child {
  grid-column: 1 / -1;
}

.album-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-photo-grid button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(10, 24, 18, 0.64));
  content: "";
}

.album-photo-grid button span {
  position: absolute;
  right: 9px;
  bottom: 8px;
  z-index: 1;
  color: white;
  font-size: 8px;
}

.album-notes {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 13px;
}

.album-notes div {
  padding: 10px 12px;
  border-left: 3px solid var(--lime-deep);
  border-radius: 0 11px 11px 0;
  background: var(--accent-soft);
}

.album-notes small {
  color: var(--muted);
  font-size: 8px;
}

.album-notes p {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.6;
}

.album-share-actions {
  display: grid;
  grid-template-columns: 0.8fr 0.85fr 1.25fr;
  gap: 7px;
  margin-top: 16px;
}

.album-share-actions .primary-button,
.album-share-actions .secondary-button {
  min-height: 47px;
  padding: 0 8px;
  gap: 4px;
  font-size: 9px;
}

.album-share-actions .icon {
  width: 14px;
  height: 14px;
}

/* AI share studio */
.share-layer {
  z-index: 120;
}

.share-sheet {
  width: min(540px, 100%);
}

.share-scroll {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.share-source-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1.5px solid var(--ink);
  border-radius: 17px;
  background: var(--lime);
  color: var(--ink);
}

.share-source-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: var(--lime);
}

.share-source-icon .icon {
  width: 17px;
  height: 17px;
}

.share-source-card > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.share-source-card small {
  font-size: 8px;
  opacity: 0.62;
}

.share-source-card strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-source-card p {
  overflow: hidden;
  font-size: 9px;
  opacity: 0.68;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-step-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 4px;
}

.share-step-head > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.share-step-head > div > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: var(--lime);
  font-size: 8px;
  font-weight: 600;
}

.share-step-head strong {
  font-size: 12px;
  font-weight: 600;
}

.share-step-head > small {
  color: var(--muted);
  font-size: 8px;
}

.share-style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.share-style-card {
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.share-style-card.is-active {
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}

.share-style-card strong,
.share-style-card small {
  display: block;
  margin-left: 2px;
}

.share-style-card strong {
  margin-top: 7px;
  font-size: 10px;
  font-weight: 600;
}

.share-style-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
}

.share-style-preview {
  position: relative;
  display: grid;
  height: 92px;
  grid-template-columns: 1.35fr 0.75fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  padding: 4px;
  overflow: hidden;
  border-radius: 10px;
}

.share-style-preview i {
  display: block;
  min-height: 0;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
}

.share-style-preview i:first-child {
  grid-row: 1 / 3;
}

.style-moments {
  background: #f2e9d7;
}

.style-moments i:first-child { background-image: url("assets/places/shanghai.jpg"); }
.style-moments i:nth-child(2) { background-image: url("assets/places/museum.jpg"); }
.style-moments i:nth-child(3) { background-image: url("assets/places/food.jpg"); }

.style-qq {
  background: #cfe7ff;
}

.style-qq i:first-child { background-image: url("assets/places/chengdu.jpg"); }
.style-qq i:nth-child(2) { background-image: url("assets/places/food.jpg"); }
.style-qq i:nth-child(3) { background-image: url("assets/places/city.jpg"); }

.style-douyin {
  background: #17191d;
}

.style-douyin i:first-child { background-image: url("assets/places/night.jpg"); }
.style-douyin i:nth-child(2) { background-image: url("assets/places/tokyo.jpg"); }
.style-douyin i:nth-child(3) { background-image: url("assets/places/hotel.jpg"); }

.share-photo-strip {
  display: flex;
  gap: 8px;
  width: 100%;
  padding: 2px 2px 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.share-photo-strip:empty::before {
  display: flex;
  width: 100%;
  min-height: 92px;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 9px;
  content: "从攻略或相册添加照片";
}

.share-photo-strip::-webkit-scrollbar {
  display: none;
}

.share-photo-item {
  position: relative;
  flex: 0 0 86px;
  width: 86px;
  height: 104px;
  overflow: hidden;
  border-radius: 13px;
  background: var(--surface-deep);
}

.share-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.share-photo-item > span {
  position: absolute;
  top: 5px;
  left: 5px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(12, 28, 22, 0.65);
  color: white;
  font-size: 7px;
  backdrop-filter: blur(5px);
}

.share-photo-item button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.88);
  color: var(--ink);
}

.share-photo-item button .icon {
  width: 10px;
  height: 10px;
}

.share-photo-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 7px;
}

.share-add-photo,
.share-ai-button {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 12px;
  font-size: 9px;
}

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

.share-ai-button {
  background: var(--ink);
  color: var(--lime);
}

.share-add-photo .icon,
.share-ai-button .icon {
  width: 14px;
  height: 14px;
}

.share-ai-button.is-processing .icon {
  animation: sparkle-spin 850ms linear infinite;
}

.share-copy-fields {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.share-copy-fields label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.share-copy-fields label > span {
  color: var(--muted);
  font-size: 8px;
}

.share-copy-fields input,
.share-copy-fields textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
}

.share-copy-fields textarea {
  min-height: 76px;
  resize: none;
  line-height: 1.6;
}

.share-location-button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
}

.share-location-button > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.share-location-button small {
  color: var(--muted);
  font-size: 8px;
}

.share-location-button strong {
  overflow: hidden;
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-location-button > .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.share-generated-wrap {
  position: relative;
  display: grid;
  min-height: 330px;
  place-items: center;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  background:
    linear-gradient(45deg, color-mix(in srgb, var(--ink) 4%, transparent) 25%, transparent 25% 75%, color-mix(in srgb, var(--ink) 4%, transparent) 75%),
    var(--surface-deep);
  background-size: 20px 20px;
}

.share-generated-placeholder {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.share-generated-placeholder .icon {
  width: 35px;
  height: 35px;
  margin-bottom: 10px;
}

.share-generated-placeholder strong {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
}

.share-generated-placeholder small {
  margin-top: 5px;
  font-size: 8px;
}

#shareGeneratedImage {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.share-generating {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-direction: column;
  background: rgba(21, 37, 30, 0.78);
  color: white;
  font-size: 10px;
  backdrop-filter: blur(8px);
}

.share-generating[hidden] {
  display: none;
}

.share-generating i {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: guide-spin 800ms linear infinite;
}

@keyframes guide-spin {
  to { transform: rotate(360deg); }
}

.share-generate-button {
  min-height: 50px;
}

.share-channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.share-channels button {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  padding: 8px 3px;
  border-radius: 13px;
  background: transparent;
  color: var(--ink);
}

.share-channels button > span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.share-channels button strong {
  overflow: hidden;
  color: var(--muted);
  font-size: 7px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-wechat { background: #d9f2d7; color: #24763b; }
.channel-qq { background: #dcecff; color: #286bb5; }
.channel-douyin { background: #23252a; color: white; }
.channel-save { background: var(--accent-soft); color: var(--ink); }
.channel-save .icon { width: 15px; height: 15px; }

.share-platform-note {
  margin: -2px 8px 3px;
  color: var(--muted-light);
  font-size: 7px;
  line-height: 1.6;
  text-align: center;
}

/* Cloud account and AMap */
.cloud-sync-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 13px;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--ink) 90%, black);
}

.cloud-sync-icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: var(--lime);
}

.cloud-sync-icon .icon {
  width: 17px;
  height: 17px;
}

.cloud-sync-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.cloud-sync-copy small {
  color: var(--muted);
  font-size: 7px;
}

.cloud-sync-copy strong {
  font-size: 11px;
  font-weight: 600;
}

.cloud-sync-copy p {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloud-sync-card > button {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 9px;
  font-weight: 600;
}

.auth-layer {
  z-index: 125;
}

.auth-sheet {
  width: min(470px, 100%);
}

.auth-scroll {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  background: var(--surface-deep);
}

.auth-mode-switch button {
  min-height: 38px;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}

.auth-mode-switch button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 3px 8px rgba(25, 49, 41, 0.08);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.auth-account {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 22px;
  border-radius: 20px;
  background: var(--surface);
  text-align: center;
}

.auth-account[hidden] {
  display: none;
}

.auth-account-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
}

.auth-account small {
  color: var(--muted);
  font-size: 8px;
}

.auth-account strong {
  margin-top: 3px;
  font-size: 18px;
  font-weight: 600;
}

.auth-account p {
  margin: 7px 0 16px;
  color: var(--muted);
  font-size: 9px;
}

.auth-account .secondary-button {
  width: 100%;
  min-height: 44px;
}

.auth-note {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.65;
  text-align: center;
}

.amap-container {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #dfe8df;
}

.amap-container[hidden] {
  display: none;
}

.amap-status {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 8;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--muted);
  font-size: 7px;
  backdrop-filter: blur(7px);
}

.amap-status.is-live {
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
}

.amap-marker {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 3px solid white;
  border-radius: 50% 50% 50% 12%;
  background: var(--surface);
  box-shadow: 0 5px 14px rgba(25, 49, 41, 0.25);
  transform: rotate(-45deg);
}

.amap-marker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(45deg) scale(1.35);
}

/* Plan library */
.plan-library-sheet {
  width: min(500px, 100%);
}

.plan-library-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.new-plan-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 17px;
  background: var(--lime);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 4px 0 var(--ink);
}

.new-plan-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: var(--lime);
}

.new-plan-icon .icon {
  width: 16px;
  height: 16px;
}

.new-plan-card > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.new-plan-card strong {
  font-size: 11px;
  font-weight: 600;
}

.new-plan-card small {
  font-size: 8px;
  opacity: 0.65;
}

.new-plan-card > .icon {
  width: 16px;
  height: 16px;
}

.plan-library-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-library-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.plan-library-main {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.plan-library-main strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-library-main small {
  color: var(--muted);
  font-size: 8px;
}

.plan-library-meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 8px;
}

.plan-library-delete {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-soft);
  color: #a4513e;
}

.plan-library-delete .icon {
  width: 14px;
  height: 14px;
}

.plan-library-empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
}

.plan-library-note {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.65;
  text-align: center;
}

/* Check-in pose suggestions */
.pose-field {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.pose-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pose-field-head small {
  color: var(--muted);
  font-size: 8px;
}

.pose-count-switch {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 3px;
  border-radius: 11px;
  background: var(--surface-deep);
}

.pose-count-switch button {
  min-height: 32px;
  padding: 0 3px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 8px;
}

.pose-count-switch button.is-active {
  background: var(--ink);
  color: var(--lime);
}

.pose-recommendations {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pose-card {
  display: grid;
  width: 100%;
  grid-template-columns: 50px 1fr 18px;
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}

.pose-card.is-selected {
  border-color: var(--ink);
  background: var(--accent-soft);
}

.pose-visual {
  position: relative;
  display: flex;
  width: 50px;
  height: 60px;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 6px;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 70% 24%, var(--lime) 0 12%, transparent 13%),
    linear-gradient(145deg, var(--forest), color-mix(in srgb, var(--ink) 86%, black));
  color: white;
}

.pose-visual > span {
  position: absolute;
  top: 5px;
  left: 6px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 7px;
}

.pose-visual .icon {
  width: 14px;
  height: 14px;
  color: var(--lime);
}

.pose-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.pose-copy strong {
  font-size: 10px;
  font-weight: 600;
}

.pose-copy p {
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.45;
}

.pose-copy small {
  color: var(--muted);
  font-size: 7px;
}

.pose-selected-dot {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--lime);
}

.pose-selected-dot .icon {
  width: 10px;
  height: 10px;
}

.pose-card.is-selected .pose-selected-dot {
  background: var(--ink);
}

/* Text-only attraction explanation */
.story-panel {
  margin-top: 15px;
  padding: 15px;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--ink);
}

.story-panel-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.story-panel-head .icon {
  width: 14px;
  height: 14px;
}

.story-panel h3 {
  margin: 12px 0 4px;
  font-size: 12px;
  font-weight: 600;
}

.story-panel p {
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.8;
}

.story-panel small {
  display: block;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}
