/* Creator Tree site theme for Studio Lite (start + working screens).
   Kept in its own file so the editor code stays untouched; loaded last in <head>.
   The full-screen editor keeps its own light look (see the :has() rules below). */
:root{
  --text:#1c1530;--muted:#6b6780;--faint:#9a93ad;--bg:#fffdfb;--panel:#fff;--border:#ece8f3;
  --accent:#ec4899;--accent2:#a855f7;--sel:#fff1f6;
  --g:linear-gradient(115deg,#f97316 0%,#fb7185 45%,#a855f7 100%);
}
body{font-family:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body:not(:has(#editor:not(.hide))){
  background:#fffdfb;
  background-image:radial-gradient(900px 520px at 12% -6%,rgba(253,186,116,.40),transparent 70%),radial-gradient(800px 520px at 92% -4%,rgba(249,168,212,.38),transparent 70%),radial-gradient(900px 600px at 55% 38%,rgba(216,180,254,.26),transparent 70%);
  background-repeat:no-repeat;
}
.card{border-radius:22px;box-shadow:0 24px 50px -32px rgba(76,29,149,.22)}
.btn{border-radius:999px}
.btn.primary{box-shadow:0 8px 22px -8px rgba(236,72,153,.55)}
.drop:hover,.drop.on{background:#fff7fb}
.kind{border-radius:16px}
header.brand h1{letter-spacing:-.4px}
header.brand a{color:#c2410c}

/* Site header (added by ct-theme.js) — hidden while the full-screen editor is open */
.ct-topbar{position:sticky;top:0;z-index:40;background:rgba(255,253,251,.85);backdrop-filter:saturate(160%) blur(14px);-webkit-backdrop-filter:saturate(160%) blur(14px);border-bottom:1px solid #ece8f3}
.ct-topbar-in{max-width:1140px;margin:0 auto;padding:0 20px;height:64px;display:flex;align-items:center;gap:22px}
.ct-topbar .ct-b{display:flex;align-items:center;gap:9px;font-weight:800;font-size:17px;letter-spacing:-.3px;color:#1c1530;text-decoration:none;white-space:nowrap;margin-right:auto}
.ct-topbar .ct-b img{width:32px;height:32px;border-radius:9px;background:#fff;box-shadow:0 2px 8px rgba(249,115,22,.25)}
.ct-topbar a.ct-l{font-size:14.5px;font-weight:600;color:#6b6780;text-decoration:none}
.ct-topbar a.ct-l:hover,.ct-topbar a.ct-l.on{color:#1c1530}
.ct-topbar .ct-t{width:38px;height:38px;border-radius:999px;border:1px solid #ece8f3;background:#fff;color:#6b6780;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
body:has(#editor:not(.hide)) .ct-topbar{display:none}
@media (max-width:700px){.ct-topbar a.ct-l{display:none}.ct-topbar-in{padding:0 14px;height:58px;gap:10px}}

/* ── Dark (Graphite, orange glow up top fading to purple) — start/working screens only ── */
html.dark body:not(:has(#editor:not(.hide))){
  --text:#f2f2f3;--muted:#a6a6ae;--faint:#77777f;--bg:#0f0f11;--panel:rgba(23,23,26,.86);--border:#26262a;
  --sel:rgba(236,72,153,.12);--okbg:rgba(16,185,129,.14);--ok:#6ee7b7;--warnbg:rgba(251,191,36,.14);--warn:#fcd34d;--badbg:rgba(239,68,68,.15);--bad:#fca5a5;
  background-color:#0f0f11;
  background-image:radial-gradient(1100px 700px at 50% 0%,rgba(249,115,22,.22),transparent 70%),radial-gradient(900px 700px at 100% 40%,rgba(251,113,133,.09),transparent 70%),radial-gradient(1200px 800px at 55% 100%,rgba(168,85,247,.24),transparent 70%);
  min-height:100vh;
}
html.dark body:not(:has(#editor:not(.hide))) .btn.plain,
html.dark body:not(:has(#editor:not(.hide))) .kind{background:#18181b;border-color:#27272b;color:#f2f2f3}
html.dark body:not(:has(#editor:not(.hide))) .note{background:#18181b}
html.dark body:not(:has(#editor:not(.hide))) .drop:hover,html.dark body:not(:has(#editor:not(.hide))) .drop.on{background:rgba(236,72,153,.06)}
html.dark body:not(:has(#editor:not(.hide))) .card{box-shadow:none}
html.dark body:not(:has(#editor:not(.hide))) header.brand a{color:#fb923c}
html.dark .ct-topbar{background:rgba(15,15,17,.72);border-bottom-color:rgba(255,255,255,.06)}
html.dark .ct-topbar .ct-b{color:#fff}
html.dark .ct-topbar .ct-b img{background:#1d1d21;box-shadow:none}
html.dark .ct-topbar a.ct-l{color:#9a9aa3}
html.dark .ct-topbar a.ct-l:hover,html.dark .ct-topbar a.ct-l.on{color:#fff}
html.dark .ct-topbar .ct-t{background:#18181b;border-color:#27272b;color:#fdba74}
