/* Container + toggle for this project's single ArTuningPanel — the booth's
   own .jabot-panel-stack styling lived in a page this project didn't copy
   (ar-preview-test.html), so these two rules are new; everything below
   (.jabot-debug-panel and down) is ported as-is from the booth's
   src/css/debug-panel.css. */
.ar-debug-toggle {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(20, 16, 34, 0.85);
  color: #fff;
  font: 600 12px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.jabot-panel-stack {
  position: fixed;
  top: 60px;
  right: 16px;
  width: 260px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 14px;
  border-radius: 12px;
  background: rgba(20, 16, 34, 0.92);
  z-index: 19;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* A content section within a .jabot-panel-stack (see ar-preview-test.html)
   — no position/background of its own anymore. Multiple sections stack
   inside one shared scrollable box per side, instead of each panel
   floating as its own fixed box (that was making Pose Presets / Jabot
   Placement stick to the bottom of the viewport independently). */
.jabot-debug-panel {
  font: 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f2f2f2;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #333;
}

.jabot-debug-panel:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.jabot-debug-title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
  color: #00e5ff;
}

.jabot-debug-section {
  margin: 10px 0 4px;
  font-weight: 600;
  opacity: 0.75;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.jabot-debug-row {
  display: grid;
  grid-template-columns: 60px 1fr 44px;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
}

.jabot-debug-row label {
  opacity: 0.85;
}

.jabot-debug-row input[type="range"] {
  width: 100%;
}

.jabot-debug-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}

.jabot-debug-copy {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: none;
  border-radius: 6px;
  background: #00e5ff;
  color: #0a0a0a;
  font-weight: 600;
  cursor: pointer;
}

.jabot-debug-copy:hover {
  background: #33ebff;
}

.jabot-debug-reset {
  width: 100%;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid #444;
  border-radius: 6px;
  background: transparent;
  color: #ccc;
  font-weight: 600;
  cursor: pointer;
}

.jabot-debug-reset:hover {
  background: #2a2a2e;
  color: #fff;
}

.jabot-preset-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 8px;
}

.jabot-preset-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  border-bottom: 1px solid #333;
}

.jabot-preset-name {
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jabot-preset-name:hover {
  color: #00e5ff;
}

.jabot-preset-row button {
  padding: 3px 8px;
  border: 1px solid #444;
  border-radius: 4px;
  background: #2a2a2e;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
}

.jabot-preset-row button:hover {
  background: #3a3a40;
}

.jabot-preset-delete {
  color: #ff6b6b !important;
}

.jabot-preset-empty {
  opacity: 0.6;
  font-style: italic;
  padding: 4px 0;
}

.jabot-preset-add-row {
  display: flex;
  gap: 4px;
  margin: 6px 0;
}

.jabot-preset-add-row input[type="text"] {
  flex: 1;
  min-width: 0;
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 4px 6px;
}

.jabot-preset-add-row select {
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  max-width: 90px;
}

.jabot-preset-status {
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.75;
  word-break: break-word;
}
