:root {
  --ink: #1d2523;
  --muted: #68716d;
  --line: #e4ded3;
  --paper: #faf6ee;
  --panel: #fffdf8;
  --mint: #dceee5;
  --teal: #006d69;
  --teal-dark: #113c3b;
  --coral: #bf604c;
  --amber: #c18a2d;
  --sky: #2f718d;
  --plum: #665884;
  --coffee: #4d4038;
  --shadow: 0 24px 80px rgba(45, 38, 30, 0.13);
  --soft-shadow: 0 14px 34px rgba(45, 38, 30, 0.08);
  --serif:
    "Noto Serif TC",
    "Songti TC",
    Georgia,
    serif;
  --display-sans:
    "Noto Sans TC",
    "PingFang TC",
    "Microsoft JhengHei UI",
    "Microsoft JhengHei",
    system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, #efe7da 0, #faf6ee 430px, #f2eee6 100%);
  font-family:
    "Noto Sans TC",
    "Microsoft JhengHei",
    system-ui,
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

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

.hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: end;
  overflow: hidden;
  padding: 72px clamp(22px, 6vw, 88px) 88px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 35, 38, 0.58) 0, rgba(5, 35, 38, 0.32) 40%, rgba(77, 64, 56, 0.08) 100%),
    linear-gradient(180deg, rgba(18, 22, 21, 0), rgba(18, 22, 21, 0.42)),
    url("./assets/tokyo-editorial-hero.png") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(250, 246, 238, 0), #faf6ee);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 790px;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.34);
}

.eyebrow {
  margin: 0 0 10px;
  color: currentColor;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.76;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 690px;
  margin-bottom: 0;
  font-size: clamp(1.02rem, 1.7vw, 1.24rem);
  font-weight: 600;
  line-height: 1.95;
  opacity: 0.92;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-meta span {
  position: relative;
  padding-right: 18px;
}

.hero-meta span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
  transform: translateY(-50%);
}

.hero-meta span:last-child::after {
  display: none;
}

.planner-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 26px;
  width: min(1480px, calc(100% - 48px));
  margin: -72px auto 60px;
  align-items: start;
}

