/* ═══════════════════════════════════════════════════════════════════════════
   Studio Control — Console de Administração
   ═══════════════════════════════════════════════════════════════════════════ */

#sc-console {
  position: fixed;
  top: 28px; /* abaixo do banner */
  right: 0;
  width: 290px;
  height: calc((100vh - 28px) / var(--zoom, 1));
  background: #0D0D0D;
  border-left: 1px solid rgba(255,255,255,.07);
  box-shadow: -12px 0 40px rgba(0,0,0,.4);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  font-family: var(--font, 'Urbanist', sans-serif);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
#sc-console.scc-hidden {
  transform: translateX(100%);
}

/* ── HEADER ─────────────────────────────────────────────────────────────── */
.scc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.scc-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent, #D7FE03);
}
.scc-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.scc-close {
  background: none;
  border: none;
  color: #555;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  transition: color .12s;
}
.scc-close:hover { color: #fff; }

.scc-btn-ghost {
  background: none;
  border: 1px solid rgba(255,255,255,.12);
  color: #777;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all .12s;
}
.scc-btn-ghost:hover { border-color: rgba(255,255,255,.35); color: #ccc; }

/* ── BODY ───────────────────────────────────────────────────────────────── */
.scc-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.scc-body::-webkit-scrollbar { width: 3px; }
.scc-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

.scc-section {
  margin-bottom: 6px;
}
.scc-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 14px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.scc-section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* ── ROWS ───────────────────────────────────────────────────────────────── */
.scc-row {
  margin-bottom: 12px;
}
.scc-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
  font-weight: 500;
  margin-bottom: 6px;
}
.scc-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent, #D7FE03);
  font-variant-numeric: tabular-nums;
}

/* ── COLOR PICKER ───────────────────────────────────────────────────────── */
.scc-color-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  padding: 7px 10px;
  cursor: pointer;
  transition: border-color .12s;
}
.scc-color-wrap:hover { border-color: rgba(255,255,255,.2); }
.scc-color {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  background: none;
  flex-shrink: 0;
}
.scc-color::-webkit-color-swatch-wrapper { padding: 0; }
.scc-color::-webkit-color-swatch { border: none; border-radius: 5px; }
.scc-hex {
  font-size: 12px;
  font-weight: 600;
  color: #bbb;
  font-family: 'Courier New', monospace;
  letter-spacing: .04em;
  flex: 1;
}

/* ── SLIDER ─────────────────────────────────────────────────────────────── */
.scc-slider {
  width: 100%;
  cursor: pointer;
  accent-color: var(--accent, #D7FE03);
  height: 4px;
  border-radius: 2px;
}

/* ── SELECT ─────────────────────────────────────────────────────────────── */
.scc-select {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  padding: 8px 10px;
  color: #ccc;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color .12s;
  -webkit-appearance: none;
}
.scc-select:hover, .scc-select:focus { border-color: rgba(255,255,255,.22); }
.scc-select option { background: #1c1c1c; color: #ccc; }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.scc-footer {
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scc-hint {
  font-size: 10px;
  color: #444;
  text-align: center;
  line-height: 1.5;
}
.scc-hint code {
  color: #666;
  background: rgba(255,255,255,.04);
  padding: 1px 5px;
  border-radius: 4px;
}
.scc-btn-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent, #D7FE03);
  color: #000;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s, transform .15s;
}
.scc-btn-primary:hover { opacity: .85; transform: translateY(-1px); }

/* ── GATILHO OCULTO (footer sidebar) ───────────────────────────────────── */
#sc-console-trigger {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
  opacity: 0;
  z-index: 10;
}
#sc-console-trigger:hover { opacity: .3; }
