/* Shared visual layer for the public site and trip workspace. */
html { scroll-behavior: smooth; }
body { font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { min-width: 0; }
button { line-height: 1.4; }
button, a, input, select, textarea, summary { touch-action: manipulation; }
:where(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid #9bbbff;
  outline-offset: 3px;
}
::selection { color: #fff; background: var(--accent); }
:where(h1, h2, h3, p, strong, span, small) { overflow-wrap: anywhere; }
.icon { align-items: center; justify-content: center; }
.icon svg { stroke-width: 1.8; }
.meta, .table-meta, .form-label, .section-head p { font-size: 14px; }

/* Public homepage: an open photograph, followed by an unframed route. */
body[data-current-view="home"], .home-page { color: var(--text); background: #fff; }
.home-nav {
  min-height: 88px;
  padding: 16px max(32px, calc((100% - 1376px) / 2));
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  z-index: 10;
}
.home-brand { gap: 12px; }
.home-brand-mark, .brand-mark {
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  color: var(--accent);
  background: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}
.home-brand-mark { width: 52px; height: 52px; }
.home-brand-mark img, .brand-mark img { transform: scale(1.08); }
.home-brand-copy strong { font-size: 23px; font-weight: 800; }
.home-brand-copy small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.home-nav-links { gap: 36px; }
.home-nav-link { padding: 14px 0; color: var(--muted); font-size: 15px; font-weight: 600; }
.home-nav-link:hover, .home-nav-link:focus-visible, .home-nav-link.is-active { color: var(--ink); }
.home-nav-link.is-active::after { height: 3px; bottom: 4px; background: var(--accent); }
.home-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 42px;
  max-width: 190px;
  padding: 9px 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-size: 14px;
  font-weight: 650;
}
.home-nav-cta .account-chevron { color: #fff; }
.home-nav-cta:hover, .home-nav-cta:focus-visible { color: #fff; border-color: var(--accent); background: var(--accent); }
.home-hero {
  display: flex;
  align-items: center;
  height: min(720px, calc(100svh - 170px));
  min-height: 470px;
  padding: 48px max(40px, calc((100% - 1344px) / 2));
  background: #08618c url("./assets/trippal-coast.png") center 54% / cover no-repeat;
}
.home-hero-copy { width: min(100%, 640px); max-width: none; text-shadow: 0 2px 8px rgba(0, 34, 56, .2); }
.home-kicker { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.home-hero .home-kicker { color: #fff; font-size: 13px; }
.home-hero h1 { margin: 14px 0 22px; font-size: 104px; line-height: 1; font-weight: 800; letter-spacing: 0; }
.home-hero-lead { margin-bottom: 18px; max-width: none; color: #fff; font-size: 32px; line-height: 1.5; font-weight: 600; }
.home-hero-detail { max-width: 450px; color: #fff; font-size: 16px; line-height: 1.7; margin-bottom: 0; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.home-primary-button, .home-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-shadow: none;
  transition: background .18s, color .18s, transform .18s;
}
.home-primary-button { color: var(--ink); border: 1px solid #fff; background: #fff; }
.home-primary-button > span { font-size: 22px; line-height: 1; color: var(--accent); }
.home-secondary-button { border: 1px solid rgba(255, 255, 255, .75); color: #fff; background: rgba(0, 36, 63, .1); }
.home-primary-button:hover, .home-primary-button:focus-visible { color: var(--accent); background: #f2f6ff; transform: translateY(-2px); }
.home-secondary-button:hover, .home-secondary-button:focus-visible { color: var(--ink); background: #fff; transform: translateY(-2px); }
.home-trust-row { margin-top: 22px; gap: 16px; color: #fff; font-size: 13px; font-weight: 500; }
.home-trust-row span + span { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .5); }
.home-hero-caption { bottom: 30px; right: 40px; gap: 5px; color: #fff; text-align: right; text-shadow: 0 2px 5px rgba(0, 0, 0, .45); }
.home-hero-caption span { font-size: 12px; letter-spacing: 0; }
.home-hero-caption strong { font-size: 16px; font-weight: 500; }
.home-route-showcase { padding: 40px max(40px, calc((100% - 1344px) / 2)) 48px; scroll-margin-top: 20px; background: #fff; }
.home-route-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.home-route-heading h2 { margin: 9px 0 7px; font-size: 32px; line-height: 1.3; }
.home-route-heading p { margin: 0; color: var(--muted); font-size: 15px; }
.home-route-heading p > span { margin-inline: 10px; color: var(--accent); }
.home-route-meta { display: grid; justify-items: end; gap: 10px; font-size: 13px; color: var(--muted); }
.home-route-stops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 30px; }
.home-route-stop { position: relative; padding-top: 18px; border-top: 2px solid var(--line); }
.home-route-stop::before { content: ""; position: absolute; left: 0; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.home-route-stop:nth-child(2)::before { background: #dc734b; }
.home-route-stop:nth-child(3)::before { background: #15938a; }
.home-route-day { color: var(--accent); font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.home-route-stop:nth-child(2) .home-route-day { color: #aa422e; }
.home-route-stop:nth-child(3) .home-route-day { color: #087b73; }
.home-route-stop h3 { margin-top: 9px; font-size: 18px; font-weight: 650; }
.home-route-stop p { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.home-inspiration { padding: 24px max(40px, calc((100% - 1344px) / 2)) 64px; background: #fff; }
.home-inspiration-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 32px; }
.home-landscape { min-width: 0; margin: 0; }
.home-landscape:nth-child(2) { margin-top: 56px; }
.home-landscape img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.home-landscape figcaption { padding-top: 20px; }
.home-landscape figcaption span { color: #087b73; font-size: 14px; font-weight: 600; }
.home-landscape:nth-child(2) figcaption span { color: #aa422e; }
.home-landscape h3 { margin: 8px 0; color: var(--ink); font-size: 23px; line-height: 1.5; }
.home-landscape p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.home-image-credit { margin: 24px 0 0; text-align: right; color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .home-inspiration { padding: 24px 24px 40px; }
  .home-inspiration-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .home-landscape:nth-child(2) { margin-top: 0; }
  .home-landscape h3 { font-size: 21px; }
}
.home-pathways { padding: 66px max(40px, calc((100% - 1344px) / 2)); background: #f6f7f9; color: var(--ink); }
.home-section-heading { margin-bottom: 36px; }
.home-section-heading .home-kicker, .home-bottom-cta .home-kicker { color: var(--muted); }
.home-section-heading h2, .home-bottom-cta h2 { margin: 12px 0 0; color: var(--ink); font-size: 34px; line-height: 1.4; }
.home-pathway-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; max-width: none; }
.home-pathway { display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 16px; min-height: 0; padding: 24px 0 0; border-top: 1px solid #cdd2da; }
.home-pathway-index { color: #8a909b; font-size: 14px; font-weight: 500; }
.home-pathway > .icon { width: 30px; height: 30px; margin: 0; color: var(--accent); }
.home-pathway > .icon svg { width: 30px; height: 30px; }
.home-pathway:nth-child(2) > .icon { color: #b64e35; }
.home-pathway:nth-child(3) > .icon { color: #087f8c; }
.home-pathway h3 { grid-column: 1 / -1; margin: 0; font-size: 21px; color: var(--ink); }
.home-pathway p { grid-column: 1 / -1; max-width: 310px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.home-bottom-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 64px max(40px, calc((100% - 1344px) / 2)); background: #fff; border: 0; color: var(--ink); }
.home-bottom-cta .home-primary-button { color: #fff; border-color: var(--accent); background: var(--accent); }
.home-bottom-cta .home-primary-button > span { color: #fff; }
.home-bottom-cta .home-primary-button:hover, .home-bottom-cta .home-primary-button:focus-visible { background: var(--accent-hover); }
.home-footer { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 28px max(40px, calc((100% - 1344px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.home-footer strong { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; color: var(--ink); font-size: 21px; }
.home-footer strong span { color: var(--muted); font-size: 13px; font-weight: 400; }

/* Workspace chrome and repeated content. */
.app-shell { grid-template-columns: 220px minmax(0, 1fr); }
.sidebar { padding: 26px 16px; gap: 30px; color: var(--text); background: #fff; border-right: 1px solid var(--line); }
.brand { border-bottom: 0; padding: 0 4px; gap: 10px; cursor: pointer; }
.brand strong { color: var(--ink); font-size: 20px; }
.brand span { color: var(--muted); font-size: 12px; }
.nav-list { gap: 8px; }
.nav-item { min-height: 46px; padding: 12px; color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-item:hover, .nav-item:focus-visible { border-color: transparent; color: var(--ink); background: var(--panel-alt); }
.nav-item.active { border-color: transparent; background: var(--accent-soft); color: var(--accent); }
.nav-item.active .icon { color: var(--accent); }
.main-shell { padding: 0 28px 36px; }
.topbar { min-height: 96px; padding: 20px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
.topbar h1 { font-size: 25px; font-weight: 750; }
.topbar .eyebrow { font-size: 12px; color: var(--muted); }
.top-actions { gap: 10px; }
.notice-row { margin: 20px 0; padding: 16px 18px; border: 0; border-left: 3px solid #e8ac4d; border-radius: 0; background: #fff; }
.notice-row strong { color: var(--ink); }
.status-pills > span { border: 0; border-radius: 4px; background: var(--panel-alt); color: var(--muted); font-size: 12px; }
.status-pills b { color: var(--ink); }
.trip-tabs { margin-top: 12px; padding: 0; gap: 20px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.trip-tabs-label { color: var(--muted); font-size: 13px; }
.trip-tabs-list { gap: 14px; }
.trip-tab { min-height: 46px; padding: 11px 4px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; font-size: 14px; white-space: nowrap; }
.trip-tab.active { color: var(--accent); background: transparent; border-color: var(--accent); }
.trip-tab:hover { color: var(--accent); background: transparent; }
.primary-button, .ghost-button, .quiet-button, .account-button { min-height: 42px; padding: 9px 14px; font-size: 14px; font-weight: 600; }
.primary-button { border-color: var(--accent); background: var(--accent); color: #fff; }
.primary-button:hover, .primary-button:focus-visible { border-color: var(--accent-hover); background: var(--accent-hover); transform: none; }
.ghost-button, .quiet-button { background: #fff; }
.ghost-button:hover, .quiet-button:hover { border-color: var(--line-strong); color: var(--ink); background: var(--panel-alt); transform: none; }
.icon-button { width: 34px; height: 34px; min-height: 34px; flex: 0 0 34px; border: 0; color: var(--muted); background: var(--panel-alt); }
.icon-button:hover { color: var(--accent); background: var(--accent-soft); }
.danger-button { color: var(--coral); border-color: var(--coral-line); background: #fff; }
.danger-button:hover { color: var(--coral-ink); border-color: var(--coral-line); background: var(--coral-quiet); }
.restore-button { color: var(--accent); border-color: #c7d8fd; background: var(--accent-soft); }
.module-panel, .module-section, .side-panel { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.module-section { overflow: visible; }
.module-panel { padding: 0; }
.section-head { padding: 18px 0 22px; border-bottom: 0; gap: 18px; }
.section-head h2 { margin-bottom: 6px; font-size: 22px; }
.section-body { padding: 0; }
.workspace-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 32px; }
.side-panel { padding: 20px 0 20px 24px; border-left: 1px solid var(--line); }
.side-panel h2 { font-size: 18px; }
.metrics-grid { gap: 0; padding: 22px 0; margin-bottom: 12px; border-block: 1px solid var(--line); }
.metric { padding: 0 20px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; }
.metric > span { font-size: 13px; color: var(--muted); }
.metric strong { margin: 10px 0 6px; color: var(--ink); font-size: 30px; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; }
.metric .meta { font-size: 12px; }
.workspace-guide { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 20px 0; gap: 20px; border: 0; border-radius: 0; background: transparent; }
.workspace-guide h2 { margin: 0 0 6px; font-size: 20px; }
.workspace-guide p { margin: 0; font-size: 14px; color: var(--muted); }
.trip-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 20px; }
.trip-card { display: flex; flex-direction: column; gap: 0; min-width: 0; padding: 18px; border-color: var(--line); background: #fff; transition: border-color .18s, box-shadow .18s; }
.trip-card:hover { border-color: #bdc8dc; box-shadow: 0 8px 24px rgba(32, 33, 36, .05); }
.trip-card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; line-height: 1.5; }
.trip-card .meta { line-height: 1.8; }
.trip-card .trip-actions { margin-top: auto; padding-top: 18px; }
.trip-card .tag-row { padding-bottom: 16px; }
.trip-thumb { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 110px; padding: 18px; border: 0; margin-bottom: 18px; background: var(--accent-soft); color: var(--accent); }
.trip-thumb > div { min-width: 0; }
.trip-thumb span:not(.icon) { display: block; color: #6480ab; font-size: 12px; margin-bottom: 8px; }
.trip-thumb strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 17px; line-height: 1.4; }
.trip-thumb > .icon, .trip-thumb > .icon svg { width: 28px; height: 28px; flex-basis: 28px; }
.trip-card:nth-child(3n + 2) .trip-thumb { color: #a3482f; background: #fff0e8; }
.trip-card:nth-child(3n + 2) .trip-thumb span:not(.icon) { color: #9e6956; }
.trip-card:nth-child(3n) .trip-thumb { color: #107b72; background: #eaf6f4; }
.trip-card:nth-child(3n) .trip-thumb span:not(.icon) { color: #5c807a; }
.progress-track, .bar-track { height: 5px; margin-top: 16px; border: 0; background: #ebedf1; }
.progress-track span, .bar-track span { border-radius: inherit; }
.tag { min-height: 25px; border-radius: 4px; font-size: 12px; }
.route-summary, .budget-summary, .mini-panel { border-color: var(--line); box-shadow: none; }
.summary-line { padding-block: 12px; font-size: 14px; }
.module-card, .choice-button, .export-card, .suggestion-card { background: #fff; }
.module-card:hover { border-color: #bfd2fc; background: var(--accent-soft); }
.empty-state { padding: 28px; line-height: 1.7; border-color: var(--line-strong); background: transparent; }
.example-trip-card { background: #fff; }
.example-timeline strong { font-size: 14px; }
.example-timeline small { font-size: 12px; white-space: normal; }

/* Forms and account dialogs share comfortable, consistent controls. */
.two-column-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: 32px; }
.form-grid { gap: 22px 20px; }
.field { min-width: 0; gap: 8px; }
.field input, .field select, .field textarea, .date-select-button { min-height: 48px; padding: 12px 14px; border-color: #d5d9e1; background: #fff; font-size: 15px; }
.field input:hover, .field select:hover, .date-select-button:hover { border-color: #aab5c8; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 3px solid #dce8ff; outline-offset: 1px; }
.field input::placeholder, .field textarea::placeholder { color: #87909e; }
.form-label { color: var(--text); font-weight: 600; }
.create-flow { max-width: 1180px; margin-inline: auto; }
.create-flow .section-body { padding: 0 0 30px; }
.create-progress { padding-bottom: 24px; margin-bottom: 28px; }
.create-progress-head { font-size: 14px; }
.create-progress-track { height: 4px; background: #e5e9f0; }
.create-step-list { gap: 16px; margin-top: 20px; }
.create-step > span { width: 30px; height: 30px; flex-basis: 30px; border-color: var(--line); background: #fff; font-size: 13px; }
.create-step strong { font-size: 14px; }
.create-step small { font-size: 12px; }
.create-step.active > span, .create-step.complete > span { color: #fff; background: var(--accent); border-color: var(--accent); }
.date-range-group { gap: 20px; }
.create-date-picker { max-height: min(460px, calc(100svh - 40px)); border-color: var(--line); box-shadow: var(--shadow); overscroll-behavior: contain; }
.calendar-day { min-height: 34px; font-size: 14px; }
.calendar-weekdays { font-size: 12px; }
.create-flow-actions { flex-wrap: wrap; gap: 16px; margin-top: 30px; padding-top: 24px; }
.create-route-actions { flex-wrap: wrap; gap: 12px; }
.signed-in-note, .local-data-alert { border: 0; border-left: 3px solid #e7ac48; border-radius: 0; font-size: 14px; }
.signed-in-note { background: var(--accent-soft); border-left-color: var(--accent); }
.create-preview-note { border: 0; border-radius: 0; background: transparent; padding: 18px 0; }
.account-menu { color: var(--text); box-shadow: var(--shadow); }
.account-avatar { color: #fff; background: var(--accent); letter-spacing: 0; font-size: 13px; }
.account-menu-note, .account-form-note { font-size: 13px; }
.account-modal-backdrop, .preview-backdrop { background: rgba(32, 33, 36, .48); backdrop-filter: blur(5px); }
.account-dialog { width: min(480px, 100%); max-height: calc(100svh - 40px); box-shadow: 0 24px 72px rgba(32, 33, 36, .2); }
.account-dialog-head { padding: 28px 28px 22px; }
.account-dialog-head h2 { margin-top: 6px; font-size: 28px; }
.account-form, .account-profile { gap: 20px; padding: 26px 28px; }
.account-form .field > span { font-size: 14px; font-weight: 600; }
.account-form .input-with-icon input { padding-left: 46px; }
.account-form .input-with-icon .icon { left: 15px; }
.account-submit { min-height: 48px; }
.account-switch { padding: 0 24px 28px; font-size: 14px; flex-wrap: wrap; }
.account-errors { font-size: 14px; }
.account-profile-grid > div { border: 0; border-radius: 4px; }

/* Daily planning stays compact, with clear city, day and traffic hierarchy. */
body[data-current-view="editor"] .main-shell { padding-inline: 20px; }
.planner-workbench { gap: 20px; }
.planner-mode-bar { padding: 10px 0 16px; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent; }
.mode-switch { gap: 3px; padding: 4px; border-color: var(--line); background: #eaedf2; }
.mode-switch button { min-height: 36px; padding: 6px 12px; border-radius: 5px; color: var(--muted); font-size: 14px; font-weight: 600; }
.mode-switch button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(32, 33, 36, .08); }
.planner-grid { grid-template-columns: 180px minmax(0, 1fr) 310px; gap: 20px; }
.planner-day-rail { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.planner-board { min-width: 0; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.planner-resource-panel { min-width: 0; padding: 0 0 0 18px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.day-rail-list { gap: 8px; }
.add-day-button { min-height: 42px; border-radius: 6px; color: var(--accent); font-size: 14px; }
.day-rail-card { grid-template-columns: minmax(0, 1fr) 28px; min-height: 86px; padding: 8px 4px 8px 8px; border-color: transparent; background: transparent; gap: 4px; }
.day-rail-select { grid-template-columns: 36px minmax(0, 1fr); gap: 9px; }
.day-rail-tools { gap: 2px; }
.day-delete-button, .drag-handle { width: 26px; height: 26px; }
.day-rail-card:hover { background: #edf0f5; }
.day-rail-card.active { border-color: #c4d6ff; background: var(--accent-soft); }
.day-badge { width: 34px; height: 34px; border-radius: 6px; color: var(--muted); background: #e7eaf0; font-size: 12px; font-weight: 700; }
.day-rail-card.active .day-badge { color: #fff; background: var(--accent); }
.day-rail-card small { font-size: 12px; }
.day-rail-card strong { font-size: 14px; font-weight: 600; line-height: 1.6; }
.planner-day-header { padding: 22px; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.day-route-input { gap: 9px; }
.day-route-input strong { font-size: 22px; line-height: 1.5; }
.date-link, .text-link { font-size: 14px; font-weight: 600; }
.planner-actions { justify-content: flex-start; gap: 8px; }
.planner-actions .ghost-button { min-height: 36px; padding: 8px 10px; font-size: 13px; }
.square-add-button { width: 36px; min-width: 36px; height: 36px; background: var(--accent); border-color: var(--accent); }
.planner-standard, .planner-map-mode { padding: 8px 22px 22px; }
.day-summary-row { gap: 10px; padding: 10px 0; font-size: 13px; border-bottom: 0; }
.duration-badge { min-width: 0; height: auto; padding: 4px 8px; border: 0; border-radius: 4px; color: #9b6514; background: #fff6dc; font-size: 13px; font-weight: 600; }
.schedule-controls, .compact-schedule-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; padding: 14px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.schedule-controls > button { grid-column: 1 / -1; justify-self: end; min-height: 34px; padding: 6px 10px; font-size: 13px; }
.timeline { margin-top: 20px; gap: 12px; padding-left: 16px; }
.timeline::before { width: 1px; background: #d6dce6; }
.timeline-row { grid-template-columns: 50px minmax(0, 1fr); gap: 10px; }
.timeline-row::before { width: 9px; height: 9px; top: 19px; left: -13px; border-color: var(--accent); }
.time-label { padding-top: 14px; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.timeline-card { padding: 14px; border-color: var(--line); }
.timeline-card h3 { font-size: 15px; }
.timeline-card header { flex-wrap: wrap; gap: 8px; }
.timeline-card header > div { min-width: 0; }
.timeline-card .inline-actions { margin-left: auto; }
.timeline-card .icon-button { width: 28px; height: 28px; min-height: 28px; flex-basis: 28px; }
.timeline-card p { font-size: 13px; line-height: 1.7; }
.timeline-card.transport-card { border-color: #c1e3e6; background: #f2fbfc; }
.travel-leg { margin-left: 60px; max-width: calc(100% - 60px); border: 0; border-radius: 4px; padding: 5px 0; background: transparent; }
.travel-label { white-space: normal; }
.leg-mode-select { border-radius: 4px; font-size: 13px; }
.accommodation-prompt { background: var(--panel-alt); border-color: var(--line-strong); font-size: 14px; line-height: 1.6; }
.resource-head { grid-template-columns: minmax(0, 1fr) 36px; align-items: center; }
.city-select { border-color: var(--line); font-size: 16px; font-weight: 650; }
.resource-city-label > span { font-size: 12px; line-height: 1.4; }
.resource-tabs { margin-top: 16px; gap: 0; }
.resource-tabs button { min-height: 40px; padding: 7px 2px; font-size: 13px; }
.resource-filters { font-size: 12px; gap: 6px 10px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
.resource-card-grid { grid-template-columns: 1fr; gap: 12px; }
.resource-card { border-color: var(--line); }
.resource-image, .resource-image.hotel-image { display: flex; align-items: center; gap: 8px; min-height: 0; padding: 11px 14px 0; background: transparent; color: var(--accent); font-size: 12px; }
.resource-image.hotel-image { color: #9b6514; }
.resource-card-body { padding: 10px 14px 14px; }
.resource-card h3 { font-size: 15px; line-height: 1.6; }
.resource-card p { font-size: 13px; line-height: 1.65; }
.rating-line { margin-top: 10px; color: #a4761c; }
.resource-card > button { min-height: 39px; font-size: 13px; color: var(--accent); background: #fff; }
.resource-card > button:hover { background: var(--accent-soft); }
.planner-popover, .floating-menu, .create-date-picker { box-shadow: var(--shadow); }
.ai-route-banner { border: 0; border-left: 3px solid var(--accent); border-radius: 0; }
.toast { z-index: 140; font-size: 14px; }
.preview-dialog { border: 0; box-shadow: var(--shadow); }
.preview-day { border-color: var(--line); }
.preview-dialog-head { background: #fff; }
.preview-summary .metric { padding: 12px; }
.data-table th { background: #eef0f4; color: var(--text); font-size: 13px; }
.data-table td { padding-block: 14px; font-size: 14px; }

@media (min-width: 1700px) {
  .planner-grid { grid-template-columns: 210px minmax(0, 1fr) 370px; }
  .planner-day-header { grid-template-columns: minmax(0, 1fr) auto; }
  .resource-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .main-shell { padding-inline: 22px; }
  .workspace-grid, .two-column-grid { grid-template-columns: minmax(0, 1fr); }
  .side-panel { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .planner-grid { grid-template-columns: minmax(0, 1fr) 285px; }
  .planner-day-rail { grid-column: 1 / -1; overflow-x: auto; padding-bottom: 8px; }
  .day-rail-list { grid-auto-flow: column; grid-auto-columns: 180px; }
  .day-rail-card.drop-before::before,
  .day-rail-card.drop-after::after { top: 0; bottom: 0; width: 3px; height: auto; }
  .day-rail-card.drop-before::before { left: -6px; right: auto; }
  .day-rail-card.drop-after::after { right: -6px; left: auto; }
  .planner-resource-panel { padding-left: 12px; }
  .planner-standard, .planner-map-mode, .planner-day-header { padding-inline: 16px; }
  .home-hero h1 { font-size: 88px; }
  .home-hero-lead { font-size: 29px; }
  .home-hero-caption { display: none; }
  .metrics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metric { padding-inline: 12px; }
  .metric strong { font-size: 26px; }
}
@media (max-width: 900px) {
  .planner-grid { grid-template-columns: minmax(0, 1fr); }
  .planner-resource-panel { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .resource-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-nav { padding-inline: 28px; gap: 20px; }
  .home-nav-links { gap: 24px; }
  .home-hero { padding-inline: 32px; }
  .home-route-showcase, .home-pathways, .home-bottom-cta, .home-footer { padding-inline: 32px; }
  .home-route-heading h2 { font-size: 28px; }
  .home-route-stops { gap: 20px; }
  .home-route-stop h3 { font-size: 16px; }
  .home-pathway-grid { gap: 24px; }
}
@media (max-width: 760px) {
  .app-shell, body[data-current-view="editor"] .app-shell { display: block; }
  .sidebar, body[data-current-view="editor"] .sidebar { position: relative; height: auto; padding: 16px 18px 0; gap: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand, body[data-current-view="editor"] .brand { grid-template-columns: 36px minmax(0, 1fr); justify-content: start; padding: 0; }
  .brand-mark { width: 36px; height: 36px; font-size: 13px; }
  body[data-current-view="editor"] .brand > div:last-child { display: block; }
  .brand strong { font-size: 18px; }
  .brand span { margin-top: 0; }
  .nav-list { width: 100%; gap: 12px; padding: 0; }
  .nav-item, body[data-current-view="editor"] .nav-item { grid-template-columns: 18px max-content; justify-content: start; min-height: 44px; padding: 10px 6px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; gap: 7px; }
  body[data-current-view="editor"] .nav-item > span:not(.icon) { display: inline; }
  .nav-item.active { border-bottom-color: var(--accent); background: transparent; }
  body[data-current-view="editor"] .nav-item::after, body[data-current-view="editor"] .nav-item::before { display: none; }
  .main-shell, body[data-current-view="editor"] .main-shell { padding: 0 18px 28px; }
  .topbar { padding: 18px 0; gap: 16px; min-height: 0; }
  .top-actions { gap: 8px; }
  .top-actions .account-slot { margin-left: auto; }
  .top-actions .ghost-button, .top-actions .primary-button { flex: 0 1 auto; padding: 8px 10px; font-size: 13px; min-height: 36px; }
  .account-button { min-height: 36px; padding: 8px 10px; font-size: 13px; }
  .notice-row { padding: 12px; gap: 12px; margin-block: 16px; }
  .trip-tabs { padding: 0; gap: 6px; }
  .trip-tabs-label { border: 0; padding: 4px 0; }
  .trip-tabs-list { gap: 16px; }
  .trip-tab { min-height: 40px; font-size: 13px; }
  .section-head { display: flex; flex-wrap: wrap; padding-top: 14px; }
  .section-head h2 { font-size: 21px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; padding-block: 18px; }
  .metric { padding: 0 14px; }
  .metric:nth-child(odd) { padding-left: 0; }
  .metric:nth-child(even) { border-right: 0; }
  .metric strong { font-size: 27px; }
  .workspace-guide { grid-template-columns: minmax(0, 1fr); }
  .workspace-guide > button { justify-self: start; }
  .trip-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
  .trip-card { padding: 16px; }
  .side-panel { padding-top: 20px; }
  .form-grid { gap: 20px; }
  .create-step-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .create-step { flex-direction: column; }
  .create-step strong { font-size: 13px; }
  .create-step small { display: none; }
  .date-range-group { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .date-select-button { padding: 10px; font-size: 14px; }
  .create-date-picker { width: min(390px, calc(100vw - 36px)); }
  .create-route-actions { width: 100%; }
  .create-route-actions > button { min-width: 0; flex: 1 1 140px; }
  .planner-mode-bar { display: flex; flex-wrap: wrap; gap: 10px; }
  .mode-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .planner-top-links { justify-content: flex-start; }
  .planner-top-links > button { flex: 1; }
  .planner-grid { gap: 16px; }
  .day-rail-list { grid-auto-columns: 168px; }
  .planner-day-header { padding: 18px 14px; }
  .planner-standard, .planner-map-mode { padding: 6px 14px 18px; }
  .planner-actions .ghost-button { flex: 0 1 auto; }
  .day-route-input strong { font-size: 20px; }
  .schedule-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-controls .field input { padding: 9px; min-height: 42px; font-size: 14px; }
  .timeline { padding-left: 13px; }
  .timeline-row { grid-template-columns: 42px minmax(0, 1fr); gap: 6px; }
  .timeline-row::before { left: -10px; }
  .time-label { font-size: 12px; }
  .timeline-card { padding: 10px; }
  .timeline-card header { display: grid; }
  .timeline-card .inline-actions { justify-self: end; }
  .timeline-card .icon-button { width: 34px; height: 34px; min-height: 34px; flex-basis: 34px; }
  .travel-leg { margin-left: 48px; max-width: calc(100% - 48px); }
  .resource-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .resource-filters { font-size: 13px; }
  .account-modal-backdrop { padding: 16px; }
  .account-dialog { max-height: calc(100svh - 32px); }
  .account-dialog-head { padding: 22px; }
  .account-form, .account-profile { padding: 22px; }
  .account-dialog-head h2 { font-size: 25px; }
  .account-switch { padding-inline: 20px; }
  .home-nav { min-height: 72px; padding: 14px 20px 0; grid-template-columns: 1fr auto; gap: 12px; }
  .home-brand-mark { width: 44px; height: 44px; font-size: 13px; }
  .home-brand-copy strong { font-size: 21px; }
  .home-brand-copy small { display: none; }
  .home-nav-links { border-top: 1px solid var(--line); gap: 28px; justify-content: center; }
  .home-nav-link { flex: 0 1 auto; padding: 12px 0; font-size: 14px; }
  .home-nav-link.is-active::after { bottom: 0; }
  .home-nav-cta { min-height: 36px; max-width: 150px; padding: 7px 14px; font-size: 13px; }
  .home-hero { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; min-height: 440px; height: calc(100svh - 180px); max-height: 620px; padding: 32px 24px; background-position: 42% center; }
  .home-hero-copy { width: 100%; }
  .home-hero .home-kicker { font-size: 12px; }
  .home-hero h1 { font-size: 72px; margin: 16px 0 20px; }
  .home-hero-lead { font-size: 27px; line-height: 1.6; }
  .home-hero-detail { max-width: 320px; font-size: 14px; }
  .home-hero-actions { gap: 10px; margin-top: 24px; }
  .home-primary-button, .home-secondary-button { gap: 12px; min-height: 46px; padding: 10px 16px; font-size: 14px; }
  .home-trust-row { gap: 12px; margin-top: 20px; font-size: 12px; }
  .home-trust-row span + span { padding-left: 12px; }
  .home-route-showcase { padding: 30px 24px 36px; }
  .home-route-heading { align-items: flex-start; gap: 14px; }
  .home-route-heading h2 { font-size: 25px; }
  .home-route-heading p { font-size: 13px; }
  .home-route-meta { font-size: 12px; flex: 0 0 auto; }
  .home-route-meta > span:last-child { display: none; }
  .home-route-stops { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 24px; }
  .home-route-stop { padding: 0 0 24px 24px; border-top: 0; border-left: 1px solid var(--line); }
  .home-route-stop:last-child { padding-bottom: 0; }
  .home-route-stop::before { top: 8px; left: -4px; }
  .home-route-stop h3 { margin-top: 5px; font-size: 17px; }
  .home-route-stop p { font-size: 13px; }
  .home-pathways { padding: 44px 24px; }
  .home-section-heading { margin-bottom: 28px; }
  .home-section-heading h2, .home-bottom-cta h2 { font-size: 27px; }
  .home-pathway-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home-pathway { gap: 12px; padding-top: 20px; }
  .home-pathway h3 { font-size: 19px; }
  .home-pathway p { max-width: none; font-size: 14px; }
  .home-bottom-cta { display: grid; padding: 44px 24px; gap: 24px; }
  .home-bottom-cta .home-primary-button { justify-self: start; }
  .home-footer { padding: 24px; align-items: flex-start; }
  .home-footer strong { display: grid; gap: 8px; }
  .home-footer > span { max-width: 100px; font-size: 12px; text-align: right; }
}
@media (max-width: 380px) {
  .home-hero h1 { font-size: 62px; }
  .home-hero-lead { font-size: 23px; }
  .home-hero-actions { gap: 8px; }
  .home-primary-button, .home-secondary-button { font-size: 13px; gap: 8px; padding-inline: 12px; }
  .home-route-heading { flex-wrap: wrap; }
  .resource-card-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 800px) {
  .home-hero { min-height: 360px; padding-block: 30px; }
  .home-hero h1 { font-size: 72px; }
  .home-hero-lead { font-size: 26px; line-height: 1.45; }
  .home-hero-detail, .home-trust-row { display: none; }
}
@media (max-height: 650px) {
  .home-hero { min-height: 280px; height: calc(100svh - 180px); padding-block: 24px; }
  .home-hero h1 { font-size: 56px; margin-block: 10px; }
  .home-hero-lead { font-size: 22px; margin-bottom: 10px; }
  .home-hero-actions { margin-top: 16px; }
  .home-trust-row { margin-top: 12px; }
  .home-hero-detail { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body, .main-shell { color: #202124; background: #fff; }
  .main-shell { padding: 0; }
  .trip-card, .planner-board, .side-panel, .module-section { box-shadow: none; }
  .preview-backdrop { background: #fff; backdrop-filter: none; }
  .preview-summary .metric { border-right: 1px solid #e4e7ec; }
}
