
/* ═══ $100B PREMIUM — ZOOM Creative Studio (scoped to #creativestudio) ═══ */

#creativestudio {
  font-family:'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ADMIN DEV chip in hero */
#creativestudio .cs-admin-dev-chip {
  display:inline-flex; align-items:center; gap:6px; margin-top:14px;
  padding:7px 14px; border-radius:999px;
  background:linear-gradient(135deg,#0065f1,#2d7af8);
  color:#fff; font-size:0.65rem; font-weight:800;
  letter-spacing:0.08em; text-transform:uppercase;
  box-shadow:0 3px 12px rgba(0,101,241,0.3);
}

/* Hero stat chips — bg uses #e8f0fe to avoid the z7bAddAppleBorder
   inline-style rgba(0,<d>,...) stripping regex (line ~99366). */
#creativestudio .cs-hero-stats { display:flex; gap:14px; flex-wrap:wrap; margin-top:18px; }
#creativestudio .cs-hero-stat {
  text-align:center; background:#e8f0fe;
  border:1px solid rgba(0,101,241,0.20);
  border-radius:12px; padding:12px 20px;
}
#creativestudio .cs-hero-stat-num {
  font-family:'JetBrains Mono',monospace; font-size:1.3rem;
  color:#0065f1; font-weight:700;
}
#creativestudio .cs-hero-stat-label {
  font-size:0.6rem; letter-spacing:0.10em; text-transform:uppercase;
  color:#6b7280; margin-top:2px;
}

/* Power User toggle row */
#creativestudio .cs-power-user-row {
  display:flex; justify-content:flex-end; margin-bottom:20px;
}
#creativestudio .cs-toggle {
  display:inline-flex; align-items:center; gap:10px; cursor:pointer;
  background:rgba(255,255,255,0.88); backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border:0.5px solid rgba(0,101,241,0.10);
  border-radius:999px; padding:8px 14px;
  box-shadow:0 1px 3px rgba(0,101,241,0.05);
}
#creativestudio .cs-toggle input { display:none; }
#creativestudio .cs-toggle-slider {
  position:relative; width:36px; height:20px; border-radius:999px;
  background:#e5e7eb; transition:background 0.25s ease;
}
#creativestudio .cs-toggle-slider::before {
  content:''; position:absolute; top:2px; left:2px; width:16px; height:16px;
  border-radius:50%; background:#fff; transition:transform 0.25s ease;
  box-shadow:0 1px 3px rgba(0,0,0,0.2);
}
#creativestudio .cs-toggle input:checked + .cs-toggle-slider { background:#0065f1; }
#creativestudio .cs-toggle input:checked + .cs-toggle-slider::before { transform:translateX(16px); }
#creativestudio .cs-toggle-label {
  font-size:0.78rem; font-weight:700; color:#374151;
}

/* Row headers */
#creativestudio .cs-row-header {
  margin:28px 0 14px 0; padding-bottom:10px;
  border-bottom:0.5px solid rgba(0,101,241,0.12);
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  flex-wrap:wrap;
}
#creativestudio .cs-row-title {
  font-size:0.82rem; letter-spacing:0.16em; text-transform:uppercase;
  font-weight:800; color:#0a2540; margin:0;
}
#creativestudio .cs-row-sub { font-size:0.72rem; color:#6b7280; }

/* Card grid */
#creativestudio .cs-card-grid {
  display:grid; gap:20px; perspective:900px;
  grid-template-columns:repeat(3, 1fr);
}
@media (max-width:1024px){ #creativestudio .cs-card-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px) { #creativestudio .cs-card-grid { grid-template-columns:1fr; } }

/* Outcome card — glass + 3D tilt (JS handler) + animated blue glow lines */
#creativestudio .cs-card {
  position:relative; overflow:visible;
  background:rgba(255,255,255,0.88);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border-radius:18px; border:0.5px solid rgba(0,101,241,0.07);
  box-shadow:0 1px 3px rgba(0,101,241,0.05), 0 6px 20px rgba(0,101,241,0.07);
  padding:26px 24px; min-height:220px; cursor:pointer;
  transform-style:preserve-3d; will-change:transform;
  transition:transform 0.6s cubic-bezier(0.16,1,0.3,1),
             box-shadow 0.6s cubic-bezier(0.16,1,0.3,1),
             border-color 0.6s cubic-bezier(0.16,1,0.3,1);
  display:flex; flex-direction:column; gap:10px;
}
#creativestudio .cs-card:hover {
  border-color:rgba(0,101,241,0.18);
  box-shadow:0 8px 28px rgba(0,101,241,0.14), 0 2px 8px rgba(0,101,241,0.08);
}

/* Animated blue glow lines on top edge (pattern cloned from .z7b-g1..g4) */
#creativestudio .cs-card .cs-g1 { position:absolute; top:-2px; left:5%;  right:5%;  height:8px;   background:linear-gradient(90deg,transparent,rgba(0,101,241,0.15),transparent); filter:blur(4px); pointer-events:none; }
#creativestudio .cs-card .cs-g2 { position:absolute; top:-1px; left:8%;  right:8%;  height:5px;   background:linear-gradient(90deg,transparent,rgba(0,101,241,0.30),transparent); filter:blur(2px); pointer-events:none; }
#creativestudio .cs-card .cs-g3 { position:absolute; top:0;    left:12%; right:12%; height:2px;   background:linear-gradient(90deg,transparent,rgba(0,101,241,0.70),transparent); pointer-events:none; }
#creativestudio .cs-card .cs-g4 { position:absolute; top:0;    left:25%; right:25%; height:1.5px; background:linear-gradient(90deg,transparent,rgba(0,101,241,0.95),transparent); pointer-events:none; }

