body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
}

.landing-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(19, 209, 112, 0.12), transparent 22%), linear-gradient(180deg, #020202 0%, #030704 100%);
  color: #f7f7f3;
}

.landing-noise {
  inset: 0;
  opacity: 0.18;
  position: absolute;
  background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.12), transparent 22%), radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.06), transparent 18%);
}

.landing-topbar,
.landing-hero,
.landing-footer {
  position: relative;
  z-index: 1;
}

.landing-topbar {
  display: flex;
  justify-content: flex-start;
  padding: 48px 64px 0;
}

.brand-pill {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  display: inline-flex;
  gap: 14px;
  padding: 12px 20px;
}

.brand-badge,
.login-logo {
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #dcfce7);
  border-radius: 999px;
  color: #16a34a;
  display: inline-flex;
  font-size: 1.3rem;
  font-weight: 800;
  height: 78px;
  justify-content: center;
  width: 78px;
}

.brand-badge--image,
.login-logo--image,
.sidebar-brand__logo--image {
  object-fit: contain;
  padding: 4px;
  box-sizing: border-box;
}

.landing-hero {
  align-items: center;
  display: grid;
  gap: 26px;
  justify-items: center;
  margin: 0 auto;
  max-width: 980px;
  padding: 72px 24px 40px;
  text-align: center;
}

.hero-tag,
.layer-pills span,
.layer-toggle,
.ghost-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.hero-tag {
  color: #d1d5db;
  font-size: 0.95rem;
  padding: 12px 18px;
}

.landing-hero h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-style: italic;
  font-weight: 500;
  line-height: 0.95;
  margin: 0;
}

.landing-hero h1 span {
  color: #38ef7d;
}

.landing-hero p {
  color: #d6d6d6;
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0;
  max-width: 760px;
}

.hero-button {
  background: linear-gradient(135deg, #16a34a, #4ade80);
  border-radius: 999px;
  box-shadow: 0 20px 45px rgba(22, 163, 74, 0.28);
  color: white;
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 18px 34px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.hero-button:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 26px 56px rgba(22, 163, 74, 0.34);
  filter: brightness(1.03);
}

.landing-footer {
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 24px 32px;
  text-align: center;
}

.login-page {
  align-items: center;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  padding: 24px;
  position: relative;
  background: #08120d;
}

.login-background {
  background: radial-gradient(circle at 15% 20%, rgba(132, 232, 168, 0.45), transparent 22%), radial-gradient(circle at 85% 80%, rgba(230, 255, 111, 0.35), transparent 18%), linear-gradient(180deg, #edf9f3 0%, #e8f7f2 100%);
  inset: 0;
  position: absolute;
}

.login-slideshow,
.login-slideshow__overlay,
.login-slideshow__glow {
  position: absolute;
  inset: 0;
}

.login-slideshow {
  overflow: hidden;
}

.login-slide {
  position: absolute;
  inset: -2%;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  animation: loginSlideshow 28s infinite;
  filter: saturate(0.96) contrast(0.98) brightness(0.74);
}

.login-slide--1 {
  animation-delay: 0s;
}

.login-slide--2 {
  animation-delay: 7s;
}

.login-slide--3 {
  animation-delay: 14s;
}

.login-slide--4 {
  animation-delay: 21s;
}

.login-slideshow__overlay {
  background:
    linear-gradient(110deg, rgba(5, 17, 11, 0.72) 0%, rgba(5, 17, 11, 0.48) 38%, rgba(5, 17, 11, 0.66) 100%),
    linear-gradient(180deg, rgba(18, 93, 58, 0.24), rgba(7, 13, 10, 0.38));
}

.login-slideshow__glow {
  background:
    radial-gradient(circle at 18% 24%, rgba(34, 197, 94, 0.22), transparent 22%),
    radial-gradient(circle at 84% 82%, rgba(163, 230, 53, 0.16), transparent 18%);
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100vw - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 430px);
  gap: 28px;
  align-items: center;
}

.login-showcase {
  color: rgba(248, 255, 250, 0.96);
  padding: 20px 10px 20px 6px;
  max-width: 620px;
  user-select: none;
  -webkit-user-select: none;
}

.login-showcase__badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.login-showcase h1 {
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
  font-size: initial;
  line-height: 1;
  color: #f7fff9;
  max-width: 720px;
}

.login-showcase__brand {
  display: block;
  font-size: clamp(3rem, 5.8vw, 5rem);
  font-weight: 800;
  line-height: 0.92;
}

.login-showcase__product {
  display: block;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.08;
  color: rgba(232, 244, 236, 0.94);
}

.login-showcase p {
  margin: 18px 0 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(228, 240, 233, 0.9);
  max-width: 620px;
}

.login-showcase__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.login-showcase__stats span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(244, 251, 246, 0.94);
  font-size: 0.92rem;
  backdrop-filter: blur(10px);
}

.login-card,
.panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(22, 101, 52, 0.12);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(33, 94, 63, 0.12);
}

.login-card {
  display: grid;
  gap: 16px;
  margin: 0 0 0 auto;
  max-width: 450px;
  padding: 26px 30px 24px;
  position: relative;
  width: 100%;
  z-index: 1;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
  box-shadow: 0 28px 70px rgba(8, 21, 15, 0.26);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 110px;
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.08), rgba(22, 163, 74, 0));
  pointer-events: none;
}

.login-card h1,
.sidebar h1 {
  color: #173128;
  margin: 0;
}

