:root {
  --bg: #f4f6f1;
  --panel: #ffffff;
  --ink: #18212f;
  --muted: #6d7480;
  --line: #dde3dc;
  --leaf: #2f7d57;
  --leaf-dark: #1f5e42;
  --sky: #3d7fb8;
  --coral: #e26f52;
  --sun: #f0bc5e;
  --paper: #fbfaf5;
  --soft: #eef3ec;
  --red: #b42318;
  --shadow: 0 22px 58px rgba(40, 51, 38, 0.12);
  --photo: linear-gradient(110deg, rgba(18, 26, 38, 0.74), rgba(18, 26, 38, 0.16)),
    radial-gradient(circle at 76% 26%, rgba(240, 188, 94, 0.58), transparent 25%),
    linear-gradient(135deg, #eaf4f7, #f8efe1 58%, #e4f0dc);
  --illustration-kanto: linear-gradient(135deg, #eaf4f7, #f6eadc);
  --illustration-kansai: linear-gradient(135deg, #f7eadf, #edf4e7);
  --illustration-hokkaido: linear-gradient(135deg, #e8f4f7, #f6f2dd);
  --illustration-kyushu: linear-gradient(135deg, #f7ece0, #e8f1e8);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(244, 246, 241, 0.92), rgba(244, 246, 241, 1)),
    repeating-linear-gradient(90deg, rgba(47, 125, 87, 0.04) 0 1px, transparent 1px 88px);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.staging-banner {
  position: relative;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(36, 95, 144, 0.18);
  background: #f1f7ff;
  color: #24435f;
  font-size: 12px;
  line-height: 1.35;
}

.staging-banner strong {
  color: #173a5a;
  font-weight: 950;
}

.staging-banner span {
  max-width: 820px;
}

.staging-banner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.staging-banner a {
  color: #245f90;
  font-weight: 900;
  text-decoration: none;
}

.staging-page {
  min-height: 100vh;
  padding: 40px clamp(18px, 5vw, 72px);
  background: #fbfaf5;
  color: var(--ink);
}

.staging-page main {
  max-width: 980px;
  margin: 0 auto;
}

.staging-page h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 6vw, 54px);
  line-height: 1.02;
}

.concept-page main {
  max-width: 1040px;
}

.concept-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(24, 33, 47, 0.12);
}

.concept-nav a {
  padding: 10px 2px 12px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
}

.concept-nav a.active,
.concept-nav a:hover {
  border-bottom-color: var(--leaf-dark);
  color: var(--leaf-dark);
}

.concept-hero {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid rgba(24, 33, 47, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 244, 0.92)),
    radial-gradient(circle at 82% 18%, rgba(240, 188, 94, 0.28), transparent 28%);
  box-shadow: 0 18px 46px rgba(40, 51, 38, 0.08);
}

.concept-hero p {
  max-width: 760px;
  margin: 0;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}

.concept-grid article {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(24, 33, 47, 0.1);
  border-radius: 12px;
  background: #ffffff;
}

.concept-grid strong {
  color: var(--ink);
  font-size: 15px;
}

.concept-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.concept-section {
  margin: 24px 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(24, 33, 47, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.concept-section h2 {
  margin-top: 0;
}

.concept-steps,
.concept-node-list,
.concept-story-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.concept-steps article,
.concept-node-list article,
.concept-story-list article {
  display: grid;
  gap: 7px;
  padding: 15px;
  border: 1px solid rgba(24, 33, 47, 0.09);
  border-radius: 12px;
  background: #ffffff;
}

.concept-steps b {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--leaf);
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
}

.concept-node-list strong,
.concept-story-list strong,
.concept-steps strong {
  color: var(--ink);
  font-size: 15px;
}

.concept-node-list span,
.concept-story-list span,
.concept-steps span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.58;
}

.concept-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.concept-checklist {
  display: grid;
  gap: 9px;
  padding: 0;
  list-style: none;
}

.concept-checklist li {
  position: relative;
  padding-left: 28px;
}

.concept-checklist li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: rgba(47, 125, 87, 0.12);
  color: var(--leaf-dark);
  content: "✓";
  font-size: 12px;
  font-weight: 950;
}

.concept-status-box,
.concept-note {
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid rgba(47, 125, 87, 0.16);
  border-radius: 13px;
  background: #f7faf6;
}

.concept-status-box strong,
.concept-note strong {
  color: var(--leaf-dark);
}

.concept-status-box span,
.concept-status-box small,
.concept-note span,
.concept-note small {
  color: var(--muted);
  line-height: 1.6;
}

.concept-story-list article {
  min-height: 128px;
  border-color: rgba(226, 111, 82, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 243, 0.92));
}

.concept-cta {
  display: inline-grid;
  min-height: 38px;
  place-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--leaf-dark);
  color: #ffffff !important;
  font-weight: 950;
  text-decoration: none;
}

.concept-cta:visited {
  color: #ffffff !important;
}

.concept-cta:hover,
.concept-cta:focus-visible {
  background: #174a34;
  color: #ffffff !important;
  outline: 3px solid rgba(47, 125, 87, 0.22);
  outline-offset: 2px;
}

.topic-page-strip {
  display: grid;
  grid-template-columns: minmax(148px, 0.22fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(24, 33, 47, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
}

.topic-page-strip h3 {
  margin: 0;
  font-size: 18px;
}

.topic-page-strip nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.topic-page-strip a {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 0 8px;
  border: 1px solid rgba(47, 125, 87, 0.14);
  border-radius: 9px;
  background: #f7faf6;
  color: var(--leaf-dark);
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
}

.topic-page-strip a:hover {
  border-color: rgba(47, 125, 87, 0.36);
  background: #eef7ef;
}

.topic-page-drawer {
  display: block;
  grid-template-columns: none;
  margin-bottom: 12px;
  padding: 0;
}

.topic-page-drawer nav {
  margin-top: 12px;
  padding: 0 14px 14px;
}

.staging-page h2 {
  margin-top: 32px;
  font-size: 22px;
}

.staging-page p,
.staging-page li {
  color: #384252;
  line-height: 1.68;
}

.staging-page a {
  color: #245f90;
  font-weight: 850;
}

.review-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.review-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.review-card strong {
  display: block;
  margin-bottom: 6px;
}

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

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

.app-shell {
  min-height: 100vh;
}

.side-rail {
  position: sticky;
  top: 0;
  z-index: 10;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px clamp(18px, 4vw, 46px);
  border-bottom: 1px solid rgba(24, 33, 47, 0.08);
  background: rgba(251, 250, 245, 0.12);
  backdrop-filter: none;
}

.side-rail::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(251, 250, 245, 0.7) 0%, rgba(251, 250, 245, 0.36) 24%, rgba(251, 250, 245, 0.06) 58%, rgba(251, 250, 245, 0) 100%),
    linear-gradient(180deg, rgba(24, 33, 47, 0.04), rgba(24, 33, 47, 0.1));
  content: "";
  pointer-events: none;
}

.header-season-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  filter: saturate(1.08) contrast(1.04);
  opacity: 1;
}

.utility-status {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 1px 18px rgba(251, 250, 245, 0.82);
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(47, 125, 87, 0.18);
  border-radius: 50%;
  background: #bc152b;
  color: #ffffff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(188, 21, 43, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.brand-mark:hover {
  box-shadow: 0 14px 34px rgba(188, 21, 43, 0.28);
  transform: rotate(-8deg) scale(1.03);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.05;
}

.api-card {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 38px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(47, 125, 87, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sun);
}

.status-dot.ok {
  background: #27b06e;
}

.status-dot.error {
  background: #f04438;
}

.api-label {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
}

.api-card strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--leaf-dark);
  cursor: pointer;
}

.rail-section {
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.rail-title {
  display: none;
}

.rail-section ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(24, 33, 47, 0.12);
  list-style: none;
}

.rail-section li {
  margin: 0;
}

.rail-section button,
.rail-section a {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 6px 14px 9px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #3d4a42;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: none;
  backdrop-filter: none;
}

.rail-section button.active,
.rail-section button:hover,
.rail-section a.active,
.rail-section a:hover {
  border-bottom-color: var(--leaf-dark);
  background: rgba(255, 255, 255, 0.38);
  color: var(--leaf-dark);
}

.cache-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 9px 10px 9px 14px;
  border: 1px solid rgba(61, 127, 184, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.cache-card strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-stage {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 42px;
}

.planner-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 0.78fr);
  gap: 18px;
  align-items: stretch;
}

.planner-hero-compact {
  display: block;
}

.planner-hero-compact .hero-copy {
  display: none;
}

.planner-hero-compact .planner-card {
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(40, 51, 38, 0.08);
}

.planner-hero-compact .planner-card-head {
  display: none;
}

.hero-copy,
.planner-card,
.result-stage,
.commerce-strip {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  display: grid;
  min-height: 230px;
  align-content: space-between;
  overflow: hidden;
  padding: clamp(20px, 3vw, 32px);
  background-image: var(--photo);
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.hero-copy::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(19, 27, 32, 0.82) 0%, rgba(19, 27, 32, 0.52) 46%, rgba(19, 27, 32, 0.1) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.32));
  content: "";
  pointer-events: none;
  z-index: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-main,
.hero-route-board {
  position: relative;
  z-index: 2;
}

.hero-copy .eyebrow,
.hero-copy .hero-text {
  color: rgba(255, 255, 255, 0.82);
}

.hero-copy h2 {
  max-width: 500px;
  margin-bottom: 0;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-text {
  max-width: 610px;
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.72;
}

.scene-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.scene-tags span {
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.hero-route-board {
  position: absolute;
  right: clamp(18px, 3vw, 32px);
  bottom: clamp(18px, 3vw, 28px);
  display: grid;
  width: min(310px, calc(100% - 36px));
  gap: 8px;
  align-self: end;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: rgba(16, 24, 28, 0.34);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.hero-route-board span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-route-board strong {
  font-size: 16px;
  line-height: 1.35;
}

.hero-route-board small {
  display: none;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.5;
}

.hero-route-line {
  display: grid;
  grid-template-columns: 24px 1fr 24px 1fr 24px;
  align-items: center;
  gap: 8px;
}

.hero-route-line i {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #23313a;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.hero-route-line b {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.25));
}

.planner-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 250, 245, 0.96)),
    var(--panel);
}

.planner-card-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.planner-card-head h3 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.2;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

textarea {
  width: 100%;
  min-height: 176px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf8;
  color: var(--ink);
  line-height: 1.65;
  resize: vertical;
}

select,
input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
  color: var(--ink);
}

textarea:focus,
select:focus,
input:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(226, 111, 82, 0.22);
  outline-offset: 2px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.planner-card .choice-grid {
  grid-template-columns: minmax(118px, 1.1fr) minmax(82px, 0.7fr) minmax(82px, 0.7fr) minmax(128px, 1fr) minmax(128px, 1fr) minmax(72px, 0.58fr) minmax(72px, 0.58fr);
  align-items: end;
}

.optional-condition {
  display: none;
}

.planner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.planner-actions .primary-button {
  flex: 1 1 180px;
}

.planner-actions .secondary-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding-inline: 16px;
}

.planner-actions .hot-button {
  border-color: rgba(226, 111, 82, 0.34);
  background: #fff3ec;
  color: #a9472e;
}

.month-feature-bar {
  position: relative;
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 0 0 18px;
  height: 106px;
  overflow: hidden;
  padding: 12px 14px;
  border: 1px solid rgba(108, 77, 145, 0.14);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(24, 33, 47, 0.06);
}

.month-feature-bar::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(251, 250, 245, 0.92) 0%, rgba(251, 250, 245, 0.72) 100%);
  content: "";
  pointer-events: none;
}

.month-feature-drawer .month-feature-bar {
  margin: 12px 14px 14px;
  width: calc(100% - 28px);
  box-shadow: none;
}

.month-feature-video {
  display: none;
}

.month-calendar-mini,
.month-feature-track {
  position: relative;
  z-index: 2;
}

.month-calendar-mini {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.month-calendar-mini button {
  min-height: 30px;
  border: 1px solid rgba(24, 33, 47, 0.08);
  border-radius: 10px;
  background: #fffdf8;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.month-calendar-mini button.active {
  border-color: #8a5ab7;
  background: #8a5ab7;
  color: #ffffff;
}

.month-feature-track {
  min-width: 0;
  overflow: hidden;
  padding-bottom: 12px;
}

.month-scroll-hint {
  position: absolute;
  right: 6px;
  bottom: 0;
  z-index: 3;
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  color: rgba(85, 61, 111, 0.82);
  font-size: 10px;
  font-weight: 900;
  pointer-events: none;
}

.month-carousel {
  display: flex;
  gap: 10px;
  height: 74px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  scrollbar-gutter: stable;
}

.month-carousel::-webkit-scrollbar {
  height: 6px;
}

.month-carousel::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(24, 33, 47, 0.08);
}

