:root {
  /* Exact Google Stitch "Noel Mágico Studio" Design System Tokens */
  --stitch-pine-950: #05120d;
  --stitch-pine-900: #072017;
  --stitch-pine-800: #0b231a;
  --stitch-pine-700: #153126;
  --stitch-pine-600: #1e352b;
  --stitch-gold-primary: #dfb15b;
  --stitch-gold-light: #efbf68;
  --stitch-gold-soft: rgba(223, 177, 91, 0.14);
  --stitch-gold-border: rgba(223, 177, 91, 0.28);
  --stitch-velvet-red: #a11d2d;
  --stitch-velvet-bright: #d3434d;
  --stitch-cream: #fdfbf7;
  --stitch-muted: #97b1a4;
  --stitch-emerald: #34d399;

  /* Backward-compatible aliases for app.js inline references */
  --accent-gold: #dfb15b;
  --text-main: #fdfbf7;
  --text-muted: #97b1a4;
  --bg-card: rgba(18, 42, 32, 0.78);
  --border-subtle: rgba(223, 177, 91, 0.22);
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(161, 29, 45, 0.16) 0%, transparent 42%),
    radial-gradient(circle at 82% 8%, rgba(223, 177, 91, 0.11) 0%, transparent 40%),
    linear-gradient(180deg, #091d15 0%, #06140f 55%, #040d09 100%);
  color: var(--stitch-cream);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}

/* ============================================================================
   GLOBAL TOPBAR (STITCH "NOEL MÁGICO" HEADER)
   ============================================================================ */
.stitch-topbar {
  background: rgba(6, 20, 15, 0.92);
  border-bottom: 1px solid rgba(223, 177, 91, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 60;
}

.stitch-topbar-inner {
  max-width: 1460px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.stitch-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #b12a37 0%, #680014 100%);
  border: 1px solid rgba(223, 177, 91, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 18px rgba(161, 29, 45, 0.45);
}

.stitch-brand-text strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--stitch-gold-primary);
  line-height: 1.05;
}

.stitch-brand-text span {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--stitch-muted);
  margin-top: 2px;
}

.stitch-nav-pills {
  display: inline-flex;
  background: rgba(4, 12, 9, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.mode-btn {
  border: none;
  background: transparent;
  color: var(--stitch-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mode-btn small {
  font-weight: 500;
  opacity: 0.85;
}

.mode-btn:hover {
  color: var(--stitch-cream);
}

.mode-btn.active {
  background: linear-gradient(135deg, #dfb15b 0%, #b48a38 100%);
  color: #1d1402;
  box-shadow: 0 4px 14px rgba(223, 177, 91, 0.3);
}

.stitch-season-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(161, 29, 45, 0.24);
  border: 1px solid rgba(211, 67, 77, 0.42);
  color: #ffb3b2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stitch-status-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stitch-status-item {
  font-size: 0.76rem;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--stitch-cream);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.stitch-status-item.gold-pill {
  background: rgba(223, 177, 91, 0.13);
  border-color: rgba(223, 177, 91, 0.36);
  color: var(--stitch-gold-light);
}

.dot-online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stitch-emerald);
  box-shadow: 0 0 8px var(--stitch-emerald);
}

/* ============================================================================
   CUSTOMER PORTAL HERO BANNER (STITCH STYLE)
   ============================================================================ */
.stitch-customer-wrapper {
  max-width: 1460px;
  margin: 0 auto;
  padding: 22px 28px 48px;
}

.stitch-hero-banner {
  background:
    radial-gradient(circle at 88% 20%, rgba(223, 177, 91, 0.15) 0%, transparent 45%),
    linear-gradient(125deg, rgba(18, 45, 34, 0.94) 0%, rgba(11, 30, 22, 0.96) 65%, rgba(65, 12, 20, 0.45) 100%);
  border: 1px solid rgba(223, 177, 91, 0.28);
  border-radius: var(--radius-xl);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.stitch-hero-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.badge-approved {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
}

.badge-fast {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(223, 177, 91, 0.14);
  border: 1px solid rgba(223, 177, 91, 0.35);
  color: var(--stitch-gold-light);
}

.stitch-hero-left h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.05rem;
  font-weight: 700;
  color: var(--stitch-cream);
  line-height: 1.16;
  margin-bottom: 8px;
}

.stitch-hero-left p {
  font-size: 0.9rem;
  color: var(--stitch-muted);
  max-width: 780px;
}

.elf-engine-pill {
  background: rgba(7, 22, 16, 0.85);
  border: 1px solid rgba(223, 177, 91, 0.32);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 255px;
}

.elf-icon {
  font-size: 1.65rem;
  background: rgba(223, 177, 91, 0.14);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elf-engine-pill small {
  display: block;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--stitch-gold-primary);
}

.elf-engine-pill strong {
  display: block;
  font-size: 0.86rem;
  color: var(--stitch-cream);
}

.elf-engine-pill span {
  display: block;
  font-size: 0.73rem;
  color: var(--stitch-muted);
}

/* ============================================================================
   CUSTOMER 2-COLUMN GRID & CARDS
   ============================================================================ */
.stitch-two-col-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1120px) {
  .stitch-two-col-grid {
    grid-template-columns: 1fr;
  }
  .stitch-hero-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.stitch-left-col,
.stitch-right-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stitch-card {
  background: linear-gradient(180deg, rgba(16, 39, 29, 0.9) 0%, rgba(10, 26, 19, 0.92) 100%);
  border: 1px solid rgba(223, 177, 91, 0.22);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
}

.stitch-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.stitch-step-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stitch-step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dfb15b 0%, #977120 100%);
  color: #191202;
  font-weight: 800;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(223, 177, 91, 0.32);
}

.stitch-card-header h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--stitch-cream);
}

