:root {
  --ui-ink: #213e31;
  --ui-green: #285b43;
  --ui-line: #dce5da;
  --ui-focus: #7fa969;
  --ui-control-radius: 10px;
  font-family: var(--ui-font);
  font-synthesis: none;
}

.page-landing,
.page-planner,
.page-community,
.page-admin {
  color: var(--ui-ink);
}

.page-landing :is(button, input),
.page-planner :is(button, input, select, textarea),
.page-community :is(button, input, select, textarea),
.page-admin :is(button, input, select, textarea) {
  font-family: inherit;
}

.page-landing :is(button, a, input):focus-visible,
.page-planner :is(button, a, input, select, textarea):focus-visible,
.page-community :is(button, a, input, select, textarea):focus-visible,
.page-admin :is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #7fa9692b;
}

.page-planner :is(.field-grid input, select, textarea),
.page-community :is(input:not([type="radio"]):not([type="checkbox"]), select, textarea),
.page-admin :is(input:not([type="radio"]):not([type="checkbox"]), select) {
  min-height: 42px;
  border: 1px solid #cddacd;
  border-radius: 10px;
  background-color: #fff;
  color: var(--ui-ink);
  font-size: 13px;
  line-height: 1.4;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.page-planner :is(.field-grid input, select, textarea):hover,
.page-community :is(input:not([type="radio"]):not([type="checkbox"]), select, textarea):hover,
.page-admin :is(input:not([type="radio"]):not([type="checkbox"]), select):hover {
  border-color: #9fbaa4;
}

.page-community textarea,
.page-planner textarea {
  min-height: 88px;
}

.page-community :is(select, input[type="number"]),
.page-planner select {
  font-variant-numeric: tabular-nums;
}

.page-landing .button,
.page-community :is(button, .button),
.page-admin button,
.page-planner :is(.primary, .ghost, .location-button) {
  min-height: 42px;
  border-radius: var(--ui-control-radius);
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  transition: background-color .18s ease, border-color .18s ease,
    transform .18s ease, box-shadow .18s ease;
}

.page-landing .button:not(:disabled):hover,
.page-community :is(button, .button):not(:disabled):hover,
.page-admin button:not(:disabled):hover,
.page-planner :is(.primary, .ghost, .location-button):not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px #25473518;
}

.page-landing .button:active,
.page-community :is(button, .button):active,
.page-admin button:active,
.page-planner button:active {
  transform: translateY(0);
}

.page-landing .button {
  padding: 10px 16px;
}

.page-community .comment-header button {
  min-height: 34px;
  font-size: 11px;
}

.page-landing :is(.serif, .title-spark, .step-number) {
  font-family: inherit;
}

.page-landing .step-number {
  font-style: normal;
}

.page-planner .build {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.page-landing dialog,
.page-planner dialog,
.page-community dialog,
.page-admin dialog {
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  color: var(--ui-ink);
  font-family: var(--ui-font);
  box-shadow: 0 24px 72px #16221938;
}

.page-landing dialog::backdrop,
.page-planner dialog::backdrop,
.page-community dialog::backdrop,
.page-admin dialog::backdrop {
  background: #132b228c;
  backdrop-filter: blur(4px);
}

.page-landing .hero-art::before {
  content: "";
  position: absolute;
  inset: 12% 4% 10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, #dbe9cd 0, #e8f0de7d 48%, transparent 72%);
  filter: blur(25px);
  animation: ui-breathe 8s ease-in-out infinite;
}

.page-landing .feature-card {
  border-color: var(--ui-line);
}

.page-landing #authForm input {
  min-height: 45px;
  border-radius: 10px;
  font-size: 13px;
}

.page-landing #authForm label {
  font-size: 12px;
}

.page-planner .sidebar {
  width: 100%;
}

.page-planner .brand {
  padding-bottom: 12px;
}

.page-planner .account-bar {
  flex-wrap: wrap;
  gap: 8px 12px;
  line-height: 1.3;
}

.page-planner .account-bar a {
  color: var(--ui-green);
  font-weight: 650;
}