#creativestudio .cs-card .cs-card-inner {
  position:relative; transform:translateZ(24px); transform-style:preserve-3d;
  display:flex; flex-direction:column; flex:1; gap:8px;
}
#creativestudio .cs-card-icon {
  font-size:34px; line-height:1;
  width:56px; height:56px; border-radius:15px;
  background:#e8f0fe;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:6px;
}
#creativestudio .cs-card-title {
  font-size:1.05rem; font-weight:800; color:#0a2540;
  margin:0; letter-spacing:-0.01em;
}
#creativestudio .cs-card-desc {
  font-size:0.78rem; color:#4b5563; line-height:1.6; margin:0; flex:1;
}
#creativestudio .cs-card-badge {
  display:inline-flex; align-items:center; gap:4px;
  font-size:0.6rem; letter-spacing:0.08em; text-transform:uppercase;
  font-weight:800; padding:4px 8px; border-radius:999px;
  margin-top:6px; align-self:flex-start;
  background:linear-gradient(135deg,#b8942d,#e8c96a); color:#0a2540;
}

/* Utility-row cards: smaller (visual hierarchy) */
#creativestudio .cs-grid-utility .cs-card { min-height:150px; padding:20px 22px; }
#creativestudio .cs-grid-utility .cs-card-icon { width:44px; height:44px; font-size:24px; border-radius:12px; }
#creativestudio .cs-grid-utility .cs-card-title { font-size:0.92rem; }

/* Brand Kit banner */
#creativestudio .cs-brand-kit-banner {
  margin-top:28px; padding:22px 26px; border-radius:18px;
  background:linear-gradient(135deg,rgba(255,255,255,0.95),rgba(232,240,254,0.90));
  border:0.5px solid rgba(0,101,241,0.18);
  box-shadow:0 1px 3px rgba(0,101,241,0.05), 0 6px 20px rgba(0,101,241,0.07);
  display:flex; align-items:center; justify-content:space-between;
  gap:24px; flex-wrap:wrap;
}
#creativestudio .cs-brand-kit-banner-title {
  font-size:1.05rem; font-weight:800; color:#0a2540; margin:0 0 4px 0;
}
#creativestudio .cs-brand-kit-banner-sub {
  font-size:0.78rem; color:#4b5563; margin:0; line-height:1.55;
}

/* Rails */
#creativestudio .cs-rail { margin-top:28px; }
#creativestudio .cs-rail-title {
  font-size:0.82rem; letter-spacing:0.16em; text-transform:uppercase;
  font-weight:800; color:#0a2540; margin:0 0 14px 0;
  padding-bottom:10px; border-bottom:0.5px solid rgba(0,101,241,0.12);
}
#creativestudio .cs-rail-grid {
  display:grid; gap:16px; grid-template-columns:repeat(3, 1fr);
}
@media (max-width:900px){ #creativestudio .cs-rail-grid { grid-template-columns:1fr; } }
#creativestudio .cs-rail-card {
  position:relative; padding:18px 20px 18px 24px; border-radius:14px;
  background:rgba(255,255,255,0.88); backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border:0.5px solid rgba(0,101,241,0.10);
  box-shadow:0 1px 3px rgba(0,101,241,0.05);
  transition:transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow:hidden;
}
#creativestudio .cs-rail-card:hover {
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(0,101,241,0.12);
  border-color:rgba(0,101,241,0.18);
}
#creativestudio .cs-rail-card::before {
  content:''; position:absolute; left:0; top:14px; bottom:14px; width:3px;
  border-radius:0 3px 3px 0;
  background:linear-gradient(180deg,#0065f1,#00c8ff);
}
#creativestudio .cs-rail-card-icon { font-size:24px; margin-bottom:8px; }
#creativestudio .cs-rail-card-title {
  font-size:0.92rem; font-weight:800; color:#0a2540; margin:0 0 6px 0;
}
#creativestudio .cs-rail-card-insight {
  font-size:0.76rem; color:#4b5563; line-height:1.55; margin:0;
}
#creativestudio .cs-rail-empty {
  padding:24px; border-radius:14px;
  background:rgba(255,255,255,0.70);
  border:0.5px dashed rgba(0,101,241,0.22);
  text-align:center; color:#6b7280; font-size:0.82rem;
}

/* Buttons */
#creativestudio .cs-btn, .cs-modal-card .cs-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 20px; border-radius:12px; font-weight:800; font-size:0.78rem;
  letter-spacing:0.02em; cursor:pointer; border:none;
  font-family:'Plus Jakarta Sans',sans-serif;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}
#creativestudio .cs-btn-primary, .cs-modal-card .cs-btn-primary {
  background:linear-gradient(135deg,#0065f1,#2d7af8);
  color:#fff; box-shadow:0 3px 12px rgba(0,101,241,0.30);
}
#creativestudio .cs-btn-primary:hover, .cs-modal-card .cs-btn-primary:hover {
  transform:translateY(-1px); box-shadow:0 6px 18px rgba(0,101,241,0.42);
}
#creativestudio .cs-btn-ghost, .cs-modal-card .cs-btn-ghost {
  background:rgba(255,255,255,0.92); color:#0065f1;
  border:0.5px solid rgba(0,101,241,0.18);
}
#creativestudio .cs-btn-ghost:hover, .cs-modal-card .cs-btn-ghost:hover {
  background:#e8f0fe;
}

