:root {
  color-scheme: light;
  --ink: #14211b;
  --muted: #69746d;
  --soft: #8d958f;
  --line: #dedfd8;
  --paper: #f4f1e9;
  --panel: #fffdf8;
  --field: #ecefe8;
  --forest: #10251f;
  --forest-2: #20332b;
  --moss: #3f7659;
  --sage: #dde6dc;
  --orange: #e58a31;
  --gold: #d7a83b;
  --blue: #316fd2;
  --shadow: 0 18px 46px rgba(30, 38, 32, 0.14);
  --radius: 8px;
  --phone-width: 430px;
  --phone-frame: #0b120f;
  --phone-frame-soft: #1b2520;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 14px 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(16, 37, 31, 0.08), transparent 240px),
    var(--paper);
  display: grid;
  place-items: start center;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

body.android-webview {
  padding: 0;
  display: block;
  overflow: hidden;
}

body.android-webview .app-shell {
  width: 100vw;
  max-width: none;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.android-webview .app-shell::before,
body.android-webview .app-shell::after {
  display: none;
}

body.android-webview .topbar {
  padding-top: max(10px, env(safe-area-inset-top));
  border-radius: 0;
}

body.android-webview .tabbar {
  position: fixed !important;
  width: 100vw;
  right: 0;
  bottom: max(8px, env(safe-area-inset-bottom));
  left: 0;
  z-index: 120;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 20px;
  transform: none;
}

body.android-webview .tabbar:not(.hidden) {
  display: grid !important;
}

body.android-webview .tabbar.hidden {
  display: none !important;
}

body.android-webview .app-main {
  padding-bottom: max(112px, calc(96px + env(safe-area-inset-bottom)));
}

button,
input,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

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

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-shell {
  position: relative;
  width: min(calc(100% - 18px), var(--phone-width));
  height: calc(100vh - 28px);
  min-height: 620px;
  margin: 0 auto;
  background: var(--paper);
  border: 9px solid var(--phone-frame);
  border-radius: 34px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 54px rgba(16, 37, 31, 0.26);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.app-shell::-webkit-scrollbar {
  display: none;
}

.app-shell::before {
  position: absolute;
  top: 7px;
  left: 50%;
  z-index: 80;
  width: 86px;
  height: 18px;
  content: "";
  background: var(--phone-frame);
  border-radius: 0 0 16px 16px;
  transform: translateX(-50%);
  pointer-events: none;
}

.app-shell::after {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 81;
  width: 40px;
  height: 4px;
  content: "";
  background: var(--phone-frame-soft);
  border-radius: 999px;
  transform: translateX(-50%);
  pointer-events: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 10px 14px 8px;
  background: rgba(244, 241, 233, 0.93);
  border-bottom: 1px solid rgba(222, 223, 216, 0.72);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  color: var(--forest);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-lockup small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.brand-pin {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: white;
  background:
    radial-gradient(circle at 68% 28%, var(--orange) 0 16%, transparent 17%),
    linear-gradient(135deg, var(--moss), var(--forest));
  border-radius: 50% 50% 50% 0;
  font-size: 8px;
  font-weight: 900;
  transform: rotate(-45deg);
}

.brand-pin::first-letter {
  transform: rotate(45deg);
}

.app-main {
  min-height: calc(100% - 148px);
  padding: 12px 12px 96px;
}

.app-shell.fullscreen-map {
  width: min(calc(100% - 18px), var(--phone-width));
  height: calc(100vh - 28px);
  background: #10251f;
  overflow: hidden;
}

body.android-webview .app-shell.fullscreen-map {
  width: 100vw;
  height: 100vh;
}

.app-shell.fullscreen-map .topbar {
  display: none;
}

.app-shell.fullscreen-map .app-main {
  height: 100%;
  min-height: 100%;
  padding: 0;
}

.tabbar {
  position: fixed;
  right: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: auto;
  z-index: 30;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  grid-template-columns: none;
  grid-template-rows: 58px;
  align-items: center;
  overflow: visible;
  width: min(calc(100vw - 18px), calc(var(--phone-width) - 18px));
  height: 74px;
  min-height: 0;
  margin: 0;
  padding: 8px;
  background: var(--forest);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  box-shadow: 0 12px 36px rgba(16, 37, 31, 0.28);
  transform: translateX(50%);
}

.tabbar.hidden {
  display: none;
}

.app-shell.fullscreen-map .tabbar {
  display: none !important;
}

.tab-item {
  display: grid;
  place-items: center;
  gap: 4px;
  min-width: 0;
  height: 50px;
  min-height: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
  background: transparent;
  border: 0;
  border-radius: 20px;
}

.tab-item svg {
  width: 21px;
  height: 21px;
}

.tab-item.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.upload-tab {
  height: 58px;
  min-height: 0;
  margin-top: -14px;
  color: var(--forest);
  background: var(--orange);
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(229, 138, 49, 0.32);
}

.upload-tab.active {
  color: var(--forest);
  background: #ef963e;
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--forest);
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.icon-button.subtle {
  background: rgba(255, 253, 248, 0.82);
  border-color: rgba(222, 223, 216, 0.9);
}

.icon-button.solid {
  color: white;
  background: var(--forest);
}

.primary-button,
.secondary-button,
.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.primary-button {
  color: white;
  background: var(--forest);
  border: 1px solid var(--forest);
}

.secondary-button,
.pill-button {
  color: var(--forest);
  background: var(--panel);
  border: 1px solid var(--line);
}

.home-satellite {
  display: grid;
  gap: 12px;
}

.satellite-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.satellite-head h1 {
  margin: 4px 0 0;
  color: var(--forest);
  font-size: 30px;
  line-height: 1.06;
  letter-spacing: 0;
}

.satellite-map {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.62;
  overflow: hidden;
  color: white;
  text-align: left;
  background:
    linear-gradient(0deg, rgba(16, 37, 31, 0.08), rgba(16, 37, 31, 0.08)),
    url("https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/6/25/52")
      center/cover,
    url("https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=900&q=80")
      center/cover;
  border: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.satellite-map::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(transparent 0 49%, rgba(255, 255, 255, 0.36) 49.5% 50%, transparent 50.5%),
    linear-gradient(90deg, transparent 0 49%, rgba(255, 255, 255, 0.32) 49.5% 50%, transparent 50.5%),
    radial-gradient(circle at 56% 54%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(180deg, transparent 52%, rgba(16, 37, 31, 0.38));
  pointer-events: none;
}

.sat-grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 53px, rgba(255, 255, 255, 0.14) 54px),
    repeating-linear-gradient(90deg, transparent 0 53px, rgba(255, 255, 255, 0.14) 54px);
  pointer-events: none;
}

.current-location {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  color: white;
  background: rgba(16, 37, 31, 0.82);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.current-location svg {
  width: 16px;
  height: 16px;
}

.sat-route {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sat-route path {
  fill: none;
  stroke: #ec3fd1;
  stroke-linecap: round;
  stroke-width: 3.8;
  filter: drop-shadow(0 1px 1px rgba(16, 37, 31, 0.55));
}

.sat-pin {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 170px;
  color: white;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(16, 37, 31, 0.88);
}

.sat-pin i {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  background: #ef38cf;
  border: 2px solid white;
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(16, 37, 31, 0.35);
}

.sat-pin b {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sat-pin.p1 {
  left: 26%;
  top: 62%;
}

.sat-pin.p2 {
  left: 48%;
  top: 45%;
}

.sat-pin.p3 {
  left: 58%;
  top: 58%;
}

.nearby-roadbook {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nearby-roadbook strong,
.nearby-roadbook span {
  display: block;
}

.nearby-roadbook strong {
  color: var(--forest);
  font-size: 17px;
}

.nearby-roadbook span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nearby-roadbook button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  color: var(--forest);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.nearby-list {
  display: grid;
  gap: 8px;
}

.nearby-list button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px;
  color: var(--forest);
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nearby-list em {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: white;
  background: var(--forest);
  border-radius: 50%;
  font-style: normal;
  font-weight: 900;
}

.nearby-list strong,
.nearby-list small {
  display: block;
}

.nearby-list strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nearby-list small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.nearby-list i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--orange);
  border-radius: 50%;
}

.nearby-list svg {
  width: 18px;
  height: 18px;
}

.eyebrow {
  margin: 0;
  color: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  opacity: 0.68;
}

.filter-row {
  display: flex;
  gap: 8px;
  margin: 12px -12px 8px;
  padding: 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.filter-row button.active {
  color: white;
  background: var(--forest);
  border-color: var(--forest);
  font-weight: 900;
}

.home-toolbar {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.home-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.home-search input {
  min-width: 0;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.home-search button {
  color: var(--moss);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 900;
}

.home-sort {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 4px;
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.home-sort button {
  min-width: 0;
  min-height: 32px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.home-sort button.active {
  color: white;
  background: var(--forest);
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.home-stats div {
  min-width: 0;
  padding: 10px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.home-stats strong {
  display: block;
  color: var(--forest);
  font-size: 18px;
  line-height: 1.1;
}

.home-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.result-line button {
  color: var(--moss);
  background: transparent;
  border: 0;
  font-weight: 900;
}

.masonry-feed {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.feed-card {
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(222, 223, 216, 0.88);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(30, 38, 32, 0.06);
  break-inside: avoid;
  outline: none;
}

.feed-card:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.media-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dfe5df;
}

.media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: white;
  background: rgba(16, 37, 31, 0.74);
  border-radius: 999px;
}

.video-badge svg {
  width: 16px;
  height: 16px;
}

.featured-badge,
.review-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 5px 8px;
  color: white;
  background: var(--orange);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.review-badge {
  background: rgba(16, 37, 31, 0.78);
}

.terrain-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 4px 8px;
  overflow: hidden;
  color: white;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(16, 37, 31, 0.72);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.feed-card-body {
  padding: 10px;
}

.feed-card h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0;
}

.feed-card p {
  display: -webkit-box;
  margin: 5px 0 9px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 9px;
}

.card-route-meta span {
  max-width: 100%;
  padding: 3px 6px;
  color: var(--forest);
  background: var(--field);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.card-meta,
.author-line {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.card-meta small {
  color: var(--soft);
  font-size: 10px;
}

.like {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.like svg {
  width: 14px;
  height: 14px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.mini-action {
  flex: 1 1 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 30px;
  padding: 0 6px;
  color: var(--muted);
  background: var(--field);
  border: 0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.mini-action.edit-action {
  color: var(--forest);
  background: #fff4dc;
}

.mini-action svg {
  width: 14px;
  height: 14px;
}

.mini-action.active {
  color: white;
  background: var(--moss);
}

.empty-feed {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 22px 16px;
  color: var(--muted);
  text-align: center;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  break-inside: avoid;
}

.empty-feed strong {
  color: var(--forest);
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: white;
  background: var(--forest);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.avatar.large {
  width: 42px;
  height: 42px;
  font-size: 17px;
}

.detail-view {
  position: relative;
  margin: -12px -12px 0;
  background: var(--panel);
}

.detail-media {
  position: relative;
  min-height: 220px;
  background: #0e1f18;
}

.detail-media img,
.detail-media video {
  width: 100%;
  height: clamp(220px, 42vh, 360px);
  object-fit: contain;
}

.detail-carousel {
  position: relative;
  width: 100%;
  height: clamp(220px, 42vh, 360px);
  overflow: hidden;
  background: #0e1f18;
}

.detail-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.detail-carousel-track::-webkit-scrollbar {
  display: none;
}

.detail-carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  scroll-snap-align: center;
}

.carousel-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  min-width: 48px;
  padding: 6px 9px;
  color: white;
  text-align: center;
  background: rgba(16, 37, 31, 0.66);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  background: rgba(16, 37, 31, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.carousel-arrow.prev {
  left: 12px;
}

.carousel-arrow.next {
  right: 12px;
}

.carousel-arrow.next svg {
  transform: rotate(180deg);
}

.carousel-arrow svg {
  width: 18px;
  height: 18px;
}

.back-button {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: white;
  background: rgba(16, 37, 31, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.detail-content {
  padding: 16px 14px 104px;
}

.author-line strong {
  display: block;
  color: var(--ink);
}

.author-line span:not(.avatar) {
  display: block;
}

.detail-content h1 {
  margin: 16px 0 8px;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: 0;
}

.topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 12px;
}

.content-policy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}

.content-policy-row span,
.content-policy-row button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 8px;
  color: var(--forest);
  background: var(--field);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.content-policy-row button {
  color: white;
  background: var(--moss);
}

.topic-cloud button {
  min-height: 30px;
  padding: 0 10px;
  color: var(--moss);
  background: #e3ece3;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.detail-action-dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 32;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 10px 12px max(10px, env(safe-area-inset-bottom));
  background: rgba(244, 241, 233, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.detail-action-dock button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 48px;
  padding: 0 8px;
  color: var(--forest);
  background: var(--field);
  border: 0;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
}

.detail-action-dock button.active {
  color: white;
  background: var(--moss);
}

.detail-content p {
  color: #35413b;
  font-size: 15px;
  line-height: 1.72;
}

.subsection-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.subsection-title strong {
  color: var(--forest);
  font-size: 17px;
}

.subsection-title span {
  color: var(--muted);
  font-size: 12px;
}

.subsection-title button {
  color: var(--moss);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 900;
}

.route-share,
.nav-panel,
.team-panel,
.chat-panel,
.management-block {
  margin-top: 14px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title h1,
.section-title h2 {
  margin: 3px 0 0;
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: 0;
}

.section-title.compact h1,
.section-title.compact h2 {
  font-size: 16px;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.route-grid-overview {
  grid-template-columns: 1fr;
}

.route-grid div,
.route-grid > button,
.profile-stats div {
  position: relative;
  min-width: 0;
  padding: 12px;
  background: var(--field);
  border-radius: var(--radius);
}

.route-feedback-entry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  color: white;
  background: var(--forest);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.route-feedback-entry svg {
  width: 15px;
  height: 15px;
}

.route-reality-section {
  margin-top: 14px;
}

.route-reality-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.route-reality-meta span,
.route-reality-meta em {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 8px;
  background: var(--field);
  border: 1px solid rgba(63, 118, 89, 0.12);
  border-radius: 8px;
  font-style: normal;
  font-weight: 900;
}

.route-reality-meta span {
  display: grid;
  gap: 1px;
  min-width: 74px;
}

.route-reality-meta small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.1;
}

.route-reality-meta strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.15;
}

.route-reality-meta em {
  color: var(--forest);
  background: var(--sage);
  border-color: transparent;
  font-size: 12px;
}

.route-reality-section .route-pass-status {
  margin-top: 8px;
  padding: 10px 12px 10px 17px;
  border-radius: 8px;
}

.route-reality-section .route-pass-status strong {
  font-size: 16px;
}

.route-reality-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.route-reality-grid div {
  min-width: 0;
  padding: 10px;
  background: #eef3ec;
  border: 1px solid rgba(63, 118, 89, 0.14);
  border-radius: 8px;
}

.route-reality-grid .wide {
  grid-column: 1 / -1;
}

.route-reality-grid span,
.route-reality-grid strong {
  display: block;
  min-width: 0;
}

.route-reality-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.route-reality-grid strong {
  margin-top: 4px;
  color: var(--forest);
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.route-reality-collapse {
  display: grid;
  gap: 8px;
}

.route-reality-grid.compact {
  align-items: stretch;
}

.route-reality-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.route-reality-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: var(--forest);
  background: #edf3ec;
  border: 1px solid rgba(63, 118, 89, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.route-reality-badges .mapped {
  color: #0f5b3d;
  background: #def4e8;
  border-color: rgba(47, 143, 106, 0.3);
}

.route-reality-badges .filled {
  color: #675015;
  background: #fff2c9;
  border-color: rgba(180, 128, 40, 0.25);
}

.route-reality-badges .empty {
  color: #6b746c;
  background: #f2f2ec;
}

.route-reality-collapse details {
  display: grid;
  gap: 8px;
}

.route-reality-collapse summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  color: var(--forest);
  background: #f3f5ee;
  border: 1px solid rgba(63, 118, 89, 0.16);
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  font-weight: 900;
}

.route-reality-collapse summary::-webkit-details-marker {
  display: none;
}

.route-reality-collapse summary::after {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  content: "";
  background: currentColor;
  clip-path: polygon(20% 35%, 50% 65%, 80% 35%, 90% 45%, 50% 85%, 10% 45%);
  opacity: 0.72;
}

.route-reality-collapse details[open] summary::after {
  transform: rotate(180deg);
}

.route-reality-collapse summary .open {
  display: none;
}

.route-reality-collapse details[open] summary .closed {
  display: none;
}

.route-reality-collapse details[open] summary .open {
  display: inline;
}

.route-reality-collapse summary em {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.route-reality-groups {
  display: grid;
  gap: 8px;
}

.route-reality-group {
  overflow: hidden;
  background: #f8faf3;
  border: 1px solid rgba(63, 118, 89, 0.16);
  border-radius: 8px;
}

.route-reality-group summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  min-height: 48px;
  padding: 8px 12px;
}

.route-reality-group summary span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.route-reality-group summary strong {
  overflow: hidden;
  color: var(--forest);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.route-reality-group summary small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.route-reality-group summary em {
  color: #2f8f6a;
  font-size: 12px;
}

.route-reality-group.empty summary em {
  color: var(--muted);
}

.route-reality-group .route-reality-grid.single {
  grid-template-columns: 1fr;
  margin-top: 0;
  padding: 0 8px 8px;
}

.route-reality-group .route-reality-grid.single > div {
  background: #eef3ec;
  border-color: rgba(63, 118, 89, 0.1);
}

.route-reality-grid.expanded {
  margin-top: 8px;
}

.reality-map-preview {
  display: grid;
  grid-template-columns: minmax(138px, 168px) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 6px 14px;
  align-items: center;
  width: 100%;
  margin-top: 6px;
  padding: 0;
  color: var(--forest);
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.reality-map-preview .mini-map-canvas {
  position: relative;
  grid-row: 1 / span 2;
  display: block;
  width: 100%;
  height: 102px;
  overflow: hidden;
  background: #16231e;
  border: 1px solid rgba(63, 118, 89, 0.22);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.16);
  isolation: isolate;
}

.route-point-summary .mini-map-canvas,
.facility-map-preview .mini-map-canvas,
.map-route-summary-point .mini-map-canvas {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #16231e;
  border: 1px solid rgba(63, 118, 89, 0.22);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.16);
  isolation: isolate;
}

.reality-map-preview .mini-map-canvas::after,
.route-point-summary .mini-map-canvas::after,
.facility-map-preview .mini-map-canvas::after,
.map-route-summary-point .mini-map-canvas::after,
.point-sheet-satellite::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    linear-gradient(180deg, rgba(9, 27, 20, 0.04), rgba(9, 27, 20, 0.18)),
    radial-gradient(circle at 50% 50%, transparent 0 38%, rgba(9, 27, 20, 0.24) 100%);
  pointer-events: none;
}

.reality-map-preview .map-preview-tile,
.route-point-summary .map-preview-tile,
.facility-map-preview .map-preview-tile,
.map-route-summary-point .map-preview-tile,
.point-sheet-satellite .map-preview-tile {
  position: absolute;
  z-index: 1;
  width: 256px;
  height: 256px;
  max-width: none;
  transform: translate(0, 0);
  pointer-events: none;
  user-select: none;
}

.reality-map-preview .map-preview-tile-road,
.route-point-summary .map-preview-tile-road,
.facility-map-preview .map-preview-tile-road,
.map-route-summary-point .map-preview-tile-road,
.point-sheet-satellite .map-preview-tile-road {
  z-index: 2;
  opacity: 0.82;
}

.reality-map-preview .map-preview-tile-label,
.route-point-summary .map-preview-tile-label,
.facility-map-preview .map-preview-tile-label,
.map-route-summary-point .map-preview-tile-label,
.point-sheet-satellite .map-preview-tile-label {
  z-index: 3;
  opacity: 0.94;
}

.reality-map-preview .map-preview-route,
.route-point-summary .map-preview-route,
.facility-map-preview .map-preview-route,
.map-route-summary-point .map-preview-route,
.point-sheet-satellite .map-preview-route {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 3px rgba(6, 24, 18, 0.62));
  pointer-events: none;
}

.reality-map-preview .map-preview-route polyline,
.route-point-summary .map-preview-route polyline,
.facility-map-preview .map-preview-route polyline,
.map-route-summary-point .map-preview-route polyline,
.point-sheet-satellite .map-preview-route polyline {
  fill: none;
  stroke: #2eff7b;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.reality-map-preview .map-preview-route circle,
.route-point-summary .map-preview-route circle,
.facility-map-preview .map-preview-route circle,
.map-route-summary-point .map-preview-route circle,
.point-sheet-satellite .map-preview-route circle {
  fill: rgba(255, 250, 240, 0.94);
  stroke: #2eff7b;
  stroke-width: 3;
}

.reality-map-preview .map-preview-pin,
.route-point-summary .map-preview-pin,
.facility-map-preview .map-preview-pin,
.map-route-summary-point .map-preview-pin,
.point-sheet-satellite .map-preview-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  width: 18px;
  height: 18px;
  background: #f04f3f;
  border: 3px solid #fffaf0;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 6px 14px rgba(12, 31, 23, 0.24);
  transform: translate(-50%, -75%) rotate(-45deg);
}

.reality-map-preview strong {
  margin-top: 0;
  font-size: 15px;
}

.reality-map-preview small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.route-start-card:not(.route-point-summary) {
  padding-right: 48px;
}

.route-point-summary {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  width: 100%;
  color: var(--forest);
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.route-point-summary .mini-map-canvas {
  height: 70px;
}

.route-point-summary strong {
  margin-top: 0;
  font-size: 14px;
  line-height: 1.25;
}

.route-point-summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.route-start-card button {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--forest);
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
}

.route-start-card svg {
  width: 17px;
  height: 17px;
}

.route-overview-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  width: 100%;
  overflow: hidden;
  color: var(--forest);
  border: 1px solid rgba(63, 118, 89, 0.18);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.route-grid > .route-overview-card {
  padding: 8px;
}

.route-overview-canvas {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #16231e;
  border: 1px solid rgba(63, 118, 89, 0.22);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.12);
  isolation: isolate;
}

.route-overview-canvas.card {
  aspect-ratio: 560 / 236;
  min-height: 172px;
}

.route-overview-viewport {
  width: 100%;
  height: min(62vh, 620px);
  min-height: 420px;
  overflow: auto;
  background: #16231e;
  border: 1px solid rgba(63, 118, 89, 0.22);
  border-radius: 10px;
  cursor: grab;
  overscroll-behavior: contain;
  scrollbar-width: none;
  touch-action: none;
  user-select: none;
}

.route-overview-viewport::-webkit-scrollbar {
  display: none;
}

.route-overview-viewport.dragging {
  cursor: grabbing;
}

.route-overview-canvas.sheet {
  height: 100%;
  min-height: 100%;
  border-radius: 10px;
}

.route-overview-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    linear-gradient(180deg, rgba(9, 27, 20, 0.02), rgba(9, 27, 20, 0.18)),
    radial-gradient(circle at 50% 50%, transparent 0 54%, rgba(9, 27, 20, 0.28) 100%);
  pointer-events: none;
}

.route-overview-tile {
  position: absolute;
  z-index: 1;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.route-overview-tile-road {
  z-index: 2;
  opacity: 0.82;
}

.route-overview-tile-label {
  z-index: 3;
  opacity: 0.94;
}

.route-overview-route {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(6, 24, 18, 0.65));
  pointer-events: none;
}

.route-overview-route polyline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-overview-route-halo {
  stroke: rgba(255, 250, 240, 0.92);
  stroke-width: 9;
}

.route-overview-route-line {
  stroke: #2eff7b;
  stroke-width: 5;
}

.route-media-dot {
  position: absolute;
  z-index: 7;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  overflow: visible;
  color: white;
  background: #10251f;
  border: 2px solid #fffaf0;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(9, 27, 20, 0.34);
  transform: translate(-50%, -50%);
}

.route-media-dot.has-media {
  border-color: #fffaf0;
  outline: 3px solid rgba(240, 79, 63, 0.92);
}

.route-overview-card .route-media-dot {
  width: 27px;
  height: 27px;
  pointer-events: none;
}

.route-media-dot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.route-media-dot svg {
  width: 16px;
  height: 16px;
}

.route-media-dot i {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: white;
  background: rgba(16, 37, 31, 0.92);
  border: 1px solid rgba(255, 250, 240, 0.82);
  border-radius: 50%;
}

.route-media-dot i svg {
  width: 10px;
  height: 10px;
}

.route-media-dot em {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  color: var(--forest);
  background: #fffaf0;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.route-overview-copy {
  display: grid;
  gap: 2px;
}

.route-overview-copy strong,
.route-overview-copy small {
  display: block;
}

.route-overview-copy strong {
  font-size: 16px;
  line-height: 1.25;
}

.route-overview-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.route-overview-cta {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  color: white;
  background: var(--forest);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.route-overview-cta svg {
  width: 14px;
  height: 14px;
}

.route-overview-empty {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 18px;
  color: var(--forest);
  text-align: center;
}

.route-overview-empty svg {
  width: 30px;
  height: 30px;
  color: var(--moss);
}

.route-media-sheet {
  width: min(100%, 680px);
  max-height: min(96vh, 920px);
  padding-bottom: 20px;
}

.route-media-sheet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.route-media-sheet-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: var(--forest);
  background: #edf3ec;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.route-media-point-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.route-media-point-list button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 9px;
  align-items: center;
  min-height: 56px;
  padding: 9px 10px;
  color: var(--forest);
  background: var(--field);
  border: 1px solid rgba(63, 118, 89, 0.12);
  border-radius: 8px;
  text-align: left;
}

.route-media-point-list button > span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 34px;
  color: white;
  background: var(--forest);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.route-media-point-list .video {
  background: #a86a1d;
}

.route-media-point-list .plain {
  color: var(--forest);
  background: #dce8df;
}

.route-media-point-list strong,
.route-media-point-list small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-media-point-list strong {
  font-size: 14px;
}

.route-media-point-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.route-media-empty {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px;
  color: var(--forest);
  background: var(--field);
  border: 1px dashed rgba(63, 118, 89, 0.2);
  border-radius: 8px;
}

.route-media-empty span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.route-grid span,
.profile-stats span,
.member-row span,
.chat-header span,
.article-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.route-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.route-grid .route-overview-copy {
  display: grid;
  color: var(--forest);
}

.route-grid .route-overview-cta {
  display: inline-flex;
  color: white;
  font-size: 12px;
}

.route-grid .route-media-dot {
  display: grid;
  color: white;
  font-size: 11px;
}

.route-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.route-tags span {
  padding: 5px 8px;
  color: var(--forest);
  background: var(--sage);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.facility-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.facility-section.merged {
  margin-top: 14px;
  padding-top: 14px;
}

.facility-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.facility-summary span {
  padding: 5px 8px;
  color: var(--forest);
  background: var(--sage);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.facility-grid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.facility-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  padding: 10px;
  background: var(--field);
  border-radius: var(--radius);
}

.facility-card.point-card {
  grid-template-columns: minmax(124px, 168px) minmax(0, 1fr);
  align-items: stretch;
}

.facility-map-preview {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.facility-map-preview .mini-map-canvas {
  height: 116px;
}

.facility-map-preview > strong,
.facility-map-preview > small {
  display: none;
}

.facility-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--moss);
  background: var(--panel);
  border-radius: var(--radius);
}

.facility-card small {
  color: var(--muted);
  font-size: 12px;
}

.facility-card strong {
  display: block;
  margin-top: 3px;
  color: var(--forest);
  font-size: 15px;
}

.facility-card p {
  margin: 4px 0 0;
  color: #3b463f;
  font-size: 13px;
  line-height: 1.5;
}

.facility-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.facility-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 8px;
  color: var(--forest);
  background: var(--panel);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.facility-actions svg {
  width: 14px;
  height: 14px;
}

.comments-section {
  margin-top: 14px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.comment-list {
  display: grid;
  gap: 14px;
}

.comment-item,
.reply-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.comment-body {
  min-width: 0;
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.comment-meta strong {
  color: var(--forest);
  font-size: 14px;
}

.comment-meta span {
  color: var(--soft);
  font-size: 11px;
}

.comment-item p,
.reply-item p {
  margin: 4px 0 0;
  color: #2f3a34;
  font-size: 14px;
  line-height: 1.58;
}

.comment-image {
  width: 104px;
  height: 78px;
  margin-top: 8px;
  object-fit: cover;
  border-radius: var(--radius);
}

.comment-stickers {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.comment-stickers span {
  padding: 4px 7px;
  background: var(--field);
  border-radius: 999px;
  font-size: 12px;
}

.comment-actions {
  display: flex;
  gap: 10px;
  margin-top: 7px;
}

.comment-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 900;
}

.comment-actions button.active {
  color: var(--moss);
}

.comment-actions svg {
  width: 14px;
  height: 14px;
}

.reply-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  background: var(--field);
  border-radius: var(--radius);
}

.reply-list .avatar {
  width: 20px;
  height: 20px;
  font-size: 11px;
}

.comment-composer {
  display: none;
}

.comment-inline-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  padding: 6px 10px;
  color: var(--muted);
  text-align: left;
  background: var(--field);
  border: 0;
  border-radius: 999px;
}

.comment-inline-entry em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.comment-inline-entry svg {
  color: var(--muted);
}

.comment-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 101;
  background: rgba(16, 37, 31, 0.34);
}

.comment-panel {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 102;
  display: grid;
  gap: 10px;
  width: min(100%, 520px);
  max-height: 78vh;
  margin: 0 auto;
  padding: 10px 14px max(14px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--panel);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -18px 42px rgba(16, 37, 31, 0.18);
}

.panel-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 2px;
  background: #d4d9d2;
  border-radius: 999px;
}

.reply-target {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  color: var(--moss);
  background: #e3ece3;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
}

.reply-target button {
  color: var(--muted);
  background: transparent;
  border: 0;
  font-weight: 900;
}

.comment-panel textarea {
  width: 100%;
  min-height: 74px;
  padding: 12px 14px;
  resize: vertical;
  color: var(--ink);
  background: var(--field);
  border: 1px solid transparent;
  border-radius: var(--radius);
  outline: none;
}

.sticker-tabs,
.sticker-row,
.comment-tools,
.composer-icons {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sticker-tabs button,
.sticker-row button,
.comment-tools button,
.composer-icons button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  color: var(--forest);
  background: var(--field);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.sticker-tabs button.active,
.comment-tools button:last-child,
.composer-icons .send-pill {
  color: white;
  background: #f6a7bd;
}

.composer-icons {
  align-items: center;
}

.composer-icons button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

.composer-icons .send-pill {
  margin-left: auto;
  padding: 0 18px;
}

.voice-hold-button.recording {
  color: white;
  background: var(--forest);
  box-shadow: 0 0 0 5px rgba(42, 121, 85, 0.14);
}

.voice-recording-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 9px 12px;
  color: white;
  background: var(--forest);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(16, 37, 31, 0.2);
}

.voice-recording-tip svg {
  width: 16px;
  height: 16px;
}

.voice-recording-tip strong,
.voice-recording-tip em {
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.voice-message {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 118px;
  margin-top: 6px;
  padding: 8px 12px;
  color: var(--forest);
  background: #e6eee6;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.voice-message svg {
  width: 16px;
  height: 16px;
}

.voice-message em {
  color: var(--muted);
  font-style: normal;
}

.voice-message i {
  width: 28px;
  height: 10px;
  background:
    linear-gradient(90deg, transparent 0 18%, currentColor 18% 22%, transparent 22% 38%, currentColor 38% 42%, transparent 42% 58%, currentColor 58% 62%, transparent 62%);
  opacity: 0.45;
}

.sticker-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  grid-template-rows: repeat(2, 36px);
  padding-bottom: 2px;
}

.comment-image-preview {
  position: relative;
  width: 96px;
}

.comment-image-preview.large {
  width: 132px;
}

.comment-image-preview img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
}

.comment-image-preview.large img {
  width: 132px;
  height: 96px;
}

.comment-image-preview button {
  position: absolute;
  top: 4px;
  right: 4px;
  color: white;
  background: rgba(16, 37, 31, 0.72);
  border: 0;
  border-radius: 999px;
  font-size: 11px;
}

.mention-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: var(--field);
  border-radius: var(--radius);
}

.mention-search-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mention-search-line strong {
  color: var(--forest);
  font-size: 13px;
}

.mention-search-line span {
  color: var(--muted);
  font-size: 12px;
}

.mention-list {
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}

.mention-list button {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 8px;
  color: var(--forest);
  text-align: left;
  background: var(--panel);
  border: 0;
  border-radius: var(--radius);
}

.mention-list strong,
.mention-list small {
  display: block;
}

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

.note-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #35413b;
  line-height: 1.7;
}

.note-list-collapsible {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.note-list-collapsible summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  color: var(--moss);
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 900;
}

.note-list-collapsible summary::-webkit-details-marker {
  display: none;
}

.note-list-collapsible summary span {
  color: var(--muted);
  font-size: 12px;
}

.note-list.muted {
  margin-top: 4px;
  color: var(--muted);
}

.note-list.muted li {
  color: var(--muted);
}

.team-view {
  margin: -12px -12px 0;
}

.satellite-nav-view {
  min-height: 100%;
  height: 100%;
  margin: 0;
  background: #17251d;
}

.satellite-nav-map {
  position: relative;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  background: #17251d;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.live-satellite-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #18251d;
  transform-origin: 50% 50%;
  transition: transform var(--nav-heading-transition, 0.28s) cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
  backface-visibility: hidden;
}

.android-navigation-canvas {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: #17251d;
  touch-action: none;
}

body.android-webview.navigation-canvas-mode .android-navigation-canvas {
  display: block;
}

body.android-webview.navigation-canvas-mode .live-satellite-map {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: none !important;
  transition: none;
}

body.android-webview.navigation-canvas-mode .navigation-vector-overlay {
  display: none;
}

body.android-webview.navigation-camera-mode .live-satellite-map {
  inset: -96%;
}

.live-satellite-map.navigation-heading-up {
  inset: -78%;
  transform: translateZ(0) rotate(var(--nav-map-bearing, 0deg));
}

body.android-webview.navigation-camera-mode .live-satellite-map.navigation-heading-up {
  inset: -96%;
  transform: translateZ(0) rotate(var(--nav-map-bearing, 0deg));
}

.live-satellite-map .leaflet-pane {
  z-index: 1;
}

.live-satellite-map .leaflet-container,
.live-satellite-map .leaflet-map-pane,
.live-satellite-map .leaflet-tile-pane {
  background: #17251d;
}

.live-satellite-map .leaflet-layer,
.live-satellite-map .leaflet-tile-container,
.live-satellite-map img.leaflet-tile {
  background: transparent;
}

.live-satellite-map img.satellite-base-tile,
.live-satellite-map img.leaflet-tile[src*="style=6"] {
  filter: brightness(1.16) contrast(1.03) saturate(1.05);
}

.live-satellite-map img.satellite-label-tile,
.live-satellite-map img.leaflet-tile[src*="ltype=11"],
.live-satellite-map img.leaflet-tile[src*="ltype=4"] {
  filter: none;
}

.live-satellite-map .leaflet-overlay-pane {
  z-index: 7;
}

.live-satellite-map .leaflet-route-casing-pane {
  z-index: 650 !important;
}

.live-satellite-map .leaflet-routeCasing-pane {
  z-index: 650 !important;
}

.live-satellite-map .leaflet-route-line-pane {
  z-index: 660 !important;
}

.live-satellite-map .leaflet-routeLine-pane {
  z-index: 660 !important;
}

.live-satellite-map .leaflet-routeHit-pane {
  z-index: 665 !important;
}

.live-satellite-map .leaflet-route-label-pane {
  z-index: 670 !important;
}

.live-satellite-map .leaflet-routeLabel-pane {
  z-index: 670 !important;
}

.ovital-leaflet-route-hit {
  cursor: pointer;
}

.live-satellite-map canvas.leaflet-zoom-animated {
  mix-blend-mode: normal;
}

.live-satellite-map .leaflet-marker-pane,
.live-satellite-map .leaflet-tooltip-pane {
  z-index: 690 !important;
}

.navigation-vector-overlay {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.navigation-vector-overlay.active {
  opacity: 1;
}

.navigation-vector-overlay svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.navigation-vector-casing,
.navigation-vector-line,
.navigation-vector-connector {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.navigation-vector-casing {
  stroke: rgba(255, 255, 255, 0.96);
}

.navigation-vector-line {
  stroke: #1976ff;
}

.navigation-vector-connector {
  stroke: #ff9b2f;
  stroke-width: 4;
  stroke-dasharray: 9 8;
}

.navigation-vector-vehicle circle {
  fill: #1976ff;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 4;
  filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.42));
}

.navigation-vector-vehicle path {
  fill: white;
  stroke: white;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

body.android-webview .navigation-vector-overlay.active + .satellite-nav-top ~ .map-quick-tools {
  transform: translateZ(0);
}

body.android-webview .live-satellite-map.android-navigation-vector-up .leaflet-routeCasing-pane,
body.android-webview .live-satellite-map.android-navigation-vector-up .leaflet-routeLine-pane,
body.android-webview .live-satellite-map.android-navigation-vector-up .leaflet-routeHit-pane,
body.android-webview .live-satellite-map.android-navigation-vector-up .leaflet-routeLabel-pane {
  opacity: 0;
}

.navigation-vehicle-marker {
  display: grid;
  place-items: center;
}

.navigation-vehicle-marker span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  background: #1976ff;
  border: 4px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.4), 0 0 0 5px rgba(25, 118, 255, 0.22);
  transform: rotate(var(--nav-bearing, 0deg));
  transition: transform var(--nav-heading-transition, 0.28s) cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.live-satellite-map.navigation-heading-up .navigation-vehicle-marker span {
  transform: rotate(var(--nav-bearing, 0deg));
}

.navigation-vehicle-marker svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: currentColor;
  transform: translateY(-1px);
}

.navigation-vehicle-marker svg path {
  fill: currentColor;
  stroke: currentColor !important;
}

.route-reality-focus-marker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}

.route-reality-focus-marker span {
  width: 20px;
  height: 20px;
  background: #f04f3f;
  border: 3px solid #fffaf0;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36);
  transform: rotate(-45deg);
}

.route-reality-focus-marker strong {
  display: inline-block;
  max-width: 86px;
  padding: 5px 8px;
  color: var(--forest-dark);
  background: #fffaf0;
  border: 1px solid rgba(63, 118, 89, 0.24);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ovital-leaflet-route {
  stroke-opacity: 1 !important;
  filter:
    drop-shadow(0 0 2px white)
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.85));
}

.ovital-leaflet-route-casing {
  stroke: #ffffff !important;
  stroke-opacity: 1 !important;
  filter:
    drop-shadow(0 0 3px rgba(0, 0, 0, 0.92))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.75));
}

.ovital-leaflet-route.highlighted {
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.72))
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.62));
}