.month-carousel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(24, 33, 47, 0.28);
}

.month-feature-chip {
  display: grid;
  grid-template-columns: 40px minmax(170px, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
  width: 260px;
  min-width: 260px;
  height: 56px;
  padding: 7px 10px;
  border: 1px solid rgba(108, 77, 145, 0.14);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(16px);
  color: var(--ink);
  cursor: pointer;
  scroll-snap-align: start;
  text-align: left;
}

.month-feature-thumb {
  grid-row: 1 / span 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(108, 77, 145, 0.14);
  border-radius: 14px;
  background: #f2e9f7;
  background-position: center;
  background-size: cover;
  color: #6f4093;
  font-size: 13px;
  font-weight: 950;
}

.month-feature-thumb-fallback {
  border-radius: 50%;
}

.month-feature-chip strong,
.month-feature-chip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.month-feature-chip strong {
  font-size: 13px;
}

.month-feature-chip small {
  display: block;
  max-width: 100%;
}

.month-feature-chip small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.theme-wisteria .hero-copy {
  background-image: var(--photo);
}

.theme-wisteria .month-feature-bar {
  border-color: rgba(108, 77, 145, 0.22);
  background:
    radial-gradient(circle at 12% 18%, rgba(167, 127, 196, 0.24), transparent 32%),
    linear-gradient(135deg, #fffaf0, #fbf4ff);
}

.theme-green .hero-copy {
  background-image: var(--photo);
}

.primary-button,
.secondary-button,
.deal-button {
  min-height: 48px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.primary-button {
  border: 0;
  background: var(--coral);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(226, 111, 82, 0.24);
}

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

.market-strip {
  position: fixed;
  top: 108px;
  right: 14px;
  z-index: 35;
  display: grid;
  width: min(386px, calc(100vw - 28px));
  max-height: calc(100vh - 126px);
  margin: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.market-strip:not([open]) {
  width: auto;
}

.market-strip > .fold-summary {
  border: 1px solid rgba(47, 125, 87, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(24, 33, 47, 0.12);
  backdrop-filter: blur(14px);
}

.market-strip:not([open]) > .fold-summary {
  min-height: 34px;
  padding: 7px 9px;
}

.market-strip:not([open]) .fold-summary .eyebrow,
.market-strip:not([open]) .fold-keywords {
  display: none;
}

.market-strip[open] > .fold-summary {
  grid-template-columns: minmax(0, 1fr) 28px;
  min-height: 46px;
  padding: 9px 10px;
}

.market-strip[open] .fold-keywords {
  display: none;
}

.market-strip:not([open]) .fold-summary h3 {
  margin: 0;
  font-size: 12px;
}

.market-strip[open] .market-strip-body {
  max-height: calc(100vh - 188px);
  overflow: auto;
}

.fold-section {
  overflow: hidden;
  border: 1px solid rgba(47, 125, 87, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(249, 250, 245, 0.94)),
    #ffffff;
  box-shadow: 0 16px 42px rgba(32, 45, 38, 0.08);
}

.fold-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 30px;
  gap: 14px;
  align-items: center;
  min-height: 68px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.fold-summary::-webkit-details-marker {
  display: none;
}

.fold-summary h3 {
  margin-bottom: 0;
  font-size: 19px;
}

.fold-summary::after {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--leaf);
  content: "⌄";
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(47, 125, 87, 0.12);
}

.fold-section[open] > .fold-summary::after {
  content: "⌃";
}

.fold-keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.fold-keywords span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(47, 125, 87, 0.08);
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.fold-content {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.market-strip-body {
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(47, 125, 87, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(24, 33, 47, 0.12);
  backdrop-filter: blur(14px);
}

.market-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
  overflow: visible;
}

.market-card-flight {
  background:
    linear-gradient(135deg, rgba(61, 127, 184, 0.12), rgba(255, 255, 255, 0) 46%),
    #ffffff;
}

.market-card-rental {
  background:
    linear-gradient(135deg, rgba(47, 125, 87, 0.12), rgba(255, 255, 255, 0) 48%),
    #ffffff;
}

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

.market-card h3 {
  margin-bottom: 0;
  font-size: 16px;
}

.market-mode,
.airport-code {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.market-mode {
  border: 1px solid rgba(47, 125, 87, 0.12);
}

.market-input-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.market-input-grid label,
.market-input-grid select,
.market-input-grid input {
  min-width: 0;
}

.market-button {
  min-height: 34px;
  width: fit-content;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--sky);
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  box-shadow: none;
}

.market-note,
.market-disclaimer,
.market-loading,
.market-empty {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.72;
}

.market-result {
  display: grid;
  gap: 12px;
}

.flight-best {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 9px;
  background: #f3f8fc;
}

.flight-best span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.flight-best strong {
  font-size: 22px;
  line-height: 1;
}

.flight-best small,
.flight-row span,
.rental-card p,
.rental-card li {
  color: var(--muted);
  line-height: 1.45;
}

.flight-best a,
.flight-row a,
.rental-card a,
.market-empty a,
.supplier-cta,
.mini-cta {
  width: fit-content;
  color: var(--sky);
  font-weight: 900;
  text-decoration: none;
}

.supplier-cta {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 8px;
  background: var(--coral);
  color: #ffffff !important;
  box-shadow: none;
}

.mini-cta {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef6fc;
}

.flight-list,
.rental-list {
  display: grid;
  gap: 10px;
}

.flight-row,
.rental-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(47, 125, 87, 0.12);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.88);
}

.rental-card-muted {
  background: rgba(248, 250, 248, 0.74);
  opacity: 0.76;
}

.flight-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

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

.rental-card h4 {
  margin: 8px 0 7px;
  font-size: 17px;
  line-height: 1.35;
}

.rental-card p {
  margin-bottom: 0;
}

.rental-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.rental-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.rental-mode-button {
  display: grid;
  gap: 3px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid rgba(47, 125, 87, 0.14);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.rental-mode-button.active {
  border-color: rgba(226, 111, 82, 0.42);
  background: #fff6ef;
  color: #9a4b30;
}

.rental-mode-button span {
  font-size: 13px;
  font-weight: 950;
}

.rental-mode-button small,
.supplier-jump-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.45;
}

.rental-mode-notice {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(24, 33, 47, 0.08);
  border-radius: 12px;
  background: #f7f9f6;
  color: var(--muted);
  line-height: 1.55;
}

.rental-mode-notice strong {
  color: var(--ink);
  font-size: 13px;
}

.rental-mode-notice-strong {
  border-color: rgba(226, 111, 82, 0.2);
  background: #fffaf5;
}

.api-setup-tip {
  justify-self: start;
  margin-top: 4px;
}

.rental-play-tags,
.rental-advisory-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rental-play-tags span,
.winter-road-alert,
.transport-chip {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(61, 127, 184, 0.1);
  color: #34546b;
  font-size: 11px;
  font-weight: 900;
}

.winter-road-alert {
  background: #eef6fc;
}

.rental-license-tip {
  min-height: 30px;
}

.rental-route-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent 11%, rgba(47, 125, 87, 0.2) 11% 88%, transparent 88%),
    #f7fbf6;
}

.rental-route-map span {
  position: relative;
  display: grid;
  gap: 3px;
  justify-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.rental-route-map b {
  display: inline-grid;
  min-width: 34px;
  min-height: 26px;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--leaf-dark);
  box-shadow: 0 4px 12px rgba(24, 33, 47, 0.08);
}

.rental-route-map .origin b {
  background: var(--leaf);
  color: #ffffff;
}

.primer-strip {
  display: grid;
  margin-top: 20px;
}

.primer-head {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
}

.primer-head h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.primer-head p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.primer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.primer-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-height: 100%;
  padding: 13px;
  border: 1px solid rgba(47, 125, 87, 0.12);
  border-radius: 18px;
  background: #fffdf8;
}

.primer-photo {
  min-height: 128px;
  overflow: hidden;
  border-radius: 14px;
  background-color: #eef3ec;
  background-position: center;
  background-size: cover;
}

.primer-photo-kanto {
  background-image: var(--illustration-kanto);
}

.primer-photo-kansai {
  background-image: var(--illustration-kansai);
}

.primer-photo-hokkaido {
  background-image: var(--illustration-hokkaido);
}

.primer-photo-kyushu {
  background-image: var(--illustration-kyushu);
}

.primer-card h4 {
  margin: 9px 0 7px;
  font-size: 17px;
}

.primer-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.primer-button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--leaf);
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.season-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 12px;
}

.season-grid article {
  padding: 15px;
  border: 1px solid rgba(47, 125, 87, 0.12);
  border-radius: 18px;
  background: #f8faf5;
}

.season-grid h4 {
  margin-bottom: 10px;
}

.season-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.season-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.season-tags span {
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef5ee;
  color: var(--leaf-dark);
  font-size: 13px;
  font-weight: 850;
}

.result-stage {
  margin-top: 20px;
  overflow: hidden;
  background: #fffdf8;
}

.empty-state {
  padding: 32px;
}

.empty-state h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
}

.route-skeleton {
  display: grid;
  gap: 18px;
  padding: 30px;
  background: #fffdf8;
}

.route-skeleton strong {
  color: var(--leaf-dark);
  font-size: 13px;
}

.skeleton-line,
.skeleton-grid span {
  position: relative;
  display: block;
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  background: #e8eee7;
}

.skeleton-title {
  width: 58%;
  height: 26px;
  margin: 10px 0;
}

.skeleton-short {
  width: 24%;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.skeleton-grid span {
  height: 96px;
  border-radius: 14px;
}

.skeleton-line::after,
.skeleton-grid span::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  animation: shimmer 1.1s infinite;
  content: "";
  transform: translateX(-100%);
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.route-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  padding: 26px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(47, 125, 87, 0.12), transparent 42%),
    #fffdf8;
}

.route-header h3 {
  margin-bottom: 10px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
}

.route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(47, 125, 87, 0.12);
  border-radius: 999px;
  background: #eef5ee;
  color: #47584d;
  font-size: 13px;
  font-weight: 850;
}

.map-note {
  display: grid;
  gap: 4px;
  max-width: 220px;
  padding: 13px 15px;
  border: 1px solid rgba(47, 125, 87, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.map-note strong {
  font-size: 14px;
}

.map-note span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.trip-workbench-shell {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.trip-workbench-shell > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}

.trip-workbench-shell > summary::-webkit-details-marker {
  display: none;
}

.trip-workbench-shell > summary::after {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #eef5ee;
  color: var(--leaf-dark);
  content: "+";
  font-weight: 950;
}

.trip-workbench-shell[open] > summary::after {
  content: "-";
}

.trip-workbench-shell > summary strong,
.trip-workbench-shell > summary small {
  display: block;
}

.trip-workbench-shell > summary strong {
  font-size: 20px;
}

.trip-workbench-shell > summary small,
.trip-workbench-shell > summary em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.trip-workbench {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-top: 1px solid rgba(47, 125, 87, 0.1);
  background:
    linear-gradient(135deg, rgba(226, 111, 82, 0.08), transparent 34%),
    #ffffff;
}

.workbench-head {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
}

.workbench-head h4 {
  margin-bottom: 0;
  font-size: 24px;
}

.workbench-score {
  display: grid;
  gap: 3px;
  min-width: 180px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--paper);
}

.workbench-score strong {
  font-size: 24px;
}

.workbench-score span,
.builder-day footer,
.material-card span,
.builder-node small,
.ai-payload-card code,
.export-day span,
.export-row span {
  color: var(--muted);
}

.workbench-score-smooth strong {
  color: var(--leaf-dark);
}

.workbench-score-watch strong {
  color: #a15f12;
}

.workbench-score-rough strong {
  color: var(--red);
}

.builder-day-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.builder-day-tabs button,
.material-card button,
.node-actions button,
.export-actions button {
  min-height: 34px;
  border: 1px solid rgba(47, 125, 87, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.builder-day-tabs button {
  padding: 0 14px;
  white-space: nowrap;
}

.builder-day-tabs button.active,
.export-actions button:first-child {
  border-color: var(--leaf);
  background: var(--leaf);
  color: #ffffff;
}

.builder-topic-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.5fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(47, 125, 87, 0.12);
  border-radius: 14px;
  background: #fbfdf9;
}

.builder-topic-panel strong,
.builder-topic-panel span {
  display: block;
}

.builder-topic-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.builder-topic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.builder-topic-actions button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(47, 125, 87, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 950;
}

.builder-topic-actions button.active {
  border-color: var(--leaf);
  background: var(--leaf);
  color: #ffffff;
}

.builder-topic-actions small {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(47, 125, 87, 0.1);
  color: inherit;
  font-size: 11px;
}

.puzzle-coach {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1fr) minmax(210px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(24, 33, 47, 0.08);
  border-radius: 10px;
  background: #ffffff;
}

.puzzle-box {
  position: relative;
  display: grid;
  gap: 9px;
  min-height: 112px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(29, 111, 209, 0.18);
  border-radius: 10px;
  background: #f5fbff;
  box-shadow: 0 8px 18px rgba(29, 111, 209, 0.08);
}

.puzzle-box::before {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(29, 111, 209, 0.18), transparent 48%);
  animation: coachPulse 3s ease-in-out infinite;
  content: "";
}

.box-label,
.puzzle-box-grid,
.puzzle-box small {
  position: relative;
  z-index: 1;
}

.box-label {
  color: var(--sky);
  font-size: 12px;
  font-weight: 950;
}

.puzzle-box-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.puzzle-piece {
  display: grid;
  min-height: 38px;
  place-items: center;
  padding: 6px 8px;
  border: 1px solid rgba(24, 33, 47, 0.1);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.puzzle-piece-picked {
  border-color: rgba(47, 125, 87, 0.18);
  background: #eef5ee;
  color: var(--leaf-dark);
}

.puzzle-piece-glow {
  border-color: rgba(29, 111, 209, 0.42);
  background: #ffffff;
  color: #1d6fd1;
  box-shadow: 0 0 0 3px rgba(29, 111, 209, 0.1), 0 10px 22px rgba(29, 111, 209, 0.16);
}

.puzzle-piece-empty {
  border-style: dashed;
  color: var(--muted);
}

.puzzle-box small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

@keyframes coachPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.06);
  }
}

