:root {
  color-scheme: light;
  --bg: #eef6f3;
  --paper: #ffffff;
  --paper-soft: #f7fbf9;
  --ink: #10201f;
  --muted: #637b78;
  --line: rgba(16, 32, 31, 0.14);
  --green: #2b8b7e;
  --green-strong: #1f6c62;
  --rust: #e07b68;
  --blue: #2f6f8f;
  --topbar-bg: rgba(238, 246, 243, 0.94);
  --input-bg: #ffffff;
  --button-fg: #ffffff;
  --badge-bg: #d8e7e5;
  --badge-border: #b8d3cf;
  --map-bg: #d8e7e5;
  --map-marker-ring: #ffffff;
  --journal-bg: #f7fbf9;
  --journal-fg: #10201f;
  --journal-muted: #637b78;
  --journal-tile: #d8e7e5;
  --journal-secondary-button: rgba(16, 32, 31, 0.06);
  --journal-secondary-border: rgba(16, 32, 31, 0.14);
  --shadow: 0 18px 42px rgba(16, 32, 31, 0.10);
  --journal-shadow: 0 24px 70px rgba(16, 32, 31, 0.14);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10201f;
  --paper: #172b2a;
  --paper-soft: #1d3331;
  --ink: #f3fbf8;
  --muted: #aac2bd;
  --line: rgba(243, 251, 248, 0.14);
  --green: #2b8b7e;
  --green-strong: #35a497;
  --rust: #e07b68;
  --blue: #77adc9;
  --topbar-bg: rgba(16, 32, 31, 0.92);
  --input-bg: #10201f;
  --button-fg: #ffffff;
  --badge-bg: rgba(43, 139, 126, 0.18);
  --badge-border: rgba(43, 139, 126, 0.42);
  --map-bg: #d3e3e2;
  --map-marker-ring: #ffffff;
  --journal-bg: #10201f;
  --journal-fg: #f3fbf8;
  --journal-muted: #aac2bd;
  --journal-tile: #1d3331;
  --journal-secondary-button: rgba(243, 251, 248, 0.08);
  --journal-secondary-border: rgba(243, 251, 248, 0.18);
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  --journal-shadow: 0 24px 74px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

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

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 42px);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nav form {
  margin: 0;
}

.timeline-command-topbar {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding-top: 6px;
  padding-bottom: 6px;
  color: #f3fbf8;
  background: rgba(16, 32, 31, 0.94);
  border-bottom-color: rgba(243, 251, 248, 0.08);
}

.timeline-command-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.timeline-command-left .brand {
  font-size: 19px;
  color: #f3fbf8;
}

.timeline-command-left h1 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #f3fbf8;
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-command-right,
.timeline-command-nav {
  display: flex;
  align-items: center;
}

.timeline-command-right {
  justify-content: end;
  gap: 8px;
}

.timeline-command-nav {
  gap: 4px;
}

.timeline-command-nav a {
  padding: 5px 8px;
  color: rgba(243, 251, 248, 0.68);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
}

.timeline-command-nav a.active {
  color: #fff;
  background: rgba(43, 139, 126, 0.24);
}

.timeline-command-topbar .button.secondary {
  color: #f3fbf8;
  background: rgba(243, 251, 248, 0.07);
  border-color: rgba(243, 251, 248, 0.18);
}

.timeline-follow-form {
  margin: 0;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 16px;
  color: var(--button-fg);
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button:hover {
  background: var(--green-strong);
}

.button.secondary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.button.danger {
  background: var(--rust);
  border-color: var(--rust);
}

.button.small {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 13px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.icon-button.danger {
  color: var(--rust);
}

.button svg,
.icon-button svg {
  width: 18px;
  height: 18px;
}

.page,
.map-page {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 60px;
}

.map-page {
  position: relative;
  width: 100%;
  height: calc(100dvh - 45px);
  margin: 0;
  overflow: hidden;
}

.page.narrow {
  width: min(680px, calc(100% - 32px));
}

.logged-out-home {
  height: calc(100vh - 65px);
  min-height: 0;
  color: #fff;
  background: #10201f;
  overflow: hidden;
}

.landing-hero {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.landing-hero img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 32, 31, 0.88), rgba(16, 32, 31, 0.18));
}

.landing-copy {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 5vw, 72px);
  bottom: clamp(70px, 12vh, 136px);
  max-width: 760px;
}

.landing-copy p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.landing-copy h1 {
  margin: 0;
  font-size: clamp(50px, 6.6vw, 104px);
  line-height: 0.94;
}

.landing-action-panel {
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: clamp(76px, 12vh, 142px);
  z-index: 2;
  width: min(390px, 30vw);
  display: grid;
  gap: 18px;
  padding: 20px;
  color: #fff;
  background: rgba(16, 32, 31, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.landing-action-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.55;
}

.landing-action-panel .actions {
  align-items: stretch;
}

.landing-action-panel .button {
  flex: 1 1 auto;
}

.landing-action-panel .button.secondary.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.section-head,
.profile-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head.compact {
  margin-bottom: 12px;
}

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

.muted,
small {
  color: var(--muted);
}

.panel,
.trip-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 22px;
}

.form-panel {
  display: grid;
  gap: 15px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

textarea {
  resize: vertical;
}

input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

.errorlist {
  margin: 4px 0 0;
  padding: 0;
  color: var(--rust);
  list-style: none;
  font-size: 13px;
}

.has-client-error input,
.has-client-error textarea,
.has-client-error select,
input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--rust);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--rust) 18%, transparent);
}

.messages {
  position: fixed;
  top: 58px;
  left: 50%;
  z-index: 90;
  width: min(1180px, calc(100% - 32px));
  margin: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.message {
  margin: 0 0 8px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-right: 4px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
}

.auth-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.trip-card {
  padding: 18px;
}

.kind,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  color: var(--blue);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.profile-strip {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.timeline-shell {
  position: relative;
  min-width: 1120px;
  min-height: 560px;
  padding: 220px 100px 80px;
  overflow-x: auto;
}

.timeline-page {
  overflow-x: auto;
}

.axis {
  position: absolute;
  top: 286px;
  right: 80px;
  left: 80px;
  height: 3px;
  background: var(--green);
}

.timeline-item {
  position: absolute;
  right: var(--x);
  width: 220px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.timeline-item.lane-0 {
  top: 36px;
}

.timeline-item.lane-1 {
  top: 326px;
}

.timeline-item.lane-2 {
  top: 154px;
}

.timeline-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.timeline-dot {
  position: absolute;
  right: 24px;
  width: 16px;
  height: 16px;
  background: var(--rust);
  border: 3px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--rust);
}

.lane-0 .timeline-dot,
.lane-2 .timeline-dot {
  bottom: -45px;
}

.lane-1 .timeline-dot {
  top: -47px;
}

.date {
  color: var(--muted);
  font-size: 13px;
}

.edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.manage-row,
.request-row,
.point-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.thumb-list,
.point-list {
  display: grid;
  gap: 10px;
}

.thumb-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.thumb-row img,
.form-preview {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.form-preview {
  width: 220px;
}

.trip-detail .lead {
  font-size: 18px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.photo-grid figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-grid figcaption {
  padding: 10px;
}

.trip-detail-light-page {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 60px;
  color: #f3fbf8;
}

.trip-light-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  padding: 18px;
  background: #10201f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: var(--journal-shadow);
}

.trip-light-frame {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 10px;
  overflow: visible;
  color: #10201f;
  background: #f7fbf9;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.25);
}

.trip-light-frame a {
  display: block;
  width: 100%;
}

.trip-light-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.trip-light-frame.photo-card-2,
.trip-light-frame.photo-card-6 {
  grid-column: span 2;
}

.trip-light-frame.photo-card-3,
.trip-light-frame.photo-card-9 {
  align-self: start;
}

.trip-light-frame figcaption,
.map-frame-caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  padding: 5px 8px;
  color: #10201f;
  background: rgba(247, 251, 249, 0.88);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
}

.generated-memory-frame {
  display: grid;
}

.generated-memory-frame .generated-thumb {
  aspect-ratio: 4 / 3;
}

.trip-route-map-frame {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 12px;
  padding: 0;
  overflow: hidden;
}

#trip-detail-map {
  width: 100%;
  min-height: 360px;
  background: var(--map-bg);
}

.trip-detail-marker {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--green);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(16, 32, 31, 0.24);
}

.trip-detail-marker svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.6;
}

.trip-route-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 360px;
  padding: 22px;
}

