:root {
  color-scheme: light;
  --ink: #20232b;
  --muted: #626872;
  --line: #dce0e4;
  --red: #b71e39;
  font:
    15px/1.5 'Segoe UI',
    system-ui,
    sans-serif;
  color: var(--ink);
  background: #f5f6f8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 64px;
  background: #171a23;
  color: #fff;
  border-top: 3px solid #e84454;
  padding: 0 clamp(16px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  font-size: 21px;
  letter-spacing: -0.6px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-sub {
  color: #bec3ce;
  font-weight: 450;
}
.ball {
  width: 23px;
  height: 23px;
  display: inline-block;
  border-radius: 50%;
  border: 2px solid white;
  background: linear-gradient(155deg, #e74450 0 43%, #232733 44% 55%, #fff 56%);
  position: relative;
}
.ball:after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  width: 5px;
  height: 5px;
  background: white;
  border: 2px solid #232733;
  border-radius: 50%;
}
h1,
h2,
h3,
p {
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(25px, 3vw, 35px);
  letter-spacing: -1.3px;
  line-height: 1.15;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 15px;
}
.rule {
  width: 42px;
  height: 5px;
  background: var(--red);
  margin-bottom: 24px;
}
#login {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 20px;
}
#credentials {
  padding: clamp(22px, 4vw, 44px);
  width: min(100%, 440px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 44px #2024310c;
}
#credentials label {
  margin: 16px 0;
}
#credentials button {
  width: 100%;
  margin-top: 8px;
}
#loginError,
#status.error {
  color: #a11730;
}
#loginError:empty {
  display: none;
}
p,
small {
  color: var(--muted);
}
label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #474c57;
  font-size: 13px;
  font-weight: 650;
}
input,
select,
button {
  font: inherit;
}
input,
select {
  border: 1px solid #bac0ca;
  background: white;
  color: var(--ink);
  border-radius: 6px;
  padding: 9px 10px;
  min-width: 0;
}
button {
  border: 1px solid #c8cdd3;
  color: var(--ink);
  background: white;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 630;
  padding: 8px 13px;
  cursor: pointer;
}
button:hover {
  border-color: #737984;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #6a97d8;
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.primary {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
.primary:hover {
  background: #9e1830;
}
#identity {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
#workspace {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}
[hidden] {
  display: none !important;
}
nav {
  padding: 28px 13px;
  background: white;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
nav button {
  border: 0;
  text-align: left;
  padding: 10px 12px;
  color: #505764;
  background: transparent;
}
nav button[aria-current='page'] {
  color: #9a1932;
  background: #f9e9ed;
  box-shadow: inset 3px 0 #bd2944;
}
.content {
  padding: clamp(16px, 3vw, 42px);
  max-width: 1540px;
  width: 100%;
  margin: 0 auto;
}
.top,
footer,
.toolbar,
.tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.top {
  justify-content: space-between;
}
.top h1 {
  margin: 0;
}
#status {
  font-size: 13px;
  min-height: 1.6em;
  margin: 8px 0 18px;
}
.metrics,
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr));
  gap: 12px;
}
.columns {
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}
.card,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px;
  margin-bottom: 14px;
}
.metric {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  font-size: 32px;
  letter-spacing: -1px;
}
.toolbar,
.tabs,
footer {
  margin: 12px 0;
}
.toolbar {
  align-items: flex-end;
}
.tabs button[aria-pressed='true'] {
  background: #292d38;
  color: white;
}
.scroll {
  overflow: auto;
  max-width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  vertical-align: top;
}
th {
  color: #626872;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  font-size: 10px;
}
td {
  overflow-wrap: anywhere;
}
.btnlink {
  background: transparent;
  color: #9d1934;
  padding: 0;
  border: none;
  text-align: left;
}
.chart {
  width: 100%;
  height: 108px;
  display: block;
}
dl {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 2fr;
  gap: 8px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: min(92vw, 540px);
  padding: 26px;
}
dialog::backdrop {
  background: #14162088;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
footer {
  justify-content: flex-end;
}
#view > form {
  max-width: 750px;
}
#view > form label,
.panel > label {
  margin-bottom: 12px;
}
@media (max-width: 760px) {
  #workspace {
    display: block;
  }
  nav {
    flex-direction: row;
    overflow: auto;
    padding: 7px;
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 1px solid var(--line);
  }
  nav button {
    white-space: nowrap;
  }
  header {
    height: auto;
    min-height: 58px;
  }
  .brand-sub {
    display: none;
  }
  .content {
    padding: 15px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card,
  .panel {
    padding: 13px;
  }
  .toolbar > * {
    max-width: 100%;
  }
  input {
    max-width: 100%;
  }
  #identity {
    flex-wrap: wrap;
  }
  .top h1 {
    font-size: 24px;
  }
}
