.calls-root [hidden] { display: none !important; }
body.has-video-call { overflow: hidden; }
.call-eyebrow { display: block; color: var(--brand, #c7265e); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.call-button { min-height: 46px; padding: 11px 17px; border: 1px solid transparent; border-radius: 13px; font: 700 13px/1.4 'DM Sans', system-ui, sans-serif; cursor: pointer; }
.call-button-brand { background: var(--brand, #c7265e); color: #fff; }
.call-button-brand:hover { background: var(--brand-strong, #a9184a); }
.call-button-quiet { border-color: var(--line, #ece6eb); background: #fff; color: var(--ink, #251d26); }
.call-button:focus-visible, .call-control:focus-visible, .call-feedback button:focus-visible { outline: 3px solid var(--brand, #c7265e); outline-offset: 4px; }
.call-button:disabled, .call-control:disabled { opacity: .55; cursor: not-allowed; }

.call-incoming { position: fixed; z-index: 1200; top: calc(12px + env(safe-area-inset-top)); right: 12px; left: 12px; display: grid; grid-template-columns: minmax(0,1fr); gap: 15px; width: auto; max-width: 420px; margin-inline: auto; padding: 18px; border: 1px solid #edd3df; border-radius: 20px; background: #fff; box-shadow: 0 12px 40px rgba(42,25,38,.16); }
.call-incoming-copy { min-width: 0; }
.call-incoming-copy strong { display: block; margin-top: 6px; color: var(--ink, #251d26); font: 800 18px/1.4 'Manrope', system-ui, sans-serif; overflow-wrap: anywhere; }
.call-incoming-copy > span:last-child { display: block; margin-top: 5px; color: var(--ink-soft, #716773); font-size: 12px; line-height: 1.6; }
.call-incoming-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }

.call-overlay { position: fixed; z-index: 1100; inset: 0; display: grid; grid-template-rows: auto minmax(0,1fr) auto; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; background: #fff; color: var(--ink, #251d26); }
.call-overlay:focus { outline: none; }
.call-header { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: calc(15px + env(safe-area-inset-top)) 20px 15px; border-bottom: 1px solid var(--line, #ece6eb); background: #fff; }
.call-header > div { min-width: 0; }
.call-header h2 { margin: 4px 0 0; color: var(--ink, #251d26); font: 800 18px/1.3 'Manrope', system-ui, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-duration { flex: 0 0 auto; padding: 6px 10px; border-radius: 10px; background: var(--brand-soft, #fbe9f0); color: var(--brand, #c7265e); font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 700; }
.call-stage { position: relative; min-height: 0; isolation: isolate; overflow: hidden; background: #211b20; }
.call-remote-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #211b20; }
.call-placeholder { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; padding: 25px; color: #fff; text-align: center; pointer-events: none; }
.call-placeholder-symbol { display: grid; place-items: center; width: 70px; height: 70px; border: 1px solid rgba(255,255,255,.2); border-radius: 23px; background: rgba(255,255,255,.06); color: #e9b5cb; font-size: 32px; }
.call-placeholder p { max-width: 310px; margin: 0; color: #e4d9e0; font-size: 13px; line-height: 1.6; }
.call-local { position: absolute; z-index: 3; right: 12px; bottom: 12px; width: 96px; height: 132px; overflow: hidden; border: 2px solid rgba(255,255,255,.75); border-radius: 15px; background: #45333f; }
.call-local video { display: block; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.call-local.is-camera-off video { visibility: hidden; }
.call-local-label { position: absolute; bottom: 6px; left: 7px; padding: 3px 6px; border-radius: 6px; background: rgba(23,14,20,.65); color: #fff; font-size: 9px; font-weight: 700; }
.call-local-off { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; color: #fff; text-align: center; font-size: 11px; line-height: 1.4; }
.call-button-play { position: absolute; z-index: 5; top: 16px; left: 50%; width: max-content; max-width: calc(100% - 28px); transform: translateX(-50%); border-color: rgba(255,255,255,.3); background: #fff; color: var(--ink, #251d26); box-shadow: 0 5px 16px rgba(0,0,0,.15); }
.call-footer { padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line, #ece6eb); background: #fff; text-align: center; }
.call-status { max-width: 650px; margin: 0 auto 15px; color: var(--ink, #251d26); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.call-controls { display: flex; align-items: flex-start; justify-content: center; gap: 11px; }
.call-control { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 86px; min-width: 0; min-height: 76px; padding: 10px 5px; border: 1px solid var(--line, #ece6eb); border-radius: 15px; background: #fff; color: var(--ink, #251d26); cursor: pointer; font: 700 11px/1.35 'DM Sans', system-ui, sans-serif; }
.call-control svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.call-control[aria-pressed="true"] { border-color: #edb5c8; background: var(--brand-soft, #fbe9f0); color: var(--brand-strong, #a9184a); }
.call-control-end { border-color: #c62e48; background: #c62e48; color: #fff; }
.call-control-end:hover { background: #ab2139; }
.call-help { max-width: 470px; margin: 13px auto 0; color: var(--ink-soft, #716773); font-size: 11px; line-height: 1.6; }
.call-close { margin-top: 16px; }
.call-feedback { position: fixed; z-index: 1300; right: 14px; bottom: calc(92px + env(safe-area-inset-bottom)); left: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 480px; margin-inline: auto; padding: 11px 10px 11px 17px; border: 1px solid var(--line, #ece6eb); border-radius: 15px; background: #fff; box-shadow: 0 8px 28px rgba(42,25,38,.15); color: var(--ink, #251d26); font-size: 13px; line-height: 1.55; }
.call-feedback > span { min-width: 0; overflow-wrap: anywhere; }
.call-feedback button { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--surface-soft, #faf8fa); color: var(--ink-soft, #716773); cursor: pointer; font-size: 24px; }

@media (min-width: 720px) {
    .call-incoming { top: 22px; right: 24px; left: auto; padding: 22px; }
    .call-header { padding-inline: 30px; }
    .call-header h2 { font-size: 22px; }
    .call-local { width: 160px; height: 205px; right: 25px; bottom: 25px; border-radius: 19px; }
    .call-local-label { font-size: 11px; }
    .call-footer { padding-top: 18px; }
    .call-controls { gap: 15px; }
    .call-control { width: 94px; min-height: 76px; }
    .call-feedback { bottom: 24px; }
}

@media (max-height: 550px) and (orientation: landscape) {
    .call-header { min-height: 54px; padding-block: 8px; }
    .call-header h2 { font-size: 15px; }
    .call-header .call-eyebrow { display: none; }
    .call-footer { padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); }
    .call-status { margin-bottom: 7px; font-size: 11px; }
    .call-control { min-height: 46px; flex-direction: row; width: auto; padding: 8px 13px; }
    .call-control svg { width: 19px; height: 19px; }
    .call-help { display: none; }
    .call-local { width: 88px; height: 105px; right: 10px; bottom: 10px; }
}
