/* 🎬 EDITOR SKIN — the home's language carried into the editor's first screen (Patrik 2026-10-14: "This is the very
   first design that we have created … We're going to keep all the features but just turn it into the design that we
   are looking for"). Colour, ground and surfaces only: no element is moved, no id or handler changes. Loaded after
   home.css; every rule is scoped to body.editing, so the home is untouched.
   Language: one solid ground (no header band), dark glass slabs lit along the top edge, amber as the one accent
   for "selected / press this", the clip sitting in a soft amber pool like the upload folder. */

/* one ground: header, page and workspace share --bg */
html body.editing{background:var(--bg)!important;}
html body.editing > header{background:var(--bg)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  border-bottom-color:transparent!important;box-shadow:none!important;}

/* header actions: Export is the ONE amber thing (Patrik 2026-09-28, plan 2 item 3: inside the editor amber is the
   playhead, the selected layer and Export only — components.css #rzws re-points every accent to the neutral --sel
   tokens). Upgrade keeps its quiet outline from components.css. */
html body.editing #exportTop{border-radius:999px!important;border:0!important;color:var(--p-n100)!important;
  background:linear-gradient(180deg,var(--p-w89) 0%,var(--sig,#FF8A3D) 55%,var(--acc-d) 100%)!important;
  box-shadow:0 0 0 1px rgba(255,138,61,.18),0 10px 24px -10px rgba(255,138,61,.55),inset 0 1px 0 rgba(255,255,255,.45)!important;}

/* the panel: a dark glass slab, lit along its top edge */
html body.editing #rzPanel{border:1px solid rgba(255,255,255,.07)!important;border-radius:20px!important;
  background:linear-gradient(180deg,rgba(255,240,225,.035),rgba(255,255,255,.008) 40%),var(--bg)!important;
  box-shadow:inset 0 1px 0 rgba(255,235,210,.08)!important;}
html body.editing #rzNav button.on{border-bottom-color:var(--sel-l,#e9e6e1)!important;}

/* the style tiles: no purple tint; the picked one wears the editor's neutral selection (09-28 rule) */
html body.editing #rzBody #styleCard .sc{background:#0e0c0b!important;border:1px solid rgba(255,255,255,.07)!important;
  border-radius:14px!important;transition:transform .22s var(--ease),border-color .22s ease,box-shadow .22s ease!important;}
html body.editing #rzBody #styleCard .sc:hover{transform:translateY(-2px);border-color:rgba(255,170,100,.4)!important;
  box-shadow:0 14px 30px -18px rgba(0,0,0,.9)!important;}
html body.editing #rzBody #styleCard .sc.on{border-color:var(--sel-l,#e9e6e1)!important;
  box-shadow:0 0 0 1px var(--sel-l,#e9e6e1) inset,0 12px 30px -16px rgba(0,0,0,.8)!important;}
html body.editing #rzBody #styleCard .sc .prev{border-bottom:1px solid rgba(255,255,255,.05)!important;}
html body.editing #rzBody #styleCard .sc .nm{background:rgba(255,255,255,.02);font-weight:600!important;color:var(--tx);}


/* the archive button on each style is gone (Patrik 2026-10-14: "I'm not sure what this folder icon is but I don't
   really want to see it there"). It was "Archive: hide from the Edit tab, keep in Captions"; the hover heart stays. */
html body.editing .archbtn{display:none!important;}

/* the clip: a warm hairline and a deep shadow */
html body.editing #rzPrev .phone{border:1px solid rgba(255,235,210,.12)!important;
  box-shadow:0 40px 90px -40px rgba(0,0,0,.95),0 0 0 1px rgba(0,0,0,.4)!important;}

/* 🧠 "What Captee learned from this reel" — the batch brain's card (PLAN-batch-brain-1014 B1). Global: Apply to all
   runs from the library's folder bar as well as from the editor. */
.askbox.learnbox{width:min(520px,calc(100vw - 32px));padding:26px 26px 22px;border-radius:20px;
  background:linear-gradient(180deg,rgba(255,240,225,.05),rgba(255,255,255,.01) 40%),#121010;
  border:1px solid rgba(255,235,210,.12);box-shadow:inset 0 1px 0 rgba(255,235,210,.1),0 40px 90px -30px rgba(0,0,0,.95);}