.page-planner .account-bar a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-planner .section-title h2 {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.quota-widget {
  --quota-accent: #347557;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 10px 12px;
  margin: 10px 0 12px;
  border: 1px solid #e1e9de;
  border-radius: 13px;
  background: linear-gradient(110deg, #f0f6ed, #fbfcf9 75%);
  color: var(--ui-ink);
  animation: ui-rise .32s both;
}

.quota-symbol {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: #e2efdf;
  color: var(--quota-accent);
}

.quota-symbol svg { width: 17px; height: 17px; fill: currentColor; }
.quota-copy { display: grid; flex: 1; min-width: 0; gap: 3px; }
.quota-count { display: flex; align-items: baseline; gap: 5px; }
.quota-count strong { font-size: 16px; line-height: 1; font-variant-numeric: tabular-nums; }
.quota-count > span { font-size: 11px; font-weight: 650; }
.quota-detail { color: #6d7b70; font-size: 10px; line-height: 1.35; }
.quota-detail > span { font-variant-numeric: tabular-nums; }
.quota-detail i { padding: 0 2px; color: #a5b2a4; font-style: normal; }
.quota-track { display: block; height: 3px; margin-top: 3px; overflow: hidden; border-radius: 99px; background: #e1e9de; }
.quota-track > span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--quota-accent); transform: scaleX(1); transform-origin: left; transition: transform .45s cubic-bezier(.2,.7,.2,1), background .2s ease; }
.quota-widget.is-empty { --quota-accent: #a66b44; background: #fcf6ef; }
.quota-widget.is-empty .quota-symbol { background: #f5e9dc; }
.quota-widget.is-empty .quota-track > span { background: #d69a56; }
.quota-widget.is-unavailable .quota-copy { color: #6d7b70; font-size: 11px; }

.page-planner .quota-widget { margin-top: 10px; }
.page-planner .map-hint {
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: min(390px, calc(100% - 110px));
  padding: 9px 10px 9px 11px;
  border: 1px solid #ffffffb8;
  border-radius: 12px;
  background: rgba(250, 252, 248, .96);
  color: #314238;
  font-size: 11px;
  line-height: 1.4;
  box-shadow: 0 7px 24px #1b302322;
  backdrop-filter: blur(10px);
  pointer-events: auto;
}
.page-planner .map-hint-step {
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: 6px;
  background: #e8f1e7;
  color: #356849;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
}
.page-planner #mapHintText { min-width: 0; }
.page-planner #dismissMapHint {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #718076;
  font: inherit;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.page-planner #dismissMapHint:hover { background: #eaf0e9; }
.page-planner .summary-next,
.page-planner .journey-note {
  display: block;
  color: #52705b;
  font-size: 10px;
  line-height: 1.45;
}
.page-planner .summary-next { margin-top: 7px; }
.page-planner .journey-note {
  margin: 12px 0 10px;
  padding: 8px 9px;
  border-radius: 8px;
  background: #f0f6ef;
}
.page-community #profile-identity { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-community .profile-account { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 24px; }
.page-community .profile-account h2 { margin-top: 0; }
.page-community .profile-quota { flex: 0 1 290px; margin: 0; }

@media (max-width: 620px) {
  .page-planner .map-hint { top: 52px; max-width: calc(100% - 28px); gap: 6px; padding: 7px 8px; font-size: 10px; }
  .page-planner .map-hint-step { padding: 3px 5px; font-size: 7px; }
  .page-planner #dismissMapHint { flex-basis: 20px; width: 20px; height: 20px; }
  .page-community .profile-account { align-items: stretch; flex-direction: column; gap: 12px; }
  .page-community .profile-quota { flex: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .page-planner .map-hint { transition: none; }
}

.page-planner .chips span,
.page-planner .interest-presets button,
.page-planner .segmented span {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-planner .chips label:focus-within span,
.page-planner .segmented label:focus-within span,
.page-planner .status-options label:focus-within span {
  outline: 2px solid var(--ui-focus);
  outline-offset: 3px;
}

.page-planner .map-hint {
  max-width: min(320px, calc(100% - 100px));
  text-align: center;
}

.page-planner .card-actions {
  flex-wrap: wrap;
}

.page-planner .card-actions :is(button, a) {
  flex: 1 1 135px;
  min-height: 38px;
}

.page-community .site-header,
.page-landing .site-header {
  min-width: 0;
}

.page-community .wrap {
  padding-top: 34px;
}

.page-community .page-heading {
  margin-bottom: 22px;
}

.page-community .page-heading h1 {
  margin: 10px 0;
}

.page-community .page-heading > p {
  margin: 0;
}

.page-community .filter-panel {
  padding: 23px;
  margin: 22px 0 26px;
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 35px #274b3110;
  animation: ui-rise .42s both;
}

.page-community .filter-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}

.page-community .filter-heading h2 {
  margin: 0 0 3px;
  font-size: 18px;
}

.page-community .filter-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.page-community .filter-icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #2c6246;
  background: #e8f0e3;
}

.page-community .filter-icon svg,
.page-admin .admin-sidebar svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-community .filters,
.page-community .discovery-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  align-items: end;
  margin: 0;
}

.page-community .filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 13px;
}

.page-community #toggle-filters {
  display: none;
}

.page-community .filters label,
.page-community .discovery-filters label {
  min-width: 0;
  width: 100%;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.page-community .region-combobox,
.page-community .region-input-wrap {
  position: relative;
  min-width: 0;
}

.page-community #region-filter {
  padding-right: 42px;
}

.page-community #clear-region {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 30px;
  min-height: 30px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  color: #748277;
  background: transparent;
  font-size: 20px;
}

.page-community #clear-region:hover {
  color: #254d3a;
  background: #edf3ec;
}

.page-community .region-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: 310px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #dce6dd;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 15px 38px #203c3122;
  animation: ui-rise .16s ease-out both;
}

.page-community .region-option {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  color: #263b30;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  transition: background .16s ease, color .16s ease;
}

.page-community .region-option:hover,
.page-community .region-option[aria-selected="true"] {
  color: #214f39;
  background: #f0f5ef;
}

.page-community .region-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-community .region-code {
  display: inline-flex;
  min-width: 31px;
  height: 27px;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 20px;
  color: #315f49;
  background: #e3eee5;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.page-community .region-empty,
.page-community .region-more {
  padding: 12px 13px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.page-community .region-feedback {
  min-height: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
}

.page-community #profile-tabs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-community[data-page="profile"] #listing > .page-heading .kicker,
.page-community[data-page="admin"] #listing > .page-heading .kicker {
  display: none;
}

.page-community #reset-filters {
  justify-self: start;
  padding-inline: 15px;
}

.page-community #discovery-note {
  margin: 13px 0 0;
  font-size: 11px;
}

