@font-face { font-family: "Cinzel Decorative"; src: url("/fonts/CinzelDecorative.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Uncial Antiqua"; src: url("/fonts/UncialAntiqua.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("/fonts/Cinzel.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/CormorantGaramond.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Marcellus"; src: url("/fonts/Marcellus.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Orbitron"; src: url("/fonts/Orbitron.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("/fonts/Rajdhani.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("/fonts/ChakraPetch.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("/fonts/Exo2.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Syne"; src: url("/fonts/Syne.ttf") format("truetype"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/fonts/Outfit.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/PlusJakartaSans.ttf") format("truetype"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono.ttf") format("truetype"); font-weight: 400 800; font-display: swap; }

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg-deep: #040712;
  --bg-panel: rgba(10, 17, 38, 0.86);
  --bg-card: rgba(16, 26, 56, 0.72);
  --bg-input: rgba(6, 11, 26, 0.92);
  --border-subtle: rgba(125, 211, 252, 0.16);
  --border-glow: rgba(56, 189, 248, 0.48);
  --cyan: #22d3ee;
  --sky: #38bdf8;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
}

body[data-creator="ymiriswhere"] {
  --bg-deep: #050a12;
  --bg-panel: rgba(10, 19, 32, 0.88);
  --bg-card: rgba(16, 30, 48, 0.78);
  --bg-input: rgba(6, 12, 22, 0.94);
  --border-subtle: rgba(186, 230, 253, 0.2);
  --border-glow: rgba(125, 211, 252, 0.62);
  --cyan: #7dd3fc;
  --sky: #bae6fd;
  background: radial-gradient(circle at 80% 0%, #0d2842 0%, #07111e 48%, #04080f 100%);
}

body[data-creator="raidboss"] {
  --bg-deep: #0a0805;
  --bg-panel: rgba(24, 18, 12, 0.9);
  --bg-card: rgba(36, 27, 18, 0.8);
  --bg-input: rgba(14, 10, 7, 0.94);
  --border-subtle: rgba(251, 191, 36, 0.22);
  --border-glow: rgba(245, 158, 11, 0.65);
  --cyan: #fbbf24;
  --sky: #34d399;
  background: radial-gradient(circle at 50% 0%, #291c0e 0%, #120c07 48%, #080604 100%);
}

body[data-creator="reverenceforgod"] {
  --bg-deep: #060813;
  --bg-panel: rgba(14, 18, 36, 0.9);
  --bg-card: rgba(22, 28, 54, 0.8);
  --bg-input: rgba(8, 11, 24, 0.94);
  --border-subtle: rgba(253, 230, 138, 0.24);
  --border-glow: rgba(251, 191, 36, 0.62);
  --cyan: #fde68a;
  --sky: #7dd3fc;
  background: radial-gradient(circle at 50% 0%, #1d264f 0%, #0b1024 48%, #050711 100%);
}

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 18% 0%, #0d1d42 0%, #060916 48%, #03050c 100%);
  color: var(--text-main);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(5, 8, 20, 0.7); }
::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, 0.28); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(56, 189, 248, 0.5); }

/* Top Creator Switcher Bar */
.creator-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 22px;
  background: rgba(2, 5, 14, 0.95);
  border-bottom: 1px solid rgba(125, 211, 252, 0.14);
}

.creator-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.creator-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11.8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(12, 20, 42, 0.65);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.16s ease;
}

.creator-tab:hover {
  color: #f1f5f9;
  border-color: rgba(125, 211, 252, 0.4);
}

.creator-tab.active-washed {
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.92), rgba(14, 116, 144, 0.75));
  border-color: #22d3ee;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.32);
}

.creator-tab.active-ymir {
  background: linear-gradient(135deg, rgba(12, 53, 84, 0.95), rgba(56, 189, 248, 0.55));
  border-color: #bae6fd;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(125, 211, 252, 0.38);
}

.creator-tab.active-raidboss {
  background: linear-gradient(135deg, rgba(69, 26, 3, 0.95), rgba(16, 185, 129, 0.55));
  border-color: #fbbf24;
  color: #fffbeb;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.42);
}

