:root {
  color-scheme: light;
  --page: #edf1ef;
  --surface: #f8faf9;
  --surface-strong: #e2e8e4;
  --surface-glass: rgb(248 250 249 / 0.78);
  --text: #18201d;
  --text-soft: #5e6964;
  --line: #cbd4cf;
  --accent: #496457;
  --accent-strong: #354d41;
  --accent-soft: #d7e1db;
  --danger-soft: #806153;
  --shadow: 0 24px 70px rgb(35 54 45 / 0.14);
  --radius-card: 20px;
  --radius-control: 14px;
  --header-height: 68px;
  --z-header: 20;
  --z-overlay: 40;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #151b18;
  --surface: #1d2521;
  --surface-strong: #27312c;
  --surface-glass: rgb(29 37 33 / 0.82);
  --text: #edf3ef;
  --text-soft: #aebbb4;
  --line: #3d4a43;
  --accent: #8fae9d;
  --accent-strong: #bad0c4;
  --accent-soft: #31433a;
  --danger-soft: #c5a797;
  --shadow: 0 24px 70px rgb(2 8 5 / 0.35);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgb(151 176 162 / 0.18), transparent 32rem),
    var(--page);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI Variable", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--page);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgb(203 212 207 / 0.65);
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 21px;
  height: 21px;
  border: 6px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  transform: rotate(18deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  white-space: nowrap;
}

.nav-link,
.theme-button {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
}

.nav-link {
  padding: 23px 0 20px;
  border-bottom: 2px solid transparent;
}

.nav-link-active {
  border-bottom-color: var(--accent);
  color: var(--text);
}

.theme-button {
  min-width: 54px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.nav-link:hover,
.theme-button:hover {
  color: var(--text);
}

.intro {
  position: relative;
  min-height: min(68dvh, 670px);
  overflow: hidden;
  isolation: isolate;
}

.intro-image,
.intro-overlay {
  position: absolute;
  inset: 0;
}

.intro-image {
  z-index: -2;
  background-image: url("/images/hotel-preferences-v2/quiet-luxury-suite.jpg");
  background-position: center 58%;
  background-size: cover;
  transform: scale(1.015);
}

.intro-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(10 18 14 / 0.78), rgb(10 18 14 / 0.08) 64%),
    linear-gradient(0deg, rgb(10 18 14 / 0.6), transparent 48%);
}

.intro-content {
  width: min(1420px, calc(100% - 36px));
  margin: 0 auto;
  padding-top: clamp(84px, 13dvh, 138px);
  color: #f0f5f1;
}

