/* Track editor layout */
.editor-body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-sans);
}

.editor-layout {
  display: flex;
  height: 100vh;
}

.editor-panel {
  width: 300px;
  flex: none;
  overflow-y: auto;
  padding: 16px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.editor-header a.btn {
  text-decoration: none;
}

.editor-title {
  font-size: 18px;
  margin: 0;
}

.editor-stage {
  position: relative;
  flex: 1;
  min-width: 0;
}

#ed-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.ed-check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--color-text-muted);
}

.ed-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(10, 14, 22, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.ed-stats div {
  display: flex;
  flex-direction: column;
}

.ed-stats strong {
  font-family: var(--font-mono);
  font-size: 15px;
}

.ed-status {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0;
  min-height: 2.6em;
}

.ed-status.ok { color: var(--accent-green); }
.ed-status.bad { color: var(--accent-red); }

.ed-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ed-library {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.ed-library li {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 14, 22, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
}

.ed-library li span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ed-library .empty {
  color: var(--color-text-dim);
  justify-content: center;
}

.ed-help {
  font-size: 12px;
  color: var(--color-text-muted);
}

.ed-help ul {
  padding-left: 18px;
  line-height: 1.7;
}

.ed-scale {
  position: absolute;
  right: 16px;
  bottom: 16px;
  font: 12px var(--font-mono);
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: none;
}

@media (max-width: 720px) {
  .editor-layout { flex-direction: column-reverse; }
  .editor-panel { width: auto; max-height: 45vh; }
}

.editor-panel input[type="range"] {
  width: 100%;
  accent-color: var(--accent-cyan);
}