.stitch-step-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(223, 177, 91, 0.14);
  border: 1px solid rgba(223, 177, 91, 0.32);
  color: var(--stitch-gold-primary);
  white-space: nowrap;
}

.stitch-field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #e6efe9;
  margin-bottom: 7px;
}

.req {
  color: #ff888a;
}

.stitch-input-with-btn {
  display: flex;
  gap: 8px;
}

input[type="text"],
input[type="password"],
select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(223, 177, 91, 0.26);
  background: rgba(5, 16, 11, 0.88);
  color: var(--stitch-cream);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
  border-color: var(--stitch-gold-primary);
  box-shadow: 0 0 0 3px rgba(223, 177, 91, 0.16);
}

.stitch-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--stitch-muted);
}

/* STITCH AUDIO PREVIEW BOX */
.stitch-audio-preview-box {
  margin-top: 16px;
  background: rgba(7, 20, 15, 0.85);
  border: 1px solid rgba(223, 177, 91, 0.28);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.stitch-audio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--stitch-cream);
}

.stitch-pill-mini {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(223, 177, 91, 0.16);
  color: var(--stitch-gold-primary);
}

.stitch-audio-preview-box audio {
  width: 100%;
  height: 36px;
}

.stitch-audio-quote {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--stitch-muted);
  border-left: 2px solid var(--stitch-gold-primary);
  padding-left: 10px;
}

/* STITCH PHOTO UPLOAD RING */
.stitch-upload-box {
  background: rgba(7, 20, 15, 0.72);
  border: 1.5px dashed rgba(223, 177, 91, 0.4);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 14px;
}

.stitch-upload-box:hover,
.stitch-upload-box.dragover {
  border-color: var(--stitch-gold-primary);
  background: rgba(18, 45, 34, 0.75);
}

.stitch-photo-avatar-ring {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 auto 10px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #dfb15b, #a11d2d);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.stitch-photo-avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.stitch-check-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--stitch-emerald);
  color: #042115;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #072017;
}

.stitch-upload-Title strong {
  display: block;
  font-size: 0.9rem;
  color: var(--stitch-cream);
  margin-bottom: 3px;
}

.stitch-upload-Title p {
  font-size: 0.76rem;
  color: var(--stitch-muted);
  margin-bottom: 12px;
}

.stitch-upload-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* CROP CONTROLS */
.stitch-crop-panel {
  background: rgba(6, 18, 13, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
}

.stitch-crop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--stitch-gold-primary);
  margin-bottom: 10px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--stitch-gold-primary);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.sliders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.slider-item.full-width {
  grid-column: 1 / -1;
}

.slider-item label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: #dce7e1;
  margin-bottom: 4px;
}

.slider-item input[type="range"] {
  width: 100%;
  accent-color: var(--stitch-gold-primary);
  cursor: pointer;
}

.rot-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================================
   STITCH BUTTONS & VELVET CTA
   ============================================================================ */
.btn,
.btn-stitch-gold-outline,
.btn-stitch-secondary,
.btn-stitch-ghost,
.btn-stitch-download-gold {
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 10px 15px;
  border-radius: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.77rem;
}

.btn-stitch-gold-outline {
  background: rgba(223, 177, 91, 0.15);
  border: 1px solid rgba(223, 177, 91, 0.5);
  color: var(--stitch-gold-light);
}