.intro-kicker,
.panel-heading p,
.plan-status,
.saved-section > div > p {
  margin: 0 0 14px;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 6.2vw, 82px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.intro-copy {
  max-width: 460px;
  margin: 26px 0 0;
  color: rgb(240 245 241 / 0.78);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.intro-disclaimer {
  display: block;
  margin-top: 18px;
  color: rgb(240 245 241 / 0.62);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.trip-snapshot {
  position: absolute;
  right: clamp(18px, 4vw, 64px);
  bottom: 28px;
  display: flex;
  gap: 9px;
  padding: 7px;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 999px;
  background: rgb(19 29 24 / 0.55);
  color: #f0f5f1;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.trip-snapshot span {
  padding: 8px 12px;
  font-size: 13px;
  white-space: nowrap;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(290px, 0.78fr) minmax(0, 2.22fr);
  width: min(1420px, calc(100% - 36px));
  margin: 28px auto 0;
  gap: 28px;
  align-items: start;
}

.brief-panel,
.plan-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brief-panel {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  padding: 26px;
}

.panel-heading {
  margin-bottom: 26px;
}

.panel-heading p,
.plan-status,
.saved-section > div > p {
  color: var(--accent);
}

.panel-heading h2,
.plan-topbar h2,
.saved-section h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 40px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.field-group {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 12px;
}

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

.field-group label,
.stops-fieldset legend,
.slider-heading label {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.location-picker {
  position: relative;
}

.location-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  left: 0;
  display: grid;
  width: 100%;
  max-height: 292px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgb(18 29 23 / 0.18);
}

.location-suggestions[hidden] {
  display: none;
}

.location-option {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.location-option:hover,
.location-option.is-active {
  background: var(--accent-soft);
}

.location-option strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-option span {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-option em {
  color: var(--accent-strong);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  outline: none;
  background: var(--page);
  color: var(--text);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--accent);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 2px;
}

.money-input {
  position: relative;
}

.money-input span {
  position: absolute;
  top: 50%;
  left: 13px;
  color: var(--text-soft);
  transform: translateY(-50%);
}

.money-input input {
  padding-left: 34px;
  font-variant-numeric: tabular-nums;
}

.field-help,
.sample-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}

.stops-fieldset {
  display: grid;
  gap: 10px;
  margin: 4px 0 20px;
  padding: 0;
  border: 0;
}

.stops-fieldset legend {
  margin-bottom: 8px;
}

.stop-row {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.stop-row div {
  display: grid;
  gap: 3px;
}

.stop-row strong {
  font-size: 14px;
}

.stop-row span {
  color: var(--text-soft);
  font-size: 11px;
}

.stop-row select {
  min-height: 38px;
  padding: 0 8px;
  font-size: 12px;
}

.slider-block {
  margin: 18px 0 22px;
}

.slider-heading,
.slider-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider-heading output {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

input[type="range"] {
  height: 28px;
  min-height: auto;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  accent-color: var(--accent);
  background: transparent;
}

.slider-scale {
  color: var(--text-soft);
  font-size: 10px;
}

.primary-button {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--accent-strong);
  border-radius: 999px;
  background: var(--accent-strong);
  color: #f5f8f6;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

:root[data-theme="dark"] .primary-button {
  color: #162019;
}

.primary-button:hover {
  background: var(--accent);
}

.primary-button:active,
.strategy-tab:active,
.theme-button:active {
  transform: translateY(1px) scale(0.99);
}

.sample-note {
  margin-top: 14px;
  text-align: center;
}

.preference-section {
  width: min(1420px, calc(100% - 36px));
  margin: 28px auto 0;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr);
  gap: 24px;
  align-items: end;
}

.section-intro > p:first-child,
.saved-section > div > p:first-child {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-intro h2 {
  grid-column: 1;
  margin: 0;
  font-size: clamp(25px, 3vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.section-intro > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}

.preference-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 14px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.preference-toolbar > div { display: flex; gap: 8px; }

.secondary-button,
.text-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.secondary-button:hover,
.text-button:hover { border-color: var(--accent); background: var(--accent-soft); }
.secondary-button:disabled { cursor: not-allowed; opacity: 0.5; }
.text-button { border-color: transparent; color: var(--text-soft); }


.selected-style-tray {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.selected-style-tray > span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 5px 9px 5px 5px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
}

.selected-style-tray img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

.style-card-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(360px, 32vw);
  grid-template-columns: none;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding: 2px 2px 12px;
  scrollbar-color: var(--line) transparent;
}

.style-card {
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.style-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.style-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.style-card.is-disliked { opacity: 0.45; }

.style-select {
  display: grid;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.style-scene-single {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--text);
}

.style-scene-single img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--text);
  transition: transform 260ms ease;
}

.style-select:hover .style-scene-single img { transform: scale(1.018); }

.style-image-prompt {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border: 1px solid rgb(255 255 255 / 0.48);
  border-radius: 999px;
  background: rgb(18 28 23 / 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.style-card-copy { display: grid; gap: 4px; padding: 14px 14px 12px; }
.style-card-copy strong { font-size: 15px; letter-spacing: -0.02em; }
.style-card-copy small { min-height: 34px; color: var(--text-soft); font-size: 11px; line-height: 1.42; }

.style-scene-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 10px;
}

.style-scene-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 700;
}

.style-scene-toggle:hover { color: var(--text); }
.style-scene-toggle span { font-size: 14px; line-height: 1; transition: transform 160ms ease; }
.style-scene-toggle:hover span { transform: translateX(3px); }

.style-select:focus-visible,
.style-scene-toggle:focus-visible,
.style-dislike:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.style-dislike {
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  font-size: 10px;
}

.style-card.is-disliked .style-dislike { color: var(--danger-soft); font-weight: 700; }

.profile-summary { margin: 14px 0 0; color: var(--text-soft); font-size: 12px; line-height: 1.5; }

.plan-panel {
  min-width: 0;
  padding: clamp(22px, 3vw, 38px);
}

.plan-topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 22px;
}

.plan-topbar h2 {
  max-width: 640px;
}

.budget-summary {
  display: grid;
  min-width: 150px;
  justify-items: end;
  font-variant-numeric: tabular-nums;
}

.budget-summary span,
.budget-summary small {
  color: var(--text-soft);
  font-size: 11px;
}

.budget-summary strong {
  margin: 3px 0 2px;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.04em;
}

.strategy-tabs {
  display: flex;
  gap: 8px;
  margin: 34px 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.strategy-tab {
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.strategy-tab:hover {
  color: var(--text);
}

.strategy-tab.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.route-strip {
  display: grid;
  grid-template-columns: max-content minmax(60px, 1fr) max-content;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-radius: var(--radius-control);
  background: var(--surface-strong);
}

.route-strip > div:not(.route-connector) {
  display: grid;
  gap: 2px;
}

.route-strip span {
  color: var(--text-soft);
  font-size: 10px;
}

.route-strip strong {
  font-size: 14px;
}

.route-connector {
  height: 1px;
  background: var(--accent);
}

.timeline {
  display: grid;
  margin-top: 18px;
}

.night-card {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr) max-content;
  gap: 18px;
  align-items: center;
  min-height: 104px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.night-card:last-child {
  border-bottom: 0;
}

.night-date,
.night-stay {
  display: grid;
  gap: 4px;
}

.night-date span,
.stay-type {
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.night-date strong {
  font-size: 12px;
}

.night-stay h3,
.insight-feature h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.night-stay p,
.insight-feature p,
.ai-card p {
  margin: 2px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.night-price {
  color: var(--text-soft);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dream-night {
  grid-template-columns: 116px 105px minmax(0, 1fr) max-content;
  margin: 8px -16px;
  padding: 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-card);
  background: var(--accent-soft);
}

.dream-night img {
  width: 116px;
  height: 92px;
  border-radius: var(--radius-control);
  object-fit: cover;
}

.dream-night .stay-type,
.dream-night .night-price {
  color: var(--accent-strong);
}

.dream-night.no-photo {
  grid-template-columns: 105px minmax(0, 1fr) max-content;
}

.empty-plan-state {
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-strong);
}

.empty-plan-state h3 { margin: 7px 0; font-size: 18px; letter-spacing: -0.02em; }
.empty-plan-state p { max-width: 680px; margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.55; }
.empty-plan-state.is-infeasible { border-color: color-mix(in srgb, var(--danger-soft) 55%, var(--line)); }

.adjustment-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.adjustment-hints span { padding: 6px 9px; border-radius: 999px; background: var(--page); color: var(--text-soft); font-size: 11px; }

.insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.55fr);
  gap: 14px;
  margin-top: 22px;
}

.insight-feature,
.ai-card {
  min-height: 178px;
  padding: 20px;
  border-radius: var(--radius-card);
  background: var(--surface-strong);
}

.insight-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.42fr);
  gap: 20px;
}

.insight-label {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.premium-visual {
  display: grid;
  align-content: center;
  gap: 8px;
}

.premium-visual > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.premium-visual span {
  color: var(--text-soft);
  font-size: 11px;
}

.premium-visual strong {
  font-variant-numeric: tabular-nums;
}

.muted-price {
  color: var(--danger-soft);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.ai-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ai-card-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ai-signal {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-soft);
}

.ai-card.is-ready .ai-signal {
  background: var(--accent);
}

.ai-card.is-error .ai-signal {
  background: var(--danger-soft);
}

.ai-card small {
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.45;
}

.inventory-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-strong);
}

.inventory-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.inventory-heading h3 { margin-top: 3px; font-size: 17px; }

.inventory-status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
}

