@import url('local.css');
:root {
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  --brand-forest: #073d34;
  --brand-forest-deep: #032d27;
  --brand-lime: #c8f000;
  --brand-lime-soft: #e9f9a8;
  --brand-white: #ffffff;
  --brand-ink: #123a32;
  --brand-muted: #657d74;
  --brand-line: #dce7e1;
  --brand-surface: #f5f8f5;
  --brand-on-primary: #ffffff;
  --brand-on-accent: #123a32;
  color: var(--brand-ink);
  background: var(--brand-surface);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  background: #e7efea;
  color: var(--brand-ink);
  padding: 11px 16px;
  font-weight: 600;
}
button:hover {
  filter: brightness(0.97);
  box-shadow: 0 4px 14px #073d3412;
}
button.primary {
  background: var(--brand-forest);
  color: var(--brand-on-primary);
  box-shadow: inset 0 -2px 0 #032d2738;
}
button.primary:hover {
  background: var(--brand-forest-deep);
}
button.ghost {
  background: transparent;
  border: 1px solid #dce5de;
}
button.danger {
  color: #a02c2c;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccd9d0;
  border-radius: 9px;
  background: #fff;
  color: #233e34;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--brand-lime);
  outline-offset: 2px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0;
}
input[type='checkbox'] {
  width: auto;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 34px;
  letter-spacing: -1.2px;
}
h2 {
  font-size: 22px;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--brand-muted);
  font-size: 13px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  color: #4f806f;
}
.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 116px;
}
.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.auth-intro .brand {
  align-self: center;
  width: min(100%, 630px);
  height: 240px;
}
.layout {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}
aside {
  background:
    radial-gradient(circle at 20% 8%, #c8f0001f 0 2px, transparent 3px),
    linear-gradient(165deg, var(--brand-forest) 0%, var(--brand-forest-deep) 100%);
  color: #e3f0e8;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
aside::after {
  content: '';
  position: absolute;
  width: 270px;
  height: 270px;
  left: -90px;
  bottom: 45px;
  border: 1px solid #c8f00024;
  border-radius: 47% 53% 43% 57% / 55% 42% 58% 45%;
  box-shadow: 0 0 0 28px #c8f0000a, 0 0 0 60px #ffffff08;
  pointer-events: none;
}
.nav {
  display: grid;
  gap: 10px;
  margin-top: 52px;
}
.nav button {
  text-align: left;
  background: transparent;
  color: #c6d9d1;
  position: relative;
  z-index: 1;
}
.nav button.active {
  background: var(--brand-lime);
  color: var(--brand-forest-deep);
  box-shadow: 0 8px 24px #0000001f;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 12px;
  line-height: 1.8;
  color: #b7ccc3;
  position: relative;
  z-index: 1;
}
.campaign-slogan {
  display: block;
  color: var(--brand-white);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.25px;
  text-transform: uppercase;
}
.campaign-slogan em {
  color: var(--brand-lime);
  font-style: normal;
}
.sidebar-bottom button {
  margin-top: 16px;
  background: #18574a;
  color: #fff;
}
.main {
  padding: 30px 42px;
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid #dfe6df;
  margin-bottom: 36px;
  font-size: 13px;
}
.account {
  display: flex;
  gap: 10px;
  align-items: center;
}
.mobile-logout {
  display: none;
}
.avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dfece2;
  color: #35634d;
  font-size: 14px;
  font-weight: 700;
  object-fit: cover;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: relative;
}
.main > .hero,
#featurePage > .hero {
  padding-left: 18px;
}
.main > .hero::before,
#featurePage > .hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  border-radius: 8px;
  background: var(--brand-lime);
}
.hero p {
  color: #748178;
  font-size: 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 24px 0 32px;
}
.stat {
  background: #fff;
  border: 1px solid #e0e8df;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 28px #073d3408;
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 3px;
  background: var(--brand-lime);
}
.stat b {
  display: block;
  font-size: 30px;
  font-weight: 600;
  margin: 15px 0 5px;
}
.stat span {
  font-size: 12px;
  color: #6d8175;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.tabs {
  display: flex;
  gap: 5px;
  padding: 5px;
  background: #e7ece7;
  border-radius: 12px;
}
.tabs button {
  background: transparent;
}
.tabs button.active {
  background: white;
  box-shadow: 0 2px 5px #0001;
  color: var(--brand-forest);
}
.search {
  max-width: 300px;
}
.search-box {
  position: relative;
  margin-left: auto;
  display: flex;
  align-items: center;
  min-width: min(410px, 100%);
}
.search-box > span {
  position: absolute;
  left: 14px;
  z-index: 1;
  color: #567268;
  font-size: 22px;
  pointer-events: none;
}
.search-box .search {
  width: 100%;
  max-width: none;
  padding-left: 42px;
  padding-right: 42px;
}
.search-box > button {
  position: absolute;
  right: 8px;
  padding: 5px 10px;
  background: transparent;
  font-size: 20px;
  color: #567268;
}
.board {
  border: 1px solid #dbe4dc;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.board-title {
  padding: 22px 25px;
  border-bottom: 1px solid #e6ece7;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tree {
  padding: 38px;
  min-height: 360px;
  overflow: auto;
  background-color: #fbfcfa;
  background-image: radial-gradient(#cad8cc 0.8px, transparent 0.8px);
  background-size: 18px 18px;
}
.tree ul {
  list-style: none;
  margin: 0;
  padding-left: 34px;
  border-left: 1px solid #bdd1c3;
}
.tree > ul {
  padding: 0;
  border: 0;
}
.tree li {
  padding: 10px 0 10px 18px;
  position: relative;
}
.tree li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 43px;
  width: 18px;
  border-top: 1px solid #bdd1c3;
}
.tree > ul > li {
  padding-left: 0;
}
.tree > ul > li:before {
  display: none;
}
.node {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 290px;
  text-align: left;
  background: white;
  border: 1px solid #d9e4db;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 3px 10px #153f3007;
}
.node.root {
  border-color: #81b799;
  background: #eff7ef;
}
.node .info {
  flex: 1;
}
.node strong {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}
.node small {
  font-size: 11px;
  color: #7d8e82;
}
.badge {
  font-size: 10px;
  border-radius: 20px;
  background: #e8f3e9;
  padding: 4px 8px;
  color: #46815a;
}
.badge.inactive {
  background: #f6e7df;
  color: #9a5b41;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th {
  text-align: left;
  background: #f8faf7;
  color: #7d8c80;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
td,
th {
  padding: 17px 22px;
  border-bottom: 1px solid #edf1eb;
}
td .account {
  min-width: 160px;
}
tr:last-child td {
  border: 0;
}
.empty {
  padding: 60px;
  text-align: center;
  color: #789080;
}
.footnote {
  font-size: 12px;
  color: #89978c;
  margin-top: 18px;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-intro {
  padding: 60px 12%;
  background:
    radial-gradient(circle at 79% 22%, var(--brand-lime) 0 3px, transparent 4px),
    linear-gradient(148deg, #095144 0%, var(--brand-forest-deep) 68%, #021f1b 100%);
  color: #ecf6ec;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.auth-intro::before,
.auth-intro::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.auth-intro::before {
  width: 520px;
  height: 520px;
  right: -235px;
  bottom: -205px;
  border: 1px solid #c8f00030;
  border-radius: 56% 44% 62% 38% / 47% 61% 39% 53%;
  box-shadow: 0 0 0 45px #c8f0000a, 0 0 0 95px #ffffff08, 0 0 0 150px #c8f00007;
}
.auth-intro::after {
  inset: auto 0 0;
  height: 23%;
  background: linear-gradient(170deg, transparent 0 48%, #0c493d 49% 66%, #062f28 67%);
  opacity: 0.72;
}
.auth-intro h1 {
  font-size: 49px;
  margin: 70px 0 22px;
  line-height: 1.12;
  max-width: 620px;
}
.auth-intro p {
  color: #b8d1c1;
}
.auth-form {
  padding: 45px 12%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-form form {
  max-width: 420px;
  width: 100%;
  margin: auto;
}
.auth-form button {
  width: 100%;
  margin-top: 15px;
}
.error {
  color: #a43f31;
  font-size: 13px;
  line-height: 1.5;
}
.auth-art {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}
.auth-art span {
  border: 1px solid #85a99b;
  border-radius: 12px;
  padding: 18px;
  color: #e4f1eb;
  font-size: 12px;
}
.loading {
  padding: 80px;
  text-align: center;
}
dialog {
  border: 0;
  border-radius: 18px;
  width: 560px;
  max-width: 94vw;
  padding: 30px;
  box-shadow: 0 20px 100px #0003;
  color: #173c34;
}
dialog::backdrop {
  background: #0b2d2580;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.modal-head button {
  padding: 7px 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.full {
  grid-column: 1/-1;
}
.actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}
.profile-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 24px 0;
}
.profile-top .avatar {
  width: 70px;
  height: 70px;
  font-size: 25px;
}
.birthday-layout { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr); gap:28px; align-items:start; }
.birthday-preview { position:relative; width:100%; aspect-ratio:5/3; margin-top:18px; overflow:hidden; border-radius:18px; background:#e8f0ea; cursor:crosshair; }
.birthday-preview.empty { display:grid; place-items:center; cursor:default; color:#607269; }
.birthday-preview img { width:100%; height:100%; object-fit:cover; display:block; }
.birthday-preview span { position:absolute; transform:translate(-50%,-50%); white-space:nowrap; max-width:90%; overflow:hidden; text-overflow:ellipsis; text-shadow:0 2px 8px rgba(0,0,0,.5); pointer-events:none; font-weight:700; }
@media (max-width:900px) { .birthday-layout { grid-template-columns:1fr; } }
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid #eee;
}
.details b {
  display: block;
  font-size: 13px;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.field-card {
  border: 1px solid #dce5dc;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 12px;
}
.field-line {
  display: grid;
  grid-template-columns: 1fr 150px 36px;
  gap: 12px;
  align-items: center;
}
.field-line button {
  padding: 10px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.offline {
  background: #fff0cf;
  color: #87621c;
  padding: 10px;
  text-align: center;
  font-size: 13px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-forest-deep);
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  z-index: 10;
  display: none;
  box-shadow: 0 8px 40px #0002;
}
.install {
  font-size: 12px;
}
a {
  color: #176e57;
}
.form-note {
  background: #f0f6ed;
  border-left: 3px solid var(--brand-lime);
  padding: 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 180px 1fr;
  }
  .main {
    padding: 25px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  aside {
    padding: 25px 15px;
  }
  .brand {
    font-size: 14px;
  }
}
@media (max-width: 700px) {
  .layout {
    display: block;
  }
  aside {
    height: auto;
    position: static;
    padding: 16px;
  }
  .nav {
    display: flex;
    margin-top: 16px;
    overflow: auto;
  }
  .sidebar-bottom {
    display: none;
  }
  .main {
    padding: 20px 16px;
  }
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 25px;
  }
  .mobile-logout {
    display: block;
    grid-column: 1 / -1;
    width: 100%;
    padding: 10px 14px;
    border-color: #cbd9d1;
    background: #edf3ef;
    color: var(--brand-forest);
  }
  .hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  h1 {
    font-size: 28px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .search {
    max-width: none;
  }
  .search-box {
    width: 100%;
    min-width: 0;
  }
  .tree {
    padding: 18px;
  }
  .tree ul {
    padding-left: 18px;
  }
  .node {
    width: 245px;
  }
  .auth {
    display: block;
  }
  .auth-intro {
    padding: 30px;
  }
  .auth-intro .brand {
    height: 150px;
  }
  .auth-intro h1 {
    font-size: 30px;
    margin: 30px 0 15px;
  }
  .auth-art {
    display: none;
  }
  .auth-form {
    padding: 30px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .field-line {
    grid-template-columns: 1fr 100px 32px;
  }
  .account .muted {
    display: none;
  }
  .details {
    gap: 15px;
  }
  dialog {
    padding: 22px;
  }
  .board-title {
    padding: 18px;
  }
}
.municipality-picker{position:relative}.municipality-options{position:absolute;z-index:20;top:100%;left:0;right:0;max-height:16rem;overflow:auto;background:#fff;border:1px solid #cbd5d1;border-radius:10px;box-shadow:0 12px 30px #073d3426}.municipality-options:empty,.municipality-options[hidden]{display:none}.municipality-options button{display:block;width:100%;padding:.7rem .85rem;border:0;border-bottom:1px solid #e8eeeb;border-radius:0;background:#fff;text-align:left;color:#17352f}.municipality-options button:hover,.municipality-options button:focus{background:#eaf6df;color:#073d34}
#clearSearch, #clearCampaignSearch { display: none !important; }
.recovery-link{display:block;width:100%;margin-top:10px;text-align:center;border:0;background:transparent;color:#174b3d}.success{padding:18px;border-radius:12px;background:#edf5ef;color:#174b3d}.success b{font-size:18px}
