/* Pravah live: sign-in cover, offline line, upload pill, loading line */
#pvcover{position:fixed;inset:0;z-index:200;display:none;place-items:center;background:var(--bg,#f7f5f0);padding:24px}
.pvlogin{width:100%;max-width:380px;text-align:left}
.pvlogin h1{font-size:28px;margin:8px 0 6px;letter-spacing:-.01em}
.pvlogin p{margin:0 0 16px;line-height:1.5}
.pvlogin input{width:100%;font-size:16px;padding:12px 14px;border-radius:10px;border:1px solid var(--line,#d9d5cc);background:var(--card,#fff);color:inherit;margin-bottom:6px}
.pvlogin .err{color:#b3261e;min-height:1.2em;font-size:14px;margin:4px 0 12px}
.pvmark{display:inline-flex;align-items:center;gap:10px;font-weight:650;font-size:15px}
.pvmark::before{content:"";width:28px;height:28px;border-radius:8px;background:url(icons/icon.svg) center/cover}
#pvoff{position:fixed;left:50%;transform:translateX(-50%);top:10px;z-index:150;background:#3a3833;color:#fff;font-size:13px;padding:8px 14px;border-radius:999px;max-width:92vw;text-align:center}
#pvup{position:fixed;left:16px;bottom:16px;z-index:150;background:var(--card,#fff);border:1px solid var(--line,#d9d5cc);font-size:13px;padding:8px 12px;border-radius:999px;box-shadow:0 2px 10px rgba(0,0,0,.08)}
#pvwait{display:flex;gap:8px;align-items:center;font-size:14px;color:var(--muted,#6b675f);padding:10px 0}
#pvacct{margin-top:18px}
@media (max-width:700px){#pvup{bottom:76px;left:10px}}
.pvreal{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;border-left:3px solid var(--acc,#c96442);margin-bottom:14px}
.pvreal>div:first-child{flex:1;min-width:220px}
.pvreal p{margin:4px 0 0}
.pvreal .row{display:flex;gap:8px;flex-wrap:wrap}
/* live: takes in Edit */
.pvtakes{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.pvtake{padding:6px;border-radius:12px;border:1px solid var(--line,#ddd)}
.pvtake.on{border-color:var(--blue,#2563eb);box-shadow:0 0 0 1px var(--blue,#2563eb)}
.pvtake video,.pvtake-up{width:100%;aspect-ratio:16/9;background:#000;border-radius:8px;display:block}
.pvtake-up{display:grid;place-items:center;color:#ddd;font-size:13px}
/* live: a module (the Canvas, the editor) inside the page */
.pvmod{display:block;position:relative;background:var(--bg,#fff);transform:translateZ(0);overflow:hidden;contain:layout paint} /* the module's full-screen layers fill this box, not the window */
.pvmod-wait{display:flex;gap:8px;align-items:center;justify-content:center;height:100%;min-height:200px;color:var(--ink3,#777);font-size:14px}
/* Canvas inside Record (js/cnative.js): the canvas fills the stage; Pravah's controls sit under it */
.stage.cnstage{aspect-ratio:16/9;height:auto;min-height:0;width:min(100%,calc((100dvh - 470px)*16/9));max-width:none;margin-inline:auto;background:var(--p2);border:1px solid var(--line)}
#cnhost{border-radius:12px}
#cnhost.cnfull{position:fixed!important;inset:0!important;z-index:80;border-radius:0}
.cnbar{margin-top:8px}
.stage.cnstage~.recbar{display:none}
#cntime{color:var(--rec);font-variant-numeric:tabular-nums}
.cnbar .btn .ic{width:16px;height:16px}
.cnsep{width:1px;height:22px;background:var(--line);margin:0 2px;flex:none}
body.cnfull-on .cnbar{position:fixed;left:50%;transform:translateX(-50%);bottom:12px;width:min(980px,calc(100% - 24px));z-index:81;background:var(--p1);border:1px solid var(--line);border-radius:12px;padding:8px 10px;box-shadow:var(--sh);margin:0}
@media (max-width:760px){.stage.cnstage{width:100%}#cnbtns{padding-right:54px}.cnbar .seg button{padding:6px 8px}}
/* the camera prompter at the top edge of the screen, under the lens: above the page, below every dialog (scrim 40, sheet 41, modal 60) */
.lensband.top{position:fixed;top:0;height:136px;min-height:0;z-index:38;border-radius:0 0 16px 16px;background:#000d;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.lensband.top::before{content:'';position:absolute;top:2px;left:50%;width:7px;height:7px;margin-left:-3.5px;border-radius:50%;background:#38c98a;z-index:2}
.lensband .pv-stage{-webkit-mask-image:linear-gradient(#000 0,#000 78%,transparent);mask-image:linear-gradient(#000 0,#000 78%,transparent)}
.lensband .pv-cue{display:none}
.stage .lensdot{display:none}
body.cn-rec .cnbar{display:none!important} /* the control bar is never in the take */
body.lb-on #cnhost.cnfull{top:142px!important} /* the Canvas take never has the band in it */
#markbtn.flash{background:var(--rec,#d93025);border-color:var(--rec,#d93025);color:#fff;transition:none}
/* camera position: a visible mode with a way out */
.lbcal{position:fixed;inset:0;z-index:85;cursor:crosshair;background:rgba(0,0,0,.35)}
.lbcal-box{position:absolute;top:0;left:50%;transform:translateX(-50%);display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:center;background:#111;color:#fff;border-radius:0 0 12px 12px;padding:10px 16px;font-size:14px;cursor:default;max-width:96vw;box-shadow:0 6px 20px rgba(0,0,0,.4)}
.lbcal-box span{color:#bbb}
/* the prompter script list: a search box you can see */
.pk .pksr{padding:0 12px 8px}
.pk.full .bd,.pk.full .pksr{max-width:760px;width:100%;margin:0 auto}
.lensband .pv-text p{margin:0 0 .2em}
/* thumbnails: words over a real picture; the size of the words follows the size of the card */
.thumbc{container-type:inline-size}
.thumbc .tt{font-size:clamp(7px,11cqw,24px);width:86%;left:6%;top:8%;text-shadow:0 1px 0 rgba(0,0,0,.45),0 2px 8px rgba(0,0,0,.5)}
.thumbc.hasimg .tt{top:auto;bottom:8%}
.thumbc .nopic{position:absolute;right:8px;bottom:6px;font-size:10px;font-weight:600;opacity:.75}
@container (max-width:150px){.thumbc .nopic{display:none}}
/* takes: a failed upload says so */
.take.bad{border-color:var(--rec,#d93025)}
.tkfail{margin-top:6px;padding:8px;border-radius:8px;background:color-mix(in srgb,var(--rec,#d93025) 9%,transparent);font-size:12.5px;line-height:1.4}
.tkpost{width:56px;height:32px;object-fit:cover;border-radius:5px;background:#000;flex:none}
.pvtake-bad{width:100%;aspect-ratio:16/9;border-radius:8px;background:color-mix(in srgb,var(--rec,#d93025) 9%,var(--bg,#fff));display:flex;flex-direction:column;justify-content:center;gap:6px;padding:10px;font-size:12.5px;line-height:1.4;box-sizing:border-box}
.lblcam{position:absolute;right:10px;bottom:10px;width:150px;aspect-ratio:16/9;border-radius:8px;object-fit:cover;background:#000;z-index:2}
.lblbar{position:absolute;left:0;right:0;bottom:10px;display:flex;gap:8px;justify-content:center;z-index:2}
.pk .pr.cur{background:color-mix(in srgb,var(--acc,#c96442) 8%,transparent);border-radius:10px}
/* the Canvas edit toolbar: Pravah's progress-bar class (.bar, 5px high, hides its content) must not reach it */
.pvc .vc-editbar .bar{height:auto;overflow:visible}
.pvc .vc-editbar .bar i{display:block;width:1px;height:22px;background:#ddd;transition:none}
/* phone sync dialog */
.qrbox{display:inline-block;background:#fff;padding:6px;border-radius:10px;line-height:0;margin:4px 0}
.qrbox svg{display:block;width:172px;height:172px}
/* storyboard: a real picture of the page the part names */
.sbc .im{position:relative}
.sbc .capwrap{position:absolute;inset:0;display:block;overflow:hidden}
.sbc .capimg{width:100%;height:100%;object-fit:cover;object-position:top;display:block}
.sbc .capst{height:100%;box-sizing:border-box;display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;text-align:center;padding:8px;font-size:12px;color:#ddd}
.sbc .capst.bad{color:#ffb4a8}
.sbc .capnone{position:absolute;left:8px;right:8px;bottom:5px;font-size:10.5px;color:#9a9a9a;text-align:center}
.bframe .capimg{width:100%;height:100%;object-fit:cover;object-position:top;display:block;border-radius:0 0 6px 6px}
/* the round feedback button sits above the footer buttons, never on them */
.fbfab{z-index:30}
@media (min-width:761px){.fbfab{right:auto;left:calc(50% + 112px);bottom:20px}} /* the empty middle of the footer bar */
@media (max-width:760px){.fbfab{bottom:196px}}
#cadbar{flex-wrap:wrap;align-items:center}#cadbar>span{flex:1 1 280px!important;min-width:0}#cadbar .btn{flex:none}
/* Line by line: the picture of you stays a small one in the corner (the rule for the camera stage would fill the whole stage) */
.stage video.lblcam{inset:auto;right:10px;bottom:10px;width:150px;height:auto;aspect-ratio:16/9;border-radius:8px;z-index:2;box-shadow:0 2px 10px rgba(0,0,0,.35)}
@media (max-width:760px){.stage video.lblcam{width:96px;right:8px;bottom:8px}}
/* Canvas in Record: one clear Record button, a status line that can be read, the take's save line with the way to Edit */
.cnbar .cnrec{font-size:15px;padding:9px 18px;font-weight:600}
.cnbar .cnrec.rec{animation:none}
.cnbar #cntime{font-variant-numeric:tabular-nums;color:var(--red,#d6453d);font-weight:600;min-width:0}
.cnstatus{margin-top:8px;font-size:14px;line-height:1.4;color:var(--ink);padding:7px 12px;border-radius:9px;background:var(--panel2,rgba(127,127,127,.08))}
.cnstatus.rec{background:rgba(214,69,61,.12)}
.cnstatus.rec::before{content:'● ';color:#d6453d}
.cnsave{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px;margin-top:6px}
.cnsave:empty{display:none}
.cnsave .cnok{color:var(--green,#2f9e5b);font-weight:600;display:inline-flex;gap:6px;align-items:center}
.cnsave .cnbad{color:#d6453d;font-weight:600;display:inline-flex;gap:6px;align-items:center}
.cnsave .cnprog{display:inline-block;width:180px;height:8px;border-radius:5px;background:rgba(127,127,127,.2);overflow:hidden}
.cnsave .cnprog b{display:block;height:100%;background:var(--acc,#3b82f6);transition:width .4s}
.cntyperow{margin-top:6px}
.stage .lbshow{position:absolute;top:10px;left:50%;transform:translateX(-50%);z-index:5}
/* Edit: the first question is a plain choice, in the middle */
.cut-choice{text-align:center;padding:18px 8px}
.cut-choice h2{margin:0 0 14px}
.cut-choice-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:6px 0 14px}
.cut-choice-btns .btn.big{font-size:16px;padding:12px 22px;min-width:210px;justify-content:center}
.cut-choice p{max-width:560px;margin:0 auto;text-align:left}
.cnbar #cnbtns>.btn:not(.cnrec){padding:7px 11px}.cnbar .seg button{padding:6px 9px}#cnbtns{gap:5px!important}
/* Pre-recorded: you, big, while you record */
.cnpre{position:absolute;inset:0;z-index:20;background:#111;border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.cnpre video{width:100%;height:100%;object-fit:contain;transform:scaleX(-1)}
.cnpre span{position:absolute;left:14px;top:12px;background:rgba(214,69,61,.92);color:#fff;font-weight:600;font-size:13px;padding:4px 10px;border-radius:999px}
.cnbar .cnmode button{font-weight:600}
.appmark{font-size:15px;white-space:nowrap}.appmark b{overflow:hidden;text-overflow:ellipsis}
