/* TEMVIO v1.5.8 — PWA & iOS Readiness */
:root{
  --tv-safe-top:env(safe-area-inset-top,0px);
  --tv-safe-right:env(safe-area-inset-right,0px);
  --tv-safe-bottom:env(safe-area-inset-bottom,0px);
  --tv-safe-left:env(safe-area-inset-left,0px);
}
html,body{min-height:100%;overscroll-behavior-y:none}
body{-webkit-tap-highlight-color:transparent}
button,a,[role="button"]{touch-action:manipulation}
@media(display-mode:standalone){
  html{background:#F6F8F7}
  body{padding-top:var(--tv-safe-top)}
  .tm-nav,.nav,.topbar{padding-left:max(12px,var(--tv-safe-left));padding-right:max(12px,var(--tv-safe-right))}
  .bottom-nav{bottom:max(8px,var(--tv-safe-bottom));left:max(8px,var(--tv-safe-left));right:max(8px,var(--tv-safe-right))}
  .pwa-install-nudge{display:none!important}
}
.pwa-install-nudge{
  position:fixed;z-index:90;left:14px;right:14px;bottom:18px;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  max-width:520px;margin-inline:auto;padding:10px 11px 10px 12px;
  border:1px solid rgba(15,118,110,.18);border-radius:18px;
  background:rgba(255,255,255,.96);box-shadow:0 16px 45px rgba(23,33,31,.16);
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  color:#17211F;direction:rtl
}
#appShell:not(.hidden) ~ .pwa-install-nudge,.pwa-install-nudge.in-app{bottom:calc(88px + var(--tv-safe-bottom))}
.pwa-install-nudge__brand{display:flex;align-items:center;gap:10px;min-width:0}
.pwa-install-nudge__brand img{width:38px;height:38px;border-radius:11px;border:1px solid #DCE5E1;background:#fff;flex:none}
.pwa-install-nudge__copy{display:grid;gap:1px;min-width:0}
.pwa-install-nudge__copy b{font-size:12px;line-height:1.35;color:#17211F}
.pwa-install-nudge__copy span{font-size:10px;color:#5B6864;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pwa-install-nudge__actions{display:flex;align-items:center;gap:6px;flex:none}
.pwa-install-nudge__install{min-height:38px;border:0;border-radius:11px;padding:0 12px;background:#0F766E;color:#fff;font-weight:800;font-size:11px;cursor:pointer}
.pwa-install-nudge__close{width:34px;height:34px;border:0;border-radius:10px;background:#F0F5F3;color:#5B6864;font-size:20px;line-height:1;cursor:pointer}
.pwa-ios-sheet{
  position:fixed;inset:0;z-index:120;display:grid;align-items:end;background:rgba(23,33,31,.46);direction:rtl
}
.pwa-ios-sheet[hidden]{display:none}
.pwa-ios-sheet__panel{background:#fff;border-radius:26px 26px 0 0;padding:14px 18px calc(20px + var(--tv-safe-bottom));box-shadow:0 -20px 50px rgba(23,33,31,.18)}
.pwa-ios-sheet__handle{width:44px;height:5px;border-radius:999px;background:#DCE5E1;margin:0 auto 14px}
.pwa-ios-sheet h3{margin:0 0 7px;font-size:19px;color:#17211F}
.pwa-ios-sheet p{margin:0 0 14px;color:#5B6864;font-size:12px;line-height:1.8}
.pwa-ios-steps{display:grid;gap:9px;margin:0 0 16px;padding:0;list-style:none;counter-reset:pwa}
.pwa-ios-steps li{counter-increment:pwa;display:flex;align-items:center;gap:10px;padding:10px 12px;background:#F6F8F7;border:1px solid #DCE5E1;border-radius:14px;color:#17211F;font-size:12px;font-weight:700}
.pwa-ios-steps li:before{content:counter(pwa);display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#CCFBF1;color:#0F766E;font-weight:900;flex:none}
.pwa-ios-sheet__done{width:100%;min-height:46px;border:0;border-radius:14px;background:#0F766E;color:#fff;font-weight:900;font-size:13px;cursor:pointer}
@media(min-width:681px){.pwa-install-nudge{left:auto;right:24px;bottom:24px;width:410px}.pwa-ios-sheet{place-items:center}.pwa-ios-sheet__panel{width:min(440px,calc(100vw - 32px));border-radius:24px;padding:18px}}