.control-panel,
.schedule-panel {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 251, 244, 0.98));
  border: 1px solid rgba(77, 64, 56, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.control-panel {
  overflow: hidden;
  position: sticky;
  top: 18px;
}

.panel-section {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.panel-section:last-child {
  border-bottom: 0;
}

.panel-section h2,
.schedule-toolbar h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-family: var(--display-sans);
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: #5d6661;
  font-size: 0.84rem;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cad8d0;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfdf9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

input[readonly] {
  color: #4f5c57;
  background: #eef4ef;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

input:hover,
select:hover {
  border-color: #aebfb5;
  background: #fff;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 3px solid rgba(11, 111, 99, 0.22);
  outline-offset: 2px;
}

.preference-box,
.trip-info {
  margin-top: 8px;
  padding: 18px;
  border: 1px solid rgba(77, 64, 56, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(232, 241, 235, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.preference-box {
  background:
    linear-gradient(135deg, rgba(238, 248, 243, 0.96), rgba(255, 250, 240, 0.9));
}

.preference-box h3,
.trip-info h3 {
  margin: 0 0 10px;
  font-family: var(--display-sans);
  font-size: 1.04rem;
  font-weight: 900;
}

.field-hint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.trip-info dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.trip-info dt {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
}

.trip-info dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.primary-action,
.secondary-action {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 8px;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primary-action {
  color: #fff;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  box-shadow: 0 12px 24px rgba(17, 60, 59, 0.24);
}

.primary-action:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #0b302f, #00645f);
  box-shadow: 0 16px 30px rgba(17, 60, 59, 0.3);
}

.primary-action.needs-plan {
  position: relative;
  background: linear-gradient(135deg, #b86f17, var(--amber));
  box-shadow:
    0 16px 30px rgba(193, 138, 45, 0.3),
    0 0 0 4px rgba(193, 138, 45, 0.18);
}

.primary-action.needs-plan::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(193, 138, 45, 0.42);
  border-radius: 10px;
  pointer-events: none;
}

.secondary-action {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), #b74770);
  box-shadow: 0 10px 22px rgba(207, 90, 73, 0.22);
}

.secondary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(207, 90, 73, 0.26);
}

.collaboration-panel {
  background: linear-gradient(180deg, rgba(235, 244, 239, 0.9), rgba(255, 255, 255, 0));
}

.trip-starter,
.trip-workspace {
  display: grid;
  gap: 12px;
}

.trip-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.status-pill {
  border-radius: 999px;
  padding: 6px 10px;
  color: #4f5c57;
  background: #eef4ef;
  font-size: 0.74rem;
  font-weight: 900;
}

.status-pill.is-saving {
  color: #86540e;
  background: #fff0d0;
}

.status-pill.is-success {
  color: #0a645b;
  background: #dff1ec;
}

.status-pill.is-error {
  color: #9a3123;
  background: #fde3dd;
}

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

.section-heading,
.schedule-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-heading span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--teal-dark);
  background: var(--mint);
  font-size: 0.86rem;
  font-weight: 800;
}

.spot-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.plan-reminder {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e5c26d;
  border-radius: 8px;
  color: #594022;
  background:
    linear-gradient(135deg, rgba(255, 240, 201, 0.98), rgba(255, 250, 240, 0.94));
  box-shadow: 0 12px 28px rgba(193, 138, 45, 0.16);
}

.plan-reminder strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.95rem;
}

.plan-reminder p {
  margin: 0;
  color: #735a31;
  font-size: 0.84rem;
  line-height: 1.55;
}

.plan-reminder.is-hidden {
  display: none;
}

.compact-action {
  min-height: 40px;
  width: 100%;
  background: linear-gradient(135deg, #b86f17, var(--amber));
  box-shadow: 0 10px 20px rgba(193, 138, 45, 0.22);
}

.spot-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(23, 35, 31, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.spot-item strong {
  display: block;
  margin-bottom: 4px;
}

.spot-meta {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.remove-button {
  width: 36px;
  height: 36px;
  border: 1px solid #efd0ca;
  border-radius: 50%;
  color: var(--coral);
  background: #fff7f5;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background 150ms ease;
}

.remove-button:hover {
  transform: rotate(4deg) scale(1.04);
  background: #ffe9e4;
}

.schedule-panel {
  min-height: 620px;
  padding: clamp(22px, 3vw, 34px);
}

.schedule-toolbar {
  margin-bottom: 22px;
}

.schedule-toolbar .eyebrow {
  color: var(--teal);
}

.schedule-toolbar h2 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.day-card {
  --day-accent: var(--teal);
  border: 1px solid rgba(77, 64, 56, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fffdf8, #fffaf0);
  box-shadow: var(--soft-shadow);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.day-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(23, 35, 31, 0.12);
}

.day-card:nth-child(odd) {
  --day-accent: var(--teal);
}

.day-card:nth-child(even) {
  --day-accent: var(--coral);
}

.day-card header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  color: var(--ink);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--day-accent) 16%, #fff8ec), rgba(255, 253, 248, 0.9));
  border-top: 5px solid var(--day-accent);
  border-bottom: 1px solid rgba(77, 64, 56, 0.1);
}

.day-card h3 {
  margin: 0 0 4px;
  font-family: var(--display-sans);
  font-size: 1.28rem;
  font-weight: 900;
}

.day-card header span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  opacity: 1;
}

.day-route-map {
  padding: 18px 20px 20px;
  border-bottom: 1px solid rgba(77, 64, 56, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 243, 232, 0.72));
}

.route-map-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 45%);
  gap: 14px;
  align-items: start;
  margin-bottom: 12px;
}

.route-map-heading .eyebrow {
  margin-bottom: 4px;
  color: var(--day-accent);
  text-shadow: none;
}

.route-map-heading strong {
  display: block;
  color: color-mix(in srgb, var(--day-accent) 58%, var(--muted));
  font-family: var(--display-sans);
  font-size: 1.08rem;
  font-weight: 700;
}

.route-map-heading > span {
  justify-self: end;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.55;
  text-align: right;
}

.route-map-canvas {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(77, 64, 56, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 22%, color-mix(in srgb, var(--day-accent) 9%, transparent), transparent 24%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(246, 241, 230, 0.94));
  scrollbar-width: thin;
}

