/* =========================================================================
   dopic.app - Mockup Studio Flagship (Shots.so Gold Standard & Architecture)
   ========================================================================= */

:root {
  --studio-bg: #f8fafc;
  --studio-panel: #ffffff;
  --studio-panel-border: #e2e8f0;
  --studio-text: #0f172a;
  --studio-text-muted: #64748b;
  --studio-pri: #0284c7;
  --studio-pri-hover: #0369a1;
  --studio-accent: #0284c7;
  --studio-radius: 14px;
}

/* 1. Studio Overall Workspace */
.studio-workspace-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
  color: #0f172a !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 2. Studio Top Command Bar */
div.studio-top-bar {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--studio-radius) !important;
  padding: 0.65rem 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02) !important;
  position: static !important;
  width: 100% !important;
  box-sizing: border-box !important;
  color: #0f172a !important;
}

.studio-bar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.studio-bar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Button & Pill Styles */
.studio-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.9rem;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  border: none;
  line-height: 1.2;
}

.studio-btn-gradient {
  background: linear-gradient(135deg, #0284c7, #6366f1);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
}
.studio-btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.5);
}

.studio-btn-subtle {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
}
.studio-btn-subtle:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.studio-btn-primary {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.3);
}
.studio-btn-primary:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.studio-btn-secondary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}
.studio-btn-secondary:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Pill Cluster Component */
.studio-pills-cluster {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}

.studio-pill {
  padding: 0.32rem 0.65rem;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--studio-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.studio-pill:hover {
  color: #0f172a;
}
.studio-pill.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Demo Pills */
.studio-demo-cluster {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 3px;
  gap: 3px;
}

.studio-demo-btn {
  padding: 0.32rem 0.65rem;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.studio-demo-btn:hover {
  color: #0f172a;
}
.studio-demo-btn.active {
  background: #0284c7;
  color: #ffffff;
}

/* 3. Main Studio Split Area */
.studio-main-body {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 1180px) {
  .studio-main-body {
    grid-template-columns: 340px 1fr;
  }
}

@media (max-width: 960px) {
  .studio-main-body {
    grid-template-columns: 1fr;
  }
}

/* 4. Left Studio Inspector Drawer */
.studio-inspector {
  background: var(--studio-panel);
  border: 1px solid var(--studio-panel-border);
  border-radius: var(--studio-radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  color: var(--studio-text);
  box-sizing: border-box;
}

/* Dual Tabs Navigation */
.inspector-tabs-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.inspector-tab {
  padding: 0.5rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--studio-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inspector-tab:hover {
  color: #0f172a;
}
.inspector-tab.active {
  background: #ffffff;
  color: #0284c7;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Inspector Groups */
.inspector-tabs-content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.inspector-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.8rem;
}
.inspector-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.group-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Device Cards Grid */
.device-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.device-card-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #334155;
  text-align: left;
}
.device-card-btn .dev-icon {
  font-size: 1.15rem;
  margin-bottom: 0;
  line-height: 1;
  flex-shrink: 0;
}
.device-card-btn .dev-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}
.device-card-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.device-card-btn.active {
  background: rgba(2, 132, 199, 0.08);
  border-color: #0284c7;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.15);
}
.device-card-btn.active .dev-title {
  color: #0284c7;
}

/* Chrome Theme Toggle (macOS Light / Dark) */
.chrome-theme-toggle-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 6px;
}
.chrome-theme-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0.65rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chrome-theme-btn .theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.chrome-theme-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.chrome-theme-btn.active {
  background: rgba(2, 132, 199, 0.08);
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.15);
}

/* Finish Pills */
.finish-pills-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.finish-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 0.55rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.finish-pill .finish-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.finish-pill:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}
.finish-pill.active {
  border-color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
}

/* Dual Phone Controls Box */
.dual-phone-controls-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dual-phone-screen-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: #ffffff;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.phone-screen-info {
  display: flex;
  align-items: center;
  gap: 7px;
}
.phone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.phone-dot-left {
  background: #0284c7;
  box-shadow: 0 0 6px rgba(2, 132, 199, 0.4);
}
.phone-dot-right {
  background: #8b5cf6;
  box-shadow: 0 0 6px rgba(139, 92, 246, 0.4);
}
.phone-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #0f172a;
}
.studio-sub-btn {
  background: #eff6ff;
  border: 1px solid #38bdf8;
  color: #0284c7;
  border-radius: 6px;
  padding: 0.28rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.studio-sub-btn:hover {
  background: #0284c7;
  color: #ffffff;
}
.dual-phone-actions-row {
  display: flex;
  justify-content: center;
  padding-top: 0.2rem;
}
.studio-mini-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  border-radius: 6px;
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.studio-mini-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Browser Custom URL & Theme Switcher */
.browser-url-bar-edit {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
}
.url-lock {
  font-size: 0.8rem;
  color: #64748b;
}
.studio-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #0f172a;
  font-size: 0.76rem;
  font-family: inherit;
}
.theme-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
}
.theme-pills {
  display: flex;
  gap: 4px;
}
.theme-pill {
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}
.theme-pill.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Studio Sliders */
.studio-slider-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0.35rem;
}
.slider-hdr {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 700;
}
.slider-val {
  color: #38bdf8;
  font-family: monospace;
}
.studio-slider {
  width: 100%;
  accent-color: #0284c7;
  cursor: pointer;
}

