/* Studio app */
body.studio{display:grid;grid-template-columns:248px 1fr;min-height:100vh}
.side{
  position:sticky;top:0;height:100vh;padding:24px 18px;display:flex;flex-direction:column;gap:28px;z-index:5;
  border-left:1px solid var(--border-soft);background:rgba(11,20,23,.55);backdrop-filter:blur(14px);
}
.side > .logo{align-self:center}  /* desktop sidebar: logo centred (Raz 2026-11-01) */
.side-nav{display:flex;flex-direction:column;gap:4px}
.side-nav a{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:12px;color:var(--text-2);font-size:15px;transition:background .2s,color .2s}
.side-nav a svg{width:19px;height:19px;flex:none}
.side-nav a:hover{background:rgba(209,209,209,.05);color:var(--text)}
.side-nav a.on{background:var(--surface-2);color:var(--text-hi);box-shadow:inset 0 0 0 1px var(--border-hover)}
.usage{margin-top:auto;padding:16px;display:flex;flex-direction:column;gap:10px;font-size:13px}
.usage-top{display:flex;justify-content:space-between;align-items:baseline}
.usage-top b{font-size:16px;color:var(--text-hi)}
.meter{height:6px;border-radius:99px;background:var(--surface-3);overflow:hidden}
.meter i{display:block;height:100%;background:linear-gradient(90deg,var(--brand-soft),var(--accent));border-radius:99px;transition:width .6s var(--ease)}

.main{padding:32px 40px 80px;min-width:0;position:relative;z-index:1}
.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap;margin-bottom:26px;animation:fade-up .4s var(--ease) both}
.page-head h1{font-size:clamp(28px,3vw,38px);text-shadow:var(--glow)}
.page-head p{margin-top:6px}
.head-acts{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.versions{display:flex;gap:6px}
.versions .pill{padding:7px 14px;font-size:13px}

.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:200;
  background:var(--surface-2);border:1px solid var(--border-hover);padding:12px 20px;border-radius:999px;box-shadow:var(--shadow-card-hover);font-size:14.5px;transition:all .35s var(--ease)}
.toast.on{opacity:1;transform:translate(-50%,0)}

