:root {
  --ink: #1f2925;
  --muted: #6a746f;
  --line: #dce2de;
  --paper: #ffffff;
  --surface: #f4f6f4;
  --accent: #16754a;
  --accent-dark: #0f5c39;
  --detail-header-accent: #5a9f7a;
  --signal: #d4553d;
  --topbar-height: 64px;
  --route-split-min: 460px;
  --route-split-max: 47%;
  --detail-inline-pad: clamp(30px, 5vw, 76px);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body {
  padding-top: var(--topbar-height);
  overflow: hidden;
}
body.design-test-page { overflow: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.topbar {
  height: var(--topbar-height);
  min-height: var(--topbar-height);
  flex-shrink: 0;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.brand { grid-column: 1; display: inline-flex; align-items: center; gap: 11px; font-weight: 750; text-decoration: none; font-size: 18px; }
.brand-name { flex: 0 0 auto; }
.brand-tagline { color: var(--muted); font-size: 16px; font-weight: 500; white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; display: block; object-fit: contain; flex: 0 0 auto; }
.site-version { grid-column: 2; align-self: center; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: 0; }
.topbar-meta {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.topbar-meta .site-version { grid-column: auto; align-self: auto; }
.site-testing-notice {
  color: var(--signal);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.topbar-telegram-link {
  flex: 0 0 40px;
  color: #168acd;
}
.topbar-telegram-link:hover {
  color: #0f6fa8;
}

.topbar.topbar--ownership-transfer {
  height: auto;
  min-height: var(--topbar-height);
  grid-template-rows: 64px auto;
  row-gap: 6px;
  padding-top: 0;
  padding-bottom: 8px;
  border: 3px solid #ef3f32;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 201, 47, 0.9), 0 3px 16px rgba(174, 30, 22, 0.3);
  animation: ownership-transfer-danger-outline 1.8s ease-in-out infinite;
}
.topbar--ownership-transfer > .brand,
.topbar--ownership-transfer > .topbar-meta,
.topbar--ownership-transfer > .topbar-center,
.topbar--ownership-transfer > .topbar-actions {
  grid-row: 1;
}
.topbar-ownership-alerts {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  gap: 5px;
  min-width: 0;
}
.topbar-ownership-alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #ef3f32;
  border-radius: 5px;
  color: #8e2019;
  background: #fff3d5;
  font-size: 13px;
}
.topbar-ownership-alert > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #dc2e24;
}
.topbar-ownership-alert strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.topbar-ownership-alert a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  padding: 4px 7px;
  border: 1px solid #d9362c;
  border-radius: 4px;
  color: #8e2019;
  background: #fff;
  font-weight: 750;
  text-decoration: none;
}
.topbar-ownership-alert a:hover {
  background: #ffe1dc;
}
.topbar-ownership-alert a svg {
  width: 15px;
  height: 15px;
}
@keyframes ownership-transfer-danger-outline {
  0%, 100% { box-shadow: inset 0 0 0 2px rgba(255, 201, 47, 0.75), 0 3px 12px rgba(174, 30, 22, 0.22); }
  50% { box-shadow: inset 0 0 0 2px rgba(255, 201, 47, 1), 0 3px 20px rgba(225, 39, 29, 0.48); }
}
@media (prefers-reduced-motion: reduce) {
  .topbar.topbar--ownership-transfer { animation: none; }
}

.ownership-transfer-page {
  overflow: auto;
  background: #f4f6f4;
}
.ownership-transfer-layout {
  min-height: calc(100vh - var(--topbar-height));
  display: grid;
  place-items: center;
  padding: 42px 20px;
}
.ownership-transfer-panel {
  width: min(620px, 100%);
  padding: 30px;
  border: 1px solid #d8dfdb;
  border-left: 5px solid #d9362c;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(26, 55, 41, 0.1);
}
.ownership-transfer-panel-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid #efb3ad;
  border-radius: 6px;
  color: #b72b22;
  background: #fff0ee;
}
.ownership-transfer-panel-icon svg {
  width: 25px;
  height: 25px;
}
.ownership-transfer-kicker {
  margin: 0 0 5px;
  color: #8e2019;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.ownership-transfer-panel h1 {
  margin: 0 0 12px;
  color: #192b22;
  font-size: 28px;
  line-height: 1.2;
}
.ownership-transfer-panel > p:not(.ownership-transfer-kicker) {
  margin: 0 0 20px;
  color: #53665d;
  line-height: 1.55;
}
.ownership-transfer-confirm-form {
  display: grid;
  gap: 9px;
}
.ownership-transfer-confirm-form label {
  color: #354b40;
  font-size: 13px;
  font-weight: 750;
}
.ownership-transfer-confirm-form input {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #bdcec5;
  border-radius: 5px;
  outline: 0;
}
.ownership-transfer-confirm-form input:focus {
  border-color: #d9362c;
  box-shadow: 0 0 0 3px rgba(217, 54, 44, 0.12);
}
.ownership-transfer-form-error,
.ownership-transfer-form-error ul {
  margin: 0;
  padding: 0;
  color: #b32921;
  font-size: 13px;
  list-style: none;
}
.ownership-transfer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.ownership-transfer-actions .danger-action {
  min-height: 40px;
  padding: 0 14px;
  border-color: #d9362c;
  color: #fff;
  background: #d9362c;
}
.ownership-transfer-actions .danger-action:hover:not(:disabled) {
  border-color: #b82921;
  color: #fff;
  background: #b82921;
}

.about-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.about-modal[hidden] { display: none; }
body.about-modal-open { overflow: hidden; }
.about-modal.is-closing {
  pointer-events: none;
}
.about-modal.is-closing .about-modal-backdrop {
  opacity: 0;
  transition: opacity 460ms cubic-bezier(0.22, 1, 0.36, 1);
}
.about-modal.is-closing .android-app-modal-panel {
  opacity: 0.72;
  transform:
    translate(
      var(--android-app-close-offset-x),
      var(--android-app-close-offset-y)
    )
    scale(
      var(--android-app-close-scale-x),
      var(--android-app-close-scale-y)
    );
  transform-origin: center;
  transition:
    opacity 460ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}
[data-android-app-open].android-app-arrival {
  animation: android-app-button-arrival 300ms ease-out;
}
@keyframes android-app-button-arrival {
  0% { transform: scale(1); }
  45% { transform: scale(1.14); }
  100% { transform: scale(1); }
}
.about-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 41, 37, 0.58);
  backdrop-filter: blur(2px);
}
.about-modal-panel {
  position: relative;
  flex: 0 1 auto;
  width: min(480px, calc(100vw - 48px));
  max-width: 480px;
  max-height: min(85vh, 900px);
  overflow: auto;
  padding: 24px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(31, 41, 37, 0.24);
}
.about-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
}
.about-modal .about-modal-body h1 { margin: 0 0 14px; font-size: 28px; color: var(--ink); }
.about-modal > .about-modal-panel > .eyebrow { text-transform: none; }
.about-modal .about-modal-body h1 + p { margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--ink); font-weight: 500; }
.about-modal .about-modal-body h2 {
  margin: 28px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 22px;
  color: var(--ink);
}
.about-modal .about-modal-body p,
.about-modal .about-modal-body li { color: var(--ink); line-height: 1.7; }
.about-modal .about-modal-body p { margin: 0 0 12px; }
.about-modal .about-modal-body ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
}
.about-modal .about-modal-body li + li { margin-top: 8px; }
.about-modal .about-modal-body > p:last-child { margin-top: 32px; margin-bottom: 0; }
.about-modal .about-modal-body strong { color: var(--ink); }
.android-app-modal-body .android-app-download-action {
  width: 100%;
  margin-top: 16px;
}
.android-app-modal-panel {
  width: min(720px, calc(100vw - 48px));
  max-width: 720px;
}
.android-app-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.android-app-feature {
  min-width: 0;
  margin: 0;
}
.android-app-feature figcaption {
  min-height: 3.1em;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}
.android-app-feature img {
  display: block;
  width: auto;
  max-width: 100%;
  height: min(44vh, 410px);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  object-fit: contain;
}
.android-app-showcase-controls {
  display: none;
}
.topbar-center { grid-column: 3; min-width: 0; display: flex; justify-content: center; align-items: center; }
.search-field { height: 40px; display: flex; align-items: center; gap: 10px; margin: 0; padding: 0 13px; background: var(--surface); border: 1px solid transparent; }
.search-field:focus-within { border-color: var(--accent); background: var(--paper); }
.search-field svg { width: 18px; color: var(--muted); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.topbar-actions { grid-column: 4; justify-self: end; margin-left: auto; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar-actions form { margin: 0; }
.user-label { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--accent); font-size: inherit; font-weight: 700; }
.mobile-account-link,
.mobile-directory-link { display: none; }
.user-link { color: var(--accent); font-weight: 750; text-decoration: none; }
.user-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-action { padding: 10px 8px; color: var(--accent); font-weight: 700; text-decoration: none; }
.topbar-directory-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.topbar-directory-link svg { width: 18px; height: 18px; }
.icon-button, .primary-action, .secondary-action, .stub-action, .ghost-action { height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--paper); text-decoration: none; }
.icon-button { cursor: pointer; }
.icon-button { width: 40px; }
.icon-button svg, .primary-action svg, .secondary-action svg, .stub-action svg { width: 18px; height: 18px; }
.primary-action { gap: 8px; padding: 0 15px; color: white; background: var(--accent); border-color: var(--accent); font-weight: 650; }
.primary-action.icon-only { width: 40px; padding: 0; gap: 0; }
.primary-action:hover { background: var(--accent-dark); }
.trip-join-inline-action {
  margin-top: 16px;
}
.trip-join-participants-action {
  margin-top: 0;
}
#trip-people-reviews {
  gap: 0;
}
.trip-join-button {
  width: fit-content;
}
.trip-join-panel h2 {
  margin: 0 48px 18px 0;
  font-size: 24px;
}
.trip-plan-reset-panel {
  width: min(520px, calc(100vw - 32px));
  max-width: 520px;
}
.trip-plan-reset-modal .trip-join-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.trip-plan-reset-modal .trip-join-modal-actions form {
  margin: 0;
}
.trip-join-warning {
  margin: 0 0 16px;
}
.trip-join-rules-box {
  margin-bottom: 20px;
}
.trip-join-rules {
  margin: 0;
}
.trip-join-empty-rules {
  margin: 0;
}
.trip-join-modal-actions {
  margin-top: 22px;
}
.trip-join-modal-actions form {
  margin: 0;
}
.corporate-request-panel h2 {
  margin: 0 48px 18px 0;
  font-size: 24px;
}
.corporate-request-form {
  margin: 0;
}
.corporate-request-contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.secondary-action { gap: 8px; padding: 0 14px; color: var(--accent); border-color: var(--accent); font-weight: 650; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease; }
.secondary-action.icon-only { width: 40px; padding: 0; gap: 0; }
.secondary-action:hover:not(:disabled):not(.is-active) { background: rgba(22,117,74,.08); }
.secondary-action:active:not(:disabled):not(.is-active) {
  background: rgba(22,117,74,.16);
  border-color: var(--accent-dark);
  color: var(--accent-dark);
}
.secondary-action.is-active {
  background: rgba(22,117,74,.16);
  border-color: var(--accent-dark);
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px rgba(22, 117, 74, 0.18);
}
.secondary-action.is-active:hover:not(:disabled) { background: rgba(22,117,74,.22); }
.secondary-action.icon-only.is-active svg { fill: currentColor; }
.secondary-action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(22, 117, 74, 0.25);
}
.secondary-action.is-active:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(22, 117, 74, 0.18), 0 0 0 2px rgba(22, 117, 74, 0.25);
}
.secondary-action:not(.is-pinned) [data-pin-map-view-check] {
  display: none;
}
.secondary-action.is-pinned [data-pin-map-view-check] {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
}
.secondary-action:disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
}
.action-with-tooltip {
  display: inline-flex;
  align-items: stretch;
}
.route-summary-toolbar-actions form {
  margin: 0;
}
.stub-action { gap: 8px; padding: 0 14px; color: #be185d; border-color: #f472b6; background: #fff7fb; font-weight: 650; cursor: not-allowed; }
.stub-action.icon-only { width: 40px; padding: 0; }
.stub-action:disabled { opacity: 1; }
.ghost-action { padding: 0 14px; color: var(--muted); font-weight: 650; cursor: pointer; }
.ghost-action:hover { border-color: var(--signal); color: var(--signal); }
.ghost-action:disabled,
.ghost-action:disabled:hover {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}
.danger-action { color: var(--signal); border-color: rgba(212,85,61,.45); background: #fff; }
.danger-action:hover { background: rgba(212,85,61,.08); }
.ghost-action.danger-action:disabled,
.ghost-action.danger-action:disabled:hover,
.action-with-tooltip .ghost-action.danger-action:disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
  background: #fff;
  border-color: rgba(212, 85, 61, 0.28);
  color: rgba(212, 85, 61, 0.55);
}
.design-test-shell {
  width: min(1120px, calc(100vw - 48px));
  margin: 32px auto 64px;
}
.design-test-shell h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.15;
}
.design-test-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.design-test-button-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.design-test-button-row {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.design-test-button-row h2 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  text-transform: uppercase;
}
.primary-action[aria-pressed="true"] {
  border-color: rgba(22, 117, 74, 0.46);
  background: rgba(22, 117, 74, 0.24);
  color: var(--accent-dark);
  box-shadow: inset 0 2px 4px rgba(10, 75, 45, 0.22);
  transform: translateY(1px);
}
.design-test-demo-button {
  min-width: 190px;
  justify-content: center;
}
.design-test-help-button {
  position: static;
  width: 42px;
  height: 42px;
  color: var(--accent);
  background: var(--paper);
}
.design-test-help-button svg {
  width: 18px;
  height: 18px;
}
.design-test-button-variants .design-test-demo-button {
  height: 42px;
  border-width: 1px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.design-test-button-variants .design-test-demo-button:hover:not(:disabled),
.design-test-button-variants .design-test-help-button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.button-style-pill {
  border-radius: 999px;
}
.button-style-radius-12 {
  border-radius: 12px;
}
.button-style-radius-8 {
  border-radius: 8px;
}
.button-style-soft-shadow {
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(22, 117, 74, 0.18);
}
.button-style-raised {
  border-radius: 10px;
  box-shadow: 0 3px 0 var(--accent-dark);
}
.button-style-raised:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--accent-dark);
}
.button-style-tonal {
  border-radius: 12px;
  border-color: rgba(22, 117, 74, 0.16);
  background: rgba(22, 117, 74, 0.11);
  color: var(--accent);
}
.button-style-tonal:hover:not(:disabled) {
  background: rgba(22, 117, 74, 0.18);
  color: var(--accent-dark);
}
.button-style-outline-soft {
  border-radius: 12px;
  border-color: var(--accent);
  background: var(--paper);
  color: var(--accent);
}
.button-style-outline-soft:hover:not(:disabled) {
  background: rgba(22, 117, 74, 0.08);
  color: var(--accent-dark);
}
.button-style-left-accent {
  border-left-width: 5px;
  border-color: var(--line);
  border-left-color: var(--accent);
  border-radius: 10px;
  background: var(--paper);
  color: var(--accent);
}
.button-style-left-accent:hover:not(:disabled) {
  background: rgba(22, 117, 74, 0.08);
}
.button-style-bottom-accent {
  border-bottom-width: 4px;
  border-color: var(--line);
  border-bottom-color: var(--accent);
  border-radius: 10px;
  background: var(--paper);
  color: var(--accent);
}
.button-style-bottom-accent:hover:not(:disabled) {
  background: rgba(22, 117, 74, 0.08);
}
.button-style-split-icon {
  gap: 0;
  overflow: hidden;
  border-radius: 12px;
  padding-left: 0;
}
.button-style-split-icon svg {
  align-self: stretch;
  width: 42px;
  height: auto;
  margin-right: 12px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.18);
}
.button-style-muted-surface {
  border-radius: 12px;
  border-color: var(--line);
  background: #eef3ef;
  color: var(--ink);
}
.button-style-muted-surface:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.design-test-all-buttons .button-style-pill {
  border-radius: 999px;
}
.design-test-all-buttons .button-style-tonal {
  border: 1px solid rgba(22, 117, 74, 0.22);
  background: rgba(22, 117, 74, 0.11);
  color: var(--accent);
}
.design-test-all-buttons .button-style-tonal:hover:not(:disabled) {
  border-color: rgba(22, 117, 74, 0.34);
  background: rgba(22, 117, 74, 0.18);
  color: var(--accent-dark);
}
.design-test-all-buttons .primary-action.button-style-tonal,
.design-test-all-buttons .stub-action.button-style-tonal {
  color: var(--accent);
}
.design-test-all-buttons .text-action.button-style-tonal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.design-test-all-buttons .richtext-btn.button-style-tonal,
.design-test-all-buttons .route-gallery-thumb-button.button-style-tonal {
  width: 42px;
  height: 42px;
}
.design-test-all-buttons .route-gallery-slot-button.button-style-tonal,
.design-test-all-buttons .club-instructor-list-button.button-style-tonal {
  min-height: 42px;
  padding: 0 18px;
  text-decoration: none;
}
.design-test-thumb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.design-test-mobile-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(92px, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.design-test-mobile-toggle button {
  min-height: 40px;
  cursor: pointer;
  font-weight: 750;
}
.design-test-mobile-toggle button.is-active {
  box-shadow: inset 0 0 0 1px rgba(22, 117, 74, 0.16);
}
.design-test-buttons-rounded .icon-button,
.design-test-buttons-rounded .primary-action,
.design-test-buttons-rounded .secondary-action,
.design-test-buttons-rounded .ghost-action,
.design-test-buttons-rounded .filter-button,
.design-test-buttons-rounded .block-help-button,
.design-test-buttons-rounded button {
  border-radius: 999px;
}
.design-test-buttons-rounded .primary-action,
.design-test-buttons-rounded .secondary-action,
.design-test-buttons-rounded .ghost-action,
.design-test-buttons-rounded .filter-button {
  padding-inline: 18px;
}
.design-test-buttons-rounded .icon-button,
.design-test-buttons-rounded .primary-action.icon-only,
.design-test-buttons-rounded .secondary-action.icon-only,
.design-test-buttons-rounded .block-help-button {
  border-radius: 50%;
}
.design-test-buttons-rounded .primary-action,
.design-test-buttons-rounded .secondary-action,
.design-test-buttons-rounded .ghost-action,
.design-test-buttons-rounded .filter-button,
.design-test-buttons-rounded .icon-button,
.design-test-buttons-rounded .block-help-button {
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.design-test-buttons-rounded .primary-action:hover:not(:disabled),
.design-test-buttons-rounded .secondary-action:hover:not(:disabled),
.design-test-buttons-rounded .ghost-action:hover:not(:disabled),
.design-test-buttons-rounded .filter-button:hover:not(:disabled),
.design-test-buttons-rounded .icon-button:hover:not(:disabled),
.design-test-buttons-rounded .block-help-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.map-compare-page {
  overflow: hidden;
}

.map-compare-shell {
  height: calc(100vh - var(--topbar-height));
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  padding: 8px;
  background: var(--page);
}

.map-compare-toolbar {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.map-compare-style-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.map-compare-style-picker select {
  min-width: 260px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 32px 0 10px;
}

.map-compare-readout {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.map-compare-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.map-compare-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--accent);
  background: #fff;
}

.map-compare-panel header {
  min-height: 38px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.map-compare-panel header strong {
  color: var(--accent-dark);
}

.map-compare-panel header span {
  color: var(--muted);
  font-size: 12px;
}

.map-compare-map {
  min-height: 0;
  width: 100%;
  height: 100%;
  background: #eef3ef;
}

.map-compare-map.is-inspecting {
  cursor: crosshair;
}

.map-compare-toolbar .secondary-action.is-active {
  border-color: var(--accent);
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px rgba(22, 117, 74, 0.18);
}

.map-compare-inspector {
  position: fixed;
  z-index: 1100;
  top: calc(var(--topbar-height) + 62px);
  right: 18px;
  width: min(420px, calc(100vw - 36px));
  max-height: calc(100vh - var(--topbar-height) - 86px);
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--accent);
  background: #fff;
  box-shadow: 0 18px 42px rgba(31, 41, 37, 0.18);
}

.map-compare-inspector[hidden] {
  display: none;
}

.map-compare-inspector header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.map-compare-inspector header strong {
  color: var(--accent-dark);
}

.map-compare-inspector-body {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding: 12px;
  font-size: 13px;
}

.map-compare-inspector-meta {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.map-compare-feature {
  border: 1px solid var(--line);
  background: var(--paper);
}

.map-compare-feature.is-selected {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}

.map-compare-feature summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  cursor: pointer;
}

.map-compare-feature summary span {
  color: var(--accent);
  font-weight: 750;
}

.map-compare-feature summary strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-compare-feature summary small {
  color: var(--muted);
  white-space: nowrap;
}

.map-compare-properties {
  display: grid;
  grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.map-compare-properties dt,
.map-compare-properties dd {
  margin: 0;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(217, 226, 220, 0.7);
  word-break: break-word;
}

.map-compare-properties dt {
  color: var(--muted);
  font-weight: 750;
}

.map-compare-copy-summary {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--accent);
  background: var(--surface);
}

.map-compare-copy-summary h3 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 13px;
}

.map-compare-copy-summary textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: 12px/1.35 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.map-compare-copy-summary .secondary-action {
  justify-self: start;
}

.map-compare-overlay-items {
  display: grid;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.map-compare-overlay-items h3 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 13px;
}

.map-compare-overlay-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  background: var(--surface);
}

