:root {
  color: #e6edf3;
  background: #0f1419;
  font-family: "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  user-select: none;
  touch-action: none;
}

#board {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

body.dragging #board {
  cursor: grabbing;
}

#panel {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 2;
  width: min(320px, calc(100vw - 32px));
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(20, 28, 38, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6eb5ff;
}

h1 {
  margin: 6px 0 10px;
  font-size: 1.35rem;
  font-weight: 600;
}

.lead {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #9dacbb;
}

.panel-sub {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b9bab;
}

.project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 96px;
  overflow-y: auto;
  margin-bottom: 8px;
}

.project-tabs button {
  padding: 6px 10px;
  font-size: 12px;
}

.project-tabs button[aria-current="true"] {
  background: #1a5fb4;
  border-color: #3584e4;
}

.project-actions {
  margin-bottom: 12px;
}

.shape-name {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #79b5ff;
}

.stat {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: #c5d4e3;
}

.stat.zoom {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #8b9bab;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

button {
  font: inherit;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #243040;
  color: inherit;
}

button:hover {
  background: #2d3c4f;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button[aria-pressed="true"] {
  background: #1a5fb4;
  border-color: #3584e4;
}

#newShapeBtn {
  background: #1a5fb4;
  border-color: #3584e4;
}

#resetBtn,
#deleteShapeBtn {
  background: transparent;
}

.help {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 13px;
  line-height: 1.5;
  color: #8b9bab;
}

@media (max-width: 520px) {
  #panel {
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: 42vh;
    overflow: auto;
  }

  h1 {
    font-size: 1.15rem;
  }
}