/* MaiKaja shared footer – intentional overrides of legacy page styles. */
body .site-footer.mk-global-footer{
  position:relative!important;isolation:isolate;display:block!important;visibility:visible!important;opacity:1!important;
  background:linear-gradient(145deg,#154831 0%,#103b2b 60%,#0c3024 100%)!important;
  color:#e5f0e8!important;border:0!important;padding:55px 30px 0!important;
  font-family:var(--mk-type-reading)!important;overflow:hidden;
}
body .site-footer.mk-global-footer::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;
  background:radial-gradient(ellipse at 90% 0%,rgba(105,170,115,.13),transparent 45%),radial-gradient(ellipse at 5% 100%,rgba(234,137,49,.065),transparent 43%)}
body .site-footer.mk-global-footer::after{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#f28a34,#f7b457 26%,transparent 65%)}
body .site-footer.mk-global-footer .footer-inner{max-width:1280px!important;width:100%!important;margin:0 auto!important;padding:0 0 39px!important;
 display:grid!important;grid-template-columns:minmax(250px,1.7fr) minmax(155px,.85fr) minmax(170px,.95fr)!important;gap:42px!important;align-items:start!important;background:transparent!important;border:0!important}
body .site-footer.mk-global-footer .mk-footer-brand-col{display:flex;flex-direction:column;align-items:flex-start;gap:16px;min-width:0}
body .site-footer.mk-global-footer .mk-footer-logo{display:block;width:156px;max-width:100%;height:auto;filter:none;opacity:1}
body .site-footer.mk-global-footer .mk-footer-official-play:focus-visible{border-radius:12px!important}
body .site-footer.mk-global-footer .mk-footer-tagline{color:#c8dfd0!important;font:600 15px/1.6 var(--mk-type-reading)!important;margin:0!important;max-width:340px}
body .site-footer.mk-global-footer .mk-footer-accent{display:block;width:40px;height:3px;border-radius:8px;background:#f39a46}
body .site-footer.mk-global-footer .mk-footer-socials{display:flex;align-items:center;gap:10px;margin-top:1px}
body .site-footer.mk-global-footer .mk-footer-social-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:42px;height:42px;border:1px solid rgba(255,255,255,.24)!important;border-radius:50%!important;background:rgba(255,255,255,.08)!important;color:#fff!important;text-decoration:none!important;font-size:18px!important;transition:background-color .15s cubic-bezier(.2,0,0,1),border-color .15s cubic-bezier(.2,0,0,1),transform .12s cubic-bezier(.2,0,0,1)!important}
@media(hover:hover){body .site-footer.mk-global-footer .mk-footer-social-link:hover{background:#1877f2!important;border-color:#1877f2!important;transform:translateY(-2px)!important}}
@media(hover:hover){body .site-footer.mk-global-footer .mk-footer-youtube:hover{background:#ff0033!important;border-color:#ff0033!important}}
body .site-footer.mk-global-footer .mk-footer-social-link:active{transform:scale(.96)!important}
body .site-footer.mk-global-footer .mk-footer-nav-col{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:11px!important;min-width:0}
body .site-footer.mk-global-footer .mk-footer-nav-col h2{margin:2px 0 9px!important;color:#fff!important;font:800 16px/1.4 var(--mk-type-title)!important;letter-spacing:-.01em}
body .site-footer.mk-global-footer .mk-footer-nav-col a,body .site-footer.mk-global-footer .mk-footer-nav-col button{display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;min-height:40px!important;background:transparent!important;border:0!important;padding:0 12px!important;margin:0 0 0 -12px!important;border-radius:999px!important;color:#c9dfd2!important;font:650 14px/1.55 var(--mk-type-reading)!important;text-decoration:none!important;cursor:pointer!important;text-align:left!important;-webkit-tap-highlight-color:transparent;transition:background-color .15s cubic-bezier(.2,0,0,1),color .15s cubic-bezier(.2,0,0,1),transform .12s cubic-bezier(.2,0,0,1)!important}
@media(hover:hover){body .site-footer.mk-global-footer .mk-footer-nav-col :is(a,button):hover{background:rgba(255,255,255,.08)!important;color:#fff!important;transform:none!important}}
body .site-footer.mk-global-footer .mk-footer-nav-col :is(a,button):active{background:rgba(255,255,255,.12)!important;color:#fff!important;transform:scale(.98)!important}
body .site-footer.mk-global-footer :is(a,button):focus-visible{outline:3px solid #a8dab7!important;outline-offset:3px!important;border-radius:999px!important}
body .site-footer.mk-global-footer .footer-legal-bar{max-width:1280px!important;margin:0 auto!important;padding:18px 0 22px!important;border:0!important;border-top:1px solid rgba(255,255,255,.16)!important;background:transparent!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important}
body .site-footer.mk-global-footer .footer-legal-bar p{color:#66776c!important;font:600 12px/1.5 var(--mk-type-reading)!important;margin:0!important}
body .site-footer.mk-global-footer .footer-legal-links{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:12px 24px!important;flex-wrap:wrap!important;padding:0!important;margin:0!important}
body .site-footer.mk-global-footer .footer-legal-links a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:40px!important;padding:0 12px!important;border-radius:999px!important;color:#b7d1bf!important;text-decoration:none!important;font:650 12px/1.5 var(--mk-type-reading)!important;-webkit-tap-highlight-color:transparent;transition:background-color .15s cubic-bezier(.2,0,0,1),color .15s cubic-bezier(.2,0,0,1),transform .12s cubic-bezier(.2,0,0,1)!important}
@media(hover:hover){body .site-footer.mk-global-footer .footer-legal-links a:hover{background:rgba(255,255,255,.08)!important;color:#fff!important}}
body .site-footer.mk-global-footer .footer-legal-links a:active{background:rgba(255,255,255,.12)!important;color:#fff!important;transform:scale(.98)!important}
@media(max-width:800px){body .site-footer.mk-global-footer{padding:42px 22px 0!important}body .site-footer.mk-global-footer .footer-inner{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:34px 24px!important}body .site-footer.mk-global-footer .mk-footer-brand-col{grid-column:1/-1}body .site-footer.mk-global-footer .footer-legal-bar{align-items:flex-start!important;flex-direction:column!important}}
@media(max-width:460px){body .site-footer.mk-global-footer{padding:35px 18px 0!important}body .site-footer.mk-global-footer .footer-inner{gap:27px 12px!important}body .site-footer.mk-global-footer .mk-footer-nav-col h2{font-size:14px!important}body .site-footer.mk-global-footer .mk-footer-nav-col a,body .site-footer.mk-global-footer .mk-footer-nav-col button{font-size:12px!important}body .site-footer.mk-global-footer .mk-footer-logo{width:135px}}
@media(prefers-reduced-motion:reduce){body .site-footer.mk-global-footer :is(a,button){transition:none!important}}

/* Official Google Play badge; keep the SVG untouched and leave 1/4-height clear space. */
body .site-footer.mk-global-footer .mk-footer-apps{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-top:4px}
body .site-footer.mk-global-footer .mk-footer-apps-heading{font:750 13px/1.45 var(--mk-type-reading)!important;color:#e8f3ea!important;margin:0!important}
body .site-footer.mk-global-footer .mk-footer-official-play{display:inline-block;line-height:0;margin:13px;padding:4px;border:0;border-radius:12px;background:transparent;vertical-align:middle;-webkit-tap-highlight-color:transparent;transition:background-color .15s cubic-bezier(.2,0,0,1),transform .12s cubic-bezier(.2,0,0,1),box-shadow .15s cubic-bezier(.2,0,0,1)!important}
@media(hover:hover){body .site-footer.mk-global-footer .mk-footer-official-play:hover{background:rgba(255,255,255,.08);box-shadow:0 2px 6px rgba(0,0,0,.18)}}
body .site-footer.mk-global-footer .mk-footer-official-play:active{background:rgba(255,255,255,.12);transform:scale(.98);box-shadow:none}
body .site-footer.mk-global-footer .mk-footer-official-play img{width:172px;height:auto;min-height:28px;max-width:100%;display:block;object-fit:contain}
body .site-footer.mk-global-footer .mk-footer-app-coming{font:700 13px/1.5 var(--mk-type-reading)!important;color:#c7ddcd!important;margin:4px 0!important}

/* Android WebView shell guard.
   This file loads after the shared Material 3 rules, so it must preserve the
   phone-only bottom bar and keep website-only branding out of the app shell. */
html.maikaja-app body .site-footer.mk-global-footer,
body.maikaja-app .site-footer.mk-global-footer{display:none!important}
@media(max-width:767px){
  html.maikaja-app body .app-bottom-nav,
  body.maikaja-app .app-bottom-nav{grid-template-columns:repeat(6,minmax(0,1fr))!important}
  html.maikaja-app body .app-bottom-nav>.app-tablet-nav-brand,
  body.maikaja-app .app-bottom-nav>.app-tablet-nav-brand{
    display:none!important;
    width:0!important;
    height:0!important;
    min-height:0!important;
    overflow:hidden!important;
  }
}

/* Compact 2026 footer. Scoped after legacy declarations. */
body .site-footer.mk-global-footer.mk-footer-compact{padding:25px 22px 0!important}
body .site-footer.mk-global-footer.mk-footer-compact .footer-inner{display:flex!important;flex-direction:column!important;gap:15px!important;padding:0 0 15px!important;max-width:1180px!important}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-firstline{width:100%;display:flex;align-items:center;justify-content:space-between;gap:24px}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-brand-col{gap:2px!important;flex:0 1 auto;align-items:flex-start}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-logo{width:112px}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-tagline{font-size:12px!important;line-height:1.2!important}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-socials{gap:8px;margin:0}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-social-link{width:34px;height:34px;font-size:15px!important}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-apps{margin:0;gap:0}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-apps-heading{display:none}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-official-play{margin:0 12px!important;padding:0!important}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-official-play img{width:148px;height:auto;min-height:0}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-quicklinks{display:flex;align-items:center;flex-wrap:wrap;gap:3px 21px;border-top:1px solid rgba(255,255,255,.16);padding-top:12px;width:100%}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-quicklinks a{color:#e1eee5!important;text-decoration:none!important;font-size:13px!important;font-weight:700;min-height:30px;display:inline-flex;align-items:center}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-quicklinks a:hover{text-decoration:underline!important}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-impact{display:flex;align-items:center;gap:12px;border-top:1px solid rgba(255,255,255,.12);width:100%;padding-top:12px;color:#e6efe7}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-impact>i{width:34px;height:34px;flex:none;display:grid;place-items:center;color:#bbebaf;border-radius:50%;background:#245941}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-impact-main{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0;font-size:12px;line-height:1.5}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-impact-main strong{font-size:13px;color:#d4eed6}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-impact-main b{font-size:15px;color:white}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-impact-info{max-width:360px;position:relative;font-size:11px;color:#bbd5c4}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-impact-info summary{display:flex;align-items:center;gap:5px;cursor:pointer;list-style:none;min-height:32px}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-impact-info summary::-webkit-details-marker{display:none}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-impact-info p{font-size:11px;line-height:1.5;margin:4px 0 0}
body .site-footer.mk-global-footer.mk-footer-compact .footer-legal-bar{max-width:1180px!important;padding:9px 0 12px!important;gap:6px!important}
body .site-footer.mk-global-footer.mk-footer-compact .footer-legal-links{gap:4px 12px!important}
body .site-footer.mk-global-footer.mk-footer-compact .footer-legal-links :is(a,button){min-height:30px!important;padding:3px 6px!important;background:transparent!important;border:0!important;color:#b7d1bf!important;font:650 12px/1.4 var(--mk-type-reading)!important;cursor:pointer;text-decoration:none!important}
@media(max-width:700px){
body .site-footer.mk-global-footer.mk-footer-compact{padding:22px 16px 0!important}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-firstline{align-items:flex-start;flex-wrap:wrap;gap:13px}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-actions{width:100%;justify-content:space-between}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-quicklinks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 12px}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-impact{flex-wrap:wrap;gap:8px}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-impact-info{max-width:100%;margin-left:42px}
body .site-footer.mk-global-footer.mk-footer-compact .footer-legal-bar{align-items:center!important;text-align:center}
body .site-footer.mk-global-footer.mk-footer-compact .footer-legal-links{justify-content:center!important}
}

/* Footer refinement: links align left in every viewport. */
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-quicklinks{justify-content:flex-start!important;justify-items:start!important;text-align:left!important;margin-left:0!important;margin-right:auto!important}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-quicklinks a{justify-self:start!important;text-align:left!important}
/* Hover/focus tooltip and click/tap via native <details>; does not expand footer height. */
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-impact{position:relative;overflow:visible}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-impact-info{position:relative;flex:none;max-width:none;overflow:visible}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-impact-info summary{width:max-content;max-width:100%;border-radius:8px;padding:4px 7px;outline-offset:2px;user-select:none}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-impact-info summary:hover,body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-impact-info summary:focus-visible{background:rgba(255,255,255,.10);color:#fff}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-impact-info p{display:none;position:absolute;right:0;bottom:calc(100% + 8px);z-index:30;width:min(340px,calc(100vw - 36px));max-width:340px;margin:0;padding:13px 15px;border:1px solid rgba(255,255,255,.20);border-radius:12px;background:#174d39;color:#f1f8f2;box-shadow:0 12px 26px rgba(0,0,0,.25);font-size:12px;line-height:1.55;white-space:normal;text-align:left}
body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-impact-info[open] p,body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-impact-info:hover p,body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-impact-info:focus-within p{display:block}
@media(max-width:700px){body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-impact-info{margin-left:42px;max-width:calc(100% - 42px)}body .site-footer.mk-global-footer.mk-footer-compact .mk-footer-impact-info p{left:0;right:auto;width:min(310px,calc(100vw - 74px))}}

/* MaiKaja shared-site / Android phone shell, Oct 2026. Tablet is deliberately unchanged. */
@media (max-width:767px){
  html.maikaja-app body .app-bottom-nav,body.maikaja-app .app-bottom-nav{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
  }
  .maikaja-app .app-bottom-nav-item[data-app-nav="challenge"],
  .maikaja-app .app-bottom-nav-item[data-app-nav="camera"]{display:none!important}
  .maikaja-app .app-bottom-nav-item .app-tablet-nav-label{display:none!important}
  .maikaja-app .app-bottom-nav-item{min-width:0!important;min-height:48px!important;display:flex!important;justify-content:center!important;align-items:center!important}
  .maikaja-app .app-bottom-nav-item .app-bottom-nav-icon{flex:0 0 auto}
}
@media (min-width:768px){
  .maikaja-app .app-bottom-nav-item.app-phone-weekly-nav{display:none!important}
}
body:not(.maikaja-app) .app-phone-weekly-nav{display:none!important}
/* A first-class entry to the existing social feed, without duplicating the feed. */
.maikaja-app .mk-app-social-entrance{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px auto 14px;padding:18px 20px;max-width:1100px;border-radius:23px;border:1px solid #dfeadf;background:#f0f8ed;color:#153d29;text-decoration:none;box-shadow:0 8px 22px rgba(24,67,39,.06)}
.maikaja-app .mk-app-social-entrance strong{display:block;font-size:18px;line-height:1.25}
.maikaja-app .mk-app-social-entrance small{display:block;margin-top:4px;color:#496c58;line-height:1.4}
.maikaja-app .mk-app-social-entrance i{font-size:22px;color:#16743e}
.maikaja-app .mk-app-social-head{max-width:1100px;margin:22px auto 12px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.maikaja-app .mk-app-social-head h2{margin:0;font-size:clamp(21px,4vw,27px)}
.maikaja-app .mk-app-social-head a{color:#146a37;text-decoration:none;font-weight:800}
@media(max-width:767px){.maikaja-app .mk-app-social-entrance{margin:16px 10px 14px}.maikaja-app .mk-app-social-head{margin:22px 12px 12px}}

/* Universal Mobile Bottom App Bar (visible on all mobile devices <= 768px) */
@media (max-width: 768px) {
  body .app-bottom-nav,
  html body .app-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    background: rgba(17, 26, 20, 0.94) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    z-index: 9999 !important;
    align-items: center !important;
    justify-content: space-around !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  body .app-bottom-nav .app-tablet-nav-brand { display: none !important; }
  body .app-bottom-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    text-decoration: none !important;
    color: #92a799 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 0 2px !important;
    height: 100% !important;
  }
  body .app-bottom-nav-item .app-tablet-nav-label {
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.15 !important;
  }
  body .app-bottom-nav-item .app-bottom-nav-icon {
    font-size: 19px !important;
    display: grid !important;
    place-items: center !important;
  }
  body .app-bottom-nav-item .app-bottom-nav-icon img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
    display: block !important;
    filter: brightness(0) invert(1) !important;
    opacity: 0.72 !important;
    transition: opacity 0.15s ease, filter 0.15s ease !important;
  }
  body .app-bottom-nav-item.is-active,
  body .app-bottom-nav-item[aria-current="page"] {
    color: #39e382 !important;
  }
  body .app-bottom-nav-item.is-active .app-bottom-nav-icon,
  body .app-bottom-nav-item[aria-current="page"] .app-bottom-nav-icon {
    transform: translateY(-2px) scale(1.1) !important;
    color: #39e382 !important;
  }
  body .app-bottom-nav-item.is-active .app-bottom-nav-icon img,
  body .app-bottom-nav-item[aria-current="page"] .app-bottom-nav-icon img {
    opacity: 1 !important;
    filter: brightness(0) saturate(100%) invert(76%) sepia(42%) saturate(746%) hue-rotate(92deg) brightness(96%) contrast(92%) !important;
  }

  /* Világos mód változat az alsó fix mobil menübarhoz (a fenti sötét stílus megmarad sötét módnak) */
  html:not(.mk-dark):not([data-theme="dark"]):not(.maikaja-app-dark) body .app-bottom-nav {
    background: rgba(255, 255, 255, 0.96) !important;
    border-top: 1px solid rgba(15, 23, 42, 0.09) !important;
    box-shadow: 0 -6px 22px rgba(15, 23, 42, 0.08) !important;
  }
  html:not(.mk-dark):not([data-theme="dark"]):not(.maikaja-app-dark) body .app-bottom-nav-item {
    color: #526071 !important;
    gap: 2px !important;
    transition: color 0.15s ease !important;
  }
  html:not(.mk-dark):not([data-theme="dark"]):not(.maikaja-app-dark) body .app-bottom-nav-item .app-bottom-nav-icon {
    padding: 3px 14px !important;
    border-radius: 999px !important;
    transition: background-color 0.18s ease, color 0.15s ease, transform 0.15s ease !important;
  }
  html:not(.mk-dark):not([data-theme="dark"]):not(.maikaja-app-dark) body .app-bottom-nav-item .app-bottom-nav-icon img {
    filter: brightness(0) saturate(100%) invert(37%) sepia(14%) saturate(650%) hue-rotate(174deg) brightness(94%) contrast(88%) !important;
    opacity: 0.92 !important;
  }
  html:not(.mk-dark):not([data-theme="dark"]):not(.maikaja-app-dark) body .app-bottom-nav-item.is-active,
  html:not(.mk-dark):not([data-theme="dark"]):not(.maikaja-app-dark) body .app-bottom-nav-item[aria-current="page"] {
    color: #15803d !important;
    font-weight: 800 !important;
  }
  html:not(.mk-dark):not([data-theme="dark"]):not(.maikaja-app-dark) body .app-bottom-nav-item.is-active .app-bottom-nav-icon,
  html:not(.mk-dark):not([data-theme="dark"]):not(.maikaja-app-dark) body .app-bottom-nav-item[aria-current="page"] .app-bottom-nav-icon {
    background: rgba(22, 163, 74, 0.13) !important;
    color: #15803d !important;
    transform: translateY(-1px) scale(1.04) !important;
  }
  html:not(.mk-dark):not([data-theme="dark"]):not(.maikaja-app-dark) body .app-bottom-nav-item.is-active .app-bottom-nav-icon img,
  html:not(.mk-dark):not([data-theme="dark"]):not(.maikaja-app-dark) body .app-bottom-nav-item[aria-current="page"] .app-bottom-nav-icon img {
    filter: brightness(0) saturate(100%) invert(31%) sepia(67%) saturate(920%) hue-rotate(107deg) brightness(92%) contrast(94%) !important;
    opacity: 1 !important;
  }

  html:not(.maikaja-app) body:has(.app-bottom-nav .app-bottom-nav-item.is-active) .mk2-header .mk2-brand-page-title {
    display: none !important;
  }

  html:not(.maikaja-app) body:has(.app-bottom-nav) .cookie-banner {
    z-index: 10000 !important;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
@media (min-width: 769px) {
  body .app-bottom-nav { display: none !important; }
}

/* Phase 02: a shared public homepage, with an Android-only community gateway. */
.mk-app-community-entry{display:none!important}
@media(max-width:767px){
  html.maikaja-app body .mk-app-community-entry{display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:15px;margin:10px 0 18px;border:1px solid #d5e8da;border-radius:20px;background:#edf8ef;color:#163e28}
  .maikaja-app .mk-app-community-copy{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 190px}
  .maikaja-app .mk-app-community-icon{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:16px;background:#d9efdf;color:#17683e}
  .maikaja-app .mk-app-community-copy strong{display:block;font-size:16px;line-height:1.35}
  .maikaja-app .mk-app-community-copy p{margin:2px 0 0;font-size:12px;line-height:1.4;color:#536d5a;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .maikaja-app .mk-app-community-open{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 15px;background:#236f43;border-radius:999px;color:#fff;text-decoration:none;font-size:13px;font-weight:750}
}
/* The web community download prompt has no purpose inside an installed app. */
html.maikaja-app body .mk-social-app-cta{display:none!important}
/* Protect content from the floating phone navigation including safe area. */
@media(max-width:767px){html.maikaja-app body .v2-shell{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))!important}}

/* Phase 03 – live community stream on the common Android phone homepage. */
.mk-home-native-community{display:none!important}
@media(max-width:767px){
  html.maikaja-app .mk-home-native-community{display:block!important;margin:12px 0 24px;min-width:0;}
  html.maikaja-app .mk-native-feed-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 12px;font-size:20px;font-weight:850;color:#183c29}
  html.maikaja-app .mk-native-feed-title a{display:grid;place-items:center;min-width:44px;min-height:44px;color:#256a46;border-radius:16px;background:#edf6ef;text-decoration:none}
  html.maikaja-app .mk-native-feed-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;background:#edf3ed;border-radius:16px;margin-bottom:12px}
  html.maikaja-app .mk-native-feed-tabs button{min-height:44px;border:0;border-radius:12px;background:transparent;color:#536557;font-weight:800;font:inherit;cursor:pointer}
  html.maikaja-app .mk-native-feed-tabs button.is-active{background:#fff;color:#1c7442;box-shadow:0 2px 9px rgba(25,70,38,.09);font-weight:800}
  html.maikaja-app .mk-home-native-community .feed-stream,html.maikaja-app .mk-home-native-community .feed-skeletons{min-width:0}
  html.maikaja-app .mk-home-native-community .feed-compose-quick{width:100%;margin:0 0 14px}
  html.maikaja-app .mk-home-native-community .feed-sentinel{min-height:2px}
  /* Don't show the old read-only community preview on top of the interactive feed. */
  html.maikaja-app .v2-section:has(>.v2-section-head .fa-users):has(.mk-social-masonry){display:none!important}
}
