* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  background: #080b12;
  color: #eef2f8;
  display: flex;
  flex-direction: column;
}
header {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: #0d1119;
  border-bottom: 1px solid #202735;
}
.brand {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 19px;
  letter-spacing: -0.5px;
}
.brand span:last-child {
  color: #7f8ba0;
}
.mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #211a49;
  color: #846cff;
}
.header-actions {
  display: flex;
  gap: 8px;
}
.btn {
  border: 1px solid #2b3444;
  background: #141a24;
  color: #eef2f8;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 750;
  cursor: pointer;
}
.btn:hover {
  border-color: #64718a;
}
.btn.primary {
  background: #765cff;
  border-color: #846cff;
}
.btn.danger {
  background: #391b26;
  border-color: #663444;
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.full {
  width: 100%;
  margin-top: 8px;
}
main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 310px 1fr;
}
.sidebar {
  padding: 20px;
  background: #0e131d;
  border-right: 1px solid #202735;
  overflow: auto;
}
.sidebar section + section {
  margin-top: 28px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #7f8ba0;
  margin-bottom: 6px;
}
.sidebar h2 {
  font-size: 16px;
  margin: 0 0 7px;
}
.muted {
  font-size: 12px;
  line-height: 1.55;
  color: #7d899d;
}
.sigbox {
  margin-top: 12px;
  border: 1px solid #2b3444;
  border-radius: 12px;
  background: #151a23;
  background-image:
    linear-gradient(45deg, #10151e 25%, transparent 25%),
    linear-gradient(-45deg, #10151e 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #10151e 75%),
    linear-gradient(-45deg, transparent 75%, #10151e 75%);
  background-size: 18px 18px;
  background-position:
    0 0,
    0 9px,
    9px -9px,
    -9px 0;
  overflow: hidden;
}
.sigbox canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  cursor: crosshair;
}
.row {
  display: flex;
  gap: 8px;
}
.row > * {
  flex: 1;
}
.control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #aab5c7;
  font-size: 11px;
  margin-top: 11px;
}
.control input[type="number"] {
  background: #090e16;
  border: 1px solid #293344;
  color: #fff;
  border-radius: 8px;
  padding: 8px;
  width: 100%;
}
.control input[type="range"] {
  width: 100%;
}
.page-info {
  text-align: center;
  margin-top: 9px;
  font-size: 11px;
  color: #748197;
  padding: 8px;
  border: 1px solid #222c3b;
  border-radius: 8px;
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #080b11;
}
.stage {
  position: relative;
  flex: 1;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  background-image: radial-gradient(#1b2230 1px, transparent 1px);
  background-size: 20px 20px;
}
.stage canvas {
  display: block;
  box-shadow: 0 20px 80px #000a;
  max-width: none;
  cursor: grab;
}
.stage canvas:active {
  cursor: grabbing;
}
#empty {
  text-align: center;
  max-width: 450px;
}
.hero-symbol {
  font-size: 52px;
  color: #846cff;
}
#empty h1 {
  font-size: 38px;
  letter-spacing: -1.8px;
  margin: 5px 0;
}
#empty p {
  font-size: 13px;
  color: #7d899d;
  line-height: 1.6;
}
.status {
  height: 34px;
  border-top: 1px solid #202735;
  color: #69768a;
  font-size: 11px;
  padding: 9px 12px;
}
footer {
  height: 28px;
  background: #0b0f16;
  border-top: 1px solid #202735;
  color: #596578;
  text-align: center;
  font-size: 10px;
  padding: 7px;
}
@media (max-width: 800px) {
  main {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .header-actions {
    gap: 4px;
  }
  .btn {
    padding: 9px 10px;
  }
  .brand {
    font-size: 16px;
  }
}