.learn-eb{display:inline-flex;align-items:center;gap:8px;font:700 10.5px/1 var(--ui);letter-spacing:.14em;text-transform:uppercase;
  color:var(--acc-l);margin-bottom:12px;}
.learn-eb::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--acc);box-shadow:0 0 10px var(--acc);}
.learnbox h4{font-family:var(--disp)!important;font-weight:500!important;font-size:1.3rem!important;letter-spacing:-.02em;
  color:var(--tx);margin:0 0 6px!important;text-wrap:balance;}
.learnbox > p{color:var(--tx3,#8f877d)!important;font-size:.84rem!important;margin:0 0 16px!important;}
.learnlist{display:flex;flex-direction:column;gap:8px;}
.learnrow{display:flex;align-items:flex-start;gap:14px;padding:14px 16px;border-radius:14px;cursor:pointer;
  border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.025);transition:border-color .2s ease,background .2s ease,opacity .2s ease;}
.learnrow.on{border-color:rgba(255,138,61,.35);background:rgba(255,138,61,.06);}
.learnrow:not(.on){opacity:.6;}
.learnrow input{position:absolute;opacity:0;pointer-events:none;}
.learnsw{flex:none;position:relative;width:34px;height:20px;margin-top:1px;border-radius:999px;background:rgba(255,255,255,.14);transition:background .2s ease;}
.learnsw::after{content:'';position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;transition:transform .2s var(--ease);}
.learnrow.on .learnsw{background:var(--acc);}
.learnrow.on .learnsw::after{transform:translateX(14px);}
.learnrow input:focus-visible + .learnsw{outline:2px solid var(--acc-l);outline-offset:2px;}
.learntx{display:flex;flex-direction:column;gap:4px;min-width:0;}
.learntx b{font:600 14.5px/1.3 var(--ui);color:var(--tx);}
.learntx small{font-size:12.5px;line-height:1.45;color:var(--tx3,#8f877d);}
.learnbox .asknote{margin:14px 0 0!important;font-size:.78rem!important;color:var(--tx3,#8f877d)!important;}
.learnbox .ask-ok{background:linear-gradient(180deg,var(--p-w89) 0%,var(--acc) 55%,var(--acc-d) 100%)!important;color:var(--p-n100)!important;border:0;}
.learnbox .ask-ok:disabled{opacity:.4;cursor:not-allowed;}

/* ---------- the Transcript tab (Patrik 2026-10-14: "Have we redesigned these pages and have they matched our new
   styles?") — rows as the same dark glass, the editor's neutral selection for the playing / selected caption, no purple ---------- */
html body.editing #rzNav button:focus{outline:none!important;box-shadow:none!important;}
html body.editing #rzNav button:focus-visible{outline:2px solid var(--sel-l,#e9e6e1)!important;outline-offset:-4px;border-radius:10px;}
html body.editing #cards .cc{border-radius:14px!important;border:1px solid rgba(255,255,255,.06)!important;
  background:rgba(255,255,255,.022)!important;padding:12px 14px!important;transition:border-color .2s ease,background .2s ease;}
html body.editing #cards .cc:hover{border-color:rgba(255,255,255,.14)!important;}
html body.editing #cards .cc.playing{border-color:rgba(var(--sel-rgb,233,230,225),.45)!important;background:rgba(var(--sel-rgb,233,230,225),.05)!important;}
html body.editing #cards .cc.sel{border-color:var(--sel-l,#e9e6e1)!important;background:rgba(var(--sel-rgb,233,230,225),.08)!important;}
html body.editing #cards .cc.dropok{outline-color:var(--sel-l,#e9e6e1)!important;}
html body.editing #cards .cc .tm{color:var(--tx3,#8f877d);font-variant-numeric:tabular-nums;}
html body.editing #cards .cc .lns .ln+.ln{border-top-color:rgba(255,255,255,.08)!important;}
html body.editing #cards .cc .ln.lnhot,html body.editing #cards .cc .ln.ln-drop{border-color:var(--sel-l,#e9e6e1)!important;background:rgba(var(--sel-rgb,233,230,225),.10)!important;box-shadow:none!important;}
html body.editing #cards .cc .ln.ln-cand{outline-color:rgba(var(--sel-rgb,233,230,225),.7)!important;}