.creator-tab.active-reverence {
  background: linear-gradient(135deg, rgba(23, 37, 84, 0.95), rgba(217, 119, 6, 0.58));
  border-color: #fde68a;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(253, 230, 138, 0.44);
}

.creator-tab img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 22px;
  background: rgba(4, 8, 20, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.45);
}

.brand-title {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #ffffff 0%, #bae6fd 65%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body[data-creator="ymiriswhere"] .brand-title {
  font-family: "Cinzel Decorative", "Cinzel", Georgia, serif;
  background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 55%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body[data-creator="raidboss"] .brand-title {
  font-family: "Cinzel", Georgia, serif;
  background: linear-gradient(180deg, #fffbeb 0%, #fde68a 55%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.mode-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(8, 14, 32, 0.85);
  border: 1px solid var(--border-subtle);
}

.mode-btn {
  padding: 7px 13px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.mode-btn:hover { color: var(--text-main); }

.mode-btn.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.85), rgba(6, 182, 212, 0.85));
  color: #ffffff;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.35);
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-main);
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn:hover:not(:disabled) {
  border-color: var(--border-glow);
  background: rgba(24, 39, 82, 0.92);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 55%, #06b6d4 100%);
  border-color: rgba(125, 211, 252, 0.65);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.1);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.55);
}

.btn-accent {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.8), rgba(14, 116, 144, 0.85));
  border-color: rgba(192, 132, 252, 0.5);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-danger {
  border-color: rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}
.btn-danger:hover:not(:disabled) {
  background: rgba(127, 29, 29, 0.45);
  border-color: rgba(248, 113, 113, 0.65);
}

.workspace {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 20px;
  max-width: 1720px;
  margin: 0 auto;
  padding: 18px 22px 44px;
  align-items: start;
}

