:root {
  --ink: #263e34;
  --green: #254c3f;
  --muted: #69746c;
  --paper: #ffffff;
  --line: #e5eae7;
  --cream: #f3f6f4;
  --comfortable: #34735b;
  --care: #b37b21;
  --dangerous: #b75342;
  --shadow: 0 4px 18px #243e3410;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button {
  color: inherit;
}
a {
  color: inherit;
}
button,
select,
input,
textarea {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
#map:focus-visible {
  outline: 3px solid #c2782e;
  outline-offset: 3px;
}
button {
  border: 0;
}
p {
  line-height: 1.6;
}
h1,
h2,
p {
  margin-top: 0;
}
.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
.site-header {
  height: 94px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 20px;
  background: var(--paper);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.2;
}
.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.brand-name {
  white-space: nowrap;
}
.brand-city {
  color: #936224;
  white-space: nowrap;
}
.brand-mark .brand-field {
  fill: var(--green);
}
.brand-mark path {
  fill: none;
  stroke: var(--paper);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-mark .route-end {
  fill: #e5b85c;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-header .help-button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.help-button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 600;
}
.city-service-link {
  margin: 14px 0 0;
}
.city-service-link a,
#about-dialog a {
  color: var(--green);
  text-underline-offset: 3px;
}
.feedback-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--green);
  font-size: 13px;
  text-underline-offset: 3px;
}
.moderation-body.feedback-body { max-width: 680px; }
.feedback-body .field-label { margin-top: 22px; }
.feedback-body textarea { min-height: 150px; }
.feedback-body .button { margin-top: 18px; }
.feedback-fallback { margin-top: 32px; font-size: 13px; overflow-wrap: anywhere; }
.feedback-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.feedback-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.button {
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover:not(:disabled) {
  background: #35634f;
}
.primary:active:not(:disabled) {
  transform: translateY(1px);
}
.text-button {
  background: none;
  min-height: 42px;
  padding: 9px 0;
  font-size: 13px;
}
.text-button:hover {
  text-decoration: underline;
}
.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
}
.icon-button:hover {
  background: var(--cream);
}
.workspace {
  display: grid;
  grid-template-columns: 365px 1fr;
  height: calc(100dvh - 94px);
  min-height: 550px;
}
.sidebar {
  display: flex;
  flex-direction: column;
  overflow: auto;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
}
.intro {
  padding: 31px 28px 22px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
}
.intro h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.7px;
  margin: 0 0 18px;
}
.browse-controls {
  padding: 0 28px 20px;
  border-bottom: 1px solid var(--line);
}
.location-tabs {
  display: flex;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  gap: 3px;
}
.location-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 38px;
  flex: 1;
  background: transparent;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 12px;
  white-space: nowrap;
}
.location-tabs button[aria-pressed="true"] {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: 700;
}
.location-tabs button:hover:not([aria-pressed="true"]) {
  background: var(--cream);
}
.mode-emoji {
  display: inline-flex;
  justify-content: center;
  width: 20px;
  flex-shrink: 0;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 18px;
  line-height: 1;
}
.filter-row {
  display: flex;
  align-items: center;
  margin-top: 15px;
  gap: 15px;
  font-size: 12px;
  color: var(--muted);
}
.filter-row select {
  flex: 1;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  min-height: 32px;
  padding: 5px 20px 5px 0;
  background: transparent;
  font-size: 12px;
  color: var(--ink);
}
.observations {
  padding: 22px 28px;
  flex: 1;
}
.list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.list-heading h2 {
  font-size: 13px;
  margin: 0;
  font-weight: 600;
}
.list-heading h2 span {
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  min-width: 21px;
  height: 21px;
  margin-left: 5px;
  font-size: 10px;
}



