:root {
  color-scheme: light;
  --ink: #202822;
  --muted: #70776e;
  --paper: #f3f3ec;
  --surface: #fffefa;
  --line: #dcdfd5;
  --green: #275847;
  --green-soft: #dce8d2;
  --rust: #a94d2d;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid var(--line); background: var(--surface); position: relative; z-index: 10; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-size: 14px; font-weight: 800; letter-spacing: 1.3px; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-family: var(--serif); font-size: 17px; font-weight: 400; }
.brand-period { color: var(--rust); }
.topbar-location { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
.location-dot { width: 7px; height: 7px; background: var(--rust); border-radius: 50%; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 3px; padding: 0 17px; text-decoration: none; font-size: 13px; font-weight: 700; cursor: pointer; }
.button-dark { color: white; background: var(--ink); }
.button-dark:hover { background: var(--green); }
.button-plus { color: #c6d79e; font-size: 21px; font-weight: 400; line-height: 0; }
.map-shell { height: calc(100dvh - 72px); min-height: 560px; display: grid; grid-template-columns: minmax(320px, 390px) 1fr; }
.report-rail { min-height: 0; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); }
.rail-heading { padding: 30px 27px 23px; }
.eyebrow { margin: 0 0 15px; color: var(--rust); font-size: 9px; font-weight: 800; letter-spacing: 1.6px; }
h1, h2, p { margin-top: 0; }
.rail-heading h1, .form-copy h1 { margin: 0 0 13px; font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1.06; }
.rail-heading h1 span, .form-copy h1 span { color: var(--green); font-style: italic; }
.rail-intro { max-width: 270px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.success-note { display: flex; gap: 10px; align-items: center; margin: 0 22px 15px; padding: 12px; color: var(--green); background: var(--green-soft); font-size: 12px; }
.success-note span { font-weight: 800; }
.list-toolbar { min-height: 51px; display: flex; justify-content: space-between; align-items: center; padding: 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.list-toolbar strong { color: var(--ink); font-size: 17px; font-weight: 700; }
.status-filter { max-width: 125px; padding: 6px 25px 6px 8px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); background: white; font-size: 11px; }
.report-list { overflow: auto; flex: 1; }
.list-message { padding: 20px 22px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.list-error { color: var(--rust); }
.report-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 20px; border: 0; border-bottom: 1px solid #eceee7; background: transparent; text-align: left; cursor: pointer; }
.report-row:hover, .report-row:focus-visible { background: #f2f5ee; }
.report-thumb { flex: 0 0 58px; width: 58px; height: 58px; object-fit: cover; background: var(--paper); }
.report-thumb-empty { display: block; border: 1px solid var(--line); }
.report-row-content { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.report-description { overflow: hidden; display: -webkit-box; color: var(--ink); font-size: 12px; font-weight: 650; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.report-meta { color: var(--muted); font-size: 10px; }
.rail-foot { min-height: 43px; display: flex; align-items: center; gap: 7px; padding: 0 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.legend-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; margin-left: 10px; }
.legend-dot:first-child { margin-left: 0; }
.legend-active { background: #6c9a60; }
.legend-resolved { background: var(--rust); }
.map-area { position: relative; min-width: 0; min-height: 0; background: #e4e8df; }
.leaflet-map { width: 100%; height: 100%; z-index: 1; }
.map-caption { position: absolute; z-index: 400; right: 16px; top: 16px; display: flex; align-items: center; gap: 9px; padding: 10px 12px; background: var(--surface); color: var(--muted); box-shadow: 0 1px 7px #2028221a; font-size: 9px; font-weight: 800; letter-spacing: 1px; pointer-events: none; }
.caption-rule { width: 18px; height: 2px; background: var(--rust); }
.map-popup { width: 220px; display: flex; flex-direction: column; gap: 7px; }
.map-popup img { width: 100%; height: 110px; object-fit: cover; }
.map-popup strong { font-size: 12px; line-height: 1.4; }
.map-popup span { color: var(--muted); font-size: 10px; }
.mobile-report-button { display: none; }
.form-page { max-width: 1120px; margin: 0 auto; padding: 26px 40px 70px; }
.back-link { display: inline-flex; gap: 9px; align-items: center; margin-bottom: 24px; color: var(--muted); text-decoration: none; font-size: 12px; }
.back-link:hover { color: var(--green); }
.form-layout { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(400px, 1fr); gap: clamp(40px, 8vw, 105px); align-items: start; }
.form-copy { position: sticky; top: 34px; padding-top: 22px; }
.form-copy .eyebrow { margin-bottom: 18px; }
.form-copy h1 { margin-bottom: 20px; font-size: 43px; line-height: 1.08; }
.form-copy > p:not(.eyebrow) { max-width: 330px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.privacy-note { display: flex; gap: 10px; max-width: 330px; margin-top: 33px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.privacy-mark { flex: 0 0 18px; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #b4b9ad; border-radius: 50%; color: var(--green); font-size: 11px; font-family: var(--serif); }
.report-form { padding: 23px 26px 25px; background: var(--surface); border: 1px solid var(--line); }
.field-group { min-width: 0; margin: 0 0 23px; padding: 0; border: 0; }
.field-group > label, .field-group legend { display: block; margin: 0 0 8px; color: var(--ink); font-size: 13px; font-weight: 750; }
.step-number { margin-right: 8px; color: var(--rust); font-size: 10px; font-weight: 800; letter-spacing: .5px; }
.required-mark { color: var(--rust); }
.field-hint { margin: 0 0 10px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.picker-toolbar { display: flex; min-height: 35px; align-items: center; justify-content: space-between; gap: 10px; }
.selection-state { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.text-button { padding: 5px 0 5px 8px; border: 0; color: var(--green); background: transparent; font-size: 11px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.location-map { width: 100%; height: 220px; background: #e4e8df; }
.field-group textarea { width: 100%; min-height: 96px; resize: vertical; padding: 11px 12px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); background: white; font-size: 13px; line-height: 1.5; }
.field-group textarea:focus, .status-filter:focus-visible, .button:focus-visible, .text-button:focus-visible { outline: 2px solid #658b62; outline-offset: 2px; }
.upload-control { min-height: 66px; display: flex !important; align-items: center; gap: 12px; padding: 10px 12px; border: 1px dashed #aeb6a8; cursor: pointer; }
.upload-control:hover { border-color: var(--green); background: #f6f8f3; }
.upload-symbol { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--green); font-size: 21px; font-weight: 400; }
.upload-control #upload-label { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.upload-control strong { overflow: hidden; max-width: 270px; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.upload-control small { color: var(--muted); font-size: 10px; font-weight: 400; }
.upload-format { color: #92978c; font-size: 9px; font-weight: 800; letter-spacing: 1px; }
#id_image { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.image-preview { width: 100%; max-height: 190px; margin-top: 10px; object-fit: cover; }
.field-error, .form-errors { display: block; margin-top: 6px; color: #a33c27; font-size: 11px; }
.form-errors ul { margin: 0; padding-left: 17px; }
.submit-button { width: 100%; justify-content: space-between; margin-top: 3px; }
.submit-button span { color: #c6d79e; font-size: 18px; }
.form-footnote { margin: 10px 0 0; color: var(--muted); text-align: center; font-size: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 760px) {
  .map-page .topbar-action { display: none; }
  .topbar { height: 62px; padding: 0 16px; }
  .topbar-location { display: none; }
  .topbar-action { min-height: 36px; padding: 0 11px; font-size: 11px; }
  .map-shell { height: calc(100dvh - 62px); min-height: 520px; grid-template-columns: 1fr; grid-template-rows: minmax(230px, 34dvh) 1fr; }
  .report-rail { grid-row: 2; border-top: 1px solid var(--line); border-right: 0; }
  .rail-heading { display: none; }
  .success-note { margin-top: 9px; }
  .map-area { grid-row: 1; }
  .map-caption { top: auto; bottom: 12px; right: auto; left: 12px; padding: 7px 9px; font-size: 8px; }
  .leaflet-control-zoom { display: none; }
  .mobile-report-button { position: absolute; z-index: 500; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 11px 14px; border-radius: 3px; color: white; background: var(--ink); box-shadow: 0 2px 8px #20282233; text-decoration: none; font-size: 12px; font-weight: 700; }
  .mobile-report-button span { color: #c6d79e; font-size: 19px; line-height: 12px; }
  .list-toolbar { min-height: 43px; }
  .report-row { min-height: 70px; padding: 8px 15px; }
  .report-thumb { flex-basis: 48px; width: 48px; height: 48px; }
  .rail-foot { min-height: 35px; }
  .form-page { padding: 18px 16px 45px; }
  .back-link { margin-bottom: 14px; }
  .form-layout { grid-template-columns: 1fr; gap: 14px; }
  .form-copy { position: static; padding: 10px 2px 0; }
  .form-copy .eyebrow { margin-bottom: 10px; }
  .form-copy h1 { margin-bottom: 10px; font-size: 32px; }
  .form-copy > p:not(.eyebrow) { max-width: 480px; margin-bottom: 0; font-size: 12px; }
  .privacy-note { display: none; }
  .report-form { padding: 19px 16px; }
  .location-map { height: 200px; }
}
