/* OK ITHAKI V249461
 * Full-code frontend integration:
 * - Professional home using the existing navigation routes.
 * - Outdoor (Sun) theme: white surfaces, black text, red/green/blue action buttons.
 * - Original green Sokrataki turtle visual, renamed Bil.
 * - Athena legacy greetings/panels removed from the visible interface.
 * No database, media, messages, calls, friendship, feed or publishing API changes.
 */
(function(){
  'use strict';
  window.__ITHAKI_V249500_HOME_OWNER__=true;
  window.__ITHAKI_V249500_HOME_LAYOUT__={singleOwner:true,twoColumns:true,fullVisibleArea:true,homeAvatarTruth:true};
window.HOME_MODERN_COLORED_PICTOGRAMS_R10F17=true;
window.HOME_SPECIAL_PRO_PICTOGRAMS_R10F18=true;
  if(window.__ITHAKI_V249466_GREEN_BIL_FULL__)return;
  window.__ITHAKI_V249466_GREEN_BIL_FULL__={version:'V249470-mobile-video-bil-onboarding-avatar-notices',installedAt:Date.now()};

  var VERSION='V249470-mobile-video-bil-onboarding-avatar-notices';
  var HOME_MARK='data-v249461-home';
  var BIL_ID='ithBilGreenTurtleV249461';
  var BIL_MENU_ID='ithBilMenuV249461';
  var BIL_POP_ID='ithBilPopV249461';
  var BIL_KEY='ith_bil_enabled_v249461';
  var applyingHome=false,homeTimer=0,observer=null,bilTimer=0,bilHideTimer=0,greeted=false,lastBilIndex=-1,lastWisdomIndex=-1;
  var BIL_INTERVAL_MS=300000,BIL_VISIBLE_MS=15000;

  function $(id){return document.getElementById(id)}
  function I(){return window.ITH||(window.ITH={})}
  function esc(v){return String(v==null?'':v).replace(/[&<>"']/g,function(c){return {'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#39;'}[c]})}
  function text(el){return String(el&&el.textContent||'').replace(/\s+/g,' ').trim()}
  function isEnglish(){
    try{
      var bodyLang=document.body&&document.body.getAttribute('data-ui-lang');
      var saved=localStorage.getItem('ith_ui_lang_v249141')||localStorage.getItem('ith_ui_lang')||bodyLang||document.documentElement.lang||'el';
      return String(saved).toLowerCase().indexOf('en')===0;
    }catch(_e){return String(document.documentElement.lang||'el').toLowerCase().indexOf('en')===0}
  }
  function tr(el,en){return isEnglish()?en:el}
  function isHome(){var h=$('homePage');return !!((document.body&&document.body.dataset.page==='home')||(h&&h.classList.contains('active')))}
  function safeToast(el,en,ms){
    var msg=tr(el,en);
    try{if(typeof I().toast==='function')return I().toast(msg,ms||3600)}catch(_e){}
    try{if(typeof window.toast==='function')return window.toast(msg,ms||3600)}catch(_e){}
    var t=$('toast');if(t){t.textContent=msg;t.classList.add('show');setTimeout(function(){t.classList.remove('show')},ms||3600)}
    return false;
  }

  var WISDOM_EL=[
    'Η καθαρή επικοινωνία αρχίζει όταν ακούμε πριν απαντήσουμε.',
    'Μια μικρή καλή λέξη μπορεί να αλλάξει ολόκληρη τη μέρα κάποιου.',
    'Η αλήθεια γίνεται πιο χρήσιμη όταν προσφέρεται με καλοσύνη.',
    'Η σωστή ερώτηση ανοίγει δρόμους που η βιαστική απάντηση κρατά κλειστούς.',
    'Η ΙΘΑΚΗ χτίζεται από μικρές, αληθινές και ανθρώπινες συμμετοχές.',
    'Το να ακούς πραγματικά είναι μία από τις πιο ήσυχες μορφές σοφίας.',
    'Γνώρισε πρώτα τι δεν γνωρίζεις· από εκεί αρχίζει η αληθινή μάθηση.',
    'Ο άνθρωπος που εξετάζει τις σκέψεις του γίνεται πιο ελεύθερος από αυτές.',
    'Η καλοσύνη χωρίς αλήθεια είναι αδύναμη· η αλήθεια χωρίς καλοσύνη είναι σκληρή.'
  ];
  var WISDOM_EN=[
    'Clear communication begins when we listen before replying.',
    'One kind sentence can change someone’s whole day.',
    'Truth is more useful when it is offered with kindness.',
    'The right question opens paths that a rushed answer keeps closed.',
    'ITHAKI is built through small, genuine and human contributions.',
    'Truly listening is one of the quietest forms of wisdom.',
    'First recognise what you do not know; real learning begins there.',
    'A person who examines their thoughts becomes freer from them.',
    'Kindness without truth is weak; truth without kindness is harsh.'
  ];
  var BIL_EL=[
    'Δοκίμασε πρώτα τον Τοίχο, μετά τον Φάρο και ύστερα το Μπουκάλι.',
    'Μην βιάζεσαι να απαντήσεις πριν καταλάβεις τι πραγματικά σου λένε.',
    'Ένας ήρεμος διάλογος μπορεί να φτάσει πιο μακριά από μία δυνατή αντιπαράθεση.',
    'Ρώτησε πρώτα τι γνωρίζεις, τι υποθέτεις και τι χρειάζεται ακόμη έλεγχο.',
    'Στείλε ένα μήνυμα σε κάποιον που ίσως χρειάζεται μία καλή λέξη.',
    'Η σοφία δεν είναι να μιλάς πάντα· είναι να γνωρίζεις πότε αξίζει να μιλήσεις.'
  ];
  var BIL_EN=[
    'Try the Wall first, then the Lighthouse and then the Bottle.',
    'Do not rush to answer before understanding what someone is really telling you.',
    'A calm dialogue can travel farther than a loud confrontation.',
    'Ask first what you know, what you assume and what still needs checking.',
    'Send a message to someone who may need a kind word.',
    'Wisdom is not speaking all the time; it is knowing when speaking matters.'
  ];
  function rotate(list,last){var i=Math.floor(Math.random()*list.length);if(list.length>1&&i===last)i=(i+1)%list.length;return {i:i,v:list[i]}}
  function nextWisdom(){var r=rotate(isEnglish()?WISDOM_EN:WISDOM_EL,lastWisdomIndex);lastWisdomIndex=r.i;return r.v}
  function nextBil(){var r=rotate(isEnglish()?BIL_EN:BIL_EL,lastBilIndex);lastBilIndex=r.i;return r.v}

  function injectCss(){
    if($('ithV249461Css'))return;
    var s=document.createElement('style');s.id='ithV249461Css';s.textContent=`
      :root{--ith-v249461-nav-lift:22px}
      body[data-page="home"] #homePage{overflow-y:auto!important;overflow-x:hidden!important;padding:0 max(10px,env(safe-area-inset-left)) calc(var(--bar,68px) + 62px) max(10px,env(safe-area-inset-right))!important;background:radial-gradient(circle at 15% 8%,rgba(36,100,194,.27),transparent 35%),radial-gradient(circle at 88% 72%,rgba(168,35,128,.23),transparent 38%),linear-gradient(155deg,rgba(3,14,31,.97),rgba(4,10,27,.99))!important}
      body[data-page="home"] .proFooter{display:none!important}
      #homeBottomIthakiDockV249285,.homeBottomIthakiDockV249285,#homePage #commHomeMountV249280,#homePage #bottleHomeMountV249274,#homePage #lighthouseHomeMountV249278,#homePage #ithHomeWall378{display:none!important}
      [id^="ithDiagV2494"],#athinaFabV249258,#ithAthena378,#ithSocrates378,#socratakiFabV249252,[id*="athinaWelcome" i],[id*="athenaWelcome" i],[id*="athinaPanel" i],[id*="athenaPanel" i],[class*="athinaWelcome" i],[class*="athenaWelcome" i],[class*="athinaMenu" i],[class*="athenaMenu" i]{display:none!important;visibility:hidden!important;pointer-events:none!important}
      .ithHomeV249461{width:min(1060px,100%);margin:0 auto;display:flex;flex-direction:column;gap:11px;min-height:calc(100dvh - var(--top,58px) - var(--bar,68px) - 24px)}
      .ithActiveTopV249461{position:sticky;top:10px;z-index:86;margin:10px -2px 7px;padding:8px 4px 10px;background:linear-gradient(180deg,rgba(3,15,29,.72),rgba(3,15,29,.18));border:1px solid rgba(255,255,255,.09);border-radius:20px;box-shadow:0 12px 32px rgba(0,0,0,.20);backdrop-filter:blur(16px) saturate(125%);-webkit-backdrop-filter:blur(16px) saturate(125%)}
      .ithActiveTopV249461 .homeStories,.ithActiveTopV249461 .storyGlassBar{position:relative!important;top:auto!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
      .ithActiveTopV249461 .storyScroll{display:flex!important;gap:10px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important}.ithActiveTopV249461 .storyScroll::-webkit-scrollbar{display:none!important}
      .ithHeroV249461{text-align:center;padding:6px 12px 1px}.ithShipV249461{width:124px;height:86px;object-fit:contain;filter:drop-shadow(0 12px 22px rgba(0,0,0,.40)) drop-shadow(0 0 18px rgba(255,210,100,.24))}
      .ithBrandV249461{display:flex;align-items:baseline;justify-content:center;gap:12px;flex-wrap:wrap;margin:-3px 0 0;line-height:.87;font-weight:1000;letter-spacing:-2px}.ithBrandOkV249461{font-size:clamp(64px,13.5vw,132px);background:linear-gradient(100deg,#ff3f67 0%,#ffae38 20%,#ffe55d 36%,#ee65ff 55%,#68d8ff 76%,#36efa5 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.ithBrandNameV249461{font-size:clamp(34px,7.4vw,74px);background:linear-gradient(100deg,#ff67df,#b58cff 38%,#65dfff 70%,#9fffe0);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
      .ithOldWelcomeV249461{margin:9px 0 0;color:#f5f8ff;font-size:clamp(18px,3vw,28px);font-weight:900}.ithOldWelcomeV249461 .okMini{background:linear-gradient(100deg,#ff4a6e,#ffbd42,#df62ff,#62d9ff,#42efaa);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.ithOldLineV249461{margin:5px auto 0;max-width:760px;color:rgba(237,247,255,.76);font-size:clamp(13px,2.2vw,17px);line-height:1.35}
      .ithWisdomV249461{width:min(930px,100%);margin:0 auto;padding:12px 15px;border:1px solid rgba(255,218,123,.30);border-radius:20px;background:linear-gradient(145deg,rgba(255,211,110,.12),rgba(80,176,255,.07));box-shadow:0 14px 34px rgba(0,0,0,.22);text-align:center;backdrop-filter:blur(12px)}.ithWisdomV249461 b{display:block;color:#ffe08b;font-size:13px}.ithWisdomV249461 p{margin:5px auto 0;max-width:780px;color:#f7fbff;font-size:clamp(14px,2.2vw,18px);line-height:1.45;font-weight:750}
      .ithActionsV249461{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(118px,1fr);gap:12px;width:100%;max-width:980px;min-height:clamp(390px,54dvh,650px);margin:0 auto;padding:2px 2px calc(92px + env(safe-area-inset-bottom))}.ithActionV249461{grid-column:auto!important;min-width:0;min-height:118px;padding:13px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border-radius:22px!important;border:1px solid rgba(255,255,255,.13)!important;background:linear-gradient(155deg,rgba(255,255,255,.105),rgba(255,255,255,.035))!important;color:#fff!important;box-shadow:0 17px 42px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.08)!important;backdrop-filter:blur(15px) saturate(125%)!important;-webkit-backdrop-filter:blur(15px) saturate(125%)!important;cursor:pointer!important;touch-action:manipulation!important;position:relative;overflow:hidden;text-align:center!important}.ithActionV249461:active{transform:scale(.975)}.ithActionIconV249461{width:70px;height:70px;border-radius:22px;display:grid;place-items:center;font-size:35px;background:radial-gradient(circle at 34% 24%,rgba(255,255,255,.36),transparent 27%),linear-gradient(145deg,rgba(71,213,255,.30),rgba(160,94,255,.24));border:1px solid rgba(75,215,255,.44);box-shadow:0 0 25px rgba(70,210,255,.15),inset 0 1px 0 rgba(255,255,255,.17)}.ithActionIconV249461 svg{width:38px;height:38px;display:block;filter:drop-shadow(0 4px 8px rgba(0,0,0,.22))}.ithActionV249461[data-ith-sun-color="blue"]{--homeSpecial:#41b8ff}.ithActionV249461[data-ith-sun-color="green"]{--homeSpecial:#38e49b}.ithActionV249461[data-ith-sun-color="red"]{--homeSpecial:#ff6679}.ithActionV249461[data-ith-sun-color="gold"]{--homeSpecial:#ffd15c}.ithActionV249461{border-color:color-mix(in srgb,var(--homeSpecial,#65dfff) 36%,rgba(255,255,255,.14))!important;background:radial-gradient(circle at 85% 12%,color-mix(in srgb,var(--homeSpecial,#65dfff) 20%,transparent),transparent 33%),linear-gradient(155deg,rgba(255,255,255,.115),rgba(255,255,255,.035))!important}.ithActionV249461:before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 15%,rgba(255,255,255,.10) 38%,transparent 58%);transform:translateX(-120%);transition:transform .45s ease;pointer-events:none}.ithActionV249461:hover:before{transform:translateX(120%)}.ithActionIconV249461{color:var(--homeSpecial,#65dfff)!important;background:radial-gradient(circle at 34% 24%,rgba(255,255,255,.42),transparent 26%),linear-gradient(145deg,color-mix(in srgb,var(--homeSpecial,#65dfff) 34%,rgba(5,17,30,.94)),rgba(5,17,30,.92))!important;border-color:color-mix(in srgb,var(--homeSpecial,#65dfff) 68%,white 8%)!important;box-shadow:0 12px 25px color-mix(in srgb,var(--homeSpecial,#65dfff) 20%,transparent),inset 0 1px 0 rgba(255,255,255,.20)!important}.ithActionV249461 b{font-size:clamp(13px,2vw,18px);line-height:1.12;color:#fff}.ithActionV249461 small{font-size:11px;line-height:1.2;color:rgba(238,247,255,.64);max-width:190px}
      .nav{left:max(9px,env(safe-area-inset-left))!important;right:max(9px,env(safe-area-inset-right))!important;bottom:calc(var(--ith-v249461-nav-lift) + env(safe-area-inset-bottom))!important;width:auto!important;max-width:760px!important;margin:0 auto!important;height:67px!important;padding:6px 8px!important;border-radius:24px!important;background:linear-gradient(180deg,rgba(5,18,34,.58),rgba(5,18,34,.34))!important;border:1px solid rgba(255,255,255,.10)!important;box-shadow:0 17px 46px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.06)!important;backdrop-filter:blur(18px) saturate(135%)!important;-webkit-backdrop-filter:blur(18px) saturate(135%)!important}
      #${BIL_ID}{position:fixed;left:max(10px,env(safe-area-inset-left));bottom:calc(var(--bar,68px) + 34px + env(safe-area-inset-bottom));z-index:2147482000;width:66px;height:66px;border:0!important;outline:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;display:none;place-items:center;cursor:pointer;color:#000;padding:0;touch-action:manipulation;overflow:visible}#${BIL_ID}:focus,#${BIL_ID}:active{outline:0!important;background:transparent!important;box-shadow:none!important;transform:scale(.97)}
      #${BIL_ID} .sokraMiniV249252{position:relative;width:48px;height:44px;display:block}#${BIL_ID} .sokraMiniV249252 .shell{position:absolute;left:11px;top:17px;width:30px;height:23px;border-radius:18px 18px 12px 12px;background:radial-gradient(circle at 45% 26%,#ffe192 0 19%,#61b987 20% 52%,#276f58 53% 100%);border:2px solid rgba(255,255,255,.28);animation:sokraShellBreathV249252 4.8s ease-in-out infinite}#${BIL_ID} .sokraMiniV249252 .head{position:absolute;left:20px;top:2px;width:20px;height:20px;border-radius:50%;background:#7bd59b;border:2px solid rgba(255,255,255,.28);transform-origin:50% 110%;animation:sokraNeckV249252 5.2s ease-in-out infinite}#${BIL_ID} .sokraMiniV249252 .eye{position:absolute;top:6px;width:3px;height:5px;background:#10231e;border-radius:99px;animation:sokraBlinkV249252 5.4s infinite}#${BIL_ID} .sokraMiniV249252 .eye.l{left:6px}#${BIL_ID} .sokraMiniV249252 .eye.r{right:6px}#${BIL_ID} .sokraMiniV249252 .foot{position:absolute;bottom:0;width:9px;height:7px;border-radius:99px;background:#65be86}#${BIL_ID} .sokraMiniV249252 .foot.l{left:8px}#${BIL_ID} .sokraMiniV249252 .foot.r{right:5px}
      #${BIL_MENU_ID}{position:fixed;left:max(12px,env(safe-area-inset-left));bottom:calc(var(--bar,68px) + 108px + env(safe-area-inset-bottom));z-index:2147483400;width:min(390px,calc(100vw - 24px));max-height:min(72vh,650px);overflow:auto;border-radius:22px;border:1px solid rgba(255,217,110,.38);background:rgba(6,18,24,.98);box-shadow:0 25px 80px rgba(0,0,0,.58);padding:13px;color:#fff}.ithBilHeadV249461{display:grid;grid-template-columns:54px minmax(0,1fr) 40px;align-items:center;gap:9px}.ithBilHeadV249461 .miniWrap{width:52px;height:48px;display:grid;place-items:center}.ithBilHeadV249461 b{color:#ffe8a8;font-size:18px}.ithBilHeadV249461 small{display:block;opacity:.65}.ithBilCloseV249461{width:38px;height:38px;border-radius:13px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.07);color:#fff;font-size:22px}.ithBilTextV249461{margin:11px 0;padding:11px;border-radius:15px;background:rgba(255,255,255,.06);line-height:1.5}.ithBilActionsV249461{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ithBilActionsV249461 button{min-height:43px;border-radius:14px;border:1px solid rgba(255,217,110,.28);background:rgba(255,255,255,.06);color:#ffe8a8;font-weight:850;padding:8px}.ithBilActionsV249461 button[data-bil-action="toggle"]{grid-column:1/-1}
      #${BIL_POP_ID}{position:fixed;left:max(86px,env(safe-area-inset-left));bottom:calc(var(--bar,68px) + 47px + env(safe-area-inset-bottom));z-index:2147483300;width:min(78vw,430px);padding:13px 15px;border-radius:19px;border:1px solid rgba(238,194,103,.48);background:rgba(5,9,13,.96);box-shadow:0 22px 62px rgba(0,0,0,.58);color:#fff;opacity:0;transform:translateY(12px) scale(.98);pointer-events:none;transition:.18s ease;line-height:1.48;font-size:14px}#${BIL_POP_ID}.show{opacity:1;transform:translateY(0) scale(1)}.ithBilPopTitleV249461{display:block;color:#ffe197;margin-bottom:4px;font-weight:950}

      /* Outdoor/Sun: white surfaces and bold black text, with professional red/green/blue actions. */
      body[data-screen-theme="outdoor"],body[data-screen-theme="outdoor"] .app,body[data-screen-theme="outdoor"] .main,body[data-screen-theme="outdoor"] .page,body[data-screen-theme="outdoor"] #homePage{background:#fff!important;background-image:none!important;color:#000!important}
      body[data-screen-theme="outdoor"] *:not(img):not(video):not(canvas):not(svg):not(path){text-shadow:none!important;font-weight:800!important}
      body[data-screen-theme="outdoor"] .top,body[data-screen-theme="outdoor"] #nav.nav,body[data-screen-theme="outdoor"] #plusSheet,body[data-screen-theme="outdoor"] #memberMenu,body[data-screen-theme="outdoor"] #previewModal .previewBox,body[data-screen-theme="outdoor"] .card,body[data-screen-theme="outdoor"] .tile:not(button),body[data-screen-theme="outdoor"] .panel,body[data-screen-theme="outdoor"] .ithWisdomV249461,body[data-screen-theme="outdoor"] .ithActiveTopV249461,body[data-screen-theme="outdoor"] #${BIL_MENU_ID},body[data-screen-theme="outdoor"] #${BIL_POP_ID}{background:#fff!important;background-image:none!important;color:#000!important;border-color:#000!important;box-shadow:0 7px 20px rgba(0,0,0,.15)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
      body[data-screen-theme="outdoor"] input,body[data-screen-theme="outdoor"] textarea,body[data-screen-theme="outdoor"] select{background:#fff!important;background-image:none!important;color:#000!important;border:2px solid #000!important;box-shadow:none!important;text-shadow:none!important;font-weight:850!important}
      body[data-screen-theme="outdoor"] button,body[data-screen-theme="outdoor"] a.btn,body[data-screen-theme="outdoor"] .btn,body[data-screen-theme="outdoor"] [role="button"]{border:2px solid rgba(0,0,0,.82)!important;box-shadow:0 5px 13px rgba(0,0,0,.16)!important;text-shadow:none!important;font-weight:950!important}
      body[data-screen-theme="outdoor"] [data-ith-sun-color="blue"]{background:#1565c0!important;background-image:none!important;color:#fff!important;border-color:#0d47a1!important}
      body[data-screen-theme="outdoor"] [data-ith-sun-color="green"]{background:#16843d!important;background-image:none!important;color:#fff!important;border-color:#0b5c29!important}
      body[data-screen-theme="outdoor"] [data-ith-sun-color="red"]{background:#c62828!important;background-image:none!important;color:#fff!important;border-color:#8e1616!important}
      body[data-screen-theme="outdoor"] [data-ith-sun-color] *{color:#fff!important;-webkit-text-fill-color:#fff!important}
      body[data-screen-theme="outdoor"] .ithBrandOkV249461,body[data-screen-theme="outdoor"] .ithBrandNameV249461,body[data-screen-theme="outdoor"] .okLogo,body[data-screen-theme="outdoor"] .okMini{background:none!important;color:#000!important;-webkit-text-fill-color:#000!important;filter:none!important}
      body[data-screen-theme="outdoor"] .ithActionV249461{color:#fff!important;box-shadow:0 8px 20px rgba(0,0,0,.18)!important}body[data-screen-theme="outdoor"] .ithActionIconV249461{background:rgba(255,255,255,.20)!important;background-image:none!important;color:#fff!important;border:1px solid rgba(255,255,255,.65)!important;box-shadow:none!important;filter:none!important}
      body[data-screen-theme="outdoor"] #${BIL_ID}{background:transparent!important;border:0!important;box-shadow:none!important;filter:none!important}body[data-screen-theme="outdoor"] #${BIL_ID} .sokraMiniV249252{filter:none!important}
      body[data-screen-theme="outdoor"] #plusSheet.ithPlusMenuV249429,body[data-screen-theme="outdoor"] #plusSheet.ithModernPlusV249433,body[data-screen-theme="outdoor"] #plusSheet.plusSheet.show{background:#fff!important;background-image:none!important;color:#000!important;border:2px solid #000!important;box-shadow:0 12px 35px rgba(0,0,0,.22)!important}
      body[data-screen-theme="outdoor"] #plusSheet .ithPlusTitleV249429,body[data-screen-theme="outdoor"] #plusSheet .ithPlusSectionV249433,body[data-screen-theme="outdoor"] #plusSheet small{color:#000!important;background:#fff!important;border-color:#000!important}
      body[data-screen-theme="outdoor"] #ithRedBook374,body[data-screen-theme="outdoor"] #lexiconHome357{color:#fff!important;border:2px solid #0d47a1!important;box-shadow:0 5px 13px rgba(0,0,0,.16)!important;filter:none!important}
      body[data-screen-theme="outdoor"] #ithCommunityLexicon374,body[data-screen-theme="outdoor"] #ithCommunityLexicon374 .lexTop374,body[data-screen-theme="outdoor"] #ithCommunityLexicon374 .lexWrap374,body[data-screen-theme="outdoor"] #ithCommunityLexicon374 .lexHero374,body[data-screen-theme="outdoor"] #ithCommunityLexicon374 .lexBook374,body[data-screen-theme="outdoor"] #ithCommunityLexicon374 .lexStat374,body[data-screen-theme="outdoor"] #ithCommunityLexicon374 .lexCard374,body[data-screen-theme="outdoor"] #ithCommunityLexicon374 .lexTarget374,body[data-screen-theme="outdoor"] #ithCommunityLexicon374 .lexHistory374,body[data-screen-theme="outdoor"] #ithCommunityLexicon374 .lexTest374,body[data-screen-theme="outdoor"] #ithCommunityLexicon374 .lexBenefactor374{background:#fff!important;background-image:none!important;color:#000!important;border-color:#000!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
      body[data-screen-theme="outdoor"] #ithCommunityLexicon374 input,body[data-screen-theme="outdoor"] #ithCommunityLexicon374 textarea,body[data-screen-theme="outdoor"] #ithCommunityLexicon374 select{background:#fff!important;color:#000!important;border:2px solid #000!important}
      @media(max-width:760px){.ithHomeV249461{gap:9px;padding-bottom:calc(92px + env(safe-area-inset-bottom))}.ithActiveTopV249461{top:8px;margin:8px -5px 3px}.ithHeroV249461{padding-top:3px}.ithShipV249461{width:100px;height:70px}.ithBrandV249461{gap:7px}.ithBrandOkV249461{font-size:clamp(60px,18.5vw,90px)}.ithBrandNameV249461{font-size:clamp(31px,10vw,52px)}.ithWisdomV249461{padding:10px 12px}.ithWisdomV249461 p{font-size:13px}.ithActionsV249461{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:minmax(112px,1fr)!important;min-height:clamp(350px,51dvh,520px)!important;gap:9px!important;padding-bottom:calc(86px + env(safe-area-inset-bottom))!important}.ithActionV249461{grid-column:auto!important;min-height:112px;border-radius:20px!important;padding:9px 5px}.ithActionIconV249461{width:58px;height:58px;border-radius:19px;font-size:29px}.ithActionV249461 b{font-size:12px}.ithActionV249461 small{font-size:9px;max-width:112px}.nav{left:7px!important;right:7px!important;bottom:calc(20px + env(safe-area-inset-bottom))!important;height:64px!important;padding:5px!important}#${BIL_ID}{left:10px;bottom:calc(var(--bar,68px) + 29px + env(safe-area-inset-bottom));width:60px;height:60px}#${BIL_MENU_ID}{left:8px;bottom:calc(var(--bar,68px) + 101px + env(safe-area-inset-bottom));width:min(390px,calc(100vw - 16px))}.ithBilActionsV249461{grid-template-columns:1fr}#${BIL_POP_ID}{left:76px;bottom:calc(var(--bar,68px) + 39px + env(safe-area-inset-bottom));width:min(74vw,370px);font-size:13px}}

      #${BIL_ID} .bilAliveV249466,.ithBilHeadV249461 .bilAliveV249466{animation:bilWalkV249466 3.6s ease-in-out infinite;transform-origin:50% 90%}
      #${BIL_ID} .bilAliveV249466 .head,.ithBilHeadV249461 .bilAliveV249466 .head{animation:bilHeadV249466 4.2s ease-in-out infinite!important}
      #${BIL_ID} .bilAliveV249466 .smile,.ithBilHeadV249461 .bilAliveV249466 .smile{position:absolute;left:5px;top:12px;width:8px;height:4px;border-bottom:2px solid #10231e;border-radius:0 0 99px 99px;display:block}
      @keyframes bilWalkV249466{0%,100%{transform:translate3d(0,0,0) rotate(0)}25%{transform:translate3d(2px,-2px,0) rotate(2deg)}50%{transform:translate3d(0,-3px,0) rotate(0)}75%{transform:translate3d(-2px,-1px,0) rotate(-2deg)}}
      @keyframes bilHeadV249466{0%,100%{transform:translateY(0) rotate(0)}25%{transform:translateY(-2px) rotate(-5deg)}55%{transform:translateY(0) rotate(4deg)}80%{transform:translateY(-1px) rotate(-2deg)}}
      @keyframes sokraBlinkV249252{0%,92%,100%{transform:scaleY(1)}94%,96%{transform:scaleY(.08)}}@keyframes sokraNeckV249252{0%,100%{transform:translateY(0) rotate(0)}40%{transform:translateY(-2px) rotate(-4deg)}70%{transform:translateY(1px) rotate(4deg)}}@keyframes sokraShellBreathV249252{0%,100%{transform:scale(1)}50%{transform:scale(1.025)}}
    `;document.head.appendChild(s);
  }

  function fallbackStories(){return '<section class="homeStories storyGlassBar topStoryBarV249169"><div class="storyScroll"><button class="storyItem on ithakiOfficialStory" type="button"><span class="avatar"><img src="ok_ithaki_ship_logo.png" onerror="this.style.display=\'none\'"></span><small>ΙΘΑΚΗ</small></button></div><div class="storyHint">'+tr('Φόρτωση ενεργών μελών...','Loading active members...')+'</div></section>'}

  function specialPictogramR10F18(icon){
    var common='viewBox="0 0 48 48" aria-hidden="true" focusable="false"';
    var map={
      '▶':'<svg '+common+'><path d="M10 9a4 4 0 0 1 6-3l24 15a4 4 0 0 1 0 6L16 42a4 4 0 0 1-6-3V9Z" fill="currentColor"/><path d="M17 15v18l15-9-15-9Z" fill="rgba(255,255,255,.72)"/></svg>',
      '✉':'<svg '+common+'><rect x="5" y="9" width="38" height="30" rx="7" fill="currentColor"/><path d="m9 14 15 12 15-12" fill="none" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="m9 35 11-10m19 10L28 25" fill="none" stroke="rgba(255,255,255,.65)" stroke-width="3" stroke-linecap="round"/></svg>',
      '▣':'<svg '+common+'><rect x="5" y="11" width="28" height="26" rx="7" fill="currentColor"/><path d="m33 19 10-6v22l-10-6V19Z" fill="currentColor"/><circle cx="19" cy="24" r="7" fill="rgba(255,255,255,.72)"/></svg>',
      '＋':'<svg '+common+'><rect x="5" y="5" width="38" height="38" rx="12" fill="currentColor"/><path d="M24 14v20M14 24h20" stroke="white" stroke-width="5" stroke-linecap="round"/></svg>',
      '🏘️':'<svg '+common+'><path d="m4 23 12-10 12 10v18H4V23Z" fill="currentColor"/><path d="m20 20 12-10 12 10v21H20V20Z" fill="currentColor" opacity=".78"/><path d="M12 41V29h8v12m10 0V28h7v13" fill="rgba(255,255,255,.72)"/></svg>',
      '?':'<svg '+common+'><circle cx="24" cy="24" r="20" fill="currentColor"/><path d="M17 18c1-6 13-8 16-1 4 9-8 9-8 15" fill="none" stroke="white" stroke-width="4" stroke-linecap="round"/><circle cx="25" cy="38" r="2.5" fill="white"/></svg>'
    };return map[icon]||'<span>'+icon+'</span>'
  }
  function action(route,act,color,icon,el,en,noteEl,noteEn){return '<button class="ithActionV249461 homeModernActionR10F17" type="button" data-ith-sun-color="'+color+'"'+(route?' data-v249461-route="'+route+'"':'')+(act?' data-v249461-action="'+act+'"':'')+'><span class="ithActionIconV249461 ithSpecialPictogramR10F18" aria-hidden="true">'+specialPictogramR10F18(icon)+'</span><b>'+tr(el,en)+'</b><small>'+tr(noteEl,noteEn)+'</small></button>'}
  function homeMarkup(stories){return '<div class="ithHomeV249461" '+HOME_MARK+'="1">'
    +'<div class="ithActiveTopV249461">'+(stories||fallbackStories())+'</div>'
    +'<section class="ithHeroV249461"><img class="ithShipV249461" src="ok_ithaki_ship_logo.png" alt="OK ITHAKI" onerror="this.style.display=\'none\'"><h1 class="ithBrandV249461"><span class="ithBrandOkV249461">OK</span><span class="ithBrandNameV249461">ITHAKI</span></h1><h2 class="ithOldWelcomeV249461">'+tr('Καλώς ήρθατε στην <span class="okMini">OK</span> ITHAKI','Welcome to <span class="okMini">OK</span> ITHAKI')+'</h2><p class="ithOldLineV249461">'+tr('Ταξιδεύουμε μαζί ανθρώπινα, ελεύθερα και ανώνυμα.','We travel together humanly, freely and anonymously.')+'</p></section>'
    +'<section class="ithWisdomV249461"><b>✦ '+tr('Σοφός λόγος','Wise words')+'</b><p id="ithHomeWisdomTextV249461">'+esc(nextWisdom())+'</p></section>'
    +'<section class="ithActionsV249461">'
    +action('feed','','blue','▶','Ροή','Feed','Άνοιγμα της υπάρχουσας Ροής','Open the existing Feed')
    +action('dm','','green','✉','Μηνύματα','Messages','Επιλογή επαφής και ομάδων','Contacts and groups')
    +action('','video','red','▣','Βιντεοκλήσεις','Video calls','Λίστα επαφών και αιτήματα φιλίας','Contacts and friend requests')
    +action('','publish','gold','＋','Δημοσίευση','Publish','Φωτογραφία, βίντεο, Story και άλλα','Photo, video, Story and more')
    +action('spaces','','blue','🏘️','Κοινότητες','Communities','Δωμάτια, μέλη, ψηφοφορίες και εκδηλώσεις','Rooms, members, polls and events')
    +action('','why','green','?','Γιατί ΙΘΑΚΗ','Why ITHAKI','Αρχές, ιδιωτικότητα και σκοπός','Principles, privacy and purpose')
    +'</section></div>'}

  function bindHome(root){
    if(!root)return;
    root.querySelectorAll('[data-v249461-route]').forEach(function(b){
      if(b.dataset.v249461Bound==='1')return;
      b.dataset.v249461Bound='1';
      b.onclick=function(ev){if(ev){ev.preventDefault();ev.stopPropagation()}return openExistingRoute(b.getAttribute('data-v249461-route'))};
    });
    root.querySelectorAll('[data-v249461-action]').forEach(function(b){
      if(b.dataset.v249461Bound==='1')return;
      b.dataset.v249461Bound='1';
      b.onclick=function(ev){if(ev){ev.preventDefault();ev.stopPropagation()}var act=b.getAttribute('data-v249461-action');if(act==='video')return openVideo();if(act==='publish'){var f=I().openCreateMenuV249500||I().openCreateMenuV249490;if(typeof f==='function')return f();var plus=document.querySelector('#nav button[data-page="create"],#nav button.plus,[data-open-plus]');if(plus){plus.click();return false}return openExistingRoute('create')}if(act==='external')return openExternal();if(act==='why')return openWhy();return false};
    });
  }
  function applyHome(force){
    var home=$('homePage');if(!home||applyingHome)return false;
    var existing=home.querySelector('['+HOME_MARK+'="1"]');if(existing&&!force){bindHome(existing);return true}
    applyingHome=true;
    try{
      var story=home.querySelector('.homeStories');var html=story?story.outerHTML:fallbackStories();home.innerHTML=homeMarkup(html);home.dataset.homeVersion='V249500';var root=home.querySelector('['+HOME_MARK+'="1"]');bindHome(root);
    }catch(e){console.warn('V249461 home',e)}
    applyingHome=false;
    setTimeout(function(){try{if(typeof I().refreshActiveHomeMembersV249408==='function')Promise.resolve(I().refreshActiveHomeMembersV249408()).catch(function(){});else if(typeof I().refreshHomeStoriesV249407==='function')I().refreshHomeStoriesV249407()}catch(_e){}},100);
    return true;
  }
  function scheduleHome(force){if(window.__ITHAKI_V249475_BOOT_OWNER__&&!window.__ITHAKI_V249475_BOOT_READY__)return;clearTimeout(homeTimer);homeTimer=setTimeout(function(){if(isHome())applyHome(!!force);ensureBil()},40)}

  function visualFallback(page){
    try{
      var s=I().state||window.state||window.__ITHAKI_CORE_STATE__;if(s)s.page=page;
      if(document.body)document.body.dataset.page=page;
      document.querySelectorAll('.page').forEach(function(p){p.classList.remove('active')});var el=$(page+'Page');if(el)el.classList.add('active');
      document.querySelectorAll('#nav button[data-page]').forEach(function(b){b.classList.toggle('active',b.dataset.page===page)});
    }catch(_e){}
  }
  function openExistingRoute(page){
    page=String(page||'home').replace(/[^a-z]/gi,'').toLowerCase();
    if(!/^(home|feed|create|dm|spaces|profile)$/.test(page))page='home';
    try{var plus=$('plusSheet');if(plus)plus.classList.remove('show')}catch(_e){}
    var fn=null,called=false;
    try{fn=I().stableRouteV249429;if(typeof fn==='function'){fn.call(I(),page,'v249461-professional-home');called=true}}catch(e){console.warn('V249461 stable route',page,e)}
    if(!called){try{fn=I().page||window.page;if(typeof fn==='function'){fn.call(I(),page,'v249461-professional-home-fallback');called=true}}catch(e){console.warn('V249461 page fallback',page,e)}}
    setTimeout(function(){
      try{
        if(!document.body||document.body.dataset.page!==page){var nav=document.querySelector('#nav button[data-page="'+page+'"]');if(nav)nav.click()}
        if(page==='feed'&&typeof I().openProfessionalFeedV249429==='function')I().openProfessionalFeedV249429('v249461-home-button');
        else if(page==='dm'&&typeof I().renderServerFriendsV249429==='function')I().renderServerFriendsV249429(true);
        else if(page==='spaces'){const f=I().activateSpacesPageV249516||I().renderSpacesV249516;if(typeof f==='function')f.call(I());else if(typeof window.showCanonicalCommunityLoadingR10F2==='function')window.showCanonicalCommunityLoadingR10F2();}
      }catch(e){console.warn('V249461 route settle',page,e)}
    },80);
    setTimeout(function(){if(!document.body||document.body.dataset.page!==page)visualFallback(page)},240);
    return false;
  }
  function openVideo(){
    try{if(typeof I().openCommunicationContactsV249230==='function')return I().openCommunicationContactsV249230('video')}catch(_e){}
    try{if(typeof I().openFriendPickerV249433==='function')return I().openFriendPickerV249433('video')}catch(_e){}
    return openExistingRoute('dm');
  }
  function openExternal(){try{var f=I().openExternalMessageCenterV249477;if(typeof f==='function')return f(false,'all')}catch(_e){}try{if(typeof I().openCommCenterV249280==='function')return I().openCommCenterV249280('external')}catch(_e){}return openExistingRoute('dm')}
  function openWhy(){try{if(typeof I().openWhyIthakiV249262==='function')return I().openWhyIthakiV249262()}catch(_e){}try{if(typeof window.openWhyIthakiV249262==='function')return window.openWhyIthakiV249262()}catch(_e){}return safeToast('Η ενότητα «Γιατί ΙΘΑΚΗ» δεν άνοιξε.','The “Why ITHAKI” section did not open.')}

  function turtleMini(){return '<span class="sokraMiniV249252 bilAliveV249466"><i class="foot l"></i><i class="foot r"></i><i class="shell"></i><i class="head"><i class="eye l"></i><i class="eye r"></i><i class="smile"></i></i></span>'}
  function bilEnabled(){try{return localStorage.getItem(BIL_KEY)!=='0'}catch(_e){return true}}
  function setBilEnabled(on){try{localStorage.setItem(BIL_KEY,on?'1':'0')}catch(_e){}if(!on){var m=$(BIL_MENU_ID);if(m)m.remove();var p=$(BIL_POP_ID);if(p)p.remove()}ensureBil();scheduleBil();return false}
  function removeLegacyCompanions(){
    ['ithSocrates378','socratakiFabV249252','athinaFabV249258','ithAthena378','ithDiagV249429'].forEach(function(id){var x=$(id);if(x)x.remove()});
    try{document.querySelectorAll('[id^="ithDiagV2494"],[id*="athina" i],[id*="athena" i],[class*="athina" i],[class*="athena" i],#socratakiFabV249252,#ithSocrates378').forEach(function(x){if(x.id!==BIL_ID&&x.id!==BIL_MENU_ID&&x.id!==BIL_POP_ID)x.remove()})}catch(_e){}
    try{document.querySelectorAll('#plusSheet button').forEach(function(b){if(/Αθηνά|Αθηνα|Athena|Athina|Bil|Sokrataki/i.test(text(b)))b.remove()})}catch(_e){}
  }
  function removeAthenaUi(root){
    root=root||document;
    try{if(window.__athinaSuggestTimerV249279){clearInterval(window.__athinaSuggestTimerV249279);clearTimeout(window.__athinaSuggestTimerV249279);window.__athinaSuggestTimerV249279=0}}catch(_e){}
    var names=['showAthinaWelcomeV249272','showAthenaWelcomeV249272','showAthinaSimpleHelloV249273','showAthinaSimpleHelloV249276','showAthinaTinyTipV249279','openAthenaV249378','openAthinaMenuV249283','ensureAthinaCompanionV249258','ensureSocratakiV249252','manualAthinaGuideV249282'];
    try{names.forEach(function(k){var no=function(){return false};window[k]=no;I()[k]=no})}catch(_e){}
    removeLegacyCompanions();
  }
  function ensureBil(){if(window.__ITHAKI_V249523_SHARE_BIL_OWNER__)return null;
    if(window.__ITHAKI_V249475_OWNS_BIL__)return;
    if(!document.body)return;
    removeLegacyCompanions();removeAthenaUi(document);
    var b=$(BIL_ID);if(!b){b=document.createElement('button');b.id=BIL_ID;b.type='button';b.innerHTML=turtleMini();b.addEventListener('click',function(ev){ev.preventDefault();ev.stopPropagation();openBilMenu()});document.body.appendChild(b)}
    b.style.display=isHome()&&bilEnabled()&&!$(BIL_MENU_ID)?'grid':'none';
    I().openBilV249461=openBilMenu;
  }
  function openBilMenu(){
    var old=$(BIL_MENU_ID);if(old)old.remove();
    var d=document.createElement('section');d.id=BIL_MENU_ID;d.innerHTML='<div class="ithBilHeadV249461"><div class="miniWrap">'+turtleMini()+'</div><div><b>Bil</b><small>'+tr('Ο μικρός πράσινος φίλος της ΙΘΑΚΗΣ','ITHAKI’s little green friend')+'</small></div><button class="ithBilCloseV249461" type="button" data-bil-action="close">×</button></div><div class="ithBilTextV249461" id="ithBilMenuTextV249461">'+esc(nextBil())+'</div><div class="ithBilActionsV249461"><button data-bil-action="next">✦ '+tr('Άλλος λόγος','Another saying')+'</button><button data-bil-action="messages">💬 '+tr('Μηνύματα','Messages')+'</button><button data-bil-action="wall">🕊️ '+tr('Τοίχος','Wall')+'</button><button data-bil-action="lighthouse">🕯️ '+tr('Φάρος','Lighthouse')+'</button><button data-bil-action="bottle">🍾 '+tr('Μπουκάλι','Bottle')+'</button><button data-bil-action="themes">◐ '+tr('Χρώματα οθόνης','Screen colors')+'</button><button data-bil-action="toggle">⏸ '+tr('Απενεργοποίηση Bil','Disable Bil')+'</button></div>';
    d.addEventListener('click',function(ev){var b=ev.target&&ev.target.closest?ev.target.closest('[data-bil-action]'):null;if(!b)return;ev.preventDefault();ev.stopPropagation();var a=b.dataset.bilAction;if(a==='close'){d.remove();ensureBil();return}if(a==='next'){var t=$('ithBilMenuTextV249461');if(t)t.textContent=nextBil();return}if(a==='toggle')return setBilEnabled(false);d.remove();ensureBil();if(a==='messages')return openExistingRoute('dm');if(a==='wall')return openWall();if(a==='lighthouse')return openLighthouse();if(a==='bottle')return openBottle();if(a==='themes')return openThemes()});
    document.body.appendChild(d);ensureBil();return false;
  }
  function openWall(){try{var fn=I().openCurrentWallV249440||I().openWallV411||window.openWallV411||I().openProfessionalAnonymousWallV249378;if(typeof fn==='function')return fn.call(I())}catch(_e){}return safeToast('Ο Τοίχος δεν άνοιξε.','The Wall did not open.')}
  function openLighthouse(){try{var fn=I().openLighthouseV249278||window.openLighthouseV249278;if(typeof fn==='function')return fn.call(I())}catch(_e){}return safeToast('Ο Φάρος δεν άνοιξε.','The Lighthouse did not open.')}
  function openBottle(){try{var fn=I().openBottleSeaV249274||window.openBottleSeaV249274;if(typeof fn==='function')return fn.call(I(),'compose')}catch(_e){}return safeToast('Το Μπουκάλι δεν άνοιξε.','The Bottle did not open.')}
  function openThemes(){try{if(typeof I().openScreenThemePanel==='function')return I().openScreenThemePanel()}catch(_e){}return safeToast('Τα χρώματα οθόνης δεν άνοιξαν.','Screen colors did not open.')}

  function nickname(){var n='',s=I().state||window.state||{};try{n=String(localStorage.getItem('ith_name')||localStorage.getItem('nickname')||localStorage.getItem('ithaki_nickname')||'').trim()}catch(_e){}if(!n)n=String(s.name||s.nickname||'').trim();var visitor=!n||/^(Μέλος(?:\d+)?|Member(?:\d+)?|Guest|Επισκέπτης|Visitor|Ανώνυμος|Anonymous)$/i.test(n);return {visitor:visitor,name:visitor?tr('επισκέπτη','visitor'):n}}
  function unreadMessages(){try{var b=document.querySelector('#nav button[data-page="dm"] .navBadge');return !!(b&&(parseInt(b.textContent,10)||0)>0)}catch(_e){return false}}
  function showBilPop(message){if(!bilEnabled()||!isHome())return false;var old=$(BIL_POP_ID);if(old)old.remove();clearTimeout(bilHideTimer);var d=document.createElement('div');d.id=BIL_POP_ID;d.innerHTML='<span>'+esc(message)+'</span>';document.body.appendChild(d);requestAnimationFrame(function(){d.classList.add('show')});bilHideTimer=setTimeout(function(){if(d.isConnected){d.classList.remove('show');setTimeout(function(){if(d.isConnected)d.remove()},220)}},BIL_VISIBLE_MS);return true}
  function greetOnce(){if(window.__ITHAKI_V249475_OWNS_BIL__)return;if(greeted||!bilEnabled())return;greeted=true;var who=nickname();var msg=who.visitor?tr('Γεια σου επισκέπτη. Αν θέλεις, κάνεις εγγραφή μόνο με ένα ψευδώνυμο, ανώνυμα. ','Hello visitor. You can register anonymously using only a nickname. '):tr('Γεια σου '+who.name+'. ','Hello '+who.name+'. ');msg+=unreadMessages()?tr('Έχεις νέα μηνύματα. ','You have new messages. '):tr('Δεν έχεις νέο μήνυμα αυτή τη στιγμή. ','You have no new message right now. ');msg+=tr('Δοκίμασε τον Τοίχο, μετά τον Φάρο και μετά το Μπουκάλι.','Try the Wall, then the Lighthouse and then the Bottle.');showBilPop(msg)}
  function scheduleBil(){if(window.__ITHAKI_V249475_OWNS_BIL__)return;clearTimeout(bilTimer);if(!bilEnabled())return;bilTimer=setTimeout(function cycle(){if(bilEnabled()&&isHome()&&!unreadMessages()&&!$(BIL_MENU_ID)){showBilPop(nextBil());var w=$('ithHomeWisdomTextV249461');if(w)w.textContent=nextWisdom()}bilTimer=setTimeout(cycle,BIL_INTERVAL_MS)},BIL_INTERVAL_MS)}

  function forceSurface(el,background,color,border){
    if(!el||!el.style)return;
    if(background!=null){el.style.setProperty('background',background,'important');el.style.setProperty('background-image','none','important')}
    if(color!=null)el.style.setProperty('color',color,'important');
    if(border!=null)el.style.setProperty('border-color',border,'important');
    el.style.setProperty('text-shadow','none','important');
  }
  function semanticColor(el,index){
    var t=(text(el)+' '+String(el.className||'')+' '+String(el.getAttribute&&el.getAttribute('data-v249429-act')||'')+' '+String(el.getAttribute&&el.getAttribute('title')||'')).toLowerCase();
    if(/delete|trash|remove|reject|decline|cancel|close|exit|stop|danger|red|διαγραφ|απόρρι|ακυρ|κλείσ|έξοδο|σταμάτ/.test(t))return 'red';
    if(/send|save|accept|publish|post|create|confirm|success|green|login|register|αποστολ|αποθήκ|αποδοχ|δημοσί|δημιουργ|επιβεβ|σύνδεσ|εγγραφ/.test(t))return 'green';
    return ['blue','green','red'][Math.abs(index||0)%3];
  }
  function colorActionButtons(){
    var n=0;
    document.querySelectorAll('button,a.btn,.btn,[role="button"]').forEach(function(x){
      if(!x||x.id===BIL_ID||x.closest&&x.closest('#'+BIL_ID))return;
      var fixed=x.getAttribute('data-ith-sun-color');if(!fixed)fixed=semanticColor(x,n++);
      x.setAttribute('data-ith-sun-color',fixed);
    });
    var lex=$('ithRedBook374')||$('lexiconHome357');if(lex)lex.setAttribute('data-ith-sun-color','blue');
  }
  function applyOutdoorColorTheme(){
    if(!document.body||document.body.dataset.screenTheme!=='outdoor')return false;
    forceSurface(document.documentElement,'#fff','#000','#000');forceSurface(document.body,'#fff','#000','#000');
    document.querySelectorAll('.page,.app,.main,.card,.panel,.top,#nav,#plusSheet,#memberMenu,#ithCommunityLexicon374,input,textarea,select').forEach(function(x){if(x.matches&&x.matches('button,a.btn,.btn,[role="button"]'))return;forceSurface(x,'#fff','#000','#000')});
    colorActionButtons();
    document.querySelectorAll('[data-ith-sun-color]').forEach(function(x){var c=x.getAttribute('data-ith-sun-color'),bg=c==='red'?'#c62828':c==='green'?'#16843d':'#1565c0',bd=c==='red'?'#8e1616':c==='green'?'#0b5c29':'#0d47a1';forceSurface(x,bg,'#fff',bd);x.style.setProperty('border','2px solid '+bd,'important');x.style.setProperty('box-shadow','0 5px 13px rgba(0,0,0,.16)','important')});
    var bil=$(BIL_ID);if(bil){bil.style.setProperty('background','transparent','important');bil.style.setProperty('border','0','important');bil.style.setProperty('box-shadow','none','important');bil.removeAttribute('data-ith-sun-color')}
    return true;
  }
  function wrapThemeFunctions(){
    ['applyScreenTheme','setScreenTheme'].forEach(function(name){
      var holder=I(),old=holder&&holder[name];if(typeof old!=='function'||old.__v249461Color)return;
      var wrapped=function(){var out=old.apply(this,arguments);setTimeout(applyOutdoorColorTheme,0);setTimeout(applyOutdoorColorTheme,80);return out};wrapped.__v249461Color=true;holder[name]=wrapped;
    });
  }
  function cleanAdded(root){
    removeAthenaUi(root);removeLegacyCompanions();
        try{root.querySelectorAll&&root.querySelectorAll('#plusSheet button').forEach(function(b){if(/Αθηνά|Αθηνα|Athena|Athina/i.test(text(b)))b.remove()})}catch(_e){}
    setTimeout(applyOutdoorColorTheme,0);
  }
  function installObserver(){
    if(observer||!document.body)return;
    observer=new MutationObserver(function(records){
      records.forEach(function(r){Array.prototype.slice.call(r.addedNodes||[]).forEach(function(n){if(n&&n.nodeType===1)cleanAdded(n)})});
      var home=$('homePage');if(isHome()&&home&&!home.querySelector('['+HOME_MARK+'="1"]'))scheduleHome(false);
      wrapThemeFunctions();applyOutdoorColorTheme();ensureBil();
    });
    observer.observe(document.body,{subtree:true,childList:true,attributes:true,attributeFilter:['data-screen-theme','data-screen-theme-mode','class']});
  }
  function install(){
    injectCss();removeAthenaUi(document);removeLegacyCompanions();wrapThemeFunctions();applyOutdoorColorTheme();
    Object.assign(I(),{openHomeRouteV249461:openExistingRoute,applyProfessionalHomeV249461:applyHome,openBilV249461:openBilMenu,bilVersionV249461:VERSION,bilIntervalMsV249461:BIL_INTERVAL_MS,bilVisibleMsV249461:BIL_VISIBLE_MS});
    window.addEventListener('ithaki:page-changed',function(ev){var p=String(ev&&ev.detail&&ev.detail.page||document.body&&document.body.dataset.page||'');if(p==='home')scheduleHome(false);ensureBil()});
    document.addEventListener('visibilitychange',function(){if(!document.hidden){scheduleHome(false);ensureBil()}},{passive:true});
    installObserver();scheduleHome(true);ensureBil();scheduleBil();setTimeout(greetOnce,1300);
    [250,800,1800].forEach(function(ms){setTimeout(function(){scheduleHome(false);ensureBil();removeAthenaUi(document);wrapThemeFunctions();applyOutdoorColorTheme()},ms)});
    document.documentElement.setAttribute('data-ithaki-v249461','local-apk-bil-color-calls');document.documentElement.setAttribute('data-bil-notifications','bil-avatar-greeting-5min-15sec');document.documentElement.setAttribute('data-bil-face','two-eyes-smile-animated-v249466');
  }
  if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',install,{once:true});else install();
})();