.btn-stitch-gold-outline:hover {
  background: rgba(223, 177, 91, 0.28);
}

.btn-stitch-secondary,
.btn-secondary {
  background: rgba(223, 177, 91, 0.16);
  border: 1px solid rgba(223, 177, 91, 0.42);
  color: var(--stitch-gold-light);
}

.btn-stitch-ghost,
.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--stitch-cream);
}

.btn-stitch-cta {
  width: 100%;
  border: 1px solid rgba(223, 177, 91, 0.6);
  border-radius: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #b82333 0%, #7d111e 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  box-shadow: 0 12px 30px rgba(161, 29, 45, 0.5);
  transition: transform 0.14s, box-shadow 0.2s;
}

.btn-stitch-cta span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.22rem;
  font-weight: 700;
  color: #fff;
}

.btn-stitch-cta small {
  font-size: 0.72rem;
  color: rgba(255, 238, 216, 0.85);
}

.btn-stitch-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(161, 29, 45, 0.65);
}

.btn-stitch-download-gold,
.btn-gold {
  background: linear-gradient(135deg, #efbf68 0%, #c5953c 100%);
  color: #1c1302;
  border: 1px solid rgba(255, 238, 216, 0.5);
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(223, 177, 91, 0.28);
}

/* ============================================================================
   RIGHT COLUMN: INTERACTIVE QUADRO PREVIEW & VIDEO PLAYER
   ============================================================================ */
.stitch-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.stitch-stage-header h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--stitch-cream);
}

.stitch-sub {
  font-size: 0.78rem;
  color: var(--stitch-muted);
}

.stitch-sync-badge {
  font-size: 0.71rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.38);
  color: #6ee7b7;
  white-space: nowrap;
}

.stitch-hd-badge {
  font-size: 0.71rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(161, 29, 45, 0.35);
  border: 1px solid rgba(211, 67, 77, 0.5);
  color: #ffb3b2;
  white-space: nowrap;
}

.shot-switcher {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.shot-btn {
  flex: 1;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.81rem;
  font-weight: 700;
  background: rgba(5, 16, 11, 0.75);
  color: var(--stitch-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.16s;
}

.shot-btn.active {
  background: linear-gradient(135deg, rgba(223, 177, 91, 0.22), rgba(180, 138, 56, 0.14));
  color: var(--stitch-gold-light);
  border-color: var(--stitch-gold-primary);
  box-shadow: 0 4px 14px rgba(223, 177, 91, 0.15);
}

.frame-stage-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 854 / 480;
  background: #030906;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(223, 177, 91, 0.45);
  cursor: grab;
  user-select: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.frame-stage-wrapper:active {
  cursor: grabbing;
}

#liveCompositeCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stage-overlay-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 14, 10, 0.86);
  color: var(--stitch-cream);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 15px;
  border-radius: 999px;
  border: 1px solid rgba(223, 177, 91, 0.42);
  pointer-events: none;
  white-space: nowrap;
}

.video-player-container {
  width: 100%;
  aspect-ratio: 854 / 480;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(223, 177, 91, 0.36);
}

#mainVideoPlayer {
  width: 100%;
  height: 100%;
  display: block;
}

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

.jump-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--stitch-muted);
  margin-right: 4px;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--stitch-cream);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.pill-btn:hover {
  background: rgba(223, 177, 91, 0.22);
  border-color: var(--stitch-gold-primary);
}

.pill-btn.pill-green {
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
}

.stitch-video-actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
}

.stitch-video-actions .btn-stitch-download-gold {
  width: 100%;
  padding: 13px 18px;
  font-size: 0.94rem;
}

/* PROGRESS BAR */
.render-progress {
  margin-top: 14px;
  background: rgba(6, 18, 13, 0.95);
  border: 1px solid var(--stitch-gold-primary);
  border-radius: 14px;
  padding: 14px;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 8px;
  color: var(--stitch-gold-light);
}

.progress-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #34d399, #dfb15b);
  transition: width 0.25s ease;
}

/* GALLERY */
.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.gallery-header h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  color: var(--stitch-cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 14px;
}

.gallery-card {
  background: rgba(7, 20, 15, 0.82);
  border: 1px solid rgba(223, 177, 91, 0.22);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  cursor: pointer;
}

.gallery-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.gallery-meta {
  font-size: 0.73rem;
  color: var(--stitch-muted);
}

.gallery-actions {
  display: flex;
  gap: 6px;
}