/* Power User expanded list */
#creativestudio .cs-power-user-expanded { margin-top:28px; }
#creativestudio .cs-power-user-expanded h3 {
  font-size:0.82rem; letter-spacing:0.16em; text-transform:uppercase;
  font-weight:800; color:#0a2540;
  margin:0 0 14px 0; padding-bottom:10px;
  border-bottom:0.5px solid rgba(0,101,241,0.12);
}
#creativestudio .cs-tool-group-label {
  grid-column:1 / -1;
  font-size:0.7rem; letter-spacing:0.12em; text-transform:uppercase;
  font-weight:800; color:#0065f1; margin:14px 0 6px 0;
}
#creativestudio .cs-tool-list {
  display:grid; gap:8px; grid-template-columns:repeat(3,1fr);
}
@media (max-width:1024px){ #creativestudio .cs-tool-list { grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px) { #creativestudio .cs-tool-list { grid-template-columns:1fr; } }
#creativestudio .cs-tool-row {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 14px; border-radius:10px;
  background:rgba(255,255,255,0.88);
  border:0.5px solid rgba(0,101,241,0.08);
  font-size:0.76rem; color:#374151; cursor:pointer;
  transition:transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
#creativestudio .cs-tool-row:hover {
  border-color:rgba(0,101,241,0.22);
  box-shadow:0 4px 12px rgba(0,101,241,0.10);
  transform:translateY(-1px);
}
#creativestudio .cs-tool-name { font-weight:700; }
#creativestudio .cs-tool-sprint {
  font-size:0.62rem; letter-spacing:0.06em; text-transform:uppercase;
  font-weight:800; padding:3px 8px; border-radius:999px;
  background:#e8f0fe; color:#0065f1;
}

/* Shared modal (used for placeholders, tour, template library, brand kit) */
#cs-modal-overlay {
  display:none; position:fixed; inset:0; z-index:9200;
  background:rgba(10,37,64,0.45); backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  align-items:center; justify-content:center; padding:20px;
}
#cs-modal-overlay.cs-modal-open { display:flex; }
.cs-modal-card {
  position:relative;
  background:linear-gradient(135deg,#ffffff 0%, #f0f4ff 100%);
  border:1px solid rgba(0,101,241,0.18); border-radius:20px;
  box-shadow:0 32px 80px rgba(0,101,241,0.20), 0 6px 20px rgba(0,101,241,0.08);
  max-width:520px; width:100%; padding:32px 28px;
  font-family:'Plus Jakarta Sans',sans-serif;
}
.cs-modal-card.cs-modal-wide { max-width:1080px; padding:28px 24px; }
.cs-modal-close {
  position:absolute; top:14px; right:14px;
  width:32px; height:32px; border-radius:10px; border:none;
  background:#e8f0fe; color:#0065f1; cursor:pointer;
  font-size:1rem; font-weight:700;
  display:flex; align-items:center; justify-content:center;
}
.cs-modal-close:hover { background:rgba(0,101,241,0.18); }
.cs-modal-title {
  font-size:1.3rem; font-weight:800; color:#0a2540;
  margin:0 0 8px 0; letter-spacing:-0.01em; padding-right:40px;
}
.cs-modal-body { font-size:0.88rem; color:#4b5563; line-height:1.6; margin:0 0 20px 0; }
.cs-sprint-bar { display:flex; gap:6px; margin:16px 0 22px 0; }
.cs-sprint-seg { flex:1; height:8px; border-radius:4px; background:rgba(0,101,241,0.10); }
.cs-sprint-seg.done   { background:linear-gradient(90deg,#0065f1,#00c8ff); }
.cs-sprint-seg.target { background:linear-gradient(90deg,#00c8ff,#0065f1); box-shadow:0 0 12px rgba(0,200,255,0.45); }
.cs-modal-actions { display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; }

/* Template library grid (inside modal) */
.cs-tpl-grid {
  display:grid; gap:14px; grid-template-columns:repeat(4, 1fr);
  max-height:62vh; overflow-y:auto; padding:4px;
}
@media (max-width:900px){ .cs-tpl-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .cs-tpl-grid { grid-template-columns:1fr; } }
.cs-tpl-card {
  background:rgba(255,255,255,0.92);
  border:0.5px solid rgba(0,101,241,0.10);
  border-radius:14px; overflow:hidden; cursor:pointer;
  transition:transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.cs-tpl-card:hover {
  transform:translateY(-3px); border-color:rgba(0,101,241,0.22);
  box-shadow:0 10px 28px rgba(0,101,241,0.14);
}
.cs-tpl-thumb {
  height:120px; display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:800; font-size:0.82rem; letter-spacing:0.04em;
  background:linear-gradient(135deg,#0065f1,#7c3aed);
  text-align:center; padding:10px;
}
.cs-tpl-body { padding:12px 14px 14px 14px; }
.cs-tpl-name {
  font-size:0.82rem; font-weight:800; color:#0a2540;
  margin:0 0 6px 0; line-height:1.3;
}
.cs-tpl-meta { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:10px; }
.cs-tpl-chip {
  font-size:0.6rem; letter-spacing:0.04em; text-transform:uppercase;
  font-weight:700; padding:3px 8px; border-radius:999px;
  background:#e8f0fe; color:#0065f1;
}

/* Sidebar admin-dev chip on appended nav-tab */
.cs-nav-dev-chip {
  display:inline-flex; align-items:center; gap:3px;
  font-size:0.55rem; letter-spacing:0.08em; text-transform:uppercase;
  font-weight:800; padding:2px 6px; border-radius:999px;
  background:linear-gradient(135deg,#0065f1,#2d7af8); color:#fff;
  margin-left:6px; vertical-align:middle;
}

/* === Patch 4: Modal visual override (beats z100b dark-glass collision) ===
   The app has a broad rule at index.html:1738-1747 that matches
   [class*="modal"] with !important, forcing rgba(6,7,10,0.95) dark glass.
   Every .cs-modal-* class matches that selector. We scope our override
   under #cs-modal-overlay so only Creative Studio modals are affected. */
#cs-modal-overlay .cs-modal-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%) !important;
  color: #111827 !important;
  border: 1px solid rgba(0, 101, 241, 0.18) !important;
}
#cs-modal-overlay .cs-modal-title { color: #0a2540 !important; }
#cs-modal-overlay .cs-modal-body  { color: #4b5563 !important; }
#cs-modal-overlay .cs-modal-close {
  background: #e8f0fe !important;
  color: #0065f1 !important;
}
#cs-modal-overlay .cs-btn-ghost {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #0065f1 !important;
  border: 0.5px solid rgba(0, 101, 241, 0.18) !important;
}
#cs-modal-overlay .cs-btn-primary {
  background: linear-gradient(135deg, #0065f1, #2d7af8) !important;
  color: #ffffff !important;
}
#cs-modal-overlay .cs-tpl-card {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #0a2540 !important;
}
#cs-modal-overlay .cs-tpl-name { color: #0a2540 !important; }

/* === Patch 5: Force transparent backgrounds on inner modal elements ===
   The broad [class*="modal"] rule at index.html:1738 paints
   rgba(6,7,10,0.95) on every class containing "modal". Patch 4 fixed
   the outer .cs-modal-card background but missed the inner elements
   (.cs-modal-title, .cs-modal-body, .cs-modal-actions, .cs-modal-close
   wrapper). Force them transparent so only the card's light gradient
   shows through. */
#cs-modal-overlay .cs-modal-title,
#cs-modal-overlay .cs-modal-body,
#cs-modal-overlay .cs-modal-actions {
  background: transparent !important;
  animation: none !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* Patch 5 — defensive: force readable text on all modal descendants */
#cs-modal-overlay .cs-modal-card * {
  color: inherit;
}
#cs-modal-overlay .cs-modal-card {
  color: #111827 !important;
}

/* ═══ Sprint 2 Session 1: Brand Kit Wizard CSS (.cs-wiz-*) ═══
   Scoped under #cs-modal-overlay so these styles apply only inside the
   wizard modal. Inherits the Patch 4/5 light-glass modal card look. */

#cs-modal-overlay .cs-wiz-progress {
  display: flex; gap: 8px; margin-bottom: 14px; justify-content: center;
}
#cs-modal-overlay .cs-wiz-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(0,101,241,0.15);
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
}
#cs-modal-overlay .cs-wiz-dot.active { background: #0065f1; transform: scale(1.4); }
#cs-modal-overlay .cs-wiz-dot.done   { background: linear-gradient(135deg,#0065f1,#00c8ff); }

#cs-modal-overlay .cs-wiz-step-label {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #0065f1; font-weight: 800; margin-bottom: 12px; text-align: center;
}