.puzzle-coach-copy {
  min-width: 0;
}

.puzzle-coach-copy h5 {
  margin-bottom: 3px;
  font-size: 16px;
}

.puzzle-coach-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.puzzle-coach-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.puzzle-coach-actions button,
.puzzle-coach-actions span {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(61, 127, 184, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.puzzle-coach-actions .ai-complete-button {
  border-color: #1d6fd1;
  background: #1d6fd1;
  color: #ffffff;
}

.puzzle-coach-score {
  width: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--sky);
  font-size: 13px;
}

.trip-builder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.material-pack,
.builder-board,
.route-advisor {
  min-width: 0;
}

.material-pack,
.route-advisor {
  display: grid;
  gap: 12px;
}

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

.builder-board-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.route-advisor-summary {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  background: #eef5ee;
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 950;
}

.route-advisor-summary-watch {
  background: #fff3dc;
  color: #965a0d;
}

.route-advisor-summary-rough {
  background: #fde8e4;
  color: var(--red);
}

.material-puzzle-drawer,
.route-advisor-compact {
  overflow: hidden;
  border: 1px solid rgba(47, 125, 87, 0.12);
  border-radius: 16px;
  background: #ffffff;
}

.material-puzzle-drawer > summary,
.route-advisor-compact > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.material-puzzle-drawer > summary::-webkit-details-marker,
.route-advisor-compact > summary::-webkit-details-marker {
  display: none;
}

.material-puzzle-drawer > summary strong,
.material-puzzle-drawer > summary small,
.route-advisor-compact > summary h5 {
  display: block;
}

.material-puzzle-drawer > summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.material-puzzle-drawer > summary b,
.route-advisor-compact > summary b {
  min-width: 34px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef5ee;
  color: var(--leaf-dark);
  text-align: center;
  font-size: 12px;
}

.material-puzzle-body,
.route-advisor-body {
  display: grid;
  gap: 12px;
  padding: 0 12px 12px;
}

.material-pack-context,
.material-empty-state {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(47, 125, 87, 0.1);
  border-radius: 14px;
  background: #f8fbf6;
}

.material-pack-context strong,
.material-empty-state strong {
  color: var(--ink);
}

.material-pack-context span,
.material-empty-state span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.known-route-option-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(47, 125, 87, 0.12);
  border-radius: 10px;
  background: #ffffff;
}

.known-route-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
}

.known-route-option-head > div {
  display: grid;
  gap: 3px;
}

.known-route-option-head strong {
  color: var(--ink);
}

.known-route-option-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.known-route-option-head > button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border-color: rgba(47, 125, 87, 0.2);
  background: #ffffff;
  color: var(--leaf-dark);
  font-size: 11px;
  font-weight: 900;
}

.known-route-option-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 10px;
}

.known-route-option-card {
  min-height: 236px;
  height: 236px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  perspective: 1200px;
}

.route-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(24, 33, 47, 0.08);
  border-radius: 8px;
  background: #ffffff;
  transform-style: preserve-3d;
  transition: transform 420ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.known-route-option-card.is-flipped .route-card-inner {
  transform: rotateY(180deg);
}

.known-route-option-card.active .route-card-inner {
  border-color: rgba(47, 125, 87, 0.45);
  box-shadow: 0 8px 18px rgba(47, 125, 87, 0.12);
}

.known-route-option-card.needs-review .route-card-inner {
  border-color: rgba(173, 113, 25, 0.42);
}

.known-route-option-card.blocked {
  cursor: not-allowed;
  opacity: 0.68;
}

.known-route-option-card:focus-visible {
  outline: 2px solid rgba(47, 125, 87, 0.55);
  outline-offset: 2px;
}

.route-card-face {
  position: absolute;
  inset: 0;
  display: grid;
  overflow: hidden;
  border-radius: 8px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.route-card-front {
  align-content: start;
  gap: 10px;
  padding: 14px;
  background: #ffffff;
}

.route-card-back {
  align-content: space-between;
  gap: 12px;
  padding: 14px;
  background: #ffffff;
  transform: rotateY(180deg);
}

.known-route-option-card strong,
.known-route-option-card span,
.known-route-option-card small {
  display: block;
}

.route-card-ticket-head,
.itinerary-ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.route-card-ticket-head span,
.route-card-ticket-head small,
.itinerary-ticket-head span,
.itinerary-ticket-head em {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.route-card-ticket-head span,
.itinerary-ticket-head span {
  background: var(--leaf);
  color: #ffffff;
}

.route-card-ticket-head small,
.itinerary-ticket-head em {
  background: #eef5ee;
  color: var(--leaf-dark);
  font-style: normal;
}

.route-card-path,
.itinerary-route-ticks {
  display: grid;
  gap: 7px;
}

.route-card-path span,
.itinerary-route-ticks span {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.route-card-path b,
.itinerary-route-ticks b {
  display: grid;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #f4f8fb;
  color: #24435f;
  font-size: 10px;
}

.route-card-front-copy,
.route-card-back-copy {
  display: grid;
  gap: 7px;
}

.route-card-front-copy {
  padding: 0;
  background: transparent;
}

.route-card-back-copy strong {
  color: var(--ink);
}

.route-card-front-copy .route-card-flip-hint {
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  background: #f8fbf6;
}

.route-card-anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.route-card-anchor-list em {
  width: fit-content;
  padding: 3px 6px;
  border-radius: 999px;
  background: #f7faf6;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.known-route-option-card strong {
  font-size: 15px;
  line-height: 1.3;
}

.known-route-option-card span,
.known-route-option-card small,
.known-route-option-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

.known-route-option-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
}

.known-route-verification {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0;
}

.known-route-verification span,
.node-validation-strip span {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(47, 125, 87, 0.08);
  color: var(--leaf-dark);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.2;
}

.known-route-verification span.needs-check {
  background: #fff3dc;
  color: #965a0d;
}

.known-route-option-card button,
.known-route-option-card a {
  justify-self: start;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(47, 125, 87, 0.18);
  border-radius: 999px;
  border-color: rgba(47, 125, 87, 0.18);
  background: #ffffff;
  color: var(--leaf-dark);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.known-route-option-card a {
  display: inline-flex;
  align-items: center;
}

.route-action-dock {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(61, 127, 184, 0.14);
  border-radius: 10px;
  background: #fbfaf5;
}

.route-action-dock > div:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.route-action-dock strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.route-action-dock span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.route-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-action-buttons button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(24, 33, 47, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
}

.route-action-buttons button:hover {
  border-color: rgba(47, 125, 87, 0.34);
  color: var(--leaf-dark);
}

.quick-route-export-panel {
  display: grid;
  gap: 10px;
}

.quick-route-export-panel:empty {
  display: none;
}

.shared-menu-shell,
.info-card-pool {
  display: grid;
  gap: 14px;
}

.shared-menu-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(24, 33, 47, 0.1);
  border-radius: 10px;
  background: #fffdf8;
}

.shared-menu-hero h4 {
  margin: 2px 0 4px;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: 0;
}

.shared-menu-hero span,
.shared-menu-id small,
.shared-menu-status span,
.shared-menu-lane-head span,
.shared-menu-card p,
.info-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.shared-menu-id {
  min-width: 132px;
  padding: 10px;
  border: 1px solid rgba(47, 125, 87, 0.14);
  border-radius: 8px;
  background: #eef5ee;
}

.shared-menu-id strong {
  display: block;
  margin-top: 2px;
  color: var(--leaf-dark);
  font-size: 13px;
  font-weight: 950;
  word-break: break-word;
}

.shared-menu-actions,
.shared-menu-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shared-menu-actions button,
.shared-menu-card-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(24, 33, 47, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
}

.shared-menu-actions button:first-child {
  border-color: rgba(47, 125, 87, 0.28);
  background: var(--leaf);
  color: #ffffff;
}

.shared-menu-status {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(61, 127, 184, 0.14);
  border-radius: 8px;
  background: #f6fbfd;
}

.shared-menu-status strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.shared-menu-status-ok {
  border-color: rgba(47, 125, 87, 0.2);
  background: #f2f8f1;
}

.shared-menu-status-error {
  border-color: rgba(196, 76, 62, 0.22);
  background: #fff4f1;
}

.shared-menu-status-loading {
  border-color: rgba(202, 145, 55, 0.24);
  background: #fff8e7;
}

.shared-menu-metrics span {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(24, 33, 47, 0.08);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.shared-menu-metrics b {
  color: var(--ink);
}

.shared-menu-lane {
  display: grid;
  gap: 10px;
}

.shared-menu-lane-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: end;
}

.shared-menu-lane-head strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.shared-menu-lane-head small {
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef5ee;
  color: var(--leaf-dark);
  text-align: center;
  font-weight: 950;
}

.shared-menu-card-grid,
.info-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.shared-menu-card,
.info-card {
  display: grid;
  gap: 9px;
  min-height: 174px;
  padding: 12px;
  border: 1px solid rgba(24, 33, 47, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(24, 33, 47, 0.06);
}

.shared-menu-card.is-approved-keep {
  border-color: rgba(47, 125, 87, 0.26);
  background: #f8fcf7;
}

.shared-menu-card.is-voted-replace {
  border-color: rgba(196, 76, 62, 0.24);
  background: #fff8f5;
}

.shared-menu-card h5,
.info-card strong {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.35;
}

.shared-menu-card-type,
.info-card-icon {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: #edf3f6;
  color: #2f5d77;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
}

.shared-menu-card-day_card .shared-menu-card-type,
.info-card-traffic_tip .info-card-icon {
  background: #edf4ee;
  color: var(--leaf-dark);
}

.shared-menu-card-info_card .shared-menu-card-type,
.shared-menu-card-ticket_tip .shared-menu-card-type,
.info-card-ticket_tip .info-card-icon {
  background: #fff3dc;
  color: #965a0d;
}

.shared-menu-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.shared-menu-card-tags span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f6f3ea;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.shared-menu-card-decision {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(24, 33, 47, 0.06);
  color: var(--ink);
  font-size: 10px;
  font-weight: 950;
}

.shared-menu-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: end;
}

.shared-menu-card-actions button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 11px;
}

.info-card {
  min-height: 190px;
  align-content: start;
}

.info-card ul {
  margin: 0;
  padding-left: 17px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.info-card small {
  align-self: end;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

@media (max-width: 1100px) {
  .known-route-option-list {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .trip-builder-grid {
    grid-template-columns: 1fr;
  }

  .shared-menu-card-grid,
  .info-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.material-section {
  overflow: hidden;
  border: 1px solid rgba(47, 125, 87, 0.12);
  border-radius: 18px;
  background: #fffdf8;
}

.material-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 950;
  list-style: none;
}

.material-section summary::-webkit-details-marker {
  display: none;
}

.material-section summary span {
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef5ee;
  color: var(--leaf-dark);
  text-align: center;
  font-size: 12px;
}

.material-section summary::after {
  width: 24px;
  height: 24px;
  margin-left: 8px;
  border-radius: 50%;
  background: #eef5ee;
  color: var(--leaf-dark);
  content: "+";
  text-align: center;
  line-height: 24px;
  font-size: 13px;
}

.material-section[open] summary::after {
  content: "-";
}

.material-list {
  display: grid;
  gap: 9px;
  max-height: 360px;
  overflow: auto;
  padding: 0 10px 10px;
}

.material-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(24, 33, 47, 0.08);
  border-radius: 15px;
  background: #ffffff;
  cursor: grab;
}

.material-card img,
.builder-node img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: var(--soft);
}

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

.material-card strong {
  font-size: 14px;
}

.material-card span,
.material-tags small {
  font-size: 12px;
}

.material-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.material-tags small {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--leaf-dark);
  font-weight: 850;
}

.material-card button {
  grid-column: 2;
  justify-self: start;
  min-height: 26px;
  padding: 0 10px;
  border-color: rgba(24, 33, 47, 0.1);
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.material-addon button {
  border-color: rgba(226, 111, 82, 0.22);
  background: #fff8f2;
  color: #9a5a1f;
}

.builder-board {
  display: grid;
  gap: 12px;
}

.builder-day {
  overflow: hidden;
  border: 1px solid rgba(47, 125, 87, 0.14);
  border-radius: 20px;
  background: #ffffff;
}

.builder-day.active {
  border-color: rgba(47, 125, 87, 0.26);
}

.builder-day summary {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto auto 26px;
  gap: 12px;
  align-items: center;
  padding: 13px;
  background: #fbfcf8;
  cursor: pointer;
  list-style: none;
}

.builder-day summary::-webkit-details-marker {
  display: none;
}

.builder-day summary::after {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #eef5ee;
  color: var(--leaf-dark);
  content: "+";
  font-weight: 950;
}

.builder-day[open] summary {
  border-bottom: 1px solid rgba(47, 125, 87, 0.1);
}

.builder-day[open] summary::after {
  content: "-";
}

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

.builder-day-chip {
  display: inline-flex;
  width: 44px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--leaf);
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
}

.builder-day-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.slot-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 13px;
  border-bottom: 1px solid rgba(47, 125, 87, 0.08);
  background: #fffdf8;
}