.trip-route-panel p {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.trip-route-panel h1 {
  margin: 6px 0 4px;
  color: #10201f;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 0.95;
}

.trip-route-panel > div > span {
  color: var(--muted);
  font-weight: 850;
}

.trip-point-summary {
  display: grid;
  gap: 7px;
  padding: 13px;
  background: rgba(16, 32, 31, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trip-point-summary span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.trip-detail-edit-link,
.trip-detail-delete-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.trip-detail-edit-link {
  color: var(--green);
  background: rgba(43, 139, 126, 0.10);
  border: 1px solid rgba(43, 139, 126, 0.22);
}

.trip-detail-delete-link {
  color: var(--rust);
  background: color-mix(in srgb, var(--rust) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--rust) 26%, transparent);
}

.trip-detail-edit-link:hover,
.trip-detail-edit-link:focus-visible {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  outline: 0;
}

.trip-detail-delete-link:hover,
.trip-detail-delete-link:focus-visible {
  color: #fff;
  background: var(--rust);
  border-color: var(--rust);
  outline: 0;
}

.trip-detail-edit-link svg,
.trip-detail-delete-link svg {
  width: 15px;
  height: 15px;
}

.trip-story-panel {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 18px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.trip-story-panel b {
  color: var(--green);
  font-size: 13px;
  text-transform: uppercase;
}

.trip-story-panel p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

#travel-map {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.map-filter-panel {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 1000;
  display: grid;
  gap: 12px;
  width: min(320px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow: auto;
  padding: 12px;
  color: #f3fbf8;
  background: rgba(16, 32, 31, 0.78);
  border: 1px solid rgba(243, 251, 248, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.map-filter-head,
.map-filter-toggles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.map-filter-head {
  cursor: grab;
  user-select: none;
}

.map-filter-panel.is-dragging .map-filter-head {
  cursor: grabbing;
}

.map-filter-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-filter-head strong {
  font-size: 14px;
  line-height: 1;
}

.map-filter-head button,
.map-filter-head-actions button {
  padding: 5px 8px;
  color: rgba(243, 251, 248, 0.78);
  background: rgba(243, 251, 248, 0.08);
  border: 1px solid rgba(243, 251, 248, 0.14);
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.map-filter-head-actions [data-map-filter-toggle] {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
}

.map-filter-head-actions svg {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.map-filter-body {
  display: grid;
  gap: 12px;
}

.map-filter-panel.is-collapsed {
  width: min(230px, calc(100% - 32px));
  gap: 8px;
}

.map-filter-panel.is-collapsed .map-filter-body {
  display: none;
}

.map-filter-panel.is-collapsed [data-map-filter-toggle] svg {
  transform: rotate(180deg);
}

.map-filter-field,
.map-filter-group {
  display: grid;
  gap: 7px;
}

.map-filter-field span,
.map-filter-group > span {
  color: rgba(243, 251, 248, 0.72);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.map-filter-select {
  position: relative;
}

.map-filter-select > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 32px;
  padding: 5px 9px;
  color: #f3fbf8;
  background: rgba(243, 251, 248, 0.08);
  border: 1px solid rgba(243, 251, 248, 0.16);
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.map-filter-select > button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-filter-select > button svg {
  width: 15px;
  height: 15px;
  transition: transform 160ms ease;
}

.map-filter-select > button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.map-filter-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 1100;
  display: grid;
  max-height: 220px;
  overflow: auto;
  padding: 5px;
  background: rgba(16, 32, 31, 0.96);
  border: 1px solid rgba(243, 251, 248, 0.18);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.map-filter-select-menu[hidden] {
  display: none;
}

.map-filter-select-menu button {
  width: 100%;
  padding: 7px 8px;
  color: rgba(243, 251, 248, 0.84);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.map-filter-select-menu button:hover,
.map-filter-select-menu button:focus-visible,
.map-filter-select-menu button.is-active {
  color: #f3fbf8;
  background: rgba(243, 251, 248, 0.10);
  outline: 0;
}

.map-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.map-filter-chip {
  min-height: 28px;
  padding: 5px 8px;
  color: rgba(243, 251, 248, 0.78);
  background: rgba(243, 251, 248, 0.07);
  border: 1px solid rgba(243, 251, 248, 0.14);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
}

.map-filter-chip.is-active {
  color: #10201f;
  background: #f3fbf8;
  border-color: #f3fbf8;
}

.map-filter-toggles {
  justify-content: start;
  color: rgba(243, 251, 248, 0.84);
  font-size: 12px;
  font-weight: 750;
}

.map-filter-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-filter-toggles input {
  accent-color: var(--green);
}

.map-filter-count {
  margin: 0;
  color: rgba(243, 251, 248, 0.62);
  font-size: 12px;
  line-height: 1.35;
}

.icon-choice-page {
  width: min(1440px, calc(100% - 40px));
  margin: 24px auto 56px;
}

.icon-choice-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.icon-choice-head p {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.icon-choice-head h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.icon-choice-head small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.icon-choice-head a {
  padding: 8px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.track-icon-category-list {
  display: grid;
  gap: 20px;
}

.track-icon-category {
  display: grid;
  gap: 10px;
}

.track-icon-category > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.track-icon-category h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
}

.track-icon-category p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.track-icon-category > header > b {
  color: var(--green);
  font-size: 13px;
  font-weight: 880;
}

.track-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 8px;
}

.track-icon-card {
  position: relative;
  padding: 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(16, 32, 31, 0.08);
}

.track-icon-number {
  position: absolute;
  right: 10px;
  top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.track-icon-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.track-icon-pair > svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.track-icon-sample {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
}

.track-icon-sample span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--green);
  border: 2px solid var(--map-marker-ring);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(16, 32, 31, 0.20);
}

.track-icon-sample.end span {
  background: var(--blue);
}

.track-icon-sample svg {
  width: 24px;
  height: 24px;
}

.track-icon-sample b {
  font-size: 12px;
  line-height: 1;
}

.track-icon-sample small {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-icon-single {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 6px 0 1px;
}

.track-icon-single span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--green);
  border: 2px solid var(--map-marker-ring);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(16, 32, 31, 0.20);
}

.track-icon-single svg {
  width: 23px;
  height: 23px;
}

.track-icon-single b {
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--green);
  border: 2px solid var(--map-marker-ring);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(16, 32, 31, 0.28);
}

.map-marker svg {
  width: 20px;
  height: 20px;
}

.map-marker.is-track-start,
.map-marker.is-track-end {
  background: #1f6c62;
}

.map-marker.is-track-end {
  background: #2f6f8f;
}

.track-endpoint-marker {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: color-mix(in srgb, var(--green) 88%, #000 12%);
  border: 2px solid var(--map-marker-ring);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(16, 32, 31, 0.28);
}

.track-endpoint-marker.is-end {
  background: color-mix(in srgb, var(--rust) 86%, #000 14%);
  border-radius: 8px 8px 50% 50%;
}

.track-endpoint-marker svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.7;
}

.leaflet-popup-content {
  margin: 12px;
  min-width: 180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.popup-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}

.empty {
  color: var(--muted);
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

@media (max-width: 760px) {
  .topbar,
  .section-head,
  .profile-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .edit-layout {
    grid-template-columns: 1fr;
  }

  .timeline-shell {
    min-width: 860px;
  }

  .logged-out-home,
  .landing-hero,
  .landing-hero img {
    height: auto;
    min-height: 620px;
    overflow: visible;
  }

  .landing-copy {
    bottom: 260px;
  }

  .landing-copy h1 {
    font-size: 48px;
  }

  .landing-action-panel {
    left: 24px;
    right: 24px;
    bottom: 28px;
    width: auto;
  }
}

.darkroom-page {
  width: min(1320px, calc(100% - 32px));
  height: calc(100dvh - 68px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  margin: 0 auto;
  padding: 14px 0 12px;
  overflow: hidden;
}

body:has(.horizontal-timeline) {
  overflow: hidden;
}

.darkroom-head {
  grid-row: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.darkroom-head h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 0.96;
}

.darkroom-lede {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.darkroom-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.darkroom-actions form {
  margin: 0;
}

.journal-timebar {
  grid-row: 2;
  position: relative;
  min-width: 940px;
  height: 52px;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.journal-timebar::before {
  content: "";
  position: absolute;
  left: 80px;
  right: 80px;
  top: 30px;
  height: 3px;
  background: var(--ink);
  opacity: 0.9;
}

.journal-timebar a {
  position: absolute;
  left: var(--x);
  top: 6px;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 44px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.journal-timebar i {
  width: 14px;
  height: 14px;
  background: var(--rust);
  border: 3px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--rust);
}

.darkroom-stack {
  grid-row: 3;
  min-height: 0;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  padding-bottom: 4px;
}

.darkroom-trip {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  color: var(--journal-fg);
  background: var(--journal-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--journal-shadow);
}

.trip-meta,
.trip-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.trip-meta {
  align-items: center;
  color: var(--journal-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.trip-title-row h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1;
}

.trip-title-row p {
  max-width: 700px;
  margin: 6px 0 0;
  color: var(--journal-muted);
  font-size: 14px;
}

.darkroom-trip .button.secondary {
  color: var(--journal-fg);
  background: var(--journal-secondary-button);
  border-color: var(--journal-secondary-border);
}

.darkroom-mosaic {
  min-height: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.journal-hero-tile,
.journal-photo-tile,
.journal-map-tile {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--journal-tile);
  border-radius: 8px;
}

.journal-hero-tile {
  grid-row: span 2;
}

.journal-hero-tile img,
.journal-photo-tile img,
.photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journal-hero-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 38%, rgba(0, 0, 0, 0.78));
}

.journal-hero-tile figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.journal-hero-tile figcaption span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.journal-hero-tile figcaption strong {
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  color: var(--journal-muted);
  background:
    linear-gradient(135deg, rgba(43, 139, 126, 0.36), rgba(224, 123, 104, 0.20)),
    var(--journal-tile);
}

.photo-placeholder svg {
  width: 42px;
  height: 42px;
}

.journal-map-tile {
  isolation: isolate;
}

.journal-real-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--map-bg);
}

.journal-map-tile strong {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  color: #fff;
  background: rgba(16, 32, 31, 0.78);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.journal-map-tile .leaflet-control-container {
  display: none;
}

.journal-photo-tile.tonal {
  display: grid;
  align-items: end;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(43, 139, 126, 0.52), rgba(224, 123, 104, 0.42)),
    var(--journal-tile);
}

.journal-photo-tile.tonal div {
  display: grid;
  gap: 4px;
}

.journal-photo-tile.tonal span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.journal-photo-tile.tonal strong {
  font-size: 24px;
  line-height: 1;
}

.passport-empty {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(43, 139, 126, 0.10), rgba(224, 123, 104, 0.08)),
    var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.passport-book {
  width: min(820px, 100%);
  height: min(330px, 100%);
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.passport-page {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 30px;
}

.passport-cover {
  color: #fff;
  background: var(--journal-bg);
}

:root[data-theme="light"] .passport-cover {
  background: #10201f;
}

.passport-cover span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.passport-cover strong {
  font-size: 44px;
  line-height: 1;
}

.passport-cover i {
  width: 96px;
  height: 96px;
  border: 3px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
}

.passport-entry {
  color: var(--ink);
}

.passport-stamp {
  justify-self: start;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  color: var(--rust);
  border: 3px solid var(--rust);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  transform: rotate(-10deg);
}

.passport-entry p {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.passport-entry h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.contact-timeline-page {
  width: 100%;
  height: calc(100dvh - 47px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.merged-timeline-page {
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.contact-timeline-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  min-height: 0;
}

.contact-timeline-head h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 0.96;
}

.contact-timeline-lede {
  max-width: 710px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-timeline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-timeline-actions form {
  margin: 0;
}

.contact-timeline-shell {
  position: relative;
  min-height: 0;
  overflow: hidden;
  color: #f3fbf8;
  background: #10201f;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.timeline-label-filter {
  position: absolute;
  left: 16px;
  top: 14px;
  z-index: 24;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: min(620px, calc(100% - 112px));
  padding: 8px;
  color: #f3fbf8;
  background: rgba(16, 32, 31, 0.72);
  border: 1px solid rgba(243, 251, 248, 0.14);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.timeline-label-filter > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 88px;
}

.timeline-label-filter span {
  color: rgba(243, 251, 248, 0.62);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.timeline-label-filter b {
  color: #f3fbf8;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.timeline-label-filter-options {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.timeline-label-filter-options::-webkit-scrollbar {
  display: none;
}

.timeline-label-filter button {
  min-height: 28px;
  padding: 5px 8px;
  color: rgba(243, 251, 248, 0.78);
  background: rgba(243, 251, 248, 0.08);
  border: 1px solid rgba(243, 251, 248, 0.14);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
}

.timeline-label-filter button:hover,
.timeline-label-filter button:focus-visible {
  color: #f3fbf8;
  background: rgba(243, 251, 248, 0.14);
  outline: 0;
}

.timeline-label-filter button.is-active {
  color: #10201f;
  background: #f3fbf8;
  border-color: #f3fbf8;
}

.timeline-label-filter [data-timeline-label-filter-clear] {
  border-radius: 7px;
}

.timeline-filter-empty {
  position: absolute;
  left: 16px;
  top: 64px;
  z-index: 24;
  margin: 0;
  padding: 7px 9px;
  color: rgba(243, 251, 248, 0.78);
  background: rgba(16, 32, 31, 0.72);
  border: 1px solid rgba(243, 251, 248, 0.14);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 760;
  backdrop-filter: blur(12px);
}

:root[data-theme="light"] .contact-timeline-shell {
  border-color: rgba(16, 32, 31, 0.18);
}

.contact-timeline-viewport {
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.contact-timeline-viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.contact-timeline-viewport::-webkit-scrollbar {
  display: none;
}

.contact-timeline-track {
  --track-edge: 88px;
  position: relative;
  width: max(1120px, calc((var(--event-count) * 440px) + 1040px));
  min-width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #132927;
}

.contact-timeline-shell.is-empty .contact-timeline-track {
  width: 100%;
}

.contact-timeline-shell.is-empty .timeline-slide-control.left {
  opacity: 0.28;
  cursor: not-allowed;
  pointer-events: none;
}

.contact-timeline-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 52px 100%, 100% 56px;
  pointer-events: none;
}

.timeline-connectors {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.timeline-connectors path {
  fill: none;
  stroke: rgba(243, 251, 248, 0.34);
  stroke-width: 2;
  stroke-linecap: butt;
  stroke-linejoin: round;
  cursor: pointer;
  pointer-events: stroke;
  transition: filter 140ms ease, stroke 140ms ease, stroke-width 140ms ease;
}

.timeline-connectors path.is-active {
  filter: drop-shadow(0 0 6px rgba(43, 139, 126, 0.42));
  stroke: rgba(243, 251, 248, 0.68);
  stroke-width: 3;
}

.contact-timeline-axis {
  position: absolute;
  left: var(--track-edge);
  right: var(--track-edge);
  top: 50%;
  height: 2px;
  background: var(--green);
  transform: translateY(-50%);
}

.timeline-date-marker {
  position: absolute;
  left: calc(var(--track-edge) + ((100% - (var(--track-edge) * 2)) * var(--x) / 100));
  top: 50%;
  z-index: 4;
  display: block;
  width: 84px;
  height: 0;
  color: rgba(243, 251, 248, 0.78);
  font-size: 12px;
  font-weight: 850;
  transform: translate(-50%, -50%);
}

.timeline-date-marker span {
  position: absolute;
  left: 50%;
  top: 0;
  width: 18px;
  height: 18px;
  background: #132927;
  border: 4px solid var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(43, 139, 126, 0.24);
  transform: translate(-50%, -50%);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.timeline-date-marker.is-active span {
  background: #f3fbf8;
  border-color: #f3fbf8;
  box-shadow: 0 0 0 3px rgba(43, 139, 126, 0.34), 0 0 12px rgba(43, 139, 126, 0.46);
}

.timeline-date-marker b {
  position: absolute;
  left: 50%;
  top: 16px;
  white-space: nowrap;
  transform: translateX(-50%);
}

.timeline-date-marker.year-marker {
  z-index: 3;
  color: rgba(243, 251, 248, 0.52);
}

.timeline-date-marker.year-marker span {
  width: 12px;
  height: 12px;
  border-width: 2px;
  border-color: rgba(243, 251, 248, 0.46);
  box-shadow: none;
}

.timeline-date-marker.year-marker b {
  top: 12px;
  font-size: 11px;
}

.today-marker {
  color: var(--rust);
}

.today-marker span {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(224, 123, 104, 0.25);
}

.contact-event-frame {
  position: absolute;
  left: calc(var(--track-edge) + ((100% - (var(--track-edge) * 2)) * var(--x) / 100));
  z-index: 3;
  width: 206px;
  padding: 9px;
  color: #10201f;
  background: #f7fbf9;
  border: 1px solid rgba(243, 251, 248, 0.28);
  border-radius: 8px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  scale: 1;
  transform-origin: center center;
  transition: box-shadow 180ms ease, scale 220ms ease;
  will-change: scale;
}

.contact-event-frame::after,
.new-memory-frame::after {
  display: none;
}

.contact-event-frame:hover,
.contact-event-frame.is-active,
.new-memory-frame:hover {
  z-index: 12;
}

.contact-event-frame:hover,
.contact-event-frame.is-active {
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.38);
  scale: 1.2;
}

.contact-event-frame[data-timeline-side="above"] {
  transform-origin: center bottom;
}

.contact-event-frame[data-timeline-side="below"] {
  transform-origin: center top;
}

.contact-event-frame.lane-0 {
  top: 15%;
  transform: translateX(-18%);
}

.contact-event-frame.lane-0::after {
  bottom: -43%;
  height: 43%;
}

.contact-event-frame.lane-1 {
  top: 16%;
  transform: translateX(-50%);
}

.contact-event-frame.lane-1::after {
  bottom: -42%;
  height: 42%;
}

.contact-event-frame.lane-2 {
  top: 25%;
  transform: translateX(-82%);
}

.contact-event-frame.lane-2::after {
  bottom: -28%;
  height: 28%;
}

.contact-event-frame.near-today.lane-0 {
  top: 34%;
  transform: translateX(-184%);
}

.contact-event-frame.near-today.lane-0::after {
  bottom: -18%;
  height: 18%;
}

.contact-event-frame.near-today.lane-1 {
  top: 25%;
  transform: translateX(-162%);
}

.contact-event-frame.near-today.lane-2 {
  top: 12%;
  transform: translateX(-172%);
}

.contact-event-frame.near-today.lane-2::after {
  bottom: -46%;
  height: 46%;
}

.contact-event-frame.empty-frame {
  opacity: 0.92;
}

.contact-event-frame.empty-frame.frame-old {
  top: 16%;
  transform: translateX(-50%);
}

.contact-event-frame.empty-frame.frame-old::after {
  bottom: -42%;
  height: 42%;
}

.contact-event-frame.empty-frame.frame-mid {
  top: 15%;
  transform: translateX(-50%);
}

.contact-event-frame.empty-frame.frame-mid::after {
  bottom: -43%;
  height: 43%;
}

.contact-event-frame.empty-frame.frame-close {
  top: 13%;
  transform: translateX(-82%);
}

.contact-event-frame.empty-frame.frame-close::after {
  bottom: -46%;
  height: 46%;
}

.contact-event-frame,
.contact-event-frame.near-today,
.contact-event-frame.empty-frame,
.new-memory-frame {
  transform: none;
}

.contact-thumb,
.generated-thumb {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
}

.contact-thumb {
  position: relative;
  background: rgba(16, 32, 31, 0.08);
}

.horizontal-timeline .contact-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.horizontal-timeline .contact-thumb img {
  width: auto;
  max-width: 100%;
}

.photo-slide {
  display: none;
  pointer-events: none;
}

.photo-slide.is-active {
  display: block;
  pointer-events: auto;
}

.horizontal-timeline .photo-slide.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-map-slide {
  position: relative;
  width: 100%;
}

.timeline-card-map {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 132px;
  overflow: hidden;
  background: var(--map-bg);
  border-radius: 6px;
}

.timeline-card-map.leaflet-grab {
  cursor: grab;
}

.timeline-card-map.leaflet-dragging {
  cursor: grabbing;
}

.timeline-mini-marker {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #fff;
  background: var(--green);
  border: 2px solid #f7fbf9;
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(16, 32, 31, 0.32);
}

.timeline-mini-marker svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.7;
}

.timeline-track-endpoint {
  width: 24px;
  height: 24px;
  box-shadow: 0 5px 14px rgba(16, 32, 31, 0.28);
}

.timeline-track-endpoint svg {
  width: 13px;
  height: 13px;
}

.timeline-card-map-controls {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 8;
  display: grid;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(16, 32, 31, 0.28);
}

.timeline-card-map-controls button {
  width: 22px;
  height: 22px;
  min-height: 0;
  padding: 0;
  color: #10201f;
  background: rgba(247, 251, 249, 0.88);
  border: 0;
  border-bottom: 1px solid rgba(16, 32, 31, 0.12);
  font-size: 15px;
  font-weight: 850;
  line-height: 22px;
  cursor: pointer;
}

.timeline-card-map-controls button:last-child {
  border-bottom: 0;
}

.timeline-card-map-controls button:hover,
.timeline-card-map-controls button:focus-visible {
  color: #fff;
  background: var(--green);
  outline: 0;
}

.photo-slide-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 24px;
  height: 34px;
  min-height: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.76;
  transform: translateY(-50%);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.75));
  transition: opacity 140ms ease, transform 140ms ease;
}

.photo-slide-control:hover,
.photo-slide-control:focus-visible {
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}

.photo-slide-control.previous {
  left: 2px;
}

.photo-slide-control.next {
  right: 2px;
}

.photo-slide-control svg {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}

.photo-slide-count {
  display: none;
}

.generated-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  color: rgba(243, 251, 248, 0.82);
  background:
    linear-gradient(135deg, rgba(43, 139, 126, 0.88), rgba(43, 139, 126, 0.28) 48%, rgba(224, 123, 104, 0.54) 49%),
    #2b8b7e;
}

.kind-mountaineering,
.kind-trekking {
  background:
    linear-gradient(140deg, transparent 48%, rgba(255, 255, 255, 0.86) 49% 58%, transparent 59%),
    linear-gradient(160deg, #2b8b7e 0 48%, #cfe1dc 49%);
}

.kind-camping {
  background:
    radial-gradient(circle at 72% 28%, #ffe3aa 0 16px, transparent 17px),
    linear-gradient(150deg, transparent 49%, #10201f 50% 64%, transparent 65%),
    linear-gradient(180deg, #8fc0b7, #2b8b7e);
}

.kind-city {
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, 0.45) 18% 20%, transparent 20% 44%, rgba(255, 255, 255, 0.45) 44% 46%, transparent 46%),
    linear-gradient(180deg, #e07b68 0 44%, #b85f52 45%);
}

.kind-roadtrip {
  background:
    linear-gradient(116deg, transparent 0 44%, rgba(255, 255, 255, 0.72) 45% 49%, transparent 50%),
    linear-gradient(180deg, #7fa7a0, #1f6c62);
}

.generated-thumb svg {
  width: 38px;
  height: 38px;
}

.contact-frame-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 9px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-event-frame h2 {
  margin: 7px 0 0;
  font-size: 18px;
  line-height: 1.04;
}

.contact-event-frame p {
  margin: 4px 0 0;
  color: #637b78;
  font-size: 12px;
  line-height: 1.35;
}

.new-memory-frame {
  position: absolute;
  left: calc(var(--track-edge) + ((100% - (var(--track-edge) * 2)) * var(--x) / 100));
  top: 15%;
  z-index: 5;
  width: 230px;
  padding: 14px;
  color: #10201f;
  background: #f7fbf9;
  border: 2px solid var(--rust);
  border-radius: 8px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
  transform: none;
  transition: box-shadow 160ms ease;
}

.new-memory-frame::after {
  display: none;
}

.new-memory-frame:hover,
.new-memory-frame.is-active {
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.40);
}

.new-memory-frame p {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.new-memory-frame h2 {
  margin: 6px 0 0;
  font-size: 22px;
  line-height: 1;
}

.new-memory-frame small {
  display: block;
  margin: 7px 0 10px;
  color: #637b78;
}

.new-memory-frame .button {
  min-height: 36px;
  padding: 6px 10px;
}

.empty-timeline-note {
  position: absolute;
  left: 96px;
  top: 8%;
  z-index: 2;
  width: 270px;
  padding: 16px;
  color: rgba(243, 251, 248, 0.86);
  background: rgba(243, 251, 248, 0.07);
  border: 1px solid rgba(243, 251, 248, 0.14);
  border-radius: 8px;
}

.empty-timeline-note p {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.empty-timeline-note h2 {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1;
}

.empty-timeline-note small {
  display: block;
  margin-top: 10px;
  color: rgba(243, 251, 248, 0.64);
}

.timeline-slide-control {
  position: absolute;
  top: 50%;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 52px;
  height: 86px;
  color: #fff;
  background: rgba(243, 251, 248, 0.16);
  border: 1px solid rgba(243, 251, 248, 0.22);
  border-radius: 8px;
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.timeline-slide-control.left {
  left: 18px;
}

.timeline-slide-control.right {
  right: 18px;
}

.timeline-slide-control:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.timeline-slide-control svg {
  width: 28px;
  height: 28px;
}

.contact-empty {
  min-height: 0;
}

.trip-create-page {
  width: min(1760px, calc(100% - 24px));
  height: calc(100dvh - 68px);
  margin: 0 auto;
  padding: 10px 0;
  overflow: hidden;
}

body:has(.trip-create-page) {
  overflow: hidden;
}

.trip-create-shell {
  height: 100%;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  gap: 18px;
}

.trip-create-shell:has([data-create-step="1"].active),
.trip-create-shell:has([data-edit-step="1"].active) {
  grid-template-columns: 190px minmax(0, 1fr);
}

.trip-create-shell:has([data-create-step="1"].active) .trip-create-summary,
.trip-create-shell:has([data-edit-step="1"].active) .trip-create-summary {
  display: none;
}

.trip-create-rail,
.trip-create-summary {
  min-height: 0;
  padding: 20px;
  color: #fff;
  background: #10201f;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.trip-create-rail h1 {
  margin: 8px 0 22px;
  font-size: 38px;
  line-height: 1;
}

.trip-create-rail nav {
  display: grid;
  gap: 10px;
}

.trip-create-rail button {
  justify-content: start;
  min-height: 46px;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.trip-create-rail button.active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.trip-create-rail b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.trip-create-main {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
  min-height: 0;
}

.create-step {
  display: none;
  height: 100%;
  min-height: 0;
  align-content: start;
  gap: 8px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.create-step.active {
  display: grid;
}

.form-kicker {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.create-step h2 {
  margin: 0;
  font-size: clamp(27px, 2.6vw, 34px);
  line-height: 1;
}

.field-block {
  display: grid;
  gap: 7px;
}

.field-block > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.field-block input,
.field-block textarea,
.field-block select {
  background: var(--paper-soft);
}

.field-block textarea {
  height: 82px;
  min-height: 82px;
  resize: none;
}

.trip-label-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.trip-label-picker label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 36px;
  padding: 7px;
  color: var(--ink);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.trip-label-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.trip-label-picker label:has(input:checked) {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.trip-label-picker label.primary-kind::after {
  content: "Primary";
  position: absolute;
  right: 7px;
  top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 850;
}

.trip-wizard-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 7px 9px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.trip-wizard-actions .button[hidden] {
  display: none;
}

.trip-wizard-actions .button.secondary {
  margin-right: auto;
}

.trip-edit-page .trip-wizard-actions .button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.create-step .field-block small {
  display: none;
}

.create-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.trip-edit-page .create-two-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.create-map-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
}

.create-route-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(430px, 0.55fr) minmax(560px, 1fr);
  gap: 12px;
}

.route-panel {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

.route-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.route-list-header p,
.route-list-header h3 {
  margin: 0;
}

.route-list-header p {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.route-list-header h3 {
  font-size: 14px;
  line-height: 1.1;
}

.route-date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.route-point-list,
[data-middle-points] {
  display: grid;
  gap: 8px;
}

.route-point-list {
  width: 100%;
  min-width: 0;
  min-height: auto;
}

[data-middle-points] {
  min-height: 0;
}

[data-middle-points] {
  max-height: 166px;
  overflow: auto;
}

[data-route-point-items] {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 214px;
  overflow: auto;
}

.route-middle-card + .route-middle-card {
  margin-top: 6px;
}

.route-point-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 36px;
  padding: 6px 8px;
  color: var(--ink);
  background: var(--paper-soft);
  border-color: var(--line);
  text-align: left;
}

.route-point-card.active {
  color: #fff;
  background: color-mix(in srgb, var(--green) 86%, #000 14%);
  border-color: var(--rust);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rust) 60%, transparent);
}

.route-point-card span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.route-point-card b {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-point-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-point-card.active small {
  color: rgba(255, 255, 255, 0.74);
}

.route-middle-card {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}

.route-middle-fields {
  display: none;
  grid-template-columns: minmax(0, 1fr) 112px 32px;
  gap: 5px;
}

.route-middle-card.is-active .route-middle-fields {
  display: grid;
}

.route-point-fields {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px;
}

.point-date-field {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.point-date-field span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.route-point-fields .point-date-field {
  grid-column: auto;
}

.route-point-fields .point-date-field input {
  min-width: 0;
}

.route-point-fields [data-remove-route-point] {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  height: 30px;
}

.point-label-picker {
  position: relative;
  z-index: 4;
  grid-column: 1 / -1;
  min-width: 0;
}

.point-label-trigger {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 5px 8px;
  text-align: left;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.point-label-trigger svg {
  width: 13px;
  height: 13px;
  color: var(--muted);
}

.point-label-picker.is-open {
  z-index: 30;
}

.point-label-picker.is-open .point-label-trigger,
.point-label-trigger:focus-visible {
  border-color: color-mix(in srgb, var(--teal) 54%, var(--line));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--teal) 16%, transparent);
  outline: 0;
}

.point-label-caption {
  color: color-mix(in srgb, var(--muted) 84%, var(--ink));
  font-size: 9px;
  font-weight: 860;
  letter-spacing: 0;
  text-transform: uppercase;
}

.point-label-chips {
  display: flex;
  min-width: 0;
  gap: 4px;
  overflow: hidden;
}

.point-label-chip,
.point-label-empty {
  min-width: 0;
  max-width: 100%;
  padding: 3px 6px;
  overflow: hidden;
  color: var(--ink);
  background: color-mix(in srgb, var(--teal) 10%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--teal) 28%, transparent);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.point-label-empty {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}

.point-label-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  display: grid;
  width: min(360px, 100%);
  max-height: 260px;
  padding: 8px;
  overflow: auto;
  background: color-mix(in srgb, var(--paper) 94%, var(--paper-soft));
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 10px;
  box-shadow: 0 16px 36px color-mix(in srgb, #000 18%, transparent);
  gap: 8px;
}

.point-label-menu[hidden] {
  display: none;
}

.point-label-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.point-label-option {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 25px;
  padding: 4px 8px;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper-soft) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.point-label-option:hover,
.point-label-option:focus-visible,
.point-label-option.is-selected {
  color: var(--teal-deep);
  background: color-mix(in srgb, var(--teal) 14%, var(--paper));
  border-color: color-mix(in srgb, var(--teal) 42%, transparent);
  outline: 0;
}

.point-label-option.is-selected {
  color: var(--teal-deep);
  background: color-mix(in srgb, var(--teal) 20%, var(--paper));
  border-color: color-mix(in srgb, var(--teal) 68%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 34%, transparent);
}

.saved-point-fields {
  grid-template-columns: minmax(0, 1fr) 112px 32px;
}

.saved-point-fields button {
  grid-column: auto;
  grid-row: auto;
}

.route-middle-fields input {
  min-width: 0;
  height: 30px;
  padding: 5px 8px;
  background: var(--paper-soft);
  font-size: 12px;
}

.route-middle-fields button {
  min-height: 30px;
  padding: 0;
  background: var(--paper-soft);
  border-color: var(--line);
}

.route-add-stop {
  justify-content: center;
  min-height: 32px;
  padding: 5px 8px;
  font-size: 13px;
}

.route-empty-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.route-saved-delete {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  color: var(--muted);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 999px;
  cursor: pointer;
}

.route-saved-delete:hover,
.route-saved-delete:focus-visible {
  color: var(--rust);
  background: var(--paper);
  border-color: color-mix(in srgb, var(--rust) 48%, transparent);
  outline: 0;
}

.route-saved-delete svg {
  width: 14px;
  height: 14px;
}

.trip-map-shell {
  position: relative;
  min-height: 300px;
}

.trip-create-map {
  min-height: 300px;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--map-bg);
}

.map-search-panel {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 500;
  width: min(278px, calc(100% - 16px));
  color: var(--ink);
}

.map-search-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 2px 3px 2px 8px;
  opacity: 0.58;
  background: color-mix(in srgb, var(--paper) 30%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 34%, transparent);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(16, 32, 31, 0.08);
  backdrop-filter: blur(8px);
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.map-search-panel:focus-within .map-search-row,
.map-search-panel:has(.map-search-results:not([hidden])) .map-search-row {
  opacity: 0.94;
  background: color-mix(in srgb, var(--paper) 58%, transparent);
  border-color: color-mix(in srgb, var(--line) 62%, transparent);
}

.map-search-row svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.map-search-row input {
  min-width: 0;
  min-height: 24px;
  height: 24px;
  padding: 0;
  color: var(--ink);
  caret-color: var(--green);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
}

.map-search-row input::placeholder {
  color: color-mix(in srgb, var(--muted) 72%, transparent);
}

.map-search-row button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  color: var(--green);
  background: color-mix(in srgb, var(--paper) 48%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 24%, transparent);
  border-radius: 7px;
  font: inherit;
  cursor: pointer;
}

.map-search-row button:hover,
.map-search-row button:focus-visible {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  outline: 0;
}

.map-search-row button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.map-search-row button.is-loading svg {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.map-search-results {
  display: grid;
  gap: 4px;
  max-height: 224px;
  margin-top: 6px;
  padding: 6px;
  overflow: auto;
  background: color-mix(in srgb, var(--paper) 76%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 64%, transparent);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(16, 32, 31, 0.18);
  backdrop-filter: blur(10px);
}

.map-search-results[hidden] {
  display: none;
}

.map-search-results button,
.map-search-results p {
  width: 100%;
  margin: 0;
  padding: 8px 9px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}

.map-search-results button {
  cursor: pointer;
}

.map-search-results button:hover,
.map-search-results button:focus-visible {
  background: var(--paper-soft);
  outline: 0;
}

.map-search-results small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.place-side {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.selected-points {
  display: grid;
  gap: 6px;
  padding: 10px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.selected-points ol {
  display: grid;
  gap: 4px;
  max-height: 82px;
  margin: 0;
  padding-left: 20px;
  overflow: auto;
  color: var(--muted);
  font-size: 13px;
}

.create-route-layout .selected-points {
  display: none;
}

.gps-track-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gps-track-panel > div {
  display: grid;
  gap: 0;
  order: 1;
}

.gps-track-panel b {
  font-size: 12px;
}

.gps-track-panel small {
  display: none;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.gps-track-upload {
  position: relative;
  grid-column: 1;
  order: 3;
  justify-content: center;
  min-height: 32px;
  padding: 5px 8px;
  font-size: 13px;
  overflow: hidden;
  cursor: pointer;
}

.gps-track-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.gps-track-list {
  display: grid;
  gap: 4px;
  grid-column: 1;
  order: 2;
  max-height: 104px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.gps-track-list li,
.gps-track-list button,
.gps-track-list select {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.gps-track-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 5px;
}

.gps-track-item {
  min-height: 30px;
  padding: 3px 4px;
  background: color-mix(in srgb, var(--paper) 64%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 7px;
}

.gps-track-item.is-saved {
  cursor: pointer;
}

.gps-track-item.is-active {
  background: color-mix(in srgb, var(--green) 10%, var(--paper));
  border-color: color-mix(in srgb, var(--green) 44%, var(--line));
}

.gps-track-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 24px;
  padding: 2px 5px;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-align: left;
}

.gps-track-summary-main {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 24px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.gps-track-summary-meta {
  display: flex;
  align-items: center;
  gap: 7px;
}

.gps-track-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gps-track-list select {
  height: 24px;
  min-height: 0;
  padding: 2px 22px 2px 7px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.gps-track-fields {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 26px;
  gap: 5px;
  padding-top: 2px;
}

.gps-track-item.is-active .gps-track-fields {
  display: grid;
}

.gps-track-list button:not(.gps-track-summary-main) {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: var(--rust);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--rust) 42%, transparent);
  border-radius: 6px;
  cursor: pointer;
}

.gps-track-item.is-saved .gps-track-delete {
  opacity: 1;
  pointer-events: auto;
}

.gps-track-list button:not(.gps-track-summary-main):hover,
.gps-track-list button:not(.gps-track-summary-main):focus-visible {
  color: #fff;
  background: var(--rust);
  border-color: var(--rust);
  outline: 0;
}

.create-review-list {
  display: grid;
  gap: 10px;
}

.create-review-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.create-review-list i {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

.review-privacy-field {
  max-width: 360px;
}

.trip-visibility-field select {
  max-width: 360px;
}

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

.review-visibility-picker button {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.review-visibility-picker button b {
  font-size: 14px;
}

.review-visibility-picker button small {
  color: var(--muted);
  font-size: 12px;
}

.review-visibility-picker button.active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.review-visibility-picker button.active small {
  color: rgba(255, 255, 255, 0.78);
}

.compact-review-list {
  margin-top: -2px;
}

.trip-edit-page .trip-create-shell {
  grid-template-columns: 210px minmax(0, 1fr) 250px;
}

.trip-edit-page .trip-create-shell:has([data-edit-step="1"].active) {
  grid-template-columns: 180px minmax(0, 1fr);
}

.trip-edit-page.trip-create-page {
  width: min(1760px, calc(100% - 24px));
}

.trip-edit-page .trip-create-rail,
.trip-edit-page .trip-create-summary {
  padding: 14px;
}

.trip-edit-page .trip-create-rail h1 {
  font-size: 28px;
  line-height: 0.98;
}

.trip-edit-page .trip-create-rail nav {
  gap: 7px;
}

.trip-edit-page .trip-create-rail button {
  min-height: 36px;
  padding: 6px 8px;
  font-size: 13px;
}

.trip-edit-page .trip-create-rail b {
  width: 22px;
  height: 22px;
  margin-right: 7px;
  border-radius: 7px;
  font-size: 12px;
}

.trip-edit-page [data-edit-step="1"] {
  align-content: stretch;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 7px;
  padding: 12px 14px;
}

.trip-edit-page .create-step {
  padding: 12px 14px;
}

.trip-edit-page .form-kicker {
  font-size: 11px;
}

.trip-edit-page .create-step h2 {
  font-size: 24px;
}

.edit-route-layout {
  min-height: 0;
  grid-template-columns: minmax(620px, 0.78fr) minmax(560px, 1fr);
}

.edit-route-layout .route-panel {
  padding-right: 4px;
  overflow: auto;
}

.edit-route-layout [data-route-point-items] {
  max-height: 176px;
}

.edit-route-side {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 0;
}

.edit-route-side .trip-create-map {
  min-height: 0;
}

.trip-edit-page [data-edit-step="1"] .field-block {
  gap: 4px;
}

.trip-edit-page [data-edit-step="1"] .field-block > span {
  font-size: 10px;
}

.trip-custom-label-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 8px;
}

.trip-custom-label-row input {
  min-width: 0;
}

.trip-custom-label-row .button {
  min-height: 34px;
  padding: 5px 10px;
  white-space: nowrap;
}

.trip-edit-page [data-edit-step="1"] .field-block input,
.trip-edit-page [data-edit-step="1"] .field-block select {
  min-height: 30px;
  height: 30px;
  padding: 5px 8px;
}

.edit-photo-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.edit-photo-upload {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.edit-photo-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.edit-photo-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 7px;
}

.edit-photo-fields label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.edit-photo-fields span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.edit-photo-fields input,
.edit-photo-fields select {
  min-width: 0;
  height: 38px;
  background: var(--paper);
}

.edit-photo-fields input[name$="taken_date"],
.edit-photo-fields select[name$="privacy"] {
  grid-column: span 1;
}

.edit-photo-hint {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.edit-photo-panel .edit-photo-strip {
  grid-column: 1 / -1;
}

.edit-photo-step-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 0;
}

.edit-photo-step-panel .edit-photo-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.edit-photo-step-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 12px;
  min-height: 0;
}

.photo-add-card,
.current-photos-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.photo-add-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.photo-manager-card {
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: 14px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.photo-manager-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 12px;
}

.photo-manager-toolbar .photo-file-status {
  align-self: center;
  min-width: 120px;
}

.photo-manager-grid {
  display: flex;
  gap: 9px;
  min-height: 142px;
  overflow-x: auto;
  overflow-y: hidden;
}

.photo-manager-item {
  position: relative;
  display: grid;
  grid-template-rows: 96px auto;
  flex: 0 0 138px;
  min-width: 0;
  min-height: 126px;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: grab;
}

.photo-manager-item.is-active {
  border-color: var(--rust);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--rust) 24%, transparent);
}

.photo-manager-item.is-dragging {
  opacity: 0.54;
}

.photo-manager-item img {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
}

.photo-manager-item > button {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  min-height: 0;
  padding: 0;
  color: #fff;
  background: rgba(16, 32, 31, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  cursor: pointer;
}

.photo-manager-item > button svg {
  width: 15px;
  height: 15px;
}

.photo-manager-item b {
  position: absolute;
  top: 6px;
  left: 6px;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  color: #fff;
  background: rgba(16, 32, 31, 0.78);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.photo-manager-item span {
  display: block;
  padding: 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-manager-fields {
  padding-top: 2px;
}

.photo-add-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.photo-add-copy p,
.current-photos-header p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.photo-add-copy span,
.current-photos-header span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.photo-file-status {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

.photo-file-status.has-file {
  color: var(--accent);
  font-weight: 850;
}

.selected-photo-preview-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  max-height: 186px;
  overflow: auto;
}

.selected-photo-preview-list[hidden] {
  display: none;
}

.selected-photo-preview-item {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.selected-photo-preview-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.selected-photo-preview-item b {
  position: absolute;
  top: 6px;
  left: 6px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  color: #fff;
  background: rgba(16, 32, 31, 0.78);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.selected-photo-preview-item span {
  display: block;
  padding: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-photos-card {
  grid-template-columns: minmax(0, 1fr);
}

.current-photos-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.edit-photo-order-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.edit-photo-order-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 9px;
  padding: 7px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.edit-photo-order-item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 7px;
}

.edit-photo-order-item label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.edit-photo-order-item span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.edit-photo-order-item input {
  height: 34px;
  min-height: 34px;
  background: var(--paper-soft);
}

.edit-photo-order-item a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.create-photo-step {
  display: grid;
  gap: 12px;
  max-width: 860px;
  padding: 14px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.create-photo-step .edit-photo-fields {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) 160px 160px;
}

.create-photo-step .edit-photo-hint {
  grid-column: 1 / -1;
}

.edit-manage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-height: 0;
}

.edit-manage-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 12px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.edit-manage-panel p {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.edit-manage-panel h3 {
  margin: 3px 0 0;
  font-size: 22px;
  line-height: 1;
}

.edit-compact-list {
  display: grid;
  gap: 7px;
  max-height: 126px;
  overflow: auto;
}

.edit-compact-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.edit-compact-list span {
  display: grid;
  min-width: 0;
}

.edit-compact-list small {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edit-photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.edit-photo-strip a,
.edit-photo-strip img {
  display: block;
  min-width: 0;
}

.edit-photo-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.edit-review-actions {
  display: flex;
  gap: 10px;
}

.edit-summary-photo {
  width: 100%;
  height: 138px;
  object-fit: cover;
  border-radius: 8px;
}

.trip-create-summary {
  display: grid;
  align-content: start;
  gap: 10px;
}

.trip-create-summary .summary-photo {
  height: 138px;
  background:
    linear-gradient(135deg, rgba(43, 139, 126, 0.90), rgba(43, 139, 126, 0.24) 48%, rgba(224, 123, 104, 0.54) 49%),
    #2b8b7e;
  border-radius: 8px;
}

.trip-create-summary p {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.trip-create-summary h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
}

.trip-create-summary span {
  color: rgba(255, 255, 255, 0.66);
}

/* Desktop trip wizard polish: keep the current skeleton, make controls quieter. */
.trip-create-page {
  width: min(1760px, calc(100% - 24px));
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.trip-create-page .trip-create-shell {
  gap: 12px;
}

.trip-create-page .trip-create-rail,
.trip-create-page .trip-create-summary,
.trip-create-page .create-step,
.trip-create-page .trip-wizard-actions {
  box-shadow: 0 10px 24px rgba(16, 32, 31, 0.07);
}

.trip-create-page .trip-create-rail,
.trip-create-page .trip-create-summary {
  padding: 14px;
}

.trip-create-page .eyebrow,
.trip-create-page .form-kicker,
.trip-create-page .route-list-header p,
.trip-create-page .trip-create-summary p,
.trip-create-page .photo-add-copy p,
.trip-create-page .gps-track-panel b,
.trip-create-page .selected-points b {
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

.trip-create-page .trip-create-rail h1 {
  margin: 6px 0 14px;
  font-size: 24px;
  line-height: 1;
  font-weight: 760;
}

.trip-create-page .trip-create-rail nav {
  gap: 6px;
}

.trip-create-page .trip-create-rail button {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  align-items: center;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.12);
}

.trip-create-page .trip-create-rail button.active {
  background: color-mix(in srgb, var(--green) 78%, transparent);
  border-color: color-mix(in srgb, var(--green) 82%, #fff 18%);
}

.trip-create-page .trip-create-rail b {
  width: 19px;
  height: 19px;
  margin: 0;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.trip-create-page .trip-create-rail button span {
  min-width: 0;
  padding-right: 19px;
  line-height: 1;
  text-align: center;
}

.trip-create-page .create-step {
  gap: 8px;
  padding: 12px 14px;
}

.trip-create-page .create-step h2 {
  font-size: 21px;
  font-weight: 720;
  line-height: 1.08;
}

.trip-create-page .field-block {
  gap: 5px;
}

.trip-create-page .field-block > span,
.trip-create-page .edit-photo-fields span,
.trip-create-page .photo-manager-fields span {
  font-size: 10px;
  font-weight: 720;
  color: color-mix(in srgb, var(--muted) 88%, var(--ink));
}

.trip-create-page input,
.trip-create-page textarea,
.trip-create-page select {
  min-height: 29px;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 560;
}

.trip-create-page textarea {
  height: 70px;
  min-height: 70px;
}

.trip-create-page .button,
.trip-create-page button.button {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.trip-create-page .button.secondary,
.trip-create-page button.button.secondary {
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  border-color: color-mix(in srgb, var(--line) 82%, transparent);
}

.trip-create-page .button.secondary:hover,
.trip-create-page button.button.secondary:hover {
  background: var(--paper);
}

.trip-create-page .button svg,
.trip-create-page button svg {
  width: 13px;
  height: 13px;
}

.trip-create-page .trip-wizard-actions {
  min-height: 40px;
  padding: 5px 7px;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
}

.trip-create-page .route-list-header {
  padding: 5px 7px;
}

.trip-create-page .route-list-header h3 {
  font-size: 13px;
  font-weight: 730;
}

.trip-create-page .route-panel {
  gap: 6px;
}

.trip-create-page .route-point-card {
  min-height: 31px;
  padding: 4px 7px;
  border-radius: 7px;
}

.trip-create-page .route-point-card b {
  font-size: 11px;
  font-weight: 720;
}

.trip-create-page .route-point-card small {
  font-size: 10px;
  font-weight: 620;
}

.trip-create-page .route-middle-card + .route-middle-card {
  margin-top: 4px;
}

.trip-create-page .route-middle-fields {
  gap: 5px;
}

.trip-create-page .route-middle-fields input,
.trip-create-page .route-middle-fields select,
.trip-create-page .route-middle-fields button {
  height: 27px;
  min-height: 27px;
}

.trip-create-page .gps-track-panel,
.trip-create-page .selected-points {
  padding: 6px;
  border-radius: 7px;
}

.trip-create-page .gps-track-list {
  gap: 4px;
}

.trip-create-page .gps-track-item {
  min-height: 27px;
  padding: 2px 4px;
  border-radius: 7px;
}

.trip-create-page .gps-track-summary {
  min-height: 23px;
  padding: 1px 5px;
}

.trip-create-page .gps-track-summary-main {
  min-height: 23px;
}

.trip-create-page .gps-track-name {
  font-size: 11px;
  font-weight: 670;
}

.trip-create-page .gps-track-fields {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 24px;
  gap: 5px;
}

.trip-create-page .gps-track-list select,
.trip-create-page .gps-track-list button:not(.gps-track-summary-main) {
  height: 23px;
  min-height: 23px;
  font-size: 10px;
}

.trip-create-page .trip-label-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trip-create-page .trip-label-picker label {
  min-height: 28px;
  min-width: 112px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 660;
}

.trip-create-page .trip-label-picker label.primary-kind::after {
  right: 8px;
  top: -6px;
  padding: 0 4px;
  color: #fff;
  background: var(--rust);
  border-radius: 999px;
  font-size: 9px;
}

.trip-create-page .trip-custom-label-row {
  max-width: 420px;
}

.trip-create-page .trip-create-summary h2 {
  font-size: 25px;
  font-weight: 760;
  line-height: 1.04;
}

.trip-create-page .trip-create-summary span,
.trip-create-page .photo-add-copy span,
.trip-create-page .photo-file-status,
.trip-create-page .edit-photo-hint {
  font-size: 11px;
  line-height: 1.35;
}

.trip-create-page .photo-manager-card {
  gap: 10px;
  padding: 12px 14px;
}

.trip-create-page .photo-manager-toolbar {
  gap: 10px;
}

.trip-create-page .photo-manager-item {
  grid-template-rows: 88px auto;
  flex-basis: 126px;
  min-height: 116px;
}

.trip-create-page .photo-manager-item img {
  height: 88px;
}

.trip-create-page .photo-manager-item > button {
  width: 23px;
  height: 23px;
}

.trip-create-page .photo-manager-item b {
  min-width: 22px;
  height: 22px;
  font-size: 10px;
}

.trip-create-page .photo-manager-item span {
  padding: 6px;
  font-size: 10px;
}

.trip-edit-page .edit-route-layout [data-route-point-items] {
  max-height: 82px;
}

.trip-edit-page .gps-track-list {
  max-height: 32px;
}

/* Route step section polish: same column width, cleaner point/track layout. */
.trip-create-page .route-list-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  background: color-mix(in srgb, var(--paper-soft) 78%, transparent);
  border-color: color-mix(in srgb, var(--line) 84%, transparent);
}

.trip-create-page .route-list-header h3 {
  margin-top: 1px;
  font-size: 12px;
}

.trip-create-page .route-add-stop,
.trip-create-page .gps-track-upload {
  width: auto;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.trip-create-page .route-point-list {
  padding: 5px;
  background: color-mix(in srgb, var(--paper-soft) 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 8px;
}

.trip-create-page [data-route-point-items] {
  max-height: 132px;
  padding-right: 2px;
  scrollbar-color: color-mix(in srgb, var(--muted) 56%, transparent) transparent;
  scrollbar-width: thin;
}

.trip-create-page [data-route-point-items]::-webkit-scrollbar,
.trip-create-page .gps-track-list::-webkit-scrollbar {
  width: 5px;
}

.trip-create-page [data-route-point-items]::-webkit-scrollbar-thumb,
.trip-create-page .gps-track-list::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--muted) 42%, transparent);
  border-radius: 999px;
}

.trip-create-page [data-route-point-items]::-webkit-scrollbar-track,
.trip-create-page .gps-track-list::-webkit-scrollbar-track {
  background: transparent;
}

.trip-create-page .route-middle-card + .route-middle-card {
  margin-top: 5px;
}

.trip-create-page .route-point-card {
  background: color-mix(in srgb, var(--paper) 46%, transparent);
  border-color: color-mix(in srgb, var(--line) 74%, transparent);
}

.trip-create-page .gps-track-panel {
  gap: 5px;
  padding: 7px;
  background: color-mix(in srgb, var(--paper-soft) 62%, transparent);
  border-color: color-mix(in srgb, var(--line) 72%, transparent);
}

.trip-create-page .gps-track-panel > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.trip-create-page .gps-track-panel > div span {
  min-width: 0;
}

.trip-create-page .gps-track-panel small {
  display: none;
}

.trip-create-page .gps-track-upload {
  grid-column: auto;
  order: initial;
}

.trip-create-page .gps-track-list {
  max-height: 74px;
  padding-right: 2px;
  scrollbar-color: color-mix(in srgb, var(--muted) 56%, transparent) transparent;
  scrollbar-width: thin;
}

.trip-create-page .gps-track-item {
  background: color-mix(in srgb, var(--paper) 46%, transparent);
  border-color: color-mix(in srgb, var(--line) 74%, transparent);
}

.trip-create-page .gps-track-summary {
  padding-right: 6px;
  padding-left: 6px;
}

.trip-edit-page .edit-route-layout [data-route-point-items] {
  max-height: 132px;
}

.trip-edit-page .gps-track-list {
  max-height: 74px;
}

/* Selected Route panel design: Option 2, Field Ledger. */
.trip-create-page .route-panel {
  gap: 8px;
}

.trip-edit-page [data-edit-step="1"] .route-panel {
  height: 100%;
  align-content: stretch;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.trip-edit-page [data-edit-step="1"] .create-route-layout,
.trip-edit-page [data-edit-step="1"] .route-ledger-book {
  height: 100%;
}

.trip-create-page .route-ledger-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.trip-edit-page .route-ledger-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trip-create-page .route-ledger-summary div {
  min-width: 0;
  padding: 8px 9px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line) 18%, transparent) 1px, transparent 1px) 0 0 / 18px 18px,
    color-mix(in srgb, var(--paper-soft) 76%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 8px;
}

.trip-create-page .route-ledger-summary small {
  display: block;
  overflow: hidden;
  color: color-mix(in srgb, var(--muted) 90%, var(--ink));
  font-size: 10px;
  font-weight: 780;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trip-create-page .route-ledger-summary b {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-create-page .route-ledger-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.trip-edit-page .route-ledger-actions {
  grid-template-columns: minmax(0, 1fr);
}

.trip-create-page .route-ledger-actions .route-add-stop,
.trip-create-page .route-ledger-actions .gps-track-upload,
.trip-edit-page .route-ledger-actions .button {
  width: 100%;
  min-height: 28px;
  padding: 4px 8px;
  background: color-mix(in srgb, var(--paper-soft) 70%, transparent);
  border-color: color-mix(in srgb, var(--line) 80%, transparent);
  font-size: 11px;
  font-weight: 760;
}

.trip-create-page .route-ledger-book {
  display: grid;
  grid-template-rows: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 9px;
  min-height: 0;
}

.trip-edit-page .route-ledger-book {
  grid-template-rows: minmax(0, 1fr);
}

.trip-create-page .route-ledger-section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 5px;
  min-width: 0;
  min-height: 0;
}

.trip-create-page .route-ledger-section h3,
.trip-create-page .route-ledger-section > div > span b,
.trip-create-page .route-ledger-section > div > b {
  margin: 0;
  color: var(--green);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: uppercase;
}

.trip-create-page .route-ledger-points .route-point-list,
.trip-create-page .route-ledger-activities .activity-manager-list,
.trip-create-page .route-ledger-tracks {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: 0;
}

.trip-create-page .route-ledger-points .route-point-list {
  overflow: hidden;
}

.trip-create-page .route-ledger-activities {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 5px;
}

.trip-create-page .activity-manager-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.trip-create-page .activity-board {
  grid-template-columns: 1fr;
}

.trip-create-page .activity-manager-card {
  display: grid;
  gap: 8px;
  padding: 9px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line) 12%, transparent) 1px, transparent 1px) 0 0 / 18px 18px,
    color-mix(in srgb, var(--paper-soft) 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 8px;
}

.trip-create-page .activity-assets {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.trip-create-page .activity-asset-group {
  display: grid;
  gap: 5px;
}

.trip-create-page .activity-asset-group > b {
  color: color-mix(in srgb, var(--green) 84%, var(--ink));
  font-size: 10px;
  font-weight: 820;
  line-height: 1.1;
  text-transform: uppercase;
}

.trip-create-page .activity-point-drop,
.trip-create-page .activity-track-drop {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 52px;
  max-height: none;
  overflow: visible;
  padding: 7px;
  background: color-mix(in srgb, var(--paper-soft) 34%, transparent);
  border: 1px dashed color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 8px;
}

.trip-create-page .activity-track-drop.gps-track-list {
  max-height: none;
  margin: 0;
  padding: 7px;
  overflow: visible;
  list-style: none;
}

.trip-create-page .activity-point-drop.is-drop-target,
.trip-create-page .activity-track-drop.is-drop-target {
  background: color-mix(in srgb, var(--green) 12%, var(--paper-soft));
  border-color: color-mix(in srgb, var(--green) 58%, var(--line));
}

.trip-create-page .route-middle-card.is-dragging,
.trip-create-page .gps-track-item.is-dragging {
  opacity: 0.48;
}

.trip-create-page .route-middle-card.is-pending-delete,
.trip-create-page .gps-track-item.is-pending-delete {
  opacity: 0.72;
  background: color-mix(in srgb, var(--rust) 9%, var(--paper-soft));
  border-color: color-mix(in srgb, var(--rust) 42%, var(--line));
  box-shadow: inset 3px 0 0 var(--rust);
}

.trip-create-page .route-middle-card.is-pending-delete .route-point-card,
.trip-create-page .gps-track-item.is-pending-delete .gps-track-summary-main {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: color-mix(in srgb, var(--rust) 74%, transparent);
}

.trip-create-page .route-middle-card.is-pending-delete .route-middle-fields input,
.trip-create-page .route-middle-card.is-pending-delete .route-middle-fields select,
.trip-create-page .gps-track-item.is-pending-delete .gps-track-fields input,
.trip-create-page .gps-track-item.is-pending-delete .gps-track-fields select {
  pointer-events: none;
  opacity: 0.62;
}

.trip-create-page .pending-delete-note {
  display: none;
  grid-column: 1 / -1;
  color: color-mix(in srgb, var(--rust) 82%, var(--ink));
  font-size: 10px;
  font-weight: 820;
  line-height: 1.2;
}

.trip-create-page .is-pending-delete .pending-delete-note {
  display: block;
}

.trip-create-page .activity-manager-card.is-marked-delete {
  opacity: 0.52;
  background: color-mix(in srgb, var(--rust) 10%, var(--paper-soft));
  border-color: color-mix(in srgb, var(--rust) 42%, var(--line));
}

.trip-create-page .activity-manager-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 6px;
}

.trip-create-page .activity-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.trip-create-page .activity-card-actions .button,
.trip-create-page .activity-card-actions .gps-track-upload {
  min-height: 28px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 760;
}

.trip-create-page .activity-manager-main input,
.trip-create-page .activity-create-row input {
  height: 28px;
  min-height: 28px;
  padding: 4px 9px;
  background: color-mix(in srgb, var(--paper-soft) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 7px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 720;
}

.trip-create-page .activity-manager-main button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--rust);
  background: color-mix(in srgb, var(--rust) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--rust) 32%, transparent);
  border-radius: 7px;
}

.trip-create-page .activity-manager-contents {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
}

.trip-create-page .activity-manager-card small {
  overflow: hidden;
  color: color-mix(in srgb, var(--muted) 88%, var(--ink));
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-create-page .activity-create-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
}

.trip-create-page .route-ledger-points [data-route-point-items] {
  display: grid;
  align-content: start;
  gap: 9px;
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
  scroll-padding: 10px;
}

.trip-create-page .route-ledger-points .route-middle-card + .route-middle-card {
  margin-top: 0;
}

.trip-create-page .route-ledger-points .route-point-card {
  min-height: 39px;
  padding: 6px 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line) 14%, transparent) 1px, transparent 1px) 0 0 / 18px 18px,
    color-mix(in srgb, var(--paper-soft) 65%, transparent);
  border-color: color-mix(in srgb, var(--line) 76%, transparent);
}

.trip-create-page .route-ledger-points .route-point-card.active {
  color: var(--ink);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line) 14%, transparent) 1px, transparent 1px) 0 0 / 18px 18px,
    color-mix(in srgb, var(--green) 18%, var(--paper-soft));
  border-color: color-mix(in srgb, var(--green) 56%, var(--line));
  box-shadow: inset 3px 0 0 var(--green);
}

.trip-create-page .route-ledger-points .route-point-card.active small {
  color: var(--muted);
}

.trip-create-page .route-ledger-points .route-point-card svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.trip-create-page .route-ledger-tracks {
  display: grid;
  gap: 5px;
}

.trip-create-page .route-ledger-tracks > div:first-child {
  display: block;
}

.trip-create-page .route-ledger-tracks .gps-track-list {
  display: grid;
  align-content: start;
  gap: 9px;
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
  scroll-padding: 10px;
}

.trip-create-page .route-ledger-tracks .gps-track-list > li:not(.gps-track-item) {
  min-height: 31px;
  padding: 7px 8px;
  color: var(--muted);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line) 14%, transparent) 1px, transparent 1px) 0 0 / 18px 18px,
    color-mix(in srgb, var(--paper-soft) 58%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
}

.trip-create-page .route-ledger-tracks .gps-track-item {
  min-height: 31px;
  padding: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line) 14%, transparent) 1px, transparent 1px) 0 0 / 18px 18px,
    color-mix(in srgb, var(--paper-soft) 58%, transparent);
  border-color: color-mix(in srgb, var(--line) 72%, transparent);
}

.trip-create-page .route-ledger-tracks .gps-track-summary {
  min-height: 31px;
  padding: 5px 8px;
  overflow: hidden;
}

.trip-create-page .route-ledger-tracks .gps-track-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-edit-page .edit-route-layout .route-ledger-points [data-route-point-items] {
  max-height: none;
}

.trip-edit-page .edit-route-layout .route-ledger-tracks .gps-track-list {
  max-height: none;
}

/* Selected inline editor design: Option 4, Inline Action Bar. */
.trip-create-page .route-ledger-book .route-middle-card,
.trip-create-page .route-ledger-book .gps-track-item {
  overflow: visible;
}

.trip-create-page .activity-route-board .gps-track-item {
  display: grid !important;
  align-self: start;
  min-height: 0;
  padding: 0;
  background: color-mix(in srgb, var(--paper-soft) 58%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 7px;
}

.trip-create-page .activity-route-board .gps-track-summary {
  min-height: 31px;
  padding: 5px 8px;
}

.trip-create-page .route-ledger-book .route-middle-card.is-active,
.trip-create-page .route-ledger-book .gps-track-item.is-active {
  min-height: 94px;
  gap: 7px;
  margin-bottom: 8px;
  padding: 8px;
  background: color-mix(in srgb, var(--green) 9%, var(--paper-soft));
  border: 1px solid color-mix(in srgb, var(--green) 42%, var(--line));
  border-radius: 8px;
  box-shadow: inset 3px 0 0 var(--green), 0 8px 18px rgba(0, 0, 0, 0.10);
}

.trip-create-page .route-ledger-book .gps-track-item.is-active {
  display: grid !important;
  align-items: stretch;
}

.trip-create-page .route-ledger-book .route-middle-card.is-active .route-point-card,
.trip-create-page .route-ledger-book .gps-track-item.is-active .gps-track-summary {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 3px 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.trip-create-page .route-ledger-book .route-middle-card.is-active .route-point-card {
  color: var(--ink);
}

.trip-create-page .route-ledger-book .route-middle-card.is-active .route-point-card small {
  color: var(--muted);
}

.trip-create-page .route-ledger-book .route-middle-fields,
.trip-create-page .route-ledger-book .gps-track-fields {
  position: static;
  width: 100%;
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px;
  gap: 7px;
  padding: 8px;
  background: color-mix(in srgb, var(--paper-soft) 72%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 8px;
}

.trip-create-page .route-ledger-book .gps-track-fields {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px;
  grid-template-rows: auto auto;
  gap: 10px;
}

.trip-create-page .route-ledger-book .gps-track-meta {
  display: none;
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-create-page .route-ledger-book .route-middle-card.is-active .route-middle-fields,
.trip-create-page .route-ledger-book .gps-track-item.is-active .gps-track-fields {
  display: grid;
}

.trip-create-page .route-ledger-book .route-middle-fields input,
.trip-create-page .route-ledger-book .route-middle-fields select,
.trip-create-page .route-ledger-book .gps-track-fields input,
.trip-create-page .route-ledger-book .gps-track-fields select {
  height: 30px;
  min-height: 30px;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--paper-soft) 70%, transparent);
  border-color: color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 720;
}

.trip-create-page .activity-route-board .gps-track-summary {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.trip-create-page .activity-route-board .gps-track-point-count {
  color: color-mix(in srgb, var(--muted) 88%, var(--ink));
  font-size: 10px;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
}

.trip-create-page .route-ledger-book .gps-track-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.trip-create-page .route-ledger-book .gps-track-field span {
  color: color-mix(in srgb, var(--muted) 86%, var(--ink));
  font-size: 9px;
  font-weight: 820;
  line-height: 1;
  text-transform: uppercase;
}

.trip-create-page .route-ledger-book .gps-track-field input,
.trip-create-page .route-ledger-book .gps-track-field select {
  width: 100%;
}

.trip-create-page .route-ledger-book .route-middle-fields button,
.trip-create-page .route-ledger-book .gps-track-summary-meta button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  color: var(--rust);
  background: color-mix(in srgb, var(--rust) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--rust) 35%, transparent);
  border-radius: 7px;
}

.trip-create-page .route-ledger-book .route-middle-fields button:hover,
.trip-create-page .route-ledger-book .route-middle-fields button:focus-visible,
.trip-create-page .route-ledger-book .gps-track-summary-meta button:hover,
.trip-create-page .route-ledger-book .gps-track-summary-meta button:focus-visible {
  color: #fff;
  background: var(--rust);
  border-color: var(--rust);
  outline: 0;
}

.trip-create-page .route-ledger-book .route-middle-fields button svg,
.trip-create-page .route-ledger-book .gps-track-summary-meta button svg {
  width: 13px;
  height: 13px;
}

.trip-create-page .route-ledger-book .route-middle-fields .point-label-trigger {
  grid-template-columns: auto minmax(0, 1fr);
  justify-content: stretch;
  width: 100%;
  height: auto;
  min-height: 30px;
  padding: 4px 8px;
}

.trip-create-page .route-ledger-book .route-middle-fields .point-label-option {
  width: auto;
  height: auto;
  min-height: 24px;
  padding: 4px 8px;
}

.trip-create-page .route-ledger-book .route-point-fields .point-date-field {
  grid-column: auto;
}

.trip-create-page .route-ledger-book .route-point-fields .point-label-picker {
  grid-column: 1 / -1;
}

.trip-create-page .route-ledger-book .route-point-fields [data-point-title] {
  grid-column: 1;
}

.trip-create-page .route-ledger-book .route-point-fields [data-remove-route-point] {
  grid-column: 3;
  grid-row: 2;
  align-self: auto;
  height: 30px;
}

.trip-create-page .route-ledger-book .saved-point-fields input[type="text"] {
  grid-column: 1 / -1;
}

.trip-create-page .route-ledger-book .saved-point-fields input[type="date"] {
  grid-column: 1 / 3;
}

.trip-create-page .route-ledger-book .saved-point-fields button {
  grid-column: 3;
  grid-row: 2;
}

.trip-create-page .route-ledger-book .gps-track-source-field {
  grid-column: 1;
  grid-row: 2;
}

.trip-create-page .route-ledger-book .gps-track-type-field {
  grid-column: 2;
  grid-row: 2;
}

.trip-create-page .route-ledger-book .gps-track-start-date-field {
  grid-column: 1;
  grid-row: 3;
}

.trip-create-page .route-ledger-book .gps-track-end-date-field {
  grid-column: 2;
  grid-row: 3;
}

@media (max-width: 900px) {
  .darkroom-head,
  .contact-timeline-head,
  .trip-title-row,
  .trip-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .darkroom-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 230px);
  }

  .journal-hero-tile {
    grid-row: auto;
  }

  .journal-timebar {
    min-width: 720px;
  }

  .passport-book {
    grid-template-columns: 1fr;
  }
}