.inventory-card.is-ready .inventory-status { background: var(--accent-soft); color: var(--accent-strong); }
.inventory-card.is-error .inventory-status { color: var(--danger-soft); }
.inventory-card.is-loading .inventory-status { color: var(--accent-strong); }

.inventory-card > p,
.inventory-card > small { margin: 0; color: var(--text-soft); }
.inventory-card > p { font-size: 13px; line-height: 1.5; }
.inventory-card > small { font-size: 10px; line-height: 1.45; }

.inventory-list { display: grid; border-top: 1px solid var(--line); }

.inventory-hotel {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.inventory-hotel h4,
.inventory-hotel p { margin: 0; }
.inventory-hotel h4 { font-size: 13px; }
.inventory-hotel p,
.inventory-hotel small { color: var(--text-soft); font-size: 11px; }
.inventory-hotel small { display: block; margin-top: 5px; font-size: 10px; }
.inventory-source { color: var(--accent-strong); font-weight: 700; }
.inventory-hotel strong { color: var(--accent-strong); font-size: 14px; white-space: nowrap; }
.inventory-hotel.is-rate-unavailable > strong { color: var(--text-soft); font-size: 11px; }
.favorite-badge { padding: 2px 5px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 9px; vertical-align: 1px; }

.saved-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  width: min(1420px, calc(100% - 36px));
  margin: 28px auto 80px;
  gap: 56px;
  align-items: end;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-card);
  background: var(--surface-strong);
}