#cs-modal-overlay .cs-wiz-info-banner {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; margin-bottom: 14px;
  background: rgba(0,101,241,0.08) !important;
  border: 1px solid rgba(0,101,241,0.15) !important;
  border-radius: 10px !important;
  font-size: 0.82rem; color: #0a2540 !important; line-height: 1.55;
}

#cs-modal-overlay .cs-wiz-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px;
}
@media (max-width: 900px) {
  #cs-modal-overlay .cs-wiz-two-col { grid-template-columns: 1fr; }
}

/* Corner picker (2x2 grid inside a 16:9 frame) */
#cs-modal-overlay .cs-wiz-corner-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  aspect-ratio: 16 / 9;
  padding: 14px;
  background: rgba(0,101,241,0.04) !important;
  border: 1px solid rgba(0,101,241,0.12) !important;
  border-radius: 12px !important;
}
#cs-modal-overlay .cs-wiz-corner-btn {
  border: 2px dashed rgba(0,101,241,0.25) !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #6b7280 !important;
  cursor: pointer;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
#cs-modal-overlay .cs-wiz-corner-btn:hover {
  border-color: rgba(0,101,241,0.45) !important;
  background: rgba(0,101,241,0.05) !important;
}
#cs-modal-overlay .cs-wiz-corner-btn.selected {
  border-color: #0065f1 !important;
  border-style: solid !important;
  background: rgba(0,101,241,0.10) !important;
  color: #0065f1 !important;
}

/* 16:9 preview frame */
#cs-modal-overlay .cs-wiz-preview-frame {
  position: relative;
  width: 100%; aspect-ratio: 16 / 9;
  border: 2px dashed rgba(0,101,241,0.25);
  border-radius: 12px;
  overflow: hidden;
  background: #0a2540;
}
#cs-modal-overlay .cs-wiz-preview-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(0,200,255,0.18), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(124,58,237,0.18), transparent 55%),
    linear-gradient(135deg, #1a2540 0%, #0a2540 100%);
}
#cs-modal-overlay .cs-wiz-preview-logo {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  padding: 6px 10px;
  background: rgba(255,255,255,0.92);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
#cs-modal-overlay .cs-wiz-preview-logo img {
  max-width: 100%; max-height: 56px; object-fit: contain; display: block;
}
#cs-modal-overlay .cs-wiz-preview-logo.pos-top-left     { top: 4%; left: 4%; }
#cs-modal-overlay .cs-wiz-preview-logo.pos-top-right    { top: 4%; right: 4%; }
#cs-modal-overlay .cs-wiz-preview-logo.pos-bottom-left  { bottom: 4%; left: 4%; }
#cs-modal-overlay .cs-wiz-preview-logo.pos-bottom-right { bottom: 4%; right: 4%; }

/* Side-by-side team layout */
#cs-modal-overlay .cs-wiz-preview-sidebyside {
  display: flex; align-items: center; gap: 6px;
}
#cs-modal-overlay .cs-wiz-preview-sidebyside .cs-wiz-preview-team img,
#cs-modal-overlay .cs-wiz-preview-powered     .cs-wiz-preview-team img {
  max-height: 42px; /* strictly smaller than ZOOM per rule 4 */
  max-width: 100%; object-fit: contain;
}
#cs-modal-overlay .cs-wiz-preview-sidebyside .cs-wiz-preview-zoom img,
#cs-modal-overlay .cs-wiz-preview-powered     .cs-wiz-preview-zoom img {
  max-height: 56px; max-width: 100%; object-fit: contain;
}
#cs-modal-overlay .cs-wiz-preview-divider {
  width: 1px; height: 28px; background: rgba(10,37,64,0.25);
}