@media (max-width: 1180px) {
  .workspace { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.spotlight-card, .deck-card {
  padding: 18px 20px;
  margin-bottom: 18px;
}

.section-hdr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bae6fd;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spotlight-stage {
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.2s ease;
}

.stage-dark { background: #0e0e10; }
.stage-light { background: #f7f7f8; }
.stage-checker {
  background-color: #0f172a;
  background-image:
    linear-gradient(45deg, #1e293b 25%, transparent 25%),
    linear-gradient(-45deg, #1e293b 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1e293b 75%),
    linear-gradient(-45deg, transparent 75%, #1e293b 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

#spotlightCanvas {
  width: 100%;
  max-width: 580px;
  height: auto;
  cursor: grab;
  touch-action: none;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}
#spotlightCanvas:active {
  cursor: grabbing;
}

.preset-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-bottom: 13px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.chip {
  padding: 4px 10px;
  font-size: 11.5px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background: rgba(15, 23, 42, 0.78);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.14s ease;
}
.chip:hover, .chip.active {
  border-color: var(--cyan);
  color: #ffffff;
  background: rgba(14, 116, 144, 0.42);
}

.twitch-mockup {
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.2s ease;
}

.panel-grid { display: grid; gap: 18px; }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 780px) {
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
}

.panel-tile {
  position: relative;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.panel-tile:hover {
  transform: translateY(-2px);
  background: rgba(56, 189, 248, 0.06);
}
.panel-tile.selected {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.09);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}
.panel-tile canvas { width: 100%; height: auto; display: block; }
.panel-bio { margin-top: 8px; padding: 0 6px; font-size: 12.5px; line-height: 1.45; white-space: pre-line; }

.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 820px) {
  .scene-grid { grid-template-columns: 1fr; }
}
.scene-card {
  position: relative;
  background: rgba(6, 11, 28, 0.8);
  border: 2px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.scene-card:hover {
  border-color: rgba(125, 211, 252, 0.45);
}
.scene-card.selected {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}
.scene-card canvas, .banner-stage canvas {
  cursor: grab;
  touch-action: none;
}
.scene-card canvas:active, .banner-stage canvas:active {
  cursor: grabbing;
}

.framing-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(6, 11, 26, 0.86);
  border: 1px solid rgba(125, 211, 252, 0.18);
}
.framing-ctrl {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
}
.framing-ctrl input[type="range"] {
  width: 105px;
  accent-color: var(--cyan);
}
.framing-val {
  min-width: 46px;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
}
.scene-card canvas, .banner-stage canvas, .cam-stage canvas {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Right Inspector */
.inspector {
  position: sticky;
  top: 72px;
  overflow: hidden;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(6, 10, 24, 0.78);
}

.tab-btn {
  padding: 11px 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab-btn:hover { color: var(--text-main); }
.tab-btn.active {
  color: #67e8f9;
  border-bottom-color: var(--cyan);
  background: rgba(14, 165, 233, 0.1);
}

.inspector-body {
  padding: 14px 16px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

details.acc {
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 10px;
  background: rgba(7, 13, 30, 0.62);
  margin-bottom: 10px;
  overflow: hidden;
}

details.acc > summary {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #bae6fd;
  cursor: pointer;
  user-select: none;
  background: rgba(12, 22, 48, 0.65);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: "▾"; color: #67e8f9; font-size: 13px; }
details.acc:not([open]) > summary::after { content: "▸"; }

.acc-body { padding: 12px 12px 6px; }

.field { margin-bottom: 12px; }
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 5px;
}
.field-val { font-family: "JetBrains Mono", monospace; font-size: 11px; color: #67e8f9; }

.input, .select, .textarea {
  width: 100%;
  padding: 7px 10px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: var(--bg-input);
  color: var(--text-main);
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.2);
}

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

.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

.icon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  max-height: 215px;
  overflow-y: auto;
  padding-right: 3px;
}

.icon-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 3px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(8, 14, 32, 0.78);
  color: #cbd5e1;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.12s ease;
}
.icon-opt span.sym { font-size: 14px; color: #67e8f9; }
.icon-opt:hover { border-color: rgba(56, 189, 248, 0.5); }
.icon-opt.active {
  border-color: var(--cyan);
  background: rgba(14, 116, 144, 0.4);
  color: #ffffff;
}

.theme-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; max-height: 245px; overflow-y: auto; padding-right: 2px; }

.backdrop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 3px;
  margin-bottom: 10px;
}

.bg-thumb {
  position: relative;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(148, 163, 184, 0.22);
  background: #080d1a;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: all 0.14s ease;
}

.bg-thumb:hover {
  border-color: rgba(125, 211, 252, 0.65);
  transform: translateY(-1px);
}

.bg-thumb.active {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.28);
}

.bg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bg-thumb-lbl {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 700;
  color: #f8fafc;
  background: linear-gradient(180deg, rgba(2,6,18,0) 0%, rgba(2,6,18,0.88) 75%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(8, 14, 32, 0.82);
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.theme-btn.active {
  border-color: var(--cyan);
  background: rgba(14, 116, 144, 0.35);
}

.swatch { width: 15px; height: 15px; border-radius: 50%; flex-shrink: 0; border: 1px solid rgba(255, 255, 255, 0.45); }

.color-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }

.color-pick {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--bg-input);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 11.5px;
}
.color-pick input[type="color"] { width: 24px; height: 24px; border: none; padding: 0; background: transparent; cursor: pointer; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 12px;
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 99;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(8, 47, 73, 0.96);
  border: 1px solid var(--cyan);
  color: #f0f9ff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.hidden { display: none !important; }

/* Per-Panel Backdrop Lock & Gallery Target Mode */
.btn-locked {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.38), rgba(14, 116, 144, 0.45)) !important;
  border-color: #fbbf24 !important;
  color: #fef08a !important;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.32);
}

.panel-lock-pill {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(4, 8, 20, 0.78);
  color: #94a3b8;
  cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0.72;
  transition: all 0.14s ease;
}
.panel-tile:hover .panel-lock-pill,
.panel-tile.selected .panel-lock-pill {
  opacity: 1;
}
.panel-lock-pill:hover {
  border-color: var(--cyan);
  color: #ffffff;
  transform: scale(1.04);
}
.panel-lock-pill.locked {
  opacity: 1;
  background: rgba(20, 16, 8, 0.92);
  border-color: #fbbf24;
  color: #fde68a;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

.panel-move-grp {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 6;
  display: inline-flex;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.14s ease;
}
.panel-tile:hover .panel-move-grp,
.panel-tile.selected .panel-move-grp {
  opacity: 1;
}
.panel-move-btn {
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(4, 8, 20, 0.82);
  color: #cbd5e1;
  cursor: pointer;
}
.panel-move-btn:hover:not(:disabled) {
  border-color: var(--cyan);
  color: #ffffff;
}
.panel-move-btn:disabled {
  opacity: 0.32;
  cursor: default;
}

.bg-target-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: rgba(5, 10, 24, 0.85);
  border: 1px solid rgba(125, 211, 252, 0.18);
}
.bg-target-btn {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}
.bg-target-btn:hover {
  color: #f1f5f9;
}
.bg-target-btn.active {
  background: rgba(14, 116, 144, 0.42);
  border-color: var(--cyan);
  color: #ffffff;
}
.bg-target-btn.active-lock {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.45), rgba(30, 58, 138, 0.65));
  border-color: #fbbf24;
  color: #fef08a;
}