.saved-section h2 {
  max-width: 540px;
}

.saved-copy { max-width: 510px; margin: 14px 0 0; color: var(--text-soft) !important; font-size: 13px; line-height: 1.55; }

.saved-workbench { display: grid; gap: 18px; }

.social-import-form,
.recognition-result,
.saved-list-wrap {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.social-import-form { display: grid; gap: 13px; }
.import-heading,
.saved-list-heading,
.result-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.import-heading h3,
.saved-list-heading h3,
.result-heading h3 { margin: 4px 0 0; font-size: 17px; letter-spacing: -0.02em; }
.import-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); }

.import-field { display: grid; gap: 7px; }
.import-field > span { color: var(--text-soft); font-size: 11px; font-weight: 700; }
.import-field em { color: var(--text-soft); font-style: normal; font-weight: 500; }
.import-field textarea { width: 100%; min-height: 78px; padding: 12px 13px; resize: vertical; line-height: 1.45; }

.image-dropzone {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 13px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-control);
  background: var(--surface-strong);
  cursor: pointer;
}

.image-dropzone:hover { border-color: var(--accent); }
.image-dropzone input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.image-dropzone-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); font-size: 21px; }
.image-dropzone strong,
.image-dropzone small { display: block; }
.image-dropzone strong { font-size: 12px; }
.image-dropzone small { margin-top: 3px; color: var(--text-soft); font-size: 10px; }

.import-help,
.recognition-summary { margin: 0; color: var(--text-soft); font-size: 11px; line-height: 1.5; }
.import-help.is-error { color: var(--danger-soft); }
.import-help.is-success { color: var(--accent-strong); }
.import-button { width: auto; justify-self: start; min-width: 160px; }