.route-endpoint-marker {
  display: grid;
  place-items: center;
  color: white;
  background: var(--orange);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.42);
  font-size: 13px;
  font-weight: 900;
}

.route-endpoint-marker span {
  transform: translateY(-1px);
}

.province-leaflet-text-label,
.ovital-leaflet-text-label,
.route-name-leaflet-text-label {
  width: auto !important;
  height: auto !important;
  background: transparent;
  border: 0;
  pointer-events: auto;
}

.province-leaflet-text-label span,
.ovital-leaflet-text-label span,
.route-name-leaflet-text-label span {
  display: inline-block;
  max-width: 150px;
  overflow: hidden;
  color: white;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-shadow:
    -1px -1px 1px rgba(0, 0, 0, 0.82),
    1px -1px 1px rgba(0, 0, 0, 0.82),
    -1px 1px 1px rgba(0, 0, 0, 0.82),
    1px 1px 1px rgba(0, 0, 0, 0.82);
  transform: translate(7px, -50%);
  white-space: nowrap;
}

.route-name-leaflet-text-label span {
  max-width: 190px;
  padding: 2px 5px;
  color: #ffffff;
  background: rgba(8, 18, 14, 0.62);
  border-radius: 6px;
  font-size: 11px;
  transform: translate(-50%, -50%);
}