.report-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.report-card {
  width: 100%;
  text-align: left;
  background: transparent;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 0;
  transition: background 0.15s;
}
.report-card:last-child {
  border-bottom: 0;
}
.report-card:hover {
  background: var(--cream);
}
.card-top {
  display: flex;
  gap: 9px;
  align-items: center;
}
.card-top strong {
  font-size: 12px;
  line-height: 1.4;
  flex: 1;
}
.card-top .arrow {
  font-size: 17px;
  color: #9aab9c;
}
.dot {
  font-family: Arial, Helvetica, sans-serif;
  font-style: normal;
  border-radius: 50%;
  width: 21px;
  height: 21px;
  display: inline-grid;
  place-items: center;
  color: white;
  font-size: 13px;
  line-height: 1;
  font-weight: bold;
  flex-shrink: 0;
}
.comfortable {
  background: var(--comfortable);
}
.care {
  background: var(--care);
}
.dangerous {
  background: var(--dangerous);
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
  margin: 9px 0 0 30px;
}
.card-meta .mode-emoji {
  width: 16px;
  font-size: 14px;
}
.contribution-badge {
  font-size: 9px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #657768;
  background: var(--cream);
  padding: 3px 5px;
  border-radius: 3px;
  margin-left: auto;
}
.card-reason {
  margin: 6px 0 0 30px;
  font-size: 11px;
  color: #5a685e;
}
.empty-state {
  padding: 24px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.empty-state strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}
