/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════
   Operations → Video Calling (Pizza Twist / Riya). Scoped: every rule is under [data-module="videocalls"] or a
   .vcl-* class, so nothing here can restyle the rest of the console. Uses the shell's design tokens (portal.css).
   ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════ */

.vcl-stats{margin-bottom:16px}
.vcl-paused{display:flex;align-items:center;gap:8px;margin-bottom:16px;border-color:var(--warn-line);background:var(--warn-bg);color:var(--txt2);padding:12px 16px}

/* layout: stage (left) + cart/transcript (right) */
.vcl-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);gap:16px;align-items:start;margin-bottom:24px}
.vcl-side{display:flex;flex-direction:column;gap:16px;min-width:0}
@media (max-width:1100px){.vcl-layout{grid-template-columns:1fr}}

/* ── the stage: what a customer kiosk / web widget shows ── */
.vcl-stage-card{padding:14px;display:flex;flex-direction:column;gap:12px}
.vcl-stage{position:relative;background:#0B1220;color:#F1F5F9;border-radius:var(--radius-lg);padding:14px 14px 0;overflow:hidden;border:1px solid #1F2937}
.vcl-stage.live{border-color:rgba(99,102,241,.55)}
.vcl-stage-title{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#94A3B8;margin-bottom:10px;display:flex;align-items:center;gap:8px}
.vcl-stage.live .vcl-stage-title::before{content:"";width:8px;height:8px;border-radius:50%;background:#EF4444;box-shadow:0 0 0 0 rgba(239,68,68,.6);animation:vclLive 1.4s ease-out infinite}
@keyframes vclLive{0%{box-shadow:0 0 0 0 rgba(239,68,68,.6)}100%{box-shadow:0 0 0 8px rgba(239,68,68,0)}}
.vcl-tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:640px){.vcl-tiles{grid-template-columns:1fr}}
.vcl-tile{position:relative;aspect-ratio:16/10;background:#111827;border:1px solid #1F2937;border-radius:var(--radius);overflow:hidden;display:flex;align-items:center;justify-content:center}
.vcl-tile .vcl-name{position:absolute;left:10px;bottom:10px;font-size:12px;font-weight:600;background:rgba(11,18,32,.72);padding:4px 8px;border-radius:6px;display:flex;gap:6px;align-items:baseline}
.vcl-tile .vcl-name small{font-weight:500;color:#94A3B8;font-variant-numeric:tabular-nums}

/* Riya tile — the orb reacts to her voice through --lvl (0..1) set from an AnalyserNode on the TTS stream */
.vcl-riya{background:radial-gradient(120% 90% at 50% 110%,#1E1B4B 0%,#111827 55%)}
.vcl-orb-wrap{position:relative;width:38%;max-width:150px;aspect-ratio:1;display:grid;place-items:center}
.vcl-orb{--lvl:0;position:relative;width:70%;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;font-size:clamp(22px,4vw,40px);font-weight:700;color:#fff;
  background:radial-gradient(circle at 35% 30%,#A5B4FC 0%,#6366F1 45%,#4338CA 100%);
  box-shadow:0 0 0 calc(var(--lvl) * 14px) rgba(99,102,241,.22),0 0 calc(24px + var(--lvl) * 40px) rgba(99,102,241,.55);
  transform:scale(calc(1 + var(--lvl) * .12));transition:transform .06s linear,box-shadow .08s linear}
.vcl-ring{position:absolute;inset:0;border-radius:50%;border:1.5px solid rgba(165,180,252,.35);opacity:0;transform:scale(.8)}
.vcl-riya.speaking .vcl-ring{animation:vclRing 1.6s ease-out infinite}
.vcl-riya.speaking .vcl-ring.r2{animation-delay:.8s}
@keyframes vclRing{0%{opacity:.7;transform:scale(.8)}100%{opacity:0;transform:scale(1.35)}}
.vcl-riya.thinking .vcl-orb{animation:vclThink 1.2s ease-in-out infinite}
@keyframes vclThink{0%,100%{filter:brightness(1)}50%{filter:brightness(1.25)}}
.vcl-riya.style-card .vcl-orb-wrap{width:auto;max-width:none;aspect-ratio:auto}
.vcl-riya.style-card .vcl-orb{width:64px;font-size:24px;border-radius:16px}
.vcl-riya.style-card .vcl-ring{display:none}
.vcl-state{position:absolute;right:10px;top:10px;font-size:11px;font-weight:600;display:flex;align-items:center;gap:6px;background:rgba(11,18,32,.72);padding:4px 8px;border-radius:6px;color:#CBD5E1}
.vcl-state .dot{width:7px;height:7px;border-radius:50%;background:#64748B}
.vcl-state.connecting .dot{background:#F59E0B;animation:vclPulse 1s ease-in-out infinite}
.vcl-state.listening .dot{background:#22C55E;animation:vclPulse 1.2s ease-in-out infinite}
.vcl-state.thinking .dot{background:#F59E0B;animation:vclPulse .7s ease-in-out infinite}
.vcl-state.speaking .dot{background:#818CF8;animation:vclPulse .8s ease-in-out infinite}
.vcl-state.ended .dot,.vcl-state.idle .dot{background:#64748B}
@keyframes vclPulse{0%,100%{opacity:1}50%{opacity:.35}}

/* customer tile */
.vcl-cust video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1);background:#000}
.vcl-cam-off{display:flex;flex-direction:column;align-items:center;gap:8px;color:#64748B;font-size:12px}
.vcl-cam-off .ico{width:28px;height:28px}
.vcl-micbar{position:absolute;right:10px;bottom:12px;width:64px;height:4px;border-radius:2px;background:rgba(148,163,184,.25);overflow:hidden}
.vcl-micbar i{display:block;height:100%;width:100%;background:#22C55E;transform-origin:left;transform:scaleX(0);transition:transform .08s linear}

/* captions */
.vcl-captions{margin:12px -14px 0;padding:10px 16px 12px;background:rgba(0,0,0,.35);border-top:1px solid #1F2937;min-height:58px;display:flex;flex-direction:column;gap:4px}
.vcl-stage.no-cc .vcl-captions{display:none}
.vcl-cap-ai{font-size:14.5px;line-height:1.45;color:#F1F5F9}
.vcl-cap-ai:empty::before{content:"…";color:#64748B}
.vcl-cap-user{font-size:12.5px;color:#A5B4FC}
.vcl-cap-user.partial{color:#818CF8;font-style:italic}
.vcl-cap-user:not(:empty)::before{content:"Customer: ";color:#64748B;font-style:normal}

/* controls */
.vcl-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.vcl-call{min-width:170px}
.vcl-round{width:36px;height:36px;border-radius:50%;border:1px solid var(--line2);background:var(--panel);color:var(--mut);display:grid;place-items:center;cursor:pointer;transition:background-color var(--dur) var(--ease),color var(--dur) var(--ease),border-color var(--dur) var(--ease)}
.vcl-round:hover{background:var(--hover);color:var(--txt)}
.vcl-round.on{background:var(--acc-tint);border-color:var(--acc-line);color:var(--acc)}
.vcl-round.muted{background:var(--bad-bg);border-color:var(--bad-line);color:var(--bad)}
.vcl-sep{width:1px;height:24px;background:var(--line);margin:0 4px}
.vcl-field{display:inline-flex;align-items:center;gap:6px;color:var(--mut)}
.vcl-field .input{height:32px;min-width:170px}
@media (max-width:640px){.vcl-sep{display:none}.vcl-field{flex:1 1 100%}.vcl-field .input{flex:1}}

/* cart + transcript */
.vcl-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.vcl-card-head b{display:inline-flex;align-items:center;gap:6px;font-size:13px}
.vcl-cart-card,.vcl-log-card{padding:14px 16px}
.vcl-hint{font-size:12.5px}
.vcl-cart{display:flex;flex-direction:column;gap:6px}
.vcl-line{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:start;padding:6px 0;border-bottom:1px solid var(--line)}
.vcl-line:last-of-type{border-bottom:0}
.vcl-line .q{color:var(--mut);font-variant-numeric:tabular-nums}
.vcl-line .n{min-width:0}
.vcl-line .n small{display:block;color:var(--mut);font-size:11.5px}
.vcl-line .n small.deal{color:var(--acc);display:inline-flex;align-items:center;gap:4px}
.vcl-line .p{font-weight:600;font-variant-numeric:tabular-nums}
.vcl-totals{margin-top:6px;padding-top:8px;border-top:1px solid var(--line);display:grid;gap:3px;font-size:12.5px}
.vcl-totals>div{display:flex;justify-content:space-between;color:var(--mut)}
.vcl-totals>div.grand{color:var(--txt);font-size:14px;margin-top:2px}
.vcl-meta{font-size:12px;margin-top:6px}
.vcl-pay{margin-top:8px;padding:8px 10px;border-radius:var(--radius-sm);background:var(--warn-bg);border:1px solid var(--warn-line);color:var(--warn);font-size:12.5px;display:flex;align-items:center;gap:6px}
.vcl-pay.paid{background:var(--ok-bg);border-color:var(--ok-line);color:var(--ok)}
.vcl-order{margin-top:10px;padding:10px 12px;border-radius:var(--radius-sm);background:var(--ok-bg);border:1px solid var(--ok-line);color:var(--ok);display:flex;align-items:center;gap:8px;font-size:13px}
.vcl-order[hidden]{display:none}
.vcl-order a{color:inherit;text-decoration:underline}
.vcl-log{min-height:220px;max-height:380px}
.vcl-log .vt-msg .who{width:70px}

/* history */
.vcl-history-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
.vcl-history-head h3{margin:0;font-size:15px;font-weight:600}
.vcl-row-live td{background:var(--info-bg)}

/* settings modal */
.vcl-settings .vcl-check{gap:10px;margin-bottom:12px;cursor:pointer}
.vcl-settings .vcl-check input{width:16px;height:16px;accent-color:var(--acc)}

/* ── Riya's presence: real-person video clips or the animated face ── */
.vcl-avatar{position:absolute;inset:0;display:grid;place-items:center}
.vcl-avatar.style-orb,.vcl-avatar.style-card{position:static;inset:auto}
.vcl-facewrap{position:absolute;inset:0;display:grid;place-items:center;background:radial-gradient(120% 90% at 50% 115%,#2a2258 0%,#111827 60%)}
.vcl-face{width:100%;height:100%;display:block;filter:drop-shadow(0 10px 18px rgba(0,0,0,.45))}
.vcl-human{position:absolute;inset:0;background:#000}
.vcl-clip{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .28s ease}
.vcl-clip.on{opacity:1}
/* live photoreal avatar (provider WebRTC stream): fades in over the footage/face, which stays underneath as the fallback */
.vcl-live{position:absolute;inset:0;background:#000;overflow:hidden}
/* her own face as a still where she is not live (welcome screen, a failed connection): a slow breath, and a soft glow that follows her voice */
.vcl-photo-live{position:absolute;inset:0;overflow:hidden;background:#000}
.vcl-photo-live img{width:100%;height:100%;object-fit:cover;transform-origin:50% 38%;animation:vclBreath 6.5s ease-in-out infinite}
.vcl-photo-live::after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 calc(10px + var(--lvl,0) * 40px) calc(var(--lvl,0) * 6px) rgba(124,108,255,calc(var(--lvl,0) * .75));transition:box-shadow .12s linear}
@keyframes vclBreath{0%,100%{transform:scale(1)}50%{transform:scale(1.012) translateY(-.3%)}}
@media (prefers-reduced-motion:reduce){.vcl-photo-live img{animation:none}}
.vcl-live-fallback{position:absolute;inset:0;transition:opacity .6s ease .15s}
.vcl-live-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .6s ease;background:#000}
.vcl-live.on .vcl-live-video{opacity:1}
.vcl-live.on .vcl-live-fallback{opacity:0;pointer-events:none}
/* her own face's still while the live person connects (same framing the platform renders); it dissolves into the video, and gives way to
   the animated fallback if the live person fails */
.vcl-live-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .6s ease .3s}
.vcl-live.on .vcl-live-poster,.vcl-live.off .vcl-live-poster{opacity:0}
.vcl-live.off .vcl-live-poster{transition-delay:0s}
.vcl-live-audio{display:none}
.vcl-live-badge{position:absolute;left:10px;bottom:10px;display:flex;align-items:center;gap:6px;padding:4px 9px;border-radius:999px;background:rgba(11,18,32,.72);color:#A5B4FC;font-size:11.5px;font-weight:500}
.vcl-live-badge::before{content:"";width:6px;height:6px;border-radius:50%;background:#A5B4FC;animation:vclPulse 1.1s ease-in-out infinite}
.vcl-live.on .vcl-live-badge,.vcl-live.off .vcl-live-badge{display:none}
@keyframes vclPulse{0%,100%{opacity:.35}50%{opacity:1}}
.vcl-live-tag{position:absolute;right:10px;top:10px;padding:3px 8px;border-radius:999px;background:rgba(11,18,32,.72);color:#E5E7EB;font-size:11px;font-weight:500;display:flex;align-items:center;gap:5px}
.vcl-live-tag::before{content:"";width:6px;height:6px;border-radius:50%;background:#22C55E}
.vcl-live-tag[hidden]{display:none}
/* settings: checkbox rows keep the box and its text on one line, however long the text (a wrapped flex item drops the text under the box) */
.vcl-settings .vcl-check{flex-wrap:nowrap;align-items:flex-start}
.vcl-settings .vcl-check>span{flex:1 1 0;min-width:0}
.vcl-settings .vcl-check>input{margin-top:2px;flex:none}
/* settings: what the screens will actually show for the picked presence */
.vcl-effective{margin:-4px 0 12px;font-size:12.5px;line-height:1.45;color:var(--mut)}
.vcl-effective.warn{color:#b45309}
/* settings: pointer from the Service desk tab to the presence tab */
.vcl-desk-look{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel2);margin-bottom:8px;font-size:12.5px;line-height:1.45}
.vcl-desk-look .tag{margin-left:4px}
/* settings: live avatar provider block */
.vcl-live-setup{padding:12px 14px;border:1px solid var(--acc-line);border-radius:var(--radius);background:var(--acc-tint);margin:0 0 14px}
.vcl-live-setup .vcl-live-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.vcl-live-setup .vcl-live-head b{display:flex;align-items:center;gap:6px;font-size:13px}
.vcl-live-setup p{margin:0 0 10px;font-size:12.5px;line-height:1.5}
.vcl-live-setup .fld{margin-bottom:8px}
.vcl-live-setup .grid{gap:0 12px}
/* settings: live avatar PLATFORM cards (one per provider, data-driven from the server catalogue) */
.vcl-provs{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px;margin:8px 0 10px}
.vcl-prov{font:inherit;text-align:left;color:var(--txt);background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:10px 12px;cursor:pointer;display:flex;flex-direction:column;gap:5px;transition:border-color var(--dur) var(--ease),background var(--dur) var(--ease),box-shadow var(--dur) var(--ease)}
.vcl-prov:hover{border-color:var(--line2)}
.vcl-prov.on{border-color:var(--acc);box-shadow:0 0 0 1px var(--acc);background:var(--acc-tint)}
.vcl-prov-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.vcl-prov-top b{font-size:13.5px}
.vcl-prov-badge{font-size:11px;color:var(--acc);font-weight:600;letter-spacing:.02em}
.vcl-prov-mode{font-size:11.5px;display:inline-flex;align-items:center;gap:4px;color:var(--ok);font-weight:600}
.vcl-prov-mode.text{color:var(--warn)}
.vcl-prov p{margin:0;font-size:12px;line-height:1.4;color:var(--mut)}
.vcl-prov-facts{display:flex;gap:10px;flex-wrap:wrap;font-size:11.5px;color:var(--txt2);margin-top:auto}
.vcl-prov-facts span{display:inline-flex;align-items:center;gap:4px}
.vcl-prov-detail{margin:4px 0 6px}
.vcl-prov-setup{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;line-height:1.5;padding:8px 10px;border-radius:var(--radius-sm);background:var(--panel2);border:1px solid var(--line);margin-bottom:10px}
.vcl-prov-setup svg{flex:none;margin-top:2px;color:var(--acc)}
.vcl-live-preview{margin-top:10px;display:grid;grid-template-columns:200px 1fr;gap:12px;align-items:center}
.vcl-live-preview .vcl-tile{aspect-ratio:1/1;width:200px;border-radius:var(--radius-lg)}
.vcl-live-preview[hidden]{display:none}
/* Settings → "Make her face from a photo" */
.vcl-face-maker{margin-top:12px;padding:12px 14px;border:1px dashed var(--line);border-radius:var(--radius-lg);display:grid;gap:10px;background:var(--panel2,transparent)}
.vcl-face-maker-head{display:flex;gap:10px;align-items:flex-start}
.vcl-face-maker-head small{display:block;margin-top:2px;line-height:1.45}
.vcl-face-maker-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.vcl-face-maker-row .input{flex:1 1 220px;min-width:0}
.vcl-face-maker-out{display:flex;gap:12px;align-items:flex-start}
.vcl-face-maker-out>div{font-size:12.5px;line-height:1.5;min-width:0}
.vcl-face-preview{width:96px;height:96px;object-fit:cover;border-radius:12px;border:1px solid var(--line);flex:none}
.vcl-face-preview[hidden]{display:none}
@media (max-width:640px){.vcl-live-preview{grid-template-columns:1fr}}
.vcl-photo{width:120px;height:120px;border-radius:50%;object-fit:cover;border:3px solid rgba(165,180,252,.5)}
.vcl-riya.listening .vcl-facewrap{background:radial-gradient(120% 90% at 50% 115%,#1f3a4a 0%,#111827 60%)}
.vcl-eye{position:absolute;left:10px;top:10px;width:26px;height:26px;border-radius:50%;background:rgba(11,18,32,.72);color:#A5B4FC;display:grid;place-items:center;transition:transform .15s ease,color .15s ease}
.vcl-eye.blink{transform:scale(1.18);color:#22C55E}

/* ── "Riya sees" panel ── */
.vcl-vision-card{padding:14px 16px}
.vcl-vision-now{display:grid;gap:8px}
.vcl-vision-people{display:flex;align-items:baseline;gap:8px}
.vcl-vision-people b{font-size:24px;font-weight:600;letter-spacing:-.02em;line-height:1}
.vcl-vision-people span{color:var(--mut);font-size:12.5px}
.vcl-vision-sum{font-size:13.5px;line-height:1.5}
.vcl-vision-cues{display:flex;flex-wrap:wrap;gap:6px}
.vcl-vision-hint{font-size:12.5px;color:var(--acc);display:flex;align-items:center;gap:6px;padding:6px 8px;border-radius:var(--radius-sm);background:var(--acc-tint);border:1px solid var(--acc-line)}
.vcl-seen{margin-top:10px;font-size:12.5px}
.vcl-seen summary{cursor:pointer;color:var(--mut);display:flex;align-items:center;gap:6px}
.vcl-seen-list{display:grid;gap:4px;margin-top:8px;color:var(--txt2)}
.vcl-seen-list .muted{margin-right:6px;font-variant-numeric:tabular-nums}
.vcl-sec{margin:18px 0 10px;font-size:13px;font-weight:600;display:flex;align-items:center;gap:6px;color:var(--txt);border-top:1px solid var(--line);padding-top:14px}
.vcl-settings textarea.input{height:auto;min-height:110px;padding:8px 10px;line-height:1.45;font-family:inherit}

/* ── settings tabs ── */
.vcl-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:14px;flex-wrap:wrap}
.vcl-tabs button{font:inherit;font-size:12.5px;font-weight:500;background:transparent;border:0;border-bottom:2px solid transparent;color:var(--mut);padding:8px 10px;cursor:pointer;display:inline-flex;align-items:center;gap:6px;margin-bottom:-1px}
.vcl-tabs button.on{color:var(--acc);border-bottom-color:var(--acc)}
.vcl-settings section[hidden]{display:none}
#modalHost .overlay:has(.vcl-settings) .modal{width:min(880px,94vw)}

/* ── rehearsals ── */
.vcl-reh-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:26px 0 10px;flex-wrap:wrap}
.vcl-reh-head h3{margin:0;font-size:15px;font-weight:600}
.vcl-reh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.vcl-reh{padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.vcl-reh .top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.vcl-reh .top b{font-size:13.5px}
.vcl-reh .grp{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--mut2);font-weight:600}
.vcl-reh p{margin:0;color:var(--mut);font-size:12.5px;line-height:1.45}
.vcl-reh .score{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600}
.vcl-reh .score .n{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:13px}
.vcl-reh .foot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:auto}
.vcl-reh .verdict{font-size:12.5px;color:var(--txt2)}
.vcl-reh.running{border-color:var(--acc-line)}
.vcl-reh .trend{display:flex;gap:3px}
.vcl-reh .trend i{width:8px;height:8px;border-radius:2px;display:inline-block}
.vcl-reh-detail .who{font-size:11px;color:var(--mut);text-transform:uppercase;letter-spacing:.04em}
.vcl-rule{margin-top:10px;padding:10px 12px;border-radius:var(--radius-sm);background:var(--acc-tint);border:1px solid var(--acc-line);font-size:12.5px;display:flex;gap:8px;align-items:flex-start;justify-content:space-between}
.vcl-reset{font-size:11.5px;color:var(--acc);cursor:pointer;background:none;border:0;padding:0;font-family:inherit;margin-left:6px}

/* ── real footage: clip rows + recorder ── */
.vcl-clips{display:grid;gap:8px}
.vcl-clip-row{display:grid;grid-template-columns:96px 1fr auto;gap:10px;align-items:center;padding:8px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel2)}
.vcl-clip-row.ok{border-color:var(--ok-line)}
.vcl-clip-row .thumb{width:96px;height:60px;border-radius:6px;background:#0B1220;display:grid;place-items:center;overflow:hidden}
.vcl-clip-row .thumb video{width:100%;height:100%;object-fit:cover}
.vcl-clip-row .meta{display:flex;flex-direction:column;gap:3px;min-width:0}
.vcl-clip-row .meta b{font-size:12.5px}
.vcl-clip-row .meta small{font-size:11.5px;line-height:1.35}
.vcl-clip-row .acts{display:flex;flex-direction:column;gap:4px;align-items:stretch}
.vcl-clip-row .acts .btn{justify-content:center}
.vcl-rec{margin-top:10px;padding:10px;border:1px solid var(--acc-line);border-radius:var(--radius);background:var(--acc-tint)}
.vcl-rec-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:13px}
.vcl-rec video{width:100%;aspect-ratio:16/9;background:#000;border-radius:var(--radius-sm);transform:scaleX(-1);display:block}
@media (max-width:640px){.vcl-clip-row{grid-template-columns:72px 1fr}.vcl-clip-row .acts{grid-column:1/-1;flex-direction:row}}

/* the `hidden` attribute must win over display:flex/grid on the page's own elements */
[data-module="videocalls"] [hidden],.vcl-eye[hidden],.vcl-rec[hidden]{display:none!important}

/* Settings → platform "Avatar" picker (ready-made people + a box for any other id) */
.vcl-avatar-field{grid-column:1/-1}
.vcl-avatar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(82px,1fr));gap:8px;margin:6px 0 8px}
.vcl-avatar-pick{display:grid;gap:4px;justify-items:center;padding:6px 4px;border:1px solid var(--line);border-radius:var(--radius);background:transparent;color:var(--txt);cursor:pointer;font:inherit;font-size:12px;transition:border-color var(--dur) var(--ease),background var(--dur) var(--ease)}
.vcl-avatar-pick img{width:64px;height:64px;border-radius:var(--radius-sm);object-fit:cover;background:var(--panel2)}
.vcl-avatar-pick:hover{border-color:var(--acc-line)}
.vcl-avatar-pick.on{border-color:var(--acc);box-shadow:0 0 0 1px var(--acc);background:var(--acc-tint)}
.vcl-avatar-pick:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.vcl-avatar-pick small{font-size:10.5px;line-height:1.1;color:var(--mut)}
.vcl-avatar-pick.own img{box-shadow:0 0 0 2px var(--acc-line)}
.vcl-avatar-pick.make{border-style:dashed}
.vcl-avatar-pick:disabled{opacity:.6;cursor:progress}
