:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #17201b;
  background: #f4f7f3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
aside {
  background: #113f32;
  color: #fff;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #fff;
  text-decoration: none;
}
.brand > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #bafa4a;
  color: #153c30;
  font-weight: 900;
}
.brand strong {
  font-size: 18px;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #a8c5ba;
  margin-top: 2px;
}
nav {
  display: grid;
  gap: 8px;
  margin-top: 42px;
}
nav button,
nav a {
  border: 0;
  background: transparent;
  color: #cbe0d8;
  padding: 13px 14px;
  text-align: left;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}
nav .active {
  background: #285f4f;
  color: #fff;
}
.admin-note {
  margin-top: auto;
  padding: 14px;
  background: #0d352a;
  border-radius: 12px;
  color: #9ebdb2;
  font-size: 12px;
  line-height: 1.5;
}
main {
  padding: 32px 38px;
  min-width: 0;
}
header,
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header small,
.dialog-card > small {
  font-size: 10px;
  letter-spacing: 2px;
  color: #60937d;
  font-weight: 900;
}
h1 {
  margin: 4px 0 25px;
  font-size: 30px;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #d8e1dc;
  background: #fff;
  border-radius: 9px;
  padding: 10px 14px;
  font-weight: 800;
}
#refresh,
.adjust-grid button {
  background: #bafa4a;
  border-color: #a9e43e;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.stat,
.panel {
  background: #fff;
  border: 1px solid #dce5df;
  border-radius: 15px;
}
.stat {
  padding: 18px;
}
.stat small {
  color: #728079;
  font-size: 10px;
  letter-spacing: 1px;
}
.stat strong {
  display: block;
  font-size: 25px;
  margin-top: 8px;
}
.panel {
  overflow: hidden;
}
.system-panel {
  margin-bottom: 22px;
}
.system-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 20px 22px;
}
.system-stats .stat {
  background: #f8fbf9;
}
.panel-head {
  padding: 20px 22px;
  border-bottom: 1px solid #e2e8e4;
}
.panel-head h2 {
  margin: 0;
}
.panel-head p {
  margin: 4px 0 0;
  color: #75817b;
  font-size: 13px;
}
.panel-head input {
  width: 280px;
  padding: 11px;
  border: 1px solid #d9e1dc;
  border-radius: 9px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid #edf1ee;
  font-size: 13px;
}
th {
  color: #6f7c75;
  font-size: 10px;
  letter-spacing: 1px;
}
td strong {
  display: block;
}
td small {
  color: #829087;
}
.pill {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e8f5ee;
  color: #26724e;
  font-size: 10px;
  font-weight: 900;
}
.pill.suspended {
  background: #ffe9e7;
  color: #b63f38;
}
.usage {
  min-width: 95px;
}
.usage b {
  font-size: 14px;
}
.bar {
  height: 5px;
  background: #e8eeea;
  border-radius: 9px;
  margin-top: 6px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: #66a688;
}
.empty {
  text-align: center;
  padding: 35px;
  color: #7c8882;
}
dialog {
  border: 0;
  padding: 0;
  border-radius: 18px;
  width: min(760px, 94vw);
  box-shadow: 0 24px 80px #17382c55;
}
.dialog-card {
  padding: 26px;
  position: relative;
}
.close {
  position: absolute;
  right: 18px;
  top: 16px;
  border: 0;
  font-size: 22px;
}
.dialog-card h2 {
  margin: 6px 0;
}
.dialog-card > p {
  margin: 0 0 18px;
  color: #718078;
}
.balances {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.balances div {
  background: #f2f7f3;
  padding: 13px;
  border-radius: 10px;
}
.balances strong {
  display: block;
  font-size: 19px;
}
.adjust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin: 18px 0;
}
.adjust-grid label {
  font-size: 11px;
  font-weight: 800;
}
.adjust-grid input,
.adjust-grid select {
  width: 100%;
  display: block;
  margin-top: 5px;
  padding: 10px;
  border: 1px solid #d8e1dc;
  border-radius: 8px;
}
.dialog-actions {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
}
.password-reset {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #dce5df;
  border-radius: 12px;
  background: #f7faf8;
}
.password-reset h3,
.password-reset p {
  margin: 0;
}
.password-reset p {
  margin-top: 5px;
  color: #718078;
  font-size: 12px;
  line-height: 1.45;
}
#temporaryPasswordResult {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
#temporaryPasswordResult[hidden] {
  display: none;
}
#temporaryPasswordResult label {
  font-size: 11px;
  font-weight: 800;
}
#temporaryPasswordResult input {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 10px;
  border: 1px solid #b8c9bf;
  border-radius: 8px;
  font-family: ui-monospace, monospace;
}
.ledger {
  max-height: 220px;
  overflow: auto;
}
.ledger article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px;
  padding: 9px 0;
  border-bottom: 1px solid #edf1ee;
}
.ledger small {
  color: #7e8a84;
}
#toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #143e32;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: none;
}
@media (max-width: 900px) {
  body {
    grid-template-columns: 1fr;
  }
  aside {
    display: none;
  }
  main {
    padding: 20px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .adjust-grid {
    grid-template-columns: 1fr;
  }
  .balances {
    grid-template-columns: 1fr;
  }
}

.mode-access {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #dce3dd;
  border-radius: 12px;
  background: #f6f9f7;
}
.mode-access h3 {
  margin: 0 0 8px;
}
.mode-access p {
  font-size: 13px;
  line-height: 1.5;
}
.mode-access .adjust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mode-access .adjust-grid button {
  grid-column: 1 / -1;
  justify-self: start;
}
@media (max-width: 620px) {
  .mode-access .adjust-grid {
    grid-template-columns: 1fr;
  }
}
