:root {
  --paper: #f8f7f3;
  --white: #fff;
  --ink: #233d37;
  --muted: #7b827b;
  --green: #244b43;
  --light: #eaf0e7;
  --line: #e2e4dc;
  --orange: #c97950;
  --sand: #eeeadd;
  --danger: #ad4d3c;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #bd7847;
  outline-offset: 4px;
}
button:hover:not(:disabled) {
  filter: brightness(0.94);
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: 'Manrope', var(--sans);
}
.topbar {
  height: 85px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5.5vw, 24px);
  background: #faf9f6;
}
.brand {
  font-family: 'Manrope', var(--sans);
  font-weight: 800;
  letter-spacing: -1.5px;
  font-size: 29px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.brand svg {
  width: 30px;
  height: 32px;
}
nav {
  display: flex;
  gap: 32px;
  height: 100%;
  align-items: center;
}
.nav-item {
  height: 100%;
  font-weight: 550;
  font-size: 13px;
  position: relative;
}
.nav-item.active:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
}
main {
  max-width: 1320px;
  margin: auto;
  padding: 49px 54px 40px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 34px;
  gap: 20px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.9px;
}
.intro h1 {
  font-size: 37px;
  font-weight: 650;
  letter-spacing: -1.7px;
  margin: 10px 0 8px;
}
.intro h1 em {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -1.3px;
  color: #6d826e;
}
.intro p {
  font-size: 13px;
  color: var(--muted);
}
.button {
  background: var(--white);
  border: 1px solid #d9ded4;
  border-radius: 7px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 550;
  font-size: 12px;
  min-height: 41px;
  text-decoration: none;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
  box-shadow: 0 2px 3px #244b4310;
}
.intro .button {
  margin-top: 25px;
}
.button span {
  font-size: 18px;
  font-weight: 400;
}
.small {
  padding: 7px 12px;
  min-height: 34px;
}
.trip-banner {
  position: relative;
  overflow: hidden;
  min-height: 161px;
  background: #e9ece3;
  border: 1px solid #dce2d5;
  border-radius: 12px;
  display: flex;
  align-items: center;
}
.banner-picture {
  width: 184px;
  align-self: stretch;
  flex-shrink: 0;
  background: #a6b3a0
    url('https://images.unsplash.com/photo-1528181304800-259b08848526?auto=format&fit=crop&w=600&q=85')
    center 60% / cover;
}
.trip-banner-main {
  padding: 26px 28px;
}
.trip-banner .eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #5a705b;
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-dot,
.tiny-dot {
  display: inline-block;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  background: #738f65;
}
.separator {
  color: #aab6a4;
  padding: 0 5px;
}
.trip-banner h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
  font-weight: 650;
  margin: 10px 0;
}
.trip-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  color: #667561;
}
.trip-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trip-meta svg {
  width: 14px;
  height: 14px;
}
.banner-quote {
  margin-left: auto;
  padding: 20px 43px 20px 20px;
  font: 17px/1.4 var(--serif);
  color: #6e806b;
}
.banner-quote span {
  display: block;
  font: 8px var(--sans);
  letter-spacing: 2px;
  margin-top: 15px;
  color: #8e9c87;
}
.banner-edit {
  position: absolute;
  right: 14px;
  top: 12px;
  color: #6e806b;
}
.icon-button {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-button:hover {
  background: #e5eadd;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.25fr;
  margin: 23px 0 28px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fdfcf9;
  padding: 19px 0;
}
.metric {
  padding: 0 25px;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border: 0;
}
.metric-label {
  color: #7f877a;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.metric-value {
  font-family: 'Manrope', var(--sans);
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.8px;
  margin-top: 3px;
}
.metric-value small {
  font: 11px var(--sans);
  letter-spacing: 0;
  font-weight: 400;
  margin-left: 5px;
  color: #788270;
}
.metric.positive .metric-value {
  color: #61795a;
}
.workspace-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  align-items: center;
  min-height: 53px;
}
.tabs {
  display: flex;
  align-self: stretch;
  gap: 22px;
}
.tabs button {
  font-size: 11px;
  color: #818679;
  padding: 0 0 15px;
  align-self: stretch;
  position: relative;
}
.tabs button[aria-selected='true'] {
  font-weight: 650;
  color: var(--ink);
}
.tabs button[aria-selected='true']:after {
  position: absolute;
  content: '';
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
}
#route-count {
  border-radius: 4px;
  padding: 2px 5px;
  background: #e6ebdf;
  color: #65765a;
  font-size: 9px;
  margin-left: 5px;
}
.toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.save-state {
  font-size: 9px;
  color: #88927f;
  margin-right: 6px;
}
.planner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 31px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.section-heading h3 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
.section-heading p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.text-button {
  font-size: 10px;
  font-weight: 600;
  padding: 6px 0;
}
.route-column > .section-heading {
  margin-bottom: 20px;
}
.route-card {
  position: relative;
  display: grid;
  grid-template-columns: 26px 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px 15px 15px 7px;
  border: 1px solid #dfe3d9;
  border-radius: 9px;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.route-card:hover,
.route-card.selected {
  border-color: #99aa8d;
  box-shadow: 0 3px 15px #244b4305;
}
.route-card.selected {
  background: #fffefa;
}
.stop-thumb {
  width: 54px;
  height: 62px;
  border-radius: 5px;
  object-fit: cover;
  background: #e1e9d9;
}
.thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font: 26px var(--serif);
  color: #78916d;
  background: linear-gradient(145deg, #dbe4d1, #f0ede2);
}
.stop-name {
  display: flex;
  align-items: center;
  gap: 7px;
}
.stop-name button {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  text-align: left;
}
.stop-date {
  font-size: 10px;
  color: #8a8e80;
  margin: 3px 0 6px;
}
.status {
  font-size: 8px;
  border-radius: 3px;
  display: inline-flex;
  padding: 2px 5px;
  gap: 4px;
  align-items: center;
  background: #edf1e7;
  color: #7a896c;
}
.status.booked {
  color: #4a7168;
  background: #e4eee8;
}
.status.wish {
  background: #f5ede0;
  color: #a0814d;
}
.card-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.connector {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: #8c9583;
  margin-left: 19px;
  min-height: 32px;
  padding-left: 23px;
  border-left: 1px dashed #c8d2bf;
}
.connector svg {
  width: 11px;
  height: 11px;
}
.connector.unknown {
  color: #a17b42;
}
.endpoint {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  margin: 10px 0 14px;
  color: #78816f;
}
.endpoint svg {
  width: 14px;
  height: 14px;
}
.endpoint strong {
  font-weight: 600;
  color: #53654c;
}
.route-bottom {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: #959c8b;
  margin: 15px 0 8px;
}
.map-column {
  padding-top: 2px;
}
.map-card {
  border: 1px solid #dce2d6;
  border-radius: 10px;
  background: #e5ede4;
  overflow: hidden;
}
.map-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 20px;
  font-size: 8px;
  letter-spacing: 1.3px;
  font-weight: 550;
  color: #69816b;
}
.map-top .tiny-dot {
  width: 4px;
  height: 4px;
  margin-right: 5px;
}
#map {
  height: 451px;
}
#map svg {
  width: 100%;
  height: 100%;
}
.map-caption {
  display: flex;
  justify-content: space-between;
  padding: 12px 19px;
  font-size: 8px;
  color: #839382;
  border-top: 1px solid #d6e1d3;
}
.map-pin {
  cursor: pointer;
}
.map-pin:focus {
  outline: none;
}
.map-pin:focus circle {
  stroke: #bf754a;
  stroke-width: 4;
}
.data-note {
  font-size: 9px;
  color: #959c8b;
  line-height: 1.7;
  margin: 15px 8px;
}
.data-note button {
  font-size: 9px;
  text-decoration: underline;
  padding: 0;
}
.next-section {
  margin-top: 43px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.next-section .eyebrow {
  font-size: 8px;
  color: #929a86;
  margin-bottom: 7px;
}
.next-section h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
  font-weight: 650;
}
.muted {
  color: var(--muted);
  font-size: 10px;
}
.next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 21px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 24px max(calc((100vw - 1212px) / 2), 54px);
  display: flex;
  align-items: center;
  gap: 15px;
  color: #929a87;
  font-size: 10px;
}
footer > div {
  margin-left: auto;
  display: flex;
  gap: 20px;
}
footer button {
  font-size: 9px;
  color: #929a87;
  padding: 0;
}
.mobile-view {
  display: none;
}
.notice {
  padding: 13px 15px;
  background: #eef0e3;
  color: #6c795f;
  border-radius: 6px;
  font-size: 11px;
  margin-top: 15px;
  line-height: 1.7;
}
.notice.warning {
  background: #f6eadd;
  color: #a1673d;
}
.notice.danger {
  background: #f6e6df;
  color: #a14f3f;
}
.notice button {
  font-size: inherit;
  text-decoration: underline;
  padding: 0;
  margin-left: 6px;
}
#shared-notice .notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 10;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 15px;
}
dialog {
  border: 1px solid #e1e5d9;
  border-radius: 14px;
  box-shadow: 0 25px 100px #173b3426;
  max-width: 670px;
  width: calc(100% - 32px);
  max-height: calc(100dvh - 48px);
  padding: 25px 30px;
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop {
  background: #1b302a66;
  backdrop-filter: blur(3px);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #829075;
}
.dialog-top .eyebrow {
  font-size: 8px;
}
dialog h2 {
  font-size: 25px;
  letter-spacing: -0.8px;
  margin-bottom: 9px;
}
dialog .lead {
  font-size: 12px;
  color: #7d8775;
  line-height: 1.7;
  margin-bottom: 21px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 550;
}
.field.full {
  grid-column: 1/-1;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d7ddcf;
  border-radius: 6px;
  padding: 11px;
  background: #fff;
  color: var(--ink);
  min-height: 43px;
  font-size: 12px;
}
textarea {
  resize: vertical;
  min-height: 82px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.form-error {
  color: var(--danger);
  font-size: 11px;
  margin-top: 12px;
}
.fine {
  font-size: 10px;
  color: #8d9584;
  line-height: 1.7;
}
.dest-option {
  padding: 15px;
  border: 1px solid #dce2d4;
  background: white;
  border-radius: 7px;
  text-align: left;
}
.dest-option strong {
  display: block;
  font-size: 13px;
}
.dest-option small {
  display: block;
  color: #929b85;
  font-size: 9px;
  margin-top: 4px;
}
.dest-option span {
  display: block;
  font-size: 10px;
  color: #7b876f;
  margin-top: 7px;
}
.example-list {
  display: grid;
  gap: 12px;
}
.example-option {
  padding: 20px;
  border: 1px solid #dce2d4;
  border-radius: 8px;
  text-align: left;
  background: #edf0e6;
}
.example-option strong {
  display: block;
  font: 21px var(--serif);
}
.example-option span {
  font-size: 11px;
  color: #7c8773;
  display: block;
  margin-top: 6px;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
  font-size: 11px;
  border-bottom: 1px solid #edf0e8;
}
.stat-row strong {
  font-weight: 600;
  text-align: right;
}
.empty-state {
  padding: 45px 20px;
  border: 1px dashed #c8d1bf;
  border-radius: 9px;
  text-align: center;
}
.empty-state h3 {
  font: 25px var(--serif);
  margin-bottom: 10px;
}
.empty-state p {
  color: #87917d;
  font-size: 12px;
  margin-bottom: 20px;
}
.saved-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 15px;
  margin: 12px 0;
  background: #fff;
}
.saved-card strong {
  font-size: 13px;
}
.saved-card p {
  font-size: 10px;
  color: #919a87;
  margin-top: 3px;
}
.saved-actions {
  display: flex;
  gap: 8px;
}
.saved-actions button {
  font-size: 11px;
}
.danger-text {
  color: var(--danger);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: #254b43;
  color: #fff;
  border-radius: 7px;
  padding: 12px 20px;
  box-shadow: 0 4px 25px #163b3420;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  max-width: 90vw;
  font-size: 12px;
  text-align: center;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1500px) {
  main {
    padding-top: 55px;
  }
  .intro h1 {
    font-size: 42px;
  }
  .topbar {
    padding-left: max(calc((100vw - 1212px) / 2), 54px);
    padding-right: max(calc((100vw - 1212px) / 2), 54px);
  }
}
@media (max-width: 1100px) {
  main {
    padding: 35px 30px;
  }
  .topbar {
    padding: 0 30px;
  }
  .intro h1 {
    font-size: 33px;
  }
  .banner-quote {
    display: none;
  }
  .trip-banner-main {
    padding: 23px;
  }
  .planner-grid {
    gap: 22px;
    grid-template-columns: 1.15fr 1fr;
  }
  .save-state {
    display: none;
  }
  .tabs {
    gap: 19px;
  }
  .route-card {
    gap: 8px;
    padding-right: 10px;
    grid-template-columns: 22px 46px minmax(0, 1fr) auto;
  }
  .stop-thumb {
    width: 46px;
    height: 57px;
  }
  .metric {
    padding: 0 18px;
  }
  .metric-value {
    font-size: 23px;
  }
  footer {
    padding: 24px 30px;
  }
}
@media (max-width: 800px) {
  nav {
    gap: 16px;
  }
  .intro h1 {
    font-size: 31px;
  }
  .intro .button {
    font-size: 10px;
    padding: 10px;
  }
  .planner-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: 18px;
  }
  .route-card {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 8px;
  }
  .route-card .stop-thumb {
    display: none;
  }
  .stop-name button {
    font-size: 12px;
  }
  .tabs {
    gap: 13px;
  }
  .tabs button {
    font-size: 10px;
  }
  .toolbar-actions {
    gap: 5px;
  }
  .toolbar-actions .button {
    font-size: 10px;
    padding: 6px 8px;
  }
  .metric {
    padding: 0 13px;
  }
  .metric-value {
    font-size: 20px;
  }
  .metric-value small {
    font-size: 9px;
  }
  .metric-label {
    font-size: 9px;
  }
  .next-grid {
    gap: 10px;
  }
  .next-section .muted {
    display: none;
  }
}
@media (max-width: 650px) {
  .topbar {
    height: 67px;
    padding: 0 20px;
  }
  .brand {
    font-size: 26px;
  }
  .brand svg {
    width: 25px;
  }
  .topbar nav {
    gap: 17px;
    margin-left: auto;
    margin-right: 18px;
  }
  .nav-item {
    font-size: 10px;
  }
  .nav-item:first-child {
    display: none;
  }
  main {
    padding: 29px 20px;
  }
  .intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 19px;
    margin-bottom: 23px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  .intro h1 {
    font-size: 32px;
    letter-spacing: -1.4px;
    margin-top: 9px;
  }
  .intro p {
    font-size: 11px;
    max-width: 295px;
    line-height: 1.7;
  }
  .intro .button {
    margin: 0;
    min-height: 39px;
    padding: 9px 13px;
    font-size: 11px;
  }
  .trip-banner {
    min-height: 145px;
    border-radius: 9px;
  }
  .banner-picture {
    width: 78px;
  }
  .trip-banner-main {
    padding: 19px 13px;
  }
  .trip-banner h2 {
    font-size: 20px;
    max-width: 220px;
    line-height: 1.35;
    margin: 9px 0;
  }
  .trip-banner .eyebrow {
    font-size: 7px;
    letter-spacing: 0.8px;
    gap: 5px;
  }
  .trip-meta {
    font-size: 9px;
    gap: 8px;
  }
  .trip-meta svg {
    width: 11px;
    height: 11px;
  }
  .banner-edit {
    top: 4px;
    right: 4px;
    font-size: 17px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    row-gap: 19px;
    padding: 18px 0;
    margin: 18px 0 20px;
  }
  .metric {
    padding: 0 16px;
  }
  .metric:nth-child(2) {
    border: 0;
  }
  .metric:nth-child(n + 3) {
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }
  .metric-value {
    font-size: 24px;
  }
  .metric-value small {
    font-size: 10px;
  }
  .metric-label {
    font-size: 9px;
  }
  .workspace-toolbar {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
  }
  .tabs {
    gap: 23px;
    width: 100%;
    height: 39px;
    order: 2;
  }
  .tabs button {
    font-size: 11px;
    padding-bottom: 10px;
  }
  .toolbar-actions {
    width: 100%;
    justify-content: flex-end;
    margin: 0 0 8px;
  }
  .save-state {
    display: block;
    margin-right: auto;
    font-size: 8px;
  }
  .toolbar-actions .button {
    font-size: 10px;
    padding: 5px 10px;
  }
  .planner-grid {
    display: block;
  }
  .mobile-view {
    display: flex;
    background: #eaece3;
    border-radius: 6px;
    padding: 3px;
    margin-bottom: 20px;
    gap: 4px;
  }
  .mobile-view button {
    width: 50%;
    padding: 7px;
    font-size: 10px;
    border-radius: 4px;
    color: #8a937e;
  }
  .mobile-view button.selected {
    background: #fff;
    color: var(--green);
    box-shadow: 0 1px 4px #203c3410;
  }
  .map-column {
    display: none;
  }
  .map-mode .map-column {
    display: block;
  }
  .map-mode .route-column {
    display: none;
  }
  .section-heading h3 {
    font-size: 14px;
  }
  .section-heading p {
    font-size: 10px;
  }
  .route-card {
    grid-template-columns: 22px 49px minmax(0, 1fr) auto;
    padding: 13px 11px 13px 5px;
    gap: 9px;
  }
  .route-card .stop-thumb {
    display: block;
    width: 49px;
    height: 59px;
  }
  .route-card .thumb-fallback {
    display: flex;
  }
  .stop-name button {
    font-size: 12px;
  }
  .connector {
    font-size: 8px;
    min-height: 30px;
  }
  .next-section {
    margin-top: 28px;
    padding-top: 25px;
  }
  .next-section h2 {
    font-size: 18px;
  }
  .next-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 17px;
  }
  footer {
    padding: 21px 20px;
    flex-wrap: wrap;
    gap: 10px;
  }
  footer > div {
    width: 100%;
    margin: 3px 0 0;
    gap: 19px;
  }
  dialog {
    padding: 19px;
    max-height: calc(100dvh - 30px);
  }
  dialog h2 {
    font-size: 23px;
  }
  .form-grid {
    gap: 12px;
  }
  .dest-option {
    padding: 12px;
  }
  .dest-option strong {
    font-size: 12px;
  }
  .dest-option span {
    font-size: 9px;
  }
  .form-actions .button {
    flex: 1;
  }
  .saved-card {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body {
    background: white;
    font-size: 11px;
  }
  #landing,
  .topbar,
  .intro,
  .workspace-toolbar,
  .toolbar-actions,
  .card-actions,
  .next-section,
  footer,
  .data-note,
  .route-bottom,
  .text-button,
  .banner-edit,
  .mobile-view,
  #toast,
  dialog,
  .notice button {
    display: none !important;
  }
  main {
    display: block !important;
    padding: 0;
    max-width: none;
  }
  .trip-banner {
    min-height: 120px;
  }
  .metrics {
    margin: 15px 0;
  }
  .planner-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
  }
  .route-card {
    break-inside: avoid;
    padding: 8px;
    grid-template-columns: 25px 1fr;
    min-height: 70px;
  }
  .route-card .stop-thumb {
    display: none;
  }
  .map-column {
    display: block !important;
  }
  .route-column {
    display: block !important;
  }
  #panel-route {
    display: block !important;
  }
  #panel-budget {
    display: none !important;
  }
  .trip-banner-main {
    padding: 15px;
  }
  .map-card {
    break-inside: avoid;
  }
  .endpoint {
    margin: 7px 0;
  }
  .connector {
    min-height: 23px;
  }
  .map-top {
    padding: 12px;
  }
  #map {
    height: 370px;
  }
  a {
    text-decoration: none;
  }
}

