:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #1b3430;
  background: #f4f6f2;
  font-synthesis: none;
  --accent: #176b58;
  --line: #dce3dc;
  --muted: #60736a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 88px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  color: #1b3430;
  text-decoration: none;
  font-size: 17px;
}
.brand strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-top: 3px;
}
.brand-mark {
  font-size: 30px;
  color: var(--accent);
}
.private {
  font-size: 12px;
  color: var(--muted);
  background: #eff3ed;
  padding: 8px 12px;
  border-radius: 20px;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 38px 5vw 24px;
}
h1 {
  font-size: 38px;
  line-height: 1.16;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 12px 0;
}
h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent);
}
.subtitle {
  margin: 10px 0;
  color: var(--muted);
  font-size: 14px;
}
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #dfdbc7;
  background: #fbf9ed;
  padding: 15px 18px;
  border-radius: 10px;
  margin: 25px 0;
  color: #695e35;
  font-size: 12px;
  line-height: 1.6;
}
.notice-dot {
  height: 8px;
  width: 8px;
  flex-shrink: 0;
  background: #a58c3a;
  border-radius: 50%;
}
.notice strong {
  font-weight: 600;
}
button,
.button {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  padding: 12px 16px;
  border-radius: 7px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}
.secondary {
  border: 1px solid #cdd8ce;
  color: #2c4d41;
  background: #fff;
}
button:hover,
.button:hover {
  filter: brightness(0.96);
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #75b5a4;
  outline-offset: 3px;
}
input,
select {
  font: inherit;
  font-size: 13px;
  padding: 12px;
  border: 1px solid #cdd8ce;
  border-radius: 7px;
  background: #fff;
  color: #1b3430;
  min-width: 0;
  width: 100%;
  margin-top: 7px;
}
label {
  font-size: 11px;
  font-weight: 600;
  color: #4a6155;
  display: block;
}
label.search {
  flex: 1;
  min-width: 180px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin: 24px 0;
}
.toolbar > label:not(.search) {
  min-width: 155px;
}
.toolbar button,
.toolbar .button {
  height: 42px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(310px, 0.9fr) minmax(400px, 1.3fr);
  gap: 20px;
  align-items: start;
}
.report-panel,
.map-panel,
.detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.panel-heading {
  padding: 19px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.subtle {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.report-card {
  width: 100%;
  display: block;
  white-space: normal;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e7ece5;
  border-radius: 0;
  padding: 18px 20px;
  text-align: left;
  color: #1b3430;
  font-weight: 400;
}
.report-card:hover {
  background: #f6f9f4;
  filter: none;
}
.report-card.selected {
  background: #edf5ee;
  box-shadow: inset 3px 0 var(--accent);
}
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.category {
  font-size: 13px;
  font-weight: 650;
}
.badge {
  display: inline-block;
  font-size: 10px;
  padding: 4px 7px;
  background: #edf2ea;
  color: #4d6659;
  border-radius: 5px;
  letter-spacing: 0.025em;
}
.badge.urgent {
  color: #a12b32;
  background: #fdecee;
}
.badge.needsAttention {
  color: #8a650e;
  background: #fbf2da;
}
.card-note {
  font-size: 13px;
  line-height: 1.55;
  margin: 12px 0 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.card-meta {
  font-size: 10px;
  color: #6d7d71;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  line-height: 1.7;
}
.empty {
  padding: 56px 25px;
  text-align: center;
}
.empty h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
}
.empty p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 18px;
}
.pagination button {
  padding: 8px 12px;
  font-size: 11px;
}
#map {
  height: 526px;
  background: #edf2eb;
}
.map-caption {
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
}
.map-dot {
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 1px 7px #20382955;
  background: #328374;
}
.map-dot.urgent {
  background: #c34c53;
}
.map-dot.needsAttention {
  background: #d09d31;
}
.leaflet-popup-content {
  font-family: inherit;
  font-size: 12px;
  line-height: 1.6;
  max-width: 230px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail {
  margin-top: 20px;
}
.detail-body {
  padding: 20px;
}
.detail dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}
.detail dt {
  color: var(--muted);
}
.detail dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.detail .full-note {
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}
footer {
  font-size: 10px;
  color: var(--muted);
  margin: 19px 0;
  line-height: 1.8;
}
.login-card {
  max-width: 590px;
  margin: 65px auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 42px;
}
.login-card h1 {
  font-size: 34px;
  margin: 20px 0;
}
.login-card > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.login-card form {
  margin: 28px 0 16px;
}
.login-card button {
  width: 100%;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
}
.login-card p.subtle {
  font-size: 11px;
  margin-bottom: 0;
}
#message {
  font-size: 13px;
  color: #963c31;
  line-height: 1.6;
  margin-top: 18px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1400px) {
  main {
    padding-left: 50px;
    padding-right: 50px;
  }
}
@media (max-width: 1000px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .map-panel {
    grid-row: 1;
  }
  #map {
    height: 330px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar label {
    flex: 1;
  }
  .toolbar .search {
    flex-basis: 100%;
  }
}
@media (max-width: 540px) {
  header {
    height: 76px;
    padding: 0 20px;
  }
  .brand {
    font-size: 14px;
  }
  .private {
    display: none;
  }
  main {
    padding: 25px 18px;
  }
  h1 {
    font-size: 31px;
  }
  .notice {
    font-size: 11px;
  }
  .toolbar > label:not(.search) {
    min-width: 130px;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar button,
  .toolbar .button {
    flex: 1;
  }
  .login-card {
    padding: 26px;
    margin: 28px auto;
  }
  .login-card h1 {
    font-size: 28px;
  }
  .detail dl {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .detail dd {
    margin-bottom: 8px;
  }
  .map-caption {
    font-size: 9px;
  }
  .card-meta {
    font-size: 10px;
  }
}
