/* ============================================================================
   CoConvo — Batch Studio  ·  PURELY ADDITIVE
   ID likeness · Vision Board · Agentic Content Calendar · Auto-post · Growth.
   Self-contained overlay (z-index above the app, below nothing it shouldn't be).
   ============================================================================ */
.bs-root{
  --bs-bg:#0b0f1c; --bs-bg2:#0e1430; --bs-surface:rgba(20,28,48,.7);
  --bs-stroke:rgba(148,163,184,.18); --bs-stroke2:rgba(148,163,184,.30);
  --bs-ink:#eef2fb; --bs-soft:#aab6cd; --bs-faint:#7686a3;
  --bs-accent:#8b5cf6; --bs-accent2:#ec4899; --bs-good:#34d399; --bs-bad:#f87171;
  --bs-aurora:linear-gradient(135deg,#8b5cf6,#ec4899);
  display:none; position:fixed; inset:0; z-index:420; color:var(--bs-ink);
  font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,sans-serif;
  background:radial-gradient(1200px 600px at 12% -10%,rgba(139,92,246,.14),transparent 60%),
    radial-gradient(1000px 600px at 110% 0,rgba(236,72,153,.10),transparent 55%),
    linear-gradient(180deg,var(--bs-bg),var(--bs-bg2));
  grid-template-rows:auto 1fr;
}
.bs-root.bs-open{display:grid}
body.bs-locked{overflow:hidden}

.bs-header{display:flex; align-items:center; gap:14px; padding:12px 18px; border-bottom:1px solid var(--bs-stroke); background:var(--bs-surface); backdrop-filter:saturate(150%) blur(14px)}
.bs-brand{display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px}
.bs-brand small{display:block; font-weight:500; font-size:11px; color:var(--bs-faint)}
.bs-logo{width:30px; height:30px; border-radius:9px; display:grid; place-items:center; background:var(--bs-aurora); color:#fff}
.bs-sp{flex:1}
.bs-tabs{display:flex; gap:6px}
.bs-tab{padding:8px 14px; border-radius:10px; cursor:pointer; font-weight:600; font-size:13px; color:var(--bs-soft); border:1px solid transparent}
.bs-tab.on{background:var(--bs-surface); color:var(--bs-ink); border-color:var(--bs-stroke2)}
.bs-x{width:36px; height:36px; border-radius:10px; border:1px solid var(--bs-stroke); background:var(--bs-surface); color:var(--bs-soft); cursor:pointer; font-size:18px}
.bs-x:hover{color:var(--bs-bad)}

.bs-body{min-height:0; overflow:auto; padding:22px clamp(14px,4vw,48px)}
.bs-panel{display:none; max-width:1180px; margin:0 auto}
.bs-panel.on{display:block}
.bs-h2{font-size:20px; font-weight:800; margin:0 0 4px}
.bs-sub{color:var(--bs-faint); font-size:13px; margin:0 0 18px}
.bs-card{background:var(--bs-surface); border:1px solid var(--bs-stroke); border-radius:16px; padding:18px; margin-bottom:16px}
.bs-row{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.bs-btn{border:none; cursor:pointer; font-weight:700; font-size:13px; padding:9px 16px; border-radius:10px; background:var(--bs-surface); color:var(--bs-ink); border:1px solid var(--bs-stroke2)}
.bs-btn.pri{background:var(--bs-aurora); color:#fff; border:none}
.bs-btn:disabled{opacity:.5; cursor:default}
.bs-input,.bs-area,.bs-sel{width:100%; background:rgba(10,14,26,.6); border:1px solid var(--bs-stroke2); color:var(--bs-ink); border-radius:10px; padding:10px 12px; font:inherit; font-size:13px}
.bs-area{min-height:74px; resize:vertical}
.bs-label{font-size:12px; color:var(--bs-soft); font-weight:600; margin:0 0 5px; display:block}
.bs-chip{display:inline-flex; align-items:center; gap:7px; background:rgba(139,92,246,.16); border:1px solid rgba(139,92,246,.3); color:var(--bs-ink); padding:5px 11px; border-radius:999px; font-size:12px; font-weight:600}
.bs-muted{color:var(--bs-faint); font-size:12px}
.bs-toast-note{font-size:12px; color:var(--bs-faint); margin-top:8px}

/* ID strength meter */
.bs-id-head{display:flex; gap:16px; align-items:center; flex-wrap:wrap}
.bs-id-photos{display:flex; gap:8px; flex-wrap:wrap}
.bs-id-photo{width:64px; height:64px; border-radius:12px; object-fit:cover; border:1px solid var(--bs-stroke2)}
.bs-id-add{width:64px; height:64px; border-radius:12px; border:1px dashed var(--bs-stroke2); background:transparent; color:var(--bs-soft); font-size:26px; cursor:pointer; display:grid; place-items:center}
.bs-meter{height:10px; border-radius:999px; background:rgba(148,163,184,.18); overflow:hidden; min-width:200px; flex:1}
.bs-meter>i{display:block; height:100%; background:var(--bs-aurora); width:0; transition:width .35s}
.bs-id-state{font-weight:800}

/* Vision board */
.bs-board-tabs{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px}
.bs-pins{display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:10px}
.bs-pin{position:relative; aspect-ratio:1; border-radius:12px; overflow:hidden; border:1px solid var(--bs-stroke2); cursor:pointer}
.bs-pin img{width:100%; height:100%; object-fit:cover; display:block}
.bs-pin .bs-pin-x{position:absolute; top:4px; right:4px; background:rgba(0,0,0,.55); color:#fff; border:none; border-radius:8px; width:24px; height:24px; cursor:pointer}
.bs-pin .bs-pin-link{position:absolute; top:4px; left:4px; background:rgba(0,0,0,.55); color:#fff; border:none; border-radius:8px; width:24px; height:24px; cursor:pointer; font-size:11px}
.bs-drop{border:1.5px dashed var(--bs-stroke2); border-radius:14px; padding:22px; text-align:center; color:var(--bs-faint); margin-bottom:12px}
.bs-drop.drag{border-color:var(--bs-accent); color:var(--bs-ink)}

/* Calendar */
.bs-cal-grid{display:grid; grid-template-columns:repeat(7,1fr); gap:8px}
.bs-day{position:relative; aspect-ratio:4/5; border-radius:12px; overflow:hidden; border:1px solid var(--bs-stroke2); background:linear-gradient(135deg,rgba(139,92,246,.18),rgba(236,72,153,.12)); cursor:pointer; min-height:120px}
.bs-day .bs-day-bg{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.bs-day .bs-day-ov{position:absolute; inset:0; padding:8px; display:flex; flex-direction:column; justify-content:space-between; background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.55)); color:#fff}
.bs-day .bs-day-top{display:flex; justify-content:space-between; align-items:flex-start; gap:4px}
.bs-day .bs-pchip{background:rgba(0,0,0,.5); border-radius:999px; padding:2px 8px; font-size:10px; font-weight:700}
.bs-day .bs-day-cap{font-size:11px; line-height:1.3; max-height:46px; overflow:hidden; text-shadow:0 1px 3px rgba(0,0,0,.6)}
.bs-day .bs-day-time{font-size:10px; opacity:.9}
.bs-day.shimmer::after{content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent,rgba(255,255,255,.18),transparent); animation:bs-sh 1.2s infinite}
.bs-day .bs-day-status{position:absolute; left:8px; top:8px; font-size:10px; font-weight:800; background:rgba(0,0,0,.5); padding:2px 7px; border-radius:999px}
.bs-day.approved{outline:2px solid var(--bs-good)}
@keyframes bs-sh{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}

/* Day editor drawer */
.bs-drawer{position:fixed; top:0; right:0; bottom:0; width:min(420px,94vw); background:var(--bs-bg2); border-left:1px solid var(--bs-stroke2); box-shadow:-20px 0 60px -30px #000; z-index:430; transform:translateX(100%); transition:transform .25s; display:flex; flex-direction:column}
.bs-drawer.on{transform:none}
.bs-drawer-head{display:flex; align-items:center; gap:10px; padding:14px 16px; border-bottom:1px solid var(--bs-stroke)}
.bs-drawer-body{padding:16px; overflow:auto; flex:1}
.bs-drawer-prev{width:100%; border-radius:12px; border:1px solid var(--bs-stroke2); margin-bottom:12px; background:#0a0e1a}
.bs-swatches{display:flex; gap:8px; flex-wrap:wrap}
.bs-swatch{width:30px; height:30px; border-radius:8px; cursor:pointer; border:1px solid var(--bs-stroke2)}

.bs-launch{position:fixed; right:18px; bottom:74px; z-index:360; border:none; cursor:pointer; border-radius:999px; padding:11px 16px; font-weight:800; color:#fff; background:var(--bs-aurora); box-shadow:0 12px 30px -12px rgba(124,58,237,.7)}

@media(max-width:760px){
  .bs-cal-grid{grid-template-columns:repeat(2,1fr)}
  .bs-tabs .bs-tab{padding:7px 10px}
}
