/* V19 media room: media capture only on https://veylochat.com */
/* VeyloChat V17 — WordPress-top-level media room; isolated from WordPress and GAS CSS. */
#vc17Meeting {position:fixed!important;inset:0;z-index:2147483647!important;display:none;background:#061521;color:#f5fffe;font:15px/1.45 system-ui,-apple-system,Segoe UI,sans-serif;overflow:auto;overscroll-behavior:contain;box-sizing:border-box}
#vc17Meeting *{box-sizing:border-box}#vc17Meeting[aria-hidden="false"]{display:flex;align-items:center;justify-content:center}
#vc17Meeting .vc17-room{background:linear-gradient(135deg,#102b35,#071e2b);border:1px solid #297f75;border-radius:20px;box-shadow:0 30px 100px #000b;width:min(1050px,98vw);max-height:96dvh;overflow-y:auto;padding:clamp(15px,3vw,28px);margin:auto}
#vc17Meeting h2{font-size:clamp(21px,3vw,30px);margin:0;color:white;line-height:1.2}#vc17Meeting p{color:#b9d4d5;margin:8px 0}#vc17Meeting .vc17-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:16px}
#vc17Meeting .vc17-videos{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px}#vc17Meeting .vc17-tile{position:relative;min-height:240px;border:1px solid #39756c;border-radius:18px;background:#06111b;overflow:hidden}
#vc17Meeting .vc17-tile video{width:100%;height:100%;min-height:240px;max-height:50dvh;object-fit:contain;background:#05111c}#vc17Meeting .vc17-tile span{position:absolute;bottom:10px;left:12px;padding:4px 9px;background:#031e23cc;border-radius:8px;color:#dffaf0;font-size:12px}
#vc17Meeting .vc17-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}#vc17Meeting button{border:1px solid #52b5a2;border-radius:12px;background:#153d46;color:#fff;padding:12px 15px;font:600 14px/1.3 system-ui;cursor:pointer;touch-action:manipulation}#vc17Meeting button:focus-visible{outline:3px solid #fff}#vc17Meeting button:disabled{opacity:.5;cursor:wait}
#vc17Meeting button.vc17-green{background:#00aa86;border-color:#09c29a;color:#041f1a}#vc17Meeting button.vc17-red{background:#a93244;border-color:#d74857}#vc17Meeting button.vc17-yellow{background:#4b3d1c;border-color:#ba9841}
#vc17Meeting .vc17-message{border:1px solid #40746f;background:#0b2630;padding:12px 14px;border-radius:12px;margin:10px 0;color:#e8f8f5;min-height:38px}
#vc17Meeting .vc17-section{padding-top:16px;margin-top:16px;border-top:1px solid #34605b}
#vc17Meeting .vc17-hidden{display:none!important}#vc17Meeting small{color:#a6cfcb}
#vc17Meeting .vc17-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding-top:14px;font-size:12px;color:#a6c4c4}
@media(max-width:640px){#vc17Meeting .vc17-room{border:0;border-radius:0;width:100%;min-height:100dvh;max-height:100dvh;padding:14px}#vc17Meeting .vc17-videos{grid-template-columns:1fr 1fr}#vc17Meeting .vc17-tile{min-height:145px}#vc17Meeting .vc17-tile video{min-height:145px;max-height:38dvh}#vc17Meeting .vc17-buttons{gap:7px}#vc17Meeting button{padding:10px 12px;font-size:13px}#vc17Meeting .vc17-top{align-items:start}}

/* V20 compact composer-level recorder. Main chat remains fully visible. */
#vc17Meeting[data-mode="voice-note"]{background:transparent!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;overflow:visible!important;pointer-events:none!important;inset:auto 0 max(84px,env(safe-area-inset-bottom)) 0!important;height:auto!important;z-index:2147483600!important}
#vc17Meeting[data-mode="voice-note"] .vc17-room{pointer-events:auto!important;width:min(600px,calc(100vw - 20px))!important;min-height:0!important;max-height:none!important;margin:0 auto!important;border-radius:18px!important;padding:12px 15px!important;background:#102e37!important;border:1px solid #0ec5a8!important;box-shadow:0 8px 36px #0009!important}
#vc17Meeting[data-mode="voice-note"] .vc17-top{padding:0 0 4px!important}
#vc17Meeting[data-mode="voice-note"] .vc17-top h2{font-size:15px!important}
#vc17Meeting[data-mode="voice-note"] #vc17Peer{font-size:12px!important;margin:2px 0!important}
#vc17Meeting[data-mode="voice-note"] #vc17Message{font-size:12px!important;margin:4px 0!important;min-height:0!important;padding:6px 9px!important}
#vc17Meeting[data-mode="voice-note"] .vc17-section{padding-top:0!important;margin:0!important;border:0!important}
#vc17Meeting[data-mode="voice-note"] .vc17-section h2,#vc17Meeting[data-mode="voice-note"] .vc17-section p,#vc17Meeting[data-mode="voice-note"] .vc17-footer{display:none!important}
#vc17Meeting[data-mode="voice-note"] #vc20RecordingSignal{display:flex!important;align-items:center!important;gap:10px!important;font-size:13px!important;padding:7px 2px!important}
#vc17Meeting[data-mode="voice-note"] .vc17-buttons{margin-top:4px!important;gap:6px!important}
#vc17Meeting[data-mode="voice-note"] .vc17-buttons button{padding:8px 10px!important;font-size:13px!important}
#vc20RecordingSignal{display:none}.vc20-rec-dot{width:11px;height:11px;border-radius:50%;background:#f44361;box-shadow:0 0 0 4px #f443612c;animation:vc20blink .9s ease-in-out infinite}
.vc20-wave{display:flex;align-items:center;gap:3px;height:20px;flex:1}.vc20-wave i{display:block;width:3px;height:7px;border-radius:6px;background:#44dfbd;animation:vc20wave .75s ease-in-out infinite alternate}
.vc20-wave i:nth-child(2){animation-delay:.15s}.vc20-wave i:nth-child(3){animation-delay:.26s}.vc20-wave i:nth-child(4){animation-delay:.4s}.vc20-wave i:nth-child(5){animation-delay:.55s}
@keyframes vc20blink{50%{opacity:.3}}@keyframes vc20wave{to{height:19px}}
#vc20CallState{display:flex;gap:13px;align-items:center;font-weight:700;font-size:17px;padding:15px;border:1px solid #2ea791;background:#073836;border-radius:16px;margin:7px 0}
#vc20CallState #vc20CallSymbol{font-size:30px;animation:vc20Ring 1.1s ease-in-out infinite alternate}
#vc20CallState[data-stage="connected"] #vc20CallSymbol,#vc20CallState[data-stage="ended"] #vc20CallSymbol{animation:none}
@keyframes vc20Ring{to{transform:rotate(17deg) scale(1.1)}}
@media(prefers-reduced-motion:reduce){#vc20CallState #vc20CallSymbol,.vc20-rec-dot,.vc20-wave i{animation:none!important}}
@media(max-width:640px){#vc17Meeting[data-mode="voice-note"] .vc17-room{min-height:0!important;max-height:260px!important}#vc17Meeting[data-mode="voice-note"]{bottom:max(86px,env(safe-area-inset-bottom))!important}}

/* V21: full-screen, independently minimizable media calls; keeps mic and call running. */
#vc17Meeting[data-mode="audio"] .vc17-room,#vc17Meeting[data-mode="video"] .vc17-room{width:100%!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;margin:0!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:stretch!important;padding:max(16px,env(safe-area-inset-top)) 18px max(18px,env(safe-area-inset-bottom))!important;overflow:auto!important}
#vc17Meeting[data-mode="audio"] .vc17-videos{display:none!important}
#vc17Meeting[data-mode="video"] .vc17-videos{width:100%;height:min(54dvh,640px);margin:auto 0!important}
#vc17Meeting[data-mode="video"] .vc17-tile video{height:100%!important;max-height:none!important}
#vc17Meeting[data-mode="audio"] #vc20CallState,#vc17Meeting[data-mode="video"] #vc20CallState{min-height:110px!important;justify-content:center!important;text-align:center!important;font-size:clamp(20px,5vw,30px)!important}
#vc17Meeting[data-mode="audio"] #vc20CallSymbol{font-size:70px!important}
#vc17Meeting .vc21-top-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
#vc17Meeting .vc21-call-timer{text-align:center;color:#56e9c7;font-size:20px;font-weight:700;font-variant-numeric:tabular-nums}
#vc17Meeting[data-minimized="yes"]{display:none!important}
#vc21FloatingCall[hidden]{display:none!important}
#vc21FloatingCall{position:fixed;z-index:2147483646;right:15px;bottom:max(20px,env(safe-area-inset-bottom));border:1px solid #75ffe1;border-radius:999px;background:#065647;color:white;font:bold 14px system-ui;padding:13px 19px;box-shadow:0 9px 34px #000a;cursor:pointer}
#vc17Meeting[data-mode="audio"] .vc17-buttons,#vc17Meeting[data-mode="video"] .vc17-buttons{justify-content:center!important;padding:12px 0!important}
@media(max-width:650px){#vc17Meeting[data-mode="video"] .vc17-videos{grid-template-columns:1fr!important;height:47dvh!important}#vc17Meeting[data-mode="video"] .vc17-tile{min-height:0!important}#vc17Meeting[data-mode="video"] .vc17-tile video{min-height:0!important}#vc17Meeting[data-mode="video"] .vc17-tile:nth-child(2){position:absolute;right:24px;top:27%;width:105px;height:140px;z-index:3;border:1px solid #55eed0}#vc17Meeting[data-mode="video"] .vc17-tile:nth-child(2) video{width:100%;height:100%}}
