:root {
  --bg: #f5f6f1;
  --ink: #263022;
  --muted: #87907e;
  --line: #e2e7da;
  --lime: #dce98c;
  --dark: #22291e;
  --green: #718846;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    14px/1.65 Inter,
    'Segoe UI',
    'Microsoft YaHei',
    sans-serif;
  background: var(--bg);
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a6ba65;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.8px;
  line-height: 1.5;
  margin-bottom: 9px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
  margin-bottom: 17px;
}
.overline {
  font-size: 10px;
  letter-spacing: 2px;
  color: #8a9974;
  margin-bottom: 10px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 11px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 700;
}
.brand > span {
  width: 41px;
  height: 41px;
  border-radius: 11px;
  background: var(--lime);
  color: var(--dark);
  display: grid;
  place-items: center;
  font-size: 28px;
}
.primary,
.secondary {
  border-radius: 7px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}
.primary {
  background: var(--dark);
  color: #fff;
}
.primary:hover {
  background: #3c472f;
}
.secondary {
  background: #fafcf6;
  color: #657650;
  border-color: #dbe3ce;
}
.secondary:hover {
  background: #eef3e1;
}
.text-button {
  border: 0;
  background: transparent;
  color: #728b43;
  font-size: 12px;
  padding: 5px;
}
.badge {
  display: inline-flex;
  font-size: 10px;
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1.5;
}
.green {
  background: #eaf1dc;
  color: #6b8143;
}
.amber {
  background: #f7efce;
  color: #9b8543;
}
.red {
  background: #f8e5df;
  color: #ad705d;
}
.gray {
  background: #eef0e9;
  color: #8a9580;
}
.login-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-intro {
  padding: 55px 65px;
  background: #e7ecd9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 700px;
}
.login-intro > div {
  margin: 60px 0;
}
.login-intro h1 {
  font-size: 40px;
  line-height: 1.55;
  letter-spacing: -1.2px;
}
.login-intro > div > p:not(.overline) {
  font-size: 15px;
  line-height: 1.9;
  color: #8a9877;
}
.login-badges {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}
.login-badges > span {
  font-size: 11px;
  border: 1px solid #c8d5af;
  padding: 7px 12px;
  border-radius: 20px;
  color: #81915f;
}
.login-intro > small {
  font-size: 10px;
  color: #95a57a;
}
.login-form-area {
  display: grid;
  place-items: center;
  padding: 45px;
}
.login-form-area form {
  width: 100%;
  max-width: 365px;
}
.login-form-area h2 {
  font-size: 25px;
}
.login-form-area .primary {
  width: 100%;
  margin-top: 13px;
  display: flex;
  justify-content: space-between;
}
.login-form-area label {
  margin-top: 24px;
}
.docs-link {
  display: block;
  font-size: 11px;
  color: #8d9b77;
  margin-top: 25px;
}
.error {
  font-size: 12px;
  color: #af725d;
  min-height: 18px;
  margin-top: 15px;
}
#demo-login {
  border: 1px solid #e6e0c9;
  border-radius: 9px;
  padding: 16px;
  background: #faf8ef;
  margin-top: 20px;
}
#demo-login p {
  font-size: 11px;
  color: #9a947c;
  margin: 10px 0;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 225px;
  background: var(--dark);
  color: #d0d8c3;
  padding: 30px 21px;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  font-size: 26px;
  color: #f0f4e8;
  gap: 9px;
  padding: 0 10px;
}
.sidebar .brand > span {
  height: 34px;
  width: 34px;
  font-size: 24px;
  border-radius: 9px;
}
.sidebar-caption {
  font-size: 10px;
  color: #8b977b;
  padding: 0 12px;
  margin: 13px 0 35px;
  letter-spacing: 2px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sidebar nav > button,
.sidebar nav > a {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  color: #9ca88c;
  text-align: left;
  border-radius: 7px;
  padding: 12px;
  font-size: 12px;
}
.sidebar nav > button.active {
  background: #dce98c;
  color: #384328;
  font-weight: 600;
}
.sidebar nav > button:hover:not(.active),
.sidebar nav > a:hover {
  background: #35402c;
  color: #dce6cb;
}
.sidebar nav span {
  font-size: 18px;
  width: 22px;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
}
.free-note {
  border: 1px solid #435038;
  background: #2b3424;
  border-radius: 9px;
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 10px;
  color: #8f9e7c;
}
.free-note i {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #aabf68;
  margin-top: 5px;
}
.free-note strong {
  font-size: 11px;
  font-weight: 400;
  color: #c0cfa6;
}
.sidebar-bottom > button {
  border: 0;
  background: transparent;
  color: #8a9877;
  font-size: 11px;
  margin-top: 15px;
  padding: 10px;
}
.main-shell {
  margin-left: 225px;
}
.topbar {
  height: 77px;
  background: #f9fbf5;
  border-bottom: 1px solid var(--line);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #8a967a;
}
.topbar > div {
  display: flex;
  gap: 13px;
  align-items: center;
}
.topbar > span {
  color: #647451;
}
#page {
  max-width: 1500px;
  margin: auto;
  padding: 35px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading > div > p:last-child {
  font-size: 12px;
  color: #8a967c;
  margin-bottom: 0;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.panel-heading h2 {
  font-size: 15px;
  margin: 0;
}
.panel-heading > span {
  font-size: 10px;
  color: #99a28d;
}
.notice {
  background: #f0f3e5;
  border: 1px solid #dfe7c8;
  border-radius: 8px;
  padding: 13px 17px;
  font-size: 11px;
  color: #869361;
  margin-bottom: 25px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  padding: 22px;
  min-width: 0;
}
.stat > span {
  font-size: 11px;
  color: #8b987d;
}
.stat > strong {
  display: block;
  font-size: 35px;
  line-height: 1.3;
  letter-spacing: -1px;
  margin: 13px 0;
}
.stat > small {
  font-size: 10px;
  color: #9ca78f;
}
.overview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 11px;
}
th {
  text-align: left;
  color: #98a38b;
  font-weight: 400;
  border-bottom: 1px solid var(--line);
  padding: 12px 12px;
  background: #fafbf7;
}
td {
  border-bottom: 1px solid #edf0e7;
  padding: 16px 12px;
  color: #728161;
}
td strong {
  font-weight: 500;
  color: #516341;
}
td small {
  display: block;
  font-size: 9px;
  color: #9ca88d;
  margin-top: 4px;
}
tr:last-child td {
  border-bottom: 0;
}
.next-panel {
  background: #eef2e3;
  border-color: #dce5c8;
}
.next-panel h2 {
  font-size: 25px;
  margin: 13px 0;
  line-height: 1.5;
}
.next-panel > p {
  font-size: 12px;
  color: #92a075;
}
.boundary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #dbe4c6;
  padding: 14px 0;
  font-size: 10px;
  color: #8b9b6d;
}
.boundary > strong {
  font-weight: 500;
  color: #687f46;
}
.next-panel .small {
  font-size: 10px;
  margin: 14px 0 0;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.toolbar > span {
  margin-left: auto;
  font-size: 11px;
  color: #9aa58b;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f6f8f0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 11px;
  color: #99a484;
  margin: 0 !important;
}
.search-box input {
  border: 0 !important;
  background: transparent !important;
  width: 240px;
  margin: 0 !important;
  padding: 8px 0 !important;
  font-size: 11px;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  padding-top: 18px;
}
.pagination span {
  font-size: 10px;
  color: #9ba98b;
}
.pagination .secondary {
  padding: 6px 12px;
  font-size: 10px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
}
.feature-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.feature-icon {
  background: #eff3e3;
  color: #8aa259;
  border-radius: 9px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 23px;
}
.feature-card h2 {
  margin: 21px 0 4px;
  font-size: 18px;
}
.feature-card code {
  font-size: 10px;
  color: #a0ab92;
}
.feature-card > p {
  font-size: 11px;
  color: #8f9d7d;
  min-height: 55px;
  margin: 15px 0;
}
.feature-meta {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 10px;
  color: #9ea88f;
  margin-bottom: 23px;
}
.feature-card > .secondary {
  width: 100%;
  text-align: left;
}
.empty {
  text-align: center;
  color: #a0ac91;
  padding: 35px;
  font-size: 12px;
}
.loading {
  color: #a0ac91;
}
.toast {
  position: fixed;
  right: 30px;
  bottom: 25px;
  padding: 13px 21px;
  background: #eaf1d7;
  border: 1px solid #ccdbb2;
  box-shadow: 0 8px 25px #29321c18;
  border-radius: 8px;
  color: #657e40;
  max-width: 430px;
  z-index: 20;
  font-size: 12px;
}
.toast.failure {
  background: #fae9e2;
  border-color: #e4c9be;
  color: #a2715d;
}
dialog {
  border: 1px solid #dce5cd;
  border-radius: 14px;
  padding: 28px;
  color: var(--ink);
  width: calc(100% - 50px);
  max-width: 900px;
  max-height: 90vh;
  box-shadow: 0 24px 90px #1d291940;
}
dialog::backdrop {
  background: #22311d55;
  backdrop-filter: blur(3px);
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.modal-heading h2 {
  font-size: 20px;
  margin: 0;
}
.icon-button {
  background: #f6f8ed;
  border: 1px solid #e1e8d4;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 21px;
  color: #98a980;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full {
  grid-column: 1/-1;
}
label {
  display: block;
  font-size: 11px;
  color: #859675;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #dce5ce;
  border-radius: 6px;
  background: #fbfcf8;
  padding: 10px 12px;
  font-size: 12px;
  color: #4d633a;
  margin-top: 7px;
}
input[readonly] {
  background: #f0f3e7;
  color: #a1ad90;
}
textarea {
  min-height: 82px;
  resize: vertical;
}
label small {
  display: block;
  color: #a1ab91;
  font-size: 10px;
  margin-top: 7px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check-label input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #8ba75a;
}
.user-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.user-summary strong {
  font-size: 16px;
}
.user-summary p {
  margin: 9px 0;
}
.user-summary small {
  font-size: 11px;
  color: #9aa78b;
}
.quota-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 25px 0;
}
.quota-cards > div {
  padding: 20px;
  border: 1px solid #dfe8ce;
  background: #f4f7eb;
  border-radius: 9px;
}
.quota-cards span {
  font-size: 11px;
  color: #8b9b73;
}
.quota-cards strong {
  display: block;
  font-size: 24px;
  margin: 11px 0;
}
.quota-cards strong small {
  font-size: 12px;
  font-weight: 400;
}
.quota-cards > div > small {
  font-size: 10px;
  color: #96a67e;
}
progress {
  width: 100%;
  height: 5px;
  border: none;
  border-radius: 5px;
  margin-bottom: 10px;
  accent-color: #a4bb6d;
}
progress::-webkit-progress-bar {
  background: #e1e9d0;
  border-radius: 5px;
}
progress::-webkit-progress-value {
  background: #a5bc6d;
  border-radius: 5px;
}
.detail-forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 25px 0 35px;
}
.detail-forms form {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.detail-forms label {
  margin-bottom: 14px;
}
.detail-forms form > small {
  display: block;
  font-size: 10px;
  color: #a2ad92;
  margin-top: 11px;
}
.ledger {
  padding: 13px 0;
  border-bottom: 1px solid #ecf0e3;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.ledger strong {
  font-weight: 500;
  color: #799550;
  margin-left: auto;
}
.ledger small {
  font-size: 10px;
  color: #a1ad90;
}
.settings-form {
  max-width: 950px;
}
.settings-form .panel {
  margin-bottom: 23px;
}
.settings-form .panel > p {
  font-size: 11px;
  margin-bottom: 23px;
}
.save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.save-bar span {
  font-size: 11px;
  color: #a0ac91;
}
pre {
  font-size: 9px;
  margin: 0;
  white-space: pre-wrap;
  max-width: 320px;
  word-break: break-word;
}
code {
  font-size: 10px;
}
.docs-body {
  max-width: 1060px;
  margin: auto;
  padding: 45px 30px;
}
.docs-body .brand {
  margin-bottom: 35px;
}
.docs-body h1 {
  font-size: 32px;
}
.docs-body .panel {
  margin: 22px 0;
}
.docs-body .panel p {
  font-size: 13px;
  color: #849275;
}
.docs-body a {
  color: #78944c;
}
.docs-body pre {
  max-width: none;
  font-size: 12px;
  background: #f5f7ee;
  padding: 18px;
  border-radius: 8px;
}
.docs-table code {
  font-size: 12px;
}
.endpoint {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.endpoint code {
  font-size: 12px;
}
.endpoint p {
  font-size: 12px;
  margin: 5px 0;
}
@media (max-width: 1150px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    padding: 17px;
  }
  .stat strong {
    font-size: 29px;
  }
  #page {
    padding: 26px;
  }
  .sidebar {
    width: 210px;
  }
  .main-shell {
    margin-left: 210px;
  }
}
@media (max-width: 760px) {
  .login-view {
    grid-template-columns: 1fr;
  }
  .login-intro {
    min-height: 280px;
    padding: 25px;
  }
  .login-intro h1 {
    font-size: 26px;
  }
  .login-intro > div {
    margin: 25px 0 0;
  }
  .login-intro > small,
  .login-badges {
    display: none;
  }
  .login-form-area {
    padding: 30px;
  }
  .sidebar {
    position: static;
    width: auto;
    padding: 16px;
  }
  .sidebar .brand {
    font-size: 22px;
  }
  .sidebar-caption,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    margin-top: 15px;
    gap: 6px;
  }
  .sidebar nav > button,
  .sidebar nav > a {
    white-space: nowrap;
    padding: 9px 12px;
  }
  .sidebar nav span {
    display: none;
  }
  .main-shell {
    margin: 0;
  }
  .topbar {
    padding: 0 20px;
    height: 55px;
  }
  #page {
    padding: 22px 16px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search-box {
    flex: 1;
  }
  .search-box input {
    width: 100%;
  }
  .toolbar > span {
    margin: 0;
  }
  .form-grid,
  .detail-forms {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .quota-cards {
    gap: 10px;
  }
  .quota-cards > div {
    padding: 14px;
  }
  .quota-cards strong {
    font-size: 21px;
  }
  .ledger {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .ledger strong {
    margin: 0;
  }
  dialog {
    padding: 20px;
  }
  .topbar > div > span:last-child {
    display: none;
  }
  .user-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .toast {
    left: 18px;
    right: 18px;
    bottom: 20px;
  }
}