.page-community .route-list {
  gap: 14px;
}

.page-community .route-card {
  min-width: 0;
  overflow: hidden;
  padding: 22px 24px;
  border-color: var(--ui-line);
  box-shadow: 0 4px 18px #25463409;
  animation: ui-rise .4s backwards;
}

.page-community .route-card:nth-child(2) { animation-delay: .06s; }
.page-community .route-card:nth-child(3) { animation-delay: .12s; }
.page-community .route-card:nth-child(4) { animation-delay: .18s; }

.page-community .route-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(#9ebf7d, #2d7352);
}

.page-community .route-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 120px;
  top: -30px;
  right: -34px;
  pointer-events: none;
  opacity: .24;
  background: repeating-radial-gradient(ellipse at 50% 50%, transparent 0 13px, #9ab68e 14px 15px);
  transform: rotate(-18deg);
}

.page-community .route-card > * {
  position: relative;
  z-index: 1;
}

.page-community .route-card h2 {
  margin: 8px 0;
  overflow-wrap: anywhere;
}

.page-community .route-card p {
  margin: 0;
  overflow-wrap: anywhere;
}

.page-community .route-card footer {
  flex-wrap: wrap;
  margin-top: 15px;
}

.page-community .tag {
  border: 1px solid #dbe8d4;
}

.page-community .panel,
.page-community .metric,
.page-admin .panel,
.page-admin article {
  border-color: var(--ui-line);
  box-shadow: 0 4px 18px #25463409;
}

.page-community .fields > *,
.page-admin .fields > * {
  min-width: 0;
}

.page-community dialog {
  max-height: calc(100dvh - 30px);
  overflow: auto;
}

.page-community #draft-notice.is-loading::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid #cfe1d2;
  border-top-color: #286348;
  border-radius: 50%;
  animation: ui-spin .75s linear infinite;
}

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

