/* AX Canvas, Photo To Video (js/canvasvideo.js), Update 68. Every rule sits under .cvs .cpv (or the sheet's own
   .cpv-sheet), so no approved screen is touched. Light colours only; the app's own colour names. */
.cvs .cpv .cpv-lab{display:flex;align-items:center;justify-content:space-between;gap:8px}
.cvs .cpv .cpv-cnt{font-weight:600;color:var(--ph);font-size:13px}
.cvs .cpv .cpv-empty{margin-top:0}

/* pictures */
.cvs .cpv .cpv-pics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
@media (min-width:600px){.cvs .cpv .cpv-pics{grid-template-columns:repeat(6,minmax(0,1fr))}}
.cvs .cpv .cpv-pic,.cvs .cpv .cpv-padd{position:relative;aspect-ratio:1/1;border-radius:16px;overflow:hidden}
.cvs .cpv .cpv-pic{background:#EEF0EC;border:1px solid var(--line)}
.cvs .cpv .cpv-pic img{display:block;width:100%;height:100%;object-fit:cover}
.cvs .cpv .cpv-pic.off img{opacity:.35;filter:grayscale(1)}
.cvs .cpv .cpv-pn{position:absolute;top:6px;inset-inline-start:6px;min-width:22px;height:22px;padding:0 6px;box-sizing:border-box;border-radius:99px;
  background:rgba(17,52,34,.78);color:#fff;font-size:12px;line-height:22px;font-weight:700;text-align:center}
.cvs .cpv .cpv-px{position:absolute;top:5px;inset-inline-end:5px;width:26px;height:26px;border-radius:50%;border:0;padding:0;display:grid;place-items:center;
  background:rgba(0,0,0,.55);cursor:pointer}
.cvs .cpv .cpv-poff{position:absolute;inset-inline:4px;bottom:4px;font-size:10.5px;line-height:13px;color:var(--ink);text-align:center;background:rgba(255,255,255,.9);border-radius:8px;padding:3px 4px}
.cvs .cpv .cpv-padd{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:2px dashed #CDE3D5;background:#F5F9F6;
  color:var(--green);font:inherit;font-size:13px;font-weight:700;cursor:pointer;padding:0}

/* lengths */
.cvs .cpv .cpv-lens{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.cvs .cpv .cpv-len{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:72px;padding:8px 2px;border-radius:16px;
  border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;cursor:pointer;text-align:center;-webkit-tap-highlight-color:transparent}
.cvs .cpv .cpv-len b{font-size:16px;line-height:20px;font-weight:700;white-space:nowrap}
.cvs .cpv .cpv-len .cpv-pr{display:block;max-width:100%;text-align:center}
.cvs .cpv .cpv-len .cpv-pa{display:block;font-style:normal;font-size:12.5px;line-height:15px;font-weight:700;color:var(--ink);white-space:nowrap}
.cvs .cpv .cpv-len .cpv-pb{display:block;font-style:normal;font-size:10.5px;line-height:13px;color:var(--sub);white-space:nowrap}
.cvs .cpv .cpv-len.on{border-color:var(--green);background:var(--green);color:#fff;box-shadow:0 4px 12px rgba(19,83,51,.2)}
.cvs .cpv .cpv-len.on .cpv-pa{color:#fff}.cvs .cpv .cpv-len.on .cpv-pb{color:#D3EBDC}
.cvs .cpv .cpv-len:disabled,.cvs .cpv .cpv-tool:disabled{opacity:.55;cursor:default}
.cvs .cpv .cpv-hint{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:13px;line-height:18px;color:var(--sub)}
.cvs .cpv .cpv-hint svg{flex:none}

/* sound and voice */
.cvs .cpv .cpv-seg{display:flex;flex-wrap:wrap;gap:8px}
.cvs .cpv .cpv-seg .cvs-chip svg{flex:none}
.cvs .cpv .cpv-row2{display:grid;grid-template-columns:1fr;gap:12px;margin-top:12px}
@media (min-width:600px){.cvs .cpv .cpv-row2{grid-template-columns:1.6fr 1fr}}
.cvs .cpv .cpv-mini{font-size:12.5px;line-height:16px;font-weight:600;color:var(--sub);margin:0 2px 6px}

/* script */
.cvs .cpv .cpv-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:8px}
.cvs .cpv .cpv-tool{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:58px;padding:8px 4px;border-radius:16px;
  border:1px solid var(--line);background:var(--bg);color:var(--green);font:inherit;font-size:13px;line-height:16px;font-weight:600;cursor:pointer;text-align:center}
.cvs .cpv .cpv-tool span{color:var(--ink)}
.cvs .cpv .cpv-tool:active{transform:scale(.97)}
.cvs .cpv .cpv-scr{border-radius:18px}
.cvs .cpv .cpv-rec{display:none;align-items:center;gap:10px;height:48px;margin-top:8px;padding:0 6px 0 12px;border-radius:99px;background:#FAF4E1;border:1px solid #EFE6C4}
.cvs .cpv .cpv-scr.recui .cpv-rec{display:flex}
.cvs .cpv .cpv-scr.rec textarea{border-color:var(--gold);box-shadow:0 0 0 3px #FAF4E1}
.cvs .cpv .cpv-recdot{width:10px;height:10px;border-radius:50%;background:#C8412B;flex:none;animation:cpvBlink 1.2s ease-in-out infinite}
.cvs .cpv .cpv-rec canvas{flex:1;min-width:0;height:26px}
.cvs .cpv .cpv-rt{font-size:13px;font-variant-numeric:tabular-nums;color:var(--gold-ink);min-width:34px;text-align:center}
.cvs .cpv .cpv-recx{width:36px;height:36px;border-radius:50%;border:0;background:transparent;color:var(--gold-ink);display:grid;place-items:center;cursor:pointer;flex:none}
.cvs .cpv .cpv-recok{display:inline-flex;align-items:center;gap:5px;height:36px;padding:0 14px;border-radius:99px;border:0;background:var(--green);color:#fff;font:inherit;font-size:14px;font-weight:700;cursor:pointer;flex:none}
@keyframes cpvBlink{0%,100%{opacity:1}50%{opacity:.25}}
.cvs .cpv .cpv-fit{display:flex;align-items:flex-start;gap:6px;margin-top:8px;font-size:13px;line-height:18px;color:var(--sub)}
.cvs .cpv .cpv-fit svg{flex:none;margin-top:2px}
.cvs .cpv .cpv-fit.over{color:#9A4A2E}

/* scenes */
.cvs .cpv .cpv-reset{margin:0;font-size:13px}
.cvs .cpv .cpv-scenes{display:flex;flex-direction:column;gap:8px}
.cvs .cpv .cpv-scene{display:flex;gap:10px;align-items:flex-start;padding:10px;border-radius:18px;border:1px solid var(--line);background:var(--bg)}
.cvs .cpv .cpv-sth{width:58px;height:58px;border-radius:12px;overflow:hidden;flex:none;background:#F5F9F6;display:grid;place-items:center;border:1px solid #E4EFE7}
.cvs .cpv .cpv-sth img{width:100%;height:100%;object-fit:cover;display:block}
.cvs .cpv .cpv-sbody{flex:1;min-width:0}
.cvs .cpv .cpv-shead{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:4px}
.cvs .cpv .cpv-shead b{font-size:14.5px;line-height:19px;color:var(--ink)}
.cvs .cpv .cpv-shead span{font-size:12.5px;color:var(--sub);white-space:nowrap}
.cvs .cpv .cpv-scene textarea{display:block;width:100%;box-sizing:border-box;min-height:44px;resize:vertical;padding:8px 10px;border-radius:12px;border:1px solid var(--line);
  background:#FBFBFA;color:var(--ink);font:inherit;font-size:15px;line-height:20px;outline:none}
.cvs .cpv .cpv-scene textarea:focus{border-color:var(--green);background:#fff}

/* balance */
.cvs .cpv .cpv-bal{display:flex;align-items:center;gap:6px;margin-top:10px;padding:9px 12px;border-radius:14px;background:var(--gold-soft);color:var(--gold-ink);font-size:13.5px;line-height:18px}
.cvs .cpv .cpv-bal .cvs-link{margin-inline-start:auto}
.cvs .cpv .cvs-go span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* making and the result */
.cvs .cpv .cpv-job:empty{display:none}
.cvs .cpv .cpv-job{margin-top:18px;padding:16px;border-radius:22px;border:1px solid #CDE3D5;background:linear-gradient(180deg,#F5F9F6 0%,#FFFFFF 100%);box-shadow:0 4px 18px rgba(0,0,0,.05)}
.cvs .cpv .cpv-jh{display:flex;align-items:center;gap:12px}
.cvs .cpv .cpv-jh b{display:block;font-size:16px;line-height:21px;color:var(--ink)}
.cvs .cpv .cpv-jh span{display:block;font-size:13.5px;line-height:18px;color:var(--sub)}
.cvs .cpv .cpv-spin{width:30px;height:30px;border-radius:50%;flex:none;border:3px solid #D0E7D9;border-top-color:var(--green);animation:cpvSpin .9s linear infinite}
@keyframes cpvSpin{to{transform:rotate(360deg)}}
.cvs .cpv .cpv-bar{height:8px;border-radius:99px;background:#E4EFE7;margin-top:14px;overflow:hidden}
.cvs .cpv .cpv-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#1E6B45,#2E8B5A);transition:width .6s ease}
.cvs .cpv .cpv-steps{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 0;margin-top:14px}
.cvs .cpv .cpv-step{display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center;flex:0 0 25%;min-width:0}
.cvs .cpv .cpv-step i{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#EEF0EC;color:var(--sub);font-style:normal;font-size:12px;font-weight:700}
.cvs .cpv .cpv-step.done i{background:var(--green)}
.cvs .cpv .cpv-step.failed i{background:#C8412B}
.cvs .cpv .cpv-step.making i{background:#FAF4E1;box-shadow:0 0 0 2px #E4BE3F inset}
.cvs .cpv .cpv-sdot{width:8px;height:8px;border-radius:50%;background:#B8961F;animation:cpvBlink 1s ease-in-out infinite}
.cvs .cpv .cpv-step span{font-size:12px;line-height:15px;color:var(--ink);font-weight:600}
.cvs .cpv .cpv-step small{font-size:11px;line-height:14px;color:var(--sub)}
.cvs .cpv .cpv-keep{font-size:12.5px;line-height:17px;color:var(--ph);text-align:center;margin-top:12px}
.cvs .cpv .cpv-fail{display:flex;align-items:flex-start;gap:8px;padding:12px;border-radius:14px;background:#F8EAE3;color:#7A3A22;font-size:14px;line-height:20px}
.cvs .cpv .cpv-fail svg{flex:none;margin-top:1px}
.cvs .cpv .cpv-fail.soft{background:var(--gold-soft);color:var(--gold-ink);margin-top:10px}
.cvs .cpv .cpv-res{border-radius:18px;overflow:hidden;background:#000}
.cvs .cpv .cpv-player{display:block;width:100%;max-height:70vh;background:#000}
.cvs .cpv .cpv-acts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.cvs .cpv .cpv-acts .bp,.cvs .cpv .cpv-acts .bs,.cvs .cpv .cpv-two .bp,.cvs .cpv .cpv-two .bs{display:flex;align-items:center;justify-content:center;gap:7px;margin:0}
.cvs .cpv .cpv-acts .cpv-new{grid-column:1/-1}
.cvs .cpv .cpv-two{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.cvs .cpv .cpv-two>:only-child{grid-column:1/-1}

/* the AX Drive picture sheet */
.cpv-sheet .cpv-dgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:52vh;overflow:auto;margin-top:10px;padding:2px}
.cpv-sheet .cpv-dimg{position:relative;aspect-ratio:1/1;border-radius:14px;overflow:hidden;border:2px solid transparent;padding:0;background:#EEF0EC;cursor:pointer}
.cpv-sheet .cpv-dimg img{display:block;width:100%;height:100%;object-fit:cover}
.cpv-sheet .cpv-dimg.on{border-color:var(--green)}
.cpv-sheet .cpv-dck{position:absolute;top:6px;inset-inline-end:6px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.35);border:2px solid #fff;box-sizing:border-box}
.cpv-sheet .cpv-dimg.on .cpv-dck{background:var(--green)}
.cpv-sheet .cpv-two{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}
.cpv-sheet .cpv-two .bp,.cpv-sheet .cpv-two .bs,.cpv-sheet .cpv-wide{display:flex;align-items:center;justify-content:center;gap:7px;margin:0}
.cpv-sheet .cpv-wide{width:100%;margin-top:14px}
.cpv-sheet .cpv-two .bp:disabled{opacity:.5}
.cpv-sheet .cpv-none{display:flex;align-items:flex-start;gap:10px;margin-top:8px;padding:12px;border-radius:14px;background:#FAF4E1;color:#6B5420;font-size:14px;line-height:20px}
.cpv-sheet .cpv-none svg{flex:none;margin-top:1px}

/* Update 69: the prompt, the percentage, leave and come back, cancel, My Videos, the ready notice */
.cvs .cpv .cpv-prompt textarea{min-height:132px}
.cvs .cpv .cpv-hint b{font-weight:700}
.cvs .cpv .cpv-jh .cpv-ring{--p:0;font-style:normal;position:relative;width:56px;height:56px;border-radius:50%;flex:none;display:grid;place-items:center;
  background:conic-gradient(var(--green) calc(var(--p) * 1%),#E4EFE7 0)}
.cvs .cpv .cpv-jh .cpv-ring::before{content:"";position:absolute;inset:6px;border-radius:50%;background:#fff}
.cvs .cpv .cpv-jh .cpv-ring b{position:relative;z-index:1;display:block;font-size:13.5px;line-height:16px;font-weight:700;color:var(--green);margin:0;text-align:center}
.cvs .cpv .cpv-jh>div{min-width:0}
.cvs .cpv .cpv-away{display:flex;align-items:flex-start;gap:8px;margin-top:14px;padding:10px 12px;border-radius:14px;background:#EDF6F0;color:#1E4D33;font-size:13.5px;line-height:19px}
.cvs .cpv .cpv-away svg{flex:none;margin-top:1px}
.cvs .cpv .cpv-cancel{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;margin-top:12px;color:#9A4A2E}
.cvs .cpv .cpv-why{display:block;margin-top:6px;font-size:12.5px;line-height:17px;opacity:.85;word-break:break-word}
.cvs .cpv .cpv-ready{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:16px;line-height:21px;color:var(--ink)}
.cvs .cpv .cpv-ready svg{flex:none}
.cvs .cpv .cpv-mine{display:flex;flex-direction:column;gap:8px}
.cvs .cpv .cpv-mi{display:flex;align-items:center;gap:4px;border-radius:16px;border:1px solid var(--line);background:var(--bg);padding-inline-end:4px}
.cvs .cpv .cpv-mo{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:12px 4px 12px 12px;border:0;background:none;font:inherit;color:var(--ink);text-align:start;cursor:pointer}
[dir=rtl] .cvs .cpv .cpv-mo{padding:12px 12px 12px 4px}
.cvs .cpv .cpv-mo svg{flex:none}
.cvs .cpv .cpv-mt{flex:1;min-width:0;display:flex;flex-direction:column}
.cvs .cpv .cpv-mt b{font-size:14.5px;line-height:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cvs .cpv .cpv-mt small{font-size:12.5px;line-height:16px;color:var(--sub)}
.cvs .cpv .cpv-st{flex:none;padding:4px 10px;border-radius:99px;font-size:12.5px;line-height:16px;font-weight:700}
.cvs .cpv .cpv-st.ok{background:var(--green-soft);color:var(--green)}
.cvs .cpv .cpv-st.mk{background:var(--gold-soft);color:var(--gold-ink)}
.cvs .cpv .cpv-st.no{background:#F3F3F1;color:var(--sub)}
.cvs .cpv .cpv-mx{flex:none;width:36px;height:36px;border-radius:50%;border:0;background:none;display:grid;place-items:center;cursor:pointer}

/* the ready notice, on any screen */
.cpv-banner{position:fixed;z-index:9000;left:12px;right:12px;top:calc(env(safe-area-inset-top,0px) + 74px);max-width:520px;margin:0 auto;display:flex;align-items:center;gap:10px;
  padding:10px 8px 10px 12px;border-radius:18px;background:#fff;border:1px solid #CDE3D5;box-shadow:0 10px 30px rgba(17,52,34,.18);
  transform:translateY(-14px);opacity:0;transition:transform .25s ease,opacity .25s ease;font-family:inherit;color:#0C0C0C}
.cpv-banner.on{transform:none;opacity:1}
.cpv-banner .cpv-bi{width:38px;height:38px;border-radius:12px;flex:none;display:grid;place-items:center;background:linear-gradient(135deg,#1E6B45,#135333)}
.cpv-banner .cpv-bt{flex:1;min-width:0;display:flex;flex-direction:column}
.cpv-banner .cpv-bt b{font-size:15px;line-height:19px}
.cpv-banner .cpv-bt small{font-size:12.5px;line-height:16px;color:#5C5C5C;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cpv-banner .cpv-bo{flex:none;height:36px;padding:0 16px;border-radius:99px;border:0;background:#135333;color:#fff;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.cpv-banner .cpv-bx{flex:none;width:32px;height:32px;border-radius:50%;border:0;background:none;display:grid;place-items:center;cursor:pointer}