.slot-guide span {
  min-height: 24px;
  padding: 4px 8px;
  border: 1px dashed rgba(24, 33, 47, 0.16);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.slot-guide span.filled {
  border-style: solid;
  border-color: rgba(47, 125, 87, 0.18);
  background: #eef5ee;
  color: var(--leaf-dark);
}

.day-status {
  width: fit-content;
  justify-self: start;
  padding: 6px 9px;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.day-status-smooth {
  background: #e9f5ee;
  color: var(--leaf-dark);
}

.day-status-watch {
  background: #fff3dc;
  color: #965a0d;
}

.day-status-rough {
  background: #fde8e4;
  color: var(--red);
}

.builder-dropzone {
  display: grid;
  gap: 9px;
  min-height: 320px;
  padding: 12px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.builder-dropzone.drag-over {
  background: rgba(47, 125, 87, 0.08);
  box-shadow: inset 0 0 0 2px rgba(47, 125, 87, 0.22);
}

.builder-node {
  display: grid;
  grid-template-columns: 34px 82px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(24, 33, 47, 0.08);
  border-radius: 16px;
  background: #fffdf8;
  cursor: grab;
}

.builder-node-hotel {
  background: #f6f2e8;
}

.builder-node-addon {
  background: #f3f8fc;
}

.node-validation-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.node-validation-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid rgba(47, 125, 87, 0.16);
  border-radius: 999px;
  color: var(--leaf-dark);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.2;
  text-decoration: none;
}

.node-order {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
}

.node-actions {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.node-actions a,
.node-link-status {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--leaf);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.node-actions button {
  min-height: 30px;
  padding: 0 10px;
}

.builder-empty {
  display: grid;
  min-height: 280px;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px dashed rgba(47, 125, 87, 0.28);
  border-radius: 16px;
  color: var(--muted);
}

.builder-day footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px 13px;
  border-top: 1px solid rgba(47, 125, 87, 0.1);
  font-size: 12px;
  font-weight: 850;
}

.route-advisor {
  padding: 14px;
  border: 1px solid rgba(47, 125, 87, 0.12);
  border-radius: 20px;
  background: #fffdf8;
}

.route-advisor h5 {
  margin-bottom: 0;
  font-size: 20px;
}

.advisor-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ece4;
}

.advisor-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--sun), var(--leaf));
}

.route-advisor ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.ai-payload-card,
.memory-hint-card,
.builder-export-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 15px;
  background: #f8faf5;
}

.ai-payload-card summary {
  cursor: pointer;
  font-weight: 950;
  list-style: none;
}

.ai-payload-card summary::-webkit-details-marker {
  display: none;
}

.ai-payload-card summary::after {
  float: right;
  color: var(--muted);
  content: "+";
}

.ai-payload-card[open] summary::after {
  content: "-";
}

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

.transport-need-panel {
  overflow: hidden;
  border: 1px solid rgba(24, 33, 47, 0.08);
  border-radius: 15px;
  background: #ffffff;
}

.transport-need-panel summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  cursor: pointer;
  list-style: none;
}

.transport-need-panel summary::-webkit-details-marker {
  display: none;
}

.transport-need-panel summary span {
  font-weight: 950;
}

.transport-need-panel summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.transport-need-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  padding: 0 10px 10px;
}

.transport-need-list .material-card {
  grid-template-columns: 52px minmax(0, 1fr);
  padding: 7px;
  border-radius: 12px;
  background: #fffdf9;
}

.transport-need-list .material-card img {
  border-radius: 10px;
}

.transport-need-list .material-card strong {
  font-size: 13px;
}

.transport-need-list .material-tags {
  display: none;
}

.ai-payload-card code {
  max-height: 140px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 11px;
  line-height: 1.45;
}

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

.builder-export-panel:empty {
  display: none;
}

.memory-status {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(24, 33, 47, 0.08);
  border-radius: 15px;
  background: #ffffff;
}

.memory-status strong,
.memory-status span {
  display: block;
}

.memory-status span,
.memory-status li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.memory-status ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.memory-status-stored {
  border-color: rgba(47, 125, 87, 0.24);
  background: #eef8f1;
}

.memory-status-rejected {
  border-color: rgba(196, 83, 59, 0.22);
  background: #fff4f0;
}

.export-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.export-head h5 {
  margin-bottom: 0;
  font-size: 20px;
}

.export-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.export-day {
  overflow: hidden;
  border: 1px solid rgba(47, 125, 87, 0.12);
  border-radius: 16px;
  background: #ffffff;
}

.export-day header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  background: #eef5ee;
}

.export-rows {
  display: grid;
  gap: 1px;
}

.export-row {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid rgba(47, 125, 87, 0.08);
}

.export-row time {
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 950;
}

.route-body,
.route-workspace,
.route-clean-shell {
  display: grid;
  gap: 0;
}

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

.route-workspace {
  grid-template-columns: minmax(210px, 0.56fr) minmax(600px, 1.75fr) minmax(210px, 0.56fr);
  align-items: start;
  gap: 12px;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--line);
  background: #fffdf8;
}

.route-clean-shell {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px 22px;
  border-top: 1px solid var(--line);
  background: #fffdf8;
}

.itinerary-flip-section {
  display: grid;
  gap: 12px;
}

.itinerary-flip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.itinerary-flip-card {
  height: 292px;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  perspective: 1000px;
}

.itinerary-flip-card:focus-visible .itinerary-flip-inner {
  box-shadow: 0 0 0 3px rgba(47, 125, 87, 0.22);
}

.itinerary-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(24, 33, 47, 0.08);
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.4, 0, 0.2, 1);
}

.itinerary-flip-card.is-flipped .itinerary-flip-inner {
  transform: rotateY(180deg);
}

.itinerary-card-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 8px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.itinerary-card-ticket {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  gap: 9px;
  padding: 16px;
  border: 1px solid rgba(24, 33, 47, 0.08);
  background: #ffffff;
  color: var(--ink);
}

.itinerary-card-ticket::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 10px;
  width: 3px;
  border-radius: 999px;
  background: #3d7fb8;
  content: "";
}

.day-badge {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--leaf);
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
}

.itinerary-card-ticket strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.itinerary-card-ticket small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.itinerary-card-ticket p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.itinerary-route-ticks {
  position: relative;
  padding-left: 4px;
}

.itinerary-route-ticks::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 13px;
  width: 2px;
  background: rgba(61, 127, 184, 0.18);
  content: "";
}