.page-community dialog .dialog-actions {
  position: sticky;
  bottom: -26px;
  padding: 10px 0;
  background: #fff;
}

.page-admin .admin-sidebar {
  width: 238px;
  padding: 23px 16px;
}

.page-admin .admin-sidebar .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  letter-spacing: -.7px;
}

.page-admin .admin-sidebar .brand img {
  display: block;
  border-radius: 9px;
}

.page-admin .admin-sidebar nav {
  gap: 4px;
  margin-top: 26px;
}

.page-admin .admin-sidebar nav button,
.page-admin .admin-community-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  color: #cfe0d3;
  background: transparent;
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 550;
}

.page-admin .admin-sidebar nav button:hover,
.page-admin .admin-community-link:hover {
  color: #fff;
  background: #315547;
}

.page-admin .admin-sidebar nav button.selected {
  color: #fff;
  background: #365e4c;
  box-shadow: inset 3px 0 #bee295;
}

.page-admin .admin-sidebar svg {
  flex: none;
}

.page-admin .admin-community-link {
  margin-top: 10px;
  white-space: normal;
}

.page-admin .aside-bottom {
  gap: 10px;
  padding-top: 20px;
}

.page-admin main {
  max-width: 1460px;
  padding: 30px 34px;
}

.page-admin header {
  margin-bottom: 20px;
}

.page-admin h1 {
  font-size: 29px;
}

.page-admin .cards {
  gap: 12px;
  margin-bottom: 14px;
}

.page-admin article {
  padding: 18px 20px;
  animation: ui-rise .35s both;
}

.page-admin .cards article:nth-child(2) { animation-delay: .06s; }
.page-admin .cards article:nth-child(3) { animation-delay: .12s; }

.page-admin article strong {
  margin: 9px 0 5px;
  font-size: 29px;
}

.page-admin .panel {
  margin-bottom: 14px;
  padding: 20px;
}

.page-admin .panel-head {
  flex-wrap: wrap;
}

.page-admin :is(td, th) {
  line-height: 1.35;
}

.page-admin td {
  padding-block: 11px;
}

.page-admin .daily-limit-form input {
  width: 70px;
}

.page-admin #comment-status {
  width: 190px;
  padding: 9px 12px;
}

.page-admin .comment-moderation-list {
  display: grid;
  gap: 12px;
}

.page-admin .moderation-comment {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--ui-line);
  background: #fbfdf9;
  box-shadow: none;
}

.page-admin .moderation-comment-head,
.page-admin .moderation-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.page-admin .moderation-comment-head strong {
  display: inline;
  margin: 0;
  font-size: 14px;
  letter-spacing: 0;
}

.page-admin .moderation-comment-head small {
  min-height: 0;
}

.page-admin .moderation-comment-head a {
  margin-left: auto;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.page-admin .moderation-comment p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 12px 0;
}

.page-admin .moderation-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.page-admin .moderation-photos img {
  display: block;
  width: 100px;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
}

.page-admin .moderation-actions span {
  margin-right: auto;
  color: var(--ui-green);
  font-size: 12px;
}

.page-admin .pagination {
  gap: 10px;
}

.page-admin .page-footer {
  margin: 18px 0;
  text-align: right;
}

@keyframes ui-breathe {
  0%, 100% { opacity: .65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.07); }
}

@keyframes ui-rise {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .page-community .filters,
  .page-community .discovery-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Страница маршрута сообщества использует общую ширину и равномерные отступы. */
.page-community #route-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  width: 100%;
}

.page-community #route-detail[hidden] {
  display: none !important;
}

.page-community #route-heading {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: clamp(20px, 3vw, 32px);
  overflow: hidden;
  border: 1px solid #dce7d9;
  border-radius: 20px;
  background: linear-gradient(118deg, #fff 0%, #f5f8f0 72%, #edf4e8 100%);
  box-shadow: 0 12px 34px #2546340c;
  animation: route-detail-enter .48s cubic-bezier(.2, .7, .2, 1) both;
}

.page-community #route-heading::after {
  position: absolute;
  z-index: -1;
  top: -70px;
  right: -38px;
  width: 190px;
  height: 190px;
  border: 1px solid #d7e5d0;
  border-radius: 50%;
  background: radial-gradient(circle, #e1edd7a6, #e9f1e300 70%);
  content: "";
  pointer-events: none;
}