.route-svg {
  display: block;
  width: 100%;
  height: 176px;
  color: color-mix(in srgb, var(--day-accent) 68%, #4d4038);
}

.route-line {
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 8;
  opacity: 0.82;
}

.route-node circle {
  fill: var(--panel);
  stroke: currentColor;
  stroke-width: 3;
  filter: drop-shadow(0 6px 10px rgba(45, 38, 30, 0.16));
}

.route-node.is-start circle {
  fill: color-mix(in srgb, var(--day-accent) 18%, white);
}

.route-node-number {
  fill: color-mix(in srgb, var(--day-accent) 72%, #17231f);
  font-size: 0.62rem;
  font-weight: 900;
  text-anchor: middle;
}

.route-node-label {
  fill: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  paint-order: stroke;
  stroke: rgba(255, 253, 248, 0.92);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5px;
  text-anchor: middle;
}

.route-empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.google-map-embed {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.google-map-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.google-map-actions span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: right;
}

.map-action-button {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid color-mix(in srgb, var(--day-accent) 30%, #cfc6b8);
  border-radius: 8px;
  padding: 0 12px;
  color: color-mix(in srgb, var(--day-accent) 74%, #17231f);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), color-mix(in srgb, var(--day-accent) 10%, white));
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.map-action-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--day-accent) 54%, #cfc6b8);
  box-shadow: 0 10px 22px rgba(45, 38, 30, 0.1);
}

.map-action-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.google-map-frame:not(:empty) {
  overflow: hidden;
  border: 1px solid rgba(77, 64, 56, 0.12);
  border-radius: 8px;
  background: #fff;
}

.google-map-iframe {
  display: block;
  width: 100%;
  min-height: 260px;
  border: 0;
}

.google-map-warning {
  padding: 14px;
  color: #735a31;
  background:
    linear-gradient(135deg, rgba(255, 240, 201, 0.98), rgba(255, 250, 240, 0.94));
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.55;
}

.route-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.route-summary span {
  min-width: 0;
  border: 1px solid rgba(77, 64, 56, 0.1);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.route-summary strong {
  color: color-mix(in srgb, var(--day-accent) 72%, #17231f);
  font-family: var(--display-sans);
  font-size: 1rem;
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: start;
  gap: 36px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 104px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--day-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--day-accent) 18%, white);
  transform: translateY(-50%);
  z-index: 1;
}

.timeline li::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: -1px;
  left: 108px;
  width: 1px;
  background: #dbe5de;
}

.timeline li:last-child {
  border-bottom: 0;
}

.timeline li:last-child::after {
  display: none;
}

.time {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--day-accent);
  font-family: var(--display-sans);
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1.04;
  text-align: center;
  white-space: nowrap;
}

.time-divider {
  display: block;
  width: 1px;
  height: 14px;
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      transparent,
      color-mix(in srgb, var(--day-accent) 74%, white) 18%,
      color-mix(in srgb, var(--day-accent) 74%, white) 82%,
      transparent
    );
  opacity: 0.9;
}

.activity strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
}

.activity-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 14px;
  row-gap: 6px;
  margin-bottom: 12px;
}

.activity-heading strong {
  margin-bottom: 0;
  min-width: 0;
  line-height: 1.45;
}

.activity-heading span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  color: color-mix(in srgb, var(--day-accent) 62%, #17231f);
  background: color-mix(in srgb, var(--day-accent) 15%, white);
  font-size: 0.7rem;
  font-weight: 900;
}

.activity-heading .source-badge {
  justify-self: end;
  gap: 5px;
  border: 1px solid transparent;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.source-badge::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.62rem;
  line-height: 1;
}

.activity-heading .source-user {
  color: #173f3c;
  background: #d9f0e6;
  border-color: #9ccfbe;
}

.activity-heading .source-user::before {
  content: "✓";
  background: var(--teal);
}

.activity-heading .source-recommended {
  color: #594022;
  background: #fff0c9;
  border-color: #e5c26d;
}

