* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0b0d14;
  color: #eeeeee;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}


/* HEADER */

header {
  height: 72px;

  border-bottom:
    1px solid #252a38;

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 0 5%;

  position: sticky;

  top: 0;

  z-index: 10;

  background:
    rgba(11, 13, 20, 0.92);

  backdrop-filter:
    blur(14px);
}


.logo {

  color: white;

  text-decoration: none;

  font-weight: 900;

  letter-spacing: 2px;

}


/* MAIN */

main {

  max-width: 1100px;

  margin: 45px auto;

  padding: 0 22px;

}


.page-title {

  margin-bottom: 30px;

}


h1 {

  font-size: 42px;

  margin: 5px 0;

}


h2 {

  margin-top: 0;

}


.muted {

  color: #8991a4;

}


/* BUTTONS */

.btn {

  display: inline-block;

  border: none;

  border-radius: 10px;

  background: #f0f2ff;

  color: #0b0d14;

  padding: 11px 16px;

  font-weight: 800;

  text-decoration: none;

  cursor: pointer;

  transition: 0.15s;

}


.btn:hover {

  transform: translateY(-1px);

  filter: brightness(1.1);

}


.btn.secondary {

  background: #1c2230;

  color: #eeeeee;

}


.btn.danger {

  background: #49202a;

  color: #ffdce3;

}


.actions {

  display: flex;

  gap: 8px;

  flex-wrap: wrap;

  margin-top: 18px;

}


/* GRID */

.grid {

  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(280px, 1fr)
    );

  gap: 18px;

}


.grid.small {

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(180px, 1fr)
    );

}


/* CARD */

.card,
.panel {

  background: #121622;

  border:
    1px solid #272d3d;

  border-radius: 16px;

  padding: 22px;

  margin-bottom: 18px;

}


.card {

  min-height: 200px;

}


.card-top {

  display: flex;

  justify-content:
    space-between;

  gap: 10px;

}


/* PILL */

.pill {

  display: inline-block;

  background: #1c2233;

  padding: 6px 10px;

  border-radius: 999px;

  font-size: 12px;

  color: #b9c3ff;

}


/* STATS */

.stats {

  display: flex;

  gap: 10px;

  flex-wrap: wrap;

  color: #9da5b8;

  font-size: 13px;

}


/* STAT CARD */

.stat {

  background: #191e2b;

  padding: 15px;

  border-radius: 12px;

}


.stat-header {

  display: flex;

  justify-content:
    space-between;

}


.bar {

  height: 6px;

  background: #292f40;

  border-radius: 10px;

  margin-top: 12px;

  overflow: hidden;

}


.bar i {

  display: block;

  height: 100%;

  background: #bfc6ff;

}


/* KEY VALUE */

.kv {

  display: grid;

  grid-template-columns:
    200px 1fr;

  gap: 12px;

}


.kv b {

  color: #aeb5c6;

}


/* LIST */

.list > div {

  padding: 15px 0;

  border-bottom:
    1px solid #272d3d;

}


.list > div:last-child {

  border-bottom: none;

}


.list p {

  margin: 6px 0 0;

  color: #8991a4;

}


.list-title {

  display: flex;

  align-items: center;

  gap: 10px;

}


/* FORMS */

label {

  display: block;

  margin: 15px 0;

  color: #aeb5c6;

  font-size: 14px;

}


input,
textarea,
select {

  width: 100%;

  margin-top: 7px;

  padding: 12px;

  border-radius: 9px;

  border:
    1px solid #303747;

  background: #0d111b;

  color: #eeeeee;

  font: inherit;

}


textarea {

  resize: vertical;

}


input:focus,
textarea:focus,
select:focus {

  outline: none;

  border-color: #6974aa;

}


/* COLUMNS */

.cols {

  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 15px;

}


/* CHECKBOXES */

.checks {

  display: flex;

  gap: 18px;

  flex-wrap: wrap;

}


.checkbox {

  display: flex;

  align-items: center;

  gap: 8px;

}


.checkbox input {

  width: auto;

  margin: 0;

}


/* EDITOR */

.section-heading {

  display: flex;

  align-items: center;

  justify-content:
    space-between;

  gap: 20px;

}


.stat-editor {

  display: grid;

  grid-template-columns:
    1fr 140px auto;

  gap: 8px;

  margin-bottom: 10px;

}


.stat-editor input {

  margin: 0;

}


.editor-card {

  background: #191e2b;

  border:
    1px solid #2a3040;

  border-radius: 12px;

  padding: 15px;

  margin-bottom: 12px;

}


.editor-card input,
.editor-card textarea {

  margin-bottom: 10px;

}


/* HERO */

.hero {

  padding: 20px 0 25px;

}


/* EMPTY */

.empty {

  grid-column: 1 / -1;

  text-align: center;

  padding: 80px 20px;

  border:
    1px dashed #394155;

  border-radius: 16px;

}


.empty-icon {

  font-size: 50px;

  margin-bottom: 10px;

}


/* SAVE */

.save-bar {

  position: sticky;

  bottom: 20px;

  padding: 15px 0;

}


.danger-zone {

  display: flex;

  gap: 10px;

  margin-top: 20px;

}


.danger-zone form {

  margin: 0;

}


/* NOTES */

.pre {

  white-space: pre-wrap;

}


/* MOBILE */

@media (max-width: 650px) {

  header {

    padding: 0 15px;

  }


  header .logo {

    font-size: 13px;

  }


  main {

    margin-top: 25px;

  }


  h1 {

    font-size: 32px;

  }


  .cols {

    grid-template-columns: 1fr;

  }


  .kv {

    grid-template-columns: 1fr;

  }


  .stat-editor {

    grid-template-columns:
      1fr 100px auto;

  }


  .section-heading {

    align-items: flex-start;

    flex-direction: column;

  }

}