/* =====================================================================
   studio.css — Estúdio SVG (visualizador da Área de Membros · 12 cenas)
   ===================================================================== */
.sbv {
  border-radius: var(--r-xl);
  border: 1px solid rgba(249, 201, 10, 0.36);
  background: #0e0e14;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65), 0 0 90px rgba(249, 201, 10, 0.08);
  overflow: hidden;
}

.sbv__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: #14141e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sbv__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sbv__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 7px;
  color: var(--ion-yellow);
  background: rgba(249, 201, 10, 0.14);
  box-shadow: inset 0 0 0 1px rgba(249, 201, 10, 0.4);
}

.sbv__title h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
}

.sbv__tag {
  padding: 2px 7px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ion-yellow);
  background: rgba(249, 201, 10, 0.18);
}

.sbv__title p {
  font-size: 0.76rem;
  color: var(--ink-dim);
  margin-top: 2px;
}

.sbv__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.sbv-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sbv-btn svg { color: var(--ion-yellow); flex: none; }
.sbv-btn:hover:not(:disabled) {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(249, 201, 10, 0.55);
}
.sbv-btn:disabled { opacity: 0.5; cursor: progress; }

.sbv-btn--primary {
  font-weight: 700;
  color: #111;
  background: var(--grad-btn);
  box-shadow: 0 0 24px rgba(249, 201, 10, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.sbv-btn--primary svg { color: #111; }
.sbv-btn--primary:hover:not(:disabled) {
  color: #111;
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(249, 201, 10, 0.45);
}
.sbv-btn--primary.is-ok {
  color: #a7f3d0;
  background: #0d2b1c;
  box-shadow: inset 0 0 0 1px rgba(37, 211, 102, 0.55);
}
.sbv-btn--primary.is-ok svg { color: #25d366; }

.sbv-btn--ae {
  color: #c9b8ff;
  font-weight: 700;
  background: rgba(153, 153, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(153, 153, 255, 0.38);
}
.sbv-btn--ae svg { color: #c9b8ff; }
.sbv-btn--ae:hover:not(:disabled) {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(153, 153, 255, 0.85);
}

.sbv-btn--muted {
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.sbv-btn--muted svg { color: currentColor; }

.sbv-btn.is-on {
  color: var(--ion-yellow);
  background: rgba(249, 201, 10, 0.12);
  box-shadow: inset 0 0 0 1px rgba(249, 201, 10, 0.58);
}

.sbv__notice {
  padding: 10px 18px;
  font-size: 0.78rem;
  color: var(--ion-yellow);
  background: rgba(249, 201, 10, 0.08);
  border-bottom: 1px solid rgba(249, 201, 10, 0.22);
}

/* Painel colapsável de Camadas (extrator de elementos por cena) */
.sbv__layers {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #101018;
  display: grid;
  gap: 12px;
}

.sbv__hint { font-size: 0.78rem; color: var(--ink-dim); line-height: 1.5; }

.sbv__scenes { display: flex; flex-wrap: wrap; gap: 6px; }
.sbv-scene {
  min-width: 38px;
  height: 32px;
  padding-inline: 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.sbv-scene:hover { box-shadow: inset 0 0 0 1px rgba(249, 201, 10, 0.5); }
.sbv-scene.is-active {
  color: var(--ion-yellow);
  background: rgba(249, 201, 10, 0.16);
  box-shadow: inset 0 0 0 1px var(--ion-yellow);
}

.sbv__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 4px;
}

.sbv-layer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
}

.sbv-layer__thumb {
  width: 38px;
  height: 38px;
  flex: none;
  object-fit: contain;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.sbv-layer__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-soft);
  text-transform: capitalize;
}

.sbv-layer__dl {
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: color 0.2s ease, box-shadow 0.2s ease;
}
.sbv-layer__dl:hover { color: var(--ion-yellow); box-shadow: inset 0 0 0 1px rgba(249, 201, 10, 0.55); }

.sbv-zip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #111;
  background: var(--grad-btn);
  box-shadow: 0 0 24px rgba(249, 201, 10, 0.26);
}
.sbv-zip[hidden] { display: none; }

/* Palco da prancha completa de 12 cenas (igual à Área de Membros) */
.sbv__board-stage {
  padding: clamp(12px, 2vw, 22px);
  background: #0a0a0f;
  display: grid;
  place-items: center;
}

.sbv__board-wrap {
  display: block;
  width: 100%;
  max-width: 960px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #0c0d12;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: zoom-in;
  transition: box-shadow 0.25s ease, transform 0.35s var(--ease-out-expo);
}
.sbv__board-wrap:hover {
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(249, 201, 10, 0.45);
}

.sbv__board-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Código SVG bruto */
.sbv__code {
  padding: 14px 18px;
  background: #060609;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sbv__code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-dim);
}
.sbv__code-copy { font-size: 0.76rem; font-weight: 600; color: var(--ion-yellow); }
.sbv__code-copy:hover { text-decoration: underline; }
.sbv__code-pre {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: #cbd5e1;
  max-height: 240px;
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: #111118;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: pre-wrap;
  word-break: break-all;
}

/* Modal Tela Cheia (Cena a cena / Prancha) */
.sbv-fs {
  width: min(1240px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: auto;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: rgba(6, 6, 10, 0.96);
  display: none;
  flex-direction: column;
}
.sbv-fs[open] { display: flex; }
.sbv-fs::backdrop {
  background: rgba(2, 2, 6, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.sbv-fs__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(14px, 3vw, 24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.sbv-fs__title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sbv-fs__title h3 {
  font-size: clamp(0.86rem, 1.3vw, 1.02rem);
  font-weight: 700;
  color: #fff;
}
.sbv-fs__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sbv-fs__modes {
  display: inline-flex;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}
.sbv-fs__mode {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-dim);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.sbv-fs__mode.is-active {
  color: #111;
  background: var(--ion-yellow);
}
.sbv-fs__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: clamp(12px, 2.5vw, 24px);
}
.sbv-fs__cenas {
  display: grid;
  gap: 20px;
  max-width: 720px;
  margin-inline: auto;
}
.sbv-fs__cena {
  display: grid;
  gap: 8px;
}
.sbv-fs__cena img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}
.sbv-fs__cena figcaption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.sbv-fs__prancha-wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  gap: 10px;
}
.sbv-fs__prancha-wrap.is-zoomed {
  place-items: start;
}
.sbv-fs__prancha {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 140px);
  width: auto;
  height: auto;
  border-radius: 10px;
  cursor: zoom-in;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75);
}
.sbv-fs__prancha-wrap.is-zoomed .sbv-fs__prancha {
  max-width: none;
  max-height: none;
  width: 180%;
  cursor: zoom-out;
}
.sbv-fs__tip {
  font-size: 0.74rem;
  color: var(--ink-dim);
  text-align: center;
}

@media (max-width: 600px) {
  .sbv-hide-sm { display: none; }
  .sbv__actions { width: 100%; }
  .sbv-fs__prancha-wrap.is-zoomed .sbv-fs__prancha { width: 260%; }
}