.map-compare-overlay-item span {
  color: var(--muted);
  white-space: nowrap;
}

.message-stack { position: fixed; z-index: 1200; top: 76px; right: 18px; width: min(360px, calc(100vw - 36px)); display: grid; gap: 8px; }
.message { padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(31,41,37,.12); font-size: 13px; font-weight: 650; }
.message-success { border-left: 4px solid var(--accent); }
.message-info { border-left: 4px solid #557c9c; }

.workspace { height: calc(100vh - var(--topbar-height)); display: grid; grid-template-columns: 360px minmax(0, 1fr); }
.sidebar {
  min-width: 0;
  overflow: auto;
  background: var(--paper);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 14px 16px;
}
.eyebrow { margin: 0 0 5px; color: var(--accent); font-size: 12px; font-weight: 750; text-transform: uppercase; }
h1 { margin: 0; font-size: 27px; line-height: 1.15; letter-spacing: 0; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 22px 14px; padding: 4px; background: var(--surface); border: 1px solid var(--line); }
.mode-switch a { min-height: 34px; display: grid; place-items: center; color: var(--muted); font-size: 13px; font-weight: 750; text-decoration: none; }
.mode-switch a.is-active { background: var(--paper); color: var(--accent); border: 1px solid var(--line); }
.filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 0;
  border-bottom: 0;
}
.filter-field { display: flex; flex-direction: column; gap: 4px; font-size: 0.92rem; min-width: 0; }
.filters .filter-control {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font: inherit;
  color: var(--ink);
}
.filters .filter-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent);
}
.filters .filter-control.is-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 1px #c0392b;
}
.filters select.filter-control {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}
.filters input.filter-control[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
.filters input.filter-control[type="number"]::-webkit-outer-spin-button,
.filters input.filter-control[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.filter-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  width: 100%;
}
.filter-range .filter-control {
  min-width: 0;
  max-width: 100%;
}
.filters input.filter-control[type="date"] {
  padding-inline: 8px;
  font-size: 12px;
  overflow: hidden;
}
.filters input.filter-control[type="date"]::-webkit-datetime-edit-fields-wrapper {
  min-width: 0;
}
.catalog-tag-filter .tag-input-wrap { width: 100%; }
.catalog-tag-filter .tag-entry { display: flex; gap: 8px; align-items: stretch; }
.catalog-tag-filter .tag-list { padding-top: 6px; }
.filter-button { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none; }
.filter-button:hover, .filter-button.is-active { border-color: var(--accent); color: var(--accent); background: rgba(22,117,74,.08); }
.filter-button svg { width: 17px; height: 17px; }
.filter-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; }
.filter-area-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0 4px;
}
.filter-check-area { flex: 1; min-width: 0; margin: 0; }
.area-filter-edit {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
}
.area-filter-edit svg { width: 16px; height: 16px; }
.area-filter-edit.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(22, 117, 74, 0.08);
}
.filter-check { display: flex; align-items: flex-start; gap: 7px; padding: 1px 0; border: 0; background: none; color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 600; line-height: 1.3; min-width: 0; }
.filter-check span { min-width: 0; }
.filter-check input { width: 13px; height: 13px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.route-row[hidden] { display: none; }
.route-list { min-height: 160px; }
.route-row { min-height: 52px; display: grid; grid-template-columns: 1fr 16px; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--line); text-decoration: none; }
.route-row:hover { background: var(--surface); }
.route-row-trip { border-left: 3px solid #557c9c; }
.route-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.route-copy strong, .route-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-copy strong { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; }
.route-copy strong svg { flex: 0 0 auto; width: 14px; height: 14px; color: var(--accent); }
.route-row-trip .route-copy strong svg { color: #557c9c; }
.route-copy small { color: var(--muted); font-size: 11px; }
.route-row svg { width: 15px; color: var(--muted); }
.empty-state { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; color: var(--muted); }
.empty-state svg { width: 34px; height: 34px; color: var(--accent); }
.empty-state strong { color: var(--ink); }
.empty-state a { color: var(--accent); font-weight: 650; }

.map-panel { position: relative; min-width: 0; background: #dfe7e1; }
#map { width: 100%; height: 100%; }
#map.is-selecting { cursor: crosshair; }

#map.is-selecting,
#map.is-selecting .leaflet-grab {
  cursor: crosshair;
}

#map.is-selecting.leaflet-dragging,
#map.is-selecting.leaflet-dragging .leaflet-grab {
  cursor: crosshair;
}
.travel-map-provider-control {
  display: grid;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--ink);
}
.leaflet-container .leaflet-bottom.leaflet-right {
  left: 0;
  pointer-events: none;
}
.leaflet-container .leaflet-bottom.leaflet-right .leaflet-control {
  pointer-events: auto;
}
.leaflet-container .leaflet-bottom.leaflet-right .leaflet-control-attribution {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 2px 6px;
  background: transparent;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-align: right;
  user-select: none;
  -webkit-user-select: none;
  white-space: normal;
}
.travel-map-provider-buttons {
  display: grid;
  gap: 4px;
}
.travel-map-provider-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.travel-map-3d-invert-toggle {
  position: relative;
  display: none;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.travel-map-provider-control.is-3d-provider-active .travel-map-3d-invert-toggle {
  display: grid;
}
.travel-map-3d-invert-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.travel-map-3d-invert-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
}
.travel-map-3d-invert-icon svg {
  width: 19px;
  height: 19px;
}
.travel-map-3d-invert-toggle input:checked + .travel-map-3d-invert-icon {
  color: var(--accent-dark);
}
.travel-map-3d-invert-toggle input:focus-visible + .travel-map-3d-invert-icon {
  outline: 2px solid rgba(22, 117, 74, 0.45);
  outline-offset: 1px;
}
.travel-map-3d-invert-toggle::after {
  position: absolute;
  right: calc(100% + 8px);
  bottom: 50%;
  z-index: 1000;
  width: max-content;
  max-width: 220px;
  padding: 5px 7px;
  border: 1px solid rgba(26, 42, 35, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(20, 30, 25, 0.14);
  color: var(--ink);
  content: attr(data-map-provider-tooltip);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translateY(50%);
  transition: opacity 0.12s ease;
  white-space: normal;
}
.travel-map-3d-invert-toggle:hover::after,
.travel-map-3d-invert-toggle:focus-within::after {
  opacity: 1;
}
.travel-map-provider-button {
  position: relative;
  width: 104px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.travel-map-provider-button::after {
  position: absolute;
  right: calc(100% + 10px);
  bottom: 50%;
  z-index: 1000;
  max-width: 220px;
  padding: 5px 7px;
  border: 1px solid rgba(26, 42, 35, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(20, 30, 25, 0.14);
  color: var(--ink);
  content: attr(data-map-provider-tooltip);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translateY(50%);
  transition: opacity 0.12s ease;
  white-space: normal;
  width: max-content;
}
.travel-map-provider-row--3d .travel-map-provider-button::after {
  right: calc(100% + 44px);
}
.travel-map-provider-button:hover::after,
.travel-map-provider-button:focus-visible::after {
  opacity: 1;
}
.travel-map-provider-button:hover,
.travel-map-provider-button:focus-visible {
  color: var(--accent-dark);
  outline: none;
}
.travel-map-provider-button.is-active {
  background: transparent;
  border-color: rgba(22, 117, 74, 0.45);
  color: var(--accent-dark);
}
.travel-map-provider-control.is-elevation-provider-active .travel-map-provider-button,
.travel-map-provider-control.is-elevation-provider-active .travel-map-provider-button:hover,
.travel-map-provider-control.is-elevation-provider-active .travel-map-provider-button:focus-visible,
.travel-map-provider-control.is-elevation-provider-active .travel-map-provider-button.is-active {
  color: #ffffff;
}
.travel-map-provider-control.is-elevation-provider-active .travel-map-3d-invert-toggle,
.travel-map-provider-control.is-elevation-provider-active .travel-map-3d-invert-toggle input:checked + .travel-map-3d-invert-icon {
  color: #ffffff;
}
.routehub-map-preparation-progress {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1200;
  height: 5px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 3px rgba(20, 30, 25, 0.22);
  cursor: help;
  opacity: 0;
  overflow: visible;
  transition: opacity 0.12s ease;
}
.routehub-map-preparation-progress::after {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 1;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(24, 35, 30, 0.94);
  box-shadow: 0 3px 10px rgba(20, 30, 25, 0.2);
  color: #ffffff;
  content: attr(data-tooltip);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}
.routehub-map-preparation-progress:hover::after {
  opacity: 1;
  visibility: visible;
}
.routehub-map-preparation-progress[hidden] {
  display: none;
}
.routehub-map-preparation-progress.is-visible {
  opacity: 1;
}
.routehub-map-preparation-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: #168556;
  transition: width 0.14s ease-out;
}
.travel-map-debug {
  max-width: min(920px, calc(100vw - 24px));
  padding: 5px 7px;
  border: 1px solid rgba(26, 42, 35, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  color: #26342e;
  font: 10px/1.25 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  box-shadow: 0 6px 18px rgba(20, 30, 25, 0.12);
  cursor: copy;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.leaflet-top.leaflet-left .travel-map-debug {
  position: absolute;
  top: 0;
  left: 44px;
  width: min(760px, calc(100vw - 76px));
  margin: 10px 0 0;
}
.travel-map-debug-text {
  cursor: copy;
}
.travel-map-cache-size {
  margin-top: 3px;
  color: #52625a;
}
.travel-map-debug-clear {
  display: inline-flex;
  align-items: center;
  margin-top: 5px;
  padding: 3px 7px;
  border: 1px solid rgba(26, 42, 35, 0.18);
  border-radius: 5px;
  background: rgba(246, 248, 244, 0.92);
  color: #26342e;
  font: 10px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}
.travel-map-debug-clear:disabled {
  cursor: wait;
  opacity: 0.72;
}
.travel-map-zoom-badge {
  min-width: 42px;
  padding: 3px 7px;
  border: 1px solid rgba(26, 42, 35, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #26342e;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 4px 12px rgba(20, 30, 25, 0.12);
}
.travel-slope-legend {
  width: 224px;
  padding: 9px 10px 8px;
  border: 1px solid rgba(26, 42, 35, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(20, 30, 25, 0.12);
  backdrop-filter: blur(6px);
}
.travel-slope-legend[hidden] {
  display: none;
}
.travel-height-legend {
  padding: 10px 12px 12px;
  border: 1px solid rgba(32, 41, 36, 0.16);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(20, 30, 26, 0.12);
  backdrop-filter: none;
}
.travel-height-legend .travel-elevation-range-scale {
  margin-top: 8px;
}
.travel-height-legend-inputs label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}
.travel-height-legend-inputs label:last-child {
  justify-content: flex-end;
}
.travel-height-legend-inputs input {
  min-width: 0;
  width: 54px;
  height: 16px;
  padding: 0 4px;
  border: 1px solid rgba(26, 42, 35, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  line-height: 1.2;
}
.leaflet-bottom.leaflet-right .travel-height-legend {
  position: absolute;
  right: 116px;
  bottom: 20px;
  margin: 0;
}
.travel-elevation-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 148px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
}
.leaflet-bottom.leaflet-left .travel-elevation-control {
  margin-bottom: 20px;
}
.travel-elevation-control input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.travel-elevation-range-control {
  width: 224px;
  padding: 10px 12px 12px;
  border: 1px solid rgba(32, 41, 36, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(20, 30, 26, 0.12);
}
.leaflet-bottom.leaflet-left .travel-elevation-range-control {
  position: absolute;
  left: 160px;
  bottom: 20px;
  margin: 0;
}
@media (max-width: 620px) {
  .leaflet-bottom.leaflet-right .travel-height-legend {
    right: 124px;
    bottom: 10px;
    width: min(224px, calc(100vw - 148px));
  }
  .leaflet-bottom.leaflet-left .travel-elevation-range-control {
    left: 0;
    bottom: 58px;
  }
  .travel-map-provider-button::after {
    display: none;
    content: none;
  }
  .travel-map-3d-invert-toggle::after {
    display: none;
    content: none;
  }
}
.travel-elevation-range-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 750;
}
.travel-elevation-range-head span:last-child { text-align: right; }
.travel-elevation-range-scale {
  position: relative;
  height: 34px;
  margin-top: 8px;
  --elevation-lower: 0%;
  --elevation-upper: 100%;
}
.travel-elevation-gradient-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 12px;
  border: 1px solid rgba(32, 41, 36, 0.14);
  background:
    linear-gradient(
      90deg,
      #ffffff 0%,
      #ffffff var(--elevation-lower),
      #1c6fd8 var(--elevation-lower),
      #26a65b calc(var(--elevation-lower) + (var(--elevation-upper) - var(--elevation-lower)) * 0.35),
      #eebc3a calc(var(--elevation-lower) + (var(--elevation-upper) - var(--elevation-lower)) * 0.65),
      #cf442d var(--elevation-upper),
      #4a2a17 var(--elevation-upper),
      #4a2a17 100%
    );
}
.travel-elevation-range-scale input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 34px;
  margin: 0;
  accent-color: var(--accent);
  background: transparent;
  pointer-events: none;
  appearance: none;
}
.travel-elevation-range-scale input::-webkit-slider-runnable-track {
  height: 34px;
  background: transparent;
}
.travel-elevation-range-scale input::-webkit-slider-thumb {
  width: 16px;
  height: 24px;
  margin-top: 5px;
  border: 2px solid #1f2d26;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(20, 30, 26, 0.25);
  pointer-events: auto;
  appearance: none;
}
.travel-elevation-range-scale input::-moz-range-track {
  height: 34px;
  background: transparent;
}
.travel-elevation-range-scale input::-moz-range-thumb {
  width: 16px;
  height: 24px;
  border: 2px solid #1f2d26;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(20, 30, 26, 0.25);
  pointer-events: auto;
}
.routehub-label-tile,
.routehub-poi-tile {
  overflow: visible;
  pointer-events: none;
}
.routehub-3d-tile {
  overflow: visible;
  background: transparent;
  pointer-events: none;
}
.routehub-3d-scene {
  position: absolute;
  inset: 0;
  z-index: 180;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.routehub-3d-tile-canvas {
  position: absolute;
  inset: 0;
  display: block;
}
.routehub-pseudo-3d-tile {
  overflow: visible;
  background: #dfe7e1;
  pointer-events: none;
}
.routehub-pseudo-3d-tile-canvas {
  position: absolute;
  inset: 0;
  display: block;
}
.travel-map-3d-active {
  cursor: grab;
  overflow: hidden;
  touch-action: none !important;
  user-select: none;
  -webkit-user-select: none;
}
.travel-map-3d-active.travel-map-3d-rotating,
.travel-map-3d-active.travel-map-3d-rotating .leaflet-grab,
.travel-map-3d-active.travel-map-3d-panning,
.travel-map-3d-active.travel-map-3d-panning .leaflet-grab {
  cursor: grabbing;
}
.travel-map-3d-active .leaflet-pane {
  transition: none;
}
.travel-map-3d-axis-controls {
  position: absolute;
  inset: 0;
  z-index: 1205;
  overflow: hidden;
  pointer-events: none;
}
.travel-map-3d-axis-controls[hidden] {
  display: none;
}
.travel-map-3d-reset {
  position: absolute;
  bottom: 20px;
  left: 24px;
  display: grid;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(22, 117, 74, 0.24);
  border-radius: 12px;
  background: rgba(22, 117, 74, 0.11);
  color: #16754a;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}
.travel-map-3d-reset:hover,
.travel-map-3d-reset:focus-visible,
.travel-map-3d-reset:active {
  border-color: rgba(22, 117, 74, 0.42);
  background: rgba(22, 117, 74, 0.2);
  outline: none;
}
.travel-map-3d-reset svg {
  width: 22px;
  height: 22px;
}
.travel-map-3d-axis-control {
  --routehub-3d-axis-position: 50%;
  position: absolute;
  box-sizing: border-box;
  border: 0;
  outline: none;
  background: transparent;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
}
.travel-map-3d-axis-control::before {
  position: absolute;
  border-radius: 999px;
  background: rgba(22, 117, 74, 0.88);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.88);
  content: "";
}
.travel-map-3d-axis-control--yaw {
  right: max(132px, 18%);
  bottom: 20px;
  left: max(84px, 14%);
  height: 44px;
}
.travel-map-3d-axis-control--yaw::before {
  top: 50%;
  right: 0;
  left: 0;
  height: 4px;
  transform: translateY(-50%);
}
.travel-map-3d-axis-control--pitch {
  top: 18%;
  right: 12px;
  width: 44px;
  height: min(34%, 240px);
}
.travel-map-3d-axis-control--pitch::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
}
.travel-map-3d-axis-thumb {
  position: absolute;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border: 3px solid #16754a;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(20, 30, 25, 0.3);
  pointer-events: none;
  transition: left 120ms ease-out, bottom 120ms ease-out;
}
.travel-map-3d-rotating .travel-map-3d-axis-thumb {
  transition: none;
}
.travel-map-3d-axis-control--yaw .travel-map-3d-axis-thumb {
  top: 50%;
  left: var(--routehub-3d-axis-position);
  transform: translate(-50%, -50%);
}
.travel-map-3d-axis-control--pitch .travel-map-3d-axis-thumb {
  bottom: var(--routehub-3d-axis-position);
  left: 50%;
  transform: translate(-50%, 50%);
}
.travel-map-3d-axis-control:focus-visible::before,
.travel-map-3d-axis-control:active::before {
  background: #0f5c39;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.96);
}
body.routehub-android-map .travel-map-3d-axis-control--yaw {
  right: 132px;
  bottom: 78px;
  left: 84px;
}
body.routehub-android-map .travel-map-3d-reset {
  bottom: 78px;
}
body.routehub-android-map .travel-map-3d-axis-control--pitch {
  top: 110px;
  right: 8px;
  height: min(34%, 240px);
}
.travel-map-measure-control {
  border: 0;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.32);
}
.travel-map-measure-button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 2px;
  background: #ffffff;
  color: #087a4f;
  cursor: pointer;
}
.travel-map-measure-button:hover,
.travel-map-measure-button:focus-visible,
.travel-map-measure-button.is-active {
  background: #dff1e9;
  color: #005d3c;
}
.travel-map-measure-button svg {
  width: 18px;
  height: 18px;
}
body.routehub-android-map .travel-map-measure-control {
  margin-top: 24px !important;
  margin-left: 74px !important;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
}
body.routehub-android-map .travel-map-measure-button {
  box-sizing: border-box;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(22, 117, 74, 0.16);
  border-radius: 12px;
  background: rgba(22, 117, 74, 0.11);
  color: #16754a;
}
body.routehub-android-map .travel-map-measure-button:hover,
body.routehub-android-map .travel-map-measure-button:focus-visible,
body.routehub-android-map .travel-map-measure-button.is-active {
  background: rgba(22, 117, 74, 0.2);
  color: #16754a;
}
body.routehub-android-map .travel-map-measure-button svg {
  width: 24px;
  height: 24px;
}
.travel-map-measuring {
  cursor: crosshair;
}
.travel-map-measure-label {
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}
.travel-map-measure-label span {
  position: absolute;
  left: 50%;
  bottom: 7px;
  padding: 3px 6px;
  transform: translateX(-50%);
  border: 1px solid rgba(8, 122, 79, 0.45);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 4px rgba(17, 45, 34, 0.18);
  color: #17382c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.travel-map-measure-total span {
  left: 10px;
  bottom: 9px;
  transform: none;
  border-color: #087a4f;
  color: #006a45;
}
.travel-map-measure-endpoint-anchor,
.travel-map-measure-3d-endpoint {
  width: 0;
  height: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}
.travel-map-measure-3d-endpoint {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}
.travel-map-measure-endpoint {
  position: absolute;
  left: 10px;
  bottom: 9px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  pointer-events: none;
}
.travel-map-measure-total-value {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid #087a4f;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 4px rgba(17, 45, 34, 0.18);
  color: #006a45;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.travel-map-measure-actions {
  display: inline-flex;
  gap: 3px;
  pointer-events: auto;
}
.travel-map-measure-actions button {
  width: 28px;
  height: 28px;
  display: grid;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(8, 122, 79, 0.42);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.97);
  color: #087a4f;
  box-shadow: 0 1px 4px rgba(17, 45, 34, 0.18);
  cursor: pointer;
}
.travel-map-measure-actions button:hover,
.travel-map-measure-actions button:focus-visible {
  background: #dff1e9;
  color: #005d3c;
}
.travel-map-measure-actions button[data-measure-action="clear"] {
  border-color: rgba(190, 62, 56, 0.45);
  color: #a82f2a;
}
.travel-map-measure-actions button[data-measure-action="clear"]:hover,
.travel-map-measure-actions button[data-measure-action="clear"]:focus-visible {
  background: #fbe9e7;
  color: #84211d;
}
.travel-map-measure-actions svg {
  width: 16px;
  height: 16px;
}
.travel-map-measure-3d {
  position: absolute;
  inset: 0;
  z-index: 575;
  overflow: hidden;
  pointer-events: none;
}
.travel-map-measure-3d-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.travel-map-measure-3d-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.travel-map-measure-3d-path-outline {
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 7;
}
.travel-map-measure-3d-path-main {
  stroke: #087a4f;
  stroke-width: 3;
}
.travel-map-measure-3d-point {
  fill: #087a4f;
  stroke: #ffffff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.travel-map-measure-3d .travel-map-measure-label {
  position: absolute;
}
.routehub-3d-projected-overlays {
  position: absolute;
  inset: 0;
  z-index: 550;
  overflow: hidden;
  pointer-events: none;
}
.routehub-3d-projected-item {
  will-change: left, top;
}
.routehub-3d-activity-overlays {
  position: absolute;
  inset: 0;
  z-index: 565;
  overflow: hidden;
  pointer-events: none;
}
.routehub-3d-activity-overlays[hidden] {
  display: none;
}
.routehub-3d-activity-shapes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.routehub-3d-activity-shape {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.routehub-3d-activity-shape.is-map-highlighted {
  stroke: #d4553d !important;
  stroke-width: var(--routehub-3d-highlight-width, 11px) !important;
  stroke-opacity: 1 !important;
}
.routehub-3d-activity-shape.is-polygon.is-map-highlighted {
  fill: rgba(212, 85, 61, 0.48) !important;
}
.routehub-3d-activity-hit {
  fill: none;
  stroke: rgba(0, 0, 0, 0.001);
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: stroke;
  cursor: pointer;
}
.routehub-3d-activity-hit.is-polygon {
  fill: rgba(0, 0, 0, 0.001);
  pointer-events: all;
}
.routehub-3d-activity-marker {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
}
.routehub-3d-activity-marker .activity-icon-marker-body {
  pointer-events: none;
}
.routehub-3d-start-marker {
  position: absolute;
  z-index: 3;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -100%);
  pointer-events: auto;
}
.routehub-3d-activity-tooltip {
  position: absolute;
  z-index: 4;
  max-width: min(300px, calc(100% - 24px));
  pointer-events: none;
}
.travel-map-3d-active .leaflet-pane [data-map-activity-id] {
  visibility: hidden;
}
.travel-map-3d-active .leaflet-pane .route-start-icon-marker {
  visibility: hidden;
}
.travel-map-3d-active .leaflet-pane .catalog-start-icon-marker {
  visibility: visible;
}
.catalog-map-billboard {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}
.travel-map-3d-active .activity-marker-constellation-line {
  visibility: hidden;
}
.routehub-map-label {
  position: absolute;
  z-index: 1;
  max-width: 180px;
  transform: translate(-50%, -50%) rotate(var(--routehub-label-angle, 0deg));
  color: #4f4f4f;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  text-shadow:
    -1px -1px 0 rgba(255, 255, 255, 0.92),
    1px -1px 0 rgba(255, 255, 255, 0.92),
    -1px 1px 0 rgba(255, 255, 255, 0.92),
    1px 1px 0 rgba(255, 255, 255, 0.92),
    0 0 3px rgba(255, 255, 255, 0.9);
}
.routehub-map-label-road {
  color: #666;
  font-size: 11px;
  font-weight: 400;
}
.routehub-map-label-water {
  color: #4e92a8;
  font-style: italic;
}
.routehub-map-label-park {
  color: #297a47;
  font-size: 13px;
  font-style: italic;
}
.routehub-map-label-poi {
  color: #5f6f62;
  font-size: 11px;
}
.routehub-map-poi {
  position: absolute;
  z-index: 2;
  width: 17px;
  height: 17px;
  transform: translate(-50%, -50%);
  color: #66716b;
  pointer-events: none;
  filter:
    drop-shadow(-1px -1px 0 rgba(255, 255, 255, 0.92))
    drop-shadow(1px -1px 0 rgba(255, 255, 255, 0.92))
    drop-shadow(-1px 1px 0 rgba(255, 255, 255, 0.92))
    drop-shadow(1px 1px 0 rgba(255, 255, 255, 0.92));
}
.routehub-map-poi svg {
  display: block;
  width: 17px;
  height: 17px;
  stroke-width: 2.35;
}
.routehub-map-poi-parking,
.routehub-map-poi-transit,
.routehub-map-poi-info {
  color: #2677b8;
}
.routehub-map-poi-shop {
  color: #b0449a;
}
.routehub-map-poi-food {
  color: #9c642f;
}
.routehub-map-poi-medical {
  color: #bf3434;
}
.routehub-map-poi-education,
.routehub-map-poi-public,
.routehub-map-poi-culture {
  color: #806a2e;
}
.routehub-map-poi-money,
.routehub-map-poi-service,
.routehub-map-poi-lodging {
  color: #586f89;
}
.routehub-map-poi-sport,
.routehub-map-poi-nature {
  color: #2f7d46;
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip { border-radius: 0; }
.map-panel.mvp-live .leaflet-tooltip-pane {
  z-index: 1002;
}
.leaflet-tooltip.map-tooltip {
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  white-space: normal;
  overflow: visible;
}
.leaflet-tooltip.map-tooltip::before {
  display: none;
}
.route-review-track-time-line,
.route-review-track-time-empty {
  display: block;
}
.route-review-track-time-empty {
  color: var(--muted);
}
.map-popup {
  display: block;
  width: min(288px, calc(100vw - 32px));
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border-radius: 7px;
  box-shadow: 0 14px 38px rgba(15, 35, 27, 0.2), 0 2px 8px rgba(15, 35, 27, 0.1);
  overflow: hidden;
  transform: translate(var(--map-popup-shift-x, 0), var(--map-popup-shift-y, 0));
}
.map-popup--with-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(560px, calc(100vw - 32px));
}
.map-popup-media {
  position: relative;
  display: block;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #dfe8e3;
}
.map-popup-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.map-popup-media--empty img {
  display: none;
}
.map-popup-body {
  display: block;
  padding: 12px 14px 13px;
}
.map-popup--with-media .map-popup-body {
  grid-column: 1;
  grid-row: 1;
  min-height: 142px;
}
.map-popup-kind {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}
.map-popup-kind--trip {
  color: #956315;
}
.map-popup-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.map-popup-route {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-popup-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.map-popup-fact {
  display: block;
  min-width: 0;
}
.map-popup-fact + .map-popup-fact {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.map-popup-fact-label,
.map-popup-fact-value {
  display: block;
}
.map-popup-fact-label {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}
.map-popup-fact-value {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-popup-price {
  color: var(--accent);
}
.detail-page, .form-page, .auth-page, .account-page { background: var(--surface); }
.auth-page, .account-page { overflow: auto; }
.detail-page,
.form-page {
  --detail-inline-pad: clamp(20px, 1.25vw, 28px);
  overflow: hidden;
  overscroll-behavior: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}
body.detail-page > .detail-layout,
body.form-page > .editor-layout {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}
html:has(body.detail-page),
html:has(body.form-page) {
  overflow: hidden;
  scrollbar-gutter: stable;
}
.detail-layout,
.editor-layout {
  height: calc(100vh - var(--topbar-height));
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(var(--route-split-min), var(--route-split-max)) minmax(0, 1fr);
  overflow: hidden;
}
.editor-layout { background: #eef3ef; }

.detail-content {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 52px var(--detail-inline-pad) 38px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.detail-content--sectioned {
  overflow: hidden;
  padding: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
}
.detail-content-head {
  padding: 12px var(--detail-inline-pad) 12px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.detail-content-scroll {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px var(--detail-inline-pad) 38px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-padding-top: 12px;
}
.detail-content-scroll [id] {
  scroll-margin-top: 12px;
}
.detail-content > .back-link,
.form-panel > .back-link { margin-bottom: 0; }
.detail-content > .eyebrow,
.form-panel > .eyebrow { margin-bottom: 0; }
.detail-content > h1,
.form-panel > h1 { margin-bottom: 0; }
.detail-content h1 { margin-bottom: 20px; font-size: 42px; }
.detail-content h1.entity-title { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.detail-content h1.entity-title svg { flex: 0 0 auto; width: 30px; height: 30px; color: var(--accent); }
.entity-title-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 100%;
}
.entity-title-text {
  display: block;
}
.entity-type-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(22, 117, 74, 0.08);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  text-transform: uppercase;
}
.route-template-note {
  flex: 0 1 470px;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  max-width: min(470px, calc(100% - 118px));
  padding: 7px 14px;
  border: 1px solid rgba(49, 113, 82, 0.34);
  border-radius: 8px;
  color: #43635a;
  background: rgba(240, 248, 243, 0.68);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-transform: none;
}
.trip-route-title { flex-wrap: wrap; column-gap: 24px; row-gap: 8px; }
.entity-title-part { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.entity-title-link { color: inherit; text-decoration: none; }
.entity-title-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.detail-content > p { line-height: 1.7; color: var(--muted); }
.trip-price { margin: -10px 0 20px; color: var(--ink); font-weight: 750; }
.back-link { display: inline-block; margin-bottom: 36px; color: var(--accent); font-weight: 650; }
.detail-actions { display: flex; gap: 10px; margin-top: 30px; }
.detail-actions form { margin: 0; }
.route-summary-toolbar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}
.route-summary-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
}
.route-summary-toolbar-actions form { margin: 0; }
.route-summary-meta-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  margin-top: 8px;
}
.route-summary-price {
  min-width: 0;
  color: inherit;
  font-size: 30px;
  font-weight: 400;
}
.route-summary-price strong {
  font-weight: 750;
}
.route-summary-owner {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  width: 160px;
  text-align: center;
}
.route-summary-owner-link {
  display: grid;
  grid-template-rows: 148px 56px;
  justify-items: center;
  width: 100%;
  max-width: none;
  color: var(--ink);
  text-decoration: none;
}
.route-summary-owner-avatar {
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--accent);
}
.route-summary-owner-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.route-summary-owner-avatar svg {
  width: 28px;
  height: 28px;
}
.route-summary-owner-name {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 56px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.route-summary-owner-link:hover .route-summary-owner-avatar {
  border-color: var(--accent);
}
.route-summary-owner-link:hover .route-summary-owner-name {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.route-summary-description {
  margin: 16px 0 0;
  line-height: 1.6;
}
.formatted-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.formatted-text a:hover {
  color: var(--accent-dark);
}
.formatted-text strong { font-weight: 750; }
.formatted-text em { font-style: italic; }
.formatted-text u { text-decoration: underline; text-underline-offset: 2px; }
.formatted-text s { text-decoration: line-through; }
.formatted-text ul {
  margin: 8px 0;
  padding-left: 1.25rem;
  list-style: disc;
}
.formatted-text li { margin: 4px 0; }
.richtext-form-field .richtext-editor {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper);
}
.richtext-form-field .richtext-editor:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(22,117,74,.1);
}
.richtext-form-field .richtext-editor textarea {
  border: 0;
  box-shadow: none;
  min-height: 132px;
}
.richtext-form-field .richtext-editor textarea:focus {
  border-color: transparent;
  box-shadow: none;
}
.richtext-toolbar {
  display: flex;
  align-items: center;
  gap: .28em;
  flex-wrap: wrap;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  background: #f8faf9;
}
.richtext-toolbar-sep {
  width: 1px;
  height: 22px;
  margin: 0 4px;
  background: var(--line);
}
.richtext-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}
.richtext-btn svg { width: 16px; height: 16px; }
.richtext-btn:hover,
.richtext-btn:focus-visible {
  border-color: var(--line);
  background: var(--paper);
  outline: none;
}
.richtext-btn:active { background: #eef3ef; }
#route-summary .readonly-tags {
  margin-top: 12px;
}
#trip-summary .trip-summary-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
#trip-summary .trip-summary-actions form { margin: 0; }
#route-summary,
#trip-summary {
  position: relative;
}
#route-summary .route-summary-meta-line,
#trip-summary .trip-summary-price-line {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 8px;
}
#trip-summary .trip-summary-price-line {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.trip-start-countdown {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  white-space: nowrap;
}
#trip-summary .entity-title-kicker .trip-start-countdown svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
}
#route-summary .route-summary-meta-line .route-summary-owner,
#trip-summary .trip-summary-price-line .route-summary-owner {
  position: absolute;
  top: 16px;
  right: 16px;
  max-width: 160px;
}
.trip-summary-facts-line {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 16px;
  margin-top: 8px;
}
.trip-summary-facts-line div {
  min-width: 0;
}
.trip-summary-facts-line dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.trip-summary-facts-line dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}
.trip-summary-pricing {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
#trip-summary .trip-summary-meta-row {
  margin-top: 16px;
  box-sizing: border-box;
  padding-right: 200px;
}
#trip-summary .trip-summary-description {
  margin-top: 16px;
  margin-bottom: 0;
}
#route-summary h1.entity-title,
#trip-summary h1.entity-title {
  font-size: 40px;
  color: var(--detail-header-accent);
}
#route-summary h1.entity-title,
#trip-summary h1.entity-title {
  padding-right: 200px;
}
#route-summary h1.entity-title svg,
#trip-summary h1.entity-title svg {
  color: var(--detail-header-accent);
}
.trip-summary-route {
  display: block;
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  color: var(--detail-header-accent);
}
.trip-summary-route span {
  min-width: 0;
  line-height: 1.45;
}
.trip-summary-route svg {
  width: 20px;
  height: 20px;
  margin: 0 6px;
  vertical-align: -5px;
  color: var(--detail-header-accent);
}
.trip-summary-route a {
  color: inherit;
  font-weight: 750;
}
.trip-summary-route a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.trip-summary-route--deleted {
  cursor: default;
  color: var(--muted);
  text-decoration: none;
}
.trip-summary-route--deleted svg {
  color: var(--muted);
}
.trip-summary-route--deleted:hover {
  color: var(--muted);
  text-decoration: none;
}
.trip-summary-route--deleted:hover svg {
  color: var(--muted);
}
#trip-summary .readonly-tags {
  margin-top: 12px;
}
.route-facts { display: grid; grid-template-columns: repeat(2, 1fr); margin: 34px 0 0; border-top: 1px solid var(--line); }
.route-facts div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.route-facts dt { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.route-facts dd { margin: 7px 0 0; font-weight: 700; }
.detail-map-panel,
.editor-map-panel { position: relative; min-width: 0; min-height: 0; height: 100%; overflow: hidden; background: #eef3ef; }
#detail-map { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; background: #eef3ef; }
.leaflet-container[data-travel-portal-nav-pinned] .leaflet-tile {
  opacity: 1 !important;
  transition: none !important;
}
.trip-section:not(.mvp-live):not(.mvp-stub) { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); }
.trip-section.mvp-live,
.trip-section.mvp-stub {
  margin: 0;
}
.section-heading { margin-bottom: 17px; }
.section-heading h2 { margin: 0; font-size: 20px; letter-spacing: 0; }
.activity-plan-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.activity-linear-visibility-toggle {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin-left: auto;
}
.activity-linear-visibility-toggle[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}
.route-trips-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.route-past-trips-toggle {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}
.section-heading.is-anchor-flashing {
  animation: anchor-heading-flash 0.9s ease-out;
}
@keyframes anchor-heading-flash {
  0%, 100% { background: transparent; box-shadow: none; }
  20%, 70% { background: rgba(212, 85, 61, 0.3); box-shadow: 0 0 0 10px rgba(212, 85, 61, 0.22); }
}
.trip-list, .application-list, .review-list { display: grid; gap: 10px; }
.change-log-box {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--line);
  background: var(--paper);
}
.change-log-row {
  display: grid;
  grid-template-columns: 120px minmax(100px, 160px) minmax(0, 1fr);
  gap: 12px;
  min-height: 40px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  line-height: 1.3;
}
.change-log-row:last-child { border-bottom: 0; }
.change-log-row time,
.change-log-row span:nth-child(2) {
  color: var(--muted);
  font-size: 13px;
}
.offline-bundle-section form {
  margin: 0;
}
.offline-bundle-summary {
  display: grid;
  gap: 4px;
  margin: 0;
}
.offline-bundle-summary p {
  margin: 0;
}
.offline-tile-controls {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.offline-tile-control-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.offline-tile-color-field {
  display: inline-flex;
  align-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.95);
}
.offline-tile-color-field[hidden] {
  display: none !important;
}
.offline-tile-color-field input[type="color"] {
  width: 29px;
  height: 29px;
  margin: -5px;
  padding: 0;
  border: 0;
  cursor: pointer;
}
.offline-tile-zoom-list {
  display: grid;
  gap: 8px;
}
.offline-tile-zoom-list > strong {
  font-weight: 400;
}
.offline-tile-zoom-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.offline-tile-zoom-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.offline-tile-zoom-option input {
  margin: 0;
}
.offline-tile-estimate {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.offline-tile-estimate.is-too-large {
  color: var(--danger);
}
.offline-tile-polygon {
  pointer-events: none;
}
.offline-tile-preview-grid {
  pointer-events: none;
}
.trip-card { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); text-decoration: none; background: var(--paper); }
.trip-card:hover { border-color: var(--accent); }
.trip-card strong { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 15px; }
.trip-card strong svg { flex: 0 0 auto; width: 15px; height: 15px; color: var(--accent); }
.trip-card small, .trip-date, .muted-copy, .status-note, .application-row small, .review-row small { color: var(--muted); }
.trip-date { font-size: 12px; font-weight: 750; }
.muted-copy { margin: 0; line-height: 1.6; }

