/* Material 3 Expressive geometry with field-note colours. This is the final
   theme layer; data views, map tiles and native permission actions stay intact. */
:root {
  --ink: #243c2e;
  --muted: #6b7969;
  --soft: #7e8978;
  --paper: #edf4e8;
  --panel: #f9fbf5;
  --field: #e2ecd9;
  --forest: #2d513b;
  --forest-2: #446847;
  --moss: #718548;
  --sage: #dbe8cc;
  --orange: #c56c37;
  --gold: #a77d3c;
  --line: #d6e1cf;
  --radius: 24px;
  --offroad-card-radius: 24px;
  --offroad-card-radius-inner: 16px;
  --shadow: 0 5px 18px rgba(45, 73, 43, .065);
  --md-primary: #3e6848;
  --md-primary-container: #dcebcf;
  --md-sand: #f2ecdc;
  --md-on-primary: #fff;
  --md-on-primary-container: #263f2c;
  --md-surface: #f9fbf5;
  --md-surface-container: #edf4e8;
  --md-on-surface: #243c2e;
  --md-on-surface-variant: #52624f;
  --md-outline: #9aaf91;
  --md-outline-variant: #d6e1cf;
  --md-caution-container: #faedce;
  --md-on-caution-container: #654b13;
  --md-error-container: #f9ded8;
  --md-on-error-container: #842c25;
}
html, body, body.android-webview { background-color: var(--paper); color: var(--ink); }
body { padding: 0; }
.app-shell { width: min(100%, 480px); height: 100dvh; min-height: 0; }
.app-shell::before, .app-shell::after { display: none !important; }
.app-shell, body.android-webview .app-shell {
  background-color: var(--paper) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.app-main { padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important; }
.app-shell.fullscreen-map .app-main { padding: 0 !important; height: 100%; min-height: 100%; }
.app-shell.fullscreen-map { height: 100dvh; }
.feedback-selected-media { display: inline-flex; align-items: center; gap: 8px; margin: 4px; }
.feedback-selected-media img { width: 76px; height: 64px; border-radius: 10px; object-fit: cover; }
.app-main, .bottom-sheet, .profile-full-page, .app-settings-page,
.route-detail-body, .article-detail-body, .team-rally {
  background-color: var(--paper);
  background-image: url('./offroad-pattern.svg');
  background-size: 420px 540px;
}
.topbar, body.android-webview .topbar {
  color: var(--ink);
  background: #f9fcf4;
  border: 0;
  border-bottom: 1px solid #e0e8d8;
  box-shadow: none;
}
.topbar .brand-lockup { color: var(--ink); }
.topbar .brand-lockup small { color: #7a8b72; font-size: 8px; letter-spacing: 1px; }
.topbar .brand-pin {
  width: 38px; height: 38px; border-radius: 14px; transform: none;
  color: #fff; background: linear-gradient(135deg, #34583d, #85934e);
  box-shadow: 0 4px 10px #47633c24;
}
.topbar .icon-button.subtle, .icon-button.subtle {
  color: var(--forest); background: #e8efdf; border: 0; border-radius: 50%;
}
.tabbar, body.android-webview .tabbar {
  width: min(calc(100% - 24px), 420px) !important;
  left: 50% !important; right: auto !important; transform: translateX(-50%) !important;
  bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  padding: 7px !important; gap: 3px;
  color: var(--muted); background: #fcfdf9;
  border: 1px solid #dde7d4; border-radius: 28px;
  box-shadow: 0 5px 20px #25442d1a;
}
.tab-item { color: #7a846f; border-radius: 22px; font-size: 10px; font-weight: 600; }
.tab-item.active:not(.upload-tab) {
  color: var(--forest); background: #e0edcf; border-radius: 22px; box-shadow: none;
}
.tab-item.upload-tab, .tab-item.upload-tab.active {
  color: #fff; background: linear-gradient(135deg, #3d6845, #82924e);
  border-radius: 22px; box-shadow: 0 4px 11px #3b60352b;
}
.primary-button, .map-option.native, .team-rally .primary-button,
.team-modal .primary-button {
  color: #fff; background: linear-gradient(120deg, #365f40, #758947);
  border: 0; border-radius: 999px; box-shadow: 0 3px 8px #4465371a;
}
.secondary-button, .map-option, .sheet-actions button, .team-rally button,
.team-modal button, .profile-settings-entries button, .route-vehicle-button {
  border-radius: 999px;
}
.secondary-button { color: var(--forest); background: #e7efdc; border-color: #d8e3cd; }
.search-field, .home-search, .profile-library-search, .team-search,
.team-rally input[type="search"] { color: var(--muted); background: #e3ecd9; border: 0; border-radius: 999px; box-shadow: none; }
.filter-row button, .home-sort button, .profile-library-filters button,
.team-list-filters button { border-radius: 999px; }
.filter-row button.active, .home-sort button.active, .team-list-filters button.active {
  color: #fff; background: #4c7046; border-color: transparent; box-shadow: 0 3px 7px #3a60351a;
}
.home-sort { background: transparent; border: 0; border-radius: 0; }
.eyebrow { color: #6c8251; letter-spacing: .07em; }
.feed-card, .route-library-card, .route-vehicle-card, .profile-page-entry,
.team-rally .team-card, .team-home-recent, .team-home-empty,
.publish-content-card, .publish-route-card, .publish-section-card,
.point-feedback-card, .account-settings-card {
  border: 1px solid #dfe7d6; border-radius: 24px; background: var(--panel);
  box-shadow: var(--shadow); overflow: hidden;
}
.feed-card .feed-cover { border-radius: 23px 23px 0 0; }
.feed-card .feed-cover img { border-radius: inherit; }
.feed-card h2, .feed-card h3 { color: var(--ink); }
.route-vehicle-card, .route-vehicle-card.active { border-top: 3px solid #819654; border-radius: 24px; }
.profile-view > .profile-card {
  color: #fff; background: linear-gradient(120deg, #2d503a, #7d8e4f) !important;
  grid-template-columns: 52px minmax(0,1fr) auto; grid-template-rows: auto auto;
  min-height: 126px; gap: 12px; padding: 16px;
  border: 0 !important; border-radius: 26px; box-shadow: var(--shadow);
}
.profile-view > .profile-card :is(.profile-info h2, .profile-info p, .profile-bio, .profile-bio button) { color: #fff !important; }
.profile-card .profile-info p { opacity: .85; }
.profile-view > .profile-card .profile-account-action {
  position: static; align-self: center;
  color: #fff !important; background: #ffffff20 !important; border: 1px solid #ffffff30 !important; border-radius: 16px;
}
.profile-view > .profile-card .profile-avatar { width: 52px; height: 52px; align-self: center; color: #fff !important; background: #ffffff20 !important; border-radius: 18px; border-color: #ffffff40; }
.profile-view > .profile-card .profile-info { align-self: center; padding: 0; }
.profile-view > .profile-card .profile-info h2 { font-size: 19px; }
.profile-view > .profile-card .profile-info p { font-size: 10px; }
.profile-card .profile-bio { border-top-color: #ffffff30; }
.profile-stats { background: transparent; border: 0; box-shadow: none; }
.profile-stats strong { color: #293e2a; font-size: 27px; }
.profile-field-grid { gap: 10px; }
.profile-field-grid .profile-page-entry { border: 1px solid #dfe7d6 !important; border-radius: 24px !important; background: var(--panel) !important; }
.profile-field-grid .profile-page-entry:nth-child(4n+2) { background: #f2efdf !important; }
.profile-field-grid .profile-page-entry:nth-child(4n) { color: #fff; background: linear-gradient(125deg, #355b40, #778b49) !important; }
.profile-field-grid .profile-page-entry:nth-child(4n) :is(strong,small,b,.profile-entry-metric,.profile-section-icon) { color: #fff; }
.profile-page-entry .profile-section-toggle { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.profile-page-entry .profile-section-icon { color: #658249; background: transparent; }
.profile-entry-metric b { font-size: 28px; }
.profile-settings-entries { gap: 8px; }
.profile-settings-entries button { color: var(--forest); background: #e2ecd7; border: 0; }
.bottom-sheet { border: 0; border-radius: 28px 28px 0 0; box-shadow: 0 -8px 36px #243e2d1a; }
.sheet-close-button, .profile-full-page-header > button { color: var(--forest); background: #e2ecd8; border: 0; border-radius: 50%; }
.bottom-sheet input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.bottom-sheet select, .bottom-sheet textarea, .publish-view input, .publish-view textarea,
.team-modal input:not([type="checkbox"]), .team-modal select, .team-modal textarea {
  color: var(--ink); background: #f6f9f0; border: 1px solid #d5dfcc; border-radius: 16px;
}
.team-home-section, .team-rally .team-list-section, .route-cloud-activity,
.route-detail-body > .route-cloud-activity, .route-feedback-full-list,
.route-feedback-list, .publish-block, .profile-route-list {
  background: transparent !important; border: 0 !important;
  border-radius: 0 !important; box-shadow: none !important;
}
.team-home-tools { gap: 10px; }
.team-rally .team-heading, .publish-view > .section-heading {
  padding: 4px 0 12px !important; background: transparent !important; border: 0 !important;
  border-radius: 0 !important; box-shadow: none !important;
}
.team-rally .team-home-trip {
  color: #fff !important; background: linear-gradient(125deg,#2d503a,#7d8e4f) !important;
  border: 0 !important; border-radius: 26px !important;
}
.team-home-trip :is(.team-home-trip-top small,h3,>p,.team-home-trip-bottom>span) { color: #fff !important; }
.today-recommendation-card { border: 0; border-radius: 22px; background: #e3ecd8; }
.team-home-tools > button { border: 0; border-radius: 22px; background: #e1edd5; }
.team-home-tools > button:nth-child(2) { background: #eee8d6; }
.team-home-tools > button:nth-child(3) { background: #e1e8da; }
.team-rally { --team-forest: #34573c; --team-muted: #71806a; --team-field: #e4eddc; --team-line: #d8e3cd; }
.team-rally .team-card { padding: 16px; }
.team-rally .team-card:nth-child(3n+2) { background: #f1eddd; }
.team-rally .team-card:nth-child(3n) { background: #e3ecd9; }
.team-rally .team-overview, .team-rally .team-journey,
.team-rally .team-checklist, .team-rally .team-members, .team-rally .team-chat {
  border: 1px solid #dbe5d1; border-radius: 24px; background: #f8faf3; box-shadow: var(--shadow);
}
.team-modal .team-form-section { border-radius: 22px; background: #e4eddc; border: 0; }
.team-modal .team-form-section:nth-of-type(2n) { background: #f1ead9; }
.route-cloud-activity .route-feedback-list { margin: 8px 0 0; }
.route-cloud-activity-head { padding-inline: 0; }
.route-cloud-activity-grid { margin-inline: 0; gap: 8px; }
.route-cloud-activity-grid > span { border: 0; border-radius: 20px; background: #e3edd8; box-shadow: none; }
.route-cloud-activity-grid > span:nth-child(even) { background: #eee9d7; }
.route-cloud-activity-grid b { color: var(--forest); font-variant-numeric: tabular-nums; }
.route-cloud-activity .feedback-compact-card, .route-feedback-list-sheet .feedback-compact-card {
  margin-inline: 0; border: 1px solid var(--feedback-card-edge) !important;
  border-radius: 22px; box-shadow: 0 3px 10px #3653320a;
}
.feedback-compact-card .route-feedback-card-overview { padding: 12px 14px 5px; }
.feedback-compact-card .route-feedback-card-metrics { padding: 4px 14px 8px; background: transparent !important; }
.feedback-compact-card .feedback-passability, .feedback-compact-card .feedback-change-summary b { border-radius: 999px; padding: 4px 8px; }
.feedback-compact-card .feedback-run-metrics b { font-size: 17px; }
.feedback-compact-card .feedback-card-details > summary { padding: 8px 14px; }
.feedback-compact-card .feedback-video-preview-row .feedback-media-button { border-radius: 14px; }
.route-feedback-list-sheet { padding-inline: 12px; }
.route-feedback-preview, .route-feedback-full-list { gap: 10px; }
.route-feedback-preview-rail { display: flex; gap: 12px; min-width: 0; padding: 2px 2px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.route-feedback-preview-rail > .route-feedback-item { flex: 0 0 min(82vw, 380px); scroll-snap-align: start; }
.route-cloud-activity .route-feedback-preview .route-feedback-more { position: static; justify-content: center; width: max-content; min-height: 34px; margin-top: 0; border: 0; border-radius: 999px; background: #dfead3; }
.feedback-card-location { display: flex; align-items: flex-start; gap: 4px; margin: 7px 0 0; color: #5c705e; font-size: 11px; line-height: 1.4; }
.feedback-card-location [data-icon] { flex: 0 0 auto; width: 13px; height: 13px; color: #557d52; }
.feedback-media-preview-row { display: flex; gap: 8px; margin-top: 8px; overflow: hidden; }
.feedback-media-preview-row .feedback-media-button { flex: 0 0 104px; width: 104px; height: 68px; }
@media (min-width: 680px) {
  .route-feedback-preview-rail > .route-feedback-item { flex-basis: 380px; }
}
.article-detail-body .article-media, .article-detail-body .article-image,
.post-detail-media, .article-inline-image { border: 1px solid #dbe4d2; border-radius: 20px; overflow: hidden; }
button, a, input, summary { -webkit-tap-highlight-color: #547a4220; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #9cad63; outline-offset: 3px; }
button:active:not(:disabled) { filter: brightness(.94); }

/* Final route/article feedback alignment: one surface, one card rhythm. */
:where(.route-share, .route-detail-body) {
  --route-surface: #f9fbf5;
  --route-surface-soft: #edf4e8;
  --route-edge: #d6e1cf;
  --route-radius: 24px;
  --route-inner-radius: 16px;
}
:where(.route-share, .route-detail-body > .route-cloud-activity) {
  width: auto;
  margin: 14px 0;
  padding: 16px;
  color: var(--ink);
  background: var(--route-surface) !important;
  border: 1px solid var(--route-edge) !important;
  border-radius: var(--route-radius) !important;
  box-shadow: var(--shadow) !important;
}
.route-share > .section-title,
.route-cloud-activity-head { margin: 0 0 12px; }
.route-share .section-title h2,
.route-cloud-activity-head h2 { color: var(--ink); font-size: 18px; line-height: 1.25; }
.route-share .section-title p,
.route-cloud-activity-head p { color: var(--muted); }
.route-share .route-grid,
.route-share .route-reality-section,
.route-share .route-cloud-activity { margin-top: 12px; }
.route-share .route-grid-overview,
.route-share .route-reality-section,
.route-share .route-cloud-activity,
.route-detail-body > .route-cloud-activity { padding: 0; border: 0 !important; box-shadow: none !important; background: transparent !important; }
.route-share .route-grid-overview > *,
.route-share .route-reality-meta > span,
.route-share .route-reality-grid > *,
.route-share .facility-card { border-radius: var(--route-inner-radius) !important; border-color: var(--route-edge) !important; }
.route-cloud-activity-grid { margin: 0 0 12px; gap: 8px; }
.route-cloud-activity-grid > span {
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid var(--route-edge) !important;
  border-radius: var(--route-inner-radius) !important;
  background: var(--route-surface-soft) !important;
}
.route-cloud-activity-grid > span:nth-child(even) { background: #f2ecdc !important; }
.route-cloud-activity .route-feedback-list,
.route-feedback-list-sheet .route-feedback-full-list { margin: 0; padding: 0; }
.route-feedback-list-sheet {
  width: min(100vw, 480px) !important;
  max-width: 480px !important;
  padding: 18px 14px max(18px, env(safe-area-inset-bottom)) !important;
  background: var(--paper) !important;
  border: 0 !important;
  border-radius: 28px 28px 0 0 !important;
}
.route-feedback-list-sheet .route-feedback-full-list { gap: 10px; }
.route-cloud-activity .feedback-compact-card,
.route-feedback-list-sheet .feedback-compact-card {
  width: 100%;
  margin: 0;
  background: var(--route-surface) !important;
  border: 1px solid var(--route-edge) !important;
  border-radius: var(--route-inner-radius) !important;
  box-shadow: 0 3px 10px rgba(45, 73, 43, .065) !important;
}
.feedback-compact-card .route-feedback-card-overview,
.feedback-compact-card .route-feedback-card-evidence { padding-inline: 14px; }
.feedback-compact-card .route-feedback-card-metrics {
  padding: 8px 14px;
  background: var(--route-surface-soft) !important;
  border-top: 1px solid var(--route-edge) !important;
  border-bottom: 1px solid var(--route-edge) !important;
}
.feedback-compact-card .feedback-run-metrics { gap: 6px; }
.feedback-compact-card .feedback-run-metrics > span {
  min-width: 0;
  padding: 5px 3px;
  border: 0;
  border-radius: 10px;
  background: transparent;
}
.feedback-compact-card .feedback-passability,
.feedback-compact-card .feedback-change-summary b {
  border-radius: 999px;
}
.feedback-compact-card .feedback-card-summary { display: grid; gap: 5px; min-width: 0; }
.feedback-compact-card .feedback-card-summary-primary { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; min-width: 0; }
.feedback-compact-card .feedback-card-summary-primary > .feedback-passability { flex: 0 1 auto; max-width: 82px; overflow: hidden; padding: 4px 7px; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.feedback-compact-card .feedback-card-summary-primary > .feedback-media-count { flex: 0 1 auto; max-width: 72px; overflow: hidden; padding: 4px 6px; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.feedback-compact-card .feedback-card-summary-primary > .route-feedback-owner-actions { flex: 0 0 auto; gap: 4px; margin: 0; padding: 0; border: 0; }
.feedback-compact-card .feedback-card-summary-primary > .route-feedback-owner-actions button { min-height: 30px; gap: 3px; padding: 0 5px; font-size: 10px; white-space: nowrap; }
.feedback-compact-card .feedback-card-summary-primary > .route-feedback-owner-actions button [data-icon] svg { width: 14px; height: 14px; }
.feedback-compact-card .feedback-card-details { border-top: 0; }
.feedback-compact-card .feedback-card-details > summary { padding: 10px 14px; }
.feedback-compact-card .feedback-video-preview-row { gap: 8px; margin-top: 8px; }
.feedback-compact-card .feedback-video-preview-row .feedback-media-button {
  flex-basis: 104px; width: 104px; height: 68px;
  border: 1px solid var(--route-edge); border-radius: 12px;
}
.article-detail-body .article-media,
.article-detail-body .article-image,
.detail-view .detail-media,
.post-detail-media,
.article-inline-image {
  border: 1px solid var(--route-edge);
  border-radius: var(--route-radius);
  box-shadow: var(--shadow);
}
@media (max-width: 480px) {
  :where(.route-share, .route-detail-body > .route-cloud-activity) { margin: 10px 0; padding: 14px; border-radius: 20px !important; }
  .route-feedback-list-sheet { padding-inline: 12px !important; border-radius: 24px 24px 0 0 !important; }
  .route-cloud-activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feedback-compact-card .feedback-run-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Route and article previews use the same carousel. Each card keeps its own height. */
.route-cloud-activity .route-feedback-preview-rail { align-items: flex-start; overflow-y: hidden; }
.route-cloud-activity .route-feedback-preview-rail > .route-feedback-item { flex: 0 0 82%; height: auto !important; min-height: 0; border-radius: 20px; }
.route-cloud-activity .feedback-compact-card { border: 1.5px solid #9aaf91 !important; background: #fbfdf8 !important; }
.route-feedback-preview-card .route-feedback-card-evidence { min-height: 0; }
.route-feedback-preview-card .feedback-card-traversal-summary { display: none; }
.feedback-media-button.media-load-failed::after { content: '图片暂未加载，点击重试查看'; display: block; padding: 18px 8px; color: var(--forest); }
.route-feedback-preview-card .route-feedback-media:has(> :only-child) .feedback-media-button { flex: 1 1 100%; width: 100%; height: 190px; }
.route-feedback-preview-card .route-feedback-media:has(> :only-child) img { width: 100%; height: 100%; object-fit: contain; }
#route-feedback-upload-strip[hidden] { display: none !important; }

/* Shared detail roles: neutral reading surfaces, primary action and explicit
   road-condition labels. Recency never implies a route is safe to travel. */
.route-detail-page .route-detail-body { background-color: var(--paper); }
.detail-view .detail-content,
.detail-view .route-share,
.route-detail-body > :is(.route-detail-stats, .route-detail-map-section, .route-detail-section, .route-info-compact) {
  color: var(--ink);
  background-color: var(--panel) !important;
  border-color: var(--line) !important;
  box-shadow: var(--shadow);
  border-radius: 24px;
}
.detail-view .route-share .route-grid-overview > *,
.detail-view .route-share .facility-card,
.route-detail-keypoint-list > button {
  color: var(--ink);
  background-color: var(--panel) !important;
  border-color: var(--line) !important;
}
.detail-view .route-reality-meta > span,
.detail-view .route-reality-grid > *,
.route-detail-stats > span:nth-child(even),
.route-detail-body .route-detail-weather-card,
.detail-view .article-route-weather-card {
  background-color: #f2efdf !important;
  border-color: var(--line) !important;
}
.detail-view :is(h1, h2, h3, .subsection-title > strong),
.route-detail-body :is(h2, h3, .compact-stat-row b, .route-detail-stats b) { color: var(--forest); }
.detail-view :is(.author-line, .content-policy-row),
.route-detail-body :is(.route-detail-section-title p, .compact-card-head small, .compact-freshness) { color: var(--muted); }
.route-cloud-activity-head {
  color: var(--md-on-surface);
  background: transparent;
  border-color: var(--md-outline-variant);
  padding: 0 0 12px;
}
.route-cloud-activity-head h2,
.route-share .route-cloud-activity-head h2 { color: var(--md-on-surface); }
.route-cloud-activity-head p,
.route-share .route-cloud-activity-head p { color: var(--md-on-surface-variant); }
.route-cloud-activity-head > span { color: var(--md-on-surface-variant); background: var(--md-surface-container); border-color: var(--md-outline-variant); }
.route-cloud-activity-grid { background: transparent; }
.route-cloud-activity-grid > span { background: var(--panel) !important; border-color: var(--line) !important; }
.route-cloud-activity-grid > span:nth-child(even) { background: #f2efdf !important; }

:is(.route-cloud-activity, .route-feedback-list-sheet) .route-feedback-item.feedback-compact-card {
  --feedback-card-bg: var(--md-surface) !important;
  --feedback-card-edge: var(--md-outline) !important;
  --feedback-card-text: var(--md-on-surface);
  --feedback-card-muted: var(--md-on-surface-variant);
  --feedback-card-inset: var(--md-surface-container);
  --feedback-card-divider: var(--md-outline-variant);
  --feedback-card-badge: var(--md-surface-container);
  color: var(--feedback-card-text) !important;
  background: var(--feedback-card-bg) !important;
  border-color: var(--feedback-card-edge) !important;
  box-shadow: var(--shadow) !important;
  border-radius: 20px !important;
}
:is(.route-cloud-activity, .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,
  .feedback-card-traversal-summary, .feedback-card-traversal-summary *,
  .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;
}
:is(.route-cloud-activity, .route-feedback-list-sheet) .feedback-compact-card :is(
  .feedback-card-head time, .feedback-run-metrics small, .feedback-point-group small, .route-feedback-travel-meta) {
  color: var(--feedback-card-muted) !important;
}
:is(.route-cloud-activity, .route-feedback-list-sheet) .feedback-compact-card :is(
  .route-feedback-card-metrics, .feedback-point-group, .feedback-change-details, .route-feedback-traversal) {
  background: var(--feedback-card-inset) !important;
  border-color: var(--feedback-card-divider) !important;
}
:is(.route-cloud-activity, .route-feedback-list-sheet) .feedback-compact-card .feedback-run-metrics > span {
  background: transparent !important;
  border-color: var(--feedback-card-divider) !important;
}
:is(.route-cloud-activity, .route-feedback-list-sheet) .feedback-compact-card :is(.feedback-media-count, .feedback-change-summary b) {
  color: var(--feedback-card-text) !important;
  background: var(--feedback-card-badge) !important;
}
:is(.route-cloud-activity, .route-feedback-list-sheet) .feedback-compact-card .feedback-passability {
  color: var(--md-on-surface-variant) !important;
  background: var(--md-surface-container) !important;
}
:is(.route-cloud-activity, .route-feedback-list-sheet) .feedback-compact-card .feedback-passability.status-clear {
  color: var(--md-on-primary-container) !important;
  background: var(--md-primary-container) !important;
}
:is(.route-cloud-activity, .route-feedback-list-sheet) .feedback-compact-card .feedback-passability.status-caution {
  color: var(--md-on-caution-container) !important;
  background: var(--md-caution-container) !important;
}
:is(.route-cloud-activity, .route-feedback-list-sheet) .feedback-compact-card :is(.feedback-passability.status-danger, .feedback-passability.status-blocked, .feedback-passability.is-closed) {
  color: var(--md-on-error-container) !important;
  background: var(--md-error-container) !important;
}
.feedback-compact-card .feedback-card-head { flex-wrap: wrap; }
.feedback-compact-card .feedback-card-head time { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.feedback-compact-card .feedback-recency {
  padding: 2px 6px; border: 1px solid var(--md-outline-variant); border-radius: 6px;
  color: var(--md-on-surface) !important; background: var(--md-surface-container); font-size: 11px; font-weight: 700;
}
.route-feedback-preview-card .route-feedback-card-evidence > p { font-size: 14px; line-height: 1.6; }
.route-feedback-preview-card .feedback-point-group > strong { font-size: 12px; }
.route-cloud-activity .route-feedback-item.route-feedback-preview-card { display: flex; flex-direction: column; }
.route-feedback-preview-card .route-feedback-card-overview { order: 0; }
.route-feedback-preview-card .route-feedback-card-evidence { order: 1; }
.route-feedback-preview-card .route-feedback-card-metrics { order: 2; }
:is(.route-cloud-activity, .route-feedback-list-sheet) .feedback-compact-card .route-feedback-traversal {
  background: transparent !important; padding: 8px 0 0; border: 0;
  font-size: 12px; line-height: 1.5; color: var(--feedback-card-muted) !important;
}
.feedback-compact-card .route-feedback-traversal > strong { display: block; font-size: 11px; }
.route-run-history { margin-top: 14px; border-top: 1px solid var(--md-outline-variant); }
.route-run-history > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 48px; cursor: pointer; list-style: none; color: var(--md-on-surface);
}
.route-run-history > summary::-webkit-details-marker { display: none; }
.route-run-history > summary > span { margin-left: auto; color: var(--md-on-surface-variant); font-size: 12px; }
.route-run-history > summary::after { content: '⌄'; font-size: 20px; }
.route-run-history[open] > summary::after { content: '⌃'; }
.route-run-history .route-cloud-activity-grid { margin-top: 4px; }
:is(.route-feedback-more, .route-server-status button, .feedback-card-details > summary) { min-height: 48px; }
:is(.route-start-navigation, .route-cloud-activity, .route-feedback-list-sheet) :is(button, summary):focus-visible {
  outline: 3px solid var(--md-primary); outline-offset: 3px;
}
:is(.route-cloud-activity, .route-feedback-list-sheet) .feedback-compact-card .feedback-card-details {
  border-color: var(--feedback-card-divider) !important;
}
.route-feedback-sheet,
.route-feedback-list-sheet,
.route-feedback-readonly-sheet { background-color: var(--paper) !important; }
.route-feedback-sheet :is(input, textarea, select) { background-color: var(--panel) !important; border-color: var(--line) !important; }
:is(.route-cloud-activity, .route-feedback-list-sheet) .feedback-compact-card .feedback-media-button :is(
  .feedback-media-time, .feedback-video-play, .feedback-video-placeholder) { color: #fff !important; }
:is(.detail-view, .route-detail-body) .route-start-navigation {
  background: var(--panel); border-color: var(--line); border-radius: 24px;
}
:is(.detail-view, .route-detail-body) .route-start-navigation .map-option:is(.amap, .baidu, .simulation) {
  color: var(--forest); background: #e2ecd9; border-color: var(--line);
}
:is(.detail-view, .route-detail-body) .route-start-navigation .map-option:is(.baidu, .simulation) { background: #f2efdf; }
.route-start-navigation .route-preparation-entry {
  min-height: 48px !important; color: var(--md-on-primary) !important; background: var(--md-primary) !important;
  border-radius: 12px; font-size: 14px;
}
.route-start-navigation .route-start-navigation-actions .map-option { min-height: 48px !important; padding: 0 7px; font-size: 12px; line-height: 1.25; }
.route-start-navigation .route-navigation-more { border-top: 1px solid var(--md-outline-variant); }
.route-navigation-more > summary { display: flex; align-items: center; gap: 8px; min-height: 40px; color: var(--md-on-surface-variant); font-size: 12px; cursor: pointer; list-style: none; }
.route-navigation-more > summary::-webkit-details-marker { display: none; }
.route-navigation-more > summary::after { content: '⌄'; margin-left: auto; }
.route-navigation-more[open] > summary::after { content: '⌃'; }
.detail-view .detail-action-dock { color: var(--forest); background: var(--panel); border-color: var(--line); box-shadow: var(--shadow); }
.detail-view .detail-action-dock button { color: var(--forest); background: transparent; border-color: var(--line); }
.detail-view .detail-action-dock button.active { color: var(--forest); background: var(--sage); }

/* Final page-level overrides: keep article and route wrappers open and aligned.
   The route-feedback cards above remain untouched. */
.article-detail-page .detail-content {
  margin: 0 !important;
  background: #f9fcf6 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.article-detail-page .route-share {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.article-detail-page :is(.route-overview-card, .route-start-navigation, .comments-section),
.route-detail-page .route-detail-body > :is(.route-detail-stats, .route-detail-map-section, .route-detail-section, .route-info-compact, .route-detail-weather-card, .route-detail-verdict, .route-departure-card, .route-reliability, .route-offline-package, .route-start-navigation) {
  border-radius: 8px !important;
  box-shadow: none !important;
}
.route-detail-page {
  margin: -12px -12px 0;
  background: #f9fcf6 !important;
}
.route-detail-page .route-detail-body { background: #f9fcf6 !important; }

/* Navigation keeps the map in focus, with compact controls and clear touch targets. */
.satellite-nav-view.navigation-active .native-navigation-overlay { top: calc(env(safe-area-inset-top) + 8px); }
.satellite-nav-view.navigation-active .satellite-nav-top { top: calc(50% - 88px); right: 14px; left: auto; z-index: 49; }
.satellite-nav-view.navigation-active .sat-close {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  color: #f3f8ec;
  background: #293e30;
  border: 1px solid #61745a;
  border-radius: 14px;
  box-shadow: 0 3px 10px #13271b24;
}
.satellite-nav-view.navigation-active .sat-close > span:not([data-icon]) { display: none; }
.satellite-nav-view.navigation-active .sat-close [data-icon] { width: 22px; height: 22px; }
.satellite-nav-view.navigation-active .map-zoom { top: calc(50% - 32px); }
.native-navigation-overlay .navigation-top-panel,
.native-navigation-overlay .navigation-bottom-panel {
  flex: 0 0 auto;
  width: min(100%, 400px);
  min-width: 0;
  gap: 8px;
  padding: 10px;
  color: #f4f8ef;
  background: #293e30;
  border: 1px solid #61745a;
  border-radius: 20px;
  box-shadow: 0 4px 14px #13271b24;
  backdrop-filter: none;
}
.native-navigation-overlay .navigation-top-panel { max-height: none; overflow: visible; }
.native-navigation-overlay .navigation-bottom-panel { padding: 8px; gap: 6px; }
.native-navigation-overlay .nav-road-sign,
.native-navigation-overlay .nav-road-sign.imminent {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.native-navigation-overlay .nav-turn-icon,
.native-navigation-overlay .nav-road-sign.imminent .nav-turn-icon {
  width: 42px;
  height: 46px;
  border-radius: 14px;
  color: #e9f4dc;
  background: #496747;
}
.native-navigation-overlay .nav-turn-icon [data-icon] { color: inherit; }
.native-navigation-overlay .nav-turn-icon svg,
.native-navigation-overlay .nav-road-sign.imminent .nav-turn-icon svg { width: 28px; height: 28px; }
.native-navigation-overlay .nav-road-sign.imminent .nav-turn-icon { color: #ffe6cb; background: #78502d; }
.native-navigation-overlay .nav-road-sign.uturn .nav-turn-icon { color: #ffe2da; background: #7c4036; }
.native-navigation-overlay .nav-sign-copy { display: grid; gap: 2px; }
.native-navigation-overlay .nav-sign-copy small { font-size: 10px; line-height: 1.2; color: #c0d0b9; font-weight: 500; }
.native-navigation-overlay .nav-road-sign strong { display: block; font-size: clamp(19px, 5.2vw, 23px); line-height: 1.22; font-weight: 750; overflow-wrap: anywhere; }
.native-navigation-overlay .nav-sign-copy > span { display: block; font-size: 11px; line-height: 1.3; color: #d0ddc9; font-weight: 500; }
.native-navigation-overlay .navigation-deviation {
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 8px;
  color: #ffe7d6;
  background: #62452f;
  border: 1px solid #a27f51;
  border-radius: 10px;
  box-shadow: none;
}
.native-navigation-overlay .navigation-deviation > div { display: flex; align-items: baseline; gap: 6px; flex: 0 0 auto; }
.native-navigation-overlay .navigation-deviation small { font-size: 10px; font-weight: 500; }
.native-navigation-overlay .navigation-deviation strong { font-size: 13px; line-height: 1.25; }
.native-navigation-overlay .navigation-deviation > span { max-width: none; font-size: 10px; line-height: 1.3; font-weight: 500; }
.native-navigation-overlay .nav-event-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  overflow: visible;
}
.native-navigation-overlay .nav-event-list:not(:has(.nav-event-card:not([hidden]))) { display: none; }
.native-navigation-overlay .nav-event-card {
  flex: 0 0 auto;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 6px;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 7px 8px;
  border: 1px solid #5a7056;
  border-radius: 12px;
  background: #364c3b;
  scroll-snap-align: start;
}
.native-navigation-overlay .nav-event-card:not([hidden]) { display: grid; }
.native-navigation-overlay .nav-event-card[data-nav-event-slot="0"] { min-height: 78px; }
.native-navigation-overlay .nav-event-list:has(.nav-event-card.has-media:not([hidden])) .nav-event-card.has-media:not([hidden]) {
  display: flex;
  flex: 0 0 auto;
}
.native-navigation-overlay .nav-event-card[data-nav-event-slot="1"]{min-height:34px;grid-template-columns:8px minmax(0,1fr) auto;padding:5px 8px}
.native-navigation-overlay .nav-event-card[data-nav-event-slot="1"] .nav-event-copy{display:flex;align-items:center;gap:6px;overflow:hidden}
.native-navigation-overlay .nav-event-card[data-nav-event-slot="1"] .nav-event-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.native-navigation-overlay .nav-event-pin { width: 7px; height: 7px; border: 0; box-shadow: none; }
.native-navigation-overlay .nav-event-copy { min-width: 0; }
.native-navigation-overlay .nav-event-copy small { font-size: 9px; line-height: 1.2; font-weight: 500; color: #c7d6c0; }
.native-navigation-overlay .nav-event-copy strong { font-size: 12px; line-height: 1.4; font-weight: 650; color: #f5f9ee; }
.native-navigation-overlay .nav-event-copy > span { font-size: 9px; line-height: 1.3; font-weight: 400; white-space: nowrap; color: #bdcdb6; }
.native-navigation-overlay .nav-event-card > b { font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.native-navigation-overlay .nav-guidance-note { font-size: 10px; line-height: 1.4; color: #c0d0b9; font-weight: 400; }
.native-navigation-overlay .nav-guidance-note strong { font-weight: 500; }
.native-navigation-overlay .nav-progress-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 6px 5px;
  border-bottom: 1px solid #52664b;
}
.native-navigation-overlay .nav-progress-card > div { display: flex; align-items: baseline; gap: 6px; padding: 0; min-width: 0; background: transparent; }
.native-navigation-overlay .nav-progress-card small { font-size: 11px; font-weight: 500; color: #c0d0b9; }
.native-navigation-overlay .nav-progress-card strong { font-size: 17px; line-height: 1.5; font-weight: 650; white-space: nowrap; }
.native-navigation-overlay .nav-control-row { display: flex; gap: 4px; }
.native-navigation-overlay .nav-control-row button {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 5px 2px;
  border: 0;
  border-radius: 12px;
  color: #f3f8ec;
  background: #3b5341;
  font: inherit;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 550;
  white-space: nowrap;
}
.native-navigation-overlay .nav-control-row button[hidden] { display: none; }
.native-navigation-overlay .nav-control-row button strong { font: inherit; color: inherit; white-space: nowrap; }
.native-navigation-overlay .nav-control-row button [data-icon] { flex: 0 0 auto; display: inline-flex; width: 19px; height: 19px; color: inherit; }
.native-navigation-overlay .nav-control-row button [data-icon] svg { width: 100%; height: 100%; }
.native-navigation-overlay .nav-control-row button.navigation-quick-point-trigger { color: #263f2c; background: #dcebcf; }
.native-navigation-overlay .navigation-quick-point-trigger b { position: absolute; top: 3px; right: 3px; min-width: 15px; padding: 0 4px; font-size: 9px; line-height: 15px; }
.native-navigation-overlay .navigation-quick-point-trigger b:empty { display: none; }
.native-navigation-overlay .nav-control-row button.navigation-direction-toggle.reversed { color: #ffedcb; background: #675536; }
.native-navigation-overlay .nav-control-row button[data-action="stop-native-navigation"] { color: #ffded4; background: #694239; }
.native-navigation-overlay .nav-control-row button:active,
.native-navigation-overlay .nav-event-card:active { filter: brightness(1.15); }
.native-navigation-overlay :is(button, select, input, textarea):focus-visible { outline: 2px solid #dcebcf; outline-offset: 2px; }
.native-navigation-overlay .nav-speed-controls { gap: 4px; }
.native-navigation-overlay .nav-speed-controls button { min-height: 36px; padding: 4px; border-radius: 10px; font-size: 12px; }
.native-navigation-overlay .navigation-quick-point-panel { right: 0; bottom: 116px; z-index: 60; max-height: calc(100% - 116px); overflow-y: auto; border-radius: 18px; }

@media (max-width: 350px) {
  .native-navigation-overlay .navigation-top-panel { padding: 8px; gap: 6px; }
  .native-navigation-overlay .navigation-bottom-panel { padding: 7px; }
  .native-navigation-overlay .nav-control-row button { font-size: 10px; min-height: 50px; }
  .native-navigation-overlay .nav-event-card { gap: 4px; padding: 6px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .satellite-nav-view.navigation-active .satellite-nav-top { top: calc(env(safe-area-inset-top) + 8px); }
  .satellite-nav-view.navigation-active .map-zoom { top: calc(env(safe-area-inset-top) + 64px); }
  .native-navigation-overlay .navigation-top-panel { position: absolute; top: 0; left: 0; width: min(47%, 360px); padding: 8px; gap: 6px; }
  .native-navigation-overlay .navigation-bottom-panel { position: absolute; right: 0; bottom: 0; width: min(49%, 400px); }
  .native-navigation-overlay .navigation-quick-point-panel { width: min(49%, 360px); }
}

/* 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: nowrap;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.article-detail-page .content-policy-row > span,
.article-detail-page .topic-cloud button {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #d8e5d7;
  border-radius: 999px;
  background: #f3f8f0;
  color: #47705a;
  font-size: 11px;
}
.article-detail-page .content-policy-row::-webkit-scrollbar { display: none; }
.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; }
}

/* Route feedback now keeps its key deltas and weather visible in a compact summary. */
.feedback-compact-card .route-feedback-card-overview { display: grid; gap: 8px; }
.feedback-compact-card .feedback-change-weather { gap: 6px; padding: 8px; }
.feedback-compact-card .feedback-change-weather .feedback-change-details { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; }
.feedback-compact-card .feedback-change-weather .feedback-change-detail { gap: 4px; padding: 3px 5px; background: rgba(255, 255, 255, .72); border-radius: 5px; font-size: 10px; line-height: 1.3; }
.feedback-compact-card .feedback-change-weather .feedback-change-detail b { min-width: 0; margin: 0; font-size: 9px; }
.feedback-compact-card .feedback-change-weather .feedback-change-overflow { font-size: 9px; }
.feedback-compact-card .feedback-weather-history > summary { padding-top: 5px; }
.feedback-compact-card .feedback-media-highlight { gap: 5px; }
.feedback-compact-card .feedback-media-preview-row { display: flex; flex-wrap: nowrap; gap: 7px; margin: 0; padding-bottom: 2px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.feedback-compact-card .feedback-media-preview-row .feedback-media-button { flex: 0 0 88px; width: 88px; height: 62px; }
.feedback-compact-card .feedback-note-preview { display: -webkit-box; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.feedback-compact-card .feedback-vehicle-details > summary { min-height: 42px; padding: 5px 8px; }
.feedback-compact-card .feedback-vehicle-details .feedback-vehicle-snapshot { padding: 7px; }
.feedback-compact-card .feedback-vehicle-details .feedback-vehicle-spec-grid { gap: 4px; }
.route-cloud-activity .route-feedback-preview-card .route-feedback-card-evidence > p:first-child { display: -webkit-box; max-height: 4.5em; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

.route-info-compact.route-detail-risks .compact-risk-line { color: var(--md-on-surface-variant); }
.route-detail-risks .compact-card-head { align-items: flex-start; }
.route-detail-risks .compact-card-head strong { max-width: 100%; line-height: 1.45; }
.route-road-risk-list { display: grid; gap: 6px; margin-top: 10px; }
.route-road-risk-row { display: grid; grid-template-columns: minmax(66px, auto) minmax(0, 1fr); align-items: start; gap: 8px; padding: 8px 9px; border: 1px solid var(--md-outline-variant); border-left: 3px solid #b17a2a; border-radius: 8px; background: var(--md-surface); color: var(--md-on-surface); }
.route-road-risk-row.blocked { border-left-color: #9b342d; background: var(--md-error-container); }
.route-road-risk-row > b { color: var(--md-on-surface-variant); font-size: 11px; white-space: nowrap; }
.route-road-risk-row span { min-width: 0; }
.route-road-risk-row strong, .route-road-risk-row small { display: block; overflow-wrap: anywhere; }
.route-road-risk-row strong { font-size: 12px; line-height: 1.45; }
.route-road-risk-row small { margin-top: 3px; color: var(--md-on-surface-variant); font-size: 11px; line-height: 1.45; }
.route-road-normal-note { margin: 8px 0 0; color: var(--md-on-surface-variant); font-size: 11px; line-height: 1.5; }
.route-road-attribution { display: block; margin-top: 8px; color: var(--md-on-surface-variant); font-size: 10px; line-height: 1.4; }
@media (max-width: 360px) {
  .route-road-risk-row { grid-template-columns: 1fr; gap: 3px; }
}