.activity-heading .source-recommended::before {
  content: "AI";
  width: 24px;
  border-radius: 999px;
  background: var(--amber);
  font-size: 0.58rem;
  font-weight: 900;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 0.73rem;
  font-weight: 800;
}

.tag-heritage {
  color: #6f3326;
  background: #ffe4d8;
  border-color: #f2b9a4;
}

.tag-shopping {
  color: #28506e;
  background: #dff0ff;
  border-color: #acd0ec;
}

.tag-exhibition {
  color: #4c3c7c;
  background: #ebe4ff;
  border-color: #c8b9f2;
}

.tag-dining {
  color: #725018;
  background: #fff0c9;
  border-color: #edcf7d;
}

.tag-view {
  color: #133f69;
  background: #dbefff;
  border-color: #a8cae5;
}

.tag-park {
  color: #275532;
  background: #ddf3df;
  border-color: #aad8b0;
}

.tag-photo {
  color: #7b2851;
  background: #ffe0ef;
  border-color: #efabc9;
}

.tag-indoor {
  color: #43505a;
  background: #edf1f4;
  border-color: #c9d2d8;
}

.tag-neutral {
  color: var(--ink);
  background: #fff;
  border-color: #cfdad2;
}

.spot-item .tag-list {
  margin: 8px 0 0;
}

.compact-tags span {
  min-height: 22px;
  padding: 0 8px;
  font-size: 0.7rem;
}

.activity p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.guide-list {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
}

.guide-list div {
  display: grid;
  gap: 3px;
}

.guide-list dt {
  color: color-mix(in srgb, var(--day-accent) 76%, #17231f);
  font-size: 0.75rem;
  font-weight: 900;
}

.guide-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.55;
}

.break .time {
  color: var(--amber);
}

.break::before {
  background: var(--amber);
  box-shadow: 0 0 0 3px #f7e4bd;
}

.travel .time {
  color: var(--sky);
}

.travel {
  background: linear-gradient(90deg, #f3f9fb, rgba(255, 255, 255, 0));
}

.travel::before {
  background: var(--sky);
  box-shadow: 0 0 0 3px #d9edf5;
}

.movement .time {
  color: #52766d;
}

.movement {
  background: linear-gradient(90deg, #f1f8f4, rgba(255, 255, 255, 0));
}

.movement::before {
  background: #6f9488;
  box-shadow: 0 0 0 3px #dcebe5;
}

.movement .activity-heading span {
  color: #31554c;
  background: #dcebe5;
}

.free .time {
  color: #82735d;
}

.free {
  background: linear-gradient(90deg, #fbf4e6, rgba(255, 255, 255, 0));
}

.free::before {
  background: #b99b6b;
  box-shadow: 0 0 0 3px #efe2ca;
}

.unscheduled .time {
  color: var(--coral);
}

.unscheduled {
  background: linear-gradient(90deg, #fff4f1, rgba(255, 255, 255, 0));
}

.unscheduled::before {
  background: var(--coral);
  box-shadow: 0 0 0 3px #f9d8d2;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed #b8c9bf;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

@media (max-width: 900px) {
  .planner-layout {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 720px);
    margin-top: -28px;
  }

  .control-panel {
    position: static;
  }

  .schedule-panel {
    order: -1;
  }

  .hero {
    min-height: 330px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 34px 18px;
  }

  .planner-layout {
    width: calc(100% - 24px);
  }

  .two-columns,
  .trip-actions,
  .schedule-toolbar,
  .section-heading {
    grid-template-columns: 1fr;
    display: grid;
  }

  .primary-action {
    width: 100%;
  }

  .schedule-panel {
    padding: 18px;
  }

  .route-map-heading {
    grid-template-columns: 1fr;
  }

  .route-map-heading > span {
    justify-self: start;
    text-align: left;
  }

  .route-svg {
    width: auto;
  }

  .route-summary {
    grid-template-columns: 1fr;
  }

  .google-map-actions {
    display: grid;
    align-items: start;
  }

  .google-map-actions span {
    text-align: left;
  }

  .google-map-iframe {
    min-height: 220px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px;
  }

  .timeline li::before,
  .timeline li::after {
    display: none;
  }

  .day-card header {
    display: grid;
    align-items: start;
  }
}