.login-card__header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.login-card__logo-wrap {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.96), rgba(220, 252, 231, 0.92) 62%, rgba(187, 247, 208, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 34px rgba(22, 163, 74, 0.16);
}

.login-card__copy {
  display: grid;
  gap: 6px;
  align-content: center;
}

.login-noselect {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
}

.login-card__copy .login-noselect,
.login-label-text,
.login-logo--image {
  pointer-events: none;
}

.login-card__header .login-logo {
  width: 84px;
  height: 84px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.68);
}

.login-card__copy h2 {
  margin: 0;
  color: #173128;
  font-size: 2.45rem;
  line-height: 0.98;
}

.login-card p {
  color: #65887f;
  margin: 0;
  text-align: left;
  line-height: 1.55;
}

.login-card label {
  color: #173128;
  display: grid;
  font-weight: 700;
  gap: 7px;
}

.login-label-text {
  display: inline-block;
}

.login-card input,
.layer-toggle select {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(22, 101, 52, 0.18);
  border-radius: 16px;
  font: inherit;
  padding: 16px 18px;
  user-select: text;
  -webkit-user-select: text;
}

.login-card input:focus {
  outline: none;
  border-color: rgba(22, 163, 74, 0.48);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.08);
}

.login-card button {
  background: linear-gradient(135deg, #16a34a, #53c77a);
  border: none;
  border-radius: 16px;
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 20px;
  margin-top: 2px;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.login-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(34, 197, 94, 0.25);
  filter: brightness(1.02);
}

.login-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 14px;
  color: #b91c1c;
  padding: 12px 14px;
}