/* projects */
.proj-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.proj{overflow:hidden;display:flex;flex-direction:column;animation:card-in .5s var(--ease) both}
.proj-thumb{aspect-ratio:1/1;position:relative;background:linear-gradient(180deg,#2b3a3f,#141e21);overflow:hidden}
.proj-thumb i{position:absolute;left:50%;bottom:0;width:62%;height:70%;transform:translateX(-50%);border-radius:46% 46% 0 0/40% 40% 0 0;background:linear-gradient(180deg,#1d2a2f,#10181b);box-shadow:inset 4px 6px 10px -4px rgba(255,214,170,.3)}
.proj-thumb i::before{content:"";position:absolute;left:50%;top:-30%;width:52%;aspect-ratio:1/1.2;transform:translateX(-50%);border-radius:50%;background:#172126;box-shadow:inset 3px 0 6px rgba(255,214,170,.3)}
.proj-thumb.s-premium{background:linear-gradient(180deg,#3d6070,#16262c)}
.proj-thumb.s-minimal{background:linear-gradient(180deg,#2f3537,#191d1f)}
.proj-thumb.s-energetic{background:linear-gradient(180deg,#4a3f35,#1c1916)}
.proj-v{position:absolute;top:10px;left:10px;font-size:12px;font-weight:800;padding:3px 9px;border-radius:99px;background:rgba(11,20,23,.7);border:1px solid var(--border-hover)}
.proj-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.proj-body b{color:var(--text-hi);font-size:16px}
.proj-body .faint{font-size:13px}
.chip{font-size:12px;padding:3px 10px;border-radius:99px;font-weight:800}
.chip.good{background:var(--good-soft);color:var(--good)}
.chip.warn{background:rgba(217,179,108,.14);color:var(--warn)}
.proj-new{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:280px;border-style:dashed;background:rgba(23,38,43,.4);transition:border-color .2s,background .2s}
.proj-new span{font-size:42px;line-height:1;color:var(--text-2)}
.proj-new:hover{border-color:var(--border-hover);background:var(--surface)}

/* stepper */
.stepper{list-style:none;padding:0;margin:0 0 20px;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.stepper::-webkit-scrollbar{display:none}
.stepper li{display:flex;align-items:center;gap:8px;padding:7px 14px 7px 12px;border-radius:999px;border:1px solid var(--border);color:var(--text-3);font-size:13.5px;white-space:nowrap;cursor:pointer;transition:all .2s}
.stepper li span{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:11px;background:var(--surface-2);font-weight:800}
.stepper li.done{color:var(--text-2)}
.stepper li.done span{background:var(--good-soft);color:var(--good)}
.stepper li.on{background:var(--accent);border-color:var(--accent);color:var(--bg);font-weight:800}
.stepper li.on span{background:var(--bg);color:var(--accent)}

.wiz{display:grid;grid-template-columns:1fr 300px;gap:28px;align-items:start}
.wiz-main{padding:30px 32px;display:flex;flex-direction:column;min-height:520px}
.step-body{flex:1;display:flex;flex-direction:column;gap:18px;animation:fade-up .35s var(--ease) both}
.step-body h2{font-size:26px}
.wiz-nav{display:flex;justify-content:space-between;margin-top:28px;padding-top:20px;border-top:1px solid var(--border-soft)}
.wiz-preview{position:sticky;top:24px;display:flex;flex-direction:column;gap:10px}
.prev-note{text-align:center;font-size:12.5px}

/* inputs */
.inp{width:100%;background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:12px 14px;color:var(--text);outline:none;transition:border-color .2s,box-shadow .2s;font-size:15px;resize:vertical}
.inp:focus{border-color:var(--border-hover);box-shadow:0 0 0 3px rgba(76,113,130,.2)}
.inp::placeholder{color:var(--text-3)}
select.inp{appearance:none;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2392a1a6' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>");background-repeat:no-repeat;background-position:left 14px center;padding-left:36px}
.field{display:flex;flex-direction:column;gap:8px}
.field>span{font-size:13.5px;color:var(--text-2)}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.u{text-decoration:underline;text-underline-offset:3px;background:none;border:0;cursor:pointer;padding:0;font-size:13px}
.small{font-size:13px}

.drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:40px 20px;border:1.5px dashed var(--border-hover);border-radius:var(--radius-lg);cursor:pointer;text-align:center;background:rgba(11,20,23,.35);transition:all .2s}
.drop svg{width:40px;height:40px;color:var(--text-2)}
.drop b{font-size:17px;color:var(--text-hi)}
.drop:hover,.drop.over{border-color:var(--accent);background:rgba(209,209,209,.04)}
.drop.over{transform:scale(1.01)}
.drop.small{padding:18px;min-height:90px}
.drop img{max-height:70px;max-width:100%}
.drop .drop-dir{margin-top:8px;display:inline-flex;align-items:center;gap:8px}
.drop .drop-dir svg{width:18px;height:18px;color:currentColor}
.or{display:flex;align-items:center;gap:12px;color:var(--text-3);font-size:13px}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--border-soft)}
.link-row{display:flex;gap:8px}
.file-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}
.file-list li{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:12px;background:var(--surface-2);border:1px solid var(--border);font-size:14px}
.file-list li.in{animation:fade-up .3s var(--ease) both}
.fname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:ltr;text-align:right}
.ficon{font-size:11px;color:var(--text-2)}
.x{background:none;border:0;color:var(--text-3);cursor:pointer;font-size:13px;padding:4px 6px;border-radius:6px}
.x:hover{color:var(--bad);background:var(--bad-soft)}

.choices{display:grid;gap:10px}
.choices.c3{grid-template-columns:repeat(3,1fr)}
.choices.c2{grid-template-columns:repeat(2,1fr)}
.choice{appearance:none;text-align:right;background:var(--bg);border:1px solid var(--border);border-radius:14px;padding:18px;cursor:pointer;display:flex;flex-direction:column;gap:6px;position:relative;overflow:hidden;transition:border-color .2s,background .2s,transform .2s var(--ease)}
.choice svg{width:26px;height:26px;color:var(--text-2);margin-bottom:6px}
.choice b{font-size:16px;color:var(--text-hi)}
.choice span{font-size:13.5px;color:var(--text-2)}
.choice:hover{border-color:var(--border-hover);transform:translateY(-2px)}
.choice.on{border-color:var(--accent);background:linear-gradient(180deg,#1d3239,var(--surface-2));box-shadow:0 0 0 1px var(--accent),0 0 30px -10px rgba(209,209,209,.3)}
.choice.on svg{color:var(--text-hi)}
.choice.on::after{content:"✓";position:absolute;top:12px;left:12px;width:20px;height:20px;border-radius:50%;background:var(--accent);color:var(--bg);font-size:11px;font-weight:800;display:grid;place-items:center}
.tier{font-style:normal;font-size:11px;padding:2px 8px;border-radius:99px;background:rgba(76,113,130,.3);color:#cfe0e6;margin-right:4px;vertical-align:middle}

.seg{display:inline-flex;background:var(--bg);border:1px solid var(--border);border-radius:999px;padding:4px;gap:2px;flex-wrap:wrap}
.seg button{appearance:none;border:0;background:transparent;color:var(--text-2);padding:8px 16px;border-radius:999px;cursor:pointer;font-size:14px;transition:all .2s}
.seg button:hover{color:var(--text)}
.seg button.on{background:var(--accent);color:var(--bg);font-weight:800}
.seg .rec{font-style:normal;font-size:11px;font-weight:800;margin-right:6px;padding:2px 7px;border-radius:99px;background:rgba(124,196,154,.16);color:var(--good);vertical-align:1px}
.seg button.on .rec{background:rgba(11,20,23,.14);color:var(--bg)}

.font-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.font-card{appearance:none;background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:14px 8px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;transition:all .2s;color:var(--text)}
.font-card b{font-size:22px;color:#fff;line-height:1.2;padding:2px 0}
.font-card span{font-size:11px;color:var(--text-3);font-family:var(--font)}
.font-card:hover{border-color:var(--border-hover)}
.font-card.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.font-card.upload{border-style:dashed}
.font-card.upload b{font-family:var(--font);color:var(--text-2)}

.toggle,.check{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid var(--border);border-radius:14px;cursor:pointer;background:var(--bg);transition:border-color .2s}
.toggle:hover,.check:hover{border-color:var(--border-hover)}
.toggle input,.check input{position:absolute;opacity:0;pointer-events:none}
.toggle i{flex:none;width:40px;height:23px;border-radius:99px;background:var(--surface-3);position:relative;transition:background .25s}
.toggle i::after{content:"";position:absolute;top:3px;right:3px;width:17px;height:17px;border-radius:50%;background:var(--text-2);transition:all .25s var(--ease)}
.toggle input:checked+i{background:var(--accent)}
.toggle input:checked+i::after{right:20px;background:var(--bg)}
.toggle span,.check span{display:flex;flex-direction:column;gap:2px}
.toggle b,.check b{font-size:15px;color:var(--text-hi)}
.toggle small,.check small{font-size:13px}
.toggle input:focus-visible+i,.check input:focus-visible+i{outline:2px solid var(--accent);outline-offset:2px}
.checks{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.check i{flex:none;width:20px;height:20px;border-radius:6px;border:1.5px solid var(--border-hover);display:grid;place-items:center;transition:all .2s}
.check input:checked+i{background:var(--accent);border-color:var(--accent)}
.check input:checked+i::after{content:"✓";color:var(--bg);font-size:12px;font-weight:800;font-style:normal}

/* music: 4 big cards; a click picks the genre and plays a sample (play icon → live equalizer while it plays) */
.music-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.music{appearance:none;background:var(--bg);border:1px solid var(--border);border-radius:15px;padding:19px 12px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:9px;color:var(--text);transition:all .2s}
.music b{font-size:15px;color:var(--text-hi)}
.music:hover{border-color:var(--border-hover);transform:translateY(-2px)}
.music.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),0 0 30px -10px rgba(209,209,209,.3)}
.m-play{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);border:1px solid var(--border-hover);color:var(--text-hi);transition:all .2s}
.m-play>*{grid-area:1/1}
.m-play svg{width:14px;height:14px}
.m-play svg.p{margin-right:-3px}
.m-play.off{background:none;color:var(--text-3)}
.music:hover .m-play:not(.off){background:var(--surface-3)}
.music .eq{display:none}
.music.playing .m-play{background:var(--accent);border-color:var(--accent);box-shadow:0 0 22px rgba(209,209,209,.35)}
.music.playing .m-play svg{display:none}
.music.playing .eq{display:flex;height:14px}
.music.playing .eq i{background:var(--bg)}
.eq{display:flex;align-items:flex-end;gap:3px;height:22px}
.eq i{width:4px;height:30%;border-radius:2px;background:var(--text-3)}
.music.playing .eq i{animation:eq .9s ease-in-out infinite}
.music.playing .eq i:nth-child(2){animation-delay:-.3s}.music.playing .eq i:nth-child(3){animation-delay:-.6s}.music.playing .eq i:nth-child(4){animation-delay:-.15s}
@keyframes eq{0%,100%{height:25%}50%{height:100%}}


.summary{margin:0;display:flex;flex-direction:column;border:1px solid var(--border);border-radius:14px;overflow:hidden}
.summary div{display:grid;grid-template-columns:110px 1fr auto;gap:12px;padding:13px 16px;align-items:center;border-bottom:1px solid var(--border-soft)}
.summary div:last-child{border-bottom:0}
.summary dt{color:var(--text-3);font-size:14px}
.summary dd{margin:0;color:var(--text-hi);font-size:15px}
.eta{display:flex;align-items:center;gap:14px;padding:16px 18px;flex-wrap:wrap;background:var(--surface-2)}
.eta b{font-size:20px;color:var(--text-hi)}

/* processing */
/* processing: one card with the percent, the minutes left and a big chaptered progress bar (Raz 10.11),
   the fix notes under it on a revision, the animated reel on the side */
.proc{display:grid;grid-template-columns:1fr 300px;gap:28px;align-items:start}
.proc-main{display:flex;flex-direction:column;gap:18px;min-width:0}
.wait{padding:30px 33px 25px;display:flex;flex-direction:column;align-items:stretch;gap:20px;text-align:right;animation:card-in .6s var(--ease) both}
.wait>*{width:100%}
.wait-top{display:flex;align-items:center;gap:22px}
.wait-pct{font-size:clamp(44px,4.4vw,58px);line-height:1;color:var(--text-hi);letter-spacing:-.02em;text-shadow:0 0 40px rgba(209,209,209,.25);min-width:2.6em}
.wait-eta{display:flex;flex-direction:column;gap:4px}
.wait-eta b{font-size:30px;color:var(--text-hi);letter-spacing:-.01em}
.wait-eta span{font-size:15px}
.yt{position:relative;padding:28px 0 6px}
.yt-track{display:flex;gap:4px;height:11px}
.yt-track>i{position:relative;flex:1;border-radius:3px;background:rgba(255,255,255,.12);overflow:hidden;transition:transform .2s}
.yt-track>i.on{transform:scaleY(1.35)}
.yt-track>i>b{position:absolute;left:0;top:0;bottom:0;width:0;background:var(--accent);box-shadow:0 0 12px rgba(209,209,209,.45)}
.yt-head{position:absolute;bottom:1px;left:0;width:0;height:0;transition:left .25s linear}
.yt-head>i{position:absolute;left:-11px;top:-16px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 0 0 5px rgba(209,209,209,.16),0 0 18px rgba(255,255,255,.6)}
.yt-head>em{position:absolute;bottom:22px;left:0;transform:translateX(-50%);font-style:normal;font-size:12.5px;font-weight:800;white-space:nowrap;color:var(--text-hi);background:rgba(11,20,23,.85);border:1px solid var(--border);padding:4px 10px;border-radius:8px}
.wait-bottom{display:flex;justify-content:space-between;font-size:14px;color:var(--text-2)}
.proc-err:not([hidden]){margin-top:2px}
.fix-notes{padding:20px 22px;animation:card-in .6s .1s var(--ease) both}
.fix-notes>p{margin:0 0 8px;font-size:12.5px}
.fix-notes ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.fix-notes li{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;background:var(--surface-2);color:var(--text)}
.fix-notes .tc{flex:none;font-size:13px;font-weight:800;color:var(--brand-text);background:rgba(122,161,178,.12);padding:3px 9px;border-radius:99px}
.fix-notes li p{flex:1;margin:0;font-size:14px;line-height:1.4}
.fix-notes li>i{flex:none;width:20px;height:20px;border-radius:50%;border:1.5px solid var(--border-hover);display:grid;place-items:center;font-style:normal;font-size:12px;color:var(--good)}
.fix-notes li.on>i{border-color:var(--accent);border-top-color:transparent;animation:spin .8s linear infinite}
.fix-notes li.done>i{border-color:var(--good);background:var(--good-soft)}
.fix-notes li.done>i::after{content:"\2713"}
@keyframes spin{to{transform:rotate(360deg)}}

/* "ערוך לי את הסרטון": an editing animation over the page while the project is sent (studio.js launch()).
   The raw comes in, the red silences close, captions land, the playhead runs, then it opens up. */
.launch{position:fixed;inset:0;z-index:90;display:grid;place-items:center;background:rgba(7,13,15,.72);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);animation:ln-in .35s var(--ease) both}
.launch.out{animation:ln-out .5s var(--ease) both}
.ln-stage{width:min(620px,86vw);display:flex;flex-direction:column;align-items:center;gap:26px}
.ln-tl{position:relative;width:100%;display:flex;flex-direction:column;gap:10px;padding:22px;border-radius:22px;background:#0a1215;border:1px solid var(--border-hover);
  box-shadow:0 40px 90px -30px rgba(0,0,0,.9),0 0 45px rgba(122,161,178,.13);animation:ln-tl .7s .05s var(--ease) both}
.ln-row{display:flex;gap:6px;height:30px}
.ln-row i{display:block;border-radius:7px}
.ln-row.cap{height:22px;padding:0 4%}
.ln-row.cap i{flex:1;background:#b8a3e3;box-shadow:0 0 7px rgba(184,163,227,.25);animation:ln-pop .4s var(--ease) both}
.ln-row.cap i:nth-child(1){animation-delay:1.15s}.ln-row.cap i:nth-child(2){animation-delay:1.3s}.ln-row.cap i:nth-child(3){animation-delay:1.45s}.ln-row.cap i:nth-child(4){animation-delay:1.6s}.ln-row.cap i:nth-child(5){animation-delay:1.75s}
.ln-row.vid .c{flex:3;background:linear-gradient(180deg,#86b1c2,#5d8a9c)}
.ln-row.vid .c:nth-child(3){flex:4}.ln-row.vid .c:nth-child(5){flex:2.4}
.ln-row.vid .g{flex:0;width:0;margin:0 -3px;background:repeating-linear-gradient(45deg,#7a3a33 0 6px,#4a201c 6px 12px);box-shadow:0 0 6px rgba(224,131,111,.28);animation:ln-cut .5s var(--ease) both}
.ln-row.vid .g:nth-child(2){animation-delay:.55s}.ln-row.vid .g:nth-child(4){animation-delay:.72s}.ln-row.vid .g:nth-child(6){animation-delay:.89s}
.ln-row.snd{height:18px}
.ln-row.snd i{flex:1;align-self:center;height:100%;background:repeating-linear-gradient(90deg,#5fae8e 0 3px,transparent 3px 6px);opacity:.85}
.ln-head{position:absolute;top:14px;bottom:14px;left:calc(100% - 22px);width:2px;background:#fff;box-shadow:0 0 6px rgba(255,255,255,.6);animation:ln-head 2s .35s cubic-bezier(.45,0,.2,1) both}
.ln-txt{margin:0;font-size:clamp(24px,3vw,34px);font-weight:800;color:var(--text-hi);text-shadow:0 0 15px rgba(209,209,209,.18);animation:ln-txt .8s .4s var(--ease) both}
.launch.out .ln-stage{animation:ln-zoom .5s var(--ease) both}
@keyframes ln-in{from{opacity:0}}
@keyframes ln-out{to{opacity:0}}
@keyframes ln-tl{from{opacity:0;transform:translateY(15px) scale(.97);filter:blur(6px)}}
@keyframes ln-pop{from{opacity:0;transform:translateY(-5px) scale(.8)}}
@keyframes ln-cut{from{flex:1.4;margin:0}}
@keyframes ln-head{from{left:22px}}
@keyframes ln-txt{from{opacity:0;transform:translateY(6px);filter:blur(4px)}}
@keyframes ln-zoom{to{transform:scale(1.04);filter:blur(5px);opacity:0}}
html.a11y-no-motion .launch *{animation:none!important}

/* review */
.review{display:grid;grid-template-columns:1fr 380px;gap:20px;align-items:start}
.rv-stage{padding:16px;display:flex;flex-direction:column;gap:14px}
.rv-video{position:relative;background:#081014;border-radius:12px;display:grid;place-items:center;height:min(68vh,640px);overflow:hidden;cursor:pointer}
.rv-video video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.rv-video #rvReel{height:100%;aspect-ratio:9/16}
.rv-video #rvReel .reel-frame{height:100%;width:auto;border-radius:0;border:0;box-shadow:none}
.demo-badge{position:absolute;top:12px;right:12px;font-size:12px;padding:4px 10px;border-radius:99px;background:rgba(11,20,23,.75);border:1px solid var(--border-hover);color:var(--text-2)}
.controls{display:flex;align-items:center;gap:14px}
.play{flex:none;width:42px;height:42px;border-radius:50%;border:0;background:var(--accent);color:var(--bg);cursor:pointer;display:grid;place-items:center;transition:transform .15s}
.play:active{transform:scale(.92)}
.play svg{width:18px;height:18px;margin-right:-2px}
.play.on svg{display:none}
.play.on::before{content:"";width:12px;height:14px;border-inline:4px solid var(--bg)}
.tcode{font-size:13px;color:var(--text-2);min-width:88px}
.scrub{position:relative;flex:1;height:30px;cursor:pointer;touch-action:none}
.scrub::before{content:"";position:absolute;left:0;right:0;top:50%;height:5px;transform:translateY(-50%);border-radius:99px;background:var(--surface-3)}
.scrub-fill{position:absolute;left:0;top:50%;height:5px;transform:translateY(-50%);border-radius:99px;background:var(--text)}
.scrub-head{position:absolute;top:50%;width:14px;height:14px;border-radius:50%;background:#fff;transform:translate(-50%,-50%);box-shadow:0 0 10px rgba(255,255,255,.5)}
.marks i{position:absolute;top:0;width:12px;height:12px;border-radius:50%;transform:translateX(-50%);background:var(--warn);border:2px solid var(--bg);box-shadow:0 0 8px rgba(217,179,108,.6);cursor:pointer;z-index:2}
.marks i.sent{background:var(--brand-soft);box-shadow:none}
.marks i.done{background:var(--good);box-shadow:none}

.rv-side{padding:16px;display:flex;flex-direction:column;gap:14px;max-height:calc(68vh + 72px);min-height:420px}
.tabs2{display:flex;gap:4px;background:var(--bg);border:1px solid var(--border);padding:4px;border-radius:999px}
.tabs2 button{flex:1;appearance:none;border:0;background:transparent;color:var(--text-2);padding:8px;border-radius:999px;cursor:pointer;font-size:14px}
.tabs2 button.on{background:var(--accent);color:var(--bg);font-weight:800}
.tab-pane{display:flex;flex-direction:column;gap:14px;min-height:0;flex:1}
.composer{display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:14px;background:var(--bg);border:1px solid var(--border)}
.comp-top{display:flex;gap:10px;align-items:center;font-size:13px}
.tc{font-size:12px;padding:3px 8px;border-radius:6px;background:rgba(217,179,108,.14);color:var(--warn);font-weight:800;border:0;cursor:pointer;flex:none}
.quick{display:flex;flex-wrap:wrap;gap:6px}
.quick .pill{padding:5px 11px;font-size:12.5px}
.composer .btn{align-self:flex-start}
.notes{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px;overflow-y:auto;flex:1;min-height:60px}
.note{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border-radius:12px;border:1px solid var(--border-soft);font-size:14.5px;animation:fade-up .3s var(--ease) both}
.note p{flex:1;min-width:0}
.note .st{font-size:11.5px;color:var(--warn);flex:none;margin-top:2px}
.note.sent .st{color:var(--brand-text)}
.note.done .st{color:var(--good)}
.note.done p{color:var(--text-3)}
.notes .empty{font-size:14px;padding:14px;text-align:center;border:1px dashed var(--border);border-radius:12px}
.send-row .btn{width:100%}

/* brand */
.brand-card{padding:28px;display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:760px}
.color-row{display:flex;align-items:center;gap:12px}
.color-row input{width:48px;height:40px;border:1px solid var(--border);border-radius:10px;background:none;padding:2px;cursor:pointer}
.color-row code{color:var(--text-2);font-size:14px}
.brand-preview{grid-column:1/-1;height:160px;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--s);color:#fff;line-height:1}
.brand-preview span{font-size:26px}
.brand-preview b{font-size:56px;color:var(--p);font-weight:800}
.brand-card .btn{grid-column:1/-1;justify-self:start}

@media (max-width:1180px){
  .wiz,.proc{grid-template-columns:1fr 240px}
  .review{grid-template-columns:1fr 330px}
  .font-grid{grid-template-columns:repeat(4,1fr)}
}
@media (max-width:900px){
  body.studio{display:block}
  .side{position:sticky;top:0;height:auto;flex-direction:row;align-items:center;padding:10px 16px;gap:12px;border-left:0;border-bottom:1px solid var(--border-soft)}
  .side .logo img{height:34px}
  .side-nav{flex-direction:row;overflow-x:auto;scrollbar-width:none;flex:1}
  .side-nav a{padding:8px 12px;font-size:13.5px;white-space:nowrap}
  .side-nav a svg{display:none}
  .usage{display:none}
  .main{padding:22px 16px 60px}
  .wiz,.proc,.review{grid-template-columns:1fr}
  .wiz-preview{position:static;max-width:240px;margin:0 auto;order:-1}
  .proc-reel{max-width:240px;margin:0 auto}
  .wait{padding:24px 20px 20px}
  .wait-top{gap:16px}
  .wait-eta b{font-size:22px}
  .music-grid{grid-template-columns:repeat(2,1fr)}
  .wiz-main{padding:22px 18px;min-height:0}
  .choices.c3,.choices.c2,.checks{grid-template-columns:1fr 1fr}
  .font-grid{grid-template-columns:repeat(3,1fr)}
  .row2,.brand-card{grid-template-columns:1fr}
  .rv-video{height:60vh}
  .rv-side{max-height:none}
}
@media (max-width:520px){
  .choices.c3,.choices.c2,.checks{grid-template-columns:1fr}
  .summary div{grid-template-columns:80px 1fr auto}
  .link-row{flex-direction:column}
}

/* --- server-backed additions --- */
body.studio.logged-out{display:block}
body.logged-out .side{display:none}
.auth{max-width:420px;margin:8vh auto;padding:32px;display:flex;flex-direction:column;gap:18px;animation:card-in .5s var(--ease) both}
.auth h1{font-size:28px;text-shadow:var(--glow)}
.auth-form{display:flex;flex-direction:column;gap:14px}
.auth-err{color:var(--bad);font-size:14px;min-height:1em}
.logout{align-self:flex-start;margin-top:2px}
.chip.bad{background:var(--bad-soft);color:var(--bad)}
.proj-thumb video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.file-list li{position:relative;overflow:hidden}
.file-list li .bar{position:absolute;left:0;bottom:0;height:2px;background:var(--accent);transition:width .2s}
.file-list li.err{border-color:var(--bad)}
.file-list .ok{color:var(--good);font-weight:800}
.file-list .up{font-size:13px;color:var(--text-2);min-width:38px;text-align:left}
.bad-t{color:var(--bad);font-size:13px}
.tier.soon{background:rgba(217,179,108,.16);color:var(--warn);font-size:12px;vertical-align:middle}
.editor-note{font-size:14px;color:var(--text-2);padding:2px 4px}
.editor-note b{color:var(--text)}
.proc-err{grid-column:1/-1;color:var(--bad);background:var(--bad-soft);border-radius:12px;padding:12px 14px;font-size:14px}
.err-detail{margin-top:10px;color:var(--text-2);font-size:12px}
.err-detail summary{cursor:pointer}
.err-detail pre{direction:ltr;text-align:left;white-space:pre-wrap;word-break:break-all;margin:8px 0 0;max-height:220px;overflow:auto;font-size:11px}
.note.skipped .st{color:var(--text-3)}
.marks i.skipped{background:var(--text-3);box-shadow:none}
.fthumb{flex:none;width:44px;height:44px;border-radius:8px;overflow:hidden;background:#000;display:grid;place-items:center}
.fthumb img{width:44px;height:44px;object-fit:contain;transition:transform .3s var(--ease)}
.rot{flex:none;background:var(--surface-3);border:1px solid var(--border-hover);color:var(--text);border-radius:8px;width:30px;height:30px;cursor:pointer;font-size:16px}
.rot:hover{background:var(--accent);color:var(--bg)}
.auto-rot{display:inline-block;margin-inline-start:8px;font-size:11px;padding:1px 8px;border-radius:99px;background:var(--good-soft);color:var(--good);direction:rtl;vertical-align:middle}

/* accessibility */
.drop:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.stepper li:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.scrub:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:8px}
.side-foot{display:flex;gap:10px;flex-wrap:wrap;font-size:12.5px}

/* player: ±5s and sound */
.ctl{flex:none;position:relative;width:38px;height:38px;border-radius:50%;border:1px solid var(--border);background:rgba(209,209,209,.04);color:var(--text);cursor:pointer;display:grid;place-items:center;transition:background .2s,border-color .2s,transform .15s}
.ctl:hover{background:rgba(209,209,209,.1);border-color:var(--border-hover)}
.ctl:active{transform:scale(.92)}
.ctl svg{width:20px;height:20px}
.skip5 b{position:absolute;inset:0;display:grid;place-items:center;font-size:9.5px;font-weight:800;padding-top:1px}
.vol{position:relative;flex:none;display:flex;align-items:center}
/* volume opens upward above the speaker button, on hover or keyboard focus */
.vol-pop{position:absolute;bottom:calc(100% + 10px);left:50%;width:40px;height:124px;margin-left:-20px;display:flex;align-items:center;justify-content:center;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-card-hover);z-index:5;opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .18s var(--ease),transform .18s var(--ease),visibility .18s}
.vol-pop::after{content:"";position:absolute;left:0;right:0;top:100%;height:12px}
.vol:hover .vol-pop,.vol:focus-within .vol-pop{opacity:1;visibility:visible;transform:none}
#muteBtn .x{display:none}
#muteBtn.muted .x{display:inline}
#muteBtn.muted .w1,#muteBtn.muted .w2,#muteBtn.low .w2{display:none}
#volIn{width:96px;height:4px;transform:rotate(-90deg);flex:none;margin:0;appearance:none;-webkit-appearance:none;border-radius:99px;cursor:pointer;background:linear-gradient(90deg,var(--text) var(--v,100%),var(--surface-3) var(--v,100%))}
#volIn::-webkit-slider-thumb{-webkit-appearance:none;width:13px;height:13px;border-radius:50%;background:#fff;box-shadow:0 0 8px rgba(255,255,255,.4)}
#volIn::-moz-range-thumb{width:13px;height:13px;border:0;border-radius:50%;background:#fff}
#volIn:focus-visible{outline:2px solid var(--accent);outline-offset:6px}
@media (max-width:640px){.controls{flex-wrap:wrap;gap:10px}.scrub{order:10;flex-basis:100%}}

/* player: ±5s and sound */
.ctl{flex:none;position:relative;width:38px;height:38px;border-radius:50%;border:1px solid var(--border);background:rgba(209,209,209,.04);color:var(--text);cursor:pointer;display:grid;place-items:center;transition:background .2s,border-color .2s,transform .15s}
.ctl:hover{background:rgba(209,209,209,.1);border-color:var(--border-hover)}
.ctl:active{transform:scale(.92)}
.ctl svg{width:20px;height:20px}
.skip5 b{position:absolute;inset:0;display:grid;place-items:center;font-size:9.5px;font-weight:800;padding-top:1px}
.transport{flex:none;display:flex;align-items:center;gap:8px}

/* --- plan / upgrade entry (checkout.html) --- */
.usage-link{display:flex;flex-direction:column;gap:10px;margin:-6px;padding:6px;border-radius:10px;transition:background .2s}
.usage-link:hover{background:rgba(209,209,209,.04)}
.usage-link .meter{display:block}
.usage-up{width:100%;justify-content:center}
.usage.full .meter i{background:linear-gradient(90deg,var(--warn),#f0d9a8)}
.usage.full .usage-up{background:linear-gradient(135deg,#d6e4ea,#7aa1b2);border-color:transparent;color:var(--bg)}
.usage-chip{display:none}
.eta.full .btn{margin-top:4px;align-self:flex-start}
@media (max-width:900px){
  .usage-chip{display:inline-flex;align-items:center;gap:8px;flex:none;padding:6px 6px 6px 12px;border-radius:999px;border:1px solid var(--border);background:var(--surface);font-size:12.5px;color:var(--text-2)}
  .usage-chip b{font-size:12.5px;color:var(--text-hi);padding:2px 8px;border-radius:999px;background:var(--surface-3)}
  .usage-chip span{color:var(--brand-text);font-weight:800}
}