.itinerary-route-ticks span {
  position: relative;
  display: grid;
  grid-template-columns: 24px 68px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  min-height: 28px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.itinerary-route-ticks span + span {
  margin-top: 7px;
}

.itinerary-route-ticks strong {
  color: #3d7fb8;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.2;
}

.itinerary-icon-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.itinerary-mini-icon {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 7px 6px;
  border: 1px solid rgba(24, 33, 47, 0.08);
  border-radius: 8px;
  background: #fbfaf5;
}

.itinerary-mini-icon b {
  display: grid;
  width: 26px;
  height: 22px;
  place-items: center;
  border-radius: 6px;
  background: #eef5ee;
  color: var(--leaf-dark);
  font-size: 10px;
  font-weight: 950;
}

.itinerary-mini-icon em {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.itinerary-card-back {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(47, 125, 87, 0.12);
  background: #ffffff;
  color: var(--ink);
  transform: rotateY(180deg);
}

.itinerary-card-back h5 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.itinerary-card-back ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 16px;
}

.itinerary-card-back li {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.itinerary-card-back small {
  margin-top: auto;
  color: var(--leaf-dark);
  font-size: 11px;
  font-weight: 900;
}

.route-detail-itinerary {
  padding: 0;
}

.route-support-drawers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.route-support-drawers .result-drawer > summary {
  min-height: 54px;
}

.route-support-drawers .result-drawer[open] {
  grid-column: span 2;
}

.route-side-drawers {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.result-drawer {
  overflow: hidden;
  border: 1px solid rgba(24, 33, 47, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
}

.result-drawer[open] {
  box-shadow: 0 10px 24px rgba(24, 33, 47, 0.06);
}

.result-drawer > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 9px 10px;
  cursor: pointer;
  list-style: none;
}

.result-drawer > summary::-webkit-details-marker {
  display: none;
}

.result-drawer > summary::after {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  background: var(--paper);
  color: var(--leaf-dark);
  content: "+";
  font-weight: 950;
}

.result-drawer[open] > summary::after {
  content: "-";
}

.result-drawer h4 {
  margin: 0;
  font-size: 15px;
}

.result-drawer > summary small {
  padding: 4px 7px;
  border-radius: 8px;
  background: #eef5ee;
  color: var(--leaf-dark);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.result-drawer-body {
  display: grid;
  gap: 10px;
  max-height: 58vh;
  overflow: auto;
  padding: 0 10px 10px;
}

.lodging-node-panel {
  background: #f9fbff;
}

.related-spot-pack-drawer {
  background: #fbfdf8;
}

.related-spot-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border: 1px solid rgba(47, 125, 87, 0.1);
  border-radius: 10px;
  background: #ffffff;
}

.related-spot-toolbar > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.related-spot-toolbar strong {
  color: var(--leaf-dark);
}

.related-spot-day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.related-spot-day-tabs button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(47, 125, 87, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 950;
}

.related-spot-day-tabs button.active {
  background: var(--leaf);
  color: #ffffff;
}

.related-spot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.related-spot-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid rgba(47, 125, 87, 0.12);
  border-radius: 10px;
  background: #ffffff;
}

.related-spot-thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
}

.related-spot-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.related-spot-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-spot-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-spot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.related-spot-tags span {
  max-width: 86px;
  overflow: hidden;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef5ee;
  color: var(--leaf-dark);
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-spot-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
}

.related-spot-actions a,
.related-spot-actions button {
  flex: 1;
  min-height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 125, 87, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.related-spot-actions button {
  background: var(--leaf-dark);
  color: #ffffff;
}

.lodging-node-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.lodging-node-card {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(61, 127, 184, 0.16);
  border-radius: 10px;
  background: #ffffff;
}

.lodging-node-visual {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.lodging-node-photo,
.lodging-option-photo,
.side-image-thumb {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background-color: #e8eef2;
  background-position: center;
  background-size: cover;
}

.lodging-node-photo {
  width: 66px;
  height: 58px;
}

.lodging-node-head {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.lodging-node-head strong,
.lodging-node-head span {
  display: block;
}

.lodging-node-head strong {
  margin-bottom: 4px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lodging-node-head span,
.lodging-node-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.lodging-node-head b {
  min-width: 32px;
  padding: 5px 6px;
  border-radius: 8px;
  background: #eaf3fb;
  color: #245f90;
  font-size: 12px;
  text-align: center;
}

.lodging-node-card p {
  margin: 0;
}

.lodging-node-meta,
.lodging-provider-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.lodging-node-meta span,
.lodging-provider-row a {
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.lodging-node-meta span {
  background: #eef5ee;
  color: var(--leaf-dark);
}

.lodging-provider-row a {
  background: #fff3e8;
  color: #9b4a21;
  text-decoration: none;
}

.lodging-option-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.lodging-option-list > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.lodging-option-list button {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 6px;
  border: 1px solid rgba(155, 74, 33, 0.18);
  border-radius: 8px;
  background: #fffaf4;
  color: #5f331b;
  text-align: left;
  cursor: pointer;
}

.lodging-option-list button:hover {
  border-color: rgba(155, 74, 33, 0.36);
  background: #fff4e7;
}

.lodging-option-symbol {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 950;
}

.lodging-option-symbol-1 {
  background: #eaf3fb;
  color: #245f90;
}

.lodging-option-symbol-2 {
  background: #eef5ee;
  color: var(--leaf-dark);
}

.lodging-option-symbol-3 {
  background: #fff3e8;
  color: #9b4a21;
}

.lodging-option-symbol-4 {
  background: #f4eef8;
  color: #5a3b72;
}

.lodging-option-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.lodging-option-list strong,
.lodging-option-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lodging-option-list strong {
  font-size: 11px;
  font-weight: 950;
}

.lodging-option-list small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.lodging-subdrawer {
  overflow: hidden;
  border: 1px solid rgba(24, 33, 47, 0.06);
  border-radius: 8px;
  background: #fbfcfd;
}

.lodging-subdrawer summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 30px;
  padding: 0 8px;
  cursor: pointer;
  list-style: none;
}

.lodging-subdrawer summary::-webkit-details-marker {
  display: none;
}

.lodging-subdrawer summary span,
.lodging-subdrawer summary small {
  overflow: hidden;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lodging-subdrawer summary small {
  color: var(--muted);
}

.lodging-subdrawer > div {
  display: grid;
  gap: 7px;
  padding: 0 8px 8px;
}

.lodging-more-options {
  grid-column: 1 / -1;
}

.lodging-more-options > div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lodging-map-pack {
  display: grid;
  gap: 6px;
}

.lodging-map-pack > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.lodging-map-pack div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lodging-map-pack a {
  min-height: 25px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #edf4ff;
  color: #245f90;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.lodging-map-pack-muted a {
  background: #f3f4f6;
  color: #4b5563;
}

.side-link-grid,
.side-image-list {
  display: grid;
  gap: 7px;
}

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

.side-link-grid a {
  display: flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid rgba(61, 127, 184, 0.12);
  border-radius: 8px;
  background: #f5f9ff;
  color: #245f90;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.side-link-grid-muted a {
  border-color: rgba(47, 125, 87, 0.12);
  background: #f6faf5;
  color: var(--leaf-dark);
}

.side-link-grid a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-image-link {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 62px;
  padding: 6px;
  border: 1px solid rgba(47, 125, 87, 0.1);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
}

.side-more-drawer {
  overflow: hidden;
  border: 1px solid rgba(47, 125, 87, 0.08);
  border-radius: 8px;
  background: #fbfcf8;
}

.side-more-drawer summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  padding: 0 8px;
  cursor: pointer;
  list-style: none;
}

.side-more-drawer summary::-webkit-details-marker {
  display: none;
}

.side-more-drawer summary span,
.side-more-drawer summary small {
  overflow: hidden;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-more-drawer > .side-image-list {
  padding: 0 8px 8px;
}

.side-image-thumb {
  width: 54px;
  height: 50px;
}

.side-image-link strong,
.side-image-link small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-image-link strong {
  font-size: 12px;
  font-weight: 950;
}

.side-image-link small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.route-side-drawers .planning-hint-row {
  display: grid;
  justify-content: stretch;
}

.route-side-drawers .info-tip-trigger,
.route-side-drawers .budget-tip-trigger {
  justify-content: space-between;
  width: 100%;
}

.route-side-drawers .budget-panel {
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
}

.route-side-drawers .budget-total strong {
  font-size: 16px;
}

.route-side-drawers .offer-details {
  border-radius: 8px;
}

.shortcut-guide-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: grid;
  gap: 4px;
  width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(38, 77, 99, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(25, 41, 54, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.shortcut-guide-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.shortcut-guide-toast strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.shortcut-guide-toast span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.itinerary-drawers {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 0;
  background: transparent;
}

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

.section-heading h4 {
  margin-bottom: 0;
  font-size: 18px;
}

.section-heading > span {
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #eef5ee;
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 900;
}

.day-drawer {
  overflow: hidden;
  border: 1px solid rgba(47, 125, 87, 0.14);
  border-radius: 12px;
  background: #ffffff;
}

.day-drawer summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 26px;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.day-drawer summary::-webkit-details-marker {
  display: none;
}

.day-drawer summary::after {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: var(--paper);
  color: var(--leaf-dark);
  content: "+";
  font-weight: 950;
}

.day-drawer[open] summary::after {
  content: "-";
}

.day-index {
  display: inline-flex;
  width: 38px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--leaf);
  color: #ffffff;
  font-size: 10px;
  font-weight: 950;
  box-shadow: none;
}

.day-summary {
  min-width: 0;
}

.day-summary strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
  line-height: 1.35;
}

.day-summary small,
.day-time,
.stop-timeblock span,
.day-stop-copy p,
.mini-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.day-time {
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--paper);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.day-drawer-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0 10px 10px;
}

.transport-chip {
  margin-right: 4px;
  background: #edf7f6;
  color: #275f62;
}

.day-timeline {
  display: grid;
  gap: 8px;
}

.day-stop {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(47, 125, 87, 0.1);
  border-radius: 10px;
  background: #fbfcf8;
}

.stop-timeblock {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
}

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

.stop-timeblock span {
  font-size: 12px;
  font-weight: 850;
}

.day-stop .place-photo {
  display: none;
}

.day-stop-copy {
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
}

.day-stop-copy h5 {
  margin-bottom: 2px;
  font-size: 14px;
}

.day-stop-copy p {
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.42;
}

.day-stop-copy .place-tags {
  display: none;
}

.day-sidecar,
.estimate-card,
.mini-panel,
.day-addons,
.day-compact-food,
.timeline-empty {
  display: grid;
  gap: 10px;
}

.day-sidecar {
  display: none;
}

.day-compact-food {
  margin-top: 10px;
}

.day-compact-food:empty {
  display: none;
}

.day-compact-food .local-food-card,
.day-compact-food .meal-slot-card {
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(61, 127, 184, 0.08), rgba(255, 255, 255, 0)),
    #f8fbfd;
}

.day-compact-food .local-food-card .eyebrow,
.day-compact-food .meal-slot-card .eyebrow {
  margin-bottom: 2px;
}

.day-compact-food .local-food-card h5,
.day-compact-food .meal-slot-card h5 {
  font-size: 14px;
}

.day-compact-food .local-food-card p,
.day-compact-food .meal-slot-card p {
  font-size: 12px;
}

.day-compact-food .local-food-links a {
  min-height: 28px;
  border-radius: 8px;
}

.estimate-card,
.mini-panel,
.day-addons,
.timeline-empty {
  padding: 14px;
  border: 1px solid rgba(47, 125, 87, 0.1);
  border-radius: 16px;
  background: #ffffff;
}

.estimate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}

.estimate-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.estimate-grid strong {
  font-size: 13px;
  white-space: nowrap;
}

.mini-panel h5,
.day-addons h5,
.timeline-empty h5 {
  margin-bottom: 0;
}

.mini-panel p,
.timeline-empty p {
  margin-bottom: 0;
  line-height: 1.55;
}

.mini-product {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid rgba(47, 125, 87, 0.12);
  border-radius: 12px;
  background: #fbfcf8;
  color: var(--ink);
  text-decoration: none;
}

.mini-product span {
  font-size: 13px;
  font-weight: 900;
}

.mini-product small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.route-stops {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 22px;
  list-style: none;
}

.route-stops::before {
  position: absolute;
  top: 42px;
  bottom: 42px;
  left: 42px;
  width: 2px;
  background: rgba(47, 125, 87, 0.18);
  content: "";
}

.route-stop-item {
  margin: 0;
}

.place-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  overflow: hidden;
}

.place-card summary {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.place-card summary::-webkit-details-marker {
  display: none;
}

.place-card summary::after {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--leaf-dark);
  content: "+";
  font-weight: 950;
}

.place-card[open] summary::after {
  content: "-";
}

.stop-index {
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--leaf);
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(47, 125, 87, 0.24);
}

.place-title {
  min-width: 0;
}

.route-stops strong {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
}

.route-stops small,
.stop-time,
.product-card p,
.notice-text {
  color: var(--muted);
}

.stop-time {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--paper);
  color: #5c655f;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.place-detail {
  display: grid;
  grid-template-columns: minmax(180px, 0.82fr) minmax(0, 1fr);
  gap: 14px;
  padding: 0 16px 16px 70px;
}

.place-photo {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-radius: 16px;
  background: #eef3ec;
}

.place-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.place-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(20, 29, 38, 0.46));
  content: "";
}

.map-pin {
  position: absolute;
  z-index: 1;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(24, 33, 47, 0.12);
}

.place-meta {
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.place-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.place-tags span,
.product-badge {
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef5ee;
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 850;
}

.place-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.place-actions a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(61, 127, 184, 0.18);
  border-radius: 7px;
  background: #ffffff;
  color: var(--sky);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.place-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.products-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
  border-left: 1px solid var(--line);
  background: #f8faf5;
}

.products-panel h4 {
  margin-bottom: 4px;
  font-size: 22px;
}

.route-card-empty {
  padding-bottom: 16px;
}

.unsupported-route-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.unsupported-note-list,
.compact-material-list {
  display: grid;
  gap: 6px;
}

.unsupported-note-list span,
.compact-material-list span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f7f9f5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.route-estimate-note {
  display: grid;
  grid-template-columns: 150px minmax(210px, 0.82fr) minmax(0, 1.45fr);
  gap: 8px;
  align-items: stretch;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
  background: #fbfcf8;
}

.estimate-note-title {
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
}

.estimate-note-title h4 {
  margin-bottom: 0;
  font-size: 16px;
}

.estimate-note-title p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.service-note-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(24, 33, 47, 0.08);
  border-radius: 9px;
  background: #ffffff;
}

.service-note-head {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.service-note-head h5 {
  margin-bottom: 0;
  font-size: 14px;
}

.service-note-head small {
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef3ec;
  color: var(--leaf-dark);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.offer-details {
  min-width: 0;
}

.offer-details:not([open]) {
  align-content: center;
  min-height: 58px;
}

.offer-details summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 0;
  cursor: pointer;
  list-style: none;
}

.offer-details summary::-webkit-details-marker {
  display: none;
}

.offer-details summary span {
  font-weight: 950;
}

.offer-details summary h5 {
  margin-bottom: 0;
  font-size: 14px;
}

.offer-details summary small {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f7efe5;
  color: #9a5a1f;
  font-size: 12px;
  font-weight: 900;
}

.offer-detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 8px;
  min-width: 0;
  overflow: visible;
  padding-top: 8px;
  scrollbar-width: thin;
}