@keyframes loginSlideshow {
  0% {
    opacity: 0;
    transform: scale(1.06);
  }
  8% {
    opacity: 1;
  }
  24% {
    opacity: 1;
    transform: scale(1.02);
  }
  33% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.dashboard-body {
  background: linear-gradient(180deg, #f8fbfa 0%, #eef4f1 100%);
  color: #18322b;
  overflow: hidden;
}

.shell {
  position: relative;
  display: grid;
  grid-template-columns: 286px 1fr 320px;
  height: 100vh;
  min-height: 100vh;
  gap: 18px;
  padding: 18px;
  box-sizing: border-box;
  transition: grid-template-columns 240ms ease, gap 240ms ease;
}

.shell.sidebar-collapsed {
  grid-template-columns: 0 1fr 320px;
}

.shell.rightbar-collapsed {
  grid-template-columns: 286px 1fr 0;
}

.shell.sidebar-collapsed.rightbar-collapsed {
  grid-template-columns: 0 1fr 0;
}

.sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  padding: 24px 14px 18px;
  height: calc(100vh - 36px);
  min-height: 0;
  box-sizing: border-box;
  border: 1px solid rgba(30, 84, 62, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  overflow: visible;
  transform: translateX(0);
  box-shadow: 0 18px 44px rgba(33, 94, 63, 0.08);
  transition: transform 240ms ease, opacity 180ms ease, box-shadow 240ms ease;
  z-index: 20;
}

.shell.sidebar-collapsed .sidebar {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
}

.sidebar-toggle {
  position: absolute;
  left: 278px;
  top: 50%;
  z-index: 30;
  width: 22px;
  height: 44px;
  border: 1px solid rgba(22, 101, 52, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #eff8f2);
  color: #167a47;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(24, 93, 58, 0.14);
  transform: translateY(-50%);
  transition: left 240ms ease, transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.sidebar-toggle:hover {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 16px 30px rgba(24, 93, 58, 0.18);
  background: linear-gradient(180deg, #16a34a, #38c973);
  color: #ffffff;
}

.sidebar-toggle__icon {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle__icon svg {
  width: 12px;
  height: 12px;
  display: block;
  transition: transform 180ms ease;
}

.sidebar-toggle.is-collapsed .sidebar-toggle__icon svg {
  transform: rotate(180deg);
}

.shell.sidebar-collapsed .sidebar-toggle {
  left: 12px;
}

.rightbar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px 14px 16px;
  height: calc(100vh - 36px);
  min-height: 0;
  box-sizing: border-box;
  border: 1px solid rgba(30, 84, 62, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(33, 94, 63, 0.08);
  overflow: visible;
  transform: translateX(0);
  transition: transform 240ms ease, opacity 180ms ease, box-shadow 240ms ease;
  z-index: 20;
}

.shell.rightbar-collapsed .rightbar {
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
}

.rightbar-toggle {
  position: absolute;
  right: 312px;
  top: 50%;
  z-index: 30;
  width: 22px;
  height: 44px;
  border: 1px solid rgba(22, 101, 52, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #eff8f2);
  color: #167a47;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(24, 93, 58, 0.14);
  transform: translateY(-50%);
  transition: right 240ms ease, transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.rightbar-toggle:hover {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 16px 30px rgba(24, 93, 58, 0.18);
  background: linear-gradient(180deg, #16a34a, #38c973);
  color: #ffffff;
}

.rightbar-toggle__icon {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rightbar-toggle__icon svg {
  width: 12px;
  height: 12px;
  display: block;
  transition: transform 180ms ease;
}

.rightbar-toggle.is-collapsed .rightbar-toggle__icon svg {
  transform: rotate(180deg);
}

.shell.rightbar-collapsed .rightbar-toggle {
  right: 12px;
}

.rightbar-header h2 {
  margin: 4px 0 0;
  font-size: 1.45rem;
}

.rightbar-subtitle {
  margin: 6px 0 0;
  color: #6b8d7f;
  line-height: 1.4;
  font-size: 0.92rem;
}

.projection-card {
  margin-top: 12px;
  padding: 12px 13px;
  border: 1px solid rgba(22, 101, 52, 0.12);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(236, 248, 240, 0.95), rgba(255, 255, 255, 0.98));
}

.projection-card__label {
  color: #6d8f81;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projection-card__value {
  margin-top: 4px;
  color: #173128;
  font-size: 1.05rem;
  font-weight: 800;
}

.projection-card__meta {
  margin-top: 6px;
  color: #5f8475;
  font-size: 0.84rem;
  line-height: 1.35;
}

.export-layout-button {
  margin-top: auto;
  width: 100%;
  border: none;
  border-radius: 18px;
  padding: 13px 14px;
  background: linear-gradient(135deg, #0f7f47, #19aa5b);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 18px 28px rgba(15, 127, 71, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.export-layout-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 34px rgba(15, 127, 71, 0.24);
  filter: brightness(1.03);
}

.sidebar-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 14px;
  padding: 0 8px 22px;
  border-bottom: 1px solid rgba(30, 84, 62, 0.12);
  position: relative;
}

.sidebar-brand__logo {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #16a34a;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, #dcfce7);
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.15);
}

.sidebar-brand__logo--image {
  border: 1px solid rgba(22, 101, 52, 0.08);
}

.sidebar-brand h1 {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 4px;
}

.sidebar-brand__content {
  min-width: 0;
  align-self: center;
}

.sidebar-brand__company {
  grid-column: 1 / -1;
  position: relative;
}

.company-switcher {
  width: 100%;
  margin-top: 0;
  padding: 4px 8px;
  border: 1px solid rgba(22, 101, 52, 0.12);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(248, 252, 249, 0.98), rgba(238, 248, 241, 0.94));
  color: #214437;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "value chevron";
  gap: 6px;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.company-switcher:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(22, 101, 52, 0.08);
  border-color: rgba(22, 163, 74, 0.18);
}

.company-switcher__value {
  grid-area: value;
  color: #2d5445;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: normal;
  line-height: 1.15;
}

.company-switcher__chevron {
  grid-area: chevron;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: #4f7c67;
}

.company-switcher__chevron svg {
  width: 12px;
  height: 12px;
  display: block;
  transition: transform 180ms ease;
}

.company-switcher.is-open .company-switcher__chevron svg {
  transform: rotate(180deg);
}

.company-switcher__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  padding: 6px;
  border: 1px solid rgba(22, 101, 52, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 26px rgba(33, 94, 63, 0.1);
  display: grid;
  gap: 4px;
  z-index: 80;
  max-height: min(320px, calc(100vh - 24px));
  overflow-y: auto;
}

.company-switcher__menu[hidden] {
  display: none !important;
}

.company-option {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 7px 10px;
  background: rgba(247, 251, 248, 0.9);
  color: #214437;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.company-option:hover {
  transform: translateX(2px);
  background: rgba(232, 248, 238, 0.98);
  box-shadow: 0 8px 14px rgba(33, 94, 63, 0.06);
}

.company-option.is-active {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(36, 179, 90, 0.14));
}

.company-option.company-option--disabled {
  color: #8da199;
  background: rgba(247, 250, 248, 0.92);
  cursor: not-allowed;
  opacity: 0.9;
  box-shadow: none;
}

.company-option.company-option--disabled:hover {
  transform: none;
  background: rgba(247, 250, 248, 0.92);
  box-shadow: none;
}

.sidebar-section-label {
  margin: 26px 8px 12px;
  color: #6d8f81;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: grid;
  gap: 12px;
  min-height: 0;
  align-content: start;
  align-items: start;
  overflow-y: auto;
  overflow-x: visible;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 101, 52, 0.22) transparent;
}

.nav::-webkit-scrollbar {
  width: 8px;
}

.nav::-webkit-scrollbar-thumb {
  background: rgba(22, 101, 52, 0.22);
  border-radius: 999px;
}

.nav::-webkit-scrollbar-track {
  background: transparent;
}

.nav__section {
  display: grid;
  gap: 8px;
  align-content: start;
  align-items: start;
}

.nav__group,
.nav__item,
.nav__placeholder {
  display: block;
  border-radius: 16px;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.nav__item {
  color: #527466;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 16px;
}

.nav__item:hover {
  background: rgba(22, 163, 74, 0.08);
  color: #195c3d;
  transform: translateX(4px);
}

.nav__item.is-active {
  background: linear-gradient(135deg, #16a34a, #24b35a);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.2);
  color: white;
}

.nav__item--top {
  background: rgba(239, 246, 241, 0.7);
  color: #214437;
  font-weight: 700;
}

.nav__group {
  width: 100%;
  box-sizing: border-box;
  border: none;
  position: relative;
  padding: 10px 14px;
  color: #214437;
  font-size: 0.96rem;
  font-weight: 800;
  background: rgba(239, 246, 241, 0.82);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__group:hover {
  background: rgba(22, 163, 74, 0.08);
  color: #16583a;
  transform: translateX(2px);
}

.nav__group--active {
  background: rgba(22, 163, 74, 0.1);
  color: #16583a;
}

.nav__chevron {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4d7464;
}

.nav__chevron svg {
  width: 14px;
  height: 14px;
  display: block;
  transition: transform 180ms ease;
}

.nav__section--collapsible.is-open .nav__chevron svg {
  transform: rotate(90deg);
}

.nav__sublist {
  display: grid;
  gap: 6px;
  padding-left: 12px;
  border-left: 1px solid rgba(22, 101, 52, 0.12);
  margin-left: 14px;
  max-height: 520px;
  overflow: hidden;
  transition: max-height 220ms ease, opacity 180ms ease, margin-top 180ms ease, padding-top 180ms ease;
  opacity: 1;
  margin-top: 2px;
  padding-top: 2px;
}

.nav__section--collapsible:not(.is-open) .nav__sublist {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  overflow: hidden;
}

.nav__item--sub,
.nav__placeholder {
  padding: 10px 14px;
  font-size: 0.93rem;
}

.nav__placeholder {
  color: #89a096;
  background: rgba(248, 252, 249, 0.64);
  cursor: default;
  opacity: 0.88;
}

.sidebar-user {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 10px 10px;
  border-top: 1px solid rgba(30, 84, 62, 0.12);
}

.sidebar-user__avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #f0c419, #3ea749);
}

.sidebar-user__meta {
  display: grid;
  gap: 2px;
}

.sidebar-user__meta strong {
  font-size: 1rem;
}

.sidebar-user__meta span {
  color: #6b8d7f;
  font-size: 0.92rem;
}

.sidebar-user__settings {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: #eef6f1;
  color: #2b7a56;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.sidebar-user__settings svg {
  width: 18px;
  height: 18px;
  display: block;
}

.sidebar-user__settings:hover {
  transform: translateY(-2px) scale(1.04);
  background: #dff1e6;
  box-shadow: 0 10px 20px rgba(22, 101, 52, 0.14);
}

.logout-link {
  align-self: center;
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  margin-top: 4px;
  padding: 10px 14px;
  transition: transform 180ms ease, color 180ms ease;
}

.logout-link:hover {
  color: #dc2626;
  transform: translateY(-1px);
}

.settings-modal[hidden] {
  display: none;
}

.settings-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.settings-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(6px);
}

.settings-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(30, 84, 62, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
  padding: 24px;
  box-sizing: border-box;
}

.settings-panel--wide {
  width: min(920px, calc(100vw - 32px));
}

.settings-panel--editor {
  width: min(1360px, calc(100vw - 28px));
  height: min(92vh, 920px);
  max-height: min(92vh, 920px);
  padding: 0;
  overflow: hidden;
}

.settings-modal__backdrop--editor {
  background: rgba(8, 15, 12, 0.4);
  backdrop-filter: blur(10px);
}

.settings-close--editor {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
}

.settings-panel__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

.settings-panel__header h2 {
  margin: 6px 0 0;
  font-size: 1.75rem;
}

.settings-panel__subtitle {
  margin: 8px 0 0;
  color: #6b8d7f;
}

.settings-close {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: #eff6f1;
  color: #2b7a56;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 180ms ease, background-color 180ms ease;
}

.settings-close:hover {
  transform: translateY(-1px);
  background: #def0e4;
}

.settings-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.settings-form__hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(30, 84, 62, 0.1);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(231, 248, 237, 0.95), rgba(255, 255, 255, 0.96));
}

.settings-photo {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  background: linear-gradient(135deg, #d6b81f, #2fa24b);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  font-weight: 800;
  overflow: hidden;
}

.settings-photo img,
.sidebar-user__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.settings-form__hero-meta {
  display: grid;
  gap: 6px;
}

.settings-form__hero-meta strong {
  font-size: 1.2rem;
}

.settings-form__hero-meta span {
  color: #6b8d7f;
}

.settings-upload {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(30, 84, 62, 0.14);
  color: #1f6c47;
  cursor: pointer;
  font-weight: 600;
}

.settings-upload input {
  display: none;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.settings-form label,
.settings-form__full {
  display: grid;
  gap: 8px;
  color: #173128;
  font-weight: 700;
}

.settings-form input,
.settings-form textarea,
.settings-form select {
  width: 100%;
  box-sizing: border-box;
  background: rgba(248, 252, 249, 0.96);
  border: 1px solid rgba(22, 101, 52, 0.14);
  border-radius: 16px;
  font: inherit;
  color: inherit;
  padding: 13px 14px;
}

.settings-form textarea {
  resize: vertical;
  min-height: 88px;
}

.layout-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 14px 16px;
  border: 1px solid rgba(22, 101, 52, 0.1);
  border-radius: 18px;
  background: rgba(246, 251, 248, 0.9);
}

.layout-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #224236;
}

.settings-form__full {
  width: 100%;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.settings-primary,
.settings-secondary {
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 12px 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.settings-primary {
  background: linear-gradient(135deg, #16a34a, #33c76a);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(22, 163, 74, 0.2);
}

.settings-secondary {
  background: #eff6f1;
  color: #1f6c47;
}

.settings-primary:hover,
.settings-secondary:hover {
  transform: translateY(-1px);
}

.settings-primary:hover {
  box-shadow: 0 20px 34px rgba(22, 163, 74, 0.24);
}

.layout-editor-page {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #edf5f0 0%, #f6faf8 100%);
  color: #173128;
}

.layout-editor-shell {
  min-height: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 340px 1fr;
}

.layout-editor-sidebar {
  padding: 24px 20px;
  border-right: 1px solid rgba(22, 101, 52, 0.1);
  background: rgba(255, 255, 255, 0.92);
  overflow: auto;
}

.layout-editor-sidebar__header h1 {
  margin: 6px 0;
  font-size: 1.7rem;
}

.layout-editor-sidebar__header p:last-child {
  margin: 0;
  color: #6b8d7f;
  line-height: 1.45;
}

.layout-editor-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.layout-editor-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.layout-editor-form input,
.layout-editor-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(22, 101, 52, 0.14);
  border-radius: 14px;
  padding: 12px 13px;
  font: inherit;
  background: rgba(248, 252, 249, 0.98);
}

.layout-editor-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}

.layout-editor-main {
  padding: 24px;
  overflow: auto;
  min-width: 0;
}

.layout-editor-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.layout-editor-toolbar h2 {
  margin: 6px 0 0;
  font-size: 1.7rem;
}

.layout-editor-help {
  color: #6b8d7f;
  max-width: 340px;
  text-align: right;
}

.layout-editor-canvas-wrap {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(22, 101, 52, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 50px rgba(33, 94, 63, 0.08);
}

.layout-editor-canvas {
  position: relative;
  width: min(100%, 1200px);
  aspect-ratio: 1.414 / 1;
  margin: 0 auto;
  border: 1px solid rgba(46, 56, 48, 0.2);
  background: #fbf8f2;
  overflow: hidden;
}

#layout-editor-modal {
  z-index: 1400;
}

.layout-editor-map {
  position: absolute;
  left: 3%;
  top: 3%;
  width: 72%;
  height: 90%;
  border: 1px solid rgba(46, 56, 48, 0.35);
  background-size: cover;
  background-position: center;
}

.layout-element {
  position: absolute;
  border: 1px dashed rgba(18, 103, 59, 0.28);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(33, 94, 63, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: move;
  user-select: none;
}

.layout-element:active {
  cursor: grabbing;
}

.layout-element--title {
  left: 77%;
  top: 3%;
  width: 19%;
}

.layout-element--meta {
  left: 77%;
  top: 17%;
  width: 19%;
}

.layout-element--legend {
  left: 77%;
  top: 39%;
  width: 19%;
}

.layout-element--summary {
  left: 77%;
  top: 61%;
  width: 19%;
}

.layout-element--footer {
  left: 77%;
  top: 84%;
  width: 19%;
}

.layout-element__eyebrow {
  color: #7a6757;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.layout-element__title {
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
}

.layout-element__body {
  margin-top: 6px;
  font-size: 0.74rem;
  line-height: 1.4;
}

.content {
  min-width: 0;
  height: 100vh;
  min-height: 0;
  padding: 0;
}

.panel {
  height: calc(100vh - 36px);
  padding: 0;
  border-radius: 30px;
  box-shadow: none;
  border: 1px solid rgba(30, 84, 62, 0.12);
  background: transparent;
  overflow: hidden;
}

.panel--dashboard {
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 247, 0.92));
  box-shadow: 0 20px 48px rgba(47, 71, 58, 0.08);
}

.dashboard-stage {
  height: 100%;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 101, 52, 0.2) transparent;
}

.dashboard-stage::-webkit-scrollbar {
  width: 8px;
}

.dashboard-stage::-webkit-scrollbar-thumb {
  background: rgba(22, 101, 52, 0.2);
  border-radius: 999px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  border: 1px solid rgba(22, 101, 52, 0.1);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(236, 248, 240, 0.95));
  box-shadow: 0 18px 40px rgba(33, 94, 63, 0.06);
}

.dashboard-hero h2,
.dashboard-chart-card h3 {
  margin: 6px 0 0;
  color: #163127;
}

.dashboard-hero__subtitle {
  margin: 10px 0 0;
  color: #64877a;
  line-height: 1.55;
  max-width: 760px;
}

.dashboard-hero__stamp {
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(19, 119, 73, 0.92), rgba(39, 173, 97, 0.9));
  color: #f7fff9;
  box-shadow: 0 18px 30px rgba(22, 101, 52, 0.18);
}

.dashboard-hero__stamp-label,
.dashboard-card__eyebrow,
.dashboard-chart-card__meta {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.dashboard-hero__stamp strong {
  font-size: 1rem;
  line-height: 1.45;
}

.dashboard-metrics {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-card,
.dashboard-chart-card {
  border: 1px solid rgba(22, 101, 52, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(33, 94, 63, 0.06);
}

.dashboard-card {
  padding: 18px 18px 16px;
  display: grid;
  gap: 12px;
  min-height: 156px;
}

.dashboard-card--weather {
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 249, 241, 0.96));
}

.dashboard-card__header,
.dashboard-chart-card__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-card__eyebrow {
  color: #6e8f81;
}

.dashboard-card__badge,
.dashboard-card__trend {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.dashboard-card__badge {
  background: rgba(22, 163, 74, 0.1);
  color: #1a7f48;
}

.dashboard-card__trend {
  background: rgba(15, 118, 110, 0.08);
  color: #176a61;
}

.dashboard-card__value {
  color: #163127;
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  line-height: 1.05;
}

.dashboard-card__subvalue {
  margin: 0;
  color: #65877a;
  line-height: 1.45;
  font-size: 0.93rem;
}

.dashboard-weather {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.dashboard-weather__icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(22, 101, 52, 0.08);
}

.dashboard-weather strong {
  display: block;
  color: #163127;
  font-size: 2rem;
  line-height: 1;
}

.dashboard-weather p {
  margin: 6px 0 0;
  color: #628375;
  line-height: 1.45;
}

.dashboard-weather__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-weather__meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(248, 252, 249, 0.96);
  border: 1px solid rgba(22, 101, 52, 0.08);
  color: #335347;
  font-size: 0.84rem;
}

.dashboard-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-chart-card {
  grid-column: span 4;
  display: grid;
  gap: 12px;
  padding: 18px;
  min-height: 310px;
}

.dashboard-chart-card--wide {
  grid-column: span 8;
}

.dashboard-chart-card__header {
  align-items: center;
}

.dashboard-chart-card__header .eyebrow {
  margin: 0;
}

.dashboard-chart-card__header h3 {
  font-size: 1.14rem;
}

.dashboard-chart-card__meta {
  color: #6e8f81;
  text-align: right;
}

.dashboard-chart-card canvas {
  width: 100% !important;
  height: 100% !important;
  min-height: 220px;
}

.shell.shell--dashboard-mode {
  grid-template-columns: 286px 1fr 0;
}

.shell.shell--dashboard-mode .rightbar {
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
}

.shell.shell--dashboard-mode .rightbar-toggle {
  opacity: 0;
  pointer-events: none;
  right: 12px;
}

.panel--map[hidden],
.panel--dashboard[hidden],
.panel--db-admin[hidden] {
  display: none !important;
}

.panel--db-admin {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 247, 0.92));
  box-shadow: 0 20px 48px rgba(47, 71, 58, 0.08);
}

