* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f5f5ef;
  color: #203f36;
  font:
    15px/1.5 "DM Sans",
    system-ui,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: #275449;
  background: white;
  border: 1px solid #d3dcd4;
  border-radius: 9px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}
button:hover {
  background: #e6eee5;
}
button:disabled {
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #c38124;
  outline-offset: 2px;
}
header {
  background: #fcfcf8;
  border-bottom: 1px solid #d9dfd5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px max(5vw, calc((100vw - 1120px) / 2));
}
.brand,
.profile,
.line,
.top,
h3,
.row,
.metrics > div,
nav {
  display: flex;
  align-items: center;
}
.brand {
  gap: 12px;
  font:
    700 23px Georgia,
    serif;
  letter-spacing: -0.6px;
}
.brand span {
  background: #2c5847;
  color: #fff7d7;
  border-radius: 11px;
  padding: 9px;
  display: grid;
}
.profile {
  gap: 8px;
  font-size: 13px;
}
.shell {
  max-width: 1180px;
  margin: auto;
  padding: 0 30px 60px;
}
nav {
  gap: 8px;
  padding: 15px 0;
  border-bottom: 1px solid #daddd3;
  overflow: auto;
}
nav button,
.link {
  background: transparent;
  border: 0;
}
nav button {
  color: #56695d;
  white-space: nowrap;
}
nav .active,
.sel {
  background: #dfebdf;
  color: #224c38;
}
.top {
  justify-content: space-between;
  gap: 18px;
  margin: 34px 0 24px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #647b63;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Georgia, serif;
  font-weight: 500;
}
h1 {
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -2px;
  line-height: 1.2;
  margin: 5px 0;
}
p,
small {
  color: #59695f;
}
small {
  display: block;
  font-size: 13px;
}
.primary {
  background: #27543f;
  color: white;
  border-color: #27543f;
  padding: 10px 17px;
}
.primary:hover {
  background: #193d2c;
}
.hero {
  background: #254c3d;
  color: #fff9e8;
  padding: 28px 34px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.hero .eyebrow {
  color: #d1e1c6;
}
.hero h2 {
  font-size: 52px;
  line-height: 1.2;
  margin: 4px 0;
}
.hero span {
  display: block;
  color: #e2e8dc;
  font-size: 14px;
}
.hero button {
  margin-top: 16px;
  background: #eff2dc;
  color: #254c3d;
  border: 0;
}
.art {
  display: grid;
  place-items: center;
  background: #537259;
  border: 1px solid #829978;
  color: #d4dfb5;
  border-radius: 50%;
  width: 162px;
  height: 162px;
  margin-right: 5%;
}
.art svg {
  grid-area: 1/1;
}
.art svg + svg {
  transform: translate(34px, -40px);
  background: #537259;
  border-radius: 50%;
}
.metrics,
.columns {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.metrics {
  grid-template-columns: repeat(3, 1fr);
}
.metrics > div,
.card {
  border: 1px solid #dce0d5;
  background: #fffefa;
  border-radius: 16px;
  padding: 22px;
}
.metrics > div {
  gap: 16px;
}
.metrics svg,
.avatar,
.datebox {
  background: #e5eddf;
  color: #426745;
  border-radius: 12px;
  padding: 11px;
  width: 46px;
  height: 46px;
}
.metrics > div:nth-child(2) svg {
  background: #f4e7d1;
  color: #986d35;
}
.metrics b {
  font-size: 25px;
}
.columns {
  grid-template-columns: 1fr 1fr;
}
.card {
  margin-bottom: 14px;
}
.columns .card {
  margin: 0;
}
.card h3,
.modal h3 {
  font-size: 24px;
  letter-spacing: -0.6px;
  gap: 10px;
}
.card h3 svg {
  width: 21px;
}
.empty {
  padding: 27px 12px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 5px;
}
.empty svg {
  margin-bottom: 4px;
  color: #83977d;
}
.link {
  font-size: 13px;
  padding-left: 0;
}
.line {
  justify-content: space-between;
  gap: 8px;
}
.row {
  border-top: 1px solid #e4e7dd;
  gap: 11px;
  padding: 16px 0;
  flex-wrap: wrap;
}
.row:first-of-type {
  margin-top: 13px;
}
.grow {
  flex: 1;
  min-width: 120px;
}
.row b {
  display: block;
}
.row button {
  font-size: 12px;
}
.datebox,
.avatar {
  display: grid;
  place-content: center;
  text-align: center;
}
.datebox {
  font-size: 11px;
  line-height: 1.1;
}
.datebox strong {
  font-size: 20px;
}
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.shade {
  position: fixed;
  inset: 0;
  background: #19332bbb;
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 3;
}
.modal {
  background: #fffefa;
  padding: 24px;
  border-radius: 16px;
  width: min(460px, 100%);
  max-height: 90dvh;
  overflow: auto;
}
.modal form,
.modal label {
  display: grid;
  gap: 5px;
}
.modal form {
  gap: 15px;
  margin-top: 18px;
}
.modal label,
legend {
  font-size: 14px;
  font-weight: 600;
}
input,
select {
  padding: 9px;
  border: 1px solid #b9c7bb;
  border-radius: 7px;
  min-width: 0;
  width: 100%;
  background: white;
  color: #233d31;
}
fieldset {
  margin: 0;
  padding: 12px;
  border: 1px solid #d6ddd4;
  border-radius: 8px;
}
.modal .check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px;
}
.check input {
  width: auto;
}
.evidence img {
  max-width: 100%;
  max-height: 230px;
  display: block;
}
.error {
  background: #fff0e7;
  color: #943c27;
  padding: 10px;
  border-radius: 7px;
}
.top + p {
  margin: 10px 0;
}
@media (max-width: 680px) {
  header {
    padding: 12px 16px;
  }
  .shell {
    padding: 0 15px 32px;
  }
  nav {
    gap: 2px;
    justify-content: space-between;
  }
  nav button {
    font-size: 12px;
    padding: 6px;
    gap: 3px;
    flex-direction: column;
  }
  .top {
    margin: 22px 0 18px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .hero {
    padding: 22px;
  }
  .art {
    width: 84px;
    height: 84px;
    margin: 0;
  }
  .art svg {
    width: 68px;
  }
  .art svg + svg {
    width: 18px;
    transform: translate(20px, -20px);
  }
  .metrics {
    gap: 6px;
  }
  .metrics > div {
    padding: 10px;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .metrics svg {
    width: 30px;
    height: 30px;
    padding: 6px;
  }
  .metrics small {
    font-size: 11px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 17px;
  }
  .filters button {
    font-size: 12px;
  }
  .hero h2 {
    font-size: 40px;
  }
  .brand {
    font-size: 20px;
  }
  .profile {
    font-size: 12px;
  }
}

.filters{flex-wrap:wrap}

.bill-link{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid #dce0d5;border-radius:0;padding:12px 2px}.bill-link b{font-size:16px}.bill-link small{font-weight:400}

.nav-short { display: none; }
.personal-turn { margin-top: 14px; }
.personal-turn strong { display: block; margin-top: 8px; }
@media (max-width: 680px) {
  .shell { padding: 0 14px calc(90px + env(safe-area-inset-bottom)); }
  header { flex-wrap: wrap; gap: 8px; }
  .profile { overflow-wrap: anywhere; }
  nav { position: fixed; z-index: 2; bottom: 0; inset-inline: 0; display: flex;
    background: #fcfcf8; border-top: 1px solid #d3dcd4; padding: 5px 5px calc(5px + env(safe-area-inset-bottom)); }
  nav button { flex: 1; min-width: 0; min-height: 54px; }
  .nav-full { display: none; }
  .nav-short { display: inline; }
  .personal-turn { border-left: 4px solid #537259; }
  .card, .modal, .grow, .hero > div, fieldset, .columns > * { min-width: 0; overflow-wrap: anywhere; }
  .art { flex-shrink: 0; }
  .line { flex-wrap: wrap; }
  .filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filters button, button, .card summary { min-height: 44px; }
  .card summary { padding-block: 9px; cursor: pointer; }
  .filters button, .row button { font-size: 14px; }
  .pay-action { width: 100%; background: #27543f; color: white; }
  .pay-action:hover { background: #193d2c; }
  input, select { max-width: 100%; font-size: 16px; }
  .shade { padding: 8px; }
  .modal { max-width: 100%; max-height: 94dvh; padding: 18px; overscroll-behavior: contain; }
  .card img, .modal img { max-width: 100%; object-fit: contain; }
}

.funds { border-block: 1px solid #dce0d5; margin: 14px 0; padding: 14px 0; }
.funds details { margin-top: 8px; }
.funds summary { cursor: pointer; }
.funds form, .funds label { display: grid; gap: 6px; }
.funds form { max-width: 32rem; gap: 12px; margin: 10px 0; }
.personal-password { display:grid; gap:12px; margin-top:12px; max-width:32rem; }
