/* =========================================================
   PR⭕️—вес — v2.11.28 fullscreen hard-fix

   Goals:
   - keep every page below Telegram native top controls in fullscreen;
   - preserve home-reference / hero / hotspot geometry as one unit;
   - restore the exact existing doctor/signature assets without redesign.
   ========================================================= */

:root {
  --proves-v21128-top-inset: max(
    var(--tg-content-safe-area-inset-top, 0px),
    var(--tg-safe-area-inset-top, 0px),
    env(safe-area-inset-top, 0px)
  );
}

/* JS writes an inline !important padding-top to .content after Telegram's
   safe-area values are refreshed. This CSS is the standards-based fallback. */
.content {
  padding-top: var(--proves-v21128-top-inset) !important;
}

/* Keep the existing coordinate system untouched. */
.home-reference-wrap,
.home-reference-image,
.reference-hotspot,
.proves-hero-carousel,
.proves-hero-viewport,
.proves-hero-track,
.proves-hero-slide {
  box-sizing: border-box;
}

/* Only visibility/loading guard. Existing dimensions, crop and margins remain
   owned by the original v2.11.25 CSS. */
.doctor-photo,
.signature-balance-logo,
.signature-balance-logo img {
  visibility: visible !important;
  opacity: 1 !important;
}

.doctor-photo,
.signature-balance-logo img {
  display: block !important;
}