.db-admin-stage {
  height: 100%;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  display: grid;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 101, 52, 0.2) transparent;
}

.db-admin-stage::-webkit-scrollbar {
  width: 8px;
}

.db-admin-stage::-webkit-scrollbar-thumb {
  background: rgba(22, 101, 52, 0.2);
  border-radius: 999px;
}

.db-admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  border: 1px solid rgba(22, 101, 52, 0.1);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(237, 249, 243, 0.94));
  box-shadow: 0 16px 36px rgba(33, 94, 63, 0.05);
}

.db-admin-hero h2,
.db-admin-main__top h3 {
  margin: 6px 0 0;
  color: #163127;
}

.db-admin-hero__subtitle,
.db-admin-main__meta {
  margin: 10px 0 0;
  color: #64877a;
  line-height: 1.55;
}

.db-admin-hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.db-admin-access {
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(22, 101, 52, 0.1);
  background: rgba(248, 252, 249, 0.96);
  color: #42695a;
  font-weight: 600;
  line-height: 1.55;
}

.db-admin-access--success {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.14);
  color: #166534;
}

.db-admin-access--warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(217, 119, 6, 0.16);
  color: #92400e;
}

.db-admin-access--danger {
  background: rgba(239, 68, 68, 0.09);
  border-color: rgba(220, 38, 38, 0.16);
  color: #991b1b;
}