/* Powered by team layout */
#cs-modal-overlay .cs-wiz-preview-powered {
  display: flex; align-items: center; gap: 8px; flex-wrap: nowrap;
}
#cs-modal-overlay .cs-wiz-preview-powered-label {
  font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #6b7280; font-weight: 700; white-space: nowrap;
}

/* Agent lower-third overlay (Step 4 preview) */
#cs-modal-overlay .cs-wiz-preview-overlay {
  position: absolute;
  left: 4%; right: 40%;
  bottom: 4%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.94);
  border-left: 4px solid #0065f1;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
#cs-modal-overlay .cs-wiz-preview-overlay .cs-wiz-preview-name {
  font-size: 0.95rem; font-weight: 800; color: #0a2540; margin-bottom: 3px;
}
#cs-modal-overlay .cs-wiz-preview-overlay .cs-wiz-preview-slogan {
  font-size: 0.7rem; color: #4b5563; margin-bottom: 3px;
}
#cs-modal-overlay .cs-wiz-preview-overlay .cs-wiz-preview-contact {
  font-size: 0.62rem; color: #6b7280; letter-spacing: 0.02em;
}

/* Slider */
#cs-modal-overlay .cs-wiz-slider-row {
  display: flex; align-items: center; gap: 14px; margin-top: 8px;
}
#cs-modal-overlay .cs-wiz-slider {
  flex: 1;
  -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 3px;
  background: rgba(0,101,241,0.15);
  outline: none;
}
#cs-modal-overlay .cs-wiz-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg,#0065f1,#2d7af8);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,101,241,0.35);
}
#cs-modal-overlay .cs-wiz-slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg,#0065f1,#2d7af8);
  cursor: pointer; border: none;
}
#cs-modal-overlay .cs-wiz-slider-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem; color: #0065f1; font-weight: 700;
  min-width: 48px; text-align: right;
}

/* Form fields */
#cs-modal-overlay .cs-wiz-field {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px;
}
#cs-modal-overlay .cs-wiz-field-label {
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700; color: #0a2540;
}
#cs-modal-overlay .cs-wiz-field-input {
  width: 100%;
  padding: 10px 12px;
  border: 0.5px solid rgba(0,101,241,0.18);
  border-radius: 10px;
  background: rgba(255,255,255,0.94);
  color: #111827;
  font-size: 0.88rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  outline: none; box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#cs-modal-overlay .cs-wiz-field-input:focus {
  border-color: #0065f1;
  box-shadow: 0 0 0 3px rgba(0,101,241,0.12);
}
#cs-modal-overlay .cs-wiz-field-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 640px) {
  #cs-modal-overlay .cs-wiz-field-grid-2 { grid-template-columns: 1fr; }
}

/* Color swatch */
#cs-modal-overlay .cs-wiz-color-row {
  display: flex; align-items: center; gap: 12px;
}
#cs-modal-overlay .cs-wiz-color-swatch {
  width: 42px; height: 42px; border-radius: 10px;
  border: 0.5px solid rgba(0,101,241,0.25);
  cursor: pointer; padding: 0;
  -webkit-appearance: none; appearance: none;
  background: transparent;
}
#cs-modal-overlay .cs-wiz-color-swatch::-webkit-color-swatch-wrapper { padding: 0; }
#cs-modal-overlay .cs-wiz-color-swatch::-webkit-color-swatch         { border: none; border-radius: 10px; }

/* Logo upload (drag/drop style) */
#cs-modal-overlay .cs-wiz-logo-upload {
  display: block;
  border: 2px dashed rgba(0,101,241,0.25) !important;
  background: rgba(0,101,241,0.03) !important;
  border-radius: 12px !important;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
#cs-modal-overlay .cs-wiz-logo-upload:hover {
  border-color: rgba(0,101,241,0.45) !important;
  background: rgba(0,101,241,0.07) !important;
}
#cs-modal-overlay .cs-wiz-logo-upload input[type="file"] { display: none; }
#cs-modal-overlay .cs-wiz-logo-upload-hint {
  font-size: 0.72rem; color: #6b7280; margin-top: 8px;
}

/* Radio-card (team layout picker) */
#cs-modal-overlay .cs-wiz-radio-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px;
  border: 0.5px solid rgba(0,101,241,0.18) !important;
  background: rgba(255,255,255,0.92) !important;
  border-radius: 12px !important;
  cursor: pointer;
  transition: all 0.2s ease;
}
#cs-modal-overlay .cs-wiz-radio-card:hover {
  border-color: rgba(0,101,241,0.35) !important;
  background: rgba(0,101,241,0.05) !important;
}
#cs-modal-overlay .cs-wiz-radio-card.selected {
  border-color: #0065f1 !important;
  background: rgba(0,101,241,0.08) !important;
  box-shadow: 0 0 0 3px rgba(0,101,241,0.10);
}
#cs-modal-overlay .cs-wiz-radio-card input[type="radio"] { accent-color: #0065f1; }
#cs-modal-overlay .cs-wiz-radio-title {
  font-size: 0.88rem; font-weight: 800; color: #0a2540;
}
#cs-modal-overlay .cs-wiz-radio-hint {
  font-size: 0.72rem; color: #6b7280;
  font-family: 'JetBrains Mono', monospace;
}

/* ═══ Sprint 2 Session 1 POLISH (Fixes A, C, D, E) ═══ */

/* Polish C + D: no white pill, no transition on logo width. The preview
   logo floats directly on the video background, and size-slider updates
   are instant (no animation lag). */
#cs-modal-overlay .cs-wiz-preview-logo {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  transition: none !important;
}
/* Polish C: divider between side-by-side team logos is now on a dark
   navy background (no white pill to contrast against), so make it light. */
