@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --beechland-green: #038836;
  --beechland-green-dark: #026b2b;
  --beechland-green-light: #7cb184;
  --beechland-blue: #0b3a96;
  --beechland-cyan: #34aace;
  --beechland-red: #cc353c;
  --beechland-ink: #17251b;
  --beechland-muted: #607064;
  --beechland-surface: #ffffff;
  --beechland-ground: #f3f7f3;
  --beechland-line: #d5e2d7;
  --beechland-shadow: 0 14px 34px rgba(23, 57, 30, 0.16);
  --beechland-radius: 12px;
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--beechland-ink);
  background: var(--beechland-ground);
  font-family: inherit;
}
a { color: var(--beechland-green-dark); font-weight: 700; }
a:hover { color: var(--beechland-blue); }
h1, h2, h3 { color: var(--beechland-green-dark); letter-spacing: -0.025em; }
h1 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
button, input, select, textarea { font: inherit; }
button {
  border: 0;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  background: var(--beechland-green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
button:hover { background: var(--beechland-green-dark); }
input, select, textarea {
  border: 1px solid var(--beechland-line);
  border-radius: 8px;
  background: #fff;
  color: var(--beechland-ink);
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--beechland-cyan) 30%, transparent);
  border-color: var(--beechland-cyan);
}

.beechland-page {
  max-width: 1080px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
.beechland-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--beechland-green-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.beechland-brand::before {
  content: '';
  width: 1rem;
  height: 1rem;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--beechland-green);
}
.beechland-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 2rem;
}
.beechland-nav a {
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--beechland-line);
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255,255,255,0.8);
}
.beechland-nav a:hover, .beechland-nav a.active {
  color: #fff;
  background: var(--beechland-green);
  border-color: var(--beechland-green);
}
.beechland-card, .table-wrap, .beechland-form {
  border: 1px solid var(--beechland-line);
  border-radius: var(--beechland-radius);
  background: var(--beechland-surface);
  box-shadow: var(--beechland-shadow);
}
.beechland-form { max-width: 430px; display: grid; gap: 0.8rem; padding: 1.25rem; }
table { background: #fff; }
th { background: #e7f1e8 !important; color: var(--beechland-green-dark); }
th, td { border-color: var(--beechland-line) !important; }
.meta { color: var(--beechland-muted) !important; }
.error, .message { color: #a51d25 !important; font-weight: 700; }

/* Full-screen field-map controls */
#info, #layers, #workspace-control, #popup,
body > a[href='/logout'] {
  border: 1px solid var(--beechland-line) !important;
  border-radius: var(--beechland-radius) !important;
  background: rgba(255,255,255,0.96) !important;
  color: var(--beechland-ink) !important;
  box-shadow: var(--beechland-shadow) !important;
  font-family: inherit !important;
}
#popup { border-top: 4px solid var(--beechland-green) !important; }
#popup .tab.active { border-bottom-color: var(--beechland-green) !important; color: var(--beechland-green-dark) !important; }
#workspace-control { border-left: 4px solid var(--beechland-green) !important; }