.db-admin-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(248, 252, 249, 0.96);
  border: 1px solid rgba(22, 101, 52, 0.1);
  color: #2d5445;
  font-size: 0.86rem;
  font-weight: 700;
}

.db-admin-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  min-height: 0;
}

.db-admin-sidebar,
.db-admin-section,
.db-admin-main__top {
  border: 1px solid rgba(22, 101, 52, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(33, 94, 63, 0.05);
}

.db-admin-sidebar {
  padding: 16px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.db-admin-sidebar__header {
  display: grid;
  gap: 10px;
}

.db-admin-sidebar__header h3,
.db-admin-section__header h4 {
  margin: 0;
  color: #163127;
}

.db-admin-sidebar__header input,
.db-admin-query textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(22, 101, 52, 0.14);
  background: rgba(248, 252, 249, 0.96);
  font: inherit;
  color: inherit;
}

.db-admin-table-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 101, 52, 0.18) transparent;
}

.db-admin-table-item {
  width: 100%;
  border: 1px solid rgba(22, 101, 52, 0.08);
  border-radius: 18px;
  background: rgba(248, 252, 249, 0.9);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 4px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.db-admin-table-item:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 163, 74, 0.16);
  box-shadow: 0 10px 22px rgba(33, 94, 63, 0.06);
}

