:root {
  --accent: #ff5a5f;
  --accent-deep: #e8404a;
  --blue: #2f7bff;
  --pink: #ff4d8d;
  --teal: #00c2a8;
  --sunny: #ffc531;
  --ink: #1c2130;
  --muted: #646b7a;
  --line: #e8eaf2;
  --paper: #fdfdff;
  --soft: #f3f4fa;
  --cream: #ffeff0;
  --orange: #ff8a3d;
  --shadow: 0 16px 42px rgba(28, 32, 48, 0.1);
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  font-size: 15px;
  line-height: 1.65;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #ff5a5f;
  outline-offset: 2px;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
.page {
  min-height: 100vh;
  background: var(--paper);
}
.topbar,
.home-nav {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(253, 253, 255, 0.96);
  position: relative;
  z-index: 20;
}
.brand {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: 700 29px/1 var(--serif);
  padding: 0;
}
.main-nav {
  display: flex;
  gap: 34px;
  margin-left: 70px;
  align-self: stretch;
}
.main-nav button,
.home-nav nav button,
.nav-actions button {
  border: 0;
  background: transparent;
}
.main-nav button {
  position: relative;
  padding: 0 2px;
  font-weight: 500;
}
.main-nav button.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-actions .quiet {
  font-weight: 500;
}
.bell {
  font-size: 18px;
  position: relative;
}
.notice-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #b3402a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
}
.role-badge {
  align-self: flex-start;
  margin-top: 6px;
  background: #e9edfb;
  color: #2f7bff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
}
.share-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  color: var(--muted);
}
.share-link input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  outline: none;
}
.member-list,
.notice-list {
  width: 100%;
  margin-top: 16px;
}
.member-row,
.notice-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.member-row:last-child,
.notice-row:last-child {
  border-bottom: 0;
}
.member-row > div,
.notice-row > div {
  flex: 1;
  text-align: left;
}
.member-row small,
.notice-row small {
  display: block;
  color: var(--muted);
}
.notice-row p {
  margin: 0 0 2px;
}
.notice-row.unread p {
  font-weight: 600;
}
.notice-row > i {
  color: var(--accent);
}
.account-avatar.small {
  width: 34px;
  height: 34px;
  margin: 0;
  font-size: 13px;
  flex-shrink: 0;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent) !important;
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
}
.home-nav nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 34px;
}
.outline,
.primary,
.back {
  min-height: 42px;
  border-radius: 9px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
}
.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}
.outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.outline.selected {
  background: var(--soft);
  border-color: var(--accent);
}
.square {
  width: 44px;
  padding: 0;
}
.small {
  min-height: 34px;
  padding: 0 13px;
}
.wide {
  width: 100%;
}
.huge {
  min-height: 58px;
  font-size: 18px;
  border-radius: 10px;
}
.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
}
.green-label {
  color: var(--accent);
  font-weight: 700;
}
.saved {
  display: inline-block;
  border-radius: 20px;
  padding: 3px 10px;
  background: #ffeef1;
  color: var(--accent);
  font-size: 12px;
}
.saved.unsaved {
  background: #fff0f4;
  color: #e0562a;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1000;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: #1c2130;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  pointer-events: none;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
/* Home */
.home-hero {
  height: 690px;
  position: relative;
  overflow: hidden;
}
.home-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-wash {
  position: absolute;
  inset: 0;
  background: rgba(253, 253, 255, 0.2);
}
.home-form {
  position: relative;
  z-index: 2;
  width: 760px;
  height: 100%;
  padding: 54px 0 0 60px;
  background: rgba(253, 253, 255, 0.82);
  backdrop-filter: blur(3px);
  box-shadow: 60px 0 80px rgba(253, 253, 255, 0.78);
}
.home-form h1,
.discover-intro h1 {
  font: 700 48px/1.22 var(--serif);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.lead {
  color: var(--muted);
  margin-bottom: 25px;
}
.home-form label,
.stack-field > span,
.auth-form label {
  display: block;
  font-weight: 600;
  margin: 13px 0 7px;
}
.home-form small {
  font-weight: 400;
  color: var(--muted);
}
.field {
  height: 54px;
  border: 1px solid #d9dce8;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.84);
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 16px;
}
.field i {
  color: #646b7a;
}
.field input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 35px 1fr;
  align-items: end;
  gap: 8px;
}
.field-row .or {
  text-align: center;
  padding-bottom: 15px;
}
.date-field {
  width: 100%;
  justify-content: flex-start;
}
.date-field span {
  flex: 1;
  text-align: left;
}
.preference-row {
  display: flex;
  gap: 10px;
}
.preference {
  width: 122px;
  height: 96px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}
.preference > img {
  width: 100%;
  height: 54px;
  object-fit: cover;
}
.preference > span {
  height: 40px;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.preference.selected {
  border: 2px solid var(--accent);
  color: var(--accent);
}
.preference .fa-circle-check {
  position: absolute;
  right: 7px;
  bottom: 7px;
}
.home-form > .primary {
  width: 100%;
  margin-top: 22px;
}
.trust {
  display: flex;
  gap: 24px;
  justify-content: center;
  color: #767d8c;
  font-size: 12px;
  margin-top: 14px;
}
.recent {
  padding: 22px 60px 28px;
}
.section-kicker {
  font-family: var(--serif);
  font-weight: 600;
}
.recent-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  width: 820px;
  height: 86px;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 0;
  overflow: hidden;
}
.recent-card img {
  width: 210px;
  height: 100%;
  object-fit: cover;
}
.recent-card span {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0 30px;
  flex: 1;
}
.recent-card b {
  font-family: var(--serif);
  font-size: 17px;
}
.recent-card small {
  color: var(--muted);
}
.recent-card > i {
  margin-right: 24px;
}
.quote {
  text-align: center;
  color: #8a90a0;
  font: 500 16px var(--serif);
  margin: 38px 0 0;
}
/* Discover */
.discover-page {
  padding: 42px 5vw 55px;
  background: var(--paper);
}
.discover-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}
.discover-intro h1 {
  font-size: 40px;
}
.discover-intro > p:not(.eyebrow) {
  color: var(--muted);
}
.search-box {
  height: 60px;
  border: 1px solid #d9dce8;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 6px 8px 6px 18px;
  gap: 14px;
  box-shadow: 0 6px 25px rgba(28, 32, 48, 0.05);
}
.search-box input {
  border: 0;
  outline: 0;
  flex: 1;
}
.search-box .primary {
  min-width: 125px;
  height: 46px;
}
.featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  max-width: 1320px;
  margin: auto;
}
.featured > img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.featured > div {
  padding: 30px 40px;
}
.featured h2 {
  font: 700 30px var(--serif);
  margin-bottom: 10px;
}
.featured p {
  color: var(--muted);
}
.meta {
  display: flex;
  gap: 30px;
  margin: 20px 0;
}
.featured .outline {
  margin-left: 12px;
}
.theme-section {
  max-width: 1320px;
  margin: 24px auto;
}
.theme-section h2 {
  font: 600 23px var(--serif);
  margin-bottom: 2px;
}
.theme-section > p {
  color: var(--muted);
}
.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.theme-card {
  height: 154px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 43% 1fr 40px;
  text-align: left;
  padding: 0;
  align-items: center;
}
.theme-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.theme-card span {
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.theme-card b {
  font: 600 19px var(--serif);
}
.theme-card small {
  color: var(--muted);
  margin: 5px 0 14px;
}
.theme-card em {
  font-style: normal;
  font-size: 12px;
  color: #646b7a;
}
.theme-card > i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}
/* Create */
.create-page {
  padding: 35px 5.5vw;
}
.steps {
  height: 60px;
  display: flex;
  justify-content: center;
  gap: 55px;
  color: #8a90a0;
}
.steps span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  position: relative;
}
.steps span:not(:last-child):after {
  content: "";
  height: 1px;
  background: var(--line);
  width: 60px;
  position: absolute;
  right: -40px;
}
.steps i {
  font-style: normal;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.steps .on {
  color: var(--ink);
  font-weight: 600;
}
.steps .on i {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.create-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 80px;
  max-width: 1320px;
  margin: 32px auto;
}
.create-form h1 {
  font: 700 38px/1.35 var(--serif);
  margin-bottom: 10px;
}
.create-form > p:not(.eyebrow) {
  color: var(--muted);
}
.form-stack {
  margin-top: 28px;
}
.stack-field > div {
  height: 50px;
  border: 1px solid #d9dce8;
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 12px;
}
.stack-field input {
  border: 0;
  outline: 0;
  flex: 1;
  background: transparent;
}
.stack-field i {
  color: #646b7a;
}
.stack-field em {
  font-style: normal;
  background: var(--soft);
  color: var(--accent);
  padding: 4px 9px;
  border-radius: 7px;
}
.create-actions {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  margin-top: 64px;
}
.gen-progress {
  list-style: none;
  margin: 26px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.gen-progress li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  color: var(--muted);
}
.gen-progress li i {
  width: 18px;
  text-align: center;
}
.gen-progress li small {
  margin-left: auto;
  color: var(--muted);
}
.gen-progress li.active {
  color: var(--ink);
  font-weight: 600;
}
.gen-progress li.active i {
  color: var(--accent);
}
.gen-progress li.done {
  color: var(--accent);
}
.gen-progress-wrap .outline.wide {
  margin-top: 10px;
}
.mobile-nav {
  display: none;
}
.eye-toggle {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
}
.eye-toggle:hover {
  color: var(--accent);
}
@media (max-width: 760px) {
  .mobile-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 11px;
    padding: 4px 0;
    position: relative;
  }
  .mobile-nav button i {
    font-size: 17px;
  }
  .mobile-nav button.active {
    color: var(--accent);
    font-weight: 600;
  }
  .mobile-nav .notice-badge {
    top: -2px;
    right: 50%;
    transform: translateX(16px);
  }
  .page {
    padding-bottom: 66px;
  }
}
.trip-aside > img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 12px;
}
.season-note {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffeef1;
  border-radius: 10px;
  margin: 14px 0;
  padding: 16px 22px;
  color: var(--accent);
}
.season-note > i {
  font-size: 24px;
}
.season-note span {
  display: flex;
  flex-direction: column;
}
.season-note small {
  color: var(--muted);
}
.summary {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 20px 25px;
}
.summary h3 {
  font-family: var(--serif);
}
.summary p {
  display: grid;
  grid-template-columns: 20px 105px 1fr;
  gap: 8px;
  margin: 12px 0;
  color: var(--muted);
}
.summary p i {
  color: #646b7a;
}
.summary p b {
  font-weight: 500;
  color: var(--ink);
}
.choice-block {
  margin-top: 28px;
}
.choice-block h3 {
  font: 600 18px var(--serif);
  margin: 24px 0 10px;
}
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.choice-grid button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 23px;
}
.choice-grid button.selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.choice-block textarea {
  width: 100%;
  min-height: 90px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}