.inspector-sec-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: rgba(5, 10, 24, 0.88);
  border: 1px solid rgba(125, 211, 252, 0.22);
}
.inspector-sec-btn {
  padding: 6px 4px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.14s ease;
}
.inspector-sec-btn:hover {
  color: #f1f5f9;
}
.inspector-sec-btn.active {
  background: rgba(14, 116, 144, 0.48);
  border-color: var(--cyan);
  color: #ffffff;
}
.btn-drag-text {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.55), rgba(30, 64, 175, 0.65)) !important;
  border-color: #fbbf24 !important;
  color: #fef08a !important;
}
.cam-stage canvas {
  cursor: grab;
}
.cam-stage canvas:active {
  cursor: grabbing;
}
.canvas-bg-locked {
  cursor: not-allowed !important;
}
.framing-bar button:disabled,
.framing-bar input:disabled,
.framing-bar select:disabled,
input[type="range"]:disabled,
.select:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

/* ---------------- View 5: Loyalty Sub Badges & Channel Points Icon Studio ---------------- */
.chat-preview-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 11px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #18181b;
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 12.5px;
  color: #efeff1;
}
.chat-preview-strip.chat-light {
  background: #f7f7f8;
  color: #0e0e10;
  border-color: rgba(15, 23, 42, 0.18);
}
.chat-msg-sample {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.3;
}
.chat-msg-sample canvas {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  image-rendering: auto;
}
.badge-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) {
  .badge-tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.badge-tier-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  cursor: pointer;
  transition: all 0.16s ease;
}
.badge-tier-card:hover {
  border-color: rgba(103, 232, 249, 0.52);
  transform: translateY(-1px);
}
.badge-tier-card.selected {
  border-color: #fde047;
  box-shadow: 0 0 0 1px rgba(253, 224, 71, 0.45), 0 8px 22px rgba(2, 6, 23, 0.55);
}
.badge-preview-pair {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 10px;
}
.cp-preview-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.18);
}

/* ---------------- View 6: OBS Stinger & Studio Layout Transitions ---------------- */
.transition-stage-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.25);
  background: #050914;
}
.transition-stage-wrap canvas {
  width: 100%;
  max-width: 820px;
  aspect-ratio: 16 / 9;
  display: block;
}
.stinger-scrubber-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-top: 12px;
  border-radius: 10px;
  background: rgba(6, 12, 28, 0.88);
  border: 1px solid rgba(125, 211, 252, 0.2);
}
.obs-cut-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  color: #fef08a;
  background: rgba(180, 83, 9, 0.35);
  border: 1px solid rgba(251, 191, 36, 0.55);
}
.transition-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 860px) {
  .transition-gallery-grid {
    grid-template-columns: 1fr;
  }
}
.transition-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px;
  border-radius: 12px;
  background: rgba(7, 13, 30, 0.86);
  border: 1px solid rgba(125, 211, 252, 0.18);
  cursor: pointer;
  transition: all 0.16s ease;
}
.transition-card:hover {
  border-color: rgba(103, 232, 249, 0.55);
  transform: translateY(-1px);
}
.transition-card.selected {
  border-color: #fde047;
  box-shadow: 0 0 0 1px rgba(253, 224, 71, 0.45), 0 8px 22px rgba(2, 6, 23, 0.6);
}
.transition-card canvas {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  display: block;
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.studio-wipe-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 95;
}