/* MVP feature blocks — live (green) and stub (pink) share one spacing model */
.mvp-live,
.mvp-stub {
  box-sizing: border-box;
  margin: 0;
  padding: 16px 18px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.mvp-live {
  position: relative;
  border: 2px solid var(--accent);
  background: #f3faf6;
}
.mvp-stub {
  position: relative;
  border: 2px solid #f472b6;
  background: #fff7fb;
  pointer-events: none;
  user-select: none;
}
.block-help {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 30;
  pointer-events: auto;
  user-select: auto;
}
.block-help-button {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(22, 117, 74, 0.38);
  background: var(--paper);
  color: var(--accent);
  cursor: pointer;
}
.block-help-button:hover,
.block-help-button[aria-expanded="true"] {
  border-color: var(--accent);
  background: rgba(22, 117, 74, 0.08);
}
.block-help-button svg {
  width: 15px;
  height: 15px;
}
.block-help-popover {
  position: fixed;
  z-index: 2500;
  min-height: 0;
  padding: 14px 16px;
  border: 1px solid rgba(22, 117, 74, 0.35);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(31, 41, 37, 0.18);
}
.block-help-popover[hidden] {
  display: none;
}
.block-help-title {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
}
.block-help-copy {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}
.mvp-live:has(> .block-help),
.mvp-stub:has(> .block-help) {
  padding-right: 56px;
}
.mvp-stub-badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid #f9a8d4;
  background: #fce7f3;
  color: #be185d;
}
.mvp-live .section-heading,
.mvp-stub .section-heading { margin-bottom: 0; }
.mvp-live .entity-title,
.mvp-live > h1 { margin-bottom: 0; font-size: 42px; }
.mvp-live .detail-actions { margin-top: 0; }
#route-summary .route-summary-toolbar { margin-top: 12px; }
.route-plan-actions { margin-top: 20px; }
.route-facts-in-live {
  margin-top: 0;
  border-top: 1px solid rgba(22, 117, 74, 0.2);
}
.route-form > .mvp-live > .form-field,
.route-form > .mvp-live > .checkbox-field { margin: 0; }
.route-list.mvp-live {
  overflow: hidden;
}
.route-list.mvp-live .route-row:first-child { border-top: 0; }
.detail-map-panel.mvp-live,
.editor-map-panel.mvp-live,
.map-panel.mvp-live {
  padding: 0;
  border: none;
  border-radius: 0;
  background: #eef3ef;
  box-shadow: none;
}
.detail-map-panel.mvp-live::after,
.editor-map-panel.mvp-live::after,
.map-panel.mvp-live::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  pointer-events: none;
  z-index: 1001;
}
.detail-map-panel.mvp-live #detail-map,
.editor-map-panel.mvp-live #detail-map,
.map-panel.mvp-live #map {
  inset: 0;
}

