/* Shared visual surface for the packaged native client and browser /pilot/. */
#native-call[hidden] { display: none; }
#native-call {
  position: fixed; z-index: 100; inset: 0; color: var(--text, #f1f5fc);
  background: radial-gradient(ellipse at top, #1c3d65, #090e17 75%);
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) calc(112px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  overflow: auto; overflow-wrap: anywhere; overscroll-behavior: contain; scroll-padding-block-end: 112px;
}
#native-call > * { inline-size: min(100%, 26rem); margin-inline: auto; }
#native-call-title { text-align: center; font-size: 1.75rem; margin-block: 1.25rem .75rem; }
#native-call-title::before {
  content: ""; display: block; inline-size: 4.5rem; block-size: 4.5rem; margin: 0 auto 1rem;
  border: 1px solid #5d91c6; border-radius: 50%; background: #214b7a url("app-icon.svg") center / cover no-repeat;
  box-shadow: 0 0 0 .5rem #79bbff0d;
}
#native-call-status { text-align: center; font-size: .9375rem; color: #d4e5f9; }
#native-call button, #native-call select { min-block-size: 52px; font-size: 1rem; inline-size: 100%; margin-block: .5rem; }
#native-call > button { display: block; inline-size: min(100%, 26rem); }
#native-call label { font-size: .8125rem; }
#native-call > div > p { font-size: .8125rem; color: #b8c7db; line-height: 1.55; }
#native-call .actions { display: grid; gap: .625rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#native-call .actions button { font-size: .875rem; min-block-size: 4.5rem; border-radius: 1.125rem; }
#native-call ul { list-style: none; padding: 0; border-radius: 1rem; background: #0c1b2c88; }
#native-call li { padding: .75rem; border-bottom: 1px solid #2b4664; font-size: .8125rem; }
#native-call li:last-child { border: 0; }
#native-call footer { font-size: .75rem; line-height: 1.55; color: #b8c7db; margin-block-start: 1.25rem; }
#native-call .quality { font-weight: 650; font-size: .8125rem; }
#native-quality { text-align: center; }
.quality[data-color=green] { color: #83e2bc; }
.quality[data-color=yellow] { color: #ffdc75; }
.quality[data-color=red] { color: #ff9a9a; }
.quality[data-color=gray] { color: #c3c9d3; }
#native-call-error { white-space: pre-wrap; color: #ffb9a4; }
#native-call [aria-live] { min-block-size: 1.5em; }
#native-answer { background: var(--primary, #1468cf); border-color: #3d86de; color: white; }
#native-decline { background: #3a2030; border-color: #8e4b5e; color: #ffc0cb; }
#native-mute::before, #native-sound::before {
  content: ""; display: block; inline-size: 1.375rem; block-size: 1.375rem; margin: 0 auto .375rem;
  background: currentColor; -webkit-mask: var(--button-icon) center / contain no-repeat; mask: var(--button-icon) center / contain no-repeat;
}
#native-mute { --button-icon: var(--icon-mic); }
#native-sound { --button-icon: var(--icon-volume); }
#native-end {
  position: fixed; z-index: 2; inset-inline-start: 50%; transform: translateX(-50%); inset-block-end: max(.75rem, env(safe-area-inset-bottom));
  inline-size: min(calc(100% - 40px), 26rem) !important; min-block-size: 56px !important; margin: 0 !important;
  border-radius: 2rem; background: #ba344d; border-color: #d8576d; color: white; box-shadow: 0 0 0 .5rem #090e17;
}
#native-end::before { content: ""; display: inline-block; inline-size: 1.125rem; block-size: 1.125rem; margin-inline-end: .5rem; vertical-align: -.125rem; background: currentColor; -webkit-mask: var(--icon-phone) center / contain no-repeat; mask: var(--icon-phone) center / contain no-repeat; transform: rotate(135deg); }
#native-close { background: var(--primary, #1468cf); color: white; }
/* Browser capture tests stay hidden beside the single native media owner. */
#audio-diagnostics, #local-tone, #server-tone, #diagnostic-echo, #start-local-tone, #start-server-tone, #start-diagnostic-echo,
#notification-settings, #microphone-settings, #speaker-test, #server-tone-test, #echo-test, #diagnostic-test-status { display: none !important; }
@media (max-height: 520px) { #native-call-title::before { display: none; } #native-call-title { margin-block: .25rem; font-size: 1.375rem; } }

html[data-browser-p2p=true] #notification-settings { display:block !important; }