.page-community #route-heading-copy > * {
  position: relative;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.page-community #route-heading-copy .kicker {
  margin-bottom: 8px;
  color: #64815e;
}

.page-community #route-heading-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -1.4px;
  text-wrap: balance;
}

.page-community #route-heading-copy .route-description {
  max-width: none;
  margin: 0;
  color: #52675a;
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.page-community .route-heading-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-width: 0;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e2eade;
}

.page-community .route-heading-footer > * {
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}

.page-community .route-heading-footer > .muted {
  flex: 1 1 auto;
  font-size: 11px;
}

.page-community #route-detail > :is(#publication-status, #route-map, #route-metrics, .panel, #other-section),
.page-community #route-detail > p.muted {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}

.page-community #route-detail .route-actions {
  flex: 0 1 auto;
  justify-content: flex-end;
  gap: 8px;
  padding: 0;
}

.page-community #publication-status:not(:empty) {
  padding: 11px 14px;
  border: 1px solid #e0e9de;
  border-radius: 12px;
  background: #fff;
}

.page-community #route-map {
  height: clamp(340px, 52vw, 520px);
  border-radius: 18px;
  box-shadow: 0 10px 28px #25463410;
  animation: route-detail-enter .52s .06s both;
}

.page-community #route-detail > p.muted {
  margin-top: -8px;
  font-size: 11px;
}

.page-community #route-metrics {
  gap: 12px;
}

.page-community #route-metrics .metric {
  min-width: 0;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 15px #25463408;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.page-community #route-metrics .metric:hover {
  transform: translateY(-2px);
  border-color: #c7d8c3;
  box-shadow: 0 9px 22px #25463410;
}

.page-community #route-metrics .metric strong {
  margin-top: 6px;
  font-size: 19px;
  overflow-wrap: anywhere;
}

.page-community #route-tags.route-tags {
  width: fit-content;
  max-width: 100%;
  margin: 12px 0 0;
}

.page-community #route-warnings.warnings {
  display: grid;
  gap: 5px;
  width: min(100%, 900px);
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
  color: #83673b;
}

.page-community #route-warnings[hidden] {
  display: none !important;
}

.page-community #route-warnings li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.page-community #route-warnings li::before {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b18a4e;
  content: "";
}

.page-community #route-detail .panel {
  padding: clamp(18px, 2.5vw, 26px);
  border-radius: 17px;
  box-shadow: 0 8px 26px #2546340a;
}

.page-community #route-detail .section-head {
  margin: 4px 0 15px;
}

.page-community #route-detail .other-grid .route-card {
  height: 100%;
}

@keyframes route-detail-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .page-community #route-detail {
    gap: 13px;
  }

  .page-community #route-heading {
    padding: 19px;
    border-radius: 16px;
  }

  .page-community #route-heading-copy h1 {
    font-size: clamp(25px, 7vw, 32px);
  }

  .page-community #route-heading-copy .route-description {
    font-size: 13px;
    line-height: 1.65;
  }

  .page-community .route-heading-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .page-community .route-heading-footer > .muted {
    flex: 0 0 auto;
  }

  .page-community #route-detail .route-actions {
    justify-content: stretch;
  }

  .page-community #route-detail .route-actions > :is(button, .button) {
    flex: 1 1 145px;
  }

  .page-community #route-map {
    height: 340px;
    border-radius: 14px;
  }

  .page-community #route-metrics {
    gap: 9px;
  }

  .page-community #route-metrics .metric {
    padding: 13px;
  }

  .page-community #route-metrics .metric strong {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-community #route-heading,
  .page-community #route-map,
  .page-community #route-metrics .metric {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 760px) {
  .page-admin .admin-sidebar {
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 12px 16px;
  }

  .page-admin .admin-sidebar .brand {
    font-size: 18px;
  }

  .page-admin .admin-sidebar .brand img {
    width: 29px;
    height: 29px;
  }

  .page-admin .admin-sidebar nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-top: 10px;
  }

  .page-admin .admin-sidebar nav button {
    justify-content: center;
    min-width: 0;
    min-height: 34px;
    padding: 7px 4px;
    font-size: 11px;
  }

  .page-admin .admin-sidebar nav svg {
    display: none;
  }

  .page-admin .admin-community-link {
    display: flex;
    min-height: 32px;
    margin: 5px 0 0;
    padding: 5px 10px;
    font-size: 12px;
  }

  .page-admin .admin-community-link svg {
    width: 15px;
    height: 15px;
  }

  .page-admin .aside-bottom {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 8px 0 0;
  }

  .page-admin .aside-bottom small {
    display: none;
  }

  .page-admin .aside-bottom button {
    min-height: 32px;
    padding: 5px 9px;
  }

  .page-admin main {
    padding: 22px 16px;
  }

  .page-admin header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .page-admin header p {
    max-width: 30ch;
  }

  .page-admin .badge {
    margin-left: auto;
  }

  .page-admin .cards article {
    min-height: 92px;
  }
}