.recognition-result { display: grid; gap: 13px; }
.recognized-hotel-list { display: grid; border-top: 1px solid var(--line); }
.recognized-hotel { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.recognized-hotel > input { position: absolute; opacity: 0; pointer-events: none; }
.recognized-check { width: 17px; height: 17px; margin-top: 4px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
.recognized-hotel > input:checked + .recognized-check { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px var(--surface); }
.recognized-hotel > span:last-child { display: grid; gap: 6px; }
.recognized-hotel input[type="text"],
.recognized-name,
.recognized-location { min-height: 34px; padding: 0 9px; font-size: 12px; }
.recognized-name { font-weight: 700; }
.recognized-hotel small { color: var(--text-soft); font-size: 10px; line-height: 1.4; }
.confirm-recognition { width: auto; justify-self: start; min-width: 178px; }

.saved-list-wrap { display: grid; gap: 10px; }
.saved-hotel-list { display: grid; border-top: 1px solid var(--line); }
.favorite-kicker { display: block; margin-bottom: 4px; color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.empty-saved-state { margin: 12px 0 0; color: var(--text-soft); font-size: 12px; }

.favorite-editor { display: grid; gap: 10px; }
.favorite-editor > label { color: var(--text-soft); font-size: 12px; font-weight: 700; }
.favorite-editor textarea { min-height: 110px; padding: 12px 13px; resize: vertical; line-height: 1.5; }
.favorite-editor .secondary-button { justify-self: start; }
.favorite-help { margin: 0; color: var(--text-soft); font-size: 11px; line-height: 1.45; }
.favorite-list { display: grid; margin-top: 4px; border-top: 1px solid var(--line); }
.favorite-item { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.favorite-item strong { font-size: 13px; }
.favorite-item p { margin: 3px 0; color: var(--text-soft); font-size: 11px; }
.favorite-item a { color: var(--accent-strong); font-size: 11px; font-weight: 700; }
.remove-favorite { padding: 5px 0; border: 0; background: transparent; color: var(--danger-soft); font-size: 11px; }
.empty-favorites { margin: 12px 0 0; color: var(--text-soft); font-size: 12px; }

.validation-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 26px;
}

.validation-list span {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 14px;
}

.loading-layer {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(15 24 19 / 0.54);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.loading-layer[hidden] {
  display: none;
}

.loading-card {
  width: min(380px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.loading-card p {
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: 13px;
}

.loading-line {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: var(--surface-strong);
}

.loading-line-short {
  width: 64%;
  margin-top: 10px;
}

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

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .trip-snapshot,
  .loading-layer {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header {
    background: var(--surface);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .intro-content > * {
    animation: reveal-up 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .intro-content h1 {
    animation-delay: 70ms;
  }

  .intro-copy {
    animation-delay: 140ms;
  }

  .trip-snapshot {
    animation: reveal-up 700ms 210ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .loading-line {
    background: linear-gradient(
      90deg,
      var(--surface-strong),
      var(--accent-soft),
      var(--surface-strong)
    );
    background-size: 200% 100%;
    animation: skeleton 1.2s ease-in-out infinite;
  }

  .plan-content.is-refreshing {
    animation: plan-refresh 420ms cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes skeleton {
  to {
    background-position: -200% 0;
  }
}

@keyframes plan-refresh {
  from {
    opacity: 0.48;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .style-card-grid {
    grid-auto-columns: minmax(340px, 56vw);
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .brief-panel {
    position: static;
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }

  .ai-card {
    min-height: 150px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 62px;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 18px;
    height: 18px;
    border-width: 5px;
  }

  .main-nav {
    gap: 8px;
  }

  .nav-link {
    display: none;
  }

  .intro {
    min-height: 520px;
  }

  .intro-content {
    width: calc(100% - 32px);
    padding-top: 88px;
  }

  .intro h1 {
    max-width: 520px;
    font-size: clamp(42px, 13vw, 62px);
  }

  .intro-copy {
    max-width: 310px;
    font-size: 16px;
  }

  .trip-snapshot {
    right: 16px;
    bottom: 16px;
    left: 16px;
    justify-content: space-between;
    overflow-x: auto;
  }

  .trip-snapshot span {
    font-size: 11px;
  }

  .workspace,
  .preference-section,
  .saved-section {
    width: calc(100% - 24px);
  }

  .workspace {
    margin-top: 12px;
    gap: 12px;
  }

  .brief-panel,
  .plan-panel {
    padding: 20px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .section-intro {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-intro h2,
  .section-intro > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .style-card-grid { grid-auto-columns: minmax(290px, 86vw); }

  .preference-section { margin-top: 12px; padding: 24px 20px; }

  .plan-topbar {
    display: grid;
  }

  .budget-summary {
    justify-items: start;
  }

  .strategy-tabs {
    overflow-x: auto;
  }

  .strategy-tab {
    flex: 0 0 auto;
  }

  .route-strip {
    grid-template-columns: 1fr 24px 1fr;
    padding: 14px;
  }

  .night-card {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px 14px;
  }

  .night-price {
    grid-column: 2;
  }

  .dream-night {
    grid-template-columns: 84px minmax(0, 1fr);
    margin-inline: -8px;
  }

  .dream-night.no-photo {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .dream-night img {
    width: 84px;
    height: 82px;
  }

  .dream-night .night-date {
    grid-column: 2;
  }

  .dream-night .night-stay {
    grid-column: 1 / -1;
  }

  .dream-night .night-price {
    grid-column: 1 / -1;
  }

  .insight-feature {
    grid-template-columns: 1fr;
  }

  .saved-section {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 36px;
    padding: 28px 20px;
  }

  .social-import-form,
  .recognition-result,
  .saved-list-wrap { padding: 16px; }

  .validation-list {
    grid-template-columns: 1fr;
  }
}
