html.tt-content-protection-enabled,
html.tt-content-protection-enabled body{
  -webkit-touch-callout:none;
}

html.tt-content-protection-enabled body,
html.tt-content-protection-enabled body *:not(input):not(textarea):not(select):not([contenteditable]):not([data-tt-copy-allowed]):not([data-tt-select-allowed]){
  -webkit-user-select:none;
  user-select:none;
}

html.tt-content-protection-enabled input,
html.tt-content-protection-enabled textarea,
html.tt-content-protection-enabled select,
html.tt-content-protection-enabled [contenteditable]:not([contenteditable="false"]),
html.tt-content-protection-enabled [data-tt-copy-allowed],
html.tt-content-protection-enabled [data-tt-select-allowed]{
  -webkit-user-select:text;
  user-select:text;
}

html.tt-content-protection-enabled [data-tt-protected-media="true"]{
  -webkit-user-drag:none;
  user-drag:none;
  -webkit-touch-callout:none;
}

.tt-content-protection-shield{
  position:fixed;
  inset:0;
  z-index:2147483646;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(2,8,6,.96);
  -webkit-backdrop-filter:blur(32px) saturate(.6);
  backdrop-filter:blur(32px) saturate(.6);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity 100ms linear,visibility 0s linear 100ms;
}

html.tt-content-protection-shielded .tt-content-protection-shield{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transition-delay:0s;
}

.tt-content-protection-shield-card{
  display:grid;
  gap:8px;
  max-width:min(92vw,520px);
  padding:24px 28px;
  border:1px solid rgba(121,255,169,.28);
  border-radius:20px;
  background:rgba(4,18,12,.9);
  box-shadow:0 22px 80px rgba(0,0,0,.62),inset 0 0 36px rgba(70,255,139,.06);
  text-align:center;
}

.tt-content-protection-shield-card strong{
  font:900 clamp(24px,6vw,46px)/1 system-ui,sans-serif;
  letter-spacing:.12em;
}

.tt-content-protection-shield-card span{
  font:700 11px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.13em;
  opacity:.72;
}

html[data-tt-protection-surface="telegram"] .tt-content-protection-shield{
  background:rgba(5,4,2,.97);
}

html[data-tt-protection-surface="telegram"] .tt-content-protection-shield-card{
  width:min(86vw,360px);
  padding:20px;
  border-radius:24px;
}

.tt-content-protection-notice{
  position:fixed;
  left:50%;
  bottom:max(24px,calc(env(safe-area-inset-bottom) + 16px));
  z-index:2147483647;
  width:min(90vw,680px);
  padding:13px 16px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:14px;
  background:rgba(3,10,7,.96);
  box-shadow:0 14px 52px rgba(0,0,0,.56);
  color:#f6fff9;
  font:700 12px/1.45 system-ui,sans-serif;
  text-align:center;
  pointer-events:none;
}

html[data-tt-protection-surface="telegram"] .tt-content-protection-notice{
  bottom:max(88px,calc(env(safe-area-inset-bottom) + 74px));
  width:min(92vw,440px);
  border-radius:18px;
  background:rgba(12,8,3,.97);
}

@media (prefers-reduced-motion:reduce){
  .tt-content-protection-shield{
    transition:none;
  }
}

@media print{
  html.tt-content-protection-enabled body > *:not(.tt-content-protection-shield){
    display:none!important;
  }

  html.tt-content-protection-enabled .tt-content-protection-shield{
    position:fixed!important;
    inset:0!important;
    display:grid!important;
    opacity:1!important;
    visibility:visible!important;
    background:#000!important;
    color:#fff!important;
  }
}