.product-card {
  display: grid;
  gap: 5px;
  min-height: 62px;
  align-content: center;
  padding: 9px 10px;
  border: 1px solid rgba(47, 125, 87, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
}

.product-card h5 {
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.product-badge {
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff3df;
  color: #8a4b0e;
  font-size: 10px;
  font-weight: 900;
}

.product-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card a,
.quick-result a {
  color: var(--sky);
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.product-card .offer-link {
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(226, 111, 82, 0.22);
  border-radius: 999px;
  background: #fff8f2;
  color: #9a5a1f;
  font-size: 12px;
  font-weight: 850;
}

.budget-panel {
  display: grid;
  grid-template-columns: minmax(86px, 0.65fr) minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(24, 33, 47, 0.08);
  border-radius: 9px;
  background: #ffffff;
}

.price-status-panel {
  border-color: rgba(61, 127, 184, 0.14);
  background: #f8fbfd;
}

.budget-panel-insufficient {
  border-color: rgba(180, 35, 24, 0.18);
  background: #fffdfb;
}

.budget-panel-tight {
  border-color: rgba(240, 188, 94, 0.26);
  background: #fffefa;
}

.budget-panel-ok {
  border-color: rgba(47, 125, 87, 0.18);
  background: #fcfefb;
}

.budget-panel h5 {
  margin-bottom: 0;
  font-size: 14px;
}

.budget-total {
  display: grid;
  gap: 3px;
}

.budget-total strong {
  font-size: 14px;
}

.budget-total span,
.budget-item span,
.budget-scope,
.budget-assumptions li,
.local-food-card p,
.local-food-card small,
.addon-drawer-note,
.quick-result span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.budget-facts {
  display: grid;
  gap: 6px;
}

.budget-facts span {
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.budget-scope {
  margin-bottom: 0;
}

.budget-list {
  display: grid;
  gap: 7px;
}

.budget-item {
  display: grid;
  gap: 0;
}

.budget-amount {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.budget-amount strong {
  font-size: 13px;
}

.budget-amount span {
  font-weight: 900;
}

.budget-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(226, 111, 82, 0.12);
}

.budget-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
}

.budget-assumptions {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.budget-entry {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.budget-entry input {
  min-height: 38px;
}

.budget-entry button,
.budget-offer-button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--leaf);
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.budget-entry button {
  padding: 0 14px;
}

.budget-tip-trigger,
.budget-offer-button {
  grid-column: 1 / -1;
}

.budget-offer-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px;
  background: var(--coral);
  box-shadow: 0 12px 24px rgba(226, 111, 82, 0.2);
}

.budget-offer-button small {
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.route-alert-box {
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(240, 188, 94, 0.4);
  border-radius: 12px;
  background: #fff8e8;
  color: #6f4a16;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.6;
}

.pill-info {
  border: 0;
  cursor: pointer;
}

.local-food-card {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid rgba(61, 127, 184, 0.16);
  border-radius: 16px;
  background: #f3f8fc;
}

.local-food-card h5 {
  margin-bottom: 0;
}

.local-food-card p {
  margin-bottom: 0;
}

.meal-slot-card {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid rgba(88, 120, 92, 0.16);
  border-radius: 12px;
  background: #f7faf4;
}

.meal-slot-list {
  display: grid;
  gap: 7px;
}

.meal-slot-link {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 9px;
  background: #ffffff;
  color: #2f4534;
  text-decoration: none;
}

.meal-slot-link strong {
  font-size: 12px;
}

.meal-slot-link span,
.meal-slot-link small {
  color: #62746a;
  font-size: 11px;
  font-weight: 800;
}

.meal-slot-link small {
  overflow-wrap: anywhere;
}

.local-food-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.local-food-links a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--sky);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.local-food-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.local-food-meta span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(61, 127, 184, 0.1);
  color: #34546b;
  font-size: 11px;
  font-weight: 900;
}

.local-food-candidate-link {
  justify-self: start;
  appearance: none;
  border: 0;
  background: transparent;
  color: #5f6b7a;
  font-size: 11px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.pill-hot {
  background: #fff3ec;
  color: #a9472e;
}

.departure-mode-panel,
.path-logic-panel,
.node-strategy-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(226, 111, 82, 0.18);
  border-radius: 18px;
  background: #fffaf4;
}

.departure-mode-panel h4,
.path-logic-panel h4,
.node-strategy-panel h4 {
  margin: 0;
}

.departure-mode-panel p,
.path-logic-panel p,
.node-strategy-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.departure-mode-grid,
.node-strategy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.node-strategy-timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.node-strategy-timeline span {
  position: relative;
}

.node-strategy-timeline span:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -7px;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: rgba(47, 125, 87, 0.34);
  content: "";
}

.departure-mode-grid span,
.node-strategy-grid span {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 14px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.departure-mode-grid strong,
.node-strategy-grid strong {
  color: var(--ink);
  font-size: 13px;
}

.node-strategy-grid small {
  color: var(--muted);
  line-height: 1.45;
}

.cross-region-movement {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(159, 116, 76, 0.14);
}

.cross-region-movement > div:first-child {
  display: grid;
  gap: 4px;
}

.cross-region-movement strong {
  color: var(--ink);
}

.cross-region-movement small {
  color: var(--muted);
  line-height: 1.5;
}

.movement-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.movement-list span {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 14px;
  background: #ffffff;
}

.movement-list b {
  color: #a9472e;
  font-size: 12px;
}

.movement-list em {
  color: var(--ink);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.logic-block {
  display: grid;
  gap: 8px;
}

.logic-block strong {
  color: var(--ink);
}

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

.logic-chip-row a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--sky);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.segments-panel,
.planning-grid,
.map-region-strip {
  border-top: 1px solid var(--line);
}

.segments-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: #fffdf8;
}

.segments-panel h4 {
  margin-bottom: 0;
  font-size: 22px;
}

.segment-grid,
.planning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.region-grid {
  display: grid;
  gap: 12px;
}

.segment-card,
.planning-panel,
.region-card {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid rgba(47, 125, 87, 0.12);
  border-radius: 18px;
  background: #ffffff;
}

.region-card-rich {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.region-photo {
  position: relative;
  min-height: 152px;
  overflow: hidden;
  background: #eef3ec;
}

.region-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.region-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 26, 38, 0.02), rgba(18, 26, 38, 0.52));
  content: "";
}

.region-photo span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.region-card-body {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.region-plan-button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--leaf);
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.segment-card h5,
.region-card h4,
.planning-panel h4 {
  margin-bottom: 0;
}

.segment-card p,
.region-card p,
.planning-panel li,
.room-note {
  color: var(--muted);
  line-height: 1.55;
}

.room-note {
  margin: 14px 0 0;
}

.planning-grid {
  padding: 22px;
  background: #f8faf5;
}

.planning-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.planning-hints {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: #f8faf5;
}

.planning-hints-head {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.planning-hints-head .eyebrow {
  margin-bottom: 0;
}

.planning-hints-head strong {
  font-size: 15px;
  font-weight: 950;
}

.planning-hints-head span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planning-hint-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.info-tip-trigger {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 9px;
  border: 1px solid rgba(47, 125, 87, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.info-tip-trigger:hover,
.info-tip-trigger:focus-visible,
.info-tip-trigger[aria-expanded="true"] {
  border-color: rgba(47, 125, 87, 0.24);
  background: #f8fbf6;
}

.info-tip-trigger small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.budget-tip-trigger {
  justify-content: space-between;
}

.info-tip-popover {
  position: fixed;
  z-index: 80;
  display: none;
  width: min(340px, calc(100vw - 24px));
  max-height: min(380px, calc(100vh - 32px));
  overflow: auto;
  padding: 12px 14px;
  border: 1px solid rgba(24, 33, 47, 0.12);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(24, 33, 47, 0.16);
  pointer-events: auto;
}

.info-tip-popover.open {
  display: grid;
  gap: 8px;
}

.info-tip-popover strong {
  font-size: 14px;
}

.info-tip-popover ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.info-tip-popover li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.map-region-strip {
  display: grid;
  width: 100%;
  justify-self: center;
  margin-top: 14px;
  margin-right: auto;
  margin-left: auto;
}

.map-region-strip > .fold-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 11px 14px;
}

.map-region-strip .fold-summary h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.map-region-strip .region-grid {
  padding: 0 14px 14px;
}

.region-mode-toggle {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.region-mode-toggle button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(47, 125, 87, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: var(--leaf-dark);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.region-mode-toggle button.active {
  border-color: rgba(226, 111, 82, 0.34);
  background: #fff4ec;
  color: #99452b;
}

.region-keyword-bar {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}

.region-keyword {
  display: inline-grid;
  min-width: 110px;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid rgba(47, 125, 87, 0.14);
  border-radius: 9px;
  background: #f7fbf6;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: background 180ms ease, border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.region-keyword.active {
  border-color: rgba(226, 111, 82, 0.42);
  background: var(--coral);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(226, 111, 82, 0.18);
}

.region-keyword.dimmed {
  opacity: 0.5;
}

.region-keyword strong {
  font-size: 13px;
  font-weight: 950;
}

.region-keyword span {
  color: var(--leaf);
  font-size: 11px;
  font-weight: 900;
}

.region-keyword.active span,
.region-keyword.active strong {
  color: #ffffff;
}

.region-route-drawer {
  display: grid;
  gap: 9px;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(47, 125, 87, 0.12);
  border-radius: 10px;
  background: #fbfdf9;
  opacity: 0;
  transition: max-height 420ms ease, opacity 260ms ease, padding 260ms ease;
}

.region-route-drawer.open {
  max-height: 360px;
  padding: 10px;
  opacity: 1;
}

.region-route-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
}

.region-route-head img {
  display: none;
}

.region-route-head h4 {
  margin-bottom: 5px;
}

.region-route-head p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.region-mode-note {
  margin: -1px 0 0;
  padding: 7px 9px;
  border: 1px solid rgba(139, 95, 191, 0.13);
  border-radius: 8px;
  background: rgba(139, 95, 191, 0.06);
  color: #59616e;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
}

.region-route-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.region-route-option {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid rgba(47, 125, 87, 0.12);
  border-radius: 9px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.region-route-option strong {
  font-size: 13px;
}

.region-route-option span,
.region-route-option small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.region-drawer {
  border: 1px solid rgba(47, 125, 87, 0.12);
  border-radius: 16px;
  background: #fbfdf9;
}

.region-drawer > summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  cursor: pointer;
  list-style: none;
}

.region-drawer > summary::-webkit-details-marker {
  display: none;
}

.region-drawer > summary span {
  color: var(--ink);
  font-weight: 950;
}

.region-drawer > summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.region-drawer > summary::after {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--leaf);
  content: "⌄";
  font-weight: 950;
}

.region-drawer[open] > summary::after {
  content: "⌃";
}

.region-select-list {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.region-select-row {
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
}

.region-select-row img {
  width: 78px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

.region-select-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.region-select-copy strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.region-select-copy small,
.region-select-copy p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.region-select-copy p {
  margin: 0;
}

.region-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.region-mini-tags span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(47, 125, 87, 0.08);
  color: var(--leaf);
  font-size: 11px;
  font-weight: 900;
}

.region-select-row .region-plan-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.commerce-strip {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding: 22px;
  background: #ffffff;
}

.ai-pipeline-strip {
  display: grid;
  margin-top: 20px;
}

.ai-pipeline-body {
  display: grid;
  gap: 12px;
}

.ai-pipeline-note {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(240, 188, 94, 0.34);
  border-radius: 12px;
  background: #fff9ea;
}

.ai-pipeline-note strong {
  color: #704b14;
}

.ai-pipeline-note span,
.ai-pipeline-status {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.ai-pipeline-draft {
  width: 100%;
  min-height: 360px;
  padding: 14px;
  border: 1px solid rgba(24, 33, 47, 0.12);
  border-radius: 12px;
  background: #101820;
  color: #eef6ef;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  resize: vertical;
  white-space: pre;
}

.ai-pipeline-copy {
  justify-self: start;
}

.ai-pipeline-status {
  margin: 0;
}

.commerce-strip h3 {
  margin-bottom: 0;
  font-size: 24px;
}

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

.deal-button {
  border: 0;
  background: #24384c;
  color: #ffffff;
}

.quick-result {
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.quick-result {
  display: grid;
  gap: 6px;
}

.addon-drawer-toggle {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  min-width: 58px;
  min-height: 34px;
  border: 1px solid rgba(226, 111, 82, 0.2);
  border-radius: 999px;
  background: rgba(255, 248, 242, 0.94);
  color: #9a5a1f;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(24, 33, 47, 0.12);
}

.addon-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  display: grid;
  width: min(390px, calc(100vw - 28px));
  height: 100vh;
  align-content: start;
  gap: 14px;
  padding: 24px;
  border-left: 1px solid var(--line);
  background: #ffffff;
  box-shadow: -18px 0 52px rgba(24, 33, 47, 0.14);
  transform: translateX(104%);
  transition: transform 180ms ease;
}

.addon-drawer.open {
  transform: translateX(0);
}

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

.addon-drawer-head h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.addon-drawer-note {
  margin-bottom: 0;
}

.addon-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(24, 33, 47, 0.22);
}

.month-feature-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 24px;
}

.month-feature-modal.open {
  display: grid;
}

.month-feature-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 33, 47, 0.28);
}

.month-feature-dialog {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(108, 77, 145, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 84% 10%, rgba(167, 127, 196, 0.18), transparent 24%),
    #ffffff;
  box-shadow: 0 28px 78px rgba(24, 33, 47, 0.2);
}

.month-feature-dialog .icon-button {
  position: absolute;
  top: 14px;
  right: 14px;
}

.brand-flip-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.brand-flip-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.brand-flip-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 26, 34, 0.58);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.brand-flip-dialog {
  position: relative;
  display: grid;
  width: min(330px, 100%);
  gap: 13px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(188, 21, 43, 0.12), transparent 34%),
    #fbfaf5;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.brand-flip-dialog > .icon-button {
  position: absolute;
  top: 14px;
  right: 14px;
}

