:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #242329;
  background: #faf9fc;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
.hidden {
  display: none !important;
}
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 238px 1fr;
}
aside {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fff;
  border-right: 1px solid #ece9f0;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17px;
  padding: 0 8px 24px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #1478ff;
  color: #fff;
  font-weight: 750;
  font-size: 22px;
  box-shadow: 0 8px 24px #1478ff3b;
}
.brand-mark.small {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 15px;
  box-shadow: none;
}
nav {
  display: grid;
  gap: 5px;
}
nav button,
.logout {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 11px 12px;
  border-radius: 7px;
  color: #6f6a75;
  text-align: left;
  cursor: pointer;
}
nav button:hover,
nav button.active {
  background: #f1eff5;
  color: #27242d;
}
.logout {
  margin-top: auto;
}
main {
  padding: 0 30px 40px;
  min-width: 0;
}
header {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ece9f0;
  margin-bottom: 24px;
}
h1,
h2,
p {
  margin: 0;
}
header h1 {
  font-size: 22px;
  font-weight: 620;
}
header p,
.dialog-head p {
  color: #98939f;
  margin-top: 5px;
  font-size: 13px;
}
.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid #ded9e5;
  background: #fff;
  border-radius: 7px;
  cursor: pointer;
  font-size: 19px;
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat,
.panel {
  background: #fff;
  border: 1px solid #ece9f0;
  border-radius: 9px;
}
.stat {
  padding: 18px;
}
.stat .label {
  color: #8b8690;
  font-size: 12px;
}
.stat .value {
  font-size: 25px;
  font-weight: 650;
  margin-top: 7px;
}
.stat .hint {
  font-size: 12px;
  color: #aaa4af;
  margin-top: 4px;
}
.panel {
  padding: 18px;
}
.panel-head,
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.panel h2 {
  font-size: 16px;
}
.toolbar input {
  width: min(360px, 50vw);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #ded9e5;
  border-radius: 6px;
  padding: 9px 10px;
  background: #fff;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #2481ff;
  box-shadow: 0 0 0 2px #2481ff16;
}
button {
  border: 1px solid #ded9e5;
  background: #fff;
  padding: 9px 14px;
  border-radius: 6px;
  cursor: pointer;
}
button.primary {
  background: #1478ff;
  color: #fff;
  border-color: #1478ff;
}
button.danger {
  color: #e54545;
  border-color: #ffd1d1;
}
.table-wrap {
  padding: 0;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
}
th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #f0edf3;
  vertical-align: middle;
}
th {
  font-size: 12px;
  color: #8d8793;
  font-weight: 500;
  background: #fcfbfd;
}
.muted {
  color: #99939f;
  font-size: 12px;
}
.badge {
  display: inline-block;
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 12px;
}
.badge.good {
  background: #ecfaf1;
  color: #24945a;
}
.badge.off {
  background: #fff0f0;
  color: #d74545;
}
.resource {
  white-space: nowrap;
}
.storage-bars {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.storage-row {
  display: grid;
  grid-template-columns: 220px 1fr 90px;
  gap: 12px;
  align-items: center;
}
.bar {
  height: 8px;
  background: #eeeaf2;
  border-radius: 10px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: #1478ff;
  border-radius: 10px;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}
.plan-card {
  padding: 18px;
}
.plan-card h2 {
  display: flex;
  justify-content: space-between;
}
.plan-limits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
  color: #6d6872;
}
.plan-limits b {
  color: #27242d;
}
.guide {
  margin-top: 16px;
}
.guide ol {
  color: #625d68;
  line-height: 1.8;
}
.guide code {
  display: block;
  padding: 13px;
  background: #24212a;
  color: #e8e4eb;
  border-radius: 7px;
  overflow: auto;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f8f7fb, #eeebf5);
}
.login-card {
  width: min(400px, calc(100vw - 30px));
  background: #fff;
  padding: 32px;
  border: 1px solid #e8e4ec;
  border-radius: 12px;
  box-shadow: 0 22px 60px #50476018;
}
.login-card .brand-mark {
  margin-bottom: 22px;
}
.login-card h1 {
  font-size: 23px;
}
.login-card p {
  color: #8c8691;
  margin: 8px 0 22px;
}
.login-card label,
dialog label {
  display: grid;
  gap: 7px;
  color: #625d68;
  margin-bottom: 14px;
}
.login-card button {
  width: 100%;
}
.error {
  color: #d84343;
  margin-top: 12px;
}
dialog {
  width: min(720px, calc(100vw - 30px));
  border: 0;
  border-radius: 11px;
  padding: 0;
  box-shadow: 0 24px 80px #2f273740;
}
dialog::backdrop {
  background: #29242d55;
}
.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid #eeeaf1;
}
.dialog-head h2 {
  font-size: 18px;
}
.close {
  border: 0;
  font-size: 22px;
  padding: 0;
  color: #888;
  background: transparent;
}
.dialog-head + label,
.dialog-head + .form-grid,
dialog form > label {
  margin-left: 22px;
  margin-right: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  margin-top: 18px;
}
.check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
}
.check input {
  width: auto;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 16px 22px;
  border-top: 1px solid #eeeaf1;
  margin-top: 18px;
}
#toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #28242d;
  color: #fff;
  padding: 11px 15px;
  border-radius: 7px;
  opacity: 0;
  transform: translateY(12px);
  transition: 0.2s;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: none;
}
@media (max-width: 900px) {
  .app {
    grid-template-columns: 70px 1fr;
  }
  aside span {
    display: none;
  }
  .brand {
    padding-left: 5px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .storage-row {
    grid-template-columns: 120px 1fr 75px;
  }
  main {
    padding: 0 16px 30px;
  }
}
@media (max-width: 560px) {
  .stats,
  .form-grid {
    grid-template-columns: 1fr;
  }
  header {
    height: auto;
    padding: 18px 0;
  }
  .storage-row {
    grid-template-columns: 1fr;
  }
  .bar {
    grid-column: 1/-1;
  }
}
progress.bar {
  appearance: none;
  border: 0;
  width: 100%;
}
progress.bar::-webkit-progress-bar {
  background: #eeeaf2;
  border-radius: 10px;
}
progress.bar::-webkit-progress-value,
progress.bar::-moz-progress-bar {
  background: #1478ff;
  border-radius: 10px;
}