.db-admin-table-item.is-active {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(38, 190, 98, 0.14));
  border-color: rgba(22, 163, 74, 0.18);
}

.db-admin-table-item strong {
  color: #173128;
  font-size: 0.96rem;
}

.db-admin-table-item span {
  color: #66877a;
  font-size: 0.84rem;
}

.db-admin-table-item:disabled,
.db-admin-query__actions button:disabled,
.db-admin-main__top button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.db-admin-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.db-admin-main__top,
.db-admin-section {
  padding: 16px 18px;
}

.db-admin-main__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.db-admin-section {
  display: grid;
  gap: 12px;
}

.db-admin-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.db-admin-section__meta {
  color: #64877a;
  font-size: 0.84rem;
}

.db-admin-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.db-admin-column-card {
  min-width: 160px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(22, 101, 52, 0.08);
  background: rgba(248, 252, 249, 0.94);
}

.db-admin-column-card strong {
  display: block;
  color: #173128;
  font-size: 0.92rem;
}

.db-admin-column-card span {
  display: block;
  margin-top: 4px;
  color: #66877a;
  font-size: 0.8rem;
  line-height: 1.45;
}

.db-admin-table-wrap {
  overflow: auto;
  border: 1px solid rgba(22, 101, 52, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.db-admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.db-admin-table th,
.db-admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(22, 101, 52, 0.08);
  vertical-align: top;
  font-size: 0.88rem;
}

.db-admin-table th {
  position: sticky;
  top: 0;
  background: #f4faf6;
  color: #173128;
  font-weight: 700;
  z-index: 1;
}

.db-admin-table td {
  color: #3f6255;
  line-height: 1.45;
}

.db-admin-query {
  display: grid;
  gap: 12px;
}

.db-admin-query textarea {
  min-height: 140px;
  resize: vertical;
}

.db-admin-query__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.db-admin-query__status {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(248, 252, 249, 0.96);
  border: 1px solid rgba(22, 101, 52, 0.08);
  color: #587b6d;
  font-size: 0.88rem;
}

.eyebrow {
  color: #7a6757;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.layer-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.layer-pills span,
.layer-toggle,
.ghost-button {
  color: #2f241b;
  padding: 6px 9px;
}

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.map-toolbar--stacked {
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  overflow-y: auto;
  overflow-x: visible;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 101, 52, 0.22) transparent;
}

.map-toolbar--stacked::-webkit-scrollbar {
  width: 8px;
}

.map-toolbar--stacked::-webkit-scrollbar-thumb {
  background: rgba(22, 101, 52, 0.22);
  border-radius: 999px;
}

.map-toolbar--stacked::-webkit-scrollbar-track {
  background: transparent;
}

.map-toolbar--stacked .layer-toggle,
.map-toolbar--stacked .ghost-button,
.map-toolbar--stacked .points-filter {
  width: 100%;
  box-sizing: border-box;
}

.points-filter {
  position: relative;
}

.points-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 280px;
  max-height: 360px;
  overflow: hidden;
  background: rgba(255, 250, 242, 0.98);
  border: 1px solid rgba(94, 74, 54, 0.12);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(58, 42, 24, 0.14);
  z-index: 1000;
}

