:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #21332c;
  background: #f5f6f1;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 13px;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
input,
select {
  padding: 11px 12px;
  border: 1px solid #d4dcd0;
  border-radius: 7px;
  background: #fff;
  color: #24332a;
  min-width: 0;
  max-width: 100%;
}
input:focus,
select:focus {
  outline: 2px solid #a9cb7a;
  outline-offset: 2px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #a9cb7a;
  outline-offset: 3px;
}
.hidden {
  display: none !important;
}
.brand {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1.4px;
  text-decoration: none;
}
.brand span {
  color: #a4cd74;
  font-size: 24px;
  margin-left: 6px;
}
.console {
  display: flex;
  min-height: 100vh;
}
.console > aside {
  width: 230px;
  flex-shrink: 0;
  background: #182e27;
  color: #e5eddf;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.side-label {
  font-size: 9px;
  letter-spacing: 0.13em;
  color: #8baf97;
  margin: 36px 6px 16px;
}
nav {
  display: grid;
  gap: 6px;
}
nav button {
  border: 0;
  text-align: left;
  background: none;
  color: #b9ccbd;
  border-radius: 8px;
  padding: 13px 12px;
  font-size: 16px;
}
nav button span {
  font-size: 12px;
  margin-left: 10px;
}
nav button.active {
  background: #344e3e;
  color: #d5f5af;
}
nav button:hover {
  background: #294236;
}
.side-bottom {
  margin-top: auto;
  padding: 25px 6px 0;
  font-size: 11px;
}
.side-bottom a {
  color: #c6ed9c;
  text-decoration: none;
}
.side-bottom p {
  color: #90aa98;
  overflow-wrap: anywhere;
  margin-top: 25px;
}
.side-bottom button {
  border: 0;
  background: none;
  color: #dce9d7;
  padding: 0;
}
.side-bottom small {
  display: block;
  color: #829d8a;
  margin-top: 35px;
}
.side-bottom strong {
  color: #c3d5c5;
}
main {
  flex: 1;
  min-width: 0;
  padding: 36px 42px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.eyebrow {
  font-size: 9px;
  color: #78916e;
  font-weight: 750;
  letter-spacing: 0.16em;
  margin: 0 0 9px;
}
h1 {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 0;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
  margin: 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.admin-badge {
  font-size: 10px;
  color: #62735a;
}
.primary,
.secondary,
.danger,
.icon {
  border-radius: 7px;
  min-height: 36px;
  padding: 9px 14px;
  font-weight: 650;
  border: 1px solid #d9e0d0;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  gap: 8px;
}
.primary {
  background: #c6ef98;
  border-color: #b9df8c;
  color: #273d24;
}
.secondary {
  background: #fff;
  color: #42583a;
}
.danger {
  background: #fcf0e9;
  color: #9c4938;
  border-color: #eccfc1;
}
.icon {
  background: none;
  border: none;
  font-size: 25px;
  padding: 0 5px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.metric {
  border: 1px solid #dfe5d8;
  border-radius: 10px;
  background: #fffefa;
  padding: 21px;
}
.metric span {
  display: block;
  color: #7d8976;
  font-size: 10px;
}
.metric strong {
  display: block;
  font-weight: 550;
  letter-spacing: -1.5px;
  font-size: 35px;
  margin: 8px 0;
}
.metric small {
  color: #6f8264;
  font-size: 10px;
}
.metric:first-child {
  background: #e7efdc;
  border-color: #d4e1c5;
}
.content {
  border: 1px solid #dde3d6;
  border-radius: 12px;
  background: #fffffc;
  padding: 26px;
  min-height: 430px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.section-head p {
  color: #7d8876;
  font-size: 11px;
  margin: 8px 0 0;
}
.table-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}
#search {
  width: 210px;
  font-size: 11px;
  background: #f7f8f2;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #78896d;
  padding: 12px;
  border-bottom: 1px solid #dce3d5;
  background: #f6f8f1;
  font-weight: 700;
}
td {
  padding: 17px 12px;
  border-bottom: 1px solid #eef0e8;
  font-size: 12px;
}
td .sub {
  font-size: 10px;
  color: #8b9382;
  margin-top: 5px;
}
tbody tr:hover {
  background: #fafbf5;
}
.badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 650;
  padding: 5px 8px;
  border-radius: 5px;
  background: #ecf4df;
  color: #5b713f;
}
.badge.off {
  background: #fae9e2;
  color: #9a5847;
}
.badge.neutral {
  background: #edf0eb;
  color: #6c7a63;
}
.empty {
  padding: 48px;
  text-align: center;
  color: #7c8871;
}
.overview-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.overview-box {
  background: #f6f8f1;
  padding: 23px;
  border: 1px solid #e1e7d8;
  border-radius: 9px;
}
.overview-box h3 {
  font-size: 14px;
  margin: 0 0 20px;
}
.overview-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid #e0e7d8;
}
.overview-row .avatar {
  background: #dbe8c8;
  border-radius: 7px;
  padding: 9px;
  color: #597645;
  font-size: 12px;
}
.overview-row strong {
  font-size: 12px;
}
.overview-row small {
  display: block;
  color: #859177;
  margin-top: 5px;
  font-size: 10px;
}
.overview-row .badge {
  margin-left: auto;
}
.overview-link {
  display: block;
  margin-top: 20px;
  background: none;
  border: none;
  color: #617d46;
  padding: 0;
  font-size: 11px;
}
footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #88967b;
  margin: 27px 0;
}
footer b {
  color: #475a37;
  font-size: 14px;
  margin-left: 3px;
}
.info {
  font-size: 12px;
  background: #fbf5e4;
  border: 1px solid #eee1bc;
  padding: 14px;
  border-radius: 7px;
  margin-bottom: 20px;
}
dialog {
  border: 1px solid #dbe1d3;
  border-radius: 15px;
  width: 620px;
  max-width: calc(100vw - 30px);
  max-height: 90vh;
  padding: 28px;
  color: #253726;
  background: #fffefa;
  box-shadow: 0 30px 100px #0e201c35;
}
dialog::backdrop {
  background: #13241d66;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.stack {
  display: grid;
  gap: 16px;
}
label {
  font-size: 11px;
  font-weight: 600;
  display: grid;
  gap: 7px;
}
.stack p {
  font-size: 12px;
  color: #7e8b74;
}
.inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 8px;
}
.editor-section {
  border-top: 1px solid #dfe5d7;
  padding-top: 22px;
  margin-top: 24px;
}
.editor-section h3 {
  font-size: 13px;
  margin: 0 0 14px;
}
.editor-section p {
  font-size: 11px;
  color: #77856c;
}
.editor-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
  font-size: 12px;
}
.editor-row > span:first-child {
  flex: 1;
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 17px;
}
#editorError,
#authError {
  color: #9e4234;
  font-size: 12px;
  line-height: 1.5;
}
#notice {
  position: fixed;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  padding: 14px 22px;
  background: #253d2b;
  color: #fff;
  border-radius: 9px;
  z-index: 20;
  display: none;
  max-width: 90vw;
}
#notice.show {
  display: block;
}
.auth {
  min-height: 100vh;
  max-width: 560px;
  margin: auto;
  padding: 45px 25px;
}
.auth-card {
  background: #fffefa;
  border: 1px solid #dce3d3;
  border-radius: 15px;
  padding: 40px;
  margin: 40px 0 25px;
}
.auth-card h1 {
  font-size: 40px;
  line-height: 1.1;
}
.auth-card > p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.7;
  color: #78896e;
  margin: 22px 0;
}
.auth-card .primary {
  width: 100%;
  min-height: 43px;
}
.auth small {
  color: #7b8d6d;
}
.auth b {
  font-size: 17px;
  color: #3d5230;
}
@media (max-width: 1100px) {
  main {
    padding: 28px 24px;
  }
  .admin-badge {
    display: none;
  }
  .console > aside {
    width: 190px;
    padding: 25px 14px;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .overview-panels {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .console {
    display: block;
  }
  .console > aside {
    position: static;
    width: 100%;
    height: auto;
    padding: 18px;
  }
  .side-label,
  .side-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow-x: auto;
    margin-top: 15px;
    gap: 4px;
  }
  nav button {
    white-space: nowrap;
    padding: 10px;
  }
  nav button span {
    font-size: 10px;
    margin-left: 4px;
  }
  main {
    padding: 24px 16px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric strong {
    font-size: 27px;
  }
  header {
    align-items: flex-start;
  }
  header h1 {
    font-size: 25px;
  }
  .content {
    padding: 17px;
  }
  .table-tools {
    width: 100%;
    flex-wrap: wrap;
  }
  #search {
    flex: 1;
    min-width: 120px;
  }
  .inline-form {
    grid-template-columns: 1fr;
  }
  .inline-form button {
    width: 100%;
  }
  footer {
    gap: 20px;
  }
  .auth-card {
    padding: 28px;
  }
  .overview-box {
    padding: 16px;
  }
}