#cs-modal-overlay .cs-wiz-preview-divider {
  background: rgba(255, 255, 255, 0.35) !important;
}

/* Polish E: 6-position picker (3 columns x 2 rows). */
#cs-modal-overlay .cs-wiz-corner-picker {
  grid-template-columns: 1fr 1fr 1fr !important;
}
/* Polish E: new top-center and bottom-center preview positions. */
#cs-modal-overlay .cs-wiz-preview-logo.pos-top-center {
  top: 4%; left: 50%; transform: translateX(-50%);
}
#cs-modal-overlay .cs-wiz-preview-logo.pos-bottom-center {
  bottom: 4%; left: 50%; transform: translateX(-50%);
}
/* Polish E: when logo is bottom-center, narrow the agent lower-third
   so it does not collide with the centered logo. */
#cs-modal-overlay .cs-wiz-preview-overlay.cs-wiz-overlay-avoid-bottom-center {
  right: auto;
  left: 4%;
  max-width: 36%;
}

/* ═══ Polish A: Brand Kit "active" card state on the landing page ═══ */

/* Active-state banner tint: subtle green glass to signal "saved" without
   changing the banner's layout/padding. */
#creativestudio .cs-brand-kit-banner.cs-brand-kit-banner-active {
  background: linear-gradient(135deg, rgba(236,253,245,0.95), rgba(240,253,250,0.92));
  border: 0.5px solid rgba(22,163,74,0.22);
}

/* Two direct children: left-group (preview + title), then Edit button. */
#creativestudio .cs-brand-kit-active-left {
  display: flex; align-items: center; gap: 16px;
  flex: 1; min-width: 0;
}
#creativestudio .cs-brand-kit-active-info-text {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
#creativestudio .cs-brand-kit-active-title {
  font-size: 1.05rem; font-weight: 800; color: #0a2540;
  display: flex; align-items: center; gap: 10px;
  letter-spacing: -0.01em;
}
#creativestudio .cs-brand-kit-active-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff; font-weight: 800; font-size: 0.82rem;
  box-shadow: 0 2px 6px rgba(22,163,74,0.28);
}
#creativestudio .cs-brand-kit-active-sub {
  font-size: 0.78rem; color: #4b5563; margin: 0; line-height: 1.55;
}

/* Mini 16:9 preview with the agent's logo in chosen position. */
#creativestudio .cs-brand-kit-active-preview {
  position: relative;
  width: 200px; aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(0,101,241,0.15);
  box-shadow: 0 4px 12px rgba(0,101,241,0.10);
  flex-shrink: 0;
}
#creativestudio .cs-brand-kit-active-preview-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(0,200,255,0.18), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(124,58,237,0.18), transparent 55%),
    linear-gradient(135deg, #1a2540 0%, #0a2540 100%);
}
#creativestudio .cs-brand-kit-active-preview-logo {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  background: transparent; padding: 0; border-radius: 0; box-shadow: none;
  transition: none;
}
#creativestudio .cs-brand-kit-active-preview-logo img {
  max-width: 100%; max-height: 32px; object-fit: contain; display: block;
}
/* All 6 positions on the mini preview. */
#creativestudio .cs-brand-kit-active-preview-logo.pos-top-left     { top: 6%; left: 6%; }
#creativestudio .cs-brand-kit-active-preview-logo.pos-top-right    { top: 6%; right: 6%; }
#creativestudio .cs-brand-kit-active-preview-logo.pos-top-center   { top: 6%; left: 50%; transform: translateX(-50%); }
#creativestudio .cs-brand-kit-active-preview-logo.pos-bottom-left  { bottom: 6%; left: 6%; }
#creativestudio .cs-brand-kit-active-preview-logo.pos-bottom-right { bottom: 6%; right: 6%; }
#creativestudio .cs-brand-kit-active-preview-logo.pos-bottom-center{ bottom: 6%; left: 50%; transform: translateX(-50%); }

/* Narrow screens: stack preview above the text, keep Edit button full width. */
@media (max-width: 640px) {
  #creativestudio .cs-brand-kit-active-left { flex-direction: column; align-items: flex-start; }
  #creativestudio .cs-brand-kit-active-preview { width: 100%; }
}

/* ═══ Polish Patch 2 — slider-lag root cause (CSS) ═══
   Root cause of the laggy size slider: the broad rule at index.html:1738
   forces `backdrop-filter: blur(20px) !important` and
   `animation: z7bAppleGlow 6s ease infinite !important` on every class
   containing "modal". `.cs-modal-card` matches and inherits both. During
   a slider drag, each style.width change on the preview logo forced the
   browser to re-rasterize the backdrop blur for the whole card (GPU
   expensive) and re-composite the running animation layer. Cancelling
   both here makes the slider instant. `backdrop-filter: none` does NOT
   kill the dim overlay backdrop on #cs-modal-overlay itself — that has
   its own rule. Only the inner card is cleaned up. */
#cs-modal-overlay .cs-modal-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  animation: none !important;
}
/* Also kill blur and animation on inner preview elements so the rAF
   logo-width update is the only work the browser has to do. */
#cs-modal-overlay .cs-wiz-preview-frame,
#cs-modal-overlay .cs-wiz-preview-bg,
#cs-modal-overlay .cs-wiz-preview-logo,
#cs-modal-overlay .cs-wiz-preview-logo img {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  animation: none !important;
  transition: none !important;
}

#cs-editor-modal {
  display: none;
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(10, 37, 64, 0.82);
  padding: 16px;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #111827;
}
#cs-editor-modal.cs-editor-open { display: flex; }

#cs-editor-modal .cs-editor-card {
  position: relative;
  width: 100%; height: 100%;
  background: #f0f2f7;
  border-radius: 14px;
  border: 1px solid rgba(0, 101, 241, 0.18);
  box-shadow: 0 24px 64px rgba(0, 101, 241, 0.18);
  display: grid;
  grid-template-rows: 56px minmax(200px, 1fr) 300px;
  overflow: hidden;
}