.brand-flip-copy {
  padding-right: 34px;
  text-align: center;
}

.brand-flip-copy h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.brand-flip-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.brand-flip-stage {
  position: relative;
  display: grid;
  width: 138px;
  height: 138px;
  place-items: center;
  justify-self: center;
  border: 6px solid #ffffff;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(24, 33, 47, 0.12);
}

.brand-flip-stage::before,
.brand-flip-stage::after {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bc152b;
  content: "";
  opacity: 0.72;
}

.brand-flip-stage::before {
  top: 18px;
  right: 28px;
  animation: flip-spark-a 1.6s ease-in-out infinite;
}

.brand-flip-stage::after {
  bottom: 24px;
  left: 24px;
  animation: flip-spark-b 1.9s ease-in-out infinite;
}

.brand-flip-ring {
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(24, 33, 47, 0.16);
  border-radius: 50%;
}

.brand-flip-orbit {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: conic-gradient(from 110deg, transparent 0 64%, rgba(188, 21, 43, 0.78) 70%, transparent 78% 100%);
  mask: radial-gradient(circle, transparent 61%, #000 63%);
  opacity: 0.78;
  animation: flip-orbit 1.35s linear infinite;
}

.brand-rotate-target {
  color: #1e293b;
  font-size: 54px;
  font-weight: 950;
  line-height: 1;
  transition: transform 100ms cubic-bezier(0.1, 0.8, 0.2, 1), color 160ms ease, filter 220ms ease;
}

.brand-rotate-target.near-ready {
  color: #bc152b;
}

.brand-rotate-target.is-success {
  color: #bc152b;
  filter: drop-shadow(0 0 22px rgba(188, 21, 43, 0.42));
  transition: transform 520ms cubic-bezier(0.175, 0.885, 0.32, 1.275), color 180ms ease, filter 260ms ease;
}

.brand-rotate-target.spin-complete {
  animation: flip-complete-spin 620ms cubic-bezier(0.2, 0.84, 0.22, 1) forwards;
}

.brand-flip-direction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  border-radius: 999px;
  background: rgba(188, 21, 43, 0.08);
  color: #74303a;
  font-size: 12px;
  font-weight: 900;
}

.brand-flip-direction b {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #bc152b;
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
  animation: flip-direction-pulse 1s ease-in-out infinite;
}

.brand-flip-direction small {
  color: var(--muted);
  text-transform: uppercase;
}

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

.brand-flip-action {
  min-height: 40px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
}

.brand-flip-action {
  border: 0;
  background: #bc152b;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(188, 21, 43, 0.18);
}

.brand-flip-action:disabled {
  cursor: progress;
  opacity: 0.78;
}

.brand-flip-success {
  display: grid;
  gap: 4px;
  min-height: 54px;
  place-items: center;
  border-radius: 20px;
  background: #1e293b;
  color: #ffffff;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 360ms ease, transform 360ms ease;
}

.brand-flip-success[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.brand-flip-success strong {
  font-size: 18px;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
}

.brand-flip-success span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@keyframes flip-orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes flip-direction-pulse {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(42deg) scale(1.08);
  }
}