/* A quieter front door: one promise, one destination, one first step. */
.account-library-tabs {
  display: flex;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-top: 18px;
}
.account-library-tabs button {
  font-size: 12px;
  color: #8d977f;
}
.account-library-tabs button.selected {
  color: #284f40;
  font-weight: 650;
}
.sync-error {
  color: #b25e40 !important;
}
@media (max-width: 650px) {
  .topbar nav .nav-item:nth-child(2) {
    display: none;
  }
  .topbar nav {
    margin-right: 13px;
  }
  .account-library-tabs {
    gap: 12px;
  }
}

/* Preference-aware comparisons reuse existing cards and responsive layout. */
.stop-preference {
  font-size: 11px;
  color: #52685d;
  margin-top: 6px;
}
.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 18px;
  margin: 24px 0;
}
.rec-card {
  border: 1px solid #d5dace;
  border-radius: 16px;
  background: #faf9f3;
  padding: 22px;
  min-width: 0;
}
.rec-card h3 {
  font-size: 23px;
  margin: 14px 0;
}
.rec-card p {
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.rec-kind {
  font-size: 12px;
  text-transform: uppercase;
  color: #75533d;
  font-weight: 700;
}
.rec-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.rec-card a {
  color: #315747;
  text-decoration: underline;
}
@media (max-width: 600px) {
  .rec-card {
    padding: 18px;
  }
}

/* Journey workspace: neutral entry points and responsive editors. */
.stop-country {
  font-size: 11px;
  color: #687c6c;
  margin: 5px 0;
}
.banner-picture {
  background: linear-gradient(135deg, #244b43, #a0b29b) !important;
}
.metric-value {
  overflow-wrap: anywhere;
}
.endpoint {
  flex-wrap: wrap;
}
.route-card .stop-name {
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .banner-quote {
    display: none;
  }
}
@media (max-width: 650px) {
  .topbar {
    height: auto;
    min-height: 78px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 20px;
  }
  .topbar nav {
    order: 3;
    flex-basis: 100%;
    height: 30px;
    justify-content: space-between;
    margin: 0;
    gap: 12px;
  }
  .topbar nav .nav-item {
    display: inline-block !important;
    font-size: 11px;
  }
  .topbar nav .nav-item.active:after {
    bottom: 0;
  }
}

/* Universal places and explicit route review */
.place-results {
  max-height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
}
.place-results:empty {
  display: none;
}
.place-results .dest-option {
  width: 100%;
  text-align: left;
  min-height: 56px;
  border: 1px solid #d3ddd5;
  background: #fff;
  padding: 12px;
  margin: 4px 0;
  border-radius: 10px;
}
.place-results [aria-selected='true'],
.place-results button:hover {
  background: #e5ede4;
  outline: 2px solid #244b43;
}
.place-state {
  display: block;
  margin: 6px 0;
  color: #52645d;
  line-height: 1.5;
}
.place-query {
  width: 100%;
  min-height: 48px;
}
.batch-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #d3ddd5;
  flex-wrap: wrap;
}
.batch-row strong {
  flex: 1;
  min-width: 120px;
}
.batch-row span {
  font-size: 12px;
}
.batch-row button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #c5d2c8;
  border-radius: 8px;
  background: #fff;
  color: #244b43;
  cursor: pointer;
}
#toast button {
  background: white;
  color: #244b43;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
}
#batch-preview {
  margin-top: 24px;
}
#batch-apply {
  white-space: normal;
}
#dialog-content .field > span {
  display: block;
  width: 100%;
}
@media (max-width: 600px) {
  .batch-row span {
    width: 100%;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .place-results {
    max-height: 220px;
  }
}
#toast.show {
  pointer-events: auto;
}

