.hjs-call{position:fixed;inset:0;z-index:140000;display:grid;place-items:center;padding:14px;background:#15132ac9;backdrop-filter:blur(6px);overflow:auto;color:#fff;font-family:system-ui,sans-serif}.hjs-call[hidden],.hjs-call [hidden]{display:none!important}.hjs-call-panel{width:min(100%,415px);background:linear-gradient(145deg,#2f245d,#1f244a 60%,#233b4a);border:1px solid #9080bc70;border-radius:26px;padding:clamp(16px,5vw,32px);text-align:center;box-shadow:0 20px 60px #0807197a}.hjs-call-kicker{color:#ddd5ff;font-size:11px;font-weight:850;letter-spacing:.12em}.hjs-call-avatar{margin:18px auto 11px;background:#6251ab;border:3px solid #a79ada66;color:#fff;width:76px;height:76px;display:grid;place-items:center;font-size:32px;font-weight:800;border-radius:50%;overflow:hidden}.hjs-call-avatar img{width:100%;height:100%;object-fit:cover}.hjs-call h2{font-size:clamp(20px,5vw,30px);font-weight:850;overflow-wrap:anywhere}.hjs-call #callStatusDisplay{color:#dcd4ff;font-size:15px;font-weight:700;margin:3px 0 7px}.hjs-call time{display:block;font:700 29px ui-monospace,monospace;letter-spacing:.06em}.hjs-call-actions{display:flex;gap:7px;justify-content:center;flex-wrap:wrap;margin:14px 0 8px}.hjs-call button{font-size:14px;font-weight:760;line-height:1.3;min-height:44px;border:1px solid #ffffff42;border-radius:12px;padding:8px 13px;background:#ffffff1d;color:#fff}.hjs-call button:hover:not(:disabled){filter:brightness(1.17)}.hjs-call button:disabled{opacity:.6;cursor:wait}.hjs-call .hjs-call-accept{background:#167552}.hjs-call .hjs-call-hangup{background:#aa2845}.hjs-call-location{margin:8px 0 5px}.hjs-call #callShareLocation{background:#eddbff;color:#342163}.hjs-call #callLocationStatus:not(:empty){margin:5px 0 7px;color:#c7f8df;font-size:13px}.hjs-call #callLocationStatus[data-error=true]{color:#ffd5d1}.hjs-call #callDone{margin-top:5px}.hjs-location-card{display:grid;gap:6px;border-radius:10px;background:#eef2ff;color:#282260;padding:11px;min-width:150px}.hjs-location-card a{color:#4527a5;font-size:13px;font-weight:780;text-decoration:underline}.hjs-unread{min-width:19px!important;width:auto!important;height:19px!important;padding:0 4px!important;z-index:1;animation:hjs-unread-pulse 1.6s ease-in-out infinite}@keyframes hjs-unread-pulse{0%,100%{box-shadow:0 0 0 0 #d11b5670}50%{box-shadow:0 0 0 4px #d11b5600;transform:scale(1.1)}}@media(prefers-reduced-motion:reduce){.hjs-unread{animation:none}}
#callAudioChoices select{color:#31234a;background:white;border-radius:6px;padding:4px 6px;margin-inline-start:4px;max-width:64%}
#callAudioHint:empty{display:none}#callAudioHint{font-size:13px;margin:6px 0}

.hjs-mic-check{display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap;padding:.7rem .8rem;border:1px solid #d9e3f1;border-radius:14px;background:#f4f7fd;color:#1a3154;font-size:.8rem}
.hjs-mic-details{display:grid;gap:.15rem;flex:1 1 130px;min-width:0;line-height:1.35}
.hjs-mic-details strong{font-weight:800}
.hjs-mic-details span{color:#405777}
.hjs-mic-check button{min-height:42px;padding:.45rem .75rem;border-radius:9px;background:#1d4d95;color:white;font-weight:750;line-height:1.2}
.hjs-mic-check button:disabled{opacity:.6}
.hjs-mic-check[data-mic-state=ready]{background:#ecfaf3;border-color:#a9d9c0}
.hjs-mic-check[data-mic-state=error]{background:#fff7eb;border-color:#eed4ad}
.hjs-mic-check[data-mic-state=error] .hjs-mic-details span{color:#75420b}

.hjs-call-peer-details{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:8px 0 11px}
.hjs-call-peer-details span{padding:4px 9px;border:1px solid #dcd4ff48;border-radius:999px;background:#ffffff12;color:#eeeaff;font-size:12px;font-weight:650}
.hjs-call #callPhoneFallback{background:#195d70}

/* The call screen is shared by the customer and provider. */
.hjs-call { padding:16px; background:#07111ddd; }
.hjs-call-panel { background:#152338; border-color:#344760; border-radius:24px; padding:22px; }
.hjs-call-kicker { color:#a9bfda; font-weight:750; }
.hjs-call-avatar { width:72px; height:72px; margin:14px auto 10px; border-color:#4a6683; background:#294a70; }
.hjs-call h2 { font-weight:760; }
.hjs-call #callStatusDisplay { color:#d4e5f9; line-height:1.4; }
.hjs-call[data-mode=connected] #callStatusDisplay { color:#a4e5bb; }
.hjs-call-actions { gap:8px; margin:12px 0 4px; }
.hjs-call-actions button { min-height:48px; flex:1 1 124px; max-width:180px; }
.hjs-call .hjs-call-accept { background:#177454; border-color:#3b9777; }
.hjs-call .hjs-call-hangup { background:#a92c48; border-color:#c65a70; }
.hjs-call[data-mode=connected] .hjs-call-hangup { max-width:100%; flex-basis:100%; }
.hjs-call #callAudioHint:not(:empty) { margin:8px 0; color:#c8d7e9; font-size:13px; line-height:1.5; }
.hjs-call #callAudioHint:empty, .hjs-call #callLocationStatus:empty,
.hjs-call .hjs-call-location:has(button[hidden]):has(p:empty) { display:none; }
.hjs-call .hjs-call-location { margin:10px 0 6px; }
.hjs-call #callShareLocation { color:#d9e8fb; background:#253953; }
.hjs-call button:focus-visible { outline:2px solid #b4d7ff; outline-offset:2px; }
@media (max-width:540px) {
    .hjs-call { place-items:end center; padding:12px 10px max(12px,env(safe-area-inset-bottom)); }
    .hjs-call-panel { width:100%; max-width:420px; padding:18px 14px; max-height:100%; overflow-y:auto; }
    .hjs-call-actions button { max-width:none; }
}

.hjs-call-panel { position:relative; }
.hjs-call #callClose {
    position:absolute;
    inset:9px 9px auto auto;
    width:44px;
    height:44px;
    min-height:44px;
    padding:0;
    font-size:25px;
    line-height:1;
    border-radius:50%;
}