.map-adaptive-label {
  pointer-events: none;
}

.map-adaptive-label span {
  max-width: 220px;
  padding: 1px 5px;
  color: #ffffff;
  background: rgba(5, 14, 10, 0.42);
  border-radius: 6px;
  letter-spacing: 0;
  transform: translate(-50%, -50%);
}

.map-adaptive-label-province span {
  padding: 2px 8px;
  background: rgba(5, 14, 10, 0.26);
  font-size: 20px;
  text-shadow:
    -2px -2px 2px rgba(0, 0, 0, 0.88),
    2px -2px 2px rgba(0, 0, 0, 0.88),
    -2px 2px 2px rgba(0, 0, 0, 0.88),
    2px 2px 2px rgba(0, 0, 0, 0.88);
}

.map-adaptive-label-city span,
.map-adaptive-label-county span {
  font-size: 14px;
  background: rgba(5, 14, 10, 0.34);
}

.map-adaptive-label-town span,
.map-adaptive-label-road span {
  font-size: 12px;
  background: rgba(5, 14, 10, 0.48);
}

.map-adaptive-label-poi span {
  font-size: 11px;
  background: rgba(5, 14, 10, 0.58);
}

.ovital-leaflet-text-label.highlighted span {
  color: #fff7d6;
  font-size: 13px;
}