/* Privacy Redact Buttons */
.redact-actions-row {
  display: flex;
  gap: 5px;
}
.redact-toggle-btn, .redact-clear-btn {
  flex: 1;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}
.redact-toggle-btn:hover, .redact-clear-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.redact-toggle-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Device Mockups Grid */
.device-mockups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.device-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  color: #475569;
  cursor: pointer;
  transition: all 0.16s ease;
}
.device-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.device-btn.active {
  background: rgba(2, 132, 199, 0.08);
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.15);
}
.device-btn .device-icon {
  font-size: 1.15rem;
}
.device-btn .device-name {
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Apple Wallpapers Grid */
.apple-wp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.wp-card-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  text-align: center;
}
.wp-thumb {
  width: 100%;
  height: 48px;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  transition: transform 0.15s ease;
}
.wp-card-item span {
  font-size: 0.66rem;
  color: #64748b;
  font-weight: 700;
}
.wp-card-item:hover .wp-thumb {
  transform: scale(1.03);
  border-color: #cbd5e1;
}
.wp-card-item.active .wp-thumb {
  border-color: #0284c7;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.3);
}
.wp-card-item.active span {
  color: #0284c7;
}

/* Scene Lighting Grid */
.scene-light-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}
.scene-light-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.55rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}
.scene-light-btn .light-icon {
  font-size: 0.95rem;
}
.scene-light-btn:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}
.scene-light-btn.active {
  border-color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
}

/* Palette Swatches */
.bg-palette-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.bg-swatch {
  aspect-ratio: 1;
  border-radius: 6px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s ease;
}
.bg-swatch:hover {
  transform: scale(1.1);
}
.bg-swatch.active {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #0284c7;
}
.swatch-transparent {
  background: repeating-conic-gradient(#cbd5e1 0% 25%, #f1f5f9 0% 50%) 50% / 10px 10px !important;
}

/* Inspector Bottom Upload Button */
.inspector-bottom-upload {
  margin-top: auto;
  padding-top: 0.5rem;
}
.upload-trigger-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
}
.upload-trigger-btn:hover {
  background: #f1f5f9;
  border-color: #0284c7;
  color: #0284c7;
}

/* 5. Center Studio Canvas Board (The Core Light Stage) */
.studio-stage-wrap {
  background: #f1f5f9;
  background-image: radial-gradient(#cbd5e1 1.2px, transparent 1.2px);
  background-size: 20px 20px;
  border: 1px solid #e2e8f0;
  border-radius: var(--studio-radius);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 640px;
  padding: 2.5rem 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.stage-floating-header {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
  flex-wrap: wrap;
  gap: 8px;
}

.stage-floating-info, .stage-floating-header .studio-demo-cluster {
  pointer-events: auto;
}

.stage-floating-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 4px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}
.stage-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f172a;
}
.stage-dim {
  font-size: 0.68rem;
  font-family: monospace;
  color: #64748b;
  border-left: 1px solid #e2e8f0;
  padding-left: 8px;
}

.stage-canvas-board {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.studio-canvas {
  width: auto;
  max-width: 95%;
  max-height: 540px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.22), 0 0 1px 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.redact-box-preview {
  position: absolute;
  border: 2px dashed #ef4444;
  background: rgba(239, 68, 68, 0.2);
  pointer-events: none;
}

.stage-paste-pill {
  position: absolute;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.72rem;
  color: #64748b;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* 6. Templates Gallery Modal Overlay */
.studio-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.studio-modal-dialog {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.75rem;
}
.modal-title-col h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}
.modal-title-col p {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #64748b;
}
.modal-close-btn {
  background: #f1f5f9;
  border: none;
  color: #475569;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-templates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 768px) {
  .modal-templates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tpl-big-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tpl-big-card:hover {
  transform: translateY(-2px);
  border-color: #0284c7;
  background: #f1f5f9;
}
.tpl-big-card.active {
  border-color: #0284c7;
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.2);
}

.tpl-thumb-preview {
  width: 100%;
  height: 90px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.08);
}