/* MVP placeholders — stub-only extras */
.mvp-stub-compact { margin: 0; }
.mvp-stub-heading {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}
.mvp-stub-intro,
.mvp-stub-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.mvp-stub-hint { margin: 6px 0 0; font-size: 12px; }
.mvp-stub-disclaimer {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px dashed #f9a8d4;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}
.mvp-stub-fields {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: grid;
  gap: 12px;
}
.mvp-stub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mvp-stub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mvp-stub .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: 13px;
}
.mvp-stub .form-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}
.mvp-stub .form-field input,
.mvp-stub .form-field textarea,
.mvp-stub .form-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #fbcfe8;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}
.mvp-stub .checkbox-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}
.mvp-stub .checkbox-field small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
}
.mvp-stub-stars {
  display: flex;
  gap: 4px;
}
.mvp-stub-star {
  width: 36px;
  height: 36px;
  border: 1px solid #fbcfe8;
  border-radius: 8px;
  background: #fff;
  color: #d4d4d8;
  font-size: 18px;
  line-height: 1;
}
.mvp-stub-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid #fbcfe8;
}
.mvp-stub-facts div {
  padding: 12px 0;
  border-bottom: 1px solid #fbcfe8;
}
.mvp-stub-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}
.mvp-stub-facts dd {
  margin: 5px 0 0;
  font-weight: 650;
  color: var(--ink);
}
.mvp-stub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mvp-stub-tab {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.mvp-stub-tab.is-active {
  border-color: #f472b6;
  color: #be185d;
  background: #fce7f3;
}
.mvp-stub-checks { margin-top: 4px; }
.sidebar .mvp-stub-heading { font-size: 15px; }

.route-photo-gallery {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.route-gallery-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.route-gallery-header .eyebrow {
  margin: 0;
}
.route-gallery-showcase {
  display: grid;
  gap: 8px;
}
.route-gallery-hero-button,
.route-gallery-thumb-button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}
.route-gallery-hero-button:focus-visible,
.route-gallery-thumb-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.route-gallery-hero {
  display: block;
  width: 100%;
  max-height: 420px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(22, 117, 74, 0.2);
  background: #eef3ef;
}
.route-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.route-gallery-thumb {
  display: block;
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(22, 117, 74, 0.2);
  background: #eef3ef;
}
.route-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 4200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #050806;
}
.route-gallery-modal[hidden] { display: none; }
body.route-gallery-open { overflow: hidden; }
.route-gallery-backdrop {
  position: absolute;
  inset: 0;
  background: #050806;
}
.route-gallery-panel {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: 0;
  border-radius: 0;
  background: #050806;
  box-shadow: none;
  overflow: hidden;
}
.route-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: calc(max(16px, env(safe-area-inset-top)) + 56px) max(16px, env(safe-area-inset-right)) calc(max(16px, env(safe-area-inset-bottom)) + 24px) max(16px, env(safe-area-inset-left));
  overflow-y: auto;
  overflow-x: hidden;
}
.route-gallery-grid[hidden] {
  display: none;
}
.route-gallery-grid-item {
  position: relative;
  display: block;
  flex: 0 1 auto;
  width: auto;
  max-width: min(280px, 100%);
  height: 148px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}
.route-gallery-grid-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.route-gallery-grid-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  background: #101812;
}
.route-gallery-expanded {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  display: grid;
  gap: 10px;
  margin: 2px 0 12px;
  padding: 0;
  overflow: hidden;
  touch-action: none;
}
.route-gallery-expanded-image {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: calc(100vh - 170px);
  max-height: calc(100dvh - 170px);
  object-fit: contain;
  border-radius: 8px;
  background: #101812;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
.route-gallery-expanded-image.is-zoomed {
  cursor: grab;
}
.route-gallery-expanded-image.is-zoomed:active {
  cursor: grabbing;
}
.route-gallery-expanded-meta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  min-height: 18px;
  color: rgba(255,255,255,.88);
  font-size: 13px;
}
.route-gallery-expanded-meta p {
  margin: 0;
}
.route-gallery-expanded-counter {
  justify-self: center;
}
.route-gallery-zoom-hint {
  position: absolute;
  left: calc(50% + 54px);
  top: 50%;
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,.46);
  font-size: 12px;
  white-space: nowrap;
  transform: translateY(-50%);
}
.route-gallery-zoom-hint svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}
.route-gallery-zoom-hint svg + .route-gallery-zoom-wheel-fallback {
  display: none;
}
.route-gallery-zoom-wheel-fallback {
  position: relative;
  width: 12px;
  height: 16px;
  display: inline-block;
  border: 1px solid currentColor;
  border-radius: 7px;
  opacity: .85;
}
.route-gallery-zoom-wheel-fallback::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 3px;
  width: 2px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}
.route-gallery-expanded-actions {
  display: flex;
  justify-content: center;
}
.route-gallery-grid-slot {
  position: absolute;
  left: 8px;
  top: 8px;
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0,0,0,.48);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.route-gallery-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 5;
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.28);
  color: #fff;
  backdrop-filter: blur(8px);
}
.route-gallery-modal-title {
  position: absolute;
  left: max(16px, env(safe-area-inset-left));
  top: max(16px, env(safe-area-inset-top));
  z-index: 4;
  margin: 0;
  padding-right: 56px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.88);
  text-shadow: 0 1px 5px rgba(0,0,0,.55);
}
.route-gallery-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}
.route-gallery-stage[hidden] {
  display: none;
}
.route-gallery-back-to-grid {
  position: absolute;
  left: max(12px, env(safe-area-inset-left));
  top: max(56px, calc(env(safe-area-inset-top) + 56px));
  z-index: 5;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.route-gallery-nav.is-prev { left: max(12px, env(safe-area-inset-left)); }
.route-gallery-nav.is-next { right: max(12px, env(safe-area-inset-right)); }
.route-gallery-image {
  display: block;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  object-fit: contain;
  border-radius: 0;
  background: #050806;
  justify-self: center;
  transform-origin: center center;
  will-change: transform;
  cursor: grab;
}
.route-gallery-image.is-zoomed {
  cursor: grabbing;
}
.route-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  background: rgba(255,255,255,.2);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}
.route-gallery-nav:hover {
  border-color: rgba(255,255,255,.42);
  color: #fff;
  background: rgba(255,255,255,.3);
}
.route-gallery-nav[hidden] {
  display: none;
}
.route-gallery-counter {
  position: absolute;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 4;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.36);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}
.route-gallery-activity {
  position: absolute;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 34px);
  z-index: 4;
  margin: 0;
  color: rgba(255,255,255,.92);
  font-size: 13px;
  text-align: center;
  text-shadow: 0 1px 5px rgba(0,0,0,.7);
}
.route-gallery-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.route-gallery-actions[hidden] { display: none; }
.route-gallery-slot-actions {
  position: absolute;
  left: 50%;
  top: max(58px, calc(env(safe-area-inset-top) + 58px));
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: min(72vw, 720px);
  transform: translateX(-50%);
}
.route-gallery-expanded .route-gallery-slot-actions {
  position: static;
  max-width: 100%;
  transform: none;
}
.route-gallery-slot-actions[hidden] { display: none; }
.route-gallery-slot-button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.route-gallery-slot-button.is-star {
  width: 40px;
  padding: 0;
}
.route-gallery-slot-button.is-delete {
  width: 40px;
  padding: 0;
  margin-left: 8px;
}
.route-gallery-slot-button.is-delete.is-assigned {
  border-color: #b73d32;
  background: rgba(183, 61, 50, 0.24);
  color: #fff;
}
.route-gallery-slot-button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.route-gallery-slot-button.is-assigned {
  border-color: var(--accent);
  background: rgba(22, 117, 74, 0.1);
  color: var(--accent-dark);
}
.route-gallery-slot-button:disabled {
  cursor: default;
}
.route-gallery-delete-confirm {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
}
.route-gallery-delete-confirm[hidden] {
  display: none;
}
.route-gallery-delete-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 6, 0.76);
  backdrop-filter: blur(3px);
}
.route-gallery-delete-confirm-panel {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.38);
}
.route-gallery-delete-confirm-image {
  display: block;
  width: 100%;
  height: 150px;
  margin-bottom: 16px;
  border-radius: 6px;
  object-fit: cover;
  background: #eef3ef;
}
.route-gallery-delete-confirm-panel h2 {
  margin: 0 0 8px;
  font-size: 21px;
}
.route-gallery-delete-confirm-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.route-gallery-delete-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.route-gallery-delete-confirm-actions .danger-action {
  border-color: rgba(183, 61, 50, 0.5);
  background: #b73d32;
  color: #fff;
}
.route-gallery-delete-confirm-actions .danger-action:hover:not(:disabled) {
  border-color: #913027;
  background: #913027;
  color: #fff;
}
.route-photo-gallery-figure {
  margin: 0;
}
.route-photo-gallery-link {
  display: block;
  border-radius: 8px;
  overflow: hidden;
}
.route-photo-gallery-empty {
  width: 100%;
  margin: 0;
  padding: 18px 14px;
  border: 1px dashed rgba(22, 117, 74, 0.25);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}