#map {
  min-height: 420px;
  height: 470px;
  position: relative;
}
#map .maplibregl-canvas {
  border-radius: 0;
}
.journey-marker {
  background: #244b43;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  min-width: 36px;
  min-height: 36px;
  font-weight: 700;
  box-shadow: 0 2px 8px #0005;
}
.journey-marker.selected {
  background: #ad4d3c;
}
.place-results {
  max-height: 300px;
  overflow: auto;
}
.place-results [aria-selected='true'] {
  background: #eaf0e7;
  outline: 2px solid #244b43;
}
.batch-row {
  flex-wrap: wrap;
}
@media (max-width: 650px) {
  #map {
    height: 420px;
  }
  .batch-row {
    gap: 8px;
  }
}

@media (max-width: 650px) {
  .metric-value {
    font-size: 20px !important;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.4;
  }
  .metric {
    padding: 12px;
  }
  .maplibregl-ctrl-attrib {
    max-width: 100%;
    font-size: 10px;
  }
}
/* UX personalization: one timeline, immediate pace controls, optional details. */
.intro-details {
  margin: 20px 0;
}
.intro-details summary,
details summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
}
.route-card {
  align-items: start;
}
.route-card .stop-preference {
  display: none;
}
.preview-timeline {
  line-height: 2;
}
.new-stop {
  background: #e2eee5;
  color: #244b43;
  font-weight: 700;
}
:focus-visible {
  outline: 3px solid #b66d31;
  outline-offset: 4px;
}
#station-recommendations {
  margin-top: 30px;
  border-top: 1px solid #d5ded8;
  padding-top: 20px;
}
#station-recommendations .recommendation-grid {
  grid-template-columns: 1fr;
}
.trip-banner {
  min-height: 160px;
}
.banner-quote {
  display: none;
}
@media (min-width: 901px) {
  .planner-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  }
}
@media (max-width: 650px) {
  .topbar {
    flex-wrap: wrap;
    height: auto;
    padding: 14px 16px;
  }
  .topbar nav {
    display: flex;
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .topbar .nav-item {
    font-size: 13px;
    padding: 10px 4px;
  }
  .route-card {
    grid-template-columns: 25px 1fr auto;
    gap: 9px;
  }
  .route-card > .stop-thumb {
    display: none;
  }
  .recommendation-grid {
    grid-template-columns: 1fr;
  }
  .toolbar-actions {
    flex-wrap: wrap;
  }
  .trip-banner .banner-picture {
    display: none;
  }
  .trip-banner {
    min-height: 120px;
  }
  .trip-banner-main {
    padding: 20px;
  }
  .workspace-toolbar {
    gap: 12px;
  }
}
.route-card .text-button {
  font-size: 12px;
  text-align: left;
}
.notice > .button {
  display: inline-flex;
}
.intro-details > summary {
  color: #52695c;
}
