/* Approved off-road card treatment. The satellite map canvas stays untouched. */
:root {
  --offroad-card-radius: 22px;
  --offroad-card-radius-inner: 16px;
  --offroad-card-shadow: 0 8px 20px rgba(35, 54, 45, .10), 0 2px 6px rgba(35, 54, 45, .05);
  --offroad-card-shadow-raised: 0 12px 26px rgba(35, 54, 45, .16), 0 3px 8px rgba(35, 54, 45, .06);
}

/* Account, message and feedback cards use the same hierarchy as the preview. */
.account-sheet-profile,
.account-sheet-status,
.account-release-notes,
.account-quick-settings,
.notification-list article,
.point-feedback-panel,
.point-feedback-item,
.route-feedback-item,
.route-feedback-preview,
.route-feedback-history {
  border-radius: var(--offroad-card-radius);
}
.account-sheet-profile,
.account-sheet-status,
.account-release-notes,
.account-quick-settings,
.notification-list article,
.point-feedback-panel,
.point-feedback-item,
.route-feedback-item {
  box-shadow: var(--offroad-card-shadow);
}
.account-quick-settings {
  overflow: hidden;
  margin: 0 0 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.account-quick-settings h3 {
  margin: 0;
  padding: 14px 15px 9px;
  color: var(--muted);
  font-size: 12px;
}
.account-quick-settings button {
  display: grid;
  grid-template-columns: 22px minmax(80px, 1fr) auto 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 53px;
  padding: 9px 15px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
}
.account-quick-settings button:active { background: var(--field); }
.account-quick-settings button > [data-icon]:first-child { color: var(--moss); }
.account-quick-settings button small { color: var(--muted); }
.account-quick-settings button > [data-icon]:last-child { color: var(--soft); }
.profile-settings-entries {
  display: flex;
  gap: 10px;
  margin: 0;
}
.profile-settings-entries .map-option {
  flex: 1;
  min-height: 44px;
  justify-content: center;
}
.notification-filters {
  display: flex;
  gap: 7px;
  margin: 13px 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.notification-filters button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  color: var(--muted);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 12px;
}
.notification-filters button[aria-pressed="true"] {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}
.notification-list article {
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
}
.notification-list article.unread { border-left: 4px solid var(--orange); }
.notification-list article > [data-icon]:first-child {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--moss);
  background: var(--field);
  border-radius: 14px;
}
.notification-list article.app-update-message > [data-icon]:first-child {
  color: #a24a24;
  background: #f8e8dc;
}
.notification-list article.notification-empty { background: var(--field); box-shadow: none; }
.notification-list article > div { min-width: 0; }
.point-feedback-panel,
.point-feedback-item,
.route-feedback-item { border-color: var(--line); }
.point-feedback-panel { background: var(--panel); }
.point-feedback-item { background: var(--white); }
.point-feedback-composer textarea { border-radius: var(--offroad-card-radius-inner); }
.point-feedback-media figure { overflow: hidden; border-radius: var(--offroad-card-radius-inner); }
.route-feedback-item { padding: 14px; background: var(--panel); }
.route-cloud-activity .route-feedback-item { margin: 10px 0; }
.route-feedback-item .feedback-point-group,
.route-feedback-item .feedback-run-metrics { border-radius: var(--offroad-card-radius-inner); }

/* Main feed and cross-page route/content cards. */
.feed-card,
.home-feedback-card,
.home-route-card,
.route-share,
.nav-panel,
.team-panel,
.chat-panel,
.management-block,
.publish-helper-card,
.publish-media-panel,
.publish-auto-summary,
.notification-list article,
.route-vehicle-card,
.route-cloud-activity,
.profile-card,
.profile-collapsible,
.profile-full-page-list article,
.profile-field-grid .profile-page-entry,
.profile-interaction-list article,
.profile-subscription-list article,
.settings-group,
.settings-legal,
.account-sync-row,
.account-sheet-status,
.account-release-notes,
.point-detail-card,
.point-detail-section,
.route-feedback-detail-item,
.route-detail-body > .route-detail-stats,
.route-detail-body > .route-detail-map-section,
.route-detail-body > .route-detail-section:not(.route-detail-risks),
.route-detail-body > .route-live-intelligence.route-info-compact,
.route-detail-body > .route-cloud-activity,
.team-card,
.team-overview,
.team-member,
.team-communication-section {
  border-radius: var(--offroad-card-radius);
  box-shadow: var(--offroad-card-shadow);
}

.feed-card,
.home-feedback-card,
.home-route-card {
  overflow: hidden;
}
.feed-card .media-box,
.home-route-card .media-box {
  border-radius: calc(var(--offroad-card-radius) - 1px) calc(var(--offroad-card-radius) - 1px) 0 0;
}
.feed-card-body { padding: 14px; }

/* Profile, route and run-history cards. */
.profile-view > .profile-card,
.profile-view .route-vehicle-card,
.profile-field-grid .profile-page-entry,
.route-vehicle-card,
.route-cloud-activity,
.route-detail-body > .route-detail-stats,
.route-detail-body > .route-detail-map-section,
.route-detail-body > .route-detail-section:not(.route-detail-risks),
.route-detail-body > .route-live-intelligence.route-info-compact,
.route-detail-body > .route-cloud-activity,
.route-cloud-activity .route-feedback-item,
.route-feedback-history,
.route-feedback-item,
.feedback-history-item,
.point-feedback-history article {
  border-radius: var(--offroad-card-radius);
  box-shadow: var(--offroad-card-shadow);
}
.profile-view > .profile-card { box-shadow: var(--offroad-card-shadow-raised); }
.profile-view .route-vehicle-card { padding: 16px; }
.profile-field-grid { gap: 12px; }
.profile-field-grid .profile-page-entry { overflow: hidden; }
.profile-field-grid .profile-section-toggle { border-radius: inherit; }
.profile-field-grid [data-profile-section="recorded"] { box-shadow: var(--offroad-card-shadow-raised); }
.route-cloud-activity .route-feedback-item { margin: 10px; }
.route-feedback-item .feedback-run-metrics,
.route-feedback-item .feedback-point-group { border-radius: var(--offroad-card-radius-inner); }

