:root {
  color-scheme: light;
  font-family: Tahoma, system-ui, sans-serif;
  color: #162a2a;
  background: #eef4f0;
  accent-color: #145f49;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header {
  background: #14332d; color: white; padding: 1.4rem max(1.25rem, calc((100% - 1120px) / 2));
  display: flex; justify-content: space-between; gap: .75rem; align-items: center;
}
.brand { margin: 0 0 .4rem; color: #a9dec9; font-size: .82rem; letter-spacing: .05em; }
h1 { margin: 0; font-size: clamp(1.2rem, 3vw, 1.8rem); }
h2 { margin: 0 0 1.15rem; font-size: 1.23rem; }
h3 { margin: 0 0 .85rem; font-size: 1rem; }
main { width: min(1120px, calc(100% - 2rem)); margin: 1.8rem auto 3rem; }
.surface { background: white; border: 1px solid #d5e0d9; padding: clamp(1rem, 3vw, 1.6rem); border-radius: 12px; }
.login { max-width: 430px; margin: auto; }
nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
button {
  background: #145f49; color: white; padding: .62rem .95rem; border: 1px solid transparent;
  cursor: pointer; border-radius: 8px; font: inherit; font-size: .9rem;
}
button.secondary, nav button { background: white; color: #14332d; border-color: #c4d5cc; }
nav button[aria-current="page"] { color: white; background: #145f49; }
button:disabled { opacity: .48; cursor: default; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #55a68c; outline-offset: 2px; }
input, textarea, select {
  display: block; width: 100%; margin-top: .35rem; padding: .63rem; background: white;
  border: 1px solid #b5c8bf; border-radius: 7px; color: inherit; font: inherit;
}
label { display: block; font-size: .88rem; }
input[type=checkbox] { width: auto; display: inline-block; margin-inline-start: .45rem; }
textarea { min-height: 90px; resize: vertical; }
form { display: grid; gap: .8rem; }
form button { justify-self: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(255px,100%),1fr)); gap: 1rem; }
.card { border: 1px solid #d5e0d9; border-radius: 9px; padding: 1rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.list { display: grid; gap: .6rem; margin: .85rem 0; }
.item { padding: .75rem; border: 1px solid #d5e0d9; border-radius: 8px; }
.item p { margin: .4rem 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .65rem; }
small { color: #42584f; }
#notice { margin: 0 0 .8rem; background: #e0f0e5; border: 1px solid #a4c9ae; padding: .7rem; border-radius: 8px; overflow-wrap: anywhere; }
#notice[data-error=true] { background: #fff0ed; border-color: #e8b3a5; }
code { unicode-bidi: isolate; overflow-wrap: anywhere; }
@media (max-width: 580px) { header { align-items: flex-start; flex-direction: column; } main { margin-top: 1rem; } }

.map-frame { position: relative; margin-block: .9rem; border: 1px solid #aebfb5; border-radius: 12px; overflow: hidden; background: #eaf0e9; }
.map-frame canvas { width: 100%; height: clamp(360px, 67vh, 760px); display: block; touch-action: none; cursor: grab; }
.map-controls { display: flex; position: absolute; inset: .7rem auto auto .7rem; gap: .35rem; direction: ltr; }
.map-attribution { position: absolute; bottom: 0; right: 0; background: #fffffff0; color: #23322c; padding: .2rem .4rem; font-size: .73rem; }
.map-people { grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr)); }
.gps-panel { max-width: 760px; margin: auto; }
.gps-panel .map-frame canvas { height: clamp(280px, 51vh, 510px); }
