:root {
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;
  color:#223d37;
  background:#f5f6f1;
  font-size:13px;
  --line:#dce3da;
  --green:#143e38;
  --muted:#6b7c72;
  --accent:#d4e5ad
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  height:100dvh;
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
  grid-template-rows:76px minmax(0,1fr)
}
button,input,select {
  font:inherit
}
button,label,select {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer;
  border:1px solid var(--line);
  border-radius:6px;
  padding:9px 12px;
  background:#fff;
  color:var(--green)
}
button:hover:not(:disabled) {
  background:#eaf0e2
}
button:disabled {
  opacity:.45;
  cursor:default
}
input,select {
  width:100%;
  padding:10px;
  border:1px solid #cbd6ca;
  border-radius:5px;
  background:#fff;
  color:var(--green)
}
input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible,#map:focus-visible {
  outline:3px solid #92b45d;
  outline-offset:3px
}
label {
  display:block;
  margin:15px 0 7px;
  font-weight:600;
  font-size:12px
}
[hidden] {
  display:none!important
}
.topbar {
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  padding:0 25px;
  background:#fff
}
.brand {
  display:flex;
  gap:13px;
  align-items:center
}
.mark {
  display:grid;
  place-items:center;
  background:var(--green);
  color:var(--accent);
  width:38px;
  height:40px;
  font-size:28px;
  border-radius:8px
}
h1 {
  font-size:20px;
  letter-spacing:-.6px;
  margin:0 0 3px;
  font-weight:650
}
.eyebrow {
  color:var(--muted);
  font-size:11px
}
.top-actions {
  display:flex;
  gap:20px;
  align-items:center
}
.local-badge {
  color:#4b7056;
  font-size:11px
}
.quiet {
  background:transparent
}
.sidebar {
  min-height:0;
  overflow-y:auto;
  padding:26px 22px 18px;
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  background:#fbfcf8
}
fieldset {
  padding:0;
  border:0;
  margin:0;
  min-width:0
}
.section-label {
  font-size:10px;
  letter-spacing:1.7px;
  color:#667960;
  font-weight:700
}
.dropzone {
  margin-top:17px;
  padding:22px 10px;
  border:1px dashed #91ab89;
  border-radius:8px;
  background:#edf3e6;
  text-align:center;
  cursor:pointer;
  font-weight:400;
  display:flex;
  flex-direction:column;
  gap:7px
}
.dropzone strong {
  font-size:13px
}
.dropzone span:last-child {
  font-size:12px;
  color:var(--muted)
}
.upload-icon {
  font-size:29px;
  color:#658453
}
.file-input {
  font-size:11px;
  padding:5px;
  border:0;
  background:none
}
.hint {
  color:var(--muted);
  font-size:11px;
  line-height:1.6
}
.text-button {
  border:0;
  padding:6px 0;
  background:none;
  color:#446d42;
  font-size:12px
}
.file-card {
  padding:12px;
  background:#eaf0e2;
  border-radius:6px;
  margin:18px 0 7px
}
.file-card strong {
  display:block;
  font-size:11px;
  overflow-wrap:anywhere;
  line-height:1.5
}
.file-card span {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:4px
}
.divider {
  margin-top:25px;
  border-top:1px solid var(--line);
  padding-top:23px
}
.primary {
  width:100%;
  margin-top:12px;
  background:var(--green);
  color:#fff;
  border-color:var(--green)
}
.primary:hover:not(:disabled) {
  background:#28594e
}
.sidebar-foot {
  margin-top:auto;
  padding-top:30px;
  color:#778471;
  font-size:10px;
  line-height:1.7
}
.sidebar-foot p:last-child {
  opacity:.8
}
main {
  display:grid;
  grid-template-rows:minmax(260px,1fr) 250px;
  min-height:0;
  min-width:0
}
.map-panel {
  position:relative;
  min-height:0;
  background:#e9eee4;
  overflow:hidden
}
#map {
  height:100%;
  width:100%
}
.map-tools {
  position:absolute;
  top:16px;
  right:16px;
  display:flex;
  gap:8px;
  align-items:center
}
.map-tools button,.basemap-toggle {
  background:#fffffff2;
  box-shadow:0 2px 9px #23432a0c
}
.basemap-toggle {
  margin:0;
  padding:9px 12px;
  border:1px solid var(--line);
  border-radius:6px;
  font-size:11px
}
.basemap-toggle input {
  width:auto;
  margin:0 5px 0 0;
  accent-color:var(--green)
}
#welcome {
  position:absolute;
  left:50%;
  top:45%;
  transform:translate(-50%,-50%);
  text-align:center;
  padding:35px 40px;
  border:1px solid #ffffffb0;
  border-radius:12px;
  background:#f8faf3ed;
  box-shadow:0 12px 40px #15332715;
  pointer-events:none;
  width:360px
}
#welcome h2 {
  font-family:Georgia,serif;
  font-weight:400;
  font-size:36px;
  letter-spacing:-1.1px;
  line-height:1.12;
  margin:16px 0
}
#welcome p {
  color:#64755f;
  line-height:1.8;
  font-size:12px
}
.welcome-rule {
  height:1px;
  width:50px;
  background:#b9c8ac;
  margin:21px auto 14px
}
.statusbar {
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  background:#ffffffed;
  border-top:1px solid var(--line);
  padding:10px 15px;
  display:flex;
  justify-content:space-between;
  font-size:11px;
  gap:12px;
  z-index:1
}
#status {
  overflow-wrap:anywhere
}
#map-count {
  color:var(--muted);
  white-space:nowrap
}
.ol-attribution {
  bottom:40px!important;
  font-size:9px
}
.ol-zoom {
  top:16px!important;
  left:16px!important
}
.ol-control button {
  background:#fff!important;
  color:var(--green)!important
}
.table-panel {
  background:#fff;
  min-height:0;
  display:flex;
  flex-direction:column;
  border-top:1px solid var(--line)
}
.table-heading {
  padding:15px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--line);
  gap:15px
}
.table-heading h2 {
  font-size:13px;
  margin:0 0 4px
}
#table-caption {
  color:var(--muted);
  font-size:11px
}
#table-scroll {
  overflow:auto;
  flex:1
}
table {
  border-collapse:collapse;
  text-align:left;
  font-size:11px;
  white-space:nowrap;
  width:100%
}
th {
  position:sticky;
  top:0;
  background:#f0f4eb;
  color:#596d52;
  font-size:10px;
  letter-spacing:.3px;
  z-index:1
}
td,th {
  padding:8px 14px;
  border-bottom:1px solid #e9ede5;
  border-right:1px solid #f0f2ed;
  max-width:270px;
  overflow:hidden;
  text-overflow:ellipsis
}
td button {
  font-size:10px;
  padding:3px 8px
}
tr.selected td {
  background:#edf3dd
}
#empty-table {
  padding:45px;
  text-align:center;
  color:#8c9a86;
  font-size:12px
}
#error {
  padding:12px 18px;
  margin:0;
  background:#fff0e9;
  color:#9b381e;
  font-size:12px;
  overflow-wrap:anywhere
}
#inspector {
  position:absolute;
  right:16px;
  top:63px;
  bottom:51px;
  width:300px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:auto;
  box-shadow:0 8px 30px #16332820
}
.inspector-head {
  position:sticky;
  top:0;
  background:#fff;
  padding:12px 14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--line)
}
.inspector-head h2 {
  font-size:13px;
  margin:0
}
.inspector-head button {
  border:0;
  padding:0 5px;
  font-size:23px
}
dl {
  padding:3px 16px 15px;
  margin:0
}
dt {
  font-size:10px;
  color:var(--muted);
  margin-top:13px
}
dd {
  margin:4px 0 0;
  font-size:12px;
  overflow-wrap:anywhere;
  white-space:pre-wrap
}
.dragging .map-panel:after {
  content:'Drop a dataset to open it';
  position:absolute;
  inset:12px;
  border:2px dashed #648650;
  background:#f4f8edf2;
  display:grid;
  place-items:center;
  font-size:22px;
  color:var(--green);
  z-index:5
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
@media(max-width:760px) {
  body {
    height:auto;
    min-height:100dvh;
    grid-template-columns:1fr;
    grid-template-rows:70px auto auto
  }
  .topbar {
    padding:0 14px
  }
  .eyebrow {
    font-size:9px
  }
  h1 {
    font-size:17px
  }
  .top-actions {
    gap:5px
  }
  .local-badge {
    display:none
  }
  .quiet {
    font-size:10px;
    padding:8px
  }
  .sidebar {
    padding:18px;
    border-right:0;
    border-bottom:1px solid var(--line);
    max-height:45dvh
  }
  .sidebar-foot {
    display:none
  }
  .dropzone {
    padding:10px;
    gap:3px
  }
  .upload-icon {
    display:none
  }
  .hint {
    margin:7px 0
  }
  main {
    height:75dvh;
    min-height:550px;
    grid-template-rows:minmax(320px,1fr) 220px
  }
  #welcome {
    width:280px;
    padding:24px
  }
  #welcome h2 {
    font-size:30px
  }
  .table-heading>.hint {
    display:none
  }
  #inspector {
    width:min(300px,calc(100% - 70px))
  }
  .brand {
    gap:8px
  }
  .mark {
    width:30px;
    height:34px
  }
  #map-count {
    white-space:normal;
    text-align:right
  }
  .file-card {
    margin-top:8px
  }
}
/* Long attribute rows scroll inside the table without widening the map's grid track. */
main {
  grid-template-columns:minmax(0,1fr)
}
.map-panel,.table-panel {
  min-width:0
}
