/* LOUIE_PATCH20_CALL */
.ll-call-launch{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;border:1px solid #58a99d;background:#1d433f;color:#c9f6e9;border-radius:9px;font-size:12px;font-weight:700;white-space:nowrap;padding:7px 11px;cursor:pointer}.ll-call-launch svg,.ll-call-controls svg,.ll-call-min svg{width:18px;height:18px;flex:none}.ll-call-launch:disabled{opacity:.5;cursor:default}.ll-call-launch[hidden],.ll-call-panel[hidden],.ll-call-panel [hidden]{display:none!important}.ll-call-panel{position:fixed;z-index:2500;right:clamp(12px,3vw,36px);bottom:clamp(12px,3vh,28px);width:min(350px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box;border:1px solid #3f696b;border-radius:23px;padding:18px;color:#edf8f5;background:radial-gradient(ellipse at 50% 22%,#233f45 0,#152730 39%,#101d29 80%);box-shadow:0 22px 80px #0009;font-family:system-ui,-apple-system,sans-serif}.ll-call-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.ll-call-brand{font-size:10px;letter-spacing:.14em;color:#a7d8cd;font-weight:700}.ll-call-min{display:flex;align-items:center;gap:3px;border:0;background:#243a47;color:#c6e2dd;font-size:11px;padding:6px 8px;border-radius:8px;cursor:pointer}.ll-call-center{text-align:center;padding:22px 8px 18px;display:flex;flex-direction:column;align-items:center;gap:10px}.ll-call-avatar{width:78px;height:78px;border-radius:50%;display:grid;place-items:center;color:#b9f2dc;border:1px solid #69ae9c;background:#254842;box-shadow:0 0 0 9px #74c5b212}.ll-call-avatar svg{width:34px;height:34px}.ll-call-title{font-size:17px;line-height:1.4}.ll-call-status{font-size:13px;color:#b6ced0;min-height:20px;line-height:1.5;overflow-wrap:anywhere}.ll-call-clock{font-variant-numeric:tabular-nums;letter-spacing:.08em;font-weight:650;font-size:24px;color:#d5fff1}.ll-call-controls{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;padding:0 0 12px}.ll-call-controls button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:74px;min-height:44px;border:0;border-radius:12px;font-size:12px;font-weight:700;cursor:pointer;padding:9px 12px}.ll-call-controls button:disabled{opacity:.5}.ll-call-accept{background:#aee7cd;color:#10352a}.ll-call-end{background:#ba4854;color:#fff}.ll-call-mute{background:#2b414c;color:#e2f3f0}.ll-call-mute.is-muted{background:#9e633c;color:#fff}.ll-call-note{text-align:center;font-size:11px;color:#8ca4ab;border-top:1px solid #ffffff14;padding-top:12px}.ll-call-ringing .ll-call-avatar{animation:ll-call-ring 1.8s ease-in-out infinite}.ll-call-connected .ll-call-avatar{border-color:#aee7cd}.ll-call-compact{width:min(320px,calc(100vw - 24px));padding:12px}.ll-call-compact .ll-call-avatar,.ll-call-compact .ll-call-note{display:none}.ll-call-compact .ll-call-center{padding:9px;gap:4px}.ll-call-compact .ll-call-controls{padding-bottom:0}.ll-call-compact .ll-call-clock{font-size:17px}.visitor .chat-header .ll-call-launch{margin-left:auto}.visitor .ll-call-panel{right:10px;bottom:10px;width:min(350px,calc(100vw - 20px));max-height:calc(100dvh - 20px)}@keyframes ll-call-ring{0%,100%{box-shadow:0 0 0 7px #74c5b217}50%{box-shadow:0 0 0 17px #74c5b207}}@media(prefers-reduced-motion:reduce){.ll-call-ringing .ll-call-avatar{animation:none}}@media(max-width:520px){.ll-call-launch{padding:6px 8px;font-size:11px}.ll-call-launch svg{width:16px;height:16px}.ll-call-panel{right:10px;bottom:10px;width:calc(100vw - 20px);padding:14px}.ll-call-center{padding:16px 5px 12px}.ll-call-avatar{width:64px;height:64px}.ll-call-controls button{min-height:44px}}

/* LOUIE_PATCH25_AUDIO_ROUTE */
.ll-call-route.is-route-selected{background:#aee7cd;color:#10352a}.ll-call-route-message{font-size:12px;color:#b6ced0;text-align:center;line-height:1.55;padding:2px 4px 12px;overflow-wrap:anywhere}.ll-call-route-menu{display:grid;gap:6px;padding:0 0 12px}.ll-call-route-menu button{border:1px solid #42665e;border-radius:9px;padding:9px;color:#e2f3f0;cursor:pointer;text-align:left;overflow-wrap:anywhere}.ll-call-route-menu svg{width:15px;height:15px;margin-right:6px;vertical-align:middle}

/* LOUIE_PATCH27_CALL_FAST */
.ll27-guard[hidden]{display:none!important}.ll27-guard{position:fixed;inset:0;z-index:2147483647;background:#030709;color:#b6d8d0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:24px;box-sizing:border-box;text-align:center;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;overscroll-behavior:none;font-family:system-ui,sans-serif}.ll27-guard-brand{font-size:11px;letter-spacing:.16em;color:#62817c}.ll27-guard strong{font-size:21px}.ll27-guard-clock{font-size:40px;font-variant-numeric:tabular-nums;color:#adc9c4}.ll27-guard-text{font-size:13px;color:#819b96;max-width:260px;line-height:1.6}.ll27-unlock{position:relative;overflow:hidden;margin-top:32px;padding:17px 24px;border:1px solid #52756e;border-radius:15px;background:#10201e;color:#d4e9e3;font-size:14px;font-weight:700;touch-action:none}.ll27-unlock.holding{background:#365c52}.ll27-touch-locked{overflow:hidden!important}.ll27-alert{border:1px solid #e0a663!important;color:#ffe4b0!important}.ll27-guard-btn{white-space:nowrap}

/* LOUIE_PATCH30_ROUTE_AUDIT */
.ll30-confirm{display:block;width:100%;margin:4px 0 12px;padding:12px;border:0;border-radius:10px;background:#aee7cd;color:#10352a;font-weight:700}.ll30-confirm:disabled{opacity:.55}.ll30-diagnostic{margin:4px 0 12px;font-size:12px;color:#b6ced0}.ll30-diagnostic summary{cursor:pointer}.ll30-diagnostic pre{font:11px/1.5 monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto;background:#101d29;padding:8px}.ll30-call-audio .ll-voice-toggle{display:none!important}

/* LOUIE_PATCH34_CALL_UI */
.ll-call-panel{width:min(354px,calc(100vw - 20px));padding:16px;max-height:calc(100dvh - 20px);overscroll-behavior:contain;scrollbar-width:thin}
.ll-call-panel button svg{display:block;width:18px!important;height:18px!important;min-width:18px;max-width:18px;flex:0 0 18px;vertical-align:middle}
.ll-call-panel .ll-call-center{padding:12px 4px 14px;gap:7px}
.ll-call-panel .ll-call-avatar{width:54px;height:54px;box-shadow:0 0 0 5px #74c5b212}
.ll-call-panel .ll-call-avatar svg{width:26px;height:26px}
.ll-call-panel .ll-call-title{font-size:16px;line-height:1.35}
.ll-call-panel .ll-call-status{font-size:12px;line-height:1.45;min-height:0}
.ll-call-panel .ll-call-clock{font-size:26px;line-height:1.15}
.ll-call-panel .ll-call-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-bottom:8px}
.ll-call-panel .ll-call-controls button{width:100%;min-width:0;min-height:44px;padding:8px 5px;font-size:12px;line-height:1.25;gap:5px}
.ll-call-panel .ll-call-controls .ll27-guard-btn,.ll-call-panel .ll-call-controls .ll27-alert,.ll-call-panel .ll-call-controls .ll34-resume,.ll-call-panel .ll-call-controls .ll34-dismiss{grid-column:1/-1}
.ll-call-panel .ll-call-route.is-route-selected{background:#24473f;color:#d3f5e8;box-shadow:inset 0 0 0 1px #78bca9}
.ll-call-panel .ll-call-route-message{font-size:11px;line-height:1.5;padding:4px 0 8px;text-align:center;white-space:normal;overflow-wrap:anywhere}
.ll-call-panel .ll30-confirm{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:44px;padding:10px 12px;margin:0 0 8px;border-radius:10px;font-size:13px;line-height:1.2}
.ll-call-panel .ll30-confirm svg{width:18px!important;height:18px!important;max-width:18px;max-height:18px}
.ll-call-panel .ll30-diagnostic{margin:4px 0 9px;font-size:11px;line-height:1.4}
.ll-call-panel .ll30-diagnostic summary{padding:5px 0;cursor:pointer}
.ll-call-panel .ll30-diagnostic pre{font-size:10px;max-height:112px;margin:4px 0;overflow:auto}
.ll-call-panel .ll-call-note{font-size:10px;padding-top:8px;line-height:1.4}
.ll-call-panel.ll-call-compact .ll-call-center{padding:4px 0 7px;gap:4px}
.ll-call-panel.ll-call-compact .ll-call-clock{font-size:19px}
@media(max-width:520px){
 .visitor .ll-call-panel,.agent .ll-call-panel{right:10px;bottom:10px;width:min(354px,calc(100vw - 20px));padding:12px;max-height:calc(100dvh - 20px);border-radius:18px}
 .ll-call-panel .ll-call-min{min-height:32px;padding:4px 7px;font-size:11px}
 .ll-call-panel .ll-call-brand{font-size:10px}
}
@media(max-height:480px){.ll-call-panel .ll-call-avatar{display:none}.ll-call-panel .ll-call-center{padding:6px 0;gap:4px}.ll-call-panel .ll-call-note{display:none}}
/* Full viewport touch guard, including safe areas. No pretend proximity sensor. */
.ll27-guard{background:#000;inset:0;position:fixed;z-index:2147483647;gap:12px;padding:max(18px,env(safe-area-inset-top)) 20px max(24px,env(safe-area-inset-bottom));height:100dvh;width:100%;justify-content:center;isolation:isolate}
.ll27-guard .ll27-guard-brand{color:#6b8580}.ll27-guard strong{font-size:18px;color:#b6d8d0}.ll27-guard .ll27-guard-clock{font-size:32px}.ll27-guard .ll27-guard-text{max-width:240px;font-size:12px}.ll27-guard .ll27-unlock{position:absolute;bottom:max(32px,calc(env(safe-area-inset-bottom) + 18px));margin:0;left:50%;transform:translateX(-50%);min-height:52px;width:min(260px,calc(100% - 48px));font-size:13px;color:#d4e9e3;background:#111b19}
@media(max-height:380px){.ll27-guard{justify-content:flex-start;padding-top:20px;gap:5px}.ll27-guard .ll27-unlock{bottom:12px}}

/* LOUIE_PATCH35_PERMISSION_FIRST */
.ll27-guard{justify-content:flex-start;padding-top:max(32px,env(safe-area-inset-top));gap:8px;overflow:auto}
.ll27-guard .ll35-guard-actions{display:flex;flex-direction:column;align-items:stretch;gap:9px;width:min(260px,100%);margin-top:auto;padding-bottom:8px}
.ll27-guard .ll35-guard-actions button{position:static;transform:none;width:100%;min-height:46px;margin:0;padding:10px 12px;border-radius:12px;font:700 14px/1.3 system-ui,sans-serif;display:flex;align-items:center;justify-content:center;gap:8px;touch-action:none}
.ll27-guard .ll35-guard-actions button[hidden]{display:none!important}
.ll27-guard .ll35-guard-actions svg{width:18px;height:18px;flex:0 0 18px}
.ll27-guard .ll35-guard-end{background:#b82d42;color:#fff;border:1px solid #e45f6d}
.ll27-guard .ll35-guard-confirm{background:#cf3448;color:#fff;border:1px solid #f07582}
.ll27-guard .ll35-guard-end{order:1}.ll27-guard .ll27-unlock{order:2}
@media(max-height:400px){.ll27-guard{padding-top:10px;gap:4px}.ll27-guard .ll27-guard-brand,.ll27-guard .ll27-guard-text{display:none}.ll27-guard .ll27-guard-clock{font-size:22px}.ll27-guard .ll35-guard-actions{gap:5px}.ll27-guard .ll35-guard-actions button{min-height:38px;padding:6px}}

/* LOUIE_PATCH36_THREE_CONTROLS */
.ll-call-panel.ll36-active .ll-call-controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.ll-call-panel.ll36-active .ll-call-controls .ll-call-route,.ll-call-panel.ll36-active .ll-call-controls .ll-call-end{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60px;gap:5px;padding:7px 3px;white-space:nowrap;font-size:12px}
.ll-call-panel.ll36-active .ll-call-controls button[hidden]{display:none!important}
.ll-call-panel.ll36-active .ll-call-controls button svg{width:20px!important;height:20px!important;max-width:20px;flex:0 0 20px}
.ll-call-panel .ll30-confirm,.ll-call-panel .ll34-resume{display:none!important}

/* LOUIE_PATCH37_SPEAKER_FIRST */
.ll-call-panel .ll37-warning{margin:4px 0 12px;padding:10px 12px;border:1px solid #b28a46;border-radius:10px;background:#332918;color:#ffe0a0;font:600 13px/1.5 system-ui,sans-serif;text-align:center;overflow-wrap:anywhere}.ll-call-panel.ll37-active .ll-call-controls{grid-template-columns:1fr}.ll-call-panel.ll37-active .ll-call-controls .ll-call-end{min-height:48px;display:flex;align-items:center;justify-content:center;gap:7px}.ll-call-panel .ll-call-controls button[hidden]{display:none!important}.ll27-guard .ll27-guard-text{display:block!important;color:#f1d49b;max-width:280px;font:600 13px/1.5 system-ui,sans-serif;padding:0 8px}@media(max-height:400px){.ll27-guard .ll27-guard-text{font-size:11px;line-height:1.3}}

/* LOUIE_PATCH41_RECEIVER_TEST */
.ll-call-panel.ll37-active .ll-call-controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.ll-call-panel.ll37-active .ll-call-controls .ll41-route,.ll-call-panel.ll37-active .ll-call-controls .ll-call-end{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:58px;gap:5px;padding:7px 3px;white-space:nowrap;font:600 12px/1.3 system-ui,sans-serif}.ll-call-panel .ll41-route{border:1px solid #45665e;border-radius:10px;background:#20323e;color:#e7f4f0}.ll-call-panel .ll41-route[aria-pressed=true]{border-color:#a7d8cd;color:#a7d8cd}.ll-call-panel.ll37-active .ll-call-controls button svg{width:20px!important;height:20px!important;max-width:20px;flex:0 0 20px}.ll-call-panel .ll37-warning{white-space:pre-line}.ll-call-panel .ll-call-controls button[hidden]{display:none!important}

/* LOUIE_PATCH42_RECEIVER_DEFAULT */
.ll-call-panel .ll41-route:disabled{opacity:.55;cursor:wait}
