@font-face {
  font-family: LocalSans;
  src: local("Avenir Next"), local("PingFang SC");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  color: #26332b;
  background: #f3f4ef;
  font-family: LocalSans, "Noto Sans CJK SC", sans-serif;
  font-size: 14px;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  transition:
    background 0.18s,
    transform 0.18s;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:hover:not(:disabled) {
  filter: brightness(0.95);
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
.muted,
.fine {
  color: #768078;
}
.fine {
  font-size: 12px;
  line-height: 1.8;
}
.eyebrow {
  font:
    10px "SFMono-Regular",
    Consolas,
    monospace;
  letter-spacing: 2px;
  color: #79877a;
  margin: 0 0 12px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 34px;
  letter-spacing: -1px;
  font-weight: 550;
  margin-bottom: 0;
}
h2 {
  font-size: 20px;
  font-weight: 550;
  margin: 0;
}
h3 {
  font-weight: 550;
}
button {
  border: 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
}
input {
  border: 1px solid #d8ded4;
  background: #fff;
  color: #26332b;
  padding: 12px;
  border-radius: 5px;
  min-width: 0;
}
input:focus {
  border-color: #5e7653;
  outline: 2px solid #dce4d3;
}
button.primary,
.dark {
  background: #334837;
  color: #fff;
  border-radius: 5px;
  padding: 13px 18px;
  white-space: nowrap;
}
.primary span {
  margin-left: 30px;
}
.secondary {
  background: #fff;
  border: 1px solid #d8ded4;
  color: #344535;
  border-radius: 5px;
  padding: 10px 15px;
}
.text-button {
  padding: 0;
  background: none;
  color: #586a59;
  text-align: left;
}
.pill {
  font-size: 11px;
  border: 1px solid #d4dccf;
  padding: 7px 10px;
  border-radius: 30px;
  white-space: nowrap;
}
.mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: #344c38;
  color: #d8e9a9;
  font-size: 27px;
  border-radius: 11px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #eef0e7;
  position: relative;
}
.login-brand {
  position: absolute;
  left: 5vw;
  top: 40px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 23px;
  z-index: 1;
}
.login-brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 5px;
}
.login-art {
  overflow: hidden;
  position: relative;
  background: #e2e7d6;
  min-height: 100vh;
}
.orbit {
  border: 1px solid #bdcaaa;
  border-radius: 50%;
  position: absolute;
  width: 650px;
  height: 650px;
  top: 17%;
  left: -140px;
}
.o2 {
  transform: rotate(-35deg) scaleY(0.4);
}
.planet {
  position: absolute;
  background: #3b503e;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  left: 20%;
  top: 30%;
  box-shadow:
    inset -25px -30px 60px #273b2c,
    inset 35px 20px 60px #67835a;
}
.login-art > span {
  position: absolute;
  left: 5vw;
  bottom: 60px;
  font:
    12px/1.8 Consolas,
    monospace;
  letter-spacing: 3px;
}
.login-content {
  max-width: 440px;
  width: 100%;
  padding: 40px;
  align-self: center;
  justify-self: center;
}
.login-content h1 {
  font-size: 46px;
  line-height: 1.45;
  margin-bottom: 25px;
}
.login-content .muted {
  line-height: 1.8;
  margin-bottom: 30px;
}
.login-content form {
  display: grid;
  gap: 18px;
}
.login-content .primary {
  width: 100%;
  margin: 8px 0 15px;
  text-align: left;
}
aside {
  width: 224px;
  height: 100vh;
  position: fixed;
  display: flex;
  flex-direction: column;
  padding: 32px 20px;
  background: #e9ede2;
  border-right: 1px solid #dbe1d3;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 24px;
  gap: 10px;
  position: relative;
}
.brand-sub {
  font:
    9px Consolas,
    monospace;
  letter-spacing: 1px;
  position: absolute;
  left: 53px;
  top: 31px;
}
.sidebar-caption {
  font-size: 10px;
  letter-spacing: 1px;
  color: #87907f;
  margin: 64px 12px 20px;
}
.nav {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: none;
  color: #6c7767;
  padding: 14px 12px;
  margin-bottom: 7px;
  border-radius: 5px;
}
.nav > span:first-child {
  flex: 1;
}
.nav > span:last-child {
  font:
    10px Consolas,
    monospace;
  opacity: 0.6;
}
.nav.active {
  background: #344c38;
  color: #f5f7ee;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 18px 12px 0;
  border-top: 1px solid #d2daca;
  font-size: 12px;
}
.sidebar-bottom p {
  font:
    10px Consolas,
    monospace;
  color: #8b9385;
  margin: 13px 0 25px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #6b8552;
  border-radius: 50%;
  margin-right: 7px;
}
main {
  margin-left: 224px;
  padding: 40px 48px 20px;
  max-width: 1800px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 38px;
}
.header-meta {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 10px;
  color: #7a8377;
  font-size: 10px;
}
.intro-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  gap: 20px;
}
.intro-row p {
  margin: 0;
  color: #75806f;
  font-size: 13px;
  line-height: 1.8;
}
.filters {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 26px;
}
.filters input {
  padding: 9px 10px;
}
.filters .fine {
  margin-left: auto;
}
.date-divider {
  padding-bottom: 12px;
  color: #9ba592;
}
.filters .dark {
  padding: 10px 16px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.metric {
  background: #fff;
  border: 1px solid #e0e5da;
  padding: 23px 22px;
  min-height: 157px;
  border-radius: 7px;
}
.metric > span {
  font-size: 12px;
  color: #6e7b68;
}
.metric strong {
  display: block;
  font-size: 37px;
  font-weight: 500;
  letter-spacing: -1.5px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.metric small {
  font-size: 10px;
  color: #85907e;
}
.metric.emphasis {
  background: #e1e9cf;
  border-color: #d2dfb9;
}
.panel {
  background: #fff;
  border: 1px solid #e0e5da;
  border-radius: 7px;
  padding: 26px;
  margin-bottom: 25px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.section-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 8px;
}
.legend {
  font-size: 10px;
  color: #839078;
}
.legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #849f67;
  border-radius: 2px;
  margin-right: 7px;
}
#chart {
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ba392;
  font-size: 12px;
}
#chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}
th {
  font-size: 10px;
  color: #8a9481;
  font-weight: 400;
  text-align: right;
  padding: 13px 10px;
  border-bottom: 1px solid #e6eadf;
}
td {
  padding: 17px 10px;
  text-align: right;
  border-bottom: 1px solid #edf0e8;
  font-variant-numeric: tabular-nums;
}
th:first-child,
th:nth-child(2),
td:first-child,
td:nth-child(2) {
  text-align: left;
}
td:first-child {
  font:
    12px Consolas,
    monospace;
}
td small {
  display: block;
  color: #8a9481;
  font-size: 10px;
  margin-top: 5px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
tr:last-child td {
  border: 0;
}
.search input {
  padding: 9px 12px;
  font-size: 12px;
  width: 180px;
}
.empty {
  text-align: center;
  padding: 55px 30px;
  color: #8a9481;
}
.empty > span {
  display: block;
  font-size: 32px;
  color: #9bab8b;
  margin-bottom: 18px;
}
.empty h3 {
  color: #58694c;
  font-size: 17px;
}
.empty p {
  max-width: 430px;
  margin: 0 auto 20px;
  line-height: 1.9;
  font-size: 12px;
}
.notice {
  display: flex;
  gap: 25px;
  border: 1px solid #d6dfcc;
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 28px;
  background: #edf1e4;
  font-size: 12px;
  line-height: 1.7;
}
.notice strong {
  white-space: nowrap;
  font-weight: 500;
}
.notice span {
  color: #7a8671;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.account-card {
  background: #fff;
  border: 1px solid #dfe5d6;
  border-radius: 7px;
  padding: 24px;
  margin-bottom: 6px;
}
.account-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}
.account-header h3 {
  font-size: 18px;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.account-header small {
  color: #87937b;
  font-size: 11px;
}
.account-status {
  font-size: 10px;
  color: #637d4e;
  white-space: nowrap;
}
.account-status.off {
  color: #a08b5c;
}
.quota {
  padding: 13px 0;
  border-bottom: 1px solid #edf0e7;
}
.quota-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.quota-title span {
  overflow-wrap: anywhere;
}
.quota-title b {
  font-weight: 500;
  white-space: nowrap;
}
.quota-track {
  height: 4px;
  background: #edf1e5;
  border-radius: 2px;
  margin: 10px 0;
}
.quota-track div {
  height: 100%;
  background: #91aa70;
  border-radius: 2px;
}
.quota small {
  font-size: 9px;
  color: #8b9780;
  line-height: 1.8;
}
.account-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 18px;
  font-size: 11px;
  flex-wrap: wrap;
}
.account-actions .danger {
  margin-left: auto;
  color: #9b6652;
}
.error-note {
  font-size: 11px;
  color: #a96d4b;
  background: #faf2e9;
  padding: 10px;
  border-radius: 4px;
  margin-top: 12px;
}
.passkey-row {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 22px 0;
  border-bottom: 1px solid #e8ecdf;
}
.passkey-icon {
  font-size: 22px;
  background: #edf1e6;
  border-radius: 10px;
  padding: 10px 15px;
}
.passkey-row div:nth-child(2) {
  flex: 1;
}
.passkey-row p {
  margin: 0 0 7px;
}
.passkey-row small {
  color: #8a9581;
  font-size: 11px;
}
.security-info {
  max-width: 650px;
  margin: 35px 0;
}
.security-info h3 {
  font-size: 16px;
}
.security-info p {
  color: #89957f;
  font-size: 12px;
  line-height: 2;
}
footer {
  display: flex;
  justify-content: space-between;
  margin-top: 45px;
  padding-top: 20px;
  border-top: 1px solid #dce3d3;
  font:
    9px Consolas,
    monospace;
  letter-spacing: 1px;
  color: #94a087;
}
dialog {
  border: 1px solid #d8e0cc;
  border-radius: 10px;
  padding: 30px;
  width: min(560px, 94vw);
  background: #f8faf4;
  color: inherit;
  box-shadow: 0 20px 100px #1a321e30;
}
dialog::backdrop {
  background: #15251970;
  backdrop-filter: blur(4px);
}
dialog form {
  display: grid;
  gap: 18px;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.close-dialog {
  background: none;
  font-size: 25px;
  color: #8d9a80;
  padding: 0 5px;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
#toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  background: #324733;
  color: #fff;
  border-radius: 6px;
  padding: 15px 24px;
  z-index: 10;
  max-width: 90vw;
  box-shadow: 0 5px 20px #20362030;
}
#toast:empty {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 1100px) {
  main {
    padding: 30px 25px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 18px 15px;
  }
  .metric strong {
    font-size: 30px;
  }
  .account-grid {
    grid-template-columns: 1fr;
  }
  aside {
    width: 190px;
  }
  main {
    margin-left: 190px;
  }
}
@media (max-width: 760px) {
  aside {
    position: static;
    width: 100%;
    height: auto;
    padding: 16px 20px;
    border-bottom: 1px solid #d4ddcb;
  }
  .brand {
    font-size: 20px;
  }
  .brand-sub,
  .sidebar-caption,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    gap: 6px;
    margin-top: 15px;
  }
  .nav {
    font-size: 12px;
    padding: 10px;
    margin: 0;
  }
  .nav > span:last-child {
    display: none;
  }
  main {
    margin: 0;
    padding: 25px 16px;
  }
  header {
    margin-bottom: 28px;
  }
  h1 {
    font-size: 28px;
  }
  .header-meta .pill {
    font-size: 9px;
  }
  .intro-row {
    align-items: start;
  }
  .intro-row .primary {
    font-size: 11px;
    padding: 11px;
  }
  .filters {
    flex-wrap: wrap;
    gap: 8px;
  }
  .filters label {
    flex: 1;
  }
  .filters .fine {
    margin: 0;
    width: 100%;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric strong {
    font-size: 31px;
  }
  .metric {
    min-height: 138px;
  }
  .panel {
    padding: 20px 15px;
  }
  .section-heading {
    gap: 10px;
  }
  .search input {
    width: 140px;
  }
  .notice {
    flex-direction: column;
    gap: 7px;
  }
  .legend {
    font-size: 9px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-brand {
    top: 35px;
    left: 30px;
  }
  .login-content {
    padding: 140px 30px 45px;
    max-width: 460px;
  }
  .login-content h1 {
    font-size: 40px;
  }
  footer {
    gap: 20px;
    font-size: 8px;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .view {
    animation: appear 0.35s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(7px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

select,
textarea {
  font: inherit;
  border: 1px solid #d8ded4;
  background: #fff;
  color: #26332b;
  padding: 12px;
  border-radius: 5px;
  min-width: 0;
  width: 100%;
}
textarea {
  min-height: 86px;
  resize: vertical;
  font-size: 11px;
  overflow-wrap: anywhere;
}
select:focus,
textarea:focus {
  outline: 2px solid #dce4d3;
}
.brand {
  font-size: 19px;
}
.brand-sub {
  font-size: 8px;
  left: 51px;
  top: 32px;
  letter-spacing: 2px;
}
.login-brand {
  font-size: 21px;
}
.connect-card {
  display: flex;
  gap: 16px;
  padding: 18px;
  border: 1px solid #dbe5cc;
  background: #eef3e5;
  border-radius: 6px;
}
.connect-card h3 {
  font-size: 15px;
  margin: 0 0 7px;
}
.connect-card p {
  font-size: 11px;
  line-height: 1.8;
  color: #7d8974;
  margin: 0;
}
.provider-icon {
  font:
    24px Georgia,
    serif;
  color: #5e7651;
}
details {
  font-size: 12px;
  border-top: 1px solid #dce4d3;
  padding-top: 15px;
}
summary {
  cursor: pointer;
  color: #65775a;
}
details p {
  margin: 12px 0;
}
details code {
  display: block;
  padding: 10px;
  background: #e9eee1;
  font-size: 10px;
  overflow-wrap: anywhere;
  margin-top: 12px;
}
.manual-fields {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}
.download-link {
  color: #526d3e;
  text-decoration: underline;
}
#oauth-pending {
  border: 1px solid #d7e3c7;
  border-radius: 6px;
  padding: 14px;
}
#oauth-pending .secondary {
  margin-top: 12px;
}

.cost-summary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 40px;
  margin-bottom: 24px;
}
.cost-summary strong {
  font-size: 42px;
  display: block;
  margin: 16px 0;
  font-variant-numeric: tabular-nums;
}
.cost-summary details {
  margin-top: 12px;
}
.cost-summary summary {
  cursor: pointer;
}
.cost-summary a {
  color: var(--ink);
  text-decoration-color: #91a977;
}
.cost-summary .table-scroll {
  max-height: 360px;
}
@media (max-width: 760px) {
  .cost-summary {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cost-summary strong {
    font-size: 32px;
  }
}

.account-grid {
  align-items: start;
}
.quota-overview {
  background: #f5f7f0;
  border-radius: 6px;
  padding: 16px 18px;
  margin: 4px 0 16px;
}
.quota-overview > span {
  font-size: 11px;
  color: #748269;
}
.quota-overview > strong {
  display: block;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.3;
  margin: 8px 0;
  font-variant-numeric: tabular-nums;
}
.quota-overview strong small {
  font-size: 12px;
  color: #748269;
}
.quota-overview p {
  margin: 8px 0 0;
}
.quota-unavailable > strong {
  font-size: 22px;
  color: #7a8373;
}
.quota-details {
  border-top: 1px solid #e8ece2;
  border-bottom: 1px solid #e8ece2;
}
.quota-details > summary {
  cursor: pointer;
  padding: 12px 0;
  font-size: 12px;
  color: #344837;
}
.quota-details > summary > span {
  float: right;
  color: #8b9780;
  font-size: 11px;
}
.quota-model-list {
  max-height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 6px 8px 0;
}
.quota-model {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #f0f2ec;
  font-size: 12px;
}
.quota-model > span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.quota-model small {
  display: block;
  font-size: 10px;
  color: #8b9780;
  margin-top: 5px;
}
.quota-model b {
  font-weight: 500;
  white-space: nowrap;
}
.quota-low {
  color: #aa633e;
}