/* Publishing, notices, forms and bottom sheets retain their existing colors. */
.publish-head,
.publish-actions button,
.publish-helper-card,
.publish-media-panel,
.publish-auto-summary,
.notification-list article,
.settings-group,
.settings-legal,
.profile-library-search,
.profile-editor-sheet,
.bottom-sheet,
.account-sync-row,
.account-sheet-status,
.account-release-notes,
.point-detail-card,
.point-detail-section,
.route-feedback-detail-item,
.release-notice-sheet ul,
.team-dialog,
.team-rally .team-card,
.team-rally .team-overview,
.team-rally .team-member,
.team-rally .team-communication-section {
  border-radius: var(--offroad-card-radius);
}
.publish-head { box-shadow: var(--offroad-card-shadow-raised); }
.publish-actions button,
.publish-helper-card,
.publish-media-panel,
.publish-auto-summary,
.notification-list article,
.profile-library-search,
.bottom-sheet,
.account-sync-row,
.account-sheet-status,
.account-release-notes,
.point-detail-card,
.point-detail-section,
.route-feedback-detail-item,
.release-notice-sheet ul,
.team-dialog {
  box-shadow: var(--offroad-card-shadow);
}
.profile-editor-sheet { overflow: auto; }
.settings-entry,
.settings-field,
.settings-permission-row { border-radius: 0; box-shadow: none; }
.bottom-sheet.account-sheet,
.bottom-sheet.notification-sheet,
.bottom-sheet.route-feedback-list-sheet,
.bottom-sheet.route-feedback-sheet { border-radius: 24px 24px 0 0; }

/* Road feedback fills the available sheet width; borders belong to cards, not the list edges. */
.bottom-sheet.route-feedback-list-sheet {
  width: 100vw;
  max-width: none;
  max-height: min(92dvh, 900px);
  padding-right: max(12px, env(safe-area-inset-right));
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  padding-left: max(12px, env(safe-area-inset-left));
  border-radius: 24px 24px 0 0;
}
.route-feedback-list-sheet .route-feedback-full-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-height: min(72dvh, 680px);
  padding: 2px;
  overflow-x: hidden;
}
.route-feedback-list-sheet .route-feedback-item {
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 1px solid #d9e2d8;
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(35, 54, 45, .07);
}
@media (max-width: 359px) {
  .route-feedback-list-sheet .route-feedback-full-list { grid-template-columns: minmax(0, 1fr); }
}