.ovital-leaflet-marker {
  display: grid;
  place-items: center;
}

.ovital-leaflet-marker span {
  width: 14px;
  height: 14px;
  background: #f030d5;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.province-leaflet-marker {
  display: grid;
  place-items: center;
}

.province-leaflet-marker span {
  width: 13px;
  height: 13px;
  background: var(--orange);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.user-leaflet-marker {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid rgba(255, 255, 255, 0.98);
  border-radius: 50%;
  box-shadow:
    0 0 0 5px rgba(42, 126, 255, 0.28),
    0 2px 10px rgba(0, 0, 0, 0.45);
}

.user-leaflet-marker span {
  width: 16px;
  height: 16px;
  background: #2378ff;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.track-user-leaflet-marker {
  position: relative;
  width: 104px !important;
  height: 52px !important;
  pointer-events: none;
}

.track-user-leaflet-marker .pulse {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255, 143, 31, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  animation: trackLocationPulse 1.65s ease-out infinite;
  box-shadow: 0 0 0 1px rgba(255, 143, 31, 0.38);
}

.track-user-leaflet-marker .core {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 24px;
  height: 24px;
  background: #ff2bd6;
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(11, 21, 17, 0.55),
    0 5px 15px rgba(0, 0, 0, 0.42);
}

.track-user-leaflet-marker strong {
  position: absolute;
  top: 11px;
  left: 40px;
  max-width: 62px;
  padding: 5px 7px;
  overflow: hidden;
  color: #ffffff;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(11, 21, 17, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
}

@keyframes trackLocationPulse {
  0% {
    opacity: 0.9;
    transform: scale(0.72);
  }

  70% {
    opacity: 0.18;
    transform: scale(1.45);
  }

  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

.route-direction-arrow-marker {
  display: grid;
  place-items: center;
  width: 24px !important;
  height: 24px !important;
  pointer-events: none;
}

.route-direction-arrow-marker span {
  display: block;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.64);
  clip-path: polygon(50% 0, 100% 100%, 50% 72%, 0 100%);
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.62))
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.52));
  transform-origin: center;
}