.sidebar-footer {
  padding: 17px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 8px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.sidebar-footer > span:last-child {
  margin-left: auto;
  letter-spacing: 0;
  font-size: 9px;
  color: var(--muted);
}
.prototype-dot {
  width: 5px;
  height: 5px;
  background: #bb8a36;
  border-radius: 50%;
}
.map-panel {
  position: relative;
  min-width: 0;
  isolation: isolate;
  background: #e5e9dc;
}
#map {
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #e5e9dc;
}
#map[data-basemap="detailed"] .leaflet-tile-pane {
  filter: saturate(0.5);
}
.map-topline {
  position: absolute;
  top: 23px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
  z-index: 450;
}
.map-button {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  padding: 12px 15px;
  border-radius: 7px;
}
.map-button {
  pointer-events: auto;
  min-height: 43px;
}
.map-button .icon {
  width: 15px;
  height: 15px;
}
.map-style-menu {
  position: relative;
  pointer-events: auto;
}
.map-style-menu summary {
  list-style: none;
  cursor: pointer;
}
.map-style-menu summary::-webkit-details-marker {
  display: none;
}
.map-style-caret {
  font-size: 11px;
  transition: transform 0.15s;
}
.map-style-menu[open] .map-style-caret {
  transform: rotate(180deg);
}
.map-styles {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 145px;
  margin: 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  pointer-events: auto;
}
.map-styles label {
  position: relative;
  cursor: pointer;
}
.map-styles input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.map-styles span {
  display: grid;
  place-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 5px;
  font-size: 11px;
}
.map-styles input:checked + span {
  background: var(--green);
  color: white;
}
.map-styles input:focus-visible + span {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.map-styles label:hover span {
  box-shadow: inset 0 0 0 1px var(--green);
}
.map-bottomline {
  position: absolute;
  bottom: 30px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
  pointer-events: none;
  z-index: 450;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 10px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend .dot {
  width: 15px;
  height: 15px;
  font-size: 10px;
}
.map-bottomline p {
  font-size: 10px;
  margin: 9px 0 0;
  background: #fffffff0;
  padding: 3px 10px;
  border-radius: 4px;
  color: #59675d;
}
.leaflet-control-zoom {
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
  margin: 84px 24px 0 0 !important;
}
.leaflet-control-zoom a {
  background: var(--paper) !important;
  color: var(--green) !important;
  width: 35px !important;
  height: 35px !important;
  line-height: 35px !important;
  font-weight: 400 !important;
}
.leaflet-control-attribution {
  font-size: 9px !important;
}
.report-pin {
  background: transparent;
  border: 0;
}
.pin-body {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid white;
  border-radius: 50% 50% 50% 5px;
  transform: rotate(-45deg);
  box-shadow: 0 3px 9px #233e3440;
  color: white;
}
.pin-body span {
  transform: rotate(45deg);
  font-size: 16px;
  font-weight: bold;
}
.pin-source {
  position: absolute;
  right: -6px;
  top: -6px;
  transform: rotate(45deg);
  background: white;
  color: var(--ink);
  border-radius: 50%;
  width: 15px;
  height: 15px;
  text-align: center;
  font-size: 11px;
  line-height: 15px;
}
.pin-body.crash, .dot.crash, .cluster-dot.crash { background: #852d48; color: white; }
.pin-body.close_call, .dot.close_call, .cluster-dot.close_call { background: #ae5d14; color: white; }
.incident-tag { display: inline-block; margin: 5px 0; padding: 3px 8px; border: 1px solid currentColor; border-radius: 4px; font-size: 12px; font-weight: 700; }
.incident-tag.crash { color: #852d48; }
.incident-tag.close_call { color: #ae5d14; }
.selection-panel {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, calc(100% - 32px));
  padding: 17px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
  z-index: 500;
}
.selection-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 10px;
}
.selection-heading .icon-button {
  margin-left: auto;
  width: 28px;
  height: 28px;
}
.step-dot {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--cream);
  font-size: 11px;
}
.selection-panel p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  min-height: 36px;
  margin: 12px 0;
}
.selection-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
}
.selection-actions .text-button {
  font-size: 11px;
}
.selection-actions .button {
  margin-left: auto;
  font-size: 12px;
  min-height: 40px;
  padding: 10px 12px;
}
.selection-actions .icon {
  width: 15px;
  height: 15px;
}
.drawing .leaflet-container {
  cursor: crosshair;
}
.map-center-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: 400;
  pointer-events: none;
  z-index: 400;
  color: var(--green);
  text-shadow: 0 0 2px white;
}
.map-error {
  position: absolute;
  top: 100px;
  left: 24px;
  right: 80px;
  padding: 12px;
  background: #fff2da;
  color: #76521c;
  font-size: 12px;
  border-radius: 8px;
  z-index: 500;
  box-shadow: var(--shadow);
}
dialog {
  width: min(540px, calc(100vw - 30px));
  max-height: calc(100dvh - 40px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 12px 48px #172b3426;
}
dialog::backdrop {
  background: #213c345c;
  backdrop-filter: blur(3px);
}
.dialog-close {
  position: absolute;
  top: 13px;
  right: 12px;
}
dialog .eyebrow {
  font-size: 9px;
  margin: 4px 25px 17px 0;
}
dialog h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  letter-spacing: -0.8px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 11px;
}
.dialog-intro {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}
fieldset {
  border: 0;
  margin: 0 0 21px;
  padding: 0;
  min-width: 0;
}
legend,
.field-label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 9px;
  display: block;
}
.field-label {
  margin-top: 18px;
}
.field-label span {
  color: var(--muted);
  font-weight: 400;
}
.choice-row {
  display: flex;
  gap: 9px;
}
.choice-row label {
  flex: 1;
}
.travel-modes .mode-choices label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}
.travel-modes .mode-choices label:has(input:checked) {
  border-color: var(--green);
  background: #f0f6f2;
  box-shadow: inset 0 0 0 1px var(--green);
}
.travel-modes .mode-choices input {
  position: static;
  opacity: 1;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--green);
}
.travel-modes .mode-choices label > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  outline: none;
}
.choice-row label,
.rating-choices label {
  position: relative;
  cursor: pointer;
}
.rating-choices input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.rating-choices label > span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  background: white;
}
.rating-choices input:checked + span {
  border-color: var(--green);
  background: #f0f6f2;
  box-shadow: inset 0 0 0 1px var(--green);
}
.rating-choices input:focus-visible + span {
  outline: 3px solid #c2782e;
  outline-offset: 2px;
}
.rating-choices {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.rating-choices label > span {
  padding: 10px 12px;
}
.rating-choices .dot {
  width: 20px;
  height: 20px;
  font-size: 12px;
}
.field-hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 9px 0 0;
}
.reason-choices {
  margin: 20px 0;
}
.reason-choices .field-hint {
  margin: 0 0 10px;
}
.reason-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.reason-section {
  margin: 0 0 16px;
}
.reason-section legend {
  font-size: 12px;
  color: var(--muted);
}
.reason-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  font-size: 12px;
  cursor: pointer;
}
.reason-option:has(input:checked) {
  border-color: var(--green);
  background: #f0f6f2;
}
.reason-option input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--green);
  flex-shrink: 0;
}
input:not([type="radio"], [type="checkbox"]),
textarea,
select {
  width: 100%;
  border: 1px solid #d8e0db;
  border-radius: 6px;
  background: white;
  padding: 12px;
  color: var(--ink);
  font-size: 13px;
}
textarea {
  resize: vertical;
  min-height: 85px;
}
input::placeholder,
textarea::placeholder {
  color: #7b827d;
}
select {
  min-height: 44px;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 21px;
  margin-top: 25px;
}
.form-actions .button {
  font-size: 12px;
}
.local-note {
  font-size: 10px;
  text-align: center;
  color: var(--muted);
  margin: 17px 0 0;
}
.review-label {
  font-size: 11px;
  color: var(--muted);
  margin: 19px 0 5px;
}
.review-value {
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}
.review-feeling {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin: 20px 0;
}
.info-box {
  padding: 16px;
  background: var(--cream);
  font-size: 12px;
  line-height: 1.7;
  border-radius: 8px;
  margin-top: 20px;
}
.form-error {
  color: #9b3c2d;
  background: #fae9e2;
  padding: 12px;
  border-radius: 6px;
  font-size: 12px;
  margin-top: 16px;
}
.detail-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 23px;
}
.danger-text {
  color: #a34939;
}
.how-steps {
  padding-left: 22px;
  margin: 24px 0;
}
.how-steps li {
  font-size: 13px;
  padding-left: 5px;
  margin: 20px 0;
}
.how-steps p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500;
  background: var(--green);
  color: white;
  border-radius: 8px;
  padding: 14px 19px;
  box-shadow: var(--shadow);
  font-size: 12px;
  max-width: calc(100vw - 32px);
  width: max-content;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.toast button {
  flex-shrink: 0;
  background: transparent;
  color: white;
  text-decoration: underline;
  padding: 5px;
}
.noscript {
  position: fixed;
  inset: 40% 15% auto;
  background: white;
  padding: 30px;
  z-index: 2000;
}
@media (min-width: 1500px) {
  .workspace {
    grid-template-columns: 410px 1fr;
  }
  .intro,
  .browse-controls,
  .observations {
    padding-left: 36px;
    padding-right: 36px;
  }
  .intro {
    padding-top: 40px;
  }
}
@media (max-width: 900px) {
  .site-header {
    padding: 0 22px;
    height: 80px;
  }
  .workspace {
    height: calc(100dvh - 80px);
    grid-template-columns: 320px 1fr;
  }
  .intro,
  .browse-controls,
  .observations {
    padding-left: 22px;
    padding-right: 22px;
  }
  .site-header nav {
    gap: 15px;
  }
  .map-topline {
    left: 16px;
    right: 16px;
  }
  .legend {
    gap: 10px;
    padding: 11px;
  }
  .selection-actions {
    gap: 10px;
  }
  .selection-actions .button {
    width: 100%;
  }
  .sidebar-footer {
    padding-left: 22px;
    padding-right: 22px;
  }
}
@media (max-width: 680px) {
  .reason-options {
    grid-template-columns: 1fr;
  }
  .site-header {
    height: 73px;
    padding: 0 16px;
    gap: 10px;
  }
  .brand {
    font-size: 15px;
    gap: 9px;
    letter-spacing: -0.4px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .site-header nav {
    gap: 0;
  }
  .site-header nav > .text-button {
    font-size: 11px;
    white-space: nowrap;
  }
  .site-header .button {
    font-size: 11px;
    min-height: 39px;
    padding: 9px 11px;
    gap: 4px;
  }
  .site-header .icon {
    width: 15px;
    height: 15px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
  .map-panel {
    order: 0;
    height: 47dvh;
    min-height: 310px;
  }
  .sidebar {
    order: 1;
    overflow: visible;
    border-right: 0;
  }
  .intro {
    padding: 26px 22px 19px;
  }
  .browse-controls {
    padding-bottom: 18px;
  }
  .map-topline {
    top: 13px;
    left: 13px;
    right: 13px;
  }
  .map-button {
    font-size: 10px;
    padding: 9px 12px;
    min-height: 36px;
  }
  #reset-view span {
    display: none;
  }
  .map-styles span {
    min-height: 40px;
    padding: 0 11px;
  }
  .leaflet-control-zoom {
    margin: 65px 13px 0 0 !important;
  }
  .map-bottomline {
    bottom: 22px;
  }
  .map-bottomline p {
    display: none;
  }
  .legend {
    font-size: 9px;
    gap: 16px;
    padding: 10px 14px;
  }
  .legend .dot {
    width: 14px;
    height: 14px;
  }
  .observations {
    padding: 20px 22px 28px;
  }
  .list-heading h2 {
    font-size: 14px;
  }


  .report-card {
    padding: 18px 0;
  }
  .card-top strong {
    font-size: 14px;
  }
  .card-meta,
  .card-reason {
    font-size: 11px;
  }
  .report-list {
    gap: 0;
  }
  .sidebar-footer {
    font-size: 9px;
  }
  .sidebar-footer > span:last-child {
    font-size: 10px;
  }
  .selection-panel {
    padding: 12px 14px;
    bottom: 23px;
    width: calc(100% - 24px);
  }
  .selection-panel p {
    margin: 9px 0;
    font-size: 11px;
    min-height: 0;
  }
  .selection-heading {
    margin-bottom: 8px;
    font-size: 12px;
  }
  .location-tabs button {
    min-height: 34px;
    font-size: 11px;
  }
  .selection-actions {
    gap: 12px;
  }
  .selection-actions .button {
    width: auto;
    font-size: 11px;
    padding: 8px;
    min-height: 37px;
  }
  .selection-actions .text-button {
    font-size: 10px;
  }
  .drawing .map-panel {
    height: calc(100dvh - 73px);
    min-height: 450px;
  }
  .drawing .sidebar {
    display: none;
  }
  .drawing .map-center-crosshair {
    top: 35%;
  }
  dialog {
    padding: 28px 22px;
    border-radius: 13px;
    max-height: calc(100dvh - 24px);
  }
  dialog h2 {
    font-size: 29px;
  }
  input:not([type="radio"], [type="checkbox"]),
  select,
  textarea {
    font-size: 16px;
  }
  .filter-row select {
    font-size: 13px;
  }
  .form-actions {
    gap: 8px;
  }
  .form-actions .text-button {
    font-size: 11px;
  }
  .form-actions .button {
    padding: 12px;
    font-size: 11px;
  }
  .toast {
    bottom: 18px;
  }
  .map-error {
    left: 13px;
    top: 88px;
    font-size: 11px;
  }
  .leaflet-control-attribution {
    font-size: 8px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Route, ownership, and moderation additions. */
.secondary {
  background: var(--paper);
  border: 1px solid #ccd8cf;
  color: var(--green);
}
.route-entry {
  width: 100%;
  justify-content: space-between;
}
.intro #account-button {
  font-size: 11px;
  display: block;
  margin-top: 4px;
}
.session-status {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.route-workspace {
  padding: 28px 24px;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: var(--paper);
}
.route-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: 17px;
}
.route-panel-heading h2 {
  font:
    normal 32px/1.1 Georgia,
    serif;
  letter-spacing: -1px;
}
.endpoint-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.endpoint-buttons .button {
  font-size: 11px;
  padding: 9px;
}
.route-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.route-tools .text-button {
  font-size: 11px;
}
.remember-label {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11px;
  line-height: 1.6;
  margin: 18px 0;
}
.remember-label input {
  accent-color: var(--green);
}
#confirm-route {
  width: 100%;
  font-size: 12px;
}
.routing #map {
  cursor: crosshair;
}
.routing .map-center-crosshair {
  display: block;
}
.leaflet-routing-container {
  display: none !important;
}
.route-handle {
  width: 30px;
  height: 30px;
  background: white;
  border: 3px solid #436fba;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #315ca2;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 8px #20304040;
}
.route-handle.start {
  border-color: #254c3f;
  color: #254c3f;
}
.route-handle.school {
  background: #436fba;
  color: white;
}
.route-handle-wrap {
  background: none;
  border: 0;
  cursor: grab;
}
.route-error {
  background: #fbe8df;
  color: #9e3c29;
}
.assessment-card {
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 9px;
  margin-top: 24px;
}
.assessment-card legend {
  padding: 0 5px;
  font-size: 14px;
}
.assessment-card textarea {
  margin-top: 10px;
}
.assessment-card .text-button {
  font-size: 11px;
}
.attribution-section {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 18px;
}
.attribution-fields {
  margin: 0;
}
.attribution-fields legend {
  padding: 0;
}
.attribution-fields > .field-label {
  margin-top: 0;
}
.attribution-fields > .field-hint {
  margin: 8px 0 0;
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#login-form .button {
  margin-top: 12px;
}
.dev-verification {
  display: block;
  margin-top: 12px;
  font-weight: bold;
}
.my-list-title {
  font-size: 14px;
  margin: 27px 0 12px;
}
.my-card {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
.my-card strong {
  font-size: 13px;
}
.my-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.my-actions .text-button {
  font-size: 12px;
}
.my-actions a {
  display: inline-flex;
  align-items: center;
}
#route-stops:empty {
  display: none;
}
#route-stops {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#route-stops button {
  font-size: 11px;
}
.moderation-body {
  max-width: 950px;
  margin: 35px auto;
  padding: 0 25px;
}
.moderation-card {
  background: white;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 10px;
  margin: 18px 0;
}
.moderation-card h2 {
  font-size: 19px;
}
.moderation-map {
  height: 200px;
  margin: 12px 0;
}
.moderation-actions {
  display: flex;
  gap: 12px;
}
.moderation-tools {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 680px) {
  .routing .workspace {
    display: flex;
  }
  .routing .map-panel {
    order: 0;
    height: 51dvh;
    min-height: 330px;
  }
  .route-workspace {
    order: 1;
    overflow: visible;
    padding: 23px 22px;
  }
  .route-panel-heading h2 {
    font-size: 28px;
  }
  .routing .map-center-crosshair {
    top: 50%;
  }
  .route-workspace select {
    font-size: 16px;
  }
  .routing .route-workspace .info-box {
    margin-top: 14px;
  }
  .site-header .button {
    white-space: nowrap;
  }
  .assessment-card select {
    font-size: 14px;
  }
  .my-actions {
    gap: 14px;
  }
  .toast {
    flex-wrap: wrap;
  }
  .moderation-body {
    padding: 0 16px;
  }
}
.route-panel-heading h2 {
  margin-bottom: 10px;
}
.route-workspace > .field-hint:first-of-type {
  margin-top: 0;
}
.route-workspace .field-label {
  margin-top: 14px;
}
.route-workspace .info-box {
  margin-top: 14px;
}
.route-workspace #confirm-route {
  position: sticky;
  bottom: 0;
  z-index: 2;
  box-shadow: 0 0 0 5px var(--paper);
}
@media (max-width: 680px) {
  .route-workspace #confirm-route {
    position: static;
  }
}