.route-photo-gallery-item {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(22, 117, 74, 0.2);
  border-radius: 8px;
  background: #f8faf9;
  object-fit: cover;
}
.route-photo-gallery-item.is-cover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(22, 117, 74, 0.15);
}
.route-photo-gallery-caption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.route-review-media-editors {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.route-review-photo-editor {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.route-review-photo-edit-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 2px 2px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.route-review-photo-edit-item {
  position: relative;
  flex: 0 0 112px;
  width: 112px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: #eef3ef;
}
.route-review-photo-edit-item[hidden] {
  display: none;
}
.route-review-photo-edit-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.route-review-photo-edit-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 20, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}
.route-review-photo-remove {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: rgba(16, 24, 20, 0.72);
  color: #fff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 140ms ease, transform 140ms ease, background 140ms ease;
  cursor: pointer;
}
.route-review-photo-remove svg {
  width: 22px;
  height: 22px;
}
.route-review-photo-edit-item:hover::after,
.route-review-photo-edit-item:focus-within::after,
.route-review-photo-edit-item:hover .route-review-photo-remove,
.route-review-photo-remove:focus-visible {
  opacity: 1;
}
.route-review-photo-edit-item:hover .route-review-photo-remove,
.route-review-photo-remove:focus-visible {
  transform: translate(-50%, -50%) scale(1);
}
.route-review-photo-remove:hover {
  background: rgba(141, 38, 31, 0.9);
}
.route-review-photo-remove:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.route-review-photo-add {
  justify-self: start;
}
.route-review-upload-progress {
  display: grid;
  gap: 9px;
  width: 100%;
  padding: 13px 14px;
  border: 2px solid rgba(22, 117, 74, 0.72);
  border-radius: 8px;
  background: #f7fcf9;
  box-shadow: 0 6px 18px rgba(16, 64, 42, 0.1);
}
.route-review-upload-progress[hidden] {
  display: none;
}
.route-review-upload-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.route-review-upload-progress-title {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  color: var(--ink);
}
.route-review-upload-progress-title svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.route-review-upload-progress-percent {
  flex: 0 0 auto;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.route-review-upload-progress-track {
  position: relative;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(22, 117, 74, 0.32);
  border-radius: 6px;
  background: #dcece4;
}
.route-review-upload-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 120ms linear;
}
.route-review-upload-progress-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.route-review-upload-progress.is-processing .route-review-upload-progress-track > span {
  width: 100% !important;
  background-image: linear-gradient(
    110deg,
    var(--accent) 0%,
    var(--accent) 38%,
    #52ad7c 50%,
    var(--accent) 62%,
    var(--accent) 100%
  );
  background-size: 220% 100%;
  animation: route-review-upload-processing 1.2s linear infinite;
}
.route-review-upload-progress.is-error {
  border-color: rgba(184, 57, 48, 0.74);
  background: #fff8f7;
}
.route-review-upload-progress.is-error .route-review-upload-progress-title svg,
.route-review-upload-progress.is-error .route-review-upload-progress-percent {
  color: #a6322b;
}
.route-review-upload-progress.is-error .route-review-upload-progress-track > span {
  background: #b83930;
  animation: none;
}
@keyframes route-review-upload-processing {
  from { background-position: 100% 0; }
  to { background-position: -120% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .route-review-upload-progress.is-processing .route-review-upload-progress-track > span {
    animation: none;
  }
}
@media (hover: none) {
  .route-review-photo-edit-item::after {
    opacity: 1;
  }
  .route-review-photo-remove {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
.route-photo-upload-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.route-photo-upload-status { font-size: 13px; }

@media (max-width: 800px) {
  .route-gallery-grid-item { height: 126px; }
}

@media (max-width: 480px) {
  .route-gallery-grid { gap: 8px; }
  .route-gallery-grid-item { height: 104px; }
  .route-gallery-expanded-meta {
    gap: 4px;
    min-height: 38px;
  }
  .route-gallery-zoom-hint {
    position: static;
    justify-self: center;
    transform: none;
  }
}

.status-note { margin: 0; padding: 13px; border: 1px solid var(--line); font-weight: 700; }
.single-form-layout { min-height: calc(100vh - var(--topbar-height)); background: var(--surface); }
.trip-detail-content { min-height: 0; }
.account-page .trip-detail-layout {
  height: calc(100vh - var(--topbar-height));
  min-height: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.account-page .detail-content.detail-content--sectioned {
  width: min(960px, 100%);
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.account-page .profile-content-head {
  padding-top: 10px;
  padding-bottom: 10px;
}
.account-page #profile-planned {
  gap: 12px;
}
.account-page #profile-planned > .eyebrow {
  margin: 0 0 -12px;
}
.profile-hero {
  display: grid;
  gap: 14px;
}
.profile-corner-actions {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  max-width: calc(100% - 32px);
}
.profile-corner-actions form {
  flex: 0 0 auto;
  margin: 0;
}
.profile-logout-action {
  color: var(--signal);
}
.profile-logout-action:hover {
  border-color: var(--signal);
  background: rgba(212, 85, 61, 0.08);
}
.profile-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.profile-title-row h1 {
  margin: 0;
  min-width: 0;
  font-size: 42px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.profile-avatar-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.profile-avatar-wrap {
  position: relative;
  flex: 0 0 128px;
  width: 128px;
  height: 128px;
}
.profile-avatar-image-action {
  position: absolute;
  right: 6px;
  bottom: 6px;
}
.profile-inline-edit-action {
  flex: 0 0 40px;
  color: var(--accent);
}
.profile-inline-edit-action:hover {
  border-color: var(--accent);
  background: var(--surface-soft);
}
.profile-create-club-action {
  flex: 0 1 auto;
  padding: 0 8px;
  font-size: 13px;
  white-space: nowrap;
}
.profile-title-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.profile-hero-facts {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin: 4px 0 0;
}
.profile-hero-facts > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}
.profile-hero-facts dt,
.profile-hero-facts dd {
  margin: 0;
}
.profile-hero-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}
.profile-hero-facts dd {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}
.profile-review-counts {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}
.profile-review-counts span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.profile-review-counts svg {
  width: 16px;
  height: 16px;
}
.profile-settings-toggle {
  flex: 0 0 40px;
  color: var(--accent);
}
.profile-settings-toggle:hover,
.profile-settings-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  background: var(--surface-soft);
}
.profile-current-trip {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(100%, 460px);
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(13, 110, 69, 0.24);
  background: #eef8f1;
  color: var(--ink);
  text-decoration: none;
}
.profile-current-trip:hover {
  border-color: rgba(13, 110, 69, 0.42);
  background: #e5f4ea;
}
.profile-current-trip-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.profile-current-trip-label svg {
  width: 15px;
  height: 15px;
}
.profile-current-trip strong,
.profile-current-trip small {
  overflow-wrap: anywhere;
}
.profile-current-trip small {
  color: var(--muted);
}
@media (max-width: 800px) {
  .profile-corner-actions {
    max-width: calc(100% - 174px);
  }
  .profile-current-trip {
    max-width: none;
    padding: 9px 10px;
  }
  .profile-current-trip-label {
    align-items: flex-start;
    white-space: normal;
  }
}
@media (max-width: 480px) {
  .profile-avatar-row {
    gap: 10px;
  }
  .profile-hero-facts {
    gap: 7px;
  }
  .profile-hero-facts > div {
    gap: 6px;
  }
  .profile-hero-facts dt {
    font-size: 10px;
  }
  .profile-hero-facts dd {
    font-size: 12px;
  }
}
.profile-settings-drawer[hidden] {
  display: none;
}
.profile-settings-panel {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}
.profile-settings-email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}
.profile-settings-email-row > div,
.profile-notifications-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.profile-settings-email-row > div > span,
.profile-notifications-head > div > span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.profile-short-link-panel {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}
.profile-short-link-panel > div {
  display: grid;
  gap: 4px;
}
.profile-short-link-panel .eyebrow {
  margin: 0;
}
.profile-short-link-panel strong {
  overflow-wrap: anywhere;
}
.profile-short-link-panel small {
  color: var(--muted);
  font-weight: 700;
}
.profile-short-link-form {
  display: grid;
  grid-template-columns: auto minmax(0, 220px) auto;
  align-items: center;
  gap: 10px;
}
.profile-short-link-prefix {
  color: var(--brand);
  font-weight: 900;
}
.profile-short-link-form input {
  width: 100%;
  min-width: 0;
}
.profile-settings-notifications {
  display: grid;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.profile-notifications-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.profile-notifications-form {
  display: grid;
  gap: 10px;
}
.profile-notifications-form .secondary-action {
  justify-self: start;
}
.profile-email-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
@media (max-width: 560px) {
  .profile-settings-email-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .profile-settings-email-row .secondary-action {
    align-self: stretch;
  }
  .profile-email-dialog-actions > button {
    flex: 1 1 0;
  }
}
.profile-review-reasons-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}
.profile-review-reasons-line > svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--signal);
}
.profile-review-reasons-line span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.profile-review-reasons-line strong {
  font-weight: 800;
}
.profile-review-privacy-note {
  margin: -6px 0 0;
  font-size: 13px;
}
.application-review-reasons {
  margin-top: 8px;
}
.trip-join-review-notice {
  margin: -4px 0 0;
}
.trip-join-review-reasons {
  margin-top: 8px;
}
.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  max-width: none;
}
.profile-hero-avatar {
  flex: 0 0 128px;
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.profile-hero-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.profile-hero-avatar-placeholder svg {
  width: 40px;
  height: 40px;
}
.profile-avatar-preview {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.profile-public-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-public-info > h1 {
  margin: 0;
  font-size: 42px;
}
.profile-public-bio {
  margin: 0;
  line-height: 1.6;
}
.profile-public-city {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}
.profile-save-action {
  align-self: flex-start;
  min-width: 0;
  padding: 0 16px;
}
.profile-edit-modal-panel h2 {
  margin: 0 48px 18px 0;
  font-size: 24px;
}
.profile-edit-modal-panel .route-form {
  gap: 16px;
}
.profile-edit-modal-panel .submit-action {
  min-width: 0;
  margin-top: 0;
}
.profile-links-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-links-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.profile-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-link-field {
  margin: 0;
}
.profile-links-editor .profile-links-add {
  align-self: flex-start;
}
.profile-public-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.profile-public-links a {
  color: var(--accent);
  font-weight: 650;
  word-break: break-word;
}
.account-page .profile-trips-list {
  width: 100%;
  min-width: 0;
  gap: 4px;
}
.account-page .profile-past-trips > .profile-trips-list {
  margin-top: 10px;
}
.account-page .trip-card-compact {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 6px 8px;
  line-height: 1.2;
}
.account-page .trip-card-compact .trip-card-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.account-page .trip-card-compact strong {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}
.account-page .trip-card-compact strong svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.account-page .trip-card-compact .trip-card-title {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.account-page .trip-card-compact small {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-page .trip-card-compact .trip-date {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .account-page .trip-card-compact .trip-card-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
  }
  .account-page .trip-card-compact strong {
    grid-column: 1;
    grid-row: 1;
  }
  .account-page .trip-card-compact small {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .account-page .trip-card-compact .trip-date {
    grid-column: 2;
    grid-row: 1;
  }
}
.profile-my-review-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.profile-my-review {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}
.profile-my-review > * {
  min-width: 0;
  max-width: 100%;
}
.profile-my-review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  min-width: 0;
}
.profile-my-review-trip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.profile-my-review-trip:hover {
  color: var(--accent);
}
.profile-my-review-trip svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.profile-my-review-trip span {
  overflow-wrap: anywhere;
}
.profile-my-review-route {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.profile-my-review .route-review-text {
  width: 100%;
  padding-left: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.profile-my-review .profile-my-review-photos {
  display: flex;
  flex: 0 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  justify-self: stretch;
  justify-content: flex-start;
  overflow: visible;
}
.profile-my-review .profile-my-review-photos .route-review-photo-link {
  flex: 0 0 auto;
}
.profile-my-review-photos .route-review-photo-thumb {
  width: 88px;
  height: 66px;
}
@media (max-width: 480px) {
  .profile-my-review {
    padding: 10px;
  }
  .profile-my-review-head {
    align-items: flex-start;
  }
  .profile-my-review-trip {
    flex: 1 1 100%;
  }
  .profile-my-review-photos .route-review-photo-thumb {
    width: 72px;
    height: 54px;
  }
}
.directory-content { width: min(1200px, 100%); }
.directory-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.directory-column { min-width: 0; }
.date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field select { width: 100%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); outline: none; padding: 11px 12px; font-weight: 400; }
.form-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(22,117,74,.1); }
.application-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); background: var(--paper); }
.application-row strong, .application-row small { display: block; }
.application-row p { margin: 9px 0 0; color: var(--muted); line-height: 1.5; }
.corporate-request-contacts-view {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}
.corporate-request-contacts-view form {
  margin: 4px 0 0;
}
.corporate-archive-list {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.corporate-archive-list h3 {
  margin: 0 0 12px;
  font-size: 16px;
}
.club-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.club-title-row h1 {
  margin: 0;
}
.club-public-page {
  gap: 0;
  padding: 0;
}
.club-public-cover {
  position: relative;
  flex: 0 0 112px;
  width: 100%;
  height: 112px;
  min-height: 112px;
  max-height: 112px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(22, 117, 74, 0.13), rgba(90, 159, 122, 0.08));
  border-bottom: 1px solid var(--line);
}
.club-public-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.club-public-avatar-wrap {
  position: relative;
  width: 128px;
  height: 128px;
}
.club-public-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.club-public-avatar-placeholder {
  color: var(--muted);
}
.club-public-avatar-placeholder svg {
  width: 38px;
  height: 38px;
}
.club-public-image-form {
  position: absolute;
  z-index: 2;
  margin: 0;
}
.club-public-image-form--cover {
  right: 10px;
  bottom: 10px;
}
.club-public-image-form--avatar {
  right: 6px;
  bottom: 6px;
}
.club-public-image-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.club-public-page .club-public-image-action,
.account-page .profile-avatar-image-action {
  color: #fff;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.82));
  opacity: 0.86;
}
.club-public-page .club-public-image-action:hover:not(:disabled),
.club-public-page .club-public-image-action:focus-visible,
.account-page .profile-avatar-image-action:hover:not(:disabled),
.account-page .profile-avatar-image-action:focus-visible {
  color: #fff;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  opacity: 1;
}
.club-public-body {
  display: grid;
  gap: 18px;
  padding: 28px var(--detail-inline-pad) 34px;
}
.club-public-head {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  min-width: 0;
}
.club-public-identity {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.club-public-body h1 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.club-public-site {
  width: fit-content;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.club-public-action {
  justify-self: end;
}
.club-route-tree-section {
  display: grid;
  gap: 14px;
  margin-top: 0;
}
@media (max-width: 640px) {
  .club-public-head {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px 14px;
  }
  .club-public-avatar-wrap,
  .club-public-avatar {
    width: 96px;
    height: 96px;
  }
  .club-public-action {
    grid-column: 2;
    justify-self: start;
  }
}
.club-route-tree-section h2 {
  margin: 0;
  color: var(--accent);
  font-size: 18px;
  text-transform: uppercase;
}
.club-route-tree {
  display: grid;
  gap: 10px;
}
.club-route-tree-item {
  border: 1px solid var(--line);
  background: var(--paper);
}
.club-route-tree-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--accent);
  font-weight: 700;
}
.club-route-tree-heading small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.club-route-title {
  min-width: 0;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.club-route-title:hover {
  text-decoration: underline;
}
.club-route-tree-branch {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px 28px;
}
.club-route-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.club-route-preview {
  width: 108px;
  height: 76px;
  padding: 0;
  border: 1px solid rgba(22, 117, 74, 0.25);
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}
.club-route-preview:hover {
  border-color: var(--accent);
}
.club-route-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.club-route-trip-list {
  display: grid;
  gap: 6px;
}
.club-route-trip-row {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr);
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(22, 117, 74, 0.16);
  color: var(--ink);
  text-decoration: none;
}
.club-route-trip-row:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.club-route-trip-row span {
  color: var(--muted);
  font-size: 13px;
}
.club-route-trip-row strong {
  min-width: 0;
}
.club-name-edit-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.club-name-edit-form .secondary-action {
  width: fit-content;
}
.club-image-preview {
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--paper);
}
.club-cover-preview {
  width: min(100%, 360px);
  height: 120px;
  border-radius: 6px;
}
.club-avatar-preview,
.club-card-avatar {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.club-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.club-card-text {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.club-card-text strong,
.club-card-text small {
  min-width: 0;
}
.club-name-edit-form[hidden] {
  display: none;
}
.club-delegation-layout {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(0, 2fr);
  gap: 16px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.club-delegation-members {
  display: grid;
  gap: 8px;
}
.club-member-search {
  margin: 0 0 4px;
}
.club-delegation-member {
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.club-delegation-member.is-active {
  border-color: var(--accent);
  background: rgba(22, 117, 74, 0.07);
}
.club-delegation-member.is-member-filtered {
  display: none !important;
}
.club-route-rights-form[hidden],
.club-instructor-rights[hidden],
.delegation-actions[hidden],
.club-access-summary[hidden],
.checkbox-field[hidden],
.club-role-option[hidden],
.club-role-remove[hidden],
.club-member-remove-button[hidden],
.club-ownership-transfer[hidden],
.club-ownership-transfer form[hidden] {
  display: none !important;
}
.club-delegation-member:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.club-delegation-member strong,
.club-delegation-member small {
  display: block;
}
.club-delegation-member small {
  margin-top: 4px;
  color: var(--muted);
}
.club-delegation-options,
.delegation-actions,
.club-route-rights-form {
  display: grid;
  gap: 10px;
}
.club-delegation-role {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.club-role-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}
.club-role-option .checkbox-field {
  margin: 0;
}
.club-role-remove {
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border-color: #ef8f82;
  background: #fff8f6;
  color: #c93324;
  white-space: nowrap;
}
.club-role-remove svg,
.club-role-remove i {
  width: 20px;
  height: 20px;
  color: #c93324;
  stroke-width: 2.4;
}
.club-role-remove:hover {
  border-color: #c93324;
  background: #fff1ee;
}
.club-role-remove:disabled {
  opacity: 0.35;
}
.club-member-remove-button {
  grid-column: 1 / -1;
  justify-content: center;
}
.club-access-summary {
  display: grid;
  gap: 8px;
  margin-top: 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.club-membership-status:not(.mvp-live) {
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.trip-section.club-membership-status:not(.mvp-live):not(.mvp-stub) {
  padding-top: 16px;
}
.club-access-summary h3 {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
}
.club-access-group {
  display: grid;
  gap: 5px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.club-access-group:first-of-type {
  padding-top: 0;
  border-top: 0;
}
.club-access-group h3 {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.club-access-summary ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}
.club-access-summary a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.club-access-summary a:hover {
  text-decoration: underline;
}
.club-ownership-transfer {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.club-ownership-transfer[hidden],
.club-ownership-transfer form[hidden] {
  display: none;
}
.club-ownership-transfer form {
  display: grid;
  gap: 10px;
}
.club-delegation-wide {
  width: 100%;
}
.club-route-rights-form {
  max-width: none;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.club-instructor-rights {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.club-instructor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.club-instructor-route-list,
.club-instructor-trip-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.club-instructor-scroll-list {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 180px;
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.club-instructor-scroll-list[hidden] {
  display: none;
}
.club-instructor-list-button {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.club-instructor-list-button.is-active {
  border-color: var(--accent);
  background: rgba(22, 117, 74, 0.08);
  color: var(--accent);
}
.club-instructor-list-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.club-instructor-trip-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: stretch;
}
.club-instructor-trip-row[hidden] {
  display: none;
}
.club-trip-edit-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  min-height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.club-trip-edit-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.club-trip-edit-toggle i {
  width: 17px;
  height: 17px;
  color: var(--accent);
}
.club-trip-edit-toggle input:not(:checked) + i {
  color: var(--muted);
}
.club-trip-edit-toggle span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.trip-instructor-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.trip-instructor-edit-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}
.trip-instructor-edit-state input,
.trip-instructor-edit-field input {
  accent-color: var(--accent);
}
.trip-instructor-edit-state i,
.trip-instructor-edit-field i {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.trip-instructor-edit-state input:not(:checked) ~ i {
  color: var(--muted);
}
.trip-instructor-edit-state span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.trip-instructor-assignment-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.trip-instructor-assignment-form {
  gap: 0;
}
.trip-instructor-assignment-line select {
  width: 100%;
  min-width: 0;
}
.trip-instructor-edit-field {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 8px;
  cursor: help;
}
.trip-instructor-edit-field input {
  margin: 0;
}
.trip-instructor-edit-field::after {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  width: max-content;
  max-width: min(240px, calc(100vw - 32px));
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(24, 35, 30, 0.96);
  box-shadow: 0 3px 10px rgba(20, 30, 25, 0.2);
  color: #fff;
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 120ms ease, visibility 120ms ease;
}
.trip-instructor-edit-field:hover::after,
.trip-instructor-edit-field:focus-within::after {
  opacity: 1;
  visibility: visible;
}
.club-instructor-summary {
  display: grid;
  gap: 6px;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  line-height: 1.45;
}
.application-actions { display: flex; gap: 8px; margin: 0; }
.application-actions select { min-height: 40px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 0 10px; font-weight: 650; }
.review-form { display: grid; gap: 16px; margin-bottom: 18px; }
.review-choice, .reason-group { margin: 0; padding: 14px; border: 1px solid var(--line); }
.review-choice legend, .reason-group legend { padding: 0 6px; font-size: 13px; font-weight: 750; color: var(--ink); }
.review-choice ul, .reason-group ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.reason-confirm-row { display: flex; justify-content: flex-end; margin-top: 14px; }
.inline-review-reasons [data-reason-group="down"] { display: grid; gap: 12px; }
.inline-review-reasons [data-reason-group="down"][hidden] { display: none; }
.inline-review-reasons .reason-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.review-choice label, .reason-group label { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 13px; font-weight: 650; cursor: pointer; }
.review-choice input, .reason-group input { width: 17px; height: 17px; accent-color: var(--accent); }
.review-row { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 14px; border: 1px solid var(--line); background: var(--paper); }
.review-row strong, .review-row small { display: block; }
.review-row p { margin: 9px 0 0; color: var(--muted); line-height: 1.5; }
.user-avatar-or-icon {
  display: grid;
  place-items: center;
  overflow: hidden;
}
.user-avatar-or-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); }
.review-mark svg { width: 18px; height: 18px; }
.review-mark.is-up { color: var(--accent); background: rgba(22,117,74,.08); border-color: rgba(22,117,74,.32); }
.review-mark.is-down { color: var(--signal); background: rgba(212,85,61,.08); border-color: rgba(212,85,61,.32); }
.participant-row-content { min-width: 0; }
.participant-main-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }
.participant-identity { min-width: 0; }
.participant-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; }
.participant-actions .inline-review-form { margin-top: 0; }
.participant-remove-form { margin: 0; }
.participant-subgroup {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.participant-subgroup-title {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.participant-subgroup--office {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.participant-office-row {
  background: rgba(22,117,74,.04);
}
.inline-review-form { display: grid; gap: 10px; margin-top: 10px; }
.inline-review-reasons { display: grid; gap: 10px; margin-top: 10px; }
.inline-review-reasons:has(> [data-reason-group="down"][hidden]) { display: none; }
.review-buttons { display: flex; gap: 8px; }
.review-thumb { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.review-thumb svg { width: 18px; height: 18px; }
.review-thumb.is-up:hover, .review-thumb.is-up.is-selected { color: var(--accent); border-color: var(--accent); background: rgba(22,117,74,.08); }
.review-thumb.is-down:hover, .review-thumb.is-down.is-selected { color: var(--signal); border-color: var(--signal); background: rgba(212,85,61,.08); }
.tag-editor { align-items: stretch; }
.rules-editor {
  position: relative;
  z-index: 5;
  display: grid;
  gap: 12px;
}
.rules-editor:not(.mvp-live) {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.route-main-data-subsection,
.rules-editor.rules-editor--embedded {
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}
.route-main-data-subsection {
  display: grid;
  gap: 14px;
}
.rules-editor.is-suggest-open {
  z-index: 20;
}
.rules-editor .section-heading { margin-bottom: 0; }
.rules-editor-hint { margin: 0; font-size: 13px; line-height: 1.45; }
.rules-editor .tag-entry input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  outline: none;
  padding: 11px 12px;
  font-weight: 400;
}
.rules-editor .tag-entry input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(22,117,74,.1);
}
.tag-input-wrap { position: relative; z-index: 1; min-width: 0; }
.tag-entry { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.tag-suggest-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(31, 41, 37, 0.14);
}
.tag-suggest-popover[hidden] { display: none !important; }
.tag-suggest-option {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}
.tag-suggest-option[hidden] { display: none !important; }
.tag-suggest-option.is-selected,
.tag-suggest-option:disabled {
  opacity: 0.45;
  cursor: default;
}
.tag-suggest-option:hover,
.tag-suggest-option:focus-visible {
  background: rgba(22, 117, 74, 0.08);
  color: var(--accent);
  outline: none;
}
.tag-suggest-option:disabled:hover,
.tag-suggest-option:disabled:focus-visible {
  background: transparent;
  color: var(--ink);
}
.tag-chip { min-height: 30px; padding: 0 10px; border: 1px solid rgba(22,117,74,.28); background: rgba(22,117,74,.08); color: var(--accent); font-size: 12px; font-weight: 750; cursor: pointer; }
.tag-chip:hover { border-color: var(--signal); color: var(--signal); background: rgba(212,85,61,.08); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 0; }
.readonly-tags { margin: 18px 0 0; }
.readonly-tags .tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0;
  border-color: transparent;
  background: transparent;
  cursor: default;
}
.readonly-tags .tag-chip:hover {
  border-color: transparent;
  color: var(--accent);
  background: transparent;
}
.trip-join-rules-box .trip-join-rules { margin: 0; }
.activity-table { display: grid; gap: 4px; }
.activity-plan-table .activity-row {
  cursor: default;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.activity-plan-table .activity-row.has-activity-photos {
  display: block;
  cursor: pointer;
}
.activity-plan-table .activity-row.is-map-highlighted,
.activity-row.is-map-highlighted {
  border-color: var(--line);
  background: rgba(22, 117, 74, 0.08);
  box-shadow: none;
}
.activity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.activity-row.is-inherited { background: var(--paper); }
.activity-row.is-inherited .activity-row-body small {
  color: var(--muted);
}
.activity-row-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.activity-row-body { min-width: 0; }
.activity-plan-table .activity-row-body,
.activity-editor .activity-row-body {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.activity-plan-table .activity-row-body > strong,
.activity-editor .activity-row-body > strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.activity-row-title-icon {
  display: inline-flex;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 1px;
}
.activity-row-title-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}
.activity-row-copy-link.secondary-action,
.activity-row-yandex-map.secondary-action {
  flex: 0 0 30px;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  margin: -2px -4px -2px 0;
  padding: 0;
  border-radius: 5px;
}
.activity-row-copy-link.is-copied {
  color: #ffffff;
  background: var(--accent);
}
.activity-row strong, .activity-row small { display: block; }
.activity-row small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.activity-row p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}
.activity-photo-panel {
  margin-top: 8px;
}
.activity-photo-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.activity-photo-preview {
  position: relative;
  flex: 0 0 76px;
  width: 76px;
  min-width: 76px;
  max-width: 76px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  appearance: none;
}
.activity-photo-preview::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(22, 117, 74, 0.35);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}
.activity-photo-preview.is-gallery-link::after {
  border-color: var(--accent);
}
.activity-photo-preview.is-gallery-link:hover::after {
  border-color: var(--accent);
  border-width: 2px;
}
.activity-photo-preview:focus-visible {
  outline: 2px solid rgba(22, 117, 74, 0.42);
  outline-offset: 2px;
}
.activity-photo-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}
.activity-editor-photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.activity-photo-preview.is-unbind-action::after {
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(31, 41, 37, 0.58);
  color: #fff;
  content: "\00d7";
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.14s ease;
}
.activity-photo-preview.is-unbind-action:hover::after,
.activity-photo-preview.is-unbind-action:focus-visible::after {
  opacity: 1;
}
.activity-photo-preview.is-unbind-action:focus-visible {
  outline: 2px solid rgba(31, 41, 37, 0.34);
}
.activity-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  position: relative;
  z-index: 0;
  width: 100%;
  min-width: 0;
}
.route-form > .activity-editor.mvp-live {
  display: grid;
}
.activity-editor.mvp-live .activity-add-row,
.activity-editor.mvp-live .activity-table {
  width: 100%;
  min-width: 0;
}
.activity-editor:not(.mvp-live) {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.activity-editor .section-heading { margin-bottom: 0; }
.activity-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.activity-editor-heading-action {
  flex: 0 0 auto;
}
.activity-editor-footer {
  display: flex;
  justify-content: flex-end;
}
.activity-editor-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}
.activity-editor-form {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--accent);
  border-top: 0;
  background: var(--surface);
}
.activity-editor-entry > .activity-row.is-editing {
  border-color: var(--accent);
}
.activity-row.is-draft .activity-row-body strong {
  color: var(--muted);
}
.activity-row-action:disabled,
.activity-row-drag[aria-disabled="true"] {
  opacity: 0.38;
  cursor: not-allowed;
}
.activity-add-row { display: grid; grid-template-columns: minmax(64px, 80px) minmax(0, 1fr) minmax(120px, 160px); gap: 8px; align-items: end; }
.activity-add-row > .form-field { margin: 0; min-width: 0; }
.activity-geometry-field { grid-column: auto; }
.activity-add-row input:not([type="color"]):not(.activity-color-code),
.activity-add-row select,
.activity-add-row textarea { width: 100%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); outline: none; padding: 10px 11px; font-weight: 400; }
.activity-add-row textarea { grid-column: 1 / -1; resize: vertical; min-height: 68px; }
.activity-appearance-group { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; align-items: end; }
.activity-icon-options:not(.activity-icon-options--point) {
  grid-template-columns: minmax(180px, 280px);
}
.activity-icon-size-field[hidden] { display: none !important; }
.activity-appearance-group[hidden] { display: none !important; }
.activity-map-hint { grid-column: 1 / -1; margin: 0; font-size: 12px; line-height: 1.45; }
.activity-map-hint[hidden] { display: none !important; }
.activity-routing-status[data-state="pending"] { color: #805900; }
.activity-routing-status[data-state="ready"] { color: #0c7046; }
.activity-routing-status[data-state="error"] { color: #a12b2b; }
.activity-editor-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.activity-gallery-picker-action { margin-right: auto; }
.activity-gallery-selection {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  order: -1;
}
.activity-gallery-selection[hidden] { display: none; }
.activity-gallery-selection img {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  object-fit: cover;
  background: var(--paper);
}
.route-gallery-grid-item.is-picker-selected::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 3px solid #fff;
  border-radius: 6px;
  box-shadow: 0 0 0 2px var(--accent);
  pointer-events: none;
}
.activity-row-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.activity-row-action.icon-only {
  width: 36px;
  height: 36px;
  padding: 0;
}
.activity-row-action.icon-only svg {
  width: 17px;
  height: 17px;
}
.activity-row-drag {
  flex-shrink: 0;
  width: 28px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.activity-row-drag:active { cursor: grabbing; }
.activity-row-drag svg { width: 16px; height: 16px; pointer-events: none; }
.activity-table.is-dragging .activity-row { transition: none; }
.activity-row.is-dragging { opacity: 0.55; }
.activity-row.is-drag-over { border-color: var(--accent); background: rgba(22, 117, 74, 0.04); }
.activity-editor-day-group {
  min-width: 0;
  padding: 6px;
  border: 1px solid transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.activity-editor-day-group + .activity-editor-day-group { margin-top: 0; }
.activity-editor-day-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.activity-editor-day-heading .activity-day-title { margin: 0; }
.activity-editor-day-add.icon-only {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  padding: 0;
}
.activity-editor-day-add.icon-only svg {
  width: 16px;
  height: 16px;
}
.activity-editor-day-empty { margin: 0; }
.activity-editor-day-group.is-drag-over {
  border-color: var(--accent);
  background: rgba(22, 117, 74, 0.04);
}
.activity-row.is-editing { border-color: var(--accent); }
.activity-color-field { position: relative; }
.activity-color-picker { display: block; }
.activity-color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.activity-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
}
.activity-color-swatch {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(31, 41, 37, 0.18);
  border-radius: 2px;
  background: var(--swatch-color);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.activity-color-swatch.is-light {
  box-shadow: inset 0 0 0 1px rgba(31, 41, 37, 0.16);
}
.activity-color-swatch.is-selected {
  outline: 1px solid var(--ink);
  outline-offset: 1px;
}
.activity-color-swatch:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}
.activity-color-custom {
  position: relative;
  background: conic-gradient(#e11d48, #ea580c, #ca8a04, #16a34a, #2563eb, #9333ea, #e11d48);
  overflow: hidden;
}
.activity-color-custom-surface {
  position: absolute;
  inset: 1px;
  border-radius: 1px;
  background: var(--paper);
}
.activity-color-custom.is-selected .activity-color-custom-surface {
  inset: 0;
  border-radius: 1px;
}
.activity-color-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.activity-add-row input:not([type="color"]):not(.activity-color-code),
.activity-add-row select,
.activity-add-row textarea { width: 100%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); outline: none; padding: 10px 11px; font-weight: 400; }
.activity-add-row .activity-color-code {
  width: 88px;
  min-width: 88px;
  max-width: 88px;
  height: 20px;
  margin: 0;
  padding: 0 5px;
  flex: 0 0 88px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}
.activity-add-row .activity-color-code:focus {
  border-color: var(--accent);
}
.activity-range-field input[type="range"] { width: 100%; accent-color: var(--accent); }
.activity-show-icon-field { margin: 0; }
.activity-icon-marker { background: transparent; border: 0; }
.activity-icon-marker-body {
  display: grid;
  place-items: center;
  width: var(--activity-icon-size, 26px);
  height: var(--activity-icon-size, 26px);
  color: var(--accent);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(22,117,74,.28);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(31,41,37,.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.activity-icon-marker-body.is-map-highlighted {
  transform: scale(1.35);
  border-color: #d4553d;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 6px rgba(212, 85, 61, 0.78), 0 4px 10px rgba(31,41,37,.3);
}
.activity-icon-marker-body svg {
  display: block;
  width: calc(var(--activity-icon-size, 26px) * 0.58);
  height: calc(var(--activity-icon-size, 26px) * 0.58);
}

.leaflet-container path.leaflet-interactive:focus,
.leaflet-container path.leaflet-interactive:focus-visible {
  outline: none;
}

.route-point-marker.activity-vertex-handle,
.route-point-marker.activity-vertex-handle .route-point-dot,
.route-point-marker.activity-arc-endpoint,
.route-point-marker.activity-arc-endpoint .route-point-dot,
.route-point-marker.activity-arc-control,
.activity-arc-control-handle,
.activity-arc-control-dot {
  cursor: crosshair;
}

.primary-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.activity-map-tooltip {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(31, 41, 37, 0.14);
  white-space: pre-wrap;
  min-width: 160px;
  max-width: 320px;
  width: max-content;
}
.activity-map-tooltip-title {
  display: block;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}
.activity-map-tooltip-day {
  display: block;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}
.activity-map-tooltip-desc {
  display: block;
  margin: 0;
  line-height: 1.3;
}
.leaflet-popup.activity-map-preview-popup {
  margin-bottom: 12px;
}
.activity-map-preview-popup .leaflet-popup-content-wrapper {
  overflow: hidden;
  border: 1px solid rgba(22, 117, 74, 0.34);
  border-radius: 7px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(15, 35, 27, 0.2), 0 2px 8px rgba(15, 35, 27, 0.12);
}
.activity-map-preview-popup .leaflet-popup-content {
  width: auto !important;
  margin: 0;
}
.activity-map-preview-popup .leaflet-popup-tip {
  border: 1px solid rgba(22, 117, 74, 0.24);
  background: var(--paper);
  box-shadow: 3px 3px 7px rgba(15, 35, 27, 0.1);
}
.activity-map-preview {
  width: min(340px, calc(100vw - 48px));
  min-width: 0;
  padding: 12px;
  color: var(--ink);
}
.activity-map-preview-heading {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.activity-map-preview-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.activity-map-preview-title:hover,
.activity-map-preview-title:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}
.activity-map-preview-copy.secondary-action {
  flex: 0 0 30px;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 5px;
}
.activity-map-preview-copy.is-copied {
  color: #ffffff;
  background: var(--accent);
}
.activity-map-preview-description {
  max-height: 7.2em;
  overflow: auto;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.activity-map-preview-photos {
  display: flex;
  gap: 6px;
  max-width: 100%;
  margin-top: 10px;
  padding-bottom: 2px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.activity-map-preview-photo {
  flex: 0 0 64px;
  width: 64px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
}
.activity-map-preview-photo:hover,
.activity-map-preview-photo:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(22, 117, 74, 0.16);
}
.activity-map-preview-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-frame-debug {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  padding: 6px 8px;
  border: 1px solid rgba(31, 41, 37, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 3px 10px rgba(31, 41, 37, 0.16);
  color: var(--ink);
  font-size: 11px;
  transform: translateX(-50%);
}
.activity-frame-debug span {
  overflow: hidden;
  max-width: min(430px, 52vw);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-frame-debug button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--accent);
  background: var(--surface);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.form-panel {
  min-width: 0;
  overflow: auto;
  padding: 34px var(--detail-inline-pad) 48px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-panel--sectioned {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.form-panel-intro {
  padding: 34px var(--detail-inline-pad) 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}
.form-panel-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px var(--detail-inline-pad) 12px;
}
.form-panel--sectioned .detail-content-head {
  padding: 0 var(--detail-inline-pad) 12px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.form-panel--sectioned .detail-content-head.form-panel-head {
  padding: 12px var(--detail-inline-pad) 12px;
}
.form-panel--sectioned .detail-content-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px var(--detail-inline-pad) 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-padding-top: 12px;
}
.form-panel--sectioned .detail-content-scroll [id] {
  scroll-margin-top: 12px;
}
.form-panel--sectioned .route-form {
  gap: 16px;
}
.detail-page .detail-content:not(.detail-content--sectioned),
.form-page .form-panel:not(.form-panel--sectioned),
.detail-page .detail-content-head,
.form-page .form-panel-head,
.form-panel--sectioned .detail-content-head,
.detail-page .detail-content-scroll,
.form-panel--sectioned .detail-content-scroll {
  padding-left: 5px;
  padding-right: 5px;
}
.form-panel--sectioned .detail-content-scroll:has(.route-form--with-sticky-actions),
.form-panel--sectioned .detail-content-scroll--sticky-form {
  padding: 0;
  gap: 0;
}
.route-form--with-sticky-actions {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.route-form--with-sticky-actions .route-form-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px 5px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-submit-row--sticky {
  flex-shrink: 0;
  margin-top: 0;
  padding: 0 5px 6px;
  background: var(--paper);
  z-index: 3;
}
.form-panel .back-link { margin-bottom: 0; }
.form-panel h1 { margin-bottom: 0; font-size: 30px; }
.route-form, .auth-form { display: flex; flex-direction: column; gap: 16px; }
.editor-inline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.form-block { display: flex; flex-direction: column; gap: 14px; }
.form-block .section-heading { margin-bottom: 0; }
.form-block-title { margin: 0; font-size: 17px; line-height: 1.3; letter-spacing: 0; }
.owner-readonly {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 11px 12px;
  font-weight: 650;
  cursor: not-allowed;
}
.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}
.compact-form { max-width: 520px; }
.profile-name-form { margin: 0; max-width: none; }
.profile-name-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-name-field {
  flex: 1 1 12rem;
  min-width: 0;
  max-width: 28rem;
}
.profile-name-save {
  min-width: 0;
  padding: 0 12px;
  flex-shrink: 0;
  white-space: nowrap;
}
.form-field { display: flex; flex-direction: column; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 700; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); outline: none; padding: 11px 12px; font-weight: 400; }
.form-field textarea { resize: vertical; min-height: 112px; line-height: 1.5; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(22,117,74,.1); }
.coordinate-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.coordinate-field { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 700; }
.coordinate-field input {
  width: 9.5rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  outline: none;
  padding: 11px 12px;
  font-weight: 400;
}
.coordinate-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(22,117,74,.1); }
.coordinate-field .errorlist { width: 100%; }
.checkbox-field { display: flex; align-items: flex-start; gap: 11px; padding: 13px; border: 1px solid var(--line); cursor: pointer; }
.checkbox-field input { width: 18px; height: 18px; accent-color: var(--accent); }
.checkbox-field input:disabled { cursor: not-allowed; opacity: 0.45; }
.checkbox-field input:disabled + span { color: var(--muted); opacity: 0.55; }
.checkbox-field span { display: flex; flex-direction: column; gap: 4px; }
.checkbox-field small { color: var(--muted); line-height: 1.4; }
.submit-action { align-self: flex-start; min-width: 190px; margin-top: 4px; cursor: pointer; }
.form-submit-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.form-submit-row--sticky.form-submit-row { margin-top: 0; }
.form-submit-row .submit-action { margin-top: 0; }
.auth-alt-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 16px; }
.auth-alt-actions .submit-action { margin-top: 0; }
.auth-text-link { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.auth-text-link:hover { color: var(--ink); }
.route-draft-notice { margin-bottom: 16px; }
.trip-card-compact .draft-badge { color: var(--muted); font-weight: 650; margin-left: 8px; }
.errorlist { margin: 0; padding: 0; list-style: none; color: #a73b2e; font-size: 12px; font-weight: 600; }
.form-errors { padding: 11px 12px; color: #8b2e23; background: #fff1ee; border-left: 3px solid var(--signal); font-size: 13px; }
#route-map { position: absolute; inset: 0; width: 100%; height: 100%; background: #eef3ef; }
.editor-map-panel #detail-map { background: #eef3ef; }
#route-map.is-drawing { cursor: crosshair; }
.route-point-marker.activity-arc-control {
  width: 28px;
  height: 28px;
}
.activity-arc-control-handle {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
}
.activity-arc-control-ring {
  position: absolute;
  inset: 0;
  border: 2px solid #c29321;
  border-radius: 50%;
  background: rgba(194, 147, 33, 0.18);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95);
}
.activity-arc-control-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #c29321;
  box-shadow: 0 1px 6px rgba(31, 41, 37, 0.35);
}
.route-point-marker.activity-arc-endpoint .route-point-dot {
  cursor: crosshair;
}

.route-point-marker.is-last-placed {
  width: 22px;
  height: 22px;
  z-index: 2;
}
.route-point-marker.is-last-placed .route-point-dot {
  width: 16px;
  height: 16px;
  border-width: 3px;
  border-color: #ffffff;
  background: #e04432;
  box-shadow:
    0 0 0 2px rgba(31, 41, 37, 0.88),
    0 0 0 5px rgba(255, 255, 255, 0.92),
    0 2px 8px rgba(31, 41, 37, 0.4);
}
.route-point-marker.activity-arc-control.is-last-placed .activity-arc-control-ring {
  border-color: #e04432;
  background: rgba(224, 68, 50, 0.2);
  box-shadow:
    0 0 0 2px rgba(31, 41, 37, 0.88),
    0 0 0 5px rgba(255, 255, 255, 0.92);
}
.route-point-marker.activity-arc-control.is-last-placed .activity-arc-control-dot {
  background: #e04432;
}

.route-point-marker {
  display: grid;
  place-items: center;
  width: 9px;
  height: 9px;
  background: transparent;
}
.route-point-dot {
  display: block;
  width: 9px;
  height: 9px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #16754a;
  box-shadow: 0 1px 5px rgba(31,41,37,.28);
}
.route-start-point-marker {
  width: 14px;
  height: 14px;
}
.route-start-point-dot {
  width: 14px;
  height: 14px;
  background: var(--signal);
}
.map-pinned-marker {
  display: grid;
  place-items: center;
  color: var(--accent);
  background: transparent;
  border: 0;
}
.map-pinned-marker svg {
  display: block;
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 5px rgba(31,41,37,.28));
}
.catalog-marker-cluster {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
}
.catalog-marker-cluster-count {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.map-panel.mvp-live .marker-cluster {
  background: transparent;
}
.map-toolbar { position: absolute; z-index: 500; top: 15px; left: 15px; display: flex; gap: 8px; flex-wrap: wrap; }
.map-toolbar .is-active { background: rgba(22,117,74,.12); }

.auth-layout { min-height: calc(100vh - var(--topbar-height)); display: grid; place-items: center; padding: 32px 20px; }
.auth-page--plain .auth-layout { min-height: 100vh; }
.auth-panel { width: min(420px, 100%); padding: 30px; background: var(--paper); border: 1px solid var(--line); }
.auth-panel h1 { margin-bottom: 26px; font-size: 30px; }
.auth-note { margin: -12px 0 20px; color: var(--muted); line-height: 1.55; }
.auth-register-action { width: fit-content; margin-top: 16px; }
.auth-alt-actions .auth-register-action { margin-top: 0; }
.auth-switch { margin: 22px 0 0; color: var(--muted); font-size: 13px; }
.auth-switch a { color: var(--accent); font-weight: 700; }

.detail-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-anchor-link {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.detail-anchor-link:hover {
  color: var(--accent);
  border-color: rgba(22, 117, 74, 0.35);
  background: rgba(22, 117, 74, 0.06);
}

.route-quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(22, 117, 74, 0.22);
  border-radius: 12px;
  background: rgba(22, 117, 74, 0.05);
}
.route-quick-facts div { min-width: 0; }
.route-quick-facts dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.route-quick-facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.trip-dates-table-wrap { overflow-x: auto; }
.trip-dates-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
}
.trip-dates-col-date { width: 205px; }
.trip-dates-col-places { width: 66px; }
.trip-dates-col-price { width: 200px; }
.trip-dates-table th,
.trip-dates-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.trip-dates-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.trip-dates-table th:first-child,
.trip-dates-table td:first-child {
  min-width: 0;
}
.trip-dates-table .trip-date {
  display: inline;
  white-space: nowrap;
}
.trip-table-title {
  display: block;
  max-width: 100%;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.trip-dates-table tbody tr:hover { background: rgba(22, 117, 74, 0.04); }
.trip-dates-table tbody tr[data-detail-nav] { cursor: pointer; }
.trip-dates-table tbody tr[data-detail-nav]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.activity-day-group + .activity-day-group { margin-top: 0; }
.activity-day-title {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0;
}

.commercial-disclaimer {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--signal);
  background: rgba(212, 85, 61, 0.06);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}
#route-summary .trip-summary-rules-card .readonly-tags,
#trip-summary .trip-summary-rules-card .readonly-tags {
  margin: 0;
}
.trip-summary-rules-card {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-left-color: #b7791f;
  background: #fff3c4;
  cursor: default;
}
.trip-summary-rules-card .readonly-tags {
  width: 100%;
  align-items: center;
}
.trip-join-modal .trip-join-warning {
  margin: 0 0 12px;
}
.trip-join-modal .trip-join-rules-box {
  margin: 0 0 20px;
}
.trip-summary-rules-tooltip {
  position: fixed;
  z-index: 3000;
  max-width: min(320px, calc(100vw - 24px));
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(37, 43, 51, 0.16);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  pointer-events: none;
}
.trip-summary-rules-tooltip[hidden] {
  display: none;
}
.commercial-terms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}
.commercial-terms-block {
  min-width: 0;
  padding: 14px;
}
.commercial-terms-block + .commercial-terms-block {
  border-left: 1px solid var(--line);
}
.commercial-terms-difference-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.commercial-terms-title {
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: 0;
}
.commercial-terms-copy {
  margin: 0;
  line-height: 1.6;
}
.commercial-trip-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.commercial-trip-fields > * { min-width: 0; }
.route-parameters-commercial-terms { margin: 14px 0; }
.route-original-difference-note { margin-top: 8px; font-weight: 750; }
.trip-plan-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.trip-plan-heading .route-original-difference-note {
  margin: 0;
  font-weight: 500;
}

#route-reviews {
  gap: 8px;
  padding: 12px 14px;
}
.trip-route-review-content {
  display: grid;
  gap: 10px;
}
.route-review-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.route-review-summary-title {
  margin: 0;
}
.route-review-aggregate-stars,
.route-review-rating {
  display: inline-flex;
  gap: 0;
  margin: 0;
}
.route-review-star {
  color: #d5ddd8;
  font-size: 14px;
  line-height: 1;
}
.route-review-star.is-filled { color: #d4a017; }
.route-review-aggregate-hint {
  font-size: 12px;
  white-space: nowrap;
}
.route-review-list {
  display: grid;
  gap: 0;
}
.route-review-list-empty {
  margin: 0;
  font-size: 13px;
}
.route-review-item {
  display: grid;
  gap: 4px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.35;
}
.route-review-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.route-review-item.is-page-hidden {
  display: none;
}
.route-review-item--page-last {
  border-bottom: 0;
  padding-bottom: 0;
}
.route-review-pager {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.route-review-pager-counter {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.route-review-pager-nav {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.route-review-pager-nav:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.route-review-pager-nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.route-review-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 10px;
}
.route-review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  min-width: 0;
}
.route-review-avatar {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
}
.route-review-avatar svg { width: 12px; height: 12px; }
.route-review-author {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.route-review-sep {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  user-select: none;
}
.route-review-meta {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.route-review-text {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding-left: 28px;
  color: var(--ink);
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.route-review-photo-gallery {
  flex: 0 0 auto;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  justify-self: end;
}
.route-review-side-actions,
.route-review-track-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.route-review-side-actions {
  justify-self: end;
}
.route-review-helpful {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--paper);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.route-review-helpful:hover,
.route-review-helpful.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: #e8f3ed;
}
.route-review-helpful.is-active svg {
  fill: currentColor;
}
.route-review-helpful:disabled {
  cursor: wait;
  opacity: 0.65;
}
.route-review-helpful.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.route-review-helpful svg {
  width: 16px;
  height: 16px;
}
.route-review-track-toggle,
.route-review-track-signal-toggle,
.route-review-track-download {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
}
.route-review-track-color-control {
  display: contents;
}
.route-review-track-signal-control {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
}
.route-review-track-signal-legend[hidden] {
  display: none;
}
.route-review-track-signal-legend {
  position: fixed;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 5px 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(18, 35, 27, 0.16);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}
.route-review-track-signal-legend-title {
  grid-column: 1 / -1;
}
.route-review-track-signal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.route-review-track-signal-legend-item i {
  flex: 0 0 18px;
  width: 18px;
  height: 5px;
  border-radius: 2px;
  background: var(--signal-color);
}
.route-review-track-signal-legend-item .is-no-data { --signal-color: #858b88; }
.route-review-track-signal-legend-item .is-offline { --signal-color: #111111; }
.route-review-track-signal-legend-item .is-level-0 { --signal-color: #d6453d; }
.route-review-track-signal-legend-item .is-level-1 { --signal-color: #f08a24; }
.route-review-track-signal-legend-item .is-level-2 { --signal-color: #e1c62f; }
.route-review-track-signal-legend-item .is-level-3 { --signal-color: #9acd32; }
.route-review-track-signal-legend-item .is-level-4 { --signal-color: #16834f; }
.route-review-track-color-palette[hidden] {
  display: none;
}
.route-review-track-color-palette {
  position: fixed;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 24px);
  gap: 5px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(18, 35, 27, 0.16);
}
.route-review-track-color-swatch {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(18, 35, 27, 0.24);
  border-radius: 3px;
  background: var(--track-color);
  cursor: pointer;
}
.route-review-track-color-swatch[data-route-review-track-color-value="#16754a"] { --track-color: #16754a; }
.route-review-track-color-swatch[data-route-review-track-color-value="#d04a3a"] { --track-color: #d04a3a; }
.route-review-track-color-swatch[data-route-review-track-color-value="#2867b2"] { --track-color: #2867b2; }
.route-review-track-color-swatch[data-route-review-track-color-value="#b57b00"] { --track-color: #b57b00; }
.route-review-track-color-swatch[data-route-review-track-color-value="#7a4fb3"] { --track-color: #7a4fb3; }
.route-review-track-color-swatch[data-route-review-track-color-value="#008b8b"] { --track-color: #008b8b; }
.route-review-track-color-swatch[data-route-review-track-color-value="#f97316"] { --track-color: #f97316; }
.route-review-track-color-swatch[data-route-review-track-color-value="#db2777"] { --track-color: #db2777; }
.route-review-track-color-swatch[aria-pressed="true"] {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink);
}
.route-review-track-toggle[aria-pressed="true"] {
  border-color: var(--route-review-track-color, var(--accent));
  background: var(--route-review-track-color, var(--accent));
  color: white;
}
.route-review-track-signal-toggle[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}
.route-review-track-toggle svg,
.route-review-track-signal-toggle svg,
.route-review-track-download svg {
  width: 16px;
  height: 16px;
}
.route-review-track-editor {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.route-review-track-edit-list {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: 190px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  scrollbar-width: thin;
}
.route-review-track-edit-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 3px 6px 3px 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.route-review-track-edit-item:first-child {
  border-top: 0;
}
.route-review-track-edit-item[hidden] {
  display: none;
}
.route-review-track-edit-item > svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.route-review-track-edit-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.route-review-track-remove {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(141, 38, 31, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--signal);
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 140ms ease, transform 140ms ease, background 140ms ease;
  cursor: pointer;
}
.route-review-track-remove svg {
  width: 19px;
  height: 19px;
}
.route-review-track-edit-item:hover .route-review-track-remove,
.route-review-track-remove:focus-visible {
  opacity: 1;
  transform: scale(1);
}
.route-review-track-remove:hover {
  background: rgba(212, 85, 61, 0.12);
}
.route-review-track-remove:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 1px;
}
.route-review-track-add {
  justify-self: start;
}
@media (hover: none) {
  .route-review-track-remove {
    opacity: 1;
    transform: scale(1);
  }
}
.route-review-stars-input {
  display: inline-flex;
  gap: 4px;
}
.route-review-star-input {
  border: 0;
  background: transparent;
  color: #d5ddd8;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.route-review-star-input.is-selected { color: #d4a017; }
.route-review-photo-link {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
}
.route-review-photo-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.route-review-photo-thumb {
  display: block;
  width: 40px;
  height: 30px;
  object-fit: cover;
  border: 1px solid rgba(22, 117, 74, 0.2);
  border-radius: 4px;
}
.review-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.review-gallery-modal[hidden] { display: none; }
body.review-gallery-open { overflow: hidden; }
.review-gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 20, 0.82);
  backdrop-filter: blur(3px);
}
.review-gallery-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 16px;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 24px 64px rgba(16, 24, 20, 0.35);
}
.review-gallery-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}
.review-gallery-title {
  margin: 0;
  padding-right: 40px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.review-gallery-stage {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 0;
}
.review-gallery-nav.is-prev { grid-column: 1; grid-row: 1; }
.review-gallery-image { grid-column: 2; grid-row: 1; }
.review-gallery-nav.is-next { grid-column: 3; grid-row: 1; }
.review-gallery-image {
  display: block;
  width: 100%;
  max-height: min(70vh, 640px);
  object-fit: contain;
  border-radius: 8px;
  background: #eef3ef;
  justify-self: center;
}
.review-gallery-nav {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.review-gallery-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.review-gallery-nav[hidden] {
  visibility: hidden;
  pointer-events: none;
}
.review-gallery-counter {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.review-gallery-text {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.route-photo-gallery-empty { margin: 0; }
.route-video-embed { margin-top: 10px; }
.activity-day-field { min-width: 0; }
.activity-day-field input { width: 100%; }

.route-parameters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.route-parameters-grid--editor {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.route-parameters-span-all {
  grid-column: 1 / -1;
}
.route-activities-block {
  display: grid;
  gap: 14px;
}
.route-activities-primary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.other-activities-editor {
  position: relative;
}
.other-activities-editor.is-suggest-open {
  z-index: 20;
}
.tag-entry--input-only {
  grid-template-columns: minmax(0, 1fr);
}
.other-activities-editor .tag-entry input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  outline: none;
  padding: 11px 12px;
  font-weight: 400;
}
.other-activities-editor .tag-entry input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(22,117,74,.1);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.icon-picker-field {
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 2600;
}

.route-create-wizard-shell {
  min-height: calc(100vh - 72px);
  background: var(--surface);
}

.route-create-wizard,
.route-create-wizard-step {
  min-height: calc(100vh - 72px);
}

.route-create-wizard-step:target {
  display: grid !important;
}

.route-create-wizard:has(.route-create-wizard-step:target) .route-create-wizard-step:not(:target) {
  display: none !important;
}

.route-create-wizard-step:not(.route-create-wizard-step--map) {
  display: grid;
  place-items: center;
  padding: 32px;
}

.route-create-wizard-card {
  width: min(520px, 100%);
  border: 2px solid var(--accent);
  background: var(--paper);
  padding: 24px;
}

.route-create-wizard-card h1 {
  margin: 8px 0 20px;
  font-size: 30px;
  line-height: 1.15;
}

.route-create-wizard-back {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.route-create-wizard-step--map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
}

.route-create-wizard-map-panel {
  position: relative;
  min-height: calc(100vh - 72px);
}

.route-create-wizard-map-panel #detail-map {
  width: 100%;
  height: calc(100vh - 72px);
}

.route-start-center-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 850;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--paper);
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  transform: translate(-50%, -100%);
  pointer-events: none;
}

.route-start-center-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 14px;
  height: 14px;
  background: var(--paper);
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.route-start-center-pin svg,
.route-start-center-pin .map-custom-icon {
  position: relative;
  z-index: 1;
}

.route-create-wizard-card--floating {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 900;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.route-create-wizard-hint {
  margin: 0 0 16px;
  color: var(--muted);
}

.route-create-wizard-coordinates {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.route-create-wizard .has-error {
  border-color: #d94332;
}

.route-create-modal[hidden] {
  display: none !important;
}

.route-create-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
}

.route-create-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(24, 35, 30, 0.48);
  cursor: default;
  pointer-events: auto;
}

.route-create-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(24, 35, 30, 0.24);
  pointer-events: auto;
}

.route-create-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.route-create-modal .route-create-wizard,
.route-create-modal .route-create-wizard-step {
  min-height: 0;
}

.route-create-modal .route-create-wizard-step {
  display: block;
  padding: 0;
}

.route-create-modal .route-create-wizard-step[hidden] {
  display: none;
}

.route-create-modal .route-create-wizard-card {
  width: 100%;
  border: 0;
  padding: 26px 56px 26px 26px;
}

.route-create-modal .route-create-wizard-card h1 {
  font-size: 26px;
}

.route-create-modal.is-map-step {
  place-items: start;
  padding: calc(var(--topbar-height) + 16px) 16px 16px 376px;
}

.route-create-modal.is-map-step .route-create-modal-backdrop {
  display: none;
}

.route-create-modal.is-map-step .route-create-modal-dialog {
  width: min(360px, calc(100vw - 392px));
  max-height: calc(100vh - var(--topbar-height) - 32px);
}

.route-create-modal.is-map-step .route-create-wizard-card h1 {
  font-size: 24px;
}

body.route-create-modal-open {
  overflow: hidden;
}
.icon-picker-trigger {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--accent);
  cursor: pointer;
}
.icon-picker-trigger:hover,
.icon-picker-trigger:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(22,117,74,.1);
}
.icon-picker-current {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}
.icon-picker-current svg,
.icon-picker-option svg,
.icon-picker-option .map-custom-icon {
  display: block;
  width: 22px;
  height: 22px;
}
.icon-picker-option .map-num-icon {
  width: 22px;
  height: 22px;
}
.map-custom-icon {
  display: block;
  width: 22px;
  height: 22px;
}
.icon-picker-popover {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3200;
  width: min(720px, calc(100vw - 32px));
  max-height: min(520px, 70vh);
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(31,41,37,.16);
}
.icon-picker-popover[hidden] {
  display: none !important;
}
.icon-picker-group + .icon-picker-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.icon-picker-group-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 6px;
}
.icon-picker-option {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--accent);
  cursor: pointer;
}
.icon-picker-option:hover,
.icon-picker-option:focus-visible {
  border-color: var(--accent);
  background: rgba(22,117,74,.06);
}
.icon-picker-option.is-selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: rgba(22,117,74,.1);
}
.icon-picker-favorites-grid {
  grid-template-columns: repeat(auto-fill, minmax(42px, 42px));
  justify-content: start;
  overflow: visible;
}
.icon-picker-favorite-item {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
}
.icon-picker-favorite-item:hover,
.icon-picker-favorite-item:focus-within {
  z-index: 2;
}
.icon-picker-favorite-option {
  width: 42px;
  height: 42px;
}
.icon-picker-favorite-remove {
  position: absolute;
  top: 50%;
  left: calc(100% - 1px);
  display: none;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(239,68,68,.55);
  background: var(--paper);
  color: #ef4444;
  cursor: pointer;
  transform: translateY(-50%);
}
.icon-picker-favorite-remove:hover,
.icon-picker-favorite-remove:focus-visible {
  border-color: #ef4444;
  background: rgba(239,68,68,.08);
}
.icon-picker-favorite-item:hover .icon-picker-favorite-remove,
.icon-picker-favorite-item:focus-within .icon-picker-favorite-remove {
  display: grid;
}
.icon-picker-favorite-remove svg {
  display: block;
  width: 14px;
  height: 14px;
}
.map-num-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.activity-icon-options-field .icon-picker-field {
  gap: 6px;
}
.route-parameters-grid-detail {
  margin: 0;
  border-top: 1px solid rgba(22, 117, 74, 0.2);
}
.route-parameters-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 16px;
  border-bottom: 1px solid rgba(22, 117, 74, 0.15);
}
.route-parameters-cell {
  min-width: 0;
  padding: 14px 0;
}
.route-parameters-cell--empty {
  padding: 14px 0;
}
.route-parameters-row--full {
  grid-template-columns: minmax(0, 1fr);
}
.route-parameters-row--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.route-parameters-cell dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.route-parameters-cell dd {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}
.route-parameters-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid rgba(22, 117, 74, 0.2);
}
.route-parameters-facts div {
  padding: 14px 0;
  border-bottom: 1px solid rgba(22, 117, 74, 0.15);
}
.route-parameters-facts dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.route-parameters-facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}

.primary-action,
.secondary-action,
.ghost-action,
.stub-action,
.icon-button,
.filter-button,
.text-action,
.richtext-btn,
.route-gallery-slot-button,
.route-gallery-thumb-button,
.club-instructor-list-button,
.mobile-map-toggle button {
  border: 1px solid rgba(22, 117, 74, 0.16);
  border-radius: 12px;
  background: rgba(22, 117, 74, 0.11);
  color: var(--accent);
  text-decoration: none;
}
.primary-action:hover:not(:disabled),
.secondary-action:hover:not(:disabled),
.ghost-action:hover:not(:disabled),
.stub-action:hover:not(:disabled),
.icon-button:hover:not(:disabled),
.filter-button:hover:not(:disabled),
.text-action:hover,
.richtext-btn:hover:not(:disabled),
.route-gallery-slot-button:hover:not(:disabled),
.route-gallery-thumb-button:hover:not(:disabled),
.club-instructor-list-button:hover:not(:disabled),
.mobile-map-toggle button:hover:not(:disabled) {
  border-color: rgba(22, 117, 74, 0.34);
  background: rgba(22, 117, 74, 0.18);
  color: var(--accent-dark);
  text-decoration: none;
}
.primary-action:focus-visible,
.secondary-action:focus-visible,
.ghost-action:focus-visible,
.stub-action:focus-visible,
.icon-button:focus-visible,
.filter-button:focus-visible,
.text-action:focus-visible,
.richtext-btn:focus-visible,
.route-gallery-slot-button:focus-visible,
.route-gallery-thumb-button:focus-visible,
.club-instructor-list-button:focus-visible,
.mobile-map-toggle button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(22, 117, 74, 0.25);
}
.secondary-action.is-active,
.filter-button.is-active,
.route-gallery-slot-button.is-assigned,
.club-instructor-list-button.is-active,
.mobile-map-toggle button.is-active {
  border-color: rgba(22, 117, 74, 0.34);
  background: rgba(22, 117, 74, 0.18);
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px rgba(22, 117, 74, 0.12);
}
.danger-action,
.ghost-action.danger-action {
  border-color: rgba(22, 117, 74, 0.16);
  background: rgba(22, 117, 74, 0.11);
  color: var(--accent);
}
.danger-action:hover:not(:disabled),
.ghost-action.danger-action:hover:not(:disabled) {
  border-color: rgba(22, 117, 74, 0.34);
  background: rgba(22, 117, 74, 0.18);
  color: var(--accent-dark);
}
.block-help-button {
  border-radius: 999px;
}
.mobile-directory-link {
  display: none;
}

@media (max-width: 800px) {
  body {
    display: flex;
    flex-direction: column;
  }

  :root { --topbar-height: 64px; }
  .topbar {
    flex: 0 0 auto;
    height: auto;
    min-height: var(--topbar-height);
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: auto;
    gap: 6px 10px;
    padding: 8px 12px;
  }
  .topbar.topbar--ownership-transfer {
    grid-template-rows: auto auto;
    padding: 8px 12px;
  }
  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    font-size: 15px;
  }
  .brand-tagline { font-size: 13px; white-space: normal; }
  .topbar-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  .topbar-center { display: none; }
  .topbar-meta {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    justify-content: flex-end;
    min-width: 0;
    flex-wrap: wrap;
    gap: 4px 8px;
  }
  .topbar-ownership-alert {
    justify-content: flex-start;
    font-size: 12px;
  }
  .site-testing-notice {
    white-space: normal;
    line-height: 1.25;
    font-size: 10px;
  }
  .site-version {
    display: none;
  }
  .workspace,
  .detail-layout,
  .editor-layout,
  .account-page .trip-detail-layout {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }

  .desktop-only {
    display: none !important;
  }

  .route-create-modal,
  .route-create-modal.is-map-step {
    place-items: center;
    padding: 12px;
  }

  .route-create-modal-dialog,
  .route-create-modal.is-map-step .route-create-modal-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }

  .route-create-modal.is-map-step {
    align-items: start;
    padding-top: calc(var(--topbar-height) + 10px);
  }

  .route-create-modal.is-map-step .route-create-modal-dialog {
    max-height: calc(100dvh - var(--topbar-height) - var(--mobile-tabbar-height, 56px) - 20px);
  }

  .route-create-modal .primary-action {
    width: auto;
    padding: 0 15px;
  }

  .route-create-modal .primary-action span {
    display: inline;
  }

  .android-app-modal {
    padding: 12px;
  }
  .android-app-modal-panel {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    padding: 20px 16px 18px;
  }
  .android-app-modal-body .android-app-download-action {
    margin-top: 12px;
  }
  .android-app-showcase {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .android-app-showcase::-webkit-scrollbar {
    display: none;
  }
  .android-app-feature {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .android-app-feature figcaption {
    min-height: 2.9em;
    padding: 0 12px;
    font-size: 14px;
  }
  .android-app-feature img {
    height: min(46dvh, 360px);
  }
  .android-app-showcase-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 40px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }
  .android-app-showcase-controls .icon-button {
    width: 36px;
    min-height: 36px;
  }

  :root {
    --mobile-tabbar-height: 56px;
  }

  .mobile-map-toggle {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(31, 41, 37, 0.08);
  }

  .mobile-map-toggle[hidden] {
    display: none;
  }

  .mobile-map-toggle button {
    min-height: 44px;
    border: 1px solid rgba(22, 117, 74, 0.16);
    border-radius: 12px;
    background: rgba(22, 117, 74, 0.11);
    color: var(--accent);
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
  }

  .mobile-map-toggle button.is-active {
    background: rgba(22, 117, 74, 0.18);
    color: var(--accent-dark);
    border-color: rgba(22, 117, 74, 0.34);
  }

  body.has-mobile-map .workspace,
  body.has-mobile-map .detail-layout,
  body.has-mobile-map .editor-layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    min-height: 0;
  }

  body.has-mobile-map .sidebar,
  body.has-mobile-map .map-panel,
  body.has-mobile-map .detail-content,
  body.has-mobile-map .detail-map-panel,
  body.has-mobile-map .form-panel,
  body.has-mobile-map .editor-map-panel {
    grid-row: 1;
    grid-column: 1;
    min-height: 0;
  }

  body.has-mobile-map.mobile-view-site .map-panel,
  body.has-mobile-map.mobile-view-site .detail-map-panel,
  body.has-mobile-map.mobile-view-site .editor-map-panel {
    display: none;
  }

  body.has-mobile-map.mobile-view-map .sidebar,
  body.has-mobile-map.mobile-view-map .detail-content,
  body.has-mobile-map.mobile-view-map .form-panel {
    display: none;
  }

  body.has-mobile-map.mobile-view-site .sidebar,
  body.has-mobile-map.mobile-view-site .detail-content,
  body.has-mobile-map.mobile-view-site .form-panel {
    overflow: auto;
    padding-bottom: calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom, 0px));
  }

  body.has-mobile-map.mobile-view-site .form-panel.form-panel--sectioned {
    padding-bottom: 0;
  }

  body.has-mobile-map.mobile-view-site .detail-content-scroll {
    padding-bottom: calc(38px + var(--mobile-tabbar-height));
  }

  body.has-mobile-map.mobile-view-map .map-panel,
  body.has-mobile-map.mobile-view-map .detail-map-panel,
  body.has-mobile-map.mobile-view-map .editor-map-panel {
    display: block;
    height: 100%;
    padding-bottom: calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom, 0px));
  }

  body.has-mobile-map.mobile-view-map #map,
  body.has-mobile-map.mobile-view-map #detail-map {
    height: 100%;
    min-height: 0;
  }
  body.has-mobile-map .leaflet-control-zoom {
    display: none;
  }
  body.has-mobile-map.mobile-view-map .leaflet-bottom.leaflet-right {
    bottom: calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom, 0px) + 10px);
  }
  body.has-mobile-map.mobile-view-map:not(.detail-page):not(.form-page) .leaflet-bottom.leaflet-right {
    bottom: 10px;
  }

  .sidebar { border-right: 0; }
  .primary-action span { display: none; }
  .primary-action { width: 40px; padding: 0; }
  .auth-panel .primary-action, .form-panel .primary-action, .detail-content .primary-action { width: auto; padding: 0 15px; }
  .auth-panel .primary-action span, .form-panel .primary-action span, .detail-content .primary-action span { display: inline; }
  .topbar-site-access-action {
    width: 40px;
    padding: 0;
  }
  .topbar-site-access-action span {
    display: none;
  }
  .route-summary-toolbar-actions,
  .trip-summary-actions,
  .detail-actions {
    flex-wrap: wrap;
  }
  .user-label { display: none; }
  .mobile-account-link,
  .mobile-directory-link { display: inline-flex; }
  .route-facts { grid-template-columns: 1fr; }
  .detail-page,
  .form-page { overflow: hidden; }
  .detail-layout,
  .editor-layout {
    min-height: 0;
    overflow: hidden;
  }
  .detail-content, .form-panel {
    --detail-inline-pad: 20px;
    min-height: 0;
  }
  .detail-content:not(.detail-content--sectioned) {
    overflow: auto;
    padding: 30px var(--detail-inline-pad) 38px;
  }
  .detail-content--sectioned {
    overflow: hidden;
  }
  .form-panel--sectioned {
    overflow: hidden;
  }
  .form-panel-intro {
    padding: 30px var(--detail-inline-pad) 12px;
  }
  .form-panel-head {
    padding: 12px var(--detail-inline-pad) 12px;
  }
  .detail-content--sectioned .detail-content-head,
  .form-panel--sectioned .detail-content-head:not(.form-panel-head) {
    padding: 12px var(--detail-inline-pad) 12px;
  }
  .detail-content--sectioned .detail-content-scroll,
  .form-panel--sectioned .detail-content-scroll {
    padding: 16px var(--detail-inline-pad) 38px;
    overflow: auto;
  }
  body.has-mobile-map.mobile-view-site .form-panel--sectioned .detail-content-scroll:has(.route-form--with-sticky-actions),
  body.has-mobile-map.mobile-view-site .form-panel--sectioned .detail-content-scroll--sticky-form {
    padding: 0;
  }
  .route-form--with-sticky-actions .route-form-scroll {
    padding: 16px var(--detail-inline-pad) 0;
  }
  .form-submit-row--sticky {
    position: sticky;
    bottom: var(--mobile-tabbar-height);
    padding: 0 var(--detail-inline-pad) 6px;
  }
  .detail-content h1 { font-size: 34px; }
  #route-summary h1.entity-title,
  #trip-summary h1.entity-title { font-size: 32px; }
  .detail-map-panel, #detail-map { min-height: 0; }
  .commercial-terms-grid { grid-template-columns: 1fr; }
  .commercial-trip-fields { grid-template-columns: 1fr; }
  .commercial-terms-block + .commercial-terms-block {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .route-quick-facts { grid-template-columns: 1fr 1fr; }
  .route-parameters-row { grid-template-columns: 1fr; }
  .route-parameters-grid,
  .route-parameters-grid--editor,
  .route-parameters-facts { grid-template-columns: 1fr; }
  .trip-dates-table-wrap {
    overflow-x: auto;
  }
  .trip-dates-table {
    min-width: 560px;
  }
  .trip-dates-table th {
    white-space: nowrap;
  }
  .directory-columns { grid-template-columns: 1fr; }
  .map-compare-page {
    overflow: auto;
  }
  .map-compare-shell {
    height: auto;
    min-height: calc(100vh - var(--topbar-height));
  }
  .map-compare-toolbar {
    flex-wrap: wrap;
  }
  .map-compare-style-picker {
    width: 100%;
  }
  .map-compare-style-picker select {
    min-width: 0;
    flex: 1;
  }
  .map-compare-readout {
    width: 100%;
    margin-left: 0;
  }
  .map-compare-grid {
    grid-template-columns: 1fr;
  }
  .map-compare-map {
    height: 58vh;
  }
}

@media (max-width: 480px) {
  :root { --topbar-height: 72px; }
  .site-testing-notice { display: none; }
  .brand { font-size: 14px; gap: 8px; }
  .brand-tagline { display: none; }
  .brand-mark { width: 24px; height: 24px; }
  .topbar-actions { gap: 4px; }
  .topbar-ownership-alert {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    padding: 7px;
    font-size: 11px;
  }
  .topbar-ownership-alert strong {
    flex: 1 1 calc(100% - 28px);
  }
  .topbar-ownership-alert a {
    margin-left: 24px;
  }
  .ownership-transfer-layout {
    place-items: start center;
    padding: 20px 10px;
  }
  .ownership-transfer-panel {
    padding: 20px 16px;
  }
  .ownership-transfer-panel h1 {
    font-size: 23px;
  }
  .ownership-transfer-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .ownership-transfer-actions > * {
    width: 100%;
  }
  .text-action { padding: 9px 4px; font-size: 13px; }
  .route-summary-meta-line { grid-template-columns: 1fr; }
  #route-reviews,
  .route-review-list,
  .route-review-item,
  .route-review-top,
  .route-review-side-actions {
    min-width: 0;
    max-width: 100%;
  }
  .route-review-top {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .route-review-side-actions {
    width: 100%;
    justify-self: stretch;
    justify-content: flex-start;
  }
  .route-review-photo-gallery {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-self: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
  .route-review-text {
    padding-left: 0;
  }
  #trip-summary .trip-summary-price-line {
    grid-template-columns: 1fr;
  }
  .trip-start-countdown {
    justify-self: start;
  }
  #route-summary h1.entity-title,
  #trip-summary h1.entity-title {
    padding-right: 0;
  }
  #trip-summary .trip-summary-meta-row {
    padding-right: 0;
  }
  #route-summary .route-summary-meta-line .route-summary-owner,
  #trip-summary .trip-summary-price-line .route-summary-owner {
    position: static;
    width: 100%;
    max-width: none;
    justify-items: start;
    text-align: center;
  }
  .route-summary-owner-link {
    grid-template-rows: auto auto;
    width: auto;
    max-width: 180px;
    gap: 7px;
  }
  .route-summary-owner-avatar {
    width: 64px;
    height: 64px;
  }
  .route-summary-owner-name {
    min-height: 0;
  }
  .coordinate-row { flex-direction: column; align-items: stretch; }
  .coordinate-field { flex-wrap: wrap; }
  .coordinate-field input { width: 100%; flex: 1 1 8rem; }
  .activity-add-row { grid-template-columns: minmax(52px, 56px) minmax(0, 1fr) minmax(124px, 128px); gap: 6px; }
  .activity-add-row > .form-field > span { font-size: 12px; }
  .activity-add-row > .form-field input,
  .activity-add-row > .form-field select { padding-inline: 6px; font-size: 12px; }
  .date-fields, .application-row, .club-delegation-layout, .club-delegation-role, .club-instructor-grid { grid-template-columns: 1fr; }
  .application-actions { flex-wrap: wrap; }
  .corporate-request-contacts { grid-template-columns: 1fr; }
  .corporate-request-contacts-view { justify-items: start; text-align: left; }
  .mvp-stub-grid,
  .mvp-stub-facts { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
}
