:root {
  color-scheme: dark;
  --bg: #0a111d;
  --panel: #101b2a;
  --line: #223044;
  --muted: #8898ae;
  --text: #edf3fa;
  --accent: #5ee6b5;
  --red: #ff8188;
  --orange: #e4ac5d;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
button {
  border: 0;
  border-radius: 8px;
  padding: 11px 17px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
.primary {
  background: var(--accent);
  color: #08261e;
}
.primary:hover {
  background: #88f1cb;
}
.secondary {
  background: #182537;
  border: 1px solid #304055;
  color: var(--text);
}
.secondary:hover {
  background: #24354a;
}
.text-button {
  background: none;
  color: var(--muted);
  padding: 7px 9px;
}
.text-button:hover {
  color: white;
}
input,
select {
  width: 100%;
  background: #0b1523;
  color: var(--text);
  border: 1px solid #2b3a50;
  border-radius: 7px;
  padding: 11px 12px;
  min-width: 0;
}
input:focus,
select:focus {
  border-color: var(--accent);
}
label {
  display: grid;
  gap: 8px;
  color: #b5c2d3;
  font-size: 12px;
  font-weight: 500;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 31px;
  letter-spacing: -1px;
  line-height: 1.2;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.25px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.error {
  color: var(--red);
  font-size: 13px;
  margin-top: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 2px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #062c23;
  height: 34px;
  width: 34px;
  font-size: 24px;
  letter-spacing: -3px;
  padding-right: 3px;
  border-radius: 9px;
}
aside {
  width: 222px;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--line);
  padding: 31px 20px;
  background: #0c1624;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
aside .brand {
  margin: 0 8px 54px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1px;
  color: #6c7f97;
  margin: 0 12px 13px;
}
.nav-item {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 13px;
  margin: 3px 0;
  color: #9eafc5;
  border-radius: 7px;
}
.nav-item.active {
  background: #162b2b;
  color: #77edc6;
  border: 1px solid #23423e;
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 22px 0 0;
  font-size: 12px;
}
.sidebar-bottom small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2b3750;
  color: #c1d1ec;
  font-weight: bold;
}
.workspace {
  margin-left: 222px;
  padding: 0 40px;
  max-width: 1900px;
}
header {
  height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
header strong {
  font-weight: 500;
  color: #dbe5f2;
}
.separator {
  padding: 0 13px;
  color: #44546a;
}
.header-actions {
  display: flex;
  gap: 12px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 36px 0 31px;
  gap: 16px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.page-heading p {
  color: var(--muted);
  margin-top: 11px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.section-heading p {
  margin-top: 6px;
}
.token-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 28px;
}
.token-card {
  background: linear-gradient(150deg, #142236, #101a29);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
  min-width: 0;
}
.token-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.token-name {
  font-size: 13px;
  letter-spacing: 0.6px;
  font-weight: 700;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: 5px;
}
.dot.stale {
  background: var(--orange);
}
.token-card .number {
  font-size: 29px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 18px 0 4px;
}
.card-bottom {
  margin-top: 17px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}
.positive {
  color: var(--accent);
}
.negative {
  color: var(--red);
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 23px;
  margin-bottom: 25px;
  scroll-margin-top: 20px;
}
.time-zone {
  font-size: 11px;
  color: #94a7be;
  background: #19273b;
  border: 1px solid #2d3d54;
  padding: 5px 10px;
  border-radius: 6px;
}
.filters {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.75fr 0.8fr 0.85fr;
  gap: 14px;
}
.request-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 20px;
}
.request-actions p {
  max-width: 450px;
}
.action-buttons {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.result-heading {
  margin: 35px 0 19px;
}
.result-heading h2 {
  font-size: 22px;
}
.plot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 23px;
}
.plot-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  padding: 20px;
  min-width: 0;
}
.plot-card h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 18px;
}
.plot-card canvas {
  display: block;
  width: 100%;
  height: 240px;
}
.plot-value {
  height: 22px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 10px;
}
.table-scroll {
  overflow: auto;
  width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
  text-align: left;
}
th {
  font-weight: 500;
  color: #8599b2;
  font-size: 10px;
  letter-spacing: 0.25px;
  background: #142133;
}
th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid #223044;
}
td {
  color: #c8d5e5;
}
tbody tr:hover {
  background: #152337;
}
td .text-button {
  font-size: 11px;
  color: var(--accent);
  padding: 1px;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
}
.pagination button {
  padding: 6px 12px;
  font-size: 11px;
}
#section-select {
  width: auto;
  max-width: 65%;
  padding: 7px 12px;
  font-size: 11px;
}
.state {
  display: inline-block;
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 5px;
  background: #1b2c41;
  color: #9fb8da;
}
.state.done {
  background: #173a31;
  color: #70dcb2;
}
.state.failed {
  background: #422932;
  color: #f7a1a7;
}
.state.running {
  background: #443924;
  color: #e4c17c;
}
#empty-history {
  padding: 24px 15px;
}
.password-form {
  display: flex;
  gap: 16px;
  align-items: end;
  margin-top: 20px;
}
.password-form label {
  flex: 1;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 8px 0 25px;
  font-size: 11px;
  color: #677d96;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-card {
  max-width: 530px;
  align-self: center;
  padding: 60px;
  margin: auto;
}
.login-card .brand {
  margin-bottom: 56px;
}
.login-card h1 {
  font-size: 38px;
  line-height: 1.22;
}
.login-card > p {
  margin: 20px 0 30px;
  color: var(--muted);
  line-height: 1.8;
}
.login-card form {
  display: grid;
  gap: 18px;
}
.login-card button {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  margin-top: 6px;
}
.login-art {
  position: relative;
  background:
    radial-gradient(ellipse at 70% 40%, #25493f 0, transparent 60%),
    linear-gradient(30deg, #122231, #0c1726);
  display: flex;
  align-items: flex-end;
  padding: 60px;
  overflow: hidden;
}
.login-art span {
  font-size: 11px;
  letter-spacing: 3px;
  color: #8bb5a8;
}
.art-line {
  position: absolute;
  width: 850px;
  height: 850px;
  border: 1px solid #4c817044;
  border-radius: 50%;
  top: 10%;
  left: -5%;
  box-shadow:
    0 0 0 70px #4c817011,
    0 0 0 140px #4c817011,
    0 0 0 210px #4c817011;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 430px;
  padding: 14px 20px;
  border: 1px solid #385e55;
  border-radius: 9px;
  background: #19362f;
  color: #d5f8e9;
  z-index: 10;
  box-shadow: 0 8px 30px #0004;
}
.token-card {
  cursor: pointer;
}
.token-card:hover {
  border-color: #4d766f;
}
#result-status {
  margin-bottom: 17px;
}
@media (min-width: 1600px) {
  .workspace {
    padding: 0 60px;
  }
  .token-card {
    padding: 23px;
  }
  .token-card .number {
    font-size: 34px;
  }
}
@media (max-width: 1200px) {
  aside {
    width: 190px;
    padding: 25px 13px;
  }
  .workspace {
    margin-left: 190px;
    padding: 0 24px;
  }
  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .token-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .request-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .card-bottom {
    font-size: 10px;
  }
}
@media (max-width: 760px) {
  aside {
    position: static;
    width: 100%;
    padding: 16px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  aside .brand {
    margin: 0 auto 0 0;
    font-size: 14px;
    gap: 8px;
  }
  .brand-mark {
    height: 29px;
    width: 29px;
    font-size: 20px;
  }
  .nav-label,
  .sidebar-bottom,
  .nav-item span {
    display: none;
  }
  .nav-item {
    padding: 6px 10px;
    margin: 0;
  }
  .workspace {
    margin: 0;
    padding: 0 18px;
  }
  header {
    height: 62px;
    font-size: 10px;
  }
  .header-actions {
    gap: 1px;
  }
  .header-actions button {
    font-size: 10px;
    padding: 5px;
  }
  header .separator {
    padding: 0 6px;
  }
  h1 {
    font-size: 26px;
  }
  .page-heading {
    margin-top: 27px;
  }
  .page-heading p {
    font-size: 12px;
    max-width: 250px;
  }
  .page-heading > button {
    font-size: 11px;
    padding: 8px 11px;
  }
  .token-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .token-card:last-child {
    grid-column: 1/-1;
  }
  .token-card .number {
    font-size: 26px;
    margin-top: 13px;
  }
  .panel {
    padding: 17px;
  }
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .filters > label:first-child {
    grid-column: 1/-1;
  }
  .plot-grid {
    grid-template-columns: 1fr;
  }
  .action-buttons {
    gap: 7px;
  }
  .action-buttons button,
  .action-buttons a {
    font-size: 11px;
    padding: 9px 11px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-heading h2 {
    font-size: 15px;
  }
  #updated {
    max-width: 140px;
    text-align: right;
    font-size: 10px;
  }
  .result-heading {
    flex-direction: column;
  }
  .password-form {
    flex-direction: column;
    align-items: stretch;
  }
  .login {
    display: block;
  }
  .login-art {
    display: none;
  }
  .login-card {
    padding: 38px 25px;
  }
  .login-card h1 {
    font-size: 32px;
  }
  .login-card .brand {
    margin-bottom: 45px;
  }
  footer {
    font-size: 10px;
  }
  #toast {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
}

#table-panel .table-scroll {
  max-height: 580px;
}
#data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}
