:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #dbe8f3;
  background: #070e18;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #294056;
  border-radius: 9px;
  background: #142236;
  color: #e7f2f8;
  padding: 10px 14px;
}
button:hover {
  border-color: #29c9cf;
}
button.primary {
  background: linear-gradient(110deg, #28ddcc, #4caef3);
  color: #071522;
  border: 0;
  font-weight: 700;
}
button.danger {
  color: #ff8585;
}
a {
  color: #36d8cc;
  text-decoration: none;
}
input,
select,
textarea {
  background: #0b1522;
  color: #edf7fc;
  border: 1px solid #284056;
  border-radius: 8px;
  padding: 11px;
  width: 100%;
}
textarea {
  min-height: 180px;
}
label {
  display: block;
  color: #9db2c5;
  font-size: 13px;
  margin: 12px 0 5px;
}
.layout {
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: 100vh;
}
aside {
  border-right: 1px solid #1b3044;
  padding: 24px;
  background: #08111d;
}
.brand {
  font-size: 23px;
  font-weight: 800;
  margin-bottom: 30px;
  color: #ebffff;
}
.brand span {
  color: #35d9d1;
}
nav button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  margin: 6px 0;
  color: #a6bacb;
  padding: 12px;
}
nav button.active {
  background: #10353e;
  color: #53e9d8;
}
main {
  padding: 26px 36px;
  min-width: 0;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 15px;
}
h1 {
  font-size: 28px;
  margin: 0;
}
h2 {
  font-size: 19px;
  margin: 0 0 18px;
}
.muted {
  color: #8ba3b7;
}
.card {
  background: #0b1624;
  border: 1px solid #20384b;
  border-radius: 16px;
  padding: 22px;
  margin: 16px 0;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.stat {
  font-size: 30px;
  font-weight: 750;
  margin: 10px 0;
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}
.table th,
.table td {
  padding: 14px 10px;
  text-align: left;
  border-bottom: 1px solid #203347;
  font-size: 14px;
  vertical-align: top;
}
.table th {
  color: #8faabd;
}
.scroll {
  overflow-x: auto;
}
.pill {
  display: inline-block;
  border-radius: 20px;
  padding: 5px 9px;
  background: #143c3e;
  color: #5ce5c9;
}
.modalback {
  position: fixed;
  inset: 0;
  background: #000a;
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 10;
}
.modal {
  width: min(700px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #0d1928;
  border: 1px solid #345065;
  border-radius: 16px;
  padding: 26px;
}
.modal .actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}
.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.alert {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #173b3d;
  color: #e7fffd;
  border: 1px solid #3ddbc8;
  border-radius: 10px;
  padding: 12px 20px;
  z-index: 30;
}
.error {
  background: #4b2029;
  border-color: #ff7575;
}
.editor {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 210px;
  gap: 16px;
}
.canvas {
  margin: auto;
  background: white;
  color: #1a2732;
  min-height: 360px;
  padding: 25px;
  border-radius: 8px;
}
.canvas[contenteditable] {
  outline: 2px solid #25d7cb;
}
.tabs button {
  margin-right: 8px;
}
.inspector {
  border-left: 1px solid #294056;
  padding-left: 14px;
}
.inspector button {
  width: 100%;
  text-align: left;
  margin: 3px 0;
}
.palette button {
  cursor: grab;
}
.component-tree {
  max-height: 210px;
  overflow: auto;
}
.component-tree button {
  font-size: 12px;
}
.signin {
  max-width: 420px;
  margin: 12vh auto;
}
.chart {
  display: flex;
  align-items: end;
  height: 180px;
  gap: 15px;
}
.bar {
  flex: 1;
  background: linear-gradient(#44dcce, #218eae);
  border-radius: 5px 5px 0 0;
  min-height: 2px;
}
.tiny {
  font-size: 12px;
  color: #8ca6b9;
  word-break: break-all;
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }
  aside {
    position: static;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  nav button {
    width: auto;
    white-space: nowrap;
  }
  .grid,
  .editor {
    grid-template-columns: 1fr;
  }
  main {
    padding: 20px;
  }
  .twocol {
    grid-template-columns: 1fr;
  }
}
