:root {
  font:
    15px/1.5 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #243042;
  background: #f3f5f8;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  border: 1px solid #d4dbe5;
  border-radius: 8px;
  background: #fff;
  padding: 8px 13px;
  color: #243042;
  cursor: pointer;
  font-weight: 550;
}
button:hover {
  background: #edf2f8;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: #245bdb;
  color: #fff;
  border-color: #245bdb;
}
.primary:hover {
  background: #1749bd;
}
.danger {
  color: #c03131;
  border-color: #efcdcd;
}
.layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}
aside {
  background: #13243d;
  color: #c3d0e2;
  padding: 26px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  font-weight: 750;
  font-size: 18px;
  color: #fff;
  margin: 0 10px 30px;
}
.brand small {
  display: block;
  color: #8095b3;
  font-size: 12px;
  font-weight: 400;
  margin-top: 3px;
}
nav button {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  margin: 4px 0;
  padding: 11px 13px;
}
nav button.active,
nav button:hover {
  background: #263c5b;
  color: white;
}
.side-bottom {
  position: absolute;
  bottom: 22px;
  left: 26px;
  right: 26px;
  font-size: 12px;
  color: #95a8c3;
}
.side-bottom button {
  margin-top: 10px;
  width: 100%;
  background: #263c5b;
  color: #fff;
  border: 0;
}
main {
  padding: 34px 42px;
  max-width: 1500px;
  width: 100%;
  margin: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  gap: 18px;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin: 0 0 5px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.2px;
  margin: 0 0 15px;
}
h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
p {
  margin: 0 0 12px;
}
.muted {
  color: #718096;
  font-size: 13px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.card,
.panel {
  background: #fff;
  border: 1px solid #e0e5ed;
  border-radius: 12px;
  padding: 21px;
  box-shadow: 0 2px 3px #24304203;
}
.card .value {
  font-size: 31px;
  font-weight: 700;
  margin: 6px 0;
}
.card .label {
  font-size: 13px;
  color: #718096;
}
.panel {
  margin-bottom: 20px;
}
#content > .toolbar + .panel {
  margin-top: 20px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  background: #eaf0f8;
  color: #456084;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.badge.good {
  background: #e5f5eb;
  color: #23734c;
}
.badge.bad {
  background: #fdebec;
  color: #ac3239;
}
.badge.warn {
  background: #fff3db;
  color: #946615;
}
.notice {
  padding: 13px 16px;
  border-radius: 8px;
  background: #eaf0ff;
  margin-bottom: 18px;
  font-size: 14px;
}
.notice.warn {
  background: #fff3db;
}
.notice.bad {
  background: #fdebec;
}
.empty {
  padding: 34px 15px;
  color: #8491a4;
  text-align: center;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th {
  text-align: left;
  color: #718096;
  font-weight: 550;
  font-size: 12px;
  border-bottom: 1px solid #e4e9f0;
  padding: 11px 12px;
}
td {
  padding: 13px 12px;
  border-bottom: 1px solid #edf0f5;
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
tr.clickable {
  cursor: pointer;
}
tr.clickable:hover {
  background: #f6f8fc;
}
.mono,
code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.mono {
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #f5f7fa;
  border-radius: 8px;
  padding: 14px;
  max-height: 400px;
  overflow: auto;
}
form {
  display: grid;
  gap: 14px;
}
label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 550;
  color: #506077;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccd5e2;
  border-radius: 8px;
  padding: 9px 11px;
  color: #243042;
  background: #fff;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #5c84e1;
  box-shadow: 0 0 0 3px #245bdb10;
}
textarea {
  min-height: 115px;
  resize: vertical;
}
select[multiple] {
  min-height: 92px;
}
input[type="checkbox"] {
  width: auto;
}
a {
  color: #245bdb;
}
.split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.list {
  display: grid;
  gap: 10px;
}
.list-item {
  padding: 12px;
  border: 1px solid #e0e5ed;
  border-radius: 8px;
}
.login {
  max-width: 440px;
  margin: 10vh auto;
  padding: 30px;
}
.login .brand {
  color: #243042;
  margin: 0 0 25px;
}
.login .brand small {
  color: #718096;
}
.login h1 {
  font-size: 22px;
  margin-bottom: 18px;
}
.qr {
  width: 200px;
  height: 200px;
  display: block;
}
.device-code {
  font:
    700 30px ui-monospace,
    monospace;
  letter-spacing: 3px;
  margin: 16px 0;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #11213a80;
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 20;
}
.modal {
  max-width: 640px;
  max-height: 90vh;
  overflow: auto;
  width: 100%;
  background: white;
  border-radius: 14px;
  padding: 26px;
}
.modal.wide {
  max-width: 950px;
}
#toast {
  position: fixed;
  bottom: 22px;
  right: 24px;
  padding: 12px 19px;
  border-radius: 9px;
  background: #203653;
  color: white;
  display: none;
  z-index: 40;
  max-width: 450px;
  font-size: 13px;
}
.error-text {
  color: #b63838;
  font-size: 13px;
}
.links {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.footer-time {
  font-size: 12px;
  color: #718096;
  margin-top: 15px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.recovery {
  font:
    14px ui-monospace,
    monospace;
  line-height: 2;
  user-select: all;
}
.stale {
  color: #b47b17;
}
@media (max-width: 1000px) {
  main {
    padding: 24px;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .layout {
    grid-template-columns: 190px 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .layout {
    display: block;
  }
  aside {
    height: auto;
    position: relative;
    padding: 16px;
  }
  .brand {
    margin: 0 0 14px;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  nav button {
    width: auto;
    white-space: nowrap;
  }
  .side-bottom {
    position: static;
    display: none;
  }
  main {
    padding: 20px 14px;
  }
  header {
    align-items: flex-start;
  }
  h1 {
    font-size: 23px;
  }
  .cards {
    gap: 10px;
  }
  .card,
  .panel {
    padding: 16px;
  }
}