@keyframes flip-complete-spin {
  from {
    transform: rotate(180deg) scale(1);
  }
  72% {
    transform: rotate(372deg) scale(1.08);
  }
  to {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes flip-spark-a {
  0%, 100% {
    transform: translate(0, 0) scale(0.85);
    opacity: 0.42;
  }
  50% {
    transform: translate(8px, -6px) scale(1.15);
    opacity: 0.86;
  }
}

@keyframes flip-spark-b {
  0%, 100% {
    transform: translate(0, 0) scale(0.8);
    opacity: 0.34;
  }
  50% {
    transform: translate(-7px, 6px) scale(1.12);
    opacity: 0.78;
  }
}

.month-feature-dialog h3 {
  margin-bottom: 8px;
  padding-right: 42px;
  font-size: 28px;
}

.modal-planning-note {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f7f1fb;
  color: #4e3562;
  font-weight: 850;
  line-height: 1.55;
}

.modal-feature-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(108, 77, 145, 0.14);
  border-radius: 18px;
  object-fit: cover;
}

.modal-query-list {
  display: grid;
  gap: 8px;
}

.modal-query-list a {
  padding: 10px 12px;
  border: 1px solid rgba(24, 33, 47, 0.08);
  border-radius: 14px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.error-text {
  color: var(--red);
  font-weight: 900;
}

@media (max-width: 1100px) {
  .side-rail,
  .planner-hero,
  .route-body,
  .route-workspace,
  .route-clean-shell,
  .route-support-drawers,
  .market-strip-body,
  .trip-builder-grid,
  .puzzle-coach,
  .month-feature-bar,
  .related-spot-grid,
  .lodging-node-grid,
  .departure-mode-grid,
  .node-strategy-grid {
    grid-template-columns: 1fr;
  }

  .route-estimate-note {
    grid-template-columns: 1fr;
  }

  .unsupported-route-panel {
    grid-template-columns: 1fr;
  }

  .budget-panel {
    grid-template-columns: 1fr auto;
  }

  .budget-panel > div:first-child {
    grid-column: 1 / -1;
  }

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

  .puzzle-coach-actions {
    justify-content: flex-start;
  }

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

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

  .rail-section {
    justify-content: flex-start;
  }

  .rail-section ul {
    justify-content: flex-start;
  }

  .products-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .route-side-drawers {
    position: static;
  }

  .route-clean-shell {
    padding: 22px;
  }

  .route-support-drawers .result-drawer[open] {
    grid-column: auto;
  }

  .route-side-left {
    order: 2;
  }

  .itinerary-drawers {
    order: 1;
  }

  .route-side-right {
    order: 3;
  }
}

@media (max-width: 720px) {
  .side-rail {
    position: static;
    padding: 16px;
  }

  .main-stage {
    width: min(100% - 24px, 1180px);
    padding-top: 14px;
  }

  .planner-hero {
    gap: 12px;
  }

  .hero-copy,
  .planner-card,
  .result-stage,
  .primer-strip,
  .commerce-strip {
    border-radius: 18px;
  }

  .hero-copy {
    min-height: 210px;
    padding: 20px;
  }

  .hero-route-board {
    right: 16px;
    bottom: 16px;
    width: min(280px, calc(100% - 32px));
  }

  .fold-summary {
    grid-template-columns: minmax(0, 1fr) 30px;
    align-items: start;
  }

  .map-region-strip {
    width: 100%;
  }

  .map-region-strip > .fold-summary {
    grid-template-columns: minmax(0, 1fr) 28px;
  }

  .map-region-strip .region-mode-toggle {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .fold-keywords {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .region-select-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .region-select-row img {
    width: 58px;
    height: 48px;
  }

  .region-select-row .region-plan-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .planner-actions,
  .choice-grid,
  .market-input-grid,
  .rental-mode-switch,
  .rental-route-map,
  .region-route-head,
  .region-route-options,
  .budget-entry,
  .skeleton-grid,
  .quick-grid,
  .primer-grid,
  .season-grid,
  .route-header,
  .trip-workbench-shell > summary,
  .trip-builder-grid,
  .known-route-option-list,
  .material-pack,
  .day-drawer-body,
  .day-stop,
  .segment-grid,
  .planning-grid,
  .region-grid {
    grid-template-columns: 1fr;
  }

  .planner-actions .primary-button,
  .planner-actions .secondary-button {
    flex: 1 1 100%;
  }

  .market-button,
  .budget-entry button,
  .budget-offer-button,
  .supplier-cta {
    width: 100%;
  }

  .market-strip {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    max-height: min(72vh, 620px);
  }

  .market-strip[open] .market-strip-body {
    max-height: min(58vh, 480px);
  }

  .market-strip > .fold-summary,
  .market-strip[open] > .fold-summary {
    grid-template-columns: minmax(0, 1fr) 28px;
    min-height: 42px;
    padding: 8px 10px;
  }

  .market-strip > .fold-summary .eyebrow,
  .market-strip .fold-keywords {
    display: none;
  }

  .market-strip > .fold-summary h3 {
    overflow: hidden;
    margin: 0;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .market-input-grid {
    grid-template-columns: 1fr;
  }

  .market-strip-body {
    padding: 8px;
  }

  .market-card {
    padding: 10px;
  }

  .market-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .market-card h3 {
    font-size: 15px;
  }

  .planning-hints {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 9px 10px;
  }

  .planning-hints-head span {
    white-space: normal;
  }

  .planning-hint-row {
    justify-content: flex-start;
    gap: 6px;
  }

  .info-tip-trigger {
    min-height: 29px;
    padding: 0 8px;
    font-size: 11px;
  }

  .market-mode {
    justify-self: start;
    min-height: 24px;
    font-size: 11px;
  }

  .flight-best strong {
    font-size: 20px;
  }

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

  .region-route-head img {
    display: none;
  }

  .primer-head {
    flex-direction: column;
    align-items: flex-start;
  }

  textarea {
    min-height: 150px;
  }

  .route-stops {
    padding: 14px;
  }

  .route-stops::before {
    left: 34px;
  }

  .place-card summary {
    grid-template-columns: 40px minmax(0, 1fr) auto 28px;
  }

  .stop-time {
    width: fit-content;
  }

  .place-detail {
    grid-template-columns: 1fr;
    padding: 0 14px 14px;
  }

  .place-photo {
    min-height: 180px;
  }

  .itinerary-drawers {
    padding: 14px;
  }

  .day-drawer summary {
    grid-template-columns: 50px minmax(0, 1fr) 30px;
  }

  .builder-day summary {
    grid-template-columns: 52px minmax(0, 1fr) 28px;
  }

  .builder-day-count,
  .builder-day .day-status {
    grid-column: 2 / 3;
  }

  .builder-day summary::after {
    grid-column: 3;
    grid-row: 1 / span 3;
  }

  .day-time {
    grid-column: 2 / 3;
    width: fit-content;
  }

  .day-stop .place-photo {
    min-height: 180px;
  }
}

.side-rail .utility-status {
  display: none !important;
}

.side-rail {
  padding-block: 14px;
}

.brand {
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  font-size: 15px;
  box-shadow: 0 8px 18px rgba(188, 21, 43, 0.14);
}

.month-calendar-mini button {
  min-height: 28px;
  border-radius: 6px;
  font-size: 11px;
}

h1 {
  font-size: 20px;
}

.rail-section ul {
  gap: 6px;
}

.rail-section button,
.rail-section a {
  min-height: 34px;
  padding: 4px 9px 7px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 760;
  border-bottom: 3px solid transparent;
  background: transparent;
  box-shadow: none;
}

.icon-button {
  width: 30px;
  height: 30px;
}

.hero-copy,
.planner-card,
.result-stage,
.commerce-strip,
.fold-section,
.month-feature-bar,
.month-feature-chip,
.planner-hero-compact .planner-card {
  border-radius: 14px;
}

.planner-card {
  padding: 14px;
}

label {
  gap: 5px;
}

label span {
  font-size: 12px;
}

select,
input {
  min-height: 34px;
  border-radius: 8px;
  font-size: 13px;
}

.primary-button,
.secondary-button,
.deal-button,
.planner-actions .secondary-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 820;
}

.planner-actions .primary-button {
  flex: 0 0 auto;
  min-width: 116px;
}

.primary-button {
  box-shadow: 0 8px 18px rgba(226, 111, 82, 0.16);
}

.advanced-conditions {
  border-top: 1px solid rgba(24, 33, 47, 0.07);
  padding-top: 8px;
}

.advanced-conditions > summary {
  width: fit-content;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  list-style: none;
}

.advanced-conditions > summary::-webkit-details-marker {
  display: none;
}

.advanced-conditions > summary::after {
  content: " +";
}

.advanced-conditions[open] > summary::after {
  content: " -";
}

.advanced-condition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.month-feature-bar {
  grid-template-columns: minmax(126px, 0.22fr) minmax(0, 1fr);
  height: 106px;
  min-height: 106px;
}

.month-calendar-mini {
  grid-template-columns: repeat(6, minmax(22px, 1fr));
}

.month-feature-chip {
  min-width: min(260px, 72vw);
  padding: 8px 10px;
}

@media (max-width: 720px) {
  .month-feature-bar {
    grid-template-columns: minmax(126px, 0.32fr) minmax(0, 1fr);
    height: 106px;
    min-height: 106px;
  }

  .month-calendar-mini {
    grid-template-columns: repeat(6, minmax(28px, 1fr));
  }

  .planner-card .choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .planner-actions .secondary-button {
    flex: 0 0 auto;
  }
}

@media (max-width: 480px) {
  .month-feature-bar {
    grid-template-columns: 1fr;
    height: 148px;
    min-height: 148px;
  }

  .planner-card .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advanced-condition-grid {
    grid-template-columns: 1fr;
  }
}

.day-drawer summary {
  grid-template-columns: 44px minmax(0, 1fr) auto 26px !important;
  min-height: 58px !important;
  padding: 10px 12px !important;
  gap: 10px !important;
}

.day-drawer-body {
  grid-template-columns: 1fr !important;
  padding: 0 10px 10px !important;
}

.day-stop {
  grid-template-columns: 82px minmax(0, 1fr) !important;
  min-height: 0 !important;
  padding: 10px !important;
  border-radius: 10px !important;
}

.day-stop .place-photo,
.day-sidecar,
.day-stop-copy .place-tags {
  display: none !important;
}

.day-summary strong {
  font-size: 15px !important;
}

.day-time {
  border-radius: 8px !important;
  font-size: 12px !important;
}

/* Compact18 layout stabilization: PWA-first sizing without oversized panels. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.side-rail {
  min-height: 76px;
}

.side-rail::before {
  background:
    linear-gradient(90deg, rgba(251, 250, 245, 0.9) 0%, rgba(251, 250, 245, 0.62) 34%, rgba(251, 250, 245, 0.2) 72%, rgba(251, 250, 245, 0.04) 100%),
    linear-gradient(180deg, rgba(24, 33, 47, 0.08), rgba(24, 33, 47, 0.14));
}

.header-season-video {
  opacity: 0.9;
}

.main-stage {
  width: min(1440px, calc(100% - 32px));
}

.planner-hero-compact .planner-card,
.month-feature-bar,
.fold-section,
.result-stage {
  border-radius: 12px;
}

.month-feature-bar {
  height: 92px;
  min-height: 92px;
  border-color: rgba(108, 77, 145, 0.18);
}

.month-feature-bar::before {
  background:
    linear-gradient(90deg, rgba(251, 250, 245, 0.78) 0%, rgba(251, 250, 245, 0.54) 42%, rgba(251, 250, 245, 0.26) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(108, 77, 145, 0.06));
}

.month-carousel {
  height: 66px;
  padding-bottom: 10px;
}

.month-feature-chip {
  grid-template-columns: 34px minmax(138px, 1fr);
  width: 228px;
  min-width: 228px;
  height: 50px;
  border-radius: 10px;
}

.month-feature-thumb {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.node-intent-strip {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(36, 67, 95, 0.1);
  border-radius: 14px;
  background: #ffffff;
}

.node-intent-head {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.node-intent-head h3 {
  margin: 0;
  font-size: 20px;
}

.node-intent-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.node-intent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.node-intent-grid button {
  display: grid;
  gap: 5px;
  min-height: 76px;
  padding: 11px;
  border: 1px solid rgba(24, 33, 47, 0.1);
  border-radius: 10px;
  background: #fbfaf5;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.node-intent-grid button.active,
.node-intent-grid button:hover {
  border-color: rgba(226, 111, 82, 0.48);
  background: #fff6ef;
}

.node-intent-grid span {
  font-size: 14px;
  font-weight: 950;
}

.node-intent-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.node-intent-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.node-intent-tools button {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(61, 127, 184, 0.18);
  border-radius: 999px;
  background: #f4f8fb;
  color: #24435f;
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
}

.route-data-cache[hidden] {
  display: none;
}

.route-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}

.route-workspace-main {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.trip-status-rail {
  display: none;
  position: static;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(24, 33, 47, 0.08);
  border-radius: 12px;
  background: #ffffff;
}

.trip-status-rail h4 {
  margin: 0;
  font-size: 15px;
}

.trip-status-rail ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trip-status-rail li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
}

.trip-status-rail li > span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: #eef3ec;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.trip-status-rail li.done > span {
  background: #e9f5ee;
  color: var(--leaf-dark);
}

.trip-status-rail li.pending > span {
  background: #f6efe8;
  color: #9b5a33;
}

.trip-status-rail strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.25;
}

.trip-status-rail small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.3;
}

.result-page-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.result-page-tabs button {
  min-height: 54px;
  padding: 8px 9px;
  border: 1px solid rgba(24, 33, 47, 0.08);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.result-page-tabs button.active {
  border-color: rgba(47, 125, 87, 0.36);
  background: #f0f6f1;
}

.result-page-tabs span {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
}

.result-page-tabs b {
  color: var(--leaf-dark);
  font-size: 12px;
}

.result-page-tabs small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.25;
}

.result-tab-panel {
  display: none;
  gap: 10px;
}

.result-tab-panel.active {
  display: grid;
}

.topic-study-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(160px, 0.7fr);
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(61, 127, 184, 0.14);
  border-radius: 12px;
  background: #fbfdff;
}

.topic-study-copy h4 {
  margin: 0 0 6px;
  font-size: 19px;
}

.topic-study-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
  line-height: 1.55;
}

.topic-study-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  align-content: start;
}

.topic-study-points span {
  min-height: 34px;
  padding: 8px;
  border-radius: 9px;
  background: #ffffff;
  color: #24435f;
  font-size: 12px;
  font-weight: 950;
}

.topic-study-nodes {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.topic-study-nodes article {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(24, 33, 47, 0.08);
  border-radius: 9px;
  background: #ffffff;
}

.topic-study-nodes strong,
.topic-study-nodes small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-study-nodes strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.topic-study-nodes small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.route-kit-strip {
  margin-top: 12px;
}

.route-kit-strip > .fold-summary {
  min-height: 48px;
}

.route-kit-strip .region-grid {
  gap: 8px;
}

.route-kit-strip[open] .region-grid {
  max-height: none;
  overflow: visible;
}

.region-pager {
  display: grid;
  gap: 8px;
}

.region-keyword-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  overflow: visible;
  padding-bottom: 0;
}

.region-keyword {
  min-width: 0;
  border-radius: 8px;
}

.region-page-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.region-page-controls button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(47, 125, 87, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: var(--leaf-dark);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.region-page-controls button:disabled {
  cursor: default;
  opacity: 0.42;
}

.region-page-controls span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.region-route-drawer.open {
  max-height: none;
  overflow: visible;
}

.region-route-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  padding-bottom: 0;
}

.region-route-option {
  min-width: 0;
  border-radius: 8px;
}

.jump-highlight {
  box-shadow: 0 0 0 3px rgba(226, 111, 82, 0.16), 0 18px 48px rgba(24, 33, 47, 0.08);
}

.market-strip[open] {
  width: min(360px, calc(100vw - 28px));
}

.market-strip[open] .market-strip-body {
  max-height: min(540px, calc(100vh - 188px));
}

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

.market-input-grid label:last-child {
  grid-column: 1 / -1;
}

.flight-row,
.rental-card {
  min-width: 0;
}

.place-photo {
  min-height: 0;
  max-height: 220px;
  aspect-ratio: 16 / 10;
}

.place-detail {
  align-items: start;
}

@media (min-width: 721px) {
  .route-kit-strip {
    width: min(100%, 940px);
  }
}

@media (max-width: 720px) {
  .side-rail {
    position: sticky;
    top: 0;
    grid-template-columns: minmax(126px, auto) minmax(0, 1fr);
    gap: 10px;
    min-height: 66px;
    padding: 9px 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand .eyebrow {
    margin-bottom: 2px;
    font-size: 9px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  h1 {
    font-size: 17px;
  }

  .rail-section {
    min-width: 0;
    overflow: hidden;
    justify-content: flex-start;
  }

  .rail-section ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .rail-section ul::-webkit-scrollbar {
    display: none;
  }

  .rail-section li {
    flex: 0 0 auto;
  }

  .rail-section button,
  .rail-section a {
    min-height: 24px;
    padding: 3px 7px;
    border-radius: 7px;
    font-size: 11px;
  }

  .main-stage {
    width: calc(100% - 16px);
    padding-top: 10px;
  }

  .month-feature-bar {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 10px;
    height: 92px;
    min-height: 92px;
    margin-bottom: 10px;
    padding: 9px 10px;
  }

  .month-calendar-mini {
    grid-template-columns: repeat(4, minmax(24px, 1fr));
    gap: 5px;
  }

  .month-calendar-mini button {
    min-height: 24px;
    border-radius: 6px;
    font-size: 10px;
  }

  .month-carousel {
    height: 60px;
  }

  .month-feature-chip {
    grid-template-columns: 32px minmax(128px, 1fr);
    width: min(222px, 66vw);
    min-width: min(222px, 66vw);
    height: 48px;
    padding: 6px 8px;
  }

  .month-feature-chip strong {
    font-size: 12px;
  }

  .month-feature-chip small {
    font-size: 11px;
  }

  .planner-card {
    gap: 10px;
    padding: 11px;
  }

  .planner-card .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  label span {
    font-size: 11px;
  }

  select,
  input {
    min-height: 32px;
    padding-inline: 9px;
    font-size: 12px;
  }

  .planner-actions {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 7px;
  }

  .planner-actions .primary-button,
  .planner-actions .secondary-button {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }

  .planner-actions .primary-button {
    grid-column: 1 / -1;
  }

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

  .node-intent-strip {
    padding: 11px;
  }

  .node-intent-head {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

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

  .trip-status-rail {
    position: static;
  }

  .trip-status-rail ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-page-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .result-page-tabs::-webkit-scrollbar {
    display: none;
  }

  .result-page-tabs button {
    flex: 0 0 132px;
  }

  .topic-study-panel {
    grid-template-columns: 1fr;
  }

  .topic-study-nodes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .concept-steps,
  .concept-node-list,
  .concept-story-list,
  .concept-split {
    grid-template-columns: 1fr;
  }

  .topic-page-strip {
    grid-template-columns: 1fr;
  }

  .topic-page-strip nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-kit-strip {
    margin-top: 10px;
  }

  .route-kit-strip > .fold-summary {
    grid-template-columns: minmax(0, 1fr) 28px;
    min-height: 46px;
    padding: 9px 10px;
  }

  .route-kit-strip .fold-summary h3 {
    font-size: 17px;
  }

  .route-kit-strip .region-mode-toggle {
    grid-column: 1 / -1;
    gap: 5px;
  }

  .region-mode-toggle button {
    min-height: 25px;
    padding: 0 8px;
    border-radius: 7px;
    font-size: 10px;
  }

  .region-keyword {
    min-width: 0;
    min-height: 40px;
    padding: 6px 7px;
  }

  .region-keyword strong {
    font-size: 12px;
  }

  .region-keyword span {
    font-size: 10px;
  }

  .region-keyword-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .region-page-controls {
    justify-content: center;
  }

  .region-route-options {
    grid-template-columns: 1fr;
  }

  .region-route-option {
    padding: 7px 8px;
  }

  .region-route-head {
    gap: 4px;
  }

  .region-route-head h4 {
    margin-bottom: 0;
    font-size: 13px;
  }

  .region-route-head p,
  .region-mode-note,
  .region-route-head .region-mini-tags {
    display: none;
  }

  .market-strip {
    right: 10px;
    bottom: 10px;
    left: auto;
    width: min(116px, calc(100vw - 20px));
    max-height: none;
  }

  .market-strip:not([open]) {
    width: min(116px, calc(100vw - 20px));
  }

  .market-strip[open] {
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    max-height: 46vh;
  }

  .market-strip[open] .market-strip-body {
    max-height: calc(46vh - 50px);
    overflow: auto;
  }

  .market-strip > .fold-summary,
  .market-strip[open] > .fold-summary {
    min-height: 38px;
    padding: 7px 9px;
  }

  .market-card {
    padding: 9px;
  }

  .market-input-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .market-card h3 {
    font-size: 14px;
  }

  .flight-best strong {
    font-size: 18px;
  }

  .flight-row,
  .rental-card {
    padding: 9px;
  }

  .place-photo {
    max-height: 160px;
  }
}

@media (max-width: 420px) {
  .shared-menu-hero {
    grid-template-columns: 1fr;
  }

  .shared-menu-id {
    min-width: 0;
  }

  .shared-menu-card-grid,
  .info-card-grid {
    grid-template-columns: 1fr;
  }

  .shared-menu-card,
  .info-card {
    min-height: 0;
  }

  .side-rail {
    grid-template-columns: 1fr;
  }

  .rail-section button,
  .rail-section a {
    font-size: 10px;
  }

  .month-feature-bar {
    grid-template-columns: 1fr;
    height: 132px;
    min-height: 132px;
  }

  .month-calendar-mini {
    grid-template-columns: repeat(6, minmax(22px, 1fr));
  }

  .planner-card .choice-grid,
  .advanced-condition-grid,
  .planner-actions {
    grid-template-columns: 1fr;
  }
}