.tpl-card-info h4 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f172a;
}
.tpl-card-info span {
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.3;
}

/* =========================================================================
   Shots.so 3-Column Studio Layout & Advanced Card Controls
   ========================================================================= */
.studio-3col-body {
  display: grid;
  grid-template-columns: 290px 1fr 200px;
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 1240px) {
  .studio-3col-body {
    grid-template-columns: 280px 1fr 180px;
    gap: 1rem;
  }
}

@media (max-width: 1040px) {
  .studio-3col-body {
    grid-template-columns: 280px 1fr;
  }
  .studio-layout-sidebar {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .studio-3col-body {
    grid-template-columns: 1fr;
  }
}

/* Media Slots in Left Inspector */
.media-slots-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.media-slot-item {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  border: 1.5px dashed #cbd5e1;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.15s ease;
}
.media-slot-item:hover {
  border-color: #0284c7;
  background: #f1f5f9;
}
.media-slot-item.active {
  border-color: #0284c7;
  border-style: solid;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.25);
}
.media-slot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-slot-plus {
  font-size: 1.2rem;
  color: #64748b;
  font-weight: 300;
}
.media-slot-label {
  font-size: 0.62rem;
  color: #64748b;
  margin-top: 2px;
}
.media-slot-badge {
  position: absolute;
  top: 3px;
  left: 3px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
}

/* Style Buttons Grid (Default, Glass, Border, etc.) */
.style-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.style-card-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.style-card-btn:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}
.style-card-btn.active {
  border-color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
}
.style-card-preview {
  width: 32px;
  height: 22px;
  border-radius: 4px;
  background: #e2e8f0;
  box-sizing: border-box;
}
.style-card-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: #334155;
}
.style-card-btn.active .style-card-name {
  color: #0284c7;
}

/* Border Curve Buttons */
.border-pills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.border-pill-btn {
  padding: 0.4rem 0.2rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}
.border-pill-btn:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #0f172a;
}
.border-pill-btn.active {
  border-color: #0284c7;
  background: #0284c7;
  color: #ffffff;
}

/* Border Color & Width Controls */
.border-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.border-color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.border-color-swatch:hover {
  transform: scale(1.15);
}
.border-color-swatch.active {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #0284c7;
  transform: scale(1.15);
}

.border-grad-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.border-grad-swatch:hover {
  transform: scale(1.18);
}
.border-grad-swatch.active {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #0284c7;
  transform: scale(1.18);
}
.border-color-custom-btn {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px dashed rgba(0, 0, 0, 0.25);
  background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.border-color-custom-btn input[type="color"] {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  opacity: 0;
}

/* Shadow Presets Row */
.shadow-presets-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.shadow-preset-btn {
  padding: 0.4rem 0.2rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}
.shadow-preset-btn:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #0f172a;
}
.shadow-preset-btn.active {
  border-color: #0284c7;
  background: #0284c7;
  color: #ffffff;
}

/* Right Layout Sidebar (shots.so standard) */
.studio-layout-sidebar {
  background: var(--studio-panel);
  border: 1px solid var(--studio-panel-border);
  border-radius: var(--studio-radius);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  color: var(--studio-text);
  box-sizing: border-box;
}

.count-toggle-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.count-toggle-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--studio-text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.count-toggle-btn:hover {
  color: #0f172a;
}
.count-toggle-btn.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.layout-presets-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.layout-preset-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: all 0.15s ease;
}
.layout-preset-card:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}
.layout-preset-card.active {
  border-color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.15);
}

.layout-preview-box {
  width: 100%;
  height: 52px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.layout-preset-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  text-align: center;
}
.layout-preset-card.active .layout-preset-name {
  color: #0284c7;
}

/* Switch Toggle Component */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}
.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider-toggle-round {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: 0.2s;
  border-radius: 20px;
}
.slider-toggle-round:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
input:checked + .slider-toggle-round {
  background-color: #0284c7;
}
input:checked + .slider-toggle-round:before {
  transform: translateX(16px);
}

/* Studio Text Input */
.studio-text-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.6rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.74rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.studio-text-input:focus {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}
.text-input-lbl {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 2px;
}
.text-pill-row {
  display: flex;
  gap: 4px;
}
.text-option-btn {
  flex: 1;
  padding: 0.35rem 0.2rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}
.text-option-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.text-option-btn.active {
  background: rgba(2, 132, 199, 0.08);
  border-color: #0284c7;
  color: #0284c7;
}