/* Split each feedback into overview, traversal figures, and field evidence. */
.route-cloud-activity { border-right: 0; border-left: 0; }
.route-cloud-activity .route-feedback-list { margin-top: 6px; }
.route-cloud-activity .route-feedback-item {
  display: grid;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(35, 54, 45, .07);
}
.route-cloud-activity .route-feedback-card-part { min-width: 0; padding: 9px 10px; }
.route-cloud-activity .route-feedback-card-part + .route-feedback-card-part { border-top: 1px solid #dfe6dc; }
.route-cloud-activity .route-feedback-card-overview { background: #fff; }
.route-cloud-activity .route-feedback-card-overview .feedback-card-head { align-items: center; gap: 6px; }
.route-cloud-activity .route-feedback-card-overview .feedback-card-head > div { gap: 1px; }
.route-cloud-activity .route-feedback-card-overview .feedback-card-head strong { font-size: 13px; }
.route-cloud-activity .route-feedback-card-overview .feedback-card-head time { font-size: 11px; }
.route-cloud-activity .route-feedback-card-overview .feedback-card-summary { gap: 4px; margin-top: 6px; }
.route-cloud-activity .route-feedback-card-overview .feedback-change-details { gap: 2px; margin-top: 5px; padding: 4px 6px; }
.route-cloud-activity .route-feedback-card-overview .route-feedback-traversal { margin-top: 5px; }
.route-cloud-activity .route-feedback-card-metrics .feedback-run-metrics { gap: 5px; margin-top: 0; }
.route-cloud-activity .route-feedback-card-metrics .feedback-run-metrics > span { min-width: 0; padding: 7px; }
.route-cloud-activity .route-feedback-card-metrics .feedback-run-metrics small { overflow-wrap: anywhere; font-size: 10px; }
.route-cloud-activity .route-feedback-card-metrics .feedback-run-metrics b { font-size: 15px; }
.route-cloud-activity .route-feedback-card-evidence > :first-child { margin-top: 0; }
.feedback-vehicle-snapshot,
.feedback-weather-snapshot { margin-top: 10px; padding: 10px; background: #f5f8f3; border: 1px solid #dfe7db; border-radius: 10px; }
.feedback-vehicle-snapshot > strong,
.feedback-weather-snapshot > strong { display: block; margin-bottom: 6px; color: #263a2d; font-size: 13px; }
.feedback-vehicle-snapshot > p,
.feedback-weather-snapshot > p { margin: 0 0 7px; color: #536257; font-size: 12px; }
.feedback-vehicle-spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.feedback-vehicle-spec-grid > span,
.feedback-weather-snapshot > div > span { display: grid; gap: 2px; min-width: 0; padding: 6px 7px; background: #fff; border-radius: 7px; }
.feedback-vehicle-spec-grid small,
.feedback-weather-snapshot small,
.feedback-vehicle-snapshot > small { color: #69766c; font-size: 10px; }
.feedback-vehicle-spec-grid b { overflow-wrap: anywhere; color: #293a2d; font-size: 12px; font-weight: 600; }
.feedback-weather-snapshot > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px; }
.feedback-weather-snapshot > div > span { color: #35473a; font-size: 11px; }
.feedback-weather-snapshot > div > span small { display: block; }
.feedback-weather-snapshot > small { display: block; margin-top: 7px; }
.route-cloud-activity .route-feedback-card-evidence .feedback-point-group { margin-top: 6px; padding: 7px 0 0; background: transparent; border: 0; border-top: 1px dashed #d8e2d6; border-radius: 0; }
.route-cloud-activity .route-feedback-card-evidence .route-feedback-media { margin-top: 6px; }
.route-cloud-activity .route-feedback-evidence-empty { color: var(--muted); font-size: 11px; }
.route-cloud-activity .route-feedback-preview:has(> .route-feedback-item:only-of-type) > .route-feedback-item { grid-column: 1 / -1; }
.route-cloud-activity .route-edit-countdown { margin-top: 5px; margin-bottom: 5px; }
.route-detail-body > .route-cloud-activity .route-edit-countdown { margin-top: 4px; margin-bottom: 4px; }

/* One flat white activity canvas with peer cards; never frame cards inside cards. */
.route-cloud-activity,
.route-detail-body > .route-cloud-activity {
  margin: 0;
  padding: 0 0 10px;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.route-cloud-activity-head {
  padding: 12px 12px 8px;
  background: transparent;
}
.route-cloud-activity-head p { color: #68746b; }
.route-cloud-activity-head h2 { color: #20372a; }
.route-cloud-activity-head > span { color: #39704d; }
.route-cloud-activity-grid {
  gap: 8px;
  margin: 8px 10px 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.route-cloud-activity-grid span,
.route-cloud-activity-grid span:nth-child(even),
.route-cloud-activity-grid span:nth-last-child(-n+2) {
  min-height: 70px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e0e6df;
  border-radius: 14px;
  box-shadow: 0 2px 7px rgba(35, 54, 45, .05);
}
.route-cloud-activity .route-feedback-list { margin: 8px 10px 0; }
.route-cloud-activity .route-feedback-preview { gap: 8px; }
.route-cloud-activity .route-feedback-item {
  background: #fff;
  border: 1px solid #dfe5de;
  border-radius: 16px;
  box-shadow: 0 3px 9px rgba(35, 54, 45, .06);
}
.route-cloud-activity .route-feedback-card-part,
.route-cloud-activity .route-feedback-card-overview { background: transparent; }
.route-cloud-activity .route-feedback-card-part + .route-feedback-card-part { border-top: 1px solid #e7ebe6; }
.route-cloud-activity .route-feedback-card-metrics .feedback-run-metrics > span {
  padding: 5px 3px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.route-cloud-activity .route-feedback-card-overview .feedback-change-details { padding: 2px 0; background: transparent; }
.route-cloud-activity .route-feedback-card-overview .route-feedback-traversal { padding: 0; background: transparent; border: 0; }
.route-cloud-activity .route-feedback-card-evidence .feedback-point-group {
  background: transparent;
  border: 0;
}
.route-cloud-activity .route-edit-countdown {
  margin: 6px 10px;
  background: #fffaf0;
  border: 1px solid #eadfca;
  border-radius: 14px;
  box-shadow: 0 2px 7px rgba(35, 54, 45, .04);
}

/* Image blocks use a smaller companion radius inside their parent card. */
.route-feedback-item img,
.route-feedback-item video,
.feedback-history-item img,
.feedback-history-item video,
.point-detail-card img,
.point-detail-card video,
.profile-full-page-list article img,
.profile-interaction-list article img,
.profile-subscription-list article img {
  border-radius: var(--offroad-card-radius-inner);
}

/* Preserve the real satellite canvas, route geometry, gestures and controls. */
.satellite-nav-map,
.live-satellite-map,
.map-stage,
.route-live-map,
.route-detail-live-map,
.leaflet-container,
.leaflet-tile,
.satellite-tile-grid,
.map-preview-tile {
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 350px) {
  :root {
    --offroad-card-radius: 18px;
    --offroad-card-radius-inner: 13px;
  }
  .profile-field-grid { gap: 9px; }
  .feed-card-body { padding: 12px; }
}

/* Team dialogs use the same opaque off-road surface as their inner cards. */
.team-dialog { background: #e9ece1 !important; background-color: #e9ece1 !important; }

/* App-wide surface rule: one white page canvas with independent peer cards. */
:root {
  --paper: #fff;
  --panel: #fff;
  --field: #f4f6f3;
  --line: #e1e6e1;
  --shadow: none;
  --offroad-card-shadow: 0 1px 3px rgba(24, 39, 29, .045);
  --offroad-card-shadow-raised: 0 1px 3px rgba(24, 39, 29, .045);
}
body,
body.android-webview,
.app-shell,
body.android-webview .app-shell,
.app-main,
.detail-view,
.detail-content,
.route-detail-page,
.route-weather-full-page,
.profile-full-page,
.route-detail-body,
.profile-view,
.profile-page,
.team-rally,
.team-rally-page,
.bottom-sheet,
.team-dialog,
.profile-editor-sheet {
  background: #fff !important;
  background-image: none !important;
}
.app-main { background-color: #fff !important; }

/* Keep section wrappers visually open so their child cards read as peers. */
.detail-content,
.route-detail-body > .route-cloud-activity,
.route-detail-body > .route-detail-section,
.route-detail-body > .route-detail-stats,
.route-detail-body > .route-detail-map-section,
.route-detail-body > .route-live-intelligence.route-info-compact,
.profile-view > .profile-card,
.profile-view > .profile-collapsible,
.team-rally > .team-card,
.team-rally > .team-overview,
.team-rally > .team-communication-section,
.point-feedback-panel,
.account-sheet-profile,
.account-sheet-status,
.account-release-notes,
.account-quick-settings,
.route-cloud-activity {
  color: inherit;
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.profile-view > .profile-card .profile-info h2,
.profile-view > .profile-card .profile-info p,
.profile-view > .profile-card .profile-account-action,
.profile-view > .profile-card .profile-avatar,
.profile-field-grid [data-profile-section="recorded"],
.profile-field-grid [data-profile-section="recorded"] * {
  color: inherit;
  background-image: none !important;
}
.profile-field-grid [data-profile-section="recorded"] {
  background: #fff !important;
  border-color: var(--line) !important;
  border-top-color: var(--line) !important;
  box-shadow: var(--offroad-card-shadow) !important;
}

/* Same-level feature blocks use one quiet outline; cards inside cards are flattened. */
.feed-card,
.home-feedback-card,
.home-route-card,
.route-share,
.nav-panel,
.team-panel,
.chat-panel,
.management-block,
.publish-helper-card,
.publish-media-panel,
.publish-auto-summary,
.notification-list article,
.route-vehicle-card,
.profile-full-page-list article,
.profile-field-grid .profile-page-entry,
.profile-interaction-list article,
.profile-subscription-list article,
.settings-group,
.settings-legal,
.account-sync-row,
.point-detail-card,
.point-detail-section,
.route-feedback-detail-item,
.route-detail-body > .route-detail-stats,
.route-detail-body > .route-detail-map-section,
.route-detail-body > .route-detail-section:not(.route-detail-risks),
.route-detail-body > .route-live-intelligence.route-info-compact,
.team-card,
.team-overview,
.team-member,
.team-communication-section,
.route-cloud-activity .route-feedback-item,
.route-feedback-item,
.feedback-history-item,
.point-feedback-history article,
.account-sheet-status,
.account-release-notes,
.account-quick-settings {
  background: #fff !important;
  background-image: none !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px;
  box-shadow: var(--offroad-card-shadow) !important;
}
.route-cloud-activity .route-feedback-item,
.route-feedback-item { border-left-color: var(--line) !important; }

.feed-card :is(.home-feedback-card, .home-route-card, .route-share, .route-vehicle-card, .management-block, .card-route-meta span),
.route-share :is(.route-vehicle-card, .management-block, .route-feedback-item, .feedback-run-metrics > span, .feedback-point-group),
.route-vehicle-card :is(.route-vehicle-profile, .route-share, .management-block),
.profile-card :is(.profile-stats div, .account-sheet-status, .account-release-notes, .account-quick-settings),
.profile-collapsible :is(.profile-page-entry, .profile-full-page-list article, .profile-interaction-list article, .profile-subscription-list article),
.profile-page-entry :is(.profile-entry-metric, .profile-section-body > section),
.team-card :is(.team-overview, .team-member, .team-communication-section, .team-card),
.team-overview :is(.team-member, .team-communication-section),
.team-communication-section :is(.team-member, .team-card),
.point-detail-card :is(.point-detail-section, .route-feedback-detail-item, .point-feedback-panel, .point-feedback-item),
.point-feedback-panel :is(.point-feedback-item, .point-feedback-history article),
.route-feedback-item :is(.feedback-run-metrics > span, .feedback-point-group, .feedback-change-details, .route-feedback-traversal),
.route-detail-section :is(.route-detail-stats, .route-detail-map-section, .route-live-intelligence.route-info-compact, .route-feedback-item),
.route-cloud-activity :is(.route-feedback-list, .route-feedback-preview) {
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  border-radius: 0;
  box-shadow: none !important;
}
.feed-card :is(.home-feedback-card, .home-route-card, .route-share, .route-vehicle-card, .management-block),
.profile-card :is(.profile-stats div, .account-sheet-status, .account-release-notes, .account-quick-settings),
.profile-collapsible :is(.profile-page-entry, .profile-full-page-list article, .profile-interaction-list article, .profile-subscription-list article),
.team-card :is(.team-overview, .team-member, .team-communication-section, .team-card),
.team-overview :is(.team-member, .team-communication-section),
.point-detail-card :is(.point-detail-section, .route-feedback-detail-item, .point-feedback-panel, .point-feedback-item),
.point-feedback-panel :is(.point-feedback-item, .point-feedback-history article),
.route-feedback-item :is(.feedback-run-metrics > span, .feedback-point-group, .feedback-change-details, .route-feedback-traversal) {
  border-top: 1px solid var(--line) !important;
}
.route-cloud-activity { padding-right: 0; padding-left: 0; }
.route-cloud-activity-head { background: transparent !important; }
.route-cloud-activity-grid { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.route-cloud-activity-grid span,
.route-cloud-activity-grid span:nth-child(even),
.route-cloud-activity-grid span:nth-last-child(-n+2) { background: #fff !important; }
.route-cloud-activity .route-feedback-list { margin-right: 0; margin-left: 0; }
.route-cloud-activity .route-edit-countdown { box-shadow: none !important; }
.team-dialog > header { background: #fff !important; }
.publish-head,
.team-heading,
.team-detail-heading,
.team-workflow {
  color: var(--ink) !important;
  background: #fff !important;
  background-image: none !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  box-shadow: var(--offroad-card-shadow) !important;
}
.publish-head .eyebrow,
.publish-head h1,
.publish-head > p:not(.eyebrow),
.team-heading h1,
.team-heading .eyebrow,
.team-heading .team-muted,
.team-detail-heading h1 { color: var(--ink) !important; }
.publish-head .publish-scope-note {
  padding: 0 !important;
  color: var(--muted) !important;
  background: transparent !important;
  border: 0 !important;
}
.team-detail-heading > button { color: var(--ink) !important; background: #fff !important; border-color: var(--line) !important; }
.team-overview-grid strong,
.team-overview-label { color: var(--ink) !important; }
.team-empty {
  padding: 10px 0 !important;
  color: var(--muted) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.team-home-trip,
.team-home-empty {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  box-shadow: var(--offroad-card-shadow) !important;
}
.team-home-trip { border-left-color: var(--line) !important; }
.team-home-trip :is(.team-home-trip-top small, h3, > p, .team-home-trip-bottom > span),
.team-home-empty :is(strong, p) { color: var(--ink) !important; }
.app-main {
  background-color: #fff !important;
  background-image: url("./offroad-pattern.svg?v=v385-single-canvas-peer-cards-20261022") !important;
  background-position: right top;
  background-size: 420px 540px;
  background-repeat: repeat;
}
.profile-view > .profile-card {
  color: var(--ink) !important;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--offroad-card-shadow) !important;
}
.profile-view > .profile-card :is(.profile-info h2, .profile-info p) { color: var(--ink) !important; }
.profile-view > .profile-card .profile-avatar { color: var(--forest) !important; background: var(--field) !important; }
.profile-view > .profile-card .profile-account-action { color: var(--forest) !important; background: #fff !important; border-color: var(--line) !important; }
.profile-view > .profile-card .profile-stats div { background: transparent !important; border-color: transparent !important; box-shadow: none !important; }

/* The page canvas is pale green with one shared contour pattern; content cards stay white. */
:root {
  --paper: #eaf2e8;
  --panel: #fff;
  --field: #f1f6ef;
  --line: #d6e2d5;
}
html,
body,
body.android-webview,
html.android-webview,
html.android-webview body,
.app-shell,
body.android-webview .app-shell,
.app-main,
.detail-view,
.route-detail-page,
.route-weather-full-page,
.profile-full-page,
.profile-view,
.team-rally,
.bottom-sheet,
.team-dialog {
  background-color: var(--paper) !important;
}
html,
body,
body.android-webview,
html.android-webview,
html.android-webview body,
.app-shell,
body.android-webview .app-shell {
  background-image: url("./offroad-pattern.svg?v=v387-compact-single-feedback-20261023") !important;
  background-position: right top;
  background-size: 420px 540px;
  background-repeat: repeat;
}
.app-main,
.route-detail-page,
.route-weather-full-page,
.profile-full-page,
.profile-view,
.team-rally,
.bottom-sheet {
  background-image: none !important;
}
.app-main {
  background-color: var(--paper) !important;
  background-image: url("./offroad-pattern.svg?v=v387-compact-single-feedback-20261023") !important;
  background-position: right top;
  background-size: 420px 540px;
  background-repeat: repeat;
}

/* Preview shows the two newest records in a single column. */
.route-cloud-activity .route-feedback-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding-bottom: 0;
}
.route-cloud-activity .route-feedback-preview .route-feedback-more {
  position: static;
  grid-column: 1 / -1;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  margin-top: 1px;
  padding: 7px 10px;
  color: #2f7050;
  background: #f4f8f2;
  border: 1px solid #d4e2d3;
  border-radius: 10px;
}
.route-cloud-activity .route-feedback-preview:has(> .route-feedback-item:only-of-type) > .route-feedback-item {
  grid-column: 1 / -1;
}
.route-feedback-list-sheet,
.route-feedback-list-sheet .route-feedback-full-list {
  background-color: var(--paper) !important;
}

/* Keep a visible app surface while Android WebView resumes from the background. */
.app-resume-layer {
  position: absolute;
  inset: 0;
  z-index: 110;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: var(--forest);
  background-color: var(--paper);
  background-image: url("./offroad-pattern.svg?v=v387-compact-single-feedback-20261023");
  background-position: right top;
  background-size: 420px 540px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}
.app-resume-layer[hidden] { display: none; }
.app-resume-layer.active { opacity: 1; }
.app-resume-layer strong { font-size: 13px; }
.app-resume-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(63, 118, 89, .18);
  border-top-color: var(--moss);
  border-radius: 50%;
  animation: app-startup-spin .8s linear infinite;
}

/* The same compact feedback card is used in route previews and full history. */
.route-feedback-list-sheet .route-feedback-full-list { grid-template-columns: minmax(0, 1fr); }
.route-cloud-activity .feedback-compact-card,
.route-feedback-list-sheet .feedback-compact-card,
.feedback-compact-card {
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}
.feedback-compact-card .route-feedback-card-overview { padding: 10px 12px 6px; }
.feedback-compact-card .feedback-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.feedback-compact-card .feedback-card-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.feedback-compact-card .feedback-card-head time { flex-shrink: 0; color: var(--muted); font-size: 11px; }
.feedback-compact-card .feedback-card-summary { gap: 5px; margin-top: 6px; align-items: center; }
.feedback-compact-card .feedback-passability { padding: 3px 6px; border-radius: 5px; color: #2f7050; background: #eaf3e8; font-size: 12px; }
.feedback-compact-card .feedback-passability.is-closed { color: #a33e2d; background: #fbece5; }
.feedback-compact-card .feedback-change-summary b { padding: 3px 6px; font-size: 11px; }
.feedback-compact-card .feedback-change-summary.empty { padding: 0; background: transparent; font-size: 11px; }
.feedback-compact-card .feedback-note-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.feedback-compact-card .route-feedback-card-metrics { padding: 4px 12px 8px; border: 0 !important; }
.feedback-compact-card .feedback-run-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; gap: 6px; }
.route-cloud-activity .feedback-compact-card .feedback-run-metrics > span,
.feedback-compact-card .feedback-run-metrics > span { padding: 3px 0; gap: 2px; border: 0; background: transparent; }
.feedback-compact-card .feedback-run-metrics small { font-size: 10px; line-height: 1.4; }
.route-cloud-activity .feedback-compact-card .feedback-run-metrics b,
.route-feedback-list-sheet .feedback-compact-card .feedback-run-metrics b { font-size: 14px; line-height: 1.3; }

/* Route feedback uses one solid status card in both article and route detail. */
.route-cloud-activity .feedback-compact-card,
.route-feedback-list-sheet .feedback-compact-card {
  --feedback-card-text: #fff;
  --feedback-card-muted: rgba(255,255,255,.78);
  background: var(--feedback-card-bg) !important;
  border-color: var(--feedback-card-edge) !important;
  color: var(--feedback-card-text) !important;
}
.route-cloud-activity .feedback-compact-card.status-card-clear,
.route-feedback-list-sheet .feedback-compact-card.status-card-clear { --feedback-card-bg: #2f7651; --feedback-card-edge: #255d40; }
.route-cloud-activity .feedback-compact-card.status-card-caution,
.route-feedback-list-sheet .feedback-compact-card.status-card-caution { --feedback-card-bg: #9a6a2d; --feedback-card-edge: #76501f; }
.route-cloud-activity .feedback-compact-card.status-card-danger,
.route-feedback-list-sheet .feedback-compact-card.status-card-danger { --feedback-card-bg: #a54d34; --feedback-card-edge: #7c3726; }
.route-cloud-activity .feedback-compact-card.status-card-blocked,
.route-feedback-list-sheet .feedback-compact-card.status-card-blocked,
.route-cloud-activity .feedback-compact-card.road-closure-feedback-item,
.route-feedback-list-sheet .feedback-compact-card.road-closure-feedback-item { --feedback-card-bg: #8e3d36; --feedback-card-edge: #6c2b27; }
.route-cloud-activity .feedback-compact-card.status-card-unknown,
.route-feedback-list-sheet .feedback-compact-card.status-card-unknown { --feedback-card-bg: #53645a; --feedback-card-edge: #3e4d45; }
.feedback-compact-card :is(.feedback-card-head strong, .feedback-card-head time, .feedback-card-summary,
  .feedback-card-summary *, .feedback-card-location, .feedback-card-location *, .feedback-note-preview,
  .route-feedback-card-evidence, .route-feedback-card-evidence *, .route-feedback-card-metrics,
  .route-feedback-card-metrics *, .feedback-card-details > summary, .feedback-change-details,
  .feedback-change-details *, .route-feedback-traversal, .route-feedback-traversal *) { color: var(--feedback-card-text) !important; }
.feedback-compact-card .feedback-card-head time,
.feedback-compact-card .feedback-run-metrics small,
.feedback-compact-card .feedback-point-group small,
.feedback-compact-card .route-feedback-travel-meta { color: var(--feedback-card-muted) !important; }
.feedback-compact-card .feedback-passability,
.feedback-compact-card .feedback-passability.is-closed,
.feedback-compact-card .feedback-change-summary b { color: #fff !important; background: rgba(0,0,0,.2) !important; border-color: rgba(255,255,255,.24) !important; }
.feedback-compact-card .route-feedback-card-metrics { background: rgba(0,0,0,.12) !important; }
.feedback-compact-card .feedback-run-metrics > span,
.feedback-compact-card .feedback-point-group,
.feedback-compact-card .feedback-change-details,
.feedback-compact-card .route-feedback-traversal { background: rgba(0,0,0,.12) !important; border-color: rgba(255,255,255,.22) !important; }
.feedback-compact-card .feedback-card-details { border-color: rgba(255,255,255,.25) !important; }
.feedback-compact-card .feedback-video-preview-row .feedback-media-button { background: rgba(0,0,0,.24); border-color: rgba(255,255,255,.38); }
.feedback-compact-card .feedback-card-details { border-top: 1px solid #e7ebe6; }
.feedback-compact-card .feedback-card-details > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  color: #2f7050;
  font-size: 12px;
  cursor: pointer;
  list-style: none;
}
.feedback-compact-card .feedback-card-details > summary::-webkit-details-marker { display: none; }
.feedback-compact-card .feedback-details-toggle::after { content: "展开 ＋"; }
.feedback-compact-card .feedback-card-details[open] .feedback-details-toggle::after { content: "收起 −"; }
.feedback-compact-card .route-feedback-card-evidence { padding: 0 12px 10px; }
.route-cloud-activity .feedback-compact-card,
.route-feedback-list-sheet .feedback-compact-card {
  --feedback-card-bg: #eff6eb;
  --feedback-card-edge: #c9ddc5;
  background: var(--feedback-card-bg) !important;
  background-image: none !important;
  border-color: var(--feedback-card-edge) !important;
}
.feedback-compact-card.status-card-caution { --feedback-card-bg: #fff6df; --feedback-card-edge: #ead8a1; }
.feedback-compact-card.status-card-danger { --feedback-card-bg: #fff0df; --feedback-card-edge: #e8c29b; }
.feedback-compact-card.status-card-blocked,
.feedback-compact-card.road-closure-feedback-item { --feedback-card-bg: #fff0ec; --feedback-card-edge: #e8c2b7; }
.feedback-compact-card.status-card-unknown { --feedback-card-bg: #f0f3eb; --feedback-card-edge: #d5ddcd; }
.feedback-compact-card .route-feedback-card-overview { background: transparent !important; }
.feedback-compact-card .feedback-card-head strong { color: #253f31; font-size: 14px; }
.feedback-compact-card .feedback-card-head time { color: #566b5b; font-variant-numeric: tabular-nums; }
.feedback-compact-card .feedback-card-summary { min-height: 26px; }
.feedback-compact-card .feedback-passability { font-weight: 700; }
.feedback-compact-card .feedback-change-summary b { border-radius: 5px; }
.feedback-compact-card .route-feedback-card-metrics { background: rgba(255, 255, 255, .44) !important; }
.feedback-compact-card .feedback-run-metrics b { color: #244c35; font-size: 16px; font-variant-numeric: tabular-nums; }
.feedback-compact-card .feedback-run-metrics small { color: #576c5c; }
.feedback-compact-card .feedback-card-details { border-color: rgba(71, 104, 76, .18); }
.feedback-compact-card .feedback-video-preview-row { display: flex; gap: 7px; margin-top: 7px; overflow: hidden; }
.feedback-compact-card .feedback-video-preview-row .feedback-media-button { position: relative; display: block; flex: 0 0 96px; width: 96px; height: 62px; padding: 0; overflow: hidden; background: #dce8d8; border: 1px solid rgba(54, 85, 58, .24); border-radius: 8px; }
.feedback-compact-card .feedback-video-preview-row .feedback-media-button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feedback-compact-card .feedback-video-preview-row .feedback-video-placeholder { position: absolute; z-index: 1; top: 4px; left: 5px; padding: 2px 4px; color: #fff; background: rgba(22, 37, 27, .72); border-radius: 3px; font-size: 9px; }
.feedback-compact-card .feedback-video-preview-row .feedback-video-play { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(20, 34, 25, .16); font-size: 20px; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.feedback-compact-card .feedback-video-preview-row .feedback-media-time { position: absolute; z-index: 2; right: 3px; bottom: 3px; left: 3px; overflow: hidden; padding: 2px 3px; color: #fff; background: rgba(22, 37, 27, .68); border-radius: 3px; font-size: 8px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.feedback-compact-card .feedback-video-preview-row .feedback-video-placeholder:only-child { display: grid; place-items: center; width: 100%; height: 100%; }

/* Final status-card palette (kept last so the shared offroad theme cannot
   flatten the feedback cards back to white). */
.route-cloud-activity .feedback-compact-card.status-card-clear,
.route-feedback-list-sheet .feedback-compact-card.status-card-clear { --feedback-card-bg: #2f7651; --feedback-card-edge: #255d40; }
.route-cloud-activity .feedback-compact-card.status-card-caution,
.route-feedback-list-sheet .feedback-compact-card.status-card-caution { --feedback-card-bg: #9a6a2d; --feedback-card-edge: #76501f; }
.route-cloud-activity .feedback-compact-card.status-card-danger,
.route-feedback-list-sheet .feedback-compact-card.status-card-danger { --feedback-card-bg: #a54d34; --feedback-card-edge: #7c3726; }
.route-cloud-activity .feedback-compact-card.status-card-blocked,
.route-feedback-list-sheet .feedback-compact-card.status-card-blocked,
.route-cloud-activity .feedback-compact-card.road-closure-feedback-item,
.route-feedback-list-sheet .feedback-compact-card.road-closure-feedback-item { --feedback-card-bg: #8e3d36; --feedback-card-edge: #6c2b27; }
.route-cloud-activity .feedback-compact-card.status-card-unknown,
.route-feedback-list-sheet .feedback-compact-card.status-card-unknown { --feedback-card-bg: #53645a; --feedback-card-edge: #3e4d45; }
.route-cloud-activity .feedback-compact-card,
.route-feedback-list-sheet .feedback-compact-card {
  background: var(--feedback-card-bg) !important;
  border-color: var(--feedback-card-edge) !important;
  color: #fff !important;
}
.route-cloud-activity .feedback-compact-card :is(.feedback-card-head strong, .feedback-card-head time,
  .feedback-card-summary, .feedback-card-summary *, .feedback-card-location, .feedback-card-location *,
  .feedback-note-preview, .route-feedback-card-evidence, .route-feedback-card-evidence *,
  .route-feedback-card-metrics, .route-feedback-card-metrics *, .feedback-card-details > summary,
  .feedback-change-details, .feedback-change-details *, .route-feedback-traversal, .route-feedback-traversal *),
.route-feedback-list-sheet .feedback-compact-card :is(.feedback-card-head strong, .feedback-card-head time,
  .feedback-card-summary, .feedback-card-summary *, .feedback-card-location, .feedback-card-location *,
  .feedback-note-preview, .route-feedback-card-evidence, .route-feedback-card-evidence *,
  .route-feedback-card-metrics, .route-feedback-card-metrics *, .feedback-card-details > summary,
  .feedback-change-details, .feedback-change-details *, .route-feedback-traversal, .route-feedback-traversal *) { color: #fff !important; }
.route-cloud-activity .feedback-compact-card .feedback-card-head time,
.route-cloud-activity .feedback-compact-card .feedback-run-metrics small,
.route-cloud-activity .feedback-compact-card .feedback-point-group small,
.route-feedback-list-sheet .feedback-compact-card .feedback-card-head time,
.route-feedback-list-sheet .feedback-compact-card .feedback-run-metrics small,
.route-feedback-list-sheet .feedback-compact-card .feedback-point-group small { color: rgba(255,255,255,.78) !important; }
.route-cloud-activity .feedback-compact-card .route-feedback-card-metrics,
.route-feedback-list-sheet .feedback-compact-card .route-feedback-card-metrics,
.route-cloud-activity .feedback-compact-card .feedback-point-group,
.route-feedback-list-sheet .feedback-compact-card .feedback-point-group,
.route-cloud-activity .feedback-compact-card .feedback-run-metrics > span,
.route-feedback-list-sheet .feedback-compact-card .feedback-run-metrics > span { background: rgba(0,0,0,.14) !important; border-color: rgba(255,255,255,.22) !important; }
.route-cloud-activity .feedback-compact-card .feedback-passability,
.route-feedback-list-sheet .feedback-compact-card .feedback-passability,
.route-cloud-activity .feedback-compact-card .feedback-passability.is-closed,
.route-feedback-list-sheet .feedback-compact-card .feedback-passability.is-closed { color: #fff !important; background: rgba(0,0,0,.22) !important; }

/* Feedback cards sit inside the paper-toned route surfaces. Keep the card
   itself light and let the status colour identify the report, so white text
   never disappears into a pale background during upload/retry states. */
.route-cloud-activity .feedback-compact-card,
.route-feedback-list-sheet .feedback-compact-card {
  --feedback-card-bg: #fffdf8 !important;
  --feedback-card-edge: #dfe7dc !important;
  color: #263b30 !important;
  background: var(--feedback-card-bg) !important;
  border: 1px solid var(--feedback-card-edge) !important;
  border-left: 4px solid var(--feedback-card-accent, #4b936f) !important;
  box-shadow: 0 7px 18px rgba(46, 73, 55, .08) !important;
}
.route-cloud-activity .feedback-compact-card.status-card-clear,
.route-feedback-list-sheet .feedback-compact-card.status-card-clear { --feedback-card-accent: #3b8c66; }
.route-cloud-activity .feedback-compact-card.status-card-caution,
.route-feedback-list-sheet .feedback-compact-card.status-card-caution { --feedback-card-accent: #b47b35; }
.route-cloud-activity .feedback-compact-card.status-card-danger,
.route-feedback-list-sheet .feedback-compact-card.status-card-danger { --feedback-card-accent: #c25f43; }
.route-cloud-activity .feedback-compact-card.status-card-blocked,
.route-feedback-list-sheet .feedback-compact-card.status-card-blocked,
.route-cloud-activity .feedback-compact-card.road-closure-feedback-item,
.route-feedback-list-sheet .feedback-compact-card.road-closure-feedback-item { --feedback-card-accent: #a84b43; }
.route-cloud-activity .feedback-compact-card.status-card-unknown,
.route-feedback-list-sheet .feedback-compact-card.status-card-unknown { --feedback-card-accent: #718078; }
.route-cloud-activity .feedback-compact-card :is(.feedback-card-head strong, .feedback-card-head time,
  .feedback-card-summary, .feedback-card-summary *, .feedback-card-location, .feedback-card-location *,
  .feedback-note-preview, .route-feedback-card-evidence, .route-feedback-card-evidence *,
  .route-feedback-card-metrics, .route-feedback-card-metrics *, .feedback-card-details > summary,
  .feedback-change-details, .feedback-change-details *, .route-feedback-traversal, .route-feedback-traversal *),
.route-feedback-list-sheet .feedback-compact-card :is(.feedback-card-head strong, .feedback-card-head time,
  .feedback-card-summary, .feedback-card-summary *, .feedback-card-location, .feedback-card-location *,
  .feedback-note-preview, .route-feedback-card-evidence, .route-feedback-card-evidence *,
  .route-feedback-card-metrics, .route-feedback-card-metrics *, .feedback-card-details > summary,
  .feedback-change-details, .feedback-change-details *, .route-feedback-traversal, .route-feedback-traversal *) { color: #263b30 !important; }
.route-cloud-activity .feedback-compact-card .feedback-card-head time,
.route-cloud-activity .feedback-compact-card .feedback-run-metrics small,
.route-cloud-activity .feedback-compact-card .feedback-point-group small,
.route-feedback-list-sheet .feedback-compact-card .feedback-card-head time,
.route-feedback-list-sheet .feedback-compact-card .feedback-run-metrics small,
.route-feedback-list-sheet .feedback-compact-card .feedback-point-group small { color: #6e7c73 !important; }
.route-cloud-activity .feedback-compact-card .feedback-passability,
.route-feedback-list-sheet .feedback-compact-card .feedback-passability,
.route-cloud-activity .feedback-compact-card .feedback-passability.is-closed,
.route-feedback-list-sheet .feedback-compact-card .feedback-passability.is-closed { color: #fff !important; background: var(--feedback-card-accent) !important; }
.route-cloud-activity .feedback-compact-card .route-feedback-card-metrics,
.route-feedback-list-sheet .feedback-compact-card .route-feedback-card-metrics { background: #f1f5ed !important; }
.route-cloud-activity .feedback-compact-card .feedback-run-metrics > span,
.route-feedback-list-sheet .feedback-compact-card .feedback-run-metrics > span,
.route-cloud-activity .feedback-compact-card .feedback-point-group,
.route-feedback-list-sheet .feedback-compact-card .feedback-point-group,
.route-cloud-activity .feedback-compact-card .feedback-run-metrics > span { background: #e9f0e8 !important; border-color: #d4e1d4 !important; }
.route-cloud-activity .feedback-compact-card .feedback-run-metrics b,
.route-feedback-list-sheet .feedback-compact-card .feedback-run-metrics b { color: #28563e !important; }
.feedback-compact-card .feedback-card-traversal-summary { display: flex; align-items: center; gap: 5px; margin: 7px 0 0; color: #416653; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.feedback-compact-card .feedback-card-traversal-summary [data-icon] { flex: 0 0 auto; width: 13px; height: 13px; }
.route-cloud-activity .feedback-compact-card .feedback-card-details,
.route-feedback-list-sheet .feedback-compact-card .feedback-card-details { border-color: #dfe7dc !important; }
.route-cloud-activity .feedback-compact-card .feedback-vehicle-snapshot,
.route-cloud-activity .feedback-compact-card .feedback-weather-snapshot,
.route-feedback-list-sheet .feedback-compact-card .feedback-vehicle-snapshot,
.route-feedback-list-sheet .feedback-compact-card .feedback-weather-snapshot { color: #263a2d !important; background: #f5f8f3 !important; border-color: #dfe7db !important; }
.route-cloud-activity .feedback-compact-card .feedback-vehicle-snapshot *,
.route-cloud-activity .feedback-compact-card .feedback-weather-snapshot *,
.route-feedback-list-sheet .feedback-compact-card .feedback-vehicle-snapshot *,
.route-feedback-list-sheet .feedback-compact-card .feedback-weather-snapshot * { color: #293a2d !important; }
.route-cloud-activity .feedback-compact-card .feedback-vehicle-spec-grid > span,
.route-cloud-activity .feedback-compact-card .feedback-weather-snapshot > div > span,
.route-feedback-list-sheet .feedback-compact-card .feedback-vehicle-spec-grid > span,
.route-feedback-list-sheet .feedback-compact-card .feedback-weather-snapshot > div > span { background: #fff !important; border: 1px solid #e1e8de; }

/* Route editor: a compact summary anchors the page before the long form. */
.publish-view { gap: 12px; }
.publish-route-summary-card {
  display: grid;
  gap: 10px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--offroad-card-radius);
  box-shadow: var(--offroad-card-shadow);
}
.publish-route-summary-main {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.publish-route-summary-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--forest);
  border-radius: 11px;
}
.publish-route-summary-icon svg { width: 18px; height: 18px; }
.publish-route-summary-main div { display: grid; gap: 2px; min-width: 0; }
.publish-route-summary-main small,
.publish-route-summary-stats small { color: var(--muted); font-size: 10px; font-weight: 800; }
.publish-route-summary-main strong { overflow: hidden; font-size: 15px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.publish-route-summary-status {
  padding: 5px 8px;
  color: var(--forest-dark);
  background: #e5f0e5;
  border: 1px solid #cfe2d0;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.publish-route-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.publish-route-summary-stats span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 8px;
  background: #f3f7f0;
  border: 1px solid #e3eade;
  border-radius: 10px;
}
.publish-route-summary-stats b { overflow: hidden; color: var(--forest-dark); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.publish-route-edit-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f3f7f0;
  border: 1px solid #dfe8dc;
  border-radius: var(--offroad-card-radius);
}
.publish-route-edit-entry > div { display: grid; gap: 4px; min-width: 0; }
.publish-route-edit-entry small { color: var(--muted); font-size: 10px; font-weight: 800; }
.publish-route-edit-entry strong { color: var(--forest-dark); font-size: 14px; overflow-wrap: anywhere; }
.publish-route-edit-entry span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.publish-route-edit-entry > button { white-space: nowrap; }
.publish-section-heading {
  margin-top: 4px;
  padding-bottom: 2px;
  border-bottom: 1px solid #e6ece3;
}

@media (max-width: 430px) {
  .publish-route-edit-entry { grid-template-columns: minmax(0, 1fr); }
  .publish-route-edit-entry > button { justify-self: start; }
}

/* Feedback cards keep one clear reading order: author/time, passability,
   location and evidence. The status accent is intentionally restrained so
   weather and vehicle data remain readable at a glance. */
.route-cloud-activity .feedback-compact-card,
.route-feedback-list-sheet .feedback-compact-card {
  border-radius: var(--offroad-card-radius-inner) !important;
  border-left-width: 5px !important;
  box-shadow: 0 6px 16px rgba(46, 73, 55, .09) !important;
}
.feedback-compact-card .route-feedback-card-overview { display: grid; gap: 3px; }
.feedback-compact-card .feedback-card-summary { padding-top: 1px; }
.feedback-compact-card .feedback-card-location {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 7px;
  padding: 6px 8px;
  color: #355b43 !important;
  background: rgba(225, 237, 223, .72);
  border-radius: 8px;
  font-size: 11px;
}
.feedback-compact-card .feedback-card-location [data-icon] { flex: 0 0 auto; width: 13px; height: 13px; }
.feedback-compact-card .feedback-card-traversal-summary { margin-top: 6px; }
.feedback-compact-card .route-feedback-card-metrics { margin-top: 2px; border-top: 1px solid #dfe7dc !important; }
.feedback-compact-card .feedback-run-metrics > span { min-height: 35px; }

/* Route and article detail polish: keep the existing DOM/actions, but restore
   clear peer cards so the important status is visible before the long details. */
.route-detail-page .route-detail-body {
  display: grid;
  gap: 12px;
  padding: 12px 14px 32px;
  background: #f6f8f3 !important;
}
.route-detail-page .route-detail-body > :is(.route-detail-risks, .route-start-navigation,
  .route-detail-weather-card, .route-detail-verdict, .route-departure-card,
  .route-reliability, .route-offline-package, .route-info-compact,
  .route-detail-stats, .route-detail-map-section, .route-detail-section,
  .route-live-intelligence, .route-cloud-activity, .route-detail-actions) {
  margin: 0;
  border: 1px solid #dbe5d9 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(45, 72, 53, .07) !important;
}
.route-detail-page .route-detail-body > .route-detail-risks,
.route-detail-page .route-detail-body > .route-live-intelligence {
  border-top: 3px solid #2f6d4b !important;
}
.route-detail-page .route-detail-body > .route-detail-stats {
  overflow: hidden;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.route-detail-page .route-detail-body > .route-detail-stats > span {
  min-height: 70px;
  padding: 13px 11px;
  background: #fff !important;
  border-color: #e5ece3 !important;
}
.route-detail-page .route-detail-body > .route-detail-stats > span:first-child b {
  color: #236744;
  font-size: 18px;
}
.route-detail-page .route-detail-body > .route-detail-stats small,
.route-detail-page .route-detail-body > .route-detail-stats b { white-space: normal; }
.route-detail-page .route-detail-body > .route-detail-map-section,
.route-detail-page .route-detail-body > .route-detail-section { padding: 14px; }
.route-detail-page .route-detail-body > .route-detail-map-section .route-detail-section-title,
.route-detail-page .route-detail-body > .route-detail-section .route-detail-section-title {
  margin-bottom: 11px;
}
.route-detail-page .route-detail-body > .route-cloud-activity { padding: 14px; }
.route-detail-page .route-detail-body > .route-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}
.route-detail-page .route-detail-body > .route-detail-actions .map-option {
  min-height: 42px;
  margin: 0;
  border-radius: 12px;
}

.article-detail-page .detail-content {
  display: grid;
  gap: 12px;
  padding: 12px 14px 88px;
  background: #f6f8f3;
}
.article-detail-page .article-detail-intro,
.article-detail-page .article-detail-media,
.article-detail-page .route-share,
.article-detail-page .comments-section {
  margin: 0;
  padding: 16px;
  border: 1px solid #dbe5d9 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(45, 72, 53, .07) !important;
}
.article-detail-page .article-detail-intro { border-top: 3px solid #2f6d4b !important; }
.article-detail-page .article-detail-intro h1 {
  margin: 14px 0 10px;
  color: #1d3829;
  font-size: clamp(22px, 6vw, 30px);
  line-height: 1.2;
}
.article-detail-page .content-policy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.article-detail-page .content-policy-row > span,
.article-detail-page .topic-cloud button {
  padding: 5px 9px;
  border: 1px solid #d8e5d7;
  border-radius: 999px;
  background: #f3f8f0;
  color: #47705a;
  font-size: 11px;
}
.article-detail-page .route-share {
  display: grid;
  gap: 12px;
}
.article-detail-page .route-share > .section-title,
.article-detail-page .route-share .subsection-title {
  margin: 0;
  padding-bottom: 9px;
  border-bottom: 1px solid #e1e9df;
}
.article-detail-page .route-share .route-grid-overview,
.article-detail-page .route-share .route-reality-section,
.article-detail-page .route-share .route-cloud-activity,
.article-detail-page .route-share [data-detail-primary],
.article-detail-page .route-share [data-detail-reality],
.article-detail-page .route-share [data-detail-facilities],
.article-detail-page .route-share [data-detail-activity] {
  margin: 0;
  padding: 12px;
  border: 1px solid #e0e9df;
  border-radius: 14px;
  background: #fbfdf9;
}
.article-detail-page .route-share .route-reality-meta {
  gap: 8px;
  margin: 10px 0;
}
.article-detail-page .route-share .route-reality-meta > span {
  min-height: 52px;
  padding: 9px;
  border: 1px solid #e0e9df !important;
  border-radius: 12px !important;
  background: #fff !important;
}
.article-detail-page .route-share .route-cloud-activity {
  border-top: 3px solid #d58b39;
}
.article-detail-page .detail-action-dock {
  border-top: 1px solid #dbe5d9;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -4px 14px rgba(45, 72, 53, .08);
}
@media (max-width: 560px) {
  .route-detail-page .route-detail-body > .route-detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-detail-page .route-detail-body > .route-detail-stats > span { min-height: 62px; }
  .route-detail-page .route-detail-body > .route-detail-actions { grid-template-columns: 1fr; }
  .article-detail-page .article-detail-intro,
  .article-detail-page .article-detail-media,
  .article-detail-page .route-share,
  .article-detail-page .comments-section { padding: 13px; }
}
@media (max-width: 420px) {
  .publish-route-summary-main { grid-template-columns: 30px minmax(0, 1fr); }
  .publish-route-summary-icon { width: 30px; height: 30px; border-radius: 9px; }
  .publish-route-summary-status { grid-column: 2; justify-self: start; }
  .publish-route-summary-main strong { font-size: 14px; }
  .publish-route-summary-stats b { font-size: 11px; }
}