.points-dropdown-actions {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(94, 74, 54, 0.08);
}

.points-search-wrap {
  padding: 10px 12px 0;
}

.points-search-wrap input {
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(22, 101, 52, 0.18);
  border-radius: 12px;
  font: inherit;
  padding: 10px 12px;
}

.points-dropdown-list {
  max-height: 290px;
  overflow: auto;
  padding: 8px 12px 12px;
}

.points-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  border-radius: 10px;
}

.points-option:hover {
  background: rgba(15, 118, 110, 0.06);
}

.ghost-button--small {
  font-size: 0.82rem;
  padding: 6px 10px;
}

.layer-toggle {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  justify-content: flex-start;
  background: rgba(248, 252, 249, 0.96);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
  border-radius: 14px;
  font-size: 0.95rem;
}

.layer-toggle--select {
  flex-wrap: wrap;
  gap: 4px;
}

.layer-toggle--select select {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
}

.layer-toggle:hover {
  transform: translateY(-0.5px);
  box-shadow: 0 6px 12px rgba(33, 94, 63, 0.05);
  border-color: rgba(22, 163, 74, 0.18);
  background: #ffffff;
}

.ghost-button {
  cursor: pointer;
  background: rgba(248, 252, 249, 0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
  border-radius: 14px;
  font-size: 0.95rem;
}

.ghost-button--wide {
  width: 100%;
}

.ghost-button:hover {
  transform: translateY(-0.5px);
  box-shadow: 0 6px 12px rgba(33, 94, 63, 0.05);
  background: #ffffff;
  border-color: rgba(22, 163, 74, 0.18);
}

.map-stage {
  position: relative;
  height: 100%;
  padding: 12px;
  box-sizing: border-box;
}

.map-frame {
  --map-control-opacity: 0.95;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 26px;
  position: relative;
  box-shadow: 0 20px 48px rgba(47, 71, 58, 0.12);
}
.toolbar-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.toolbar-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.toolbar-icon--landuse {
  color: #15803d;
}

.toolbar-icon--points {
  color: #c2410c;
}

.toolbar-icon--basemap {
  color: #2563eb;
}

.toolbar-icon--zoom {
  color: #7c3aed;
}

.numeric-scale {
  align-items: center;
  background: rgba(255, 250, 242, var(--map-control-opacity, 0.95));
  border: 1px solid rgba(94, 74, 54, 0.12);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(58, 42, 24, 0.14);
  color: #173128;
  display: inline-flex;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
}

.numeric-scale__label {
  white-space: nowrap;
}

.numeric-scale__input {
  background: rgba(255, 255, 255, calc(var(--map-control-opacity, 0.95) * 0.9));
  border: 1px solid rgba(94, 74, 54, 0.14);
  border-radius: 8px;
  color: #173128;
  flex: 0 0 72px;
  font: inherit;
  font-weight: 700;
  outline: none;
  padding: 4px 8px;
  text-align: right;
  width: 72px;
}

.numeric-scale__input:focus {
  border-color: rgba(22, 163, 74, 0.45);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.leaflet-control-scale {
  margin-bottom: 18px !important;
}

.leaflet-control-scale-line {
  background: rgba(255, 250, 242, var(--map-control-opacity, 0.95));
  border-color: rgba(94, 74, 54, 0.35) !important;
  color: #173128;
}

.leaflet-control-zoom {
  border: 1px solid rgba(94, 74, 54, 0.12) !important;
  border-radius: 12px !important;
  box-shadow: 0 24px 60px rgba(58, 42, 24, 0.14);
  overflow: hidden;
}

.leaflet-control-zoom a {
  background: rgba(255, 250, 242, var(--map-control-opacity, 0.95)) !important;
  border-bottom: 1px solid rgba(94, 74, 54, 0.12) !important;
  color: #173128 !important;
}

.leaflet-control-zoom a:hover {
  background: rgba(240, 247, 242, var(--map-control-opacity, 0.95)) !important;
}

.leaflet-control-zoom a.leaflet-disabled {
  background: rgba(255, 250, 242, calc(var(--map-control-opacity, 0.95) * 0.85)) !important;
  color: rgba(23, 49, 40, 0.42) !important;
}

.map-zoom-slider {
  align-items: center;
  background: rgba(255, 250, 242, var(--map-control-opacity, 0.95));
  border-top: 1px solid rgba(94, 74, 54, 0.12);
  display: flex;
  height: 112px;
  justify-content: center;
  padding: 8px 0;
  width: 30px;
}

.map-zoom-slider__input {
  accent-color: #16a34a;
  height: 84px;
  margin: 0;
  opacity: var(--map-control-opacity, 0.95);
  transform: rotate(-90deg);
  width: 84px;
}

.block-label {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #111111;
  font-size: 11px;
  font-weight: 700;
  padding: 0;
  text-align: center;
  text-shadow: -0.8px -0.8px 0 #ffffff, 0.8px -0.8px 0 #ffffff, -0.8px 0.8px 0 #ffffff, 0.8px 0.8px 0 #ffffff, 0 0 2px rgba(255, 255, 255, 0.9);
}

.block-label span,
.block-label small {
  display: block;
  line-height: 1.15;
}

.block-label small {
  color: #111111;
  font-size: 10px;
  font-weight: 600;
}

.leaflet-tooltip.block-label {
  background: transparent;
  border: none;
  box-shadow: none;
}

.leaflet-tooltip.block-label::before {
  display: none;
}

.division-legend {
  --legend-opacity: 0.95;
  background: rgba(255, 250, 242, var(--legend-opacity));
  border: 1px solid rgba(94, 74, 54, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(58, 42, 24, 0.12);
  padding: 8px 9px;
  min-width: 94px;
  width: 180px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.division-legend__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.division-legend__title {
  color: #7a6757;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.division-legend__toggle {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #6a5a49;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.division-legend__body {
  margin-top: 8px;
  transition: max-height 220ms ease, opacity 180ms ease, margin-top 180ms ease;
  max-height: 420px;
  opacity: 1;
}

.division-legend__section-title {
  color: #7a6757;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.division-legend--collapsed {
  transform: translateY(24px);
}

.division-legend--collapsed .division-legend__body {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
}

.division-legend__item {
  align-items: center;
  display: flex;
  gap: 6px;
  margin-top: 5px;
  font-size: 0.85rem;
}

.division-legend__item span {
  border-radius: 4px;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.division-legend__opacity {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(94, 74, 54, 0.08);
}

.division-legend__opacity-slider {
  width: 100%;
  margin-top: 6px;
}

.division-legend__summary {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(94, 74, 54, 0.12);
  display: grid;
  gap: 6px;
}

.division-legend__summary-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(94, 74, 54, 0.08);
  border-radius: 10px;
  padding: 6px 8px;
}

.division-legend__summary-label {
  color: #7a6757;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.division-legend__summary-value {
  margin-top: 3px;
  color: #173128;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

@media (max-width: 960px) {
  .login-shell {
    width: min(100%, calc(100vw - 24px));
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .login-showcase {
    max-width: none;
    padding: 4px 2px 0;
  }

  .login-showcase h1 {
    gap: 8px;
  }

  .login-card {
    margin: 0 auto;
  }

  .login-card__logo-wrap {
    width: 88px;
    height: 88px;
  }

  .login-card__header .login-logo {
    width: 76px;
    height: 76px;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-hero__stamp {
    min-width: 0;
  }

  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-chart-card,
  .dashboard-chart-card--wide {
    grid-column: auto;
  }

  .shell {
    grid-template-columns: 1fr;
    height: 100vh;
    gap: 12px;
    padding: 12px;
  }

  .sidebar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 260px;
    height: calc(100vh - 24px);
    padding-bottom: 20px;
    box-shadow: 0 24px 60px rgba(33, 94, 63, 0.14);
  }

  .rightbar {
    position: absolute;
    inset: 0 0 0 auto;
    width: 280px;
    height: calc(100vh - 24px);
    box-shadow: 0 24px 60px rgba(33, 94, 63, 0.14);
  }

  .content {
    height: auto;
  }

  .panel {
    height: calc(100vh - 24px);
  }

  .sidebar-toggle,
  .shell.sidebar-collapsed .sidebar-toggle {
    left: 16px;
    top: 12px;
  }

  .rightbar-toggle,
  .shell.rightbar-collapsed .rightbar-toggle {
    right: 16px;
    top: 12px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-form__hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .dashboard-stage {
    padding: 14px;
  }

  .settings-panel--editor {
    width: min(100vw - 16px, 100%);
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
  }

  .layout-editor-shell {
    grid-template-columns: 1fr;
  }

  .layout-editor-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(22, 101, 52, 0.1);
    max-height: 42vh;
  }

  .layout-editor-main {
    padding: 16px;
  }

  .layout-editor-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .layout-editor-help {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .login-page {
    padding: 14px;
  }

  .login-showcase {
    display: none;
  }

  .login-shell {
    width: min(100%, calc(100vw - 12px));
    display: block;
  }

  .login-card {
    padding: 22px 20px 20px;
    border-radius: 22px;
  }

  .login-card__header {
    gap: 12px;
  }

  .login-card__logo-wrap {
    width: 76px;
    height: 76px;
  }

  .login-card__header .login-logo {
    width: 66px;
    height: 66px;
  }

  .login-card__copy h2 {
    font-size: 1.95rem;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-card,
  .dashboard-chart-card {
    border-radius: 20px;
  }

  .dashboard-weather {
    grid-template-columns: 1fr;
  }
}





