:root {
  color-scheme: dark;
  --bg: #0e151e;
  --panel: #17202c;
  --line: #2a3644;
  --text: #edf2f5;
  --muted: #91a1b4;
  --accent: #64d7c4;
  --accent-bg: #203c3c;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: var(--accent);
  text-decoration: none;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: #23303e;
  color: var(--text);
  padding: 9px 13px;
  border-radius: 7px;
}
button:hover {
  border-color: var(--accent);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--accent);
  color: #0e2324;
  border: 0;
  font-weight: 650;
}
.danger {
  color: #ffb3ad;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101924;
  color: var(--text);
  padding: 11px;
}
textarea {
  min-height: 88px;
  resize: vertical;
}
input[type="checkbox"] {
  width: auto;
}
input[type="file"] {
  padding: 8px;
}
label {
  display: grid;
  gap: 7px;
  color: #b4c3d0;
  font-size: 12px;
}
.field {
  margin: 12px 0;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.fields > .wide {
  grid-column: 1/-1;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 8px 0 12px;
}
h2 {
  font-size: 18px;
  margin: 0 0 14px;
}
h3 {
  font-size: 15px;
  margin: 0 0 10px;
}
p {
  line-height: 1.65;
  color: var(--muted);
  margin: 8px 0;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 11px;
}
.overline {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}
.shell {
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: 100vh;
}
aside {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.brand {
  font-weight: 750;
  font-size: 18px;
  letter-spacing: -0.4px;
}
.brand span {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 8px;
}
nav {
  display: grid;
  gap: 8px;
}
nav button {
  text-align: left;
  background: none;
  border-color: transparent;
  color: var(--muted);
}
nav button.active {
  background: var(--accent-bg);
  color: var(--accent);
}
.account {
  margin-top: auto;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.account button {
  margin-top: 12px;
}
main {
  padding: 44px;
  max-width: 1550px;
  width: 100%;
}
.page-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.panel,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.stack {
  display: grid;
  gap: 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.stat {
  padding: 20px;
  border-left: 2px solid var(--accent);
  background: var(--panel);
}
.stat strong {
  display: block;
  font-size: 25px;
  margin: 8px 0;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.card h3 {
  line-height: 1.5;
}
.badge {
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 20px;
  background: var(--accent-bg);
  color: var(--accent);
  white-space: nowrap;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.empty {
  text-align: center;
  border: 1px dashed var(--line);
  padding: 50px 20px;
  border-radius: 10px;
  color: var(--muted);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 20px;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #0f1720;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: #c6d2df;
  font-size: 12px;
  max-height: 440px;
  overflow: auto;
}
.notice {
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 8px;
  color: var(--muted);
  margin: 14px 0;
}
.error {
  color: #ffc0b8;
}
.auth {
  max-width: 450px;
  margin: 10vh auto;
  padding: 32px;
}
.auth .primary {
  width: 100%;
  margin-top: 18px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th,
td {
  text-align: left;
  padding: 13px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-weight: 500;
}
.score {
  font-size: 26px;
  font-weight: 650;
  color: var(--accent);
}
.meter {
  height: 5px;
  width: 100%;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}
.meter span {
  display: block;
  height: 100%;
  background: var(--accent);
}
ul {
  padding-left: 18px;
  color: #b2c1cf;
  line-height: 1.9;
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 450px;
  padding: 18px;
  background: #203c3c;
  border: 1px solid var(--accent);
  border-radius: 10px;
  z-index: 10;
  white-space: pre-wrap;
}
.trend-line {
  width: 100%;
  height: 100px;
  color: var(--accent);
}
.loading {
  color: var(--muted);
  padding: 40px;
}
dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 850px;
  width: calc(100% - 32px);
  max-height: 90vh;
  padding: 28px;
}
dialog::backdrop {
  background: #0009;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
@media (max-width: 1000px) {
  main {
    padding: 26px;
  }
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .grid,
  .split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  aside {
    position: static;
    height: auto;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .account {
    display: none;
  }
  main {
    padding: 20px;
  }
  .page-top {
    align-items: flex-start;
  }
  h1 {
    font-size: 26px;
  }
  .stats {
    gap: 7px;
  }
  .stat {
    padding: 12px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .fields > .wide {
    grid-column: auto;
  }
}

:root {
  --accent: #f5ba7a;
  --accent-bg: #3b3028;
}
