/* ═══ DEBUG: wall editor (временный режим, ?debug=1 или F2) ═══ */

.wall-debug {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-rows: auto 1fr;
  background: #1a1d24;
  color: #e8eaed;
}

.wall-debug.hidden {
  display: none;
}

.wall-debug-toolbar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #111318;
  border-bottom: 1px solid #2d3340;
}

.wall-debug-toolbar .debug-title {
  font-weight: 800;
  font-size: 0.95rem;
  margin-right: 8px;
  color: #fbbf24;
}

.wall-debug-toolbar .debug-hint {
  font-size: 0.75rem;
  color: #9aa3b2;
  margin-left: auto;
}

.wall-debug-canvas-wrap {
  position: relative;
  overflow: hidden;
  background: #252932;
}

#debug-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.wall-debug-panel {
  padding: 14px;
  overflow-y: auto;
  background: #151820;
  border-left: 1px solid #2d3340;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wall-debug-panel h3 {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9aa3b2;
}

.debug-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.debug-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  color: #9aa3b2;
}

.debug-fields input {
  padding: 6px 8px;
  border: 1px solid #3d4450;
  border-radius: 6px;
  background: #0f1115;
  color: #fff;
  font-size: 0.85rem;
}

.debug-wall-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 180px;
  overflow-y: auto;
}

.debug-wall-list li {
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  background: #1e222b;
  border: 1px solid transparent;
}

.debug-wall-list li.selected {
  border-color: #fbbf24;
  background: #2a2418;
}

.debug-export {
  width: 100%;
  min-height: 120px;
  padding: 8px;
  border: 1px solid #3d4450;
  border-radius: 8px;
  background: #0f1115;
  color: #a5f3fc;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  resize: vertical;
}

.debug-status {
  font-size: 0.78rem;
  color: #86efac;
  min-height: 1.2em;
}

.debug-status.error {
  color: #fca5a5;
}

.wall-debug .btn-debug {
  padding: 6px 10px;
  border: 1px solid #3d4450;
  border-radius: 6px;
  background: #252932;
  color: #e8eaed;
  font-size: 0.78rem;
  cursor: pointer;
}

.wall-debug .btn-debug:hover {
  background: #323845;
}

.wall-debug .btn-debug.active {
  border-color: #fbbf24;
  color: #fbbf24;
}

.wall-debug .btn-debug-primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.wall-debug .btn-debug-danger {
  background: #7f1d1d;
  border-color: #991b1b;
}