@media (max-width: 600px) {
  .page-community .site-header {
    gap: 10px;
  }

  .page-community nav {
    gap: 10px 15px;
  }

  .page-community .wrap {
    padding: 26px 16px 44px;
  }

  .page-community .filter-panel {
    margin: 18px 0 22px;
    padding: 17px;
  }

  .page-community .filters,
  .page-community .discovery-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .page-community #toggle-filters {
    display: inline-flex;
    margin: 0 0 4px;
  }

  .page-community .filter-panel.is-collapsed .discovery-filters,
  .page-community .filter-panel.is-collapsed #discovery-note {
    display: none !important;
  }

  .page-community .filters label,
  .page-community .discovery-filters label {
    min-width: 0;
  }

  .page-community .route-card {
    padding: 18px;
  }

  .page-community .route-card footer {
    align-items: flex-start;
  }

  .page-community .route-card footer button {
    width: 100%;
  }

  .page-community .pagination {
    gap: 8px;
  }

  .page-community .pagination button {
    flex: none;
    min-height: 38px;
    padding: 8px 10px;
    white-space: nowrap;
    font-size: 12px;
  }

  .page-community .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-community dialog {
    padding: 18px;
  }

  .page-community dialog .dialog-actions {
    bottom: -18px;
  }

  .page-admin .panel {
    padding: 17px;
  }
}

@media (max-width: 380px) {
  .page-landing .brand {
    font-size: 18px;
  }

  .page-community .filters,
  .page-community .discovery-filters {
    grid-template-columns: 1fr;
  }

  .page-admin .pagination {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-landing .hero-art::before,
  .page-community .filter-panel,
  .page-community .route-card,
  .page-admin article,
  .page-planner .primary,
  .page-admin button {
    animation: none !important;
    transition: none !important;
  }
}

.page-planner #analyze[aria-busy="true"] {
  cursor: wait;
  opacity: 1;
  background: #17492c;
  box-shadow: none;
}

.page-planner :is(.analyze-timer, .build-timer) {
  min-width: 46px;
  padding: 3px 7px;
  border: 1px solid #ffffff45;
  border-radius: 7px;
  background: #ffffff18;
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 1.2;
}

.page-planner :is(.analyze-timer, .build-timer)[hidden] {
  display: none !important;
}

.page-planner :is(#analyzeIcon.is-spinning, .build-spinner) {
  display: inline-block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff70;
  border-top-color: #fff;
  border-radius: 50%;
  font-size: 0;
  animation: planner-spin .8s linear infinite;
}

.page-planner .build[aria-busy="true"] {
  cursor: wait;
  opacity: 1;
  box-shadow: none;
}

.page-planner .map-interaction-shield {
  position: absolute;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  background: #f5f8f333;
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  cursor: progress;
  touch-action: none;
}

.page-planner #mapInteractionShield[hidden] {
  display: none !important;
}

.page-planner .map-busy-card {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border: 1px solid #dce5da;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px #1d35221f;
  color: #31523d;
  font-size: 13px;
  font-weight: 650;
}

.page-planner .map-busy-spinner {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  border: 2px solid #d9e6d9;
  border-top-color: #347557;
  border-radius: 50%;
  animation: planner-spin .8s linear infinite;
}

.page-planner .map-hint,
.page-planner .map-tools,
.page-planner .legend {
  z-index: 1200;
}

.page-planner .map-shell.is-interaction-locked #map {
  cursor: progress;
}

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