/* Session 2A mirror of Polish Patch 2 fix: kill blur + animation that the
   broad [class*="modal"] rule (index.html:1738) slaps onto everything
   matching "modal". Without this the 60fps z7bAppleGlow animation on the
   card keeps the compositor busy during every timeline interaction. */
#cs-editor-modal,
#cs-editor-modal .cs-editor-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  animation: none !important;
}

/* ── Toolbar ───────────────────────────────────────────────── */
#cs-editor-modal .cs-editor-toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  background: #ffffff;
  border-bottom: 0.5px solid rgba(0, 101, 241, 0.18);
}
#cs-editor-modal .cs-editor-close {
  width: 36px; height: 36px; border-radius: 10px;
  border: none; background: #e8f0fe; color: #0065f1;
  cursor: pointer; font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
#cs-editor-modal .cs-editor-close:hover { background: rgba(0, 101, 241, 0.18); }
#cs-editor-modal .cs-editor-title {
  min-width: 160px; max-width: 340px;
  font-size: 0.95rem; font-weight: 700;
  padding: 7px 10px;
  background: rgba(0, 101, 241, 0.04);
  border: 0.5px solid rgba(0, 101, 241, 0.18);
  border-radius: 8px;
  color: #0a2540;
  font-family: inherit;
}
#cs-editor-modal .cs-editor-title:focus {
  outline: none; border-color: #0065f1; background: #fff;
}
#cs-editor-modal .cs-editor-aspect-badge {
  font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 800; padding: 4px 10px; border-radius: 999px;
  background: #e8f0fe; color: #0065f1;
  flex-shrink: 0;
}
#cs-editor-modal .cs-editor-save-status {
  font-size: 0.72rem; font-weight: 700; color: #6b7280;
  margin-right: auto; padding-left: 8px; min-width: 120px;
}
#cs-editor-modal .cs-editor-save-status.saving { color: #b45309; }
#cs-editor-modal .cs-editor-save-status.saved  { color: #15803d; }
#cs-editor-modal .cs-editor-save-status.error  { color: #b91c1c; }
#cs-editor-modal .cs-editor-tb-btn {
  background: #ffffff; color: #0a2540;
  border: 0.5px solid rgba(0, 101, 241, 0.22);
  border-radius: 8px;
  padding: 7px 12px; cursor: pointer;
  font-size: 0.78rem; font-weight: 700;
  font-family: inherit;
}
#cs-editor-modal .cs-editor-tb-btn:hover { background: #e8f0fe; border-color: #0065f1; }
#cs-editor-modal .cs-editor-tb-btn:disabled { opacity: 0.4; cursor: not-allowed; }
#cs-editor-modal .cs-editor-tb-btn.primary {
  background: #0065f1; color: #fff; border-color: #0065f1;
}
#cs-editor-modal .cs-editor-tb-btn.primary:hover { background: #004fc2; }

/* ── Preview area ──────────────────────────────────────────── */
#cs-editor-modal .cs-editor-preview {
  position: relative;
  background: linear-gradient(135deg, #0a2540 0%, #0f172a 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px; overflow: hidden;
}
#cs-editor-modal .cs-editor-preview-frame {
  position: relative;
  background: #000;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  max-height: 72%;
}
#cs-editor-modal .cs-editor-preview-frame.ar-16-9 {
  aspect-ratio: 16 / 9; width: min(820px, 78%);
}
#cs-editor-modal .cs-editor-preview-frame.ar-9-16 {
  aspect-ratio: 9 / 16; height: min(460px, 72%);
}
#cs-editor-modal .cs-editor-preview-frame.ar-1-1 {
  aspect-ratio: 1 / 1; width: min(460px, 55%);
}
#cs-editor-modal .cs-editor-preview-empty {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem; text-align: center; padding: 20px;
}
#cs-editor-modal .cs-editor-preview-img,
#cs-editor-modal .cs-editor-preview-video {
  max-width: 100%; max-height: 100%; object-fit: contain;
}
/* Session 2B: playback video elements sit stacked on top of each other in
   the same frame; only one is display:block at a time, managed by JS. */
#cs-editor-modal .cs-editor-preview-video {
  background: #000;
}
#cs-editor-modal .cs-editor-playback {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem; font-weight: 600;
}
#cs-editor-modal .cs-editor-play-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: #0065f1; color: #fff;
  cursor: pointer; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
#cs-editor-modal .cs-editor-play-btn:hover { background: #004fc2; }
#cs-editor-modal .cs-editor-time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ── Timeline ──────────────────────────────────────────────── */
#cs-editor-modal .cs-editor-timeline-wrap {
  background: #ffffff;
  border-top: 0.5px solid rgba(0, 101, 241, 0.18);
  display: grid; grid-template-rows: 44px minmax(0, 1fr);
  min-height: 0;
}
#cs-editor-modal .cs-editor-timeline-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
  border-bottom: 0.5px solid rgba(0, 101, 241, 0.12);
  background: #f7f9fc;
}
#cs-editor-modal .cs-editor-timeline-toolbar .cs-editor-tb-btn { padding: 5px 10px; }
#cs-editor-modal .cs-editor-zoom-group {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
  font-size: 0.7rem; color: #6b7280;
}