.ready-card {
  margin-top: 35px;
  padding: 28px;
  border: 1px solid #ffd3d8;
  background: var(--soft);
  border-radius: 12px;
  display: flex;
  gap: 18px;
}
.ready-card > i {
  font-size: 26px;
  color: var(--accent);
}
.privacy-note {
  margin-top: 18px !important;
}
/* Conversation */
.conversation-page {
  background: #f7f8fc;
}
.conversation-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  height: calc(100vh - 64px);
}
.chat-panel {
  padding: 32px 40px;
  overflow: auto;
}
.chat-panel h1,
.editor-chat h1 {
  font: 600 29px var(--serif);
  margin-bottom: 4px;
}
.chat-panel > p:not(.eyebrow),
.editor-chat > p {
  color: var(--muted);
}
.chat-panel > .primary.huge {
  width: 100%;
  margin-top: 18px;
}
.chat-history {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0 28px;
}
.bubble {
  max-width: 82%;
  border-radius: 16px;
  padding: 17px 20px;
  box-shadow: 0 5px 18px rgba(28, 32, 48, 0.06);
  line-height: 1.75;
}
.bubble small {
  display: block;
  text-align: right;
  color: #8a90a0;
  margin-top: 4px;
}
.bubble.mine {
  align-self: flex-end;
  background: #ffeef1;
  border-bottom-right-radius: 5px;
}
.bubble.advisor {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}
.question-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.question-card h2 {
  font: 600 21px var(--serif);
  margin-bottom: 5px;
}
.question-card p {
  color: var(--muted);
}
.question-card .choice-grid {
  margin-top: 16px;
}
.candidate {
  margin: 18px 22px 22px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 30px 36px;
  overflow: auto;
}
.candidate h1 {
  font: 700 32px var(--serif);
  margin-bottom: 4px;
}
.candidate > p:not(.green-label) {
  color: var(--muted);
}
.candidate > img {
  height: 230px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  margin: 20px 0;
}
.route-strip {
  height: 90px;
  background: #ffeef1;
  color: #e8404a;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  word-spacing: 18px;
}
.candidate-days {
  margin-top: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.candidate-days p {
  display: grid;
  grid-template-columns: 80px 1fr;
  margin: 0;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.candidate-days p:last-child {
  border-bottom: 0;
}
.candidate-days b {
  font-family: var(--serif);
}
/* Planner */
.planner-page {
  padding: 18px 32px 28px;
}
.trip-titlebar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.trip-titlebar .back {
  width: 42px;
  padding: 0;
  border: 0;
  background: #f4f5fa;
}
.trip-titlebar > img {
  width: 88px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}
.trip-titlebar h1 {
  font: 600 24px var(--serif);
  margin: 0;
}
.trip-titlebar p {
  color: var(--muted);
  margin: 2px 0 0;
}
.title-actions {
  margin-left: auto;
  display: flex;
  gap: 12px;
}
.planner-grid {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 10px;
  height: calc(100vh - 165px);
}
.planner-chat,
.planner-main {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.mode-tabs {
  height: 74px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 155px 155px 1fr;
  align-items: center;
  padding: 10px 14px;
  gap: 8px;
}
.mode-tabs button {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-weight: 600;
}
.mode-tabs button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.mode-tabs p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  padding-left: 10px;
}
.editor-chat {
  height: calc(100% - 74px);
  padding: 24px 20px;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.editor-chat .mine {
  margin-left: auto;
}
.quick-adjust {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-top: auto;
}
.quick-adjust h3 {
  font: 600 16px var(--serif);
}
.quick-adjust button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 7px 12px;
  margin: 3px;
}
.change-proposal {
  border: 1px solid #ffd3d8;
  border-radius: 12px;
  background: #f2f6ff;
  padding: 14px 16px;
  margin: 12px 0;
}
.change-proposal p,
.change-proposal h3 {
  margin-bottom: 5px;
}
.change-proposal ul {
  margin: 7px 0 12px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 12px;
}
.change-proposal > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.change-proposal button {
  min-height: 34px;
  padding: 0 13px;
}
.message-box {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 14px;
  padding: 7px;
}
.message-box textarea {
  border: 0;
  outline: 0;
  resize: none;
  flex: 1;
  min-height: 45px;
  padding: 7px;
}
.message-box button {
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  align-self: end;
}
.manual-panel {
  padding: 20px;
  height: calc(100% - 74px);
  overflow: auto;
}
.manual-panel h1 {
  font: 600 25px var(--serif);
  margin-bottom: 4px;
}
.manual-panel > p {
  color: var(--muted);
}
.manual-spot {
  width: 100%;
  display: grid;
  grid-template-columns: 20px 45px 58px 28px 1fr 15px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  margin: 8px 0;
  text-align: left;
}
.manual-spot.dragging {
  opacity: 0.48;
  border-color: var(--accent);
}
.manual-spot img {
  width: 58px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}
.manual-spot em {
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
}
.manual-spot div {
  display: flex;
  flex-direction: column;
}
.manual-spot small {
  color: var(--muted);
}
.planner-main {
  overflow: auto;
}
.map-visual {
  height: 355px;
  background: url("./assets/kyoto-map.png") center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.map-canvas {
  width: 100%;
  height: 100%;
}
.map-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #1c2130;
  background: rgba(243, 244, 250, 0.82);
  backdrop-filter: blur(3px);
  font-size: 13px;
  font-weight: 600;
}
.map-status i {
  color: var(--accent);
}
.map-error {
  align-items: flex-end;
  justify-content: flex-start;
  inset: auto 16px 16px;
  width: auto;
  padding: 10px 12px;
  border: 1px solid rgba(255, 138, 61, 0.18);
  border-radius: 8px;
  background: rgba(255, 240, 244, 0.94);
  color: #e0562a;
}
.amap-ready {
  background: #e9ebf4;
}
.map-unsupported {
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.map-region-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 390px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 90, 95, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  color: var(--accent);
}
.map-region-notice > i {
  font-size: 22px;
}
.map-region-notice span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.map-region-notice small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}
.map-focus {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  width: 255px;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 90, 95, 0.24);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  z-index: 3;
}
.map-focus img {
  width: 82px;
  height: 64px;
  border-radius: 7px;
  object-fit: cover;
}
.map-focus span {
  display: flex;
  flex-direction: column;
}
.map-focus small,
.map-focus em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}
.itinerary {
  background: #fff;
}
.itinerary-head {
  display: flex;
  align-items: center;
  padding: 12px 18px;
}
.itinerary-head h3 {
  font: 600 17px var(--serif);
  margin: 0;
}
.itinerary-head button {
  margin-left: auto;
}
.optimization {
  margin: 0 16px 10px;
  border: 1px solid #ffd3d8;
  background: #ffeef1;
  color: #e8404a;
  border-radius: 8px;
  padding: 8px 12px;
}
.spot {
  display: grid;
  grid-template-columns: 48px 28px 1fr 160px 170px;
  gap: 10px;
  align-items: start;
  padding: 8px 17px;
  position: relative;
}
.spot:hover,
.spot.focused {
  background: #f2f6ff;
}
.spot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.spot time {
  font-family: var(--serif);
  font-weight: 600;
}
.spot-index {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.spot h4 {
  font: 600 15px var(--serif);
  margin: 0;
}
.spot h4 small {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--muted);
  margin-left: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2px 6px;
}
.spot p {
  color: var(--muted);
  font-size: 12px;
  margin: 2px 0;
}
.spot img {
  width: 160px;
  height: 55px;
  object-fit: cover;
  border-radius: 7px;
}
.spot em {
  font-style: normal;
  background: var(--soft);
  border-radius: 8px;
  padding: 12px;
  color: var(--accent);
  font-size: 12px;
}
.warning {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #ffd3d8;
  background: #fff0f4;
  color: var(--orange);
  margin: 10px 16px 16px;
  padding: 9px 12px;
  border-radius: 8px;
}
.warning span {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.warning small {
  color: #8a90a0;
}
.warning .primary {
  min-height: 36px;
}
.compact .spot {
  grid-template-columns: 48px 28px 1fr 160px 170px;
}
.compact .warning {
  margin-bottom: 20px;
}
/* Manual full */
.editor-top {
  height: 96px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
}
.editor-top .brand {
  padding-right: 28px;
  border-right: 1px solid var(--line);
}
.editor-top h1 {
  font: 600 23px var(--serif);
  margin: 0;
}
.editor-top p {
  color: var(--muted);
  margin: 2px 0;
}
.editor-top .saved {
  margin-right: auto;
}
.manual-full main {
  display: grid;
  grid-template-columns: 67% 33%;
  height: calc(100vh - 175px);
}
.manual-full main > section {
  border-right: 1px solid var(--line);
}
.manual-full .map-visual {
  height: 100%;
}
.manual-full main > aside {
  overflow: auto;
  padding: 8px;
}
.manual-full footer {
  height: 79px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 10px 28px;
  gap: 18px;
  background: #fff;
}
.manual-full footer img {
  width: 56px;
  height: 48px;
  object-fit: cover;
  border-radius: 7px;
}
.manual-full footer div {
  display: flex;
  flex-direction: column;
}
.manual-full footer small {
  color: var(--muted);
}
.manual-full footer .saved {
  margin-left: auto;
}
.manual-full .itinerary .spot {
  grid-template-columns: 43px 24px 1fr;
}
.manual-full .itinerary .spot img {
  grid-column: 3;
  width: 100%;
  height: 75px;
}
.manual-full .itinerary .spot em {
  grid-column: 3;
}
.manual-full .warning button {
  padding: 0 10px;
}
.manual-full .optimization {
  font-size: 12px;
}
/* Trips */
.trips-page {
  padding: 35px 3vw 50px;
}
.trips-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.trips-heading h1 {
  font: 700 39px var(--serif);
  margin-bottom: 3px;
}
.trips-heading p {
  color: var(--muted);
}
.trip-filters {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid var(--line);
  margin: 20px 0;
}
.trip-filters > div {
  display: flex;
  gap: 34px;
}
.trip-filters button {
  border: 0;
  background: transparent;
  padding: 14px 4px;
  position: relative;
}
.trip-filters button.active {
  font-weight: 600;
}
.trip-filters button.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}
.trip-filters label {
  width: 350px;
  border: 1px solid var(--line);
  border-radius: 9px;
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  margin-bottom: 10px;
  background: #fff;
}
.trip-filters input {
  border: 0;
  outline: 0;
  flex: 1;
  margin-left: 10px;
}
.trip-row {
  height: 126px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  margin: 10px 0;
  padding: 0 14px 0 0;
  display: grid;
  grid-template-columns: 300px 1.35fr 220px 250px 52px;
  gap: 26px;
  align-items: center;
  overflow: hidden;
}
.trip-row[hidden] {
  display: none;
}
.trip-row > img {
  width: 300px;
  height: 126px;
  object-fit: cover;
}
.trip-copy h2 {
  font: 600 22px var(--serif);
  margin: 0 0 5px;
}
.trip-copy p {
  margin: 2px 0;
  color: var(--muted);
}
.people {
  display: flex;
  align-items: center;
  position: relative;
  padding-bottom: 18px;
}
.people span {
  width: 25px;
  height: 25px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ff5a5f;
  margin-left: -5px;
}
.people span:nth-child(2) {
  background: #ffc531;
}
.people span:nth-child(3) {
  background: #2f7bff;
}
.people small {
  position: absolute;
  left: 0;
  bottom: 0;
  color: var(--muted);
}
.progress {
  display: flex;
  flex-direction: column;
}
.progress i {
  width: 200px;
  height: 5px;
  background: #e5e7ee;
  border-radius: 5px;
  margin-top: 8px;
}
.progress i em {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 5px;
}
.progress > span {
  align-self: flex-start;
  background: #ffeef1;
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 20px;
}
.trip-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.trip-actions .icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
}
.trip-actions .icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.trip-actions .icon-btn.danger:hover {
  color: #b3402a;
  border-color: #b3402a;
}
.archive {
  height: 150px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.archive > i {
  font-size: 28px;
  color: #8a90a0;
}
.archive h3 {
  color: var(--ink);
  margin: 7px 0 0;
}
/* Auth */
.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 24, 38, 0.58);
}
.auth-dialog {
  position: relative;
  width: 760px;
  min-height: 560px;
  background: #fdfdff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  display: grid;
  grid-template-columns: 46% 54%;
  overflow: hidden;
}
.auth-x {
  position: absolute;
  right: 20px;
  top: 16px;
  z-index: 2;
  border: 0;
  background: transparent;
  font-size: 19px;
}
.auth-art {
  display: flex;
  flex-direction: column;
  padding: 42px 0 0 42px;
}
.auth-art h1 {
  font: 700 29px var(--serif);
}
.auth-art p {
  color: var(--muted);
  padding-right: 30px;
}
.auth-art img {
  width: 100%;
  height: 330px;
  margin-top: auto;
  object-fit: cover;
  border-radius: 70px 0 0 0;
}
.auth-form {
  margin: 58px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 22px 18px;
  background: #fff;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.auth-tabs button {
  height: 55px;
  border: 0;
  background: transparent;
}
.auth-tabs button.active {
  border-bottom: 2px solid var(--accent);
  font-weight: 700;
}
.auth-form label > input,
.auth-form label > div {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
  padding: 0 12px;
}
.auth-form label > div {
  display: flex;
  align-items: center;
}
.auth-form label > div input {
  border: 0;
  outline: 0;
  flex: 1;
}
.auth-form input {
  outline: 0;
}
.forgot {
  border: 0;
  background: transparent;
  color: var(--accent);
  display: block;
  margin: 7px 0 12px auto;
}
/* 账户面板（已登录态） */
.auth-dialog.compact {
  width: min(400px, calc(100vw - 40px));
  grid-template-columns: 1fr;
}
.account-panel { padding: 34px 28px; text-align: center; }
.account-avatar {
  width: 56px; height: 56px; margin: 0 auto 12px;
  border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800;
}
.account-email { margin-bottom: 22px; color: var(--muted); }
.account-panel .outline + .outline { margin-top: 10px; }
/* 分享弹层「隐藏酒店信息」脱敏开关（复用账户面板表单控件） */
.auth-form label.share-hide {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
}
.auth-form label.share-hide > input {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 3px;
  accent-color: var(--accent);
}
.auth-form label.share-hide small {
  display: block;
  font-weight: 400;
  color: var(--muted);
}
.outline.danger { border-color: rgba(179, 64, 42, 0.35); color: #b3402a; }
.outline.danger:hover { border-color: #b3402a; box-shadow: 0 8px 18px rgba(179, 64, 42, 0.14); color: #b3402a; }
.divider {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.social button {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}
.terms {
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  margin-top: 16px;
}
@media (max-width: 1050px) {
  .home-form {
    width: 630px;
    padding-left: 35px;
  }
  .planner-grid {
    grid-template-columns: 45% 55%;
  }
  .trip-row {
    grid-template-columns: 220px 1fr 150px 160px 45px;
  }
  .trip-row > img {
    width: 220px;
  }
  .people {
    display: none;
  }
  .featured {
    grid-template-columns: 1fr;
  }
  .featured > img {
    height: 250px;
  }
  .create-grid {
    gap: 30px;
  }
  .planner-page {
    padding: 15px;
  }
  .spot {
    grid-template-columns: 42px 25px 1fr 120px;
  }
  .spot em {
    display: none;
  }
}
@media (max-width: 760px) {
  .topbar,
  .home-nav {
    padding: 0 18px;
  }
  .main-nav {
    margin-left: 25px;
    gap: 18px;
  }
  .main-nav button:nth-child(3),
  .nav-actions .quiet,
  .bell {
    display: none;
  }
  .home-hero {
    height: auto;
  }
  .home-form {
    width: 100%;
    padding: 35px 22px 40px;
    background: rgba(253, 253, 255, 0.92);
    box-shadow: none;
  }
  .home-form h1 {
    font-size: 37px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .field-row .or {
    display: none;
  }
  .preference-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .preference {
    width: 100%;
  }
  .trust {
    flex-direction: column;
    gap: 4px;
  }
  .recent {
    padding: 22px;
  }
  .recent-card {
    width: 100%;
  }
  .recent-card img {
    width: 120px;
  }
  .discover-page,
  .create-page,
  .trips-page {
    padding: 25px 18px;
  }
  .theme-grid,
  .create-grid,
  .featured {
    grid-template-columns: 1fr;
  }
  .theme-card {
    grid-template-columns: 38% 1fr 35px;
  }
  .conversation-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .candidate {
    margin: 10px;
  }
  .trip-aside {
    order: -1;
  }
  .trip-aside > img {
    height: 220px;
  }
  .steps {
    gap: 8px;
    justify-content: flex-start;
    overflow: auto;
  }
  .steps span {
    min-width: 155px;
  }
  .create-actions {
    grid-template-columns: 1fr;
  }
  .planner-grid {
    display: block;
    height: auto;
  }
  .planner-chat {
    min-height: 650px;
  }
  .planner-main {
    margin-top: 12px;
  }
  .mode-tabs {
    grid-template-columns: 1fr 1fr;
  }
  .mode-tabs p {
    display: none;
  }
  .trip-titlebar {
    flex-wrap: wrap;
  }
  .title-actions {
    width: 100%;
  }
  .planner-grid .map-visual {
    height: 270px;
  }
  .compact .spot,
  .spot {
    grid-template-columns: 42px 25px 1fr;
  }
  .spot img {
    grid-column: 3;
    width: 100%;
    height: 70px;
  }
  .spot em {
    display: none;
  }
  .manual-full main {
    grid-template-columns: 1fr;
    height: auto;
  }
  .manual-full main > section {
    height: 380px;
  }
  .manual-full footer {
    overflow: auto;
  }
  .manual-full footer .saved {
    display: none;
  }
  .trips-heading {
    align-items: flex-start;
  }
  .trip-filters {
    display: block;
  }
  .trip-filters label {
    width: 100%;
  }
  .trip-row {
    height: auto;
    grid-template-columns: 120px 1fr 42px;
    padding: 0;
  }
  .trip-row > img {
    width: 120px;
    height: 130px;
  }
  .trip-copy {
    padding: 12px 0;
  }
  .trip-copy h2 {
    font-size: 17px;
  }
  .progress {
    display: none;
  }
  .trip-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
    padding: 0 12px 12px 0;
  }
  .trip-row > .outline.square {
    grid-column: 3;
    grid-row: 1;
  }
  .auth-dialog {
    width: 92vw;
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow: auto;
  }
  .auth-art {
    display: none;
  }
  .auth-form {
    margin: 50px 20px 20px;
  }
  .social {
    grid-template-columns: 1fr;
  }
}

/* ==== v3 真实数据组件 ==== */
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stack-field select {
  border: 0;
  outline: 0;
  flex: 1;
  background: transparent;
  appearance: auto;
}
.stack-field input[type="date"] {
  min-width: 0;
}
.weather-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0 4px;
  padding: 9px 13px;
  border-radius: 9px;
  background: var(--cream);
  color: var(--ink);
  font-size: 13.5px;
}
.weather-strip i {
  color: var(--orange);
}
.day-switcher {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.day-switcher button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--muted);
}
.day-switcher button.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
/* 手动编辑景点卡片：抓手 / 时间 / 序号 / 名称 / 编辑 / 删除 */
.manual-spot {
  grid-template-columns: 20px 45px 28px 1fr 30px 30px;
  cursor: grab;
}
.manual-spot .icon-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 4px;
  border-radius: 7px;
}
.manual-spot .icon-btn:hover {
  background: var(--soft);
  color: var(--accent);
}
.manual-spot.editing {
  display: block;
  cursor: default;
  padding: 12px;
}
.spot-edit-form {
  display: grid;
  gap: 8px;
}
.spot-edit-form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}
.spot-edit-form input {
  border: 1px solid #d9dce8;
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
}
.spot-edit-form > div {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
/* 添加地点弹层 */
.picker-dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 26px;
  width: min(560px, calc(100vw - 40px));
  max-height: 80vh;
  overflow: auto;
  z-index: 2;
}
.picker-dialog h2 {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 14px;
}
.picker-dialog .search-box {
  margin-bottom: 14px;
}
.picker-results {
  display: grid;
  gap: 8px;
}
.picker-item {
  display: grid;
  gap: 2px;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 13px;
}
.picker-item:hover {
  border-color: var(--accent);
  background: var(--soft);
}
.picker-item small {
  color: var(--muted);
}
.picker-empty {
  color: var(--muted);
  text-align: center;
  padding: 18px 0;
}
/* 空状态 */
.empty-page {
  padding: 90px 24px;
}
.empty-state {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.empty-state.inline {
  padding: 46px 0;
}
.empty-state i {
  font-size: 34px;
  color: var(--accent);
}
.empty-state h1,
.empty-state h3 {
  font-family: var(--serif);
  margin: 0;
}
.empty-state p {
  color: var(--muted);
}
.trip-row {
  cursor: pointer;
}
.chat-history {
  overflow-y: auto;
}
/* Leaflet 海外地图 */
.leaflet-container {
  font: inherit;
}
.leaflet-num-marker {
  background: transparent;
  border: 0;
}
.leaflet-num-marker span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(28, 32, 48, 0.35);
}

/* 备案页脚（首页悬挂） */
.site-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 26px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.site-foot a {
  color: inherit;
  text-decoration: none;
}
.site-foot a:hover {
  color: var(--accent);
}
@media (max-width: 760px) {
  .site-foot {
    flex-direction: column;
    gap: 4px;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
}