.email-entry-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin: 12px 0;
}
.email-entry-choice input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--green);
}
#cancel-email-selection { margin-left: 14px; }

.sign-in-options { display: grid; gap: 10px; margin: 16px 0; }
.sign-in-options .button { width: 100%; }
#google-sign-in:empty { display: none; }
#google-sign-in { min-height: 40px; }

/* Place-linked sources */
.intro .add-button, .link-entry { width: 100%; }
.link-entry { margin-top: 10px; background: #356b84; border-color: #356b84; color: white; }
.link-entry:hover:not(:disabled) { background: #28566d; border-color: #28566d; }
.link-entry:active:not(:disabled) { transform: translateY(1px); }
.source-picker { border: 0; padding: 0; margin: 0 0 22px; }
.source-picker legend { font-weight: 700; margin-bottom: 10px; }
.source-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.source-options button { background: white; color: var(--ink); border: 1px solid #ccd5d0; border-radius: 6px; padding: 12px 4px; font: inherit; cursor: pointer; }
.source-options button[aria-pressed="true"] { background: #edf3f0; border-color: #284f40; box-shadow: inset 0 0 0 1px #284f40; }
.source-preview { display: flex; flex-direction: column; gap: 12px; border: 1px solid #d9e0dc; border-radius: 8px; padding: 18px; margin: 16px 0; color: inherit; text-decoration: none; overflow: hidden; }
.source-preview:hover { border-color: #356b84; }
.source-label { color: #356b84; font-weight: 700; }
.source-image { width: 100%; max-height: 240px; object-fit: cover; border-radius: 4px; }
.source-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; margin: 0; }
.source-url { font-size: 12px; color: #64726b; overflow-wrap: anywhere; }
.link-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 8px 0 0; line-height: 1.45; overflow-wrap: anywhere; }
.pin-body.linked, .dot.linked { background: #356b84; color: white; }
#link-form > .field-label { margin-top: 18px; }
#link-form .form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
#link-error { color: #9b3025; }
@media (max-width: 420px) { .source-options { grid-template-columns: repeat(2, 1fr); } }

.place-share { margin: 24px 0; }
.place-share-controls { display: flex; gap: 8px; }
.place-share-controls input { min-width: 0; flex: 1; font-size: 12px; }
.place-share-controls button { flex-shrink: 0; }

/* Nearby pins share a count, without combining their safety assessments. */
.report-cluster { background: none; border: none; }
.cluster-pin { width: 46px; height: 46px; border-radius: 50%; background: white; color: #254c3f; border: 3px solid #254c3f; box-shadow: 0 2px 6px #172b3440; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.cluster-pin strong { font-size: 17px; line-height: 19px; }
.cluster-dots { display: flex; gap: 2px; }
.cluster-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.cluster-dot.dangerous { background: #b75342; }
.cluster-dot.care { background: #b37b21; }
.cluster-dot.comfortable { background: #34735b; }
.cluster-dot.linked { background: #356b84; }
.cluster-summary { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 16px 0; font-size: 12px; }
.cluster-category { display: inline-flex; align-items: center; gap: 6px; }
.cluster-list { display: grid; margin-bottom: 20px; }
.cluster-report { width: 100%; display: flex; flex-direction: column; gap: 7px; text-align: left; }
.cluster-report .card-meta { margin: 0; }
.cluster-report .field-hint { margin: 0; }

.post-workflow { display: flex; gap: 8px; margin: 0 0 24px; border-bottom: 1px solid var(--line, #d9dfdc); }
.post-workflow button { flex: 1; border: 0; border-bottom: 3px solid transparent; padding: 12px 8px; background: white; color: var(--ink); font: inherit; cursor: pointer; }
.post-workflow button[aria-pressed="true"] { border-bottom-color: #356b84; color: #356b84; font-weight: 700; }
.write-post { margin-bottom: 24px; }
.write-post .button { display: inline-flex; text-decoration: none; background: #356b84; }
#write-place-name { font-weight: 700; }
#write-place-link { color: #356b84; }
.coordinate-place { display: grid; gap: 12px; max-width: 230px; }


.place-actions-popup .leaflet-popup-content { margin: 18px 12px 12px; }
.place-actions { display: grid; gap: 4px; }
.place-actions:focus { outline: none; }
.place-actions-title { padding: 2px 12px 10px; font-size: 14px; color: #254c3f; }
.place-action { padding: 12px; border: 0; border-radius: 4px; background: white; color: #356b84; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.place-action.experience { color: #254c3f; }
.place-action:hover, .place-action:focus-visible { background: #edf3f0; }

/* Keep keyboard focus inside each row, clear of neighboring buttons. */
.place-action:focus-visible { outline-offset: -3px; }

#map { -webkit-touch-callout: none; }
.contribution-date { display: block; margin: 6px 0; }