#cs-editor-modal .cs-tl-body {
  position: relative; overflow: auto;
  display: grid; grid-template-columns: 140px minmax(0, 1fr);
  background: #fff;
}
#cs-editor-modal .cs-tl-headers {
  position: sticky; left: 0; top: 0; z-index: 3;
  background: #f7f9fc;
  border-right: 0.5px solid rgba(0, 101, 241, 0.12);
}
#cs-editor-modal .cs-tl-headers-spacer {
  height: 22px;
  border-bottom: 0.5px solid rgba(0, 101, 241, 0.12);
  background: #f7f9fc;
}
#cs-editor-modal .cs-tl-scroll {
  position: relative;
}
#cs-editor-modal .cs-tl-ruler {
  height: 22px; position: sticky; top: 0; z-index: 2;
  border-bottom: 0.5px solid rgba(0, 101, 241, 0.12);
  background: #f7f9fc;
  font-size: 0.6rem; color: #6b7280;
  user-select: none;
}
#cs-editor-modal .cs-tl-tick {
  position: absolute; top: 0; bottom: 0;
  border-left: 1px solid rgba(0, 101, 241, 0.10);
  padding-left: 4px; padding-top: 4px;
  font-variant-numeric: tabular-nums;
}
#cs-editor-modal .cs-tl-track-header {
  height: 48px;
  display: flex; align-items: center; gap: 6px;
  padding: 0 10px;
  border-bottom: 0.5px solid rgba(0, 101, 241, 0.08);
  font-size: 0.72rem; font-weight: 700; color: #0a2540;
  background: #f7f9fc;
}
#cs-editor-modal .cs-tl-th-icon {
  width: 8px; height: 8px; border-radius: 3px;
  flex-shrink: 0;
}
#cs-editor-modal .cs-tl-th-icon.video   { background: #0065f1; }
#cs-editor-modal .cs-tl-th-icon.audio   { background: #10b981; }
#cs-editor-modal .cs-tl-th-icon.overlay { background: #8b5cf6; }
#cs-editor-modal .cs-tl-th-name {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#cs-editor-modal .cs-tl-th-toggle {
  background: none; border: none; cursor: pointer;
  color: #6b7280; font-size: 0.85rem; padding: 2px 4px;
  font-family: inherit;
}
#cs-editor-modal .cs-tl-th-toggle.off { opacity: 0.35; }
#cs-editor-modal .cs-tl-th-toggle:hover { color: #0065f1; }

#cs-editor-modal .cs-tl-track {
  position: relative;
  height: 48px;
  border-bottom: 0.5px solid rgba(0, 101, 241, 0.08);
  background: #fff;
  cursor: crosshair;
}
#cs-editor-modal .cs-tl-track.locked { background: repeating-linear-gradient(45deg, #fff, #fff 8px, #f3f4f6 8px, #f3f4f6 16px); cursor: default; }
#cs-editor-modal .cs-tl-track.hidden-track { opacity: 0.35; }

#cs-editor-modal .cs-tl-clip {
  position: absolute; top: 6px; bottom: 6px;
  border-radius: 6px;
  border: 0.5px solid rgba(0, 0, 0, 0.15);
  cursor: grab;
  overflow: hidden;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
#cs-editor-modal .cs-tl-clip.dragging { cursor: grabbing; opacity: 0.85; }
#cs-editor-modal .cs-tl-clip.video { background: linear-gradient(135deg, #3b82f6, #0065f1); color: #fff; }
#cs-editor-modal .cs-tl-clip.image { background: linear-gradient(135deg, #60a5fa, #3b82f6); color: #fff; }
#cs-editor-modal .cs-tl-clip.audio { background: linear-gradient(135deg, #34d399, #059669); color: #fff; }
#cs-editor-modal .cs-tl-clip.overlay, #cs-editor-modal .cs-tl-clip.text { background: linear-gradient(135deg, #a78bfa, #7c3aed); color: #fff; }
#cs-editor-modal .cs-tl-clip.selected { outline: 2px solid #0a2540; outline-offset: 1px; z-index: 2; }
#cs-editor-modal .cs-tl-clip-label {
  font-size: 0.68rem; font-weight: 700;
  padding: 4px 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}
#cs-editor-modal .cs-tl-clip-handle {
  position: absolute; top: 0; bottom: 0; width: 6px;
  cursor: ew-resize;
  background: rgba(255, 255, 255, 0.35);
}
#cs-editor-modal .cs-tl-clip-handle.left  { left: 0;  border-radius: 6px 0 0 6px; }
#cs-editor-modal .cs-tl-clip-handle.right { right: 0; border-radius: 0 6px 6px 0; }

#cs-editor-modal .cs-tl-playhead {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: #ef4444;
  z-index: 5;
  pointer-events: none;
}
#cs-editor-modal .cs-tl-playhead-handle {
  position: absolute; top: 0; left: -5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #ef4444;
  cursor: ew-resize;
  box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4);
  pointer-events: auto;
}

/* ── Desktop-only message ──────────────────────────────────── */
#cs-editor-modal .cs-editor-desktop-only {
  margin: auto; max-width: 420px; text-align: center;
  padding: 28px 24px; background: #fff;
  border-radius: 14px;
  border: 0.5px solid rgba(0, 101, 241, 0.18);
  box-shadow: 0 10px 30px rgba(0, 101, 241, 0.10);
}
#cs-editor-modal .cs-editor-desktop-only h3 {
  font-size: 1rem; color: #0a2540; margin: 0 0 8px 0;
}
#cs-editor-modal .cs-editor-desktop-only p {
  font-size: 0.82rem; color: #4b5563; margin: 0 0 16px 0; line-height: 1.5;
}

/* ── Session 2A admin-only test button (removed in 2H) ─────── */
.cs-editor-test-btn-wrap {
  display: flex; justify-content: flex-end;
  margin: 0 0 18px 0;
}
.cs-editor-test-btn {
  background: #0a2540; color: #fff;
  border: none; border-radius: 10px;
  padding: 9px 16px; font-size: 0.8rem; font-weight: 800;
  cursor: pointer; letter-spacing: 0.02em;
  font-family: "Plus Jakarta Sans", sans-serif;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.22);
}
.cs-editor-test-btn:hover { background: #0065f1; }