.route-direction-arrow-marker.selected span {
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.route-stop-marker {
  display: grid;
  place-items: center;
  width: 16px !important;
  height: 16px !important;
  pointer-events: none;
}

.route-stop-marker span {
  width: 11px;
  height: 11px;
  background: #ff8f1f;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(11, 21, 17, 0.34),
    0 2px 6px rgba(0, 0, 0, 0.42);
}

.route-edit-point-marker {
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 2px solid #f08a25;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  box-shadow:
    0 0 0 3px rgba(240, 138, 37, 0.2),
    0 2px 7px rgba(0, 0, 0, 0.52);
}

.route-edit-point-marker:active {
  cursor: grabbing;
}

.route-edit-point-marker span {
  color: var(--forest);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.route-edit-point-marker.selected {
  border-color: #2378ff;
  box-shadow:
    0 0 0 5px rgba(35, 120, 255, 0.28),
    0 3px 12px rgba(0, 0, 0, 0.58);
}

.route-edit-point-marker.endpoint {
  background: var(--forest);
  border-color: #ffffff;
}

.route-edit-point-marker.endpoint span {
  color: white;
}

.route-point-menu-marker {
  width: auto !important;
  height: auto !important;
  background: transparent;
  border: 0;
}

.route-point-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 112px;
  padding: 8px;
  color: white;
  background: rgba(8, 30, 23, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.route-point-menu::after {
  position: absolute;
  bottom: -7px;
  left: 50%;
  width: 13px;
  height: 13px;
  content: "";
  background: rgba(8, 30, 23, 0.94);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transform: translateX(-50%) rotate(45deg);
}

.route-point-menu strong {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.route-point-menu button {
  position: relative;
  z-index: 1;
  min-height: 30px;
  color: var(--forest);
  background: white;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.route-point-menu button:first-of-type {
  color: white;
  background: #ba3b30;
}

.route-point-menu button:disabled {
  color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.ovital-leaflet-label,
.province-leaflet-label,
.user-leaflet-label {
  padding: 0;
  color: white;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 13px;
  font-weight: 900;
  text-shadow:
    -1px -1px 1px rgba(0, 0, 0, 0.8),
    1px -1px 1px rgba(0, 0, 0, 0.8),
    -1px 1px 1px rgba(0, 0, 0, 0.8),
    1px 1px 1px rgba(0, 0, 0, 0.8);
}

.user-leaflet-label {
  color: #d8efff;
}

.province-leaflet-label {
  color: #ffe6bd;
}

.map-load-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: white;
  text-align: center;
  background: #17251d;
  font-weight: 900;
}

.satellite-nav-map::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background: none;
  pointer-events: none;
}

.satellite-tile-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(255, 255, 255, 0.2) 50%, transparent 50.2%),
    linear-gradient(transparent 0 35.8%, rgba(255, 255, 255, 0.15) 36%, transparent 36.2% 71.8%, rgba(255, 255, 255, 0.13) 72%, transparent 72.2%),
    repeating-linear-gradient(0deg, transparent 0 78px, rgba(255, 255, 255, 0.05) 79px),
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(255, 255, 255, 0.05) 79px);
  pointer-events: none;
}

.satellite-nav-top {
  position: absolute;
  top: 28px;
  right: 14px;
  left: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  padding: 8px;
  color: white;
  background: rgba(12, 23, 18, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.satellite-nav-top p,
.satellite-nav-top h1 {
  margin: 0;
  letter-spacing: 0;
}

.satellite-nav-top p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  font-weight: 900;
}

.satellite-nav-top h1 {
  margin-top: 2px;
  overflow: hidden;
  font-size: 20px;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sat-close,
.city-select,
.layer-button {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-weight: 900;
}

.sat-close {
  display: inline-flex;
  gap: 4px;
  width: auto;
  min-width: 70px;
  padding: 0 10px;
  font-size: 13px;
}

.sat-close svg {
  width: 18px;
  height: 18px;
}

.city-select {
  display: flex;
  gap: 14px;
  min-width: 78px;
  max-width: 92px;
  padding: 0 8px;
  font-size: 15px;
}

.city-select select {
  width: 100%;
  color: white;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-weight: 900;
}

.city-select option {
  color: var(--forest);
}

.layer-button svg {
  width: 22px;
  height: 22px;
}

.layer-button.active {
  color: var(--orange);
}

.satellite-search {
  position: absolute;
  top: 102px;
  right: 16px;
  left: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(11, 21, 17, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(14px);
}

.satellite-search input {
  min-width: 0;
  color: white;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-weight: 800;
  ime-mode: active;
  user-select: text;
  -webkit-user-select: text;
  -webkit-tap-highlight-color: transparent;
}

.satellite-search input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.map-search-suggestions {
  position: absolute;
  top: 152px;
  right: 14px;
  left: 14px;
  z-index: 31;
  display: grid;
  gap: 6px;
  max-height: 286px;
  padding: 8px;
  overflow-y: auto;
  background: rgba(8, 20, 15, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
}

.map-search-suggestions button {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 4px 8px;
  min-height: 48px;
  padding: 8px;
  color: white;
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 8px;
}

.map-search-suggestions span {
  grid-row: span 2;
  align-self: center;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 30px;
  padding: 0 8px;
  color: var(--forest);
  background: var(--orange);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.map-search-suggestions strong,
.map-search-suggestions em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-search-suggestions strong {
  font-size: 13px;
  font-weight: 900;
}

.map-search-suggestions em {
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.map-search-empty {
  display: grid;
  gap: 6px;
  padding: 10px;
  color: white;
}

.map-search-empty strong {
  font-size: 14px;
  font-weight: 900;
}

.map-search-empty p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.map-search-empty button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 32px;
  padding: 0 12px;
  color: var(--forest);
  background: var(--orange);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.map-route-scope-control {
  position: absolute;
  top: 158px;
  left: 50%;
  z-index: 20;
  display: grid;
  gap: 5px;
  width: clamp(138px, 44vw, 188px);
  transform: translateX(-50%);
}

.map-route-scope-segments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  background: rgba(11, 21, 17, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.map-route-scope-segments button {
  min-width: 0;
  min-height: 32px;
  padding: 0 4px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.map-route-scope-segments button.active {
  color: #17362b;
  background: #ffffff;
}

.map-route-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.map-route-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.map-route-legend i {
  width: 20px;
  height: 3px;
  background: #35e241;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.map-route-legend i.mine {
  height: 2px;
  background: repeating-linear-gradient(90deg, #ff8f1f 0 7px, transparent 7px 11px);
  box-shadow: none;
}

.satellite-tag-button {
  position: absolute;
  top: 160px;
  right: 16px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  color: var(--forest);
  background: var(--orange);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  font-size: 12px;
  font-weight: 900;
  touch-action: manipulation;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.satellite-tag-button.long-pressing {
  transform: scale(0.94);
  box-shadow: 0 0 0 5px rgba(255, 143, 31, 0.25), 0 8px 18px rgba(0, 0, 0, 0.22);
}

.satellite-tag-panel {
  position: absolute;
  top: 204px;
  right: 16px;
  z-index: 21;
  display: grid;
  grid-template-columns: repeat(2, minmax(70px, 1fr));
  gap: 8px;
  width: min(220px, calc(100% - 28px));
  padding: 10px;
  background: rgba(11, 21, 17, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.satellite-tag-panel button {
  min-height: 34px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.satellite-tag-panel button.active {
  color: var(--forest);
  background: var(--orange);
}

.map-quick-tools {
  position: absolute;
  top: 160px;
  left: 16px;
  z-index: 20;
  display: grid;
  gap: 7px;
  width: 78px;
}

.map-quick-tools button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 9px;
  color: white;
  background: rgba(11, 21, 17, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.map-quick-tools strong {
  line-height: 1;
}

.map-quick-tools svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.map-quick-tools button.voice-mode.normal {
  color: var(--forest);
  background: rgba(255, 255, 255, 0.92);
}

.map-quick-tools button.voice-mode.brief {
  color: white;
  background: rgba(20, 108, 66, 0.92);
}

.map-quick-tools button.voice-mode.mute {
  color: white;
  background: rgba(198, 61, 48, 0.9);
}

.map-quick-tools button.route-direction-toggle {
  color: white;
  background: rgba(11, 21, 17, 0.82);
}

.map-quick-tools button.route-direction-toggle.active {
  color: var(--forest);
  background: var(--orange);
}

.map-quick-tools button.track-record-toggle {
  color: white;
  background: rgba(47, 143, 106, 0.92);
}

.map-quick-tools button.track-record-toggle.recording {
  color: white;
  background: rgba(198, 61, 48, 0.92);
}

.map-quick-tools button.track-record-toggle.paused {
  color: var(--forest);
  background: rgba(255, 255, 255, 0.92);
}

.track-recorder-floating {
  position: absolute;
  top: 300px;
  left: 16px;
  z-index: 24;
  display: grid;
  gap: 8px;
  width: min(290px, calc(100% - 96px));
  padding: 8px;
  color: white;
  background: rgba(11, 21, 17, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.track-recorder-floating.collapsed {
  width: min(260px, calc(100% - 96px));
  padding: 4px;
}

.track-recorder-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 5px 6px 5px 8px;
  color: white;
  text-align: left;
  background: transparent;
  border: 0;
}

.track-recorder-summary-copy {
  min-width: 0;
}

.track-recorder-summary-copy small,
.track-recorder-summary-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-recorder-summary > strong {
  margin: 0;
  font-size: 15px;
  white-space: nowrap;
}

.track-recorder-summary .track-recorder-chevron {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.82);
  transition: transform 160ms ease;
}

.track-recorder-summary .track-recorder-chevron svg {
  width: 17px;
  height: 17px;
}

.track-recorder-floating.expanded .track-recorder-chevron {
  transform: rotate(180deg);
}

.track-recorder-floating.paused {
  background: rgba(45, 48, 42, 0.9);
}

.track-recorder-floating small,
.track-recorder-floating span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
}

.track-recorder-floating strong {
  display: block;
  margin: 2px 0;
  font-size: 18px;
  line-height: 1.15;
}

.track-style-controls {
  display: grid;
  gap: 7px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.track-style-controls label {
  display: grid;
  gap: 5px;
}

.track-style-controls label span,
.track-arrow-density > span {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 900;
}

.track-style-controls input {
  width: 100%;
  accent-color: var(--orange);
}

.track-arrow-density,
.track-color-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.track-arrow-density button {
  min-width: 32px;
  min-height: 28px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.track-arrow-density button.active {
  color: var(--forest);
  background: var(--orange);
  border-color: transparent;
}

.track-color-swatches button {
  width: 26px;
  height: 26px;
  background: var(--swatch);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.22);
}

.track-color-swatches button.active {
  border-color: #ffffff;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

.track-recorder-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.track-recorder-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  color: var(--forest);
  background: white;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.track-recorder-actions button.danger {
  color: white;
  background: #ba3b30;
}

.track-follow-return {
  position: absolute;
  right: 72px;
  bottom: 108px;
  z-index: 26;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  max-width: calc(100% - 104px);
  padding: 0 14px;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(47, 143, 106, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.track-follow-return svg {
  width: 17px;
  height: 17px;
}

.track-location-bubble {
  position: absolute;
  right: 88px;
  bottom: 34px;
  left: 16px;
  z-index: 25;
  display: grid;
  gap: 3px;
  max-width: 300px;
  padding: 9px 11px;
  color: #ffffff;
  background: rgba(11, 21, 17, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

.track-location-bubble strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
}

.track-location-bubble span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
}

.map-route-width-floating {
  position: absolute;
  top: 226px;
  right: auto;
  left: 50%;
  z-index: 20;
  display: grid;
  gap: 5px;
  width: clamp(138px, 44vw, 188px);
  min-height: 38px;
  padding: 6px 10px;
  color: white;
  background: rgba(11, 21, 17, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.map-route-width-floating span {
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.map-route-width-floating input {
  width: 100%;
  height: 4px;
  accent-color: var(--orange);
}

.map-route-tone-floating {
  position: absolute;
  right: auto;
  bottom: 26px;
  left: 50%;
  z-index: 20;
  width: min(300px, calc(100% - 72px));
  max-width: none;
  margin: 0;
  padding: 5px;
  background: rgba(11, 21, 17, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.ovital-routes {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ovital-routes path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  vector-effect: non-scaling-stroke;
  filter:
    drop-shadow(0 0 1px white)
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6));
}

.ovital-routes .blue {
  stroke: #123bd3;
  stroke-width: 2.5;
}

.ovital-routes .green {
  stroke: #35e241;
}

.ovital-routes .red {
  stroke: #f21d23;
}

.ovital-routes .magenta {
  stroke: #ed35d6;
}

.ovital-point {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 210px;
  padding: 0;
  color: white;
  text-align: left;
  background: transparent;
  border: 0;
  transform: translate(-8px, -8px);
}

.ovital-point i {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background: #f030d5;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.ovital-point span {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.18;
  text-shadow:
    -1px -1px 1px rgba(0, 0, 0, 0.75),
    1px -1px 1px rgba(0, 0, 0, 0.75),
    -1px 1px 1px rgba(0, 0, 0, 0.75),
    1px 1px 1px rgba(0, 0, 0, 0.75);
  white-space: nowrap;
}

.current-map-dot {
  position: absolute;
  right: 23%;
  bottom: 18%;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.current-map-dot span {
  width: 20px;
  height: 20px;
  background: #48a6f3;
  border-radius: 50%;
}

.ovital-route-card {
  position: absolute;
  right: 14px;
  bottom: 70px;
  left: 14px;
  z-index: 20;
  display: none;
  gap: 8px;
  padding: 8px;
  color: white;
  background: rgba(12, 23, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.ovital-route-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 4px;
  color: white;
  text-align: left;
  background: transparent;
  border: 0;
}

.ovital-route-summary span,
.ovital-route-summary small,
.ovital-route-summary strong {
  display: block;
  min-width: 0;
}

.ovital-route-summary small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
}

.ovital-route-summary strong {
  margin-top: 2px;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ovital-route-summary em {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: var(--forest);
  background: white;
  border-radius: 999px;
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.ovital-route-card > p {
  margin: -2px 4px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.4;
}

.ovital-route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 4px 2px;
}

.ovital-route-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  margin-top: 4px;
  padding: 0 12px;
  color: white;
  background: var(--forest);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.ovital-route-actions button:first-child {
  background: var(--orange);
}

.route-width-control,
.route-style-editor {
  display: grid;
  gap: 8px;
}

.route-width-control {
  margin: 0 4px 2px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.route-width-control span,
.route-style-editor span {
  font-size: 12px;
  font-weight: 900;
}

.route-width-control input,
.route-style-editor input[type="range"] {
  width: 100%;
  accent-color: var(--orange);
}

.route-tone-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: -2px 4px 2px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.route-tone-control button {
  min-height: 30px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.route-tone-control button.active {
  color: var(--forest);
  background: #ffffff;
}

.map-route-tone-floating button {
  min-height: 34px;
  color: rgba(255, 255, 255, 0.82);
}

.map-route-tone-floating button.active {
  color: var(--forest);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 143, 31, 0.22);
  transform: scale(1.04);
}

.route-style-editor {
  grid-template-columns: minmax(92px, 0.6fr) minmax(0, 1fr);
  margin-top: 12px;
}

.route-style-editor label {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  background: var(--field);
  border-radius: var(--radius);
}

.route-style-editor input[type="color"] {
  width: 100%;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
}

.map-route-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.map-route-summary div,
.map-route-summary button {
  min-width: 0;
  padding: 10px;
  background: var(--field);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  text-align: left;
}

.map-route-summary button.clickable {
  cursor: pointer;
  border-color: rgba(47, 143, 106, 0.22);
}

.map-route-summary-point {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 94px;
  cursor: pointer;
}

.map-route-summary-point .mini-map-canvas {
  grid-row: 1 / span 2;
  height: 74px;
}

.map-route-summary-point strong {
  margin-top: 0;
  color: var(--forest);
  font-size: 14px;
  line-height: 1.3;
}

.map-route-summary-point small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.publish-route-summary {
  margin-top: 0;
}

.map-route-summary .wide {
  grid-column: 1 / -1;
}

.map-route-summary span,
.map-route-summary strong {
  display: block;
}

.map-route-summary span {
  color: var(--muted);
  font-size: 12px;
}

.map-route-summary strong {
  margin-top: 3px;
  color: var(--forest);
  font-size: 14px;
  word-break: break-word;
}

.route-detail-sheet {
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.route-edit-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  background: #eef3ec;
  border: 1px solid rgba(63, 118, 89, 0.18);
  border-radius: var(--radius);
}

.route-edit-panel span,
.route-edit-panel strong {
  display: block;
}

.route-edit-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.route-edit-panel strong {
  margin-top: 3px;
  color: var(--forest);
  font-size: 14px;
  word-break: break-word;
}

.route-edit-actions,
.route-manage-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.route-edit-actions button,
.route-manage-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px;
  color: var(--forest);
  background: var(--field);
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
}

.route-edit-actions button:disabled {
  color: #9aa69d;
  background: #f0f2ed;
}

.route-manage-actions button:first-child {
  color: white;
  background: var(--forest);
}

.route-manage-actions .danger,
.map-option.danger {
  color: white;
  background: #ba3b30;
}

.route-edit-actions svg,
.route-manage-actions svg {
  width: 18px;
  height: 18px;
}

.route-detail-sheet .route-manage-actions {
  margin: 12px -4px 0;
  padding: 8px;
  background: rgba(252, 251, 246, 0.94);
  border: 1px solid rgba(63, 118, 89, 0.14);
  border-radius: var(--radius);
}

.route-detail-sheet .route-detail-actions {
  margin: 10px -4px 0;
  padding: 8px;
  background: rgba(252, 251, 246, 0.96);
  border: 1px solid rgba(63, 118, 89, 0.14);
  border-radius: var(--radius);
}

.map-zoom {
  position: absolute;
  top: 324px;
  right: 14px;
  z-index: 22;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 7px 4px;
  background: rgba(11, 21, 17, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

.map-zoom button {
  width: 26px;
  height: 26px;
  color: var(--forest);
  background: white;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.map-zoom input {
  width: 82px;
  height: 6px;
  accent-color: white;
  appearance: none;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  outline: 0;
  transform: rotate(-90deg);
  transform-origin: center;
  margin: 38px -29px;
}

.map-zoom input::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  appearance: none;
  background: white;
  border: 2px solid rgba(16, 37, 31, 0.9);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.map-zoom input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: white;
  border: 2px solid rgba(16, 37, 31, 0.9);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.map-zoom button + button {
  border-top: 0;
}

.route-edit-floating {
  position: absolute;
  right: 12px;
  bottom: 18px;
  left: 12px;
  z-index: 46;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 10px;
  color: white;
  background: rgba(8, 30, 23, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.route-edit-floating[hidden] {
  display: none;
}

.route-edit-floating small,
.route-edit-floating span,
.route-edit-floating p {
  display: block;
  margin: 0;
}

.route-edit-floating small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 900;
}

.route-edit-floating strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-edit-floating span,
.route-edit-floating p {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  line-height: 1.35;
}

.route-edit-toolbar-actions {
  display: grid;
  grid-template-columns: minmax(64px, 0.7fr) minmax(122px, 1.18fr) minmax(104px, 1fr);
  gap: 8px;
}

.route-edit-toolbar-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  color: var(--forest);
  background: var(--panel);
  border: 0;
  border-radius: 8px;
  line-height: 1.15;
  font-weight: 900;
  white-space: normal;
}

.route-edit-toolbar-actions button:disabled {
  color: #a0aaa2;
  opacity: 0.62;
}

.route-edit-toolbar-actions button.save-continue {
  color: white;
  background: var(--moss);
}

.route-edit-toolbar-actions button:last-child {
  color: white;
  background: var(--orange);
}

.route-edit-toolbar-actions svg {
  width: 17px;
  height: 17px;
}

.native-navigation-overlay {
  position: absolute;
  right: 12px;
  bottom: 14px;
  left: 12px;
  z-index: 48;
  display: grid;
  gap: 8px;
  padding: 10px;
  color: white;
  background: rgba(7, 22, 17, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

body.android-webview .native-navigation-overlay {
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 10px;
  gap: 7px;
  padding: 9px;
  border-radius: 16px;
}

.native-navigation-overlay.compact {
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
}

.native-navigation-overlay.compact .nav-compact-main {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.native-navigation-overlay.compact small,
.native-navigation-overlay.compact span {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.native-navigation-overlay.compact strong {
  display: block;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.native-navigation-overlay.compact button {
  min-width: 64px;
  min-height: 42px;
  color: white;
  background: #ba3b30;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.native-navigation-overlay.compact .nav-turn-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.native-navigation-overlay.compact .nav-turn-icon svg {
  width: 26px;
  height: 26px;
}

body.android-webview .map-route-tone-floating {
  bottom: calc(74px + env(safe-area-inset-bottom));
}

.nav-road-sign {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 2px;
  align-items: center;
  padding: 10px;
  background: linear-gradient(135deg, rgba(20, 108, 66, 0.92), rgba(14, 47, 37, 0.96));
  border-radius: 14px;
}

.nav-road-sign.imminent {
  grid-template-columns: 70px minmax(0, 1fr);
  background: linear-gradient(135deg, rgba(255, 143, 31, 0.98), rgba(137, 43, 28, 0.96));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18), 0 14px 30px rgba(255, 143, 31, 0.28);
}

.nav-road-sign.imminent .nav-turn-icon {
  width: 58px;
  height: 58px;
  color: #c63d30;
  border-radius: 18px;
}

.nav-road-sign.imminent .nav-turn-icon svg {
  width: 36px;
  height: 36px;
}

.nav-road-sign.imminent strong {
  font-size: 28px;
}

.nav-turn-icon,
.nav-lane-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
}

.nav-turn-icon svg,
.nav-lane-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2.8;
}

.nav-turn-icon svg path,
.nav-lane-icon svg path {
  stroke: currentColor !important;
}

.nav-sign-copy {
  min-width: 0;
}

.nav-road-sign small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 900;
}

.nav-road-sign strong {
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.nav-road-sign span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-lane-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.nav-lane-icon {
  width: 34px;
  height: 34px;
  color: white;
  background: rgba(255, 143, 31, 0.92);
  border-radius: 11px;
}

.nav-lane-icon svg {
  width: 21px;
  height: 21px;
}

.nav-lane-card small,
.nav-lane-card span {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-lane-card strong {
  display: block;
  overflow: hidden;
  margin: 1px 0;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-lane-strip {
  display: grid;
  grid-template-columns: repeat(3, 18px);
  gap: 5px;
  align-items: end;
}

.nav-lane-strip i {
  position: relative;
  display: block;
  width: 18px;
  height: 34px;
  border-right: 2px solid rgba(255, 255, 255, 0.35);
  border-left: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.nav-lane-strip i::after {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 8px;
  height: 18px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
}

.nav-lane-strip i[data-lane="straight"]::after {
  right: 5px;
  border-top: 0;
}

.nav-lane-strip i[data-lane="left"]::after,
.nav-lane-strip i[data-lane="uturn"]::after {
  right: auto;
  left: 3px;
  border-right: 0;
  border-left: 2px solid currentColor;
}

.nav-lane-strip i.active {
  color: #ffffff;
  background: rgba(255, 143, 31, 0.92);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.nav-progress-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.nav-progress-card div {
  display: grid;
  gap: 2px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.nav-progress-card small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
}

.nav-progress-card strong {
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.15;
}

.nav-speed-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.nav-speed-controls[hidden] {
  display: none;
}

.nav-speed-controls button,
.nav-control-row button {
  min-height: 38px;
  color: white;
  background: rgba(255, 255, 255, 0.13);
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.nav-speed-controls button.active {
  color: var(--forest);
  background: white;
}

.nav-control-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.nav-control-row button:only-child {
  grid-column: 1 / -1;
}

.nav-control-row button[data-action="continue-live-navigation"] {
  background: rgba(20, 108, 66, 0.92);
}

.nav-control-row button:last-child {
  background: rgba(198, 61, 48, 0.9);
}

.map-stage {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: #dfe3d8;
}

.map-texture {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(30deg, rgba(255, 255, 255, 0.28) 12%, transparent 12% 48%, rgba(255, 255, 255, 0.2) 48% 50%, transparent 50%),
    linear-gradient(130deg, rgba(63, 118, 89, 0.22), rgba(215, 168, 59, 0.22)),
    url("https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=1000&q=80")
      center/cover;
  filter: saturate(0.86);
}

.map-stage::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(transparent 0 23px, rgba(16, 37, 31, 0.08) 24px),
    linear-gradient(90deg, transparent 0 23px, rgba(16, 37, 31, 0.08) 24px);
  background-size: 24px 24px;
  mix-blend-mode: multiply;
}

.route-line {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.route-line path {
  fill: none;
  stroke: var(--orange);
  stroke-dasharray: 4 4;
  stroke-linecap: round;
  stroke-width: 4;
}

.member-pin {
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--pin);
  border: 3px solid white;
  border-radius: 50% 50% 50% 0;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.member-pin span {
  font-size: 12px;
  font-weight: 900;
  transform: rotate(45deg);
}

.map-floating {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--forest);
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.map-floating.top {
  top: 12px;
  right: 12px;
  left: 12px;
  min-height: 64px;
  padding: 10px 12px;
}

.map-floating.top strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
}

.map-floating.status {
  right: 12px;
  bottom: 12px;
  left: 12px;
  min-height: 44px;
  padding: 9px 12px;
  color: #35413b;
  font-size: 12px;
}

.nav-panel,
.team-panel,
.chat-panel {
  margin-right: 12px;
  margin-left: 12px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 12px;
  padding: 4px;
  background: var(--field);
  border-radius: var(--radius);
}

.segmented button {
  min-height: 36px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.segmented button.active {
  color: var(--forest);
  background: var(--panel);
  box-shadow: 0 4px 16px rgba(30, 38, 32, 0.1);
  font-weight: 900;
}

.join-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.join-row input,
.chat-composer input,
.search-field input {
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid transparent;
  border-radius: var(--radius);
  outline: none;
}

.join-row input {
  flex: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.member-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.member-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--field);
  border-radius: var(--radius);
}

.pin-dot {
  width: 12px;
  height: 12px;
  background: var(--pin);
  border-radius: 50%;
}

.member-row em {
  color: var(--moss);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.chat-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.chat-row.mine {
  grid-template-columns: minmax(0, 1fr) auto;
}

.chat-row.mine .chat-avatar {
  grid-column: 2;
}

.chat-row.mine .chat-message {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  background: #ddeddf;
}

.chat-avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: white;
  background: var(--forest);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.chat-row.mine .chat-avatar {
  background: #e18431;
}

.chat-message {
  max-width: min(82%, 320px);
  padding: 9px 10px;
  background: var(--field);
  border-radius: var(--radius);
}

.chat-name {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}

.chat-message p {
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.chat-media {
  display: block;
  width: min(178px, 100%);
  margin-top: 7px;
  object-fit: cover;
  background: #0f241f;
  border-radius: 7px;
}

.chat-media.image {
  aspect-ratio: 4 / 3;
}

.chat-media.video {
  max-height: 190px;
}

.chat-message .voice-message {
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.62);
}

.voice-auto-play {
  display: block;
  margin-top: 6px;
  color: var(--moss);
  font-size: 11px;
  font-weight: 900;
}

.chat-composer {
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  gap: 6px;
  margin-top: 12px;
}

.chat-composer .icon-button {
  width: 34px;
  height: 38px;
}

.team-recording-tip {
  margin-top: 10px;
}

.publish-view {
  display: grid;
  gap: 14px;
}

.publish-head {
  padding: 16px;
  color: white;
  background:
    linear-gradient(130deg, rgba(16, 37, 31, 0.95), rgba(63, 118, 89, 0.8)),
    url("https://images.unsplash.com/photo-1473580044384-7ba9967e16a0?auto=format&fit=crop&w=900&q=80")
      center/cover;
  border-radius: var(--radius);
}

.publish-head h1 {
  margin: 4px 0 8px;
  font-size: 24px;
  letter-spacing: 0;
}

.publish-head p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.publish-head .publish-scope-note {
  margin-top: 10px;
  padding: 9px 11px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(7, 24, 18, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 13px;
}

.publish-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.publish-actions button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 12px;
  min-height: 78px;
  padding: 14px;
  color: var(--ink);
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.publish-actions svg {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  color: var(--moss);
}

.publish-actions small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-actions strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-helper-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  color: var(--ink);
  background: #f3f7ef;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.publish-helper-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.publish-helper-head div {
  display: grid;
  gap: 3px;
}

.publish-helper-head span,
.publish-helper-head em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.publish-helper-head strong {
  font-size: 18px;
  line-height: 1.2;
}

.publish-helper-head em {
  max-width: 45%;
  padding-top: 2px;
  text-align: right;
}

.publish-helper-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.publish-helper-steps span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(93, 135, 105, 0.18);
  border-radius: 8px;
}

.publish-helper-steps i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--muted);
  background: #e2e9df;
  border-radius: 50%;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.publish-helper-steps strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-helper-steps small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-helper-steps .done i {
  color: white;
  background: var(--forest);
}

.publish-helper-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 8px;
}

.publish-helper-actions button {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  color: var(--forest-dark);
  background: #fffdf6;
  border: 1px solid rgba(93, 135, 105, 0.2);
  border-radius: var(--radius);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.publish-helper-actions .primary {
  color: white;
  background: var(--forest);
  border-color: var(--forest);
}

.publish-helper-actions svg {
  width: 17px;
  height: 17px;
}

.publish-media-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.publish-media-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.publish-media-actions button,
.publish-media-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  color: white;
  background: var(--forest);
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
}

.publish-media-actions button:nth-child(2) {
  color: var(--ink);
  background: var(--field);
}

.publish-media-actions svg,
.publish-media-empty svg {
  width: 18px;
  height: 18px;
}

.publish-media-grid {
  display: grid;
  gap: 10px;
}

.publish-media-card {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  background: var(--field);
  border-radius: var(--radius);
}

.publish-media-preview {
  width: 92px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0e241d;
  border-radius: calc(var(--radius) - 2px);
}

.publish-media-preview img,
.publish-media-preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.publish-media-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.publish-media-meta strong,
.publish-media-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-media-meta strong {
  color: var(--ink);
  font-size: 13px;
}

.publish-media-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.publish-media-card > button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #be3b2f;
  background: rgba(190, 59, 47, 0.1);
  border: 0;
  border-radius: 50%;
}

.publish-media-card > button svg {
  width: 16px;
  height: 16px;
}

.publish-media-empty {
  width: 100%;
  color: var(--forest);
  background: rgba(47, 143, 106, 0.12);
  border: 1px dashed rgba(47, 143, 106, 0.45);
}

.publish-media-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.publish-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.publish-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.publish-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.publish-form input,
.publish-form textarea,
.publish-form select {
  width: 100%;
  min-width: 0;
  padding: 0 12px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid transparent;
  border-radius: var(--radius);
  outline: none;
  font: inherit;
  font-weight: 800;
}

.publish-form input,
.publish-form select {
  height: 42px;
}

.publish-form select {
  appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 17px, calc(100% - 12px) 17px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.publish-form input[readonly] {
  color: var(--forest);
  background: rgba(47, 143, 106, 0.1);
}

.publish-form textarea {
  min-height: 104px;
  padding-top: 10px;
  resize: vertical;
  line-height: 1.5;
}

.publish-auto-summary {
  overflow: hidden;
  background: var(--field);
  border: 1px solid rgba(63, 118, 89, 0.16);
  border-radius: var(--radius);
}

.publish-auto-summary summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  list-style: none;
}

.publish-auto-summary summary::-webkit-details-marker {
  display: none;
}

.publish-auto-summary summary strong {
  overflow: hidden;
  color: var(--forest-dark);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-auto-summary .map-route-summary {
  margin: 0;
  padding: 0 10px 10px;
  background: transparent;
  border: 0;
}

.route-auto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.route-auto-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  background: var(--field);
  border: 1px solid transparent;
  border-radius: var(--radius);
}

button.route-auto-card {
  font: inherit;
  cursor: pointer;
}

.route-auto-card.clickable {
  border-color: rgba(47, 143, 106, 0.22);
}

.route-auto-card span,
.publish-choice-block > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.route-auto-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--forest-dark);
  font-size: 14px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.route-auto-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.route-auto-card em {
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.route-auto-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.route-auto-card-actions button {
  flex: 1 1 54px;
  min-width: 0;
  min-height: 30px;
  padding: 0 6px;
  color: var(--forest);
  background: #ffffff;
  border: 1px solid rgba(47, 143, 106, 0.16);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.route-auto-card-actions button:first-child {
  color: white;
  background: var(--forest);
}

.publish-choice-block {
  display: grid;
  gap: 8px;
}

.route-choice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.route-choice {
  position: relative;
  display: block;
}

.route-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.route-choice span {
  display: grid;
  place-items: center;
  min-height: 42px;
  color: var(--forest);
  background: var(--field);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 900;
}

.route-choice input:checked + span {
  color: white;
  background: var(--forest);
  border-color: var(--forest);
}

.map-bind-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.map-bind-card label span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.map-bind-card label em {
  flex: none;
  padding: 3px 7px;
  color: #8a5b12;
  background: rgba(210, 151, 42, 0.16);
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.map-bind-card label em.done {
  color: var(--forest-dark);
  background: rgba(54, 125, 87, 0.16);
}

.map-bind-card button {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 12px;
  color: white;
  background: var(--forest);
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.map-bind-card svg {
  width: 16px;
  height: 16px;
}

.map-pick-floating {
  position: absolute;
  z-index: 820;
  right: 14px;
  bottom: 104px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: white;
  background: rgba(13, 35, 26, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 16px 32px rgba(12, 31, 23, 0.24);
}

.map-pick-copy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.map-pick-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.map-pick-floating svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: #f4b04f;
}

.map-pick-floating strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-pick-floating small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 800;
}

.map-pick-floating em {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.map-pick-actions {
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  min-width: 66px;
}

.map-pick-floating button {
  height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.map-pick-floating button.primary {
  color: #123227;
  background: #f2a33a;
}

.map-pick-floating button.ghost {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.map-pick-crosshair {
  position: absolute;
  z-index: 720;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.map-pick-crosshair::before,
.map-pick-crosshair::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 6px rgba(13, 36, 27, 0.28);
}

.map-pick-crosshair::before {
  top: 16px;
  right: 0;
  left: 0;
  height: 2px;
}

.map-pick-crosshair::after {
  top: 0;
  bottom: 0;
  left: 16px;
  width: 2px;
}

.map-pick-crosshair span {
  position: absolute;
  z-index: 1;
  inset: 10px;
  background: #f05b45;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(13, 36, 27, 0.28);
}

@media (max-width: 420px) {
  .track-recorder-floating {
    top: 246px;
    width: min(272px, calc(100% - 92px));
  }

  .track-follow-return {
    right: 66px;
    bottom: 100px;
  }

  .track-location-bubble {
    right: 78px;
    bottom: 30px;
    left: 10px;
    max-width: none;
  }

  .route-auto-grid {
    grid-template-columns: 1fr;
  }

  .map-pick-floating {
    right: 10px;
    bottom: 96px;
    left: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
  }

  .map-pick-floating small,
  .map-pick-floating em {
    line-height: 1.35;
    white-space: normal;
  }

  .map-pick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .map-pick-floating button {
    height: 30px;
    padding: 0 8px;
    font-size: 11px;
  }
}

.point-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.point-input-row button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--forest);
  border: 0;
  border-radius: var(--radius);
}

.publish-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.publish-grid .wide {
  grid-column: 1 / -1;
}

.route-reality-title {
  margin-top: 4px;
}

.route-reality-form textarea,
.feedback-form textarea {
  min-height: 42px;
  resize: vertical;
}

.publish-point-grid {
  display: grid;
  gap: 10px;
}

.publish-point-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  background: var(--field);
  border: 1px solid rgba(63, 118, 89, 0.14);
  border-radius: var(--radius);
}

.publish-point-card.bound {
  border-color: rgba(47, 143, 106, 0.34);
  box-shadow: inset 0 0 0 1px rgba(47, 143, 106, 0.06);
}

.publish-point-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.publish-point-card-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.publish-point-card-head em {
  flex: none;
  padding: 3px 8px;
  color: #8a5b12;
  background: rgba(210, 151, 42, 0.18);
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.publish-point-card.bound .publish-point-card-head em {
  color: var(--forest-dark);
  background: rgba(47, 143, 106, 0.16);
}

.publish-point-card > strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.publish-point-card > strong {
  display: -webkit-box;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.publish-point-card > small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.publish-point-card > p {
  display: -webkit-box;
  min-height: 38px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.publish-point-media-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 6px 9px;
  color: var(--forest);
  background: rgba(47, 143, 106, 0.1);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.publish-point-media-state svg {
  width: 15px;
  height: 15px;
}

.publish-point-list {
  display: grid;
  gap: 6px;
}

.publish-point-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  padding: 8px;
  background: rgba(255, 253, 246, 0.86);
  border: 1px solid rgba(63, 118, 89, 0.12);
  border-radius: 8px;
}

.publish-point-item > div:first-child {
  min-width: 0;
}

.publish-point-item strong,
.publish-point-item small,
.publish-point-item > span {
  display: block;
}

.publish-point-item strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-point-item small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-point-item > span {
  color: var(--forest);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.publish-point-item-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.publish-point-item-actions button {
  height: 30px;
  padding: 0 6px;
  color: var(--forest-dark);
  background: white;
  border: 1px solid rgba(63, 118, 89, 0.14);
  border-radius: 7px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}

.publish-point-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.publish-point-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  height: 36px;
  padding: 0 8px;
  color: var(--forest-dark);
  background: #fffdf6;
  border: 1px solid rgba(63, 118, 89, 0.16);
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.publish-point-actions button:first-child {
  color: white;
  background: var(--forest);
  border-color: var(--forest);
}

.publish-point-actions svg {
  flex: none;
  width: 15px;
  height: 15px;
}

.publish-point-detail-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.publish-point-detail-form label {
  display: grid;
  gap: 6px;
}

.publish-point-detail-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.publish-point-detail-form input,
.publish-point-detail-form textarea {
  width: 100%;
  min-width: 0;
  padding: 0 12px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid transparent;
  border-radius: var(--radius);
  outline: none;
  font: inherit;
  font-weight: 800;
}

.publish-point-detail-form input {
  height: 42px;
}

.publish-point-detail-form textarea {
  min-height: 112px;
  padding-top: 10px;
  resize: vertical;
  line-height: 1.55;
}

.publish-point-detail-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--forest);
  background: rgba(47, 143, 106, 0.1);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
}

.publish-point-detail-status svg {
  width: 17px;
  height: 17px;
}

.private-map-label-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.private-map-label-form label {
  display: grid;
  gap: 6px;
}

.private-map-label-form label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.private-map-label-form input,
.private-map-label-form textarea {
  width: 100%;
  min-width: 0;
  padding: 0 12px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid rgba(63, 118, 89, 0.12);
  border-radius: var(--radius);
  outline: none;
  font: inherit;
  font-weight: 800;
}

.private-map-label-form input {
  height: 44px;
}

.private-map-label-form textarea {
  min-height: 86px;
  padding-top: 10px;
  resize: vertical;
  line-height: 1.5;
}

.private-map-label-form input:focus,
.private-map-label-form textarea:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(47, 143, 106, 0.1);
}

.private-map-label-address {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 9px 10px;
  color: var(--forest);
  background: rgba(47, 143, 106, 0.1);
  border: 1px solid rgba(47, 143, 106, 0.14);
  border-radius: var(--radius);
}

.private-map-label-address > svg {
  width: 20px;
  height: 20px;
}

.private-map-label-address div {
  min-width: 0;
}

.private-map-label-address strong,
.private-map-label-address small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-map-label-address strong {
  font-size: 13px;
}

.private-map-label-address small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.private-map-label-address button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--forest);
  background: white;
  border: 1px solid rgba(47, 143, 106, 0.18);
  border-radius: 8px;
}

.private-map-label-address button svg {
  width: 17px;
  height: 17px;
}

.private-label-media-section {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.private-label-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.private-label-media-grid article {
  position: relative;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 1;
  background: #102119;
  border-radius: 6px;
}

.private-label-media-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.private-label-media-grid button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: white;
  background: rgba(15, 33, 25, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
}

.private-label-media-grid button svg {
  width: 15px;
  height: 15px;
}

.private-label-media-empty {
  display: grid;
  place-items: center;
  min-height: 104px;
  padding: 12px;
  color: var(--forest);
  background: var(--field);
  border: 1px dashed rgba(63, 118, 89, 0.24);
  border-radius: 8px;
  text-align: center;
}

.private-label-media-empty svg {
  width: 26px;
  height: 26px;
  color: var(--moss);
}

.private-label-media-empty strong,
.private-label-media-empty small {
  display: block;
}

.private-label-media-empty small {
  color: var(--muted);
  font-size: 11px;
}

.private-label-add-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  color: var(--forest);
  background: white;
  border: 1px solid rgba(47, 143, 106, 0.24);
  border-radius: var(--radius);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.private-label-add-image:disabled {
  opacity: 0.45;
}

.private-label-add-image svg {
  width: 18px;
  height: 18px;
}

.feedback-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.feedback-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.feedback-form label.wide {
  grid-column: 1 / -1;
}

.feedback-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.feedback-form textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  color: var(--forest);
  background: var(--field);
  border: 1px solid transparent;
  border-radius: var(--radius);
  outline: none;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.feedback-form textarea:focus {
  background: #fffefa;
  border-color: var(--moss);
}

.profile-view {
  display: grid;
  gap: 18px;
  padding-bottom: 12px;
}

.profile-top {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: start;
  gap: 12px;
  min-height: 132px;
  padding: 20px 16px 72px;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(135deg, rgba(14, 43, 35, 0.98), rgba(58, 110, 80, 0.94) 58%, rgba(238, 149, 44, 0.86) 146%),
    #10251f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(16, 37, 31, 0.12);
}

.profile-top::after {
  position: absolute;
  right: -34px;
  bottom: -52px;
  width: 180px;
  height: 180px;
  content: "";
  background:
    linear-gradient(90deg, transparent 46%, rgba(255, 255, 255, 0.14) 47%, rgba(255, 255, 255, 0.14) 53%, transparent 54%),
    linear-gradient(0deg, transparent 46%, rgba(255, 255, 255, 0.12) 47%, rgba(255, 255, 255, 0.12) 53%, transparent 54%);
  background-size: 32px 32px;
  border-radius: 50%;
  opacity: 0.35;
  pointer-events: none;
}

.app-en {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.profile-top h1 {
  margin: 0;
  color: white;
  font-size: 38px;
  line-height: 1.02;
  letter-spacing: 0;
}

.role-switch {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  backdrop-filter: blur(12px);
}

.role-switch button {
  min-height: 34px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.74);
  background: transparent;
  border: 0;
  border-radius: 18px;
  font-weight: 900;
}

.role-switch button.active {
  color: var(--forest);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
}

.profile-top .icon-button {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.bell-button i {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}

.notification-button i {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  color: white;
  text-align: center;
  background: var(--orange);
  border: 2px solid var(--panel);
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 13px;
}

.profile-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  margin-top: -78px;
  padding: 16px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(16, 37, 31, 0.08);
  border-radius: 20px;
  box-shadow: 0 18px 38px rgba(16, 37, 31, 0.1);
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  color: white;
  background:
    linear-gradient(145deg, #08261f, #174536),
    var(--forest);
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 24px rgba(16, 37, 31, 0.18);
  font-size: 34px;
  font-weight: 900;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info h2 {
  margin: 4px 0 6px;
  color: var(--forest);
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: 0;
}

.profile-info p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.account-sync-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 11px 13px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(16, 37, 31, 0.1);
  border-radius: 14px;
}

.account-sync-row > span,
.account-sheet-status > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--forest);
  background: rgba(47, 143, 106, 0.12);
  border-radius: 10px;
}

.account-sync-row > span svg,
.account-sheet-status > span svg {
  width: 19px;
  height: 19px;
}

.account-sync-row strong,
.account-sync-row small,
.account-sheet-status strong,
.account-sheet-status small {
  display: block;
}

.account-sync-row small,
.account-sheet-status small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.account-sync-row button {
  min-height: 34px;
  padding: 0 12px;
  color: white;
  background: var(--forest);
  border: 0;
  border-radius: 10px;
  font-weight: 800;
}

.account-sync-row button:disabled {
  opacity: 0.56;
}

.account-sync-row.error > span,
.account-sheet-status.error > span {
  color: #a83d35;
  background: rgba(168, 61, 53, 0.1);
}

.account-login-form,
.report-form {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.account-login-form label,
.report-form label {
  display: grid;
  gap: 6px;
}

.account-login-form label span,
.report-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-login-form input,
.report-form select,
.report-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.verification-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.verification-code-row .button {
  min-width: 102px;
}

.report-form textarea {
  padding-top: 11px;
  resize: vertical;
}

.account-form-error {
  margin: 0;
  color: #a83d35;
  font-size: 13px;
}

.account-form-success {
  margin: 0;
  color: var(--forest);
  font-size: 13px;
  font-weight: 800;
}

.account-sheet-status {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
  padding: 12px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.profile-stats div {
  position: relative;
  min-height: 88px;
  padding: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(241, 245, 237, 0.86));
  border: 1px solid rgba(16, 37, 31, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(16, 37, 31, 0.06);
}

.profile-stats div::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 4px;
  content: "";
  background: rgba(238, 149, 44, 0.52);
  border-radius: 999px;
}

.profile-stats strong {
  display: block;
  color: var(--forest);
  font-size: 30px;
  line-height: 1.15;
}

.profile-stats span {
  margin-top: 12px;
  font-size: 15px;
}

.admin-panel {
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.admin-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding: 10px;
  background: var(--field);
  border-radius: var(--radius);
}

.admin-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
}

.admin-item strong {
  color: var(--forest);
  font-size: 14px;
}

.admin-item p,
.admin-item small {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.admin-actions button {
  min-height: 30px;
  padding: 0 9px;
  color: var(--forest);
  background: var(--panel);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.admin-actions button.active {
  color: white;
  background: var(--orange);
}

.management-block {
  padding: 4px 0 0;
  background: transparent;
  border: 0;
}

.block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.block-title h2 {
  margin: 0;
  color: var(--forest);
  font-size: 24px;
  letter-spacing: 0;
}

.block-title button {
  color: var(--moss);
  background: transparent;
  border: 0;
  font-size: 16px;
  font-weight: 900;
}

.profile-collapsible {
  display: grid;
  gap: 0;
}

.profile-section-title {
  align-items: stretch;
  margin-bottom: 0;
}

.profile-section-toggle {
  display: grid;
  flex: 1;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 70px;
  padding: 10px 12px;
  color: var(--forest);
  text-align: left;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(16, 37, 31, 0.1);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(16, 37, 31, 0.06);
}

.profile-section-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--moss);
  background: var(--sage);
  border-radius: 14px;
}

.profile-section-copy {
  display: block;
  min-width: 0;
}

.profile-section-copy strong,
.profile-section-copy small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-section-copy strong {
  color: var(--forest);
  font-size: 19px;
  line-height: 1.25;
}

.profile-section-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.profile-section-chevron {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--moss);
  transition: transform 180ms ease;
}

.profile-collapsible.open .profile-section-chevron {
  transform: rotate(180deg);
}

.profile-section-body {
  margin-top: 12px;
}

.profile-section-body[hidden] {
  display: none;
}

.profile-section-title .profile-section-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 13px;
  color: white;
  background: var(--forest);
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(16, 37, 31, 0.12);
}

.profile-section-action svg,
.profile-section-toggle svg {
  width: 18px;
  height: 18px;
}

.empty-box {
  padding: 18px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.64);
  border: 1px dashed rgba(16, 37, 31, 0.16);
  border-radius: 16px;
  font-size: 17px;
  line-height: 1.65;
}

.empty-box.compact {
  min-height: 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
}

.offroad-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.offroad-checklist div {
  min-width: 0;
  padding: 10px;
  background: rgba(229, 235, 222, 0.58);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.offroad-checklist span,
.offroad-checklist strong {
  display: block;
  min-width: 0;
}

.offroad-checklist span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.offroad-checklist strong {
  margin-top: 4px;
  color: var(--forest);
  font-size: 12px;
  line-height: 1.35;
}

.ovi-import-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(246, 248, 243, 0.92)),
    var(--panel);
  border: 1px solid rgba(16, 37, 31, 0.1);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(16, 37, 31, 0.08);
}

.ovi-import-panel strong,
.ovi-import-panel p {
  margin: 0;
}

.ovi-import-panel strong {
  display: block;
  color: var(--forest);
  font-size: 18px;
}

.ovi-import-panel p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.ovi-import-copy {
  min-width: 0;
}

.ovi-import-actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 8px;
  margin-top: 2px;
}

.ovi-import-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 13px;
  color: var(--forest);
  background: rgba(16, 37, 31, 0.1);
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.ovi-import-panel button.primary {
  color: white;
  background: var(--forest);
}

.ovi-import-panel button[data-action="clear-ovi-routes"] {
  color: white;
  background: rgba(16, 37, 31, 0.72);
}

.ovi-import-panel > .folder-icon {
  width: 62px;
  height: 62px;
  color: var(--moss);
  background: #dce9dd;
  border-radius: 18px;
}

.ovi-import-panel button svg {
  width: 15px;
  height: 15px;
}

.ovi-import-block .empty-box {
  margin-top: 10px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.search-field svg {
  color: var(--muted);
}

.search-field input {
  flex: 1;
  height: auto;
  padding: 0;
  background: transparent;
  font-weight: 800;
}

.route-library {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.route-library-empty {
  margin-top: 12px;
}

.route-library article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 104px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.folder-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--moss);
  background: var(--sage);
  border-radius: 16px;
}

.route-library article > div {
  min-width: 0;
}

.route-library h3 {
  margin: 0 0 6px;
  color: var(--forest);
  font-size: 18px;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-library p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.route-library small {
  display: block;
  margin-top: 4px;
  color: var(--moss);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.route-library .route-activity-line {
  color: #2f8f6a;
}

.route-source-badge {
  justify-self: end;
  min-width: 44px;
  padding: 5px 9px;
  color: var(--forest);
  text-align: center;
  background: var(--sage);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.route-library button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 38px;
  padding: 0 10px;
  color: var(--forest);
  background: var(--field);
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
  white-space: nowrap;
}

.route-library button svg {
  width: 17px;
  height: 17px;
}

.route-activity-card {
  display: grid;
  gap: 4px;
  width: 100%;
  margin: 12px 0 0;
  padding: 12px;
  color: var(--forest);
  text-align: left;
  background: #eef6ef;
  border: 1px solid rgba(47, 143, 106, 0.22);
  border-radius: var(--radius);
}

button.route-activity-card {
  cursor: pointer;
}

.route-activity-card span,
.route-activity-card strong,
.route-activity-card em {
  display: block;
}

.route-activity-card span {
  color: var(--moss);
  font-size: 12px;
  font-weight: 900;
}

.route-activity-card strong {
  font-size: 18px;
  font-weight: 900;
}

.route-activity-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.45;
}

.route-activity-card.empty {
  background: #f4f4ee;
  border-color: rgba(106, 121, 111, 0.18);
}

.route-activity-card.recorded {
  background: #eef3ec;
}

.route-pass-status {
  position: relative;
  display: grid;
  gap: 5px;
  width: 100%;
  margin: 12px 0 0;
  padding: 13px 14px 13px 18px;
  color: var(--forest);
  text-align: left;
  background: #f3f5ee;
  border: 1px solid rgba(63, 118, 89, 0.18);
  border-radius: var(--radius);
}

.route-pass-status::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 8px;
  width: 4px;
  content: "";
  background: #9aa69d;
  border-radius: 999px;
}

button.route-pass-status {
  cursor: pointer;
}

.route-pass-status.active {
  background: #e8f6ed;
  border-color: rgba(47, 143, 106, 0.32);
  box-shadow: inset 0 0 0 1px rgba(47, 143, 106, 0.08);
}

.route-pass-status.active::before {
  background: #2f8f6a;
}

.route-pass-status span,
.route-pass-status strong,
.route-pass-status em,
.route-pass-status small {
  display: block;
}

.route-pass-status span {
  color: #2f8f6a;
  font-size: 12px;
  font-weight: 900;
}

.route-pass-status strong {
  color: var(--forest);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.route-pass-status em {
  color: var(--ink);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.45;
}

.route-pass-status small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.article-grid article {
  min-width: 0;
  padding: 8px;
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-grid img {
  width: 100%;
  aspect-ratio: 0.82;
  object-fit: cover;
  border-radius: 6px;
}

.article-grid strong {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: var(--forest);
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sheet-root {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
}

.sheet-root.open {
  display: block;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 37, 31, 0.42);
}

.bottom-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 520px);
  max-height: min(88vh, 760px);
  margin: 0 auto;
  padding: 10px 16px 18px;
  overflow-y: auto;
  background: var(--panel);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -20px 50px rgba(16, 37, 31, 0.18);
}

.comment-tool-sheet,
.sticker-picker-sheet {
  display: grid;
  gap: 10px;
}

.sticker-picker-sheet .sticker-tabs {
  padding-bottom: 2px;
}

.sticker-sheet-grid {
  grid-auto-flow: row;
  grid-auto-columns: unset;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: none;
  overflow: visible;
}

.sticker-sheet-grid button {
  min-width: 0;
  min-height: 44px;
  justify-content: center;
  font-size: 15px;
}

.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 14px;
  background: #cfd7d0;
  border-radius: 999px;
}

.sheet-close-button {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--forest);
  background: #eef3ec;
  border: 1px solid rgba(63, 118, 89, 0.16);
  border-radius: 8px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.bottom-sheet h2 {
  margin: 4px 0 8px;
  font-size: 20px;
  letter-spacing: 0;
}

.sheet-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.sheet-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.map-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  text-decoration: none;
  background: var(--field);
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
}

.map-option.amap {
  color: white;
  background: var(--blue);
}

.map-option.baidu {
  color: white;
  background: #2272ff;
}

.map-option.native {
  color: white;
  background: var(--forest);
}

.map-option.simulation {
  color: var(--forest);
  background: #f4d19d;
}

.map-option.danger {
  color: white;
  background: #c83b33;
}

.private-map-label-marker {
  overflow: visible;
  background: none;
  border: 0;
}

.private-map-label-marker > span {
  position: absolute;
  top: 4px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: var(--orange);
  border: 2px solid white;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.36);
  transform: rotate(-45deg);
}

.private-map-label-marker > span::after {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  content: "";
}

.private-map-label-marker > strong {
  position: absolute;
  top: 4px;
  left: 31px;
  max-width: 132px;
  overflow: hidden;
  padding: 5px 8px;
  color: white;
  background: rgba(10, 27, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.28);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 18px;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10000;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  color: white;
  background: rgba(5, 34, 27, 0.94);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(5, 34, 27, 0.24);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.app-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.track-permission-sheet {
  max-height: min(88vh, 760px);
  overflow-y: auto;
}

.track-permission-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 6px;
  margin: 14px 0 12px;
}

.track-permission-progress span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px;
  color: var(--muted);
  background: var(--field);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.track-permission-progress i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--forest);
  background: white;
  border-radius: 999px;
  font-style: normal;
}

.track-permission-progress span.active {
  color: var(--forest);
  background: #f6d6a6;
  border-color: rgba(225, 132, 49, 0.34);
}

.track-permission-progress span.done {
  color: white;
  background: var(--green);
}

.track-permission-list {
  display: grid;
  gap: 8px;
}

.track-permission-list div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 10px;
  background: var(--field);
  border-radius: 8px;
}

.track-permission-list span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--forest);
  border-radius: 999px;
}

.track-permission-list svg {
  width: 18px;
  height: 18px;
}

.track-permission-list p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.track-permission-note {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px;
  color: var(--forest);
  background: #fff4df;
  border: 1px solid rgba(225, 132, 49, 0.26);
  border-radius: 8px;
}

.track-permission-note strong {
  font-size: 13px;
}

.track-permission-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.permission-guide-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.permission-guide-nav.single {
  grid-template-columns: 1fr;
}

.permission-guide-nav button {
  min-height: 44px;
  color: var(--forest);
  background: var(--field);
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
}

.permission-guide-nav button.primary {
  color: white;
  background: var(--orange);
}

.editor-sheet {
  max-height: min(88vh, 760px);
  overflow-y: auto;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.editor-form {
  display: grid;
  gap: 10px;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.editor-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.editor-field.wide {
  grid-column: 1 / -1;
}

.editor-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.editor-field input,
.editor-field textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  color: var(--forest);
  background: var(--field);
  border: 1px solid transparent;
  border-radius: var(--radius);
  outline: none;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.editor-field textarea {
  resize: vertical;
  min-height: 70px;
  font-weight: 700;
}

.editor-field input:focus,
.editor-field textarea:focus {
  background: #fffefa;
  border-color: var(--moss);
}

.editor-actions {
  position: sticky;
  bottom: -18px;
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 8px;
  margin: 4px -16px -18px;
  padding: 10px 16px 18px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.82), var(--panel) 32%);
}

.notification-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.notification-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 10px;
  background: var(--field);
  border-radius: var(--radius);
}

.notification-list svg {
  color: var(--moss);
}

.notification-list strong {
  display: block;
  color: var(--forest);
  font-size: 13px;
  line-height: 1.45;
}

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

.pick-map-preview {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 180px;
  margin-top: 12px;
  padding: 18px;
  color: var(--forest);
  text-align: center;
  background:
    linear-gradient(30deg, rgba(255, 255, 255, 0.28) 12%, transparent 12% 48%, rgba(255, 255, 255, 0.2) 48% 50%, transparent 50%),
    linear-gradient(130deg, rgba(63, 118, 89, 0.22), rgba(215, 168, 59, 0.22)),
    #e4e8df;
  border-radius: var(--radius);
}

.pick-map-preview svg {
  width: 34px;
  height: 34px;
}

.pick-map-preview small {
  max-width: 280px;
  color: var(--muted);
  line-height: 1.5;
}

.pick-map-preview.readonly {
  min-height: 150px;
}

.point-detail-sheet .sheet-actions {
  grid-template-columns: 1fr;
}

.point-detail-copy {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 12px;
  color: var(--forest);
  background: var(--field);
  border-radius: var(--radius);
}

.point-detail-copy strong {
  font-size: 15px;
  font-weight: 900;
}

.point-detail-copy p {
  margin: 0;
  color: #35413b;
  font-size: 14px;
  line-height: 1.6;
}

.point-detail-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.point-media-box {
  display: grid;
  place-items: center;
  min-height: 190px;
  margin-top: 12px;
  overflow: hidden;
  background:
    linear-gradient(30deg, rgba(255, 255, 255, 0.28) 12%, transparent 12% 48%, rgba(255, 255, 255, 0.2) 48% 50%, transparent 50%),
    linear-gradient(130deg, rgba(63, 118, 89, 0.22), rgba(215, 168, 59, 0.22)),
    #e4e8df;
  border: 2px solid #31c86b;
  border-radius: var(--radius);
}

.point-media-box img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.point-media-box button {
  display: grid;
  place-items: center;
  gap: 8px;
  min-width: 180px;
  min-height: 110px;
  color: var(--forest);
  background: rgba(255, 253, 248, 0.72);
  border: 1px dashed var(--moss);
  border-radius: var(--radius);
  font-weight: 900;
}

.point-media-box svg {
  width: 32px;
  height: 32px;
}

.satellite-point-sheet {
  max-height: min(86vh, 820px);
}

.point-sheet-satellite {
  position: relative;
  height: 220px;
  margin-top: 12px;
  overflow: hidden;
  background: #16231e;
  border: 1px solid rgba(63, 118, 89, 0.22);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.12);
  isolation: isolate;
}

.point-media-section {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.subsection-title.compact {
  margin-bottom: 0;
}

.point-media-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.point-media-carousel .carousel-arrow {
  width: 32px;
  height: 32px;
  color: var(--forest);
  background: rgba(255, 253, 248, 0.86);
  border-color: rgba(63, 118, 89, 0.18);
}

.point-media-carousel .carousel-arrow.prev {
  left: 8px;
}

.point-media-carousel .carousel-arrow.next {
  right: 8px;
}

.point-media-carousel .point-media-count {
  right: 8px;
  bottom: 42px;
  color: white;
}

.point-media-gallery {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.point-media-gallery::-webkit-scrollbar {
  display: none;
}

.point-media-gallery article {
  flex: 0 0 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--field);
  border: 1px solid rgba(63, 118, 89, 0.12);
  scroll-snap-align: center;
}

.point-media-gallery img,
.point-media-gallery video {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #0f2119;
}

.point-media-gallery span {
  display: block;
  overflow: hidden;
  padding: 8px 9px;
  color: var(--forest);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.point-media-empty {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 14px;
  color: var(--forest);
  background: var(--field);
  border: 1px dashed rgba(63, 118, 89, 0.24);
  border-radius: 8px;
  text-align: center;
}

.point-media-empty svg {
  width: 28px;
  height: 28px;
  color: var(--moss);
}

.point-media-empty strong,
.point-media-empty small {
  display: block;
}

.point-media-empty small {
  max-width: 260px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.review-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 9px 10px;
  color: var(--forest);
  background: #fff1d7;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
}

.review-banner button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 9px;
  color: white;
  background: var(--forest);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.point-detail-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.point-detail-info div {
  padding: 10px;
  background: var(--field);
  border-radius: var(--radius);
}

.point-detail-info .wide {
  grid-column: 1 / -1;
}

.point-detail-info span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.point-detail-info strong {
  display: block;
  margin-top: 4px;
  color: var(--forest);
  overflow-wrap: anywhere;
}

.point-detail-info .point-intro {
  padding: 10px;
  background: var(--field);
  border-radius: var(--radius);
}

.point-detail-info .point-intro p {
  margin: 0;
  padding: 0;
  color: #35413b;
  line-height: 1.55;
}

@media (min-width: 760px) {
  body {
    background:
      radial-gradient(circle at 14% 8%, rgba(215, 168, 59, 0.18), transparent 22%),
      radial-gradient(circle at 80% 0%, rgba(63, 118, 89, 0.16), transparent 26%),
      var(--paper);
  }

  .app-shell {
    min-height: 92vh;
    margin-top: 24px;
    margin-bottom: 24px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 24px;
  }

  .topbar {
    border-radius: 24px 24px 0 0;
  }

  .tabbar {
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  body:not(.android-webview) .masonry-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .publish-actions,
  .publish-point-grid {
    grid-template-columns: 1fr;
  }

  .profile-top {
    grid-template-columns: 1fr auto;
  }

  .role-switch {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .route-library article {
    grid-template-columns: auto 1fr;
  }

  .route-library button {
    justify-content: center;
  }

  .profile-section-title {
    flex-wrap: wrap;
  }

  .profile-section-title .profile-section-action {
    margin-left: auto;
  }
}

@media (max-width: 380px) {
  .profile-top h1 {
    font-size: 30px;
  }

  .profile-info h2 {
    font-size: 23px;
  }

  .profile-stats strong {
    font-size: 23px;
  }

  .chat-composer {
    grid-template-columns: auto auto 1fr auto;
  }

  .chat-composer button[aria-label="短视频"] {
    display: none;
  }
}