/* ============================================================================
   ADMIN PORTAL (STITCH BACKOFFICE WITH LEFT SIDEBAR & KPI ROW)
   ============================================================================ */
.stitch-admin-layout {
  max-width: 1460px;
  margin: 0 auto;
  padding: 22px 28px 48px;
  display: grid;
  grid-template-columns: 245px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .stitch-admin-layout {
    grid-template-columns: 1fr;
  }
}

.stitch-admin-sidebar {
  background: rgba(8, 23, 17, 0.92);
  border: 1px solid rgba(223, 177, 91, 0.2);
  border-radius: var(--radius-xl);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 84px;
}

.sidebar-section-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--stitch-muted);
  padding: 4px 10px 8px;
}

.admin-subtab {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: var(--stitch-muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 11px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.16s;
}

.admin-subtab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--stitch-cream);
}

.admin-subtab.active {
  background: linear-gradient(135deg, #dfb15b 0%, #b48a38 100%);
  color: #1b1302;
  box-shadow: 0 6px 16px rgba(223, 177, 91, 0.25);
}

.sidebar-footer-box {
  margin-top: 18px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(4, 13, 9, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-footer-box small {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--stitch-gold-primary);
}

.sidebar-footer-box strong {
  display: block;
  font-size: 0.82rem;
  color: var(--stitch-cream);
  margin: 2px 0;
}

.sidebar-footer-box span {
  display: block;
  font-size: 0.72rem;
  color: var(--stitch-muted);
}

.stitch-admin-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.stitch-admin-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--stitch-emerald);
  margin-bottom: 4px;
}

.stitch-admin-top h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--stitch-cream);
}

.stitch-admin-top p {
  font-size: 0.85rem;
  color: var(--stitch-muted);
}

.stitch-admin-cluster-badge {
  font-size: 0.75rem;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

.stitch-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 960px) {
  .stitch-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stitch-kpi-box {
  background: rgba(14, 34, 25, 0.9);
  border: 1px solid rgba(223, 177, 91, 0.2);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kpi-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--stitch-muted);
}

.kpi-big {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--stitch-cream);
}

.kpi-gold {
  color: var(--stitch-gold-primary);
}

.kpi-green {
  color: var(--stitch-emerald);
}

.kpi-foot {
  font-size: 0.73rem;
  color: var(--stitch-muted);
}

.stitch-admin-card {
  background: linear-gradient(180deg, rgba(16, 39, 29, 0.92) 0%, rgba(10, 26, 19, 0.94) 100%);
  border: 1px solid rgba(223, 177, 91, 0.22);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.stitch-admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stitch-admin-card-header h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  color: var(--stitch-cream);
}

.stitch-admin-card-header p {
  font-size: 0.82rem;
  color: var(--stitch-muted);
}

.stitch-admin-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .stitch-admin-two-col {
    grid-template-columns: 1fr;
  }
}

.stitch-admin-subbox {
  background: rgba(5, 16, 11, 0.72);
  border: 1px solid rgba(223, 177, 91, 0.2);
  border-radius: 14px;
  padding: 16px;
}

.stitch-zero-token-pill {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(223, 177, 91, 0.2);
  color: var(--stitch-gold-light);
  border: 1px solid rgba(223, 177, 91, 0.45);
  margin-left: 8px;
  vertical-align: middle;
}

/* TRANSCRIPT & MISC */
.divider {
  border: none;
  border-top: 1px solid rgba(223, 177, 91, 0.16);
  margin: 16px 0;
}

.transcript-section {
  background: rgba(6, 18, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
}

.transcript-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.transcript-header h3 {
  font-size: 0.94rem;
  color: var(--stitch-gold-primary);
}

.transcript-sub {
  font-size: 0.75rem;
  color: var(--stitch-muted);
}

.transcript-list {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.transcript-item {
  display: flex;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 8px;
  background: rgba(10, 22, 16, 0.65);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.82rem;
}

.transcript-item:hover {
  border-color: rgba(223, 177, 91, 0.35);
}

.transcript-item.chromakey-line {
  border-left: 3px solid var(--stitch-emerald);
}

.ts-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  color: var(--stitch-gold-primary);
  white-space: nowrap;
}

.highlight-name {
  background: rgba(161, 29, 45, 0.45);
  color: #ffdea7;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  cursor: pointer;
}

.step-pill {
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(223, 177, 91, 0.16);
  color: var(--stitch-gold-primary);
  font-weight: 700;
}

.hidden {
  display: none !important;
}
