/* Miliki Concepts — mobile bottom navigation (CRM-style tab bar + "More" sheet) */
.mtabbar,.msheet{display:none}
.mtabbar,.msheet{
  --mt-h:62px;--mt-surface:#fff;--mt-line:#E7E2D9;--mt-ink:#101318;--mt-muted:#5B6068;
  --mt-active:#051840;--mt-active-bg:rgba(209,161,90,.20);--mt-tile:#F4F1EC;--mt-badge:#f07868;
  font-family:Outfit,Inter,system-ui,-apple-system,"Segoe UI",sans-serif
}
html[data-mode="dark"] .mtabbar,html[data-mode="dark"] .msheet{
  --mt-surface:#16213B;--mt-line:#2A3A5C;--mt-ink:#EEF1F7;--mt-muted:#9AA4BA;
  --mt-active:#E0B571;--mt-active-bg:rgba(224,181,113,.16);--mt-tile:#1D2A48
}
@media(max-width:899px){
  .mtabbar{
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;left:0;right:0;bottom:0;
    z-index:var(--mt-z,900);padding:6px 4px calc(6px + env(safe-area-inset-bottom,0px));
    background:var(--mt-surface);border-top:1px solid var(--mt-line);box-shadow:0 -4px 20px rgba(0,0,0,.06)
  }
  .mtabbar[hidden]{display:none}
  .mtabbar a,.mtabbar button{
    position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px;border:0;
    border-radius:10px;background:none;color:var(--mt-muted)!important;font:inherit;font-size:.7rem;font-weight:500;
    line-height:1.2;cursor:pointer;text-decoration:none!important;-webkit-tap-highlight-color:transparent
  }
  .mtabbar svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .mtabbar .on{background:var(--mt-active-bg);color:var(--mt-active)!important;font-weight:650}
  .mtabbar .mt-pill{position:absolute;top:2px;left:calc(50% + 6px);min-width:16px;padding:0 4px;border-radius:99px;
    background:var(--mt-badge);color:#fff;font-size:.6rem;line-height:16px;text-align:center}
  .msheet:not([hidden]){display:block;position:fixed;inset:0;z-index:10050;background:rgba(5,24,64,.5)}
  .msheet-body{
    position:absolute;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;
    max-height:78vh;overflow-y:auto;padding:14px 14px calc(18px + env(safe-area-inset-bottom,0px));
    border-radius:20px 20px 0 0;background:var(--mt-surface);animation:mt-up .18s ease-out
  }
  .msheet-body a,.msheet-body button{
    position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 6px;border:0;
    border-radius:14px;background:var(--mt-tile);color:var(--mt-ink)!important;font:inherit;font-size:.8rem;
    text-align:center;cursor:pointer;text-decoration:none!important
  }
  .msheet-body svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .msheet-body .mt-pill{position:absolute;top:6px;right:10px;min-width:16px;padding:0 4px;border-radius:99px;
    background:var(--mt-badge);color:#fff;font-size:.6rem;line-height:16px}
  @keyframes mt-up{from{transform:translateY(24px);opacity:.6}to{transform:none;opacity:1}}

  /* room for the bar */
  body.has-mtabbar{padding-bottom:calc(var(--mt-h,62px) + env(safe-area-inset-bottom,0px))!important}
  /* keep floating widgets clear of the bar */
  body.has-mtabbar .miliki-contact-hub{right:16px!important;bottom:calc(76px + env(safe-area-inset-bottom,0px))!important}
  body.has-mtabbar .back-top{left:16px!important;right:auto!important;bottom:calc(76px + env(safe-area-inset-bottom,0px))!important}
  body.has-mtabbar .miliki-chat-panel{bottom:calc(150px + env(safe-area-inset-bottom,0px))!important}
  body.has-mtabbar .sticky-cta{bottom:calc(var(--mt-h,62px) + env(safe-area-inset-bottom,0px))!important;padding-bottom:10px!important}
}

/* Small screens: show the logo mark only, hide the "Miliki Concepts" text beside it */
@media(max-width:899px){
  .hdr .logo span,.topbar .logo .brand-site-name,.topbar .logo .brand-mark small,.topbar .brand-site-name{display:none!important}
}
/* Control center: bar replaces the old bottom strip (which switched on at 850px) */
@media(max-width:850px){body.portal .admin-nav{display:none!important}body.portal .admin-content{padding-bottom:0!important}}
@media(min-width:851px) and (max-width:899px){.mtabbar.mt-admin,.msheet.mt-admin{display:none!important}}
@media(min-width:900px){.mtabbar,.msheet{display:none!important}}
@media(prefers-reduced-motion:reduce){.msheet-body{animation:none}}