

// ===== OK ITHAKI V249345 RESTORE FULL APP BUTTONS - KILL TRUE RENDERER =====
(function(){
  if(window.__ITHAKI_V249345_RESTORE_FULL_APP__) return; window.__ITHAKI_V249345_RESTORE_FULL_APP__=1;
  const BUILD='V249345';
  const $=id=>document.getElementById(id);
  function addCss(){
    if($('ithV249345RestoreCss')) return;
    const st=document.createElement('style'); st.id='ithV249345RestoreCss'; st.textContent=`
      body{overflow:auto!important}
      body.ithTrueFeedOn341{overflow:auto!important}
      #ithTrueFeed341,#ithV249341Css,#ithTrueFeedList341{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;z-index:-1!important;overflow:hidden!important}
      body.ithTrueFeedOn341 #feedPage,
      body.ithTrueFeedOn341 #feedPage *,
      #feedPage,#feedPage *{visibility:visible!important;pointer-events:auto!important}
      #ithBuild342{position:fixed;right:8px;top:calc(env(safe-area-inset-top,0px) + 2px);z-index:2147483647;font:900 10px/1 system-ui;color:#ffd978;background:rgba(0,0,0,.65);border:1px solid rgba(255,217,120,.55);border-radius:999px;padding:4px 7px;pointer-events:none}
      #ithRestoreNote342{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(env(safe-area-inset-bottom,0px) + 82px);z-index:2147482500;color:#ffe7a8;background:rgba(0,0,0,.56);border:1px solid rgba(255,217,120,.32);border-radius:999px;padding:6px 10px;font:800 11px system-ui;pointer-events:none;opacity:.88}
      #feedPage button,#feedPage a,#feedPage [role='button'],#messagesPage button,#messagesPage a,#homePage button,#homePage a{pointer-events:auto!important;touch-action:manipulation!important}
      video::-webkit-media-controls-fullscreen-button{display:none!important;opacity:0!important;width:0!important;height:0!important}
      [class*='fullscreen' i],[id*='fullscreen' i],[class*='zoom' i],[id*='zoom' i],[title*='zoom' i],[title*='full' i],.fullScreenIcon,.fullscreenIcon,.zoomBtn,.magnify{display:none!important;visibility:hidden!important;pointer-events:none!important}
      #previewModal.show,.previewModal.show{overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;max-height:100dvh!important;align-items:unset!important;justify-content:unset!important;padding-bottom:calc(env(safe-area-inset-bottom,0px) + 36px)!important}
      #previewModal.show .row:last-child,.previewModal.show .row:last-child{position:sticky!important;bottom:0!important;z-index:2147483600!important;background:rgba(7,17,30,.98)!important;border-radius:16px!important;padding:10px!important;display:flex!important;gap:8px!important;flex-wrap:wrap!important}
      #ithPreviewCancel342{position:fixed!important;top:calc(env(safe-area-inset-top,0px) + 8px)!important;left:10px!important;z-index:2147483647!important;border:0!important;border-radius:16px!important;background:#d83b3b!important;color:#fff!important;font-weight:1000!important;padding:11px 15px!important;box-shadow:0 12px 30px rgba(0,0,0,.45)!important}
    `; document.head.appendChild(st);
  }
  function kill341(){
    try{document.body.classList.remove('ithTrueFeedOn341')}catch{}
    ['ithTrueFeed341','ithV249341Css','ithTrueFeedList341','ithBuild341'].forEach(id=>{try{$(id)?.remove()}catch{}});
    try{if(window.ITH) window.ITH.forceTrueFeedV249341=function(){return false}}catch{}
  }
  function badge(){
    if(!$('ithBuild342')){const b=document.createElement('div');b.id='ithBuild342';b.textContent=BUILD+' RESTORE';document.body.appendChild(b)}
    if(!$('ithRestoreNote342')){const n=document.createElement('div');n.id='ithRestoreNote342';n.textContent='Πλήρης εφαρμογή ενεργή · κουμπιά ανοικτά';document.body.appendChild(n); setTimeout(()=>{try{n.style.display='none'}catch{}},7000)}
  }
  function preview(){
    const pm=$('previewModal'); if(!pm) return;
    const show=pm.classList.contains('show')||String(pm.innerHTML||'').trim().length>20;
    if(!show){$('ithPreviewCancel342')?.remove(); return;}
    pm.classList.add('show');
    if(!$('ithPreviewCancel342')){const c=document.createElement('button');c.id='ithPreviewCancel342';c.textContent='Άκυρο';c.type='button';c.onclick=()=>{try{if(window.ITH&&ITH.closePreview) ITH.closePreview(); else {pm.classList.remove('show');pm.innerHTML='';}}catch{pm.classList.remove('show');pm.innerHTML='';} c.remove();};document.body.appendChild(c)}
  }
  function loop(){addCss();kill341();badge();preview();}
  if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',loop,{once:true}); else loop();
  [80,200,500,1000,1800,3000,5000].forEach(t=>setTimeout(loop,t));
  setInterval(loop,900);
  new MutationObserver(loop).observe(document.documentElement,{childList:true,subtree:true,attributes:true});
})();
// ===== END OK ITHAKI V249345 RESTORE FULL APP BUTTONS =====
