/* Scoped presentation corrections from the first real Home/Private call round.
   Keep media nodes, call handlers, permission state and hidden controls intact. */
html.wuppa-outline body.wuppa-outline.wuppa-private-shell #nfc-guide > p {
  padding-inline: 14px;
}
html.wuppa-outline body.wuppa-outline.wuppa-private-shell #nfc-guide > ol {
  padding-inline-end: 14px;
}

/* The visitor entry has its own ID-specific legacy palette. */
html.wuppa-outline body.wuppa-outline[data-wuppa-home-polish="1"][data-home-entry="056"] #welcome :is(#quick-contacts .door-action, #purpose-menu .purpose-button, #wuppa-register) {
  background: #fff;
  color: #cf4500;
  border-color: #ff5a00;
  border-radius: 6px;
}
html.wuppa-outline body.wuppa-outline[data-wuppa-home-polish="1"][data-home-entry="056"] #welcome :is(#quick-contacts .door-action, #purpose-menu .purpose-button, #wuppa-register):not(:disabled):hover {
  background: #fff3eb;
  color: #b53a00;
  border-color: #cf4500;
}
html.wuppa-outline body.wuppa-outline[data-wuppa-home-polish="1"][data-home-entry="056"] #welcome :is(a, button):focus-visible {
  outline-color: #0f1b2d;
}

/* The shared incoming notice is used by both Private and Home. */
html.wuppa-outline body.wuppa-outline #wuppa-incoming-call {
  background: #fff;
  color: #0f1b2d;
  border-color: #ff5a00;
  border-radius: 6px;
}
/* A pending call must remain reachable when its owner scrolls another page.
   Only the shared notice floats; the actual call panel's Answer stays inline. */
html.wuppa-outline body.wuppa-outline #wuppa-incoming-call.wuppa-call-inline:not([hidden]) {
  position: fixed;
  inset: auto;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  width: min(480px, calc(100% - 24px));
  max-width: 480px;
  max-height: calc(100dvh - 24px);
  overflow: auto;
  margin: 0;
  box-shadow: 0 8px 28px #0f1b2d33;
}
html.wuppa-outline body.wuppa-outline #wuppa-incoming-call .incoming-call-kind {
  color: #cf4500;
}
html.wuppa-outline body.wuppa-outline #wuppa-incoming-call :is(.incoming-call-help, .incoming-call-status) {
  color: #526174;
}
/* This class contains only the reviewed "current screen stays open" sentence.
   The caller/household, actions and actionable status remain visible. */
html.wuppa-outline body.wuppa-outline #wuppa-incoming-call .incoming-call-help {
  display: none;
}
html.wuppa-outline body.wuppa-outline #wuppa-incoming-call button {
  background: #fff;
  color: #cf4500;
  border-color: #ff5a00;
  border-radius: 6px;
}
html.wuppa-outline body.wuppa-outline #wuppa-incoming-call button.incoming-call-open {
  border-width: 2px;
}
html.wuppa-outline body.wuppa-outline #wuppa-incoming-call button:not(:disabled):hover {
  background: #fff3eb;
  color: #b53a00;
  border-color: #cf4500;
}
/* Contact-request actions must remain above Chat's fixed composer/navigation.
   Real incoming calls retain their higher priority at z-index 9000. */
html.wuppa-outline body.wuppa-outline.wuppa-private-shell .private-request-attention {
  z-index: 8000;
}

/* Give video a bounded frame instead of a full-width, fixed-height strip.
   Contain the whole remote image; never crop faces or the camera view. */
html.wuppa-outline body.wuppa-outline.wuppa-private-shell #private-live-panel > .videos,
html.wuppa-outline body.wuppa-outline.wuppa-private-shell #private-live-panel #workspace-call .videos {
  width: 100%;
  max-width: min(100%, calc(60dvh * 16 / 9));
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
}
html.wuppa-outline body.wuppa-outline.wuppa-private-shell #private-live-panel .videos #remote-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
html.wuppa-outline body.wuppa-outline.wuppa-private-shell #private-live-panel .videos #local-video {
  width: 24%;
  height: auto;
  min-height: 0;
  max-width: 160px;
  max-height: 30%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
