/* Scoped Kedu calls UI. No changes to the existing chat layout or MLS controls. */
.k8-call-buttons{display:inline-flex;align-items:center;gap:7px;margin-left:auto;z-index:2;}
.k8-call-buttons button{width:40px;height:40px;display:grid;place-items:center;cursor:pointer;border-radius:14px;border:1px solid rgba(17,150,94,.2);color:#088d58;background:linear-gradient(150deg,#e6fff0,#f7fafa);box-shadow:0 4px 14px rgba(11,84,58,.08);transition:transform .15s,box-shadow .15s;}
.k8-call-buttons button:hover{transform:translateY(-2px);box-shadow:0 8px 16px rgba(11,84,58,.14)}.k8-call-buttons button:focus-visible{outline:3px solid #1fbf8f;outline-offset:3px}
.k8-call-overlay[hidden]{display:none!important}.k8-call-overlay{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:16px;background:rgba(5,17,19,.73);backdrop-filter:blur(14px);}
.k8-call-panel{width:min(100%,480px);max-height:calc(100dvh - 24px);overflow:auto;background:linear-gradient(150deg,#072920 0%,#09473c 58%,#0d302e 100%);color:#fff;border:1px solid rgba(194,255,227,.22);border-radius:29px;box-shadow:0 25px 85px rgba(0,0,0,.4);padding:22px;position:relative}
.k8-call-head{display:flex;align-items:center;justify-content:space-between}.k8-call-logo{font-size:12px;font-weight:750;letter-spacing:.15em;color:#a7f9cf}.k8-call-close{background:rgba(255,255,255,.14);border:0;color:#fff;border-radius:12px;width:36px;height:36px;display:grid;place-items:center;cursor:pointer}
.k8-call-profile{display:flex;flex-direction:column;align-items:center;gap:9px;padding:23px 0 10px;text-align:center}.k8-call-avatar{width:92px;height:92px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#15b887,#075946);color:white;font-size:38px;font-weight:750;border:3px solid rgba(229,255,246,.66);box-shadow:0 0 0 9px rgba(50,233,159,.12)}.k8-call-profile h2{font-size:23px;margin:8px 0 0;color:#fff}.k8-call-profile p{font-size:13px;color:#d0e8de;min-height:20px;margin:0}
.k8-call-media{min-height:210px;position:relative;border-radius:18px;background:rgba(1,15,16,.58);overflow:hidden;margin:6px 0 20px}.k8-call-media.audio{min-height:35px;background:transparent}.k8-call-media video:first-child{object-fit:cover;width:100%;height:240px;display:block}.k8-call-media.audio video{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.k8-call-media video:last-child{position:absolute;right:10px;bottom:10px;width:95px;height:126px;object-fit:cover;border-radius:12px;border:2px solid #99e2c2;background:#112d27}.k8-call-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.k8-call-actions button{border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.13);color:white;min-width:69px;border-radius:16px;padding:10px 12px;cursor:pointer;display:flex;gap:7px;flex-direction:column;align-items:center;font-size:12px;font-weight:650}.k8-call-actions button.selected{background:#6a5d18}.k8-call-actions .k8-end{background:#e34358;border-color:#e34358}.k8-call-actions .k8-accept{background:#0cbb7c;border-color:#0cbb7c}.k8-call-actions button[hidden]{display:none!important}
@media(max-width:620px){.k8-call-buttons{gap:4px}.k8-call-buttons button{width:37px;height:37px;border-radius:12px}.k8-call-panel{width:100%;height:min(100%,710px);display:flex;flex-direction:column;justify-content:space-around;padding:16px;border-radius:28px}.k8-call-overlay{padding:9px}.k8-call-profile{padding:10px 0}.k8-call-media video:first-child{height:220px}}
@media(prefers-reduced-motion:reduce){.k8-call-buttons button{transition:none}}

/* R8E2 sound preferences: compact, mobile-first, never an unsolicited blocking overlay. */
.k8-call-buttons{position:relative}
.k8-call-buttons #k8Sound.k8-muted-sounds{color:#8d968f;background:#eef2f0}
.k8-sound-panel[hidden]{display:none!important}
.k8-sound-panel{box-sizing:border-box}
.k8-sound-panel{position:absolute;top:calc(100% + 10px);right:0;z-index:2147480000;width:min(290px,calc(100vw - 32px));background:#fff;color:#183c30;border:1px solid #cce8dc;box-shadow:0 14px 40px #09291e33;border-radius:20px;padding:15px;display:flex;flex-direction:column;gap:11px;font:500 14px system-ui;text-align:left}
.k8-sound-panel strong{font-size:15px;letter-spacing:0}
.k8-sound-panel label{display:flex;gap:10px;align-items:center;padding:7px 2px;cursor:pointer}
.k8-sound-panel input{width:19px;height:19px;accent-color:#0aa572}
.k8-sound-panel button.k8-try-sound{width:100%;height:auto;min-height:39px;border-radius:11px;color:#096d4c;background:#ebf9f2;border:1px solid #c8ebd9;padding:9px;display:block;text-align:center;font:600 13px system-ui}
.k8-sound-panel small{font-size:11px;color:#53675f;line-height:1.45}
@media(max-width:620px){.k8-sound-panel{right:0;top:calc(100% + 10px)}}
