[hidden] {
  display: none !important;
}
main {
  min-width: 0;
}
form {
  display: grid;
  gap: 14px;
  max-width: 720px;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
input,
select {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  min-width: 0;
}
button {
  cursor: pointer;
}
pre {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 16px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 620px;
}
.panel-body {
  padding: 22px;
}
.panel-body h2 {
  margin-top: 24px;
}
.panel-body h2:first-child {
  margin-top: 0;
}
.query-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.key-row {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}
.key-row label {
  flex: 1;
  min-width: 300px;
}
#message:not(:empty) {
  padding: 12px;
  background: #fff4df;
  border-radius: 6px;
}
.usage-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px;
}
.chart-wrap {
  height: 380px;
  position: relative;
}
canvas {
  width: 100%;
  height: 100%;
}
.nav-item.active {
  background: #e8effe;
  color: #1457c5;
}
@media (max-width: 800px) {
  .usage-heading {
    display: block;
  }
  .query-fields {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: 160px;
  }
  .shell {
    grid-template-columns: 160px minmax(0, 1fr);
  }
}
