/* Меню More на телефоне — «капли» в жидком стекле (стенд more-menu, вариант 3, 2026-10-20).
   Шторки нет: каждый пункт — отдельная стеклянная капля со стикером и подписью-пилюлей.
   Двойной класс .mbn-tray.mbn-tray перебивает тёмные правила port-void-type.css. */
html body .mbn-tray.mbn-tray{background:none;border:0;box-shadow:none;padding:0 14px 10px;-webkit-backdrop-filter:none;backdrop-filter:none}
html body .mbn-tray-backdrop.mbn-tray-backdrop{background:rgba(10,37,64,.2);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
html[data-theme="dark"] body .mbn-tray-backdrop.mbn-tray-backdrop{background:rgba(0,0,0,.4)}
html body .mbn-tray .mbn-tray-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px}
html body .mbn-tray .mbn-tray-item.mbn-tray-item{position:relative;gap:6px;padding:0;background:none;border-radius:0;color:#0A2540}
html[data-theme="dark"] body .mbn-tray .mbn-tray-item.mbn-tray-item{color:#F4F4EF}
html body .mbn-tray .mbn-tray-ico-wrap.mbn-tray-ico-wrap{width:74px;height:74px;border:0;border-radius:50%;
  -webkit-backdrop-filter:blur(20px) saturate(190%);backdrop-filter:blur(20px) saturate(190%);
  background:radial-gradient(60% 50% at 35% 25%,rgba(255,255,255,.75),rgba(255,255,255,.18) 60%,rgba(255,255,255,.3));
  box-shadow:inset 0 2px 1px rgba(255,255,255,.95),inset 0 -6px 12px rgba(10,37,64,.12),inset 0 0 0 1px rgba(255,255,255,.6),0 14px 28px -10px rgba(10,37,64,.45);
  transform:none;transition:transform 160ms ease-out}
html[data-theme="dark"] body .mbn-tray .mbn-tray-ico-wrap.mbn-tray-ico-wrap{
  background:radial-gradient(60% 50% at 35% 25%,rgba(255,255,255,.28),rgba(255,255,255,.05) 60%,rgba(255,255,255,.1));
  box-shadow:inset 0 2px 1px rgba(255,255,255,.35),inset 0 0 0 1px rgba(255,255,255,.18),0 14px 28px -10px rgba(0,0,0,.7)}
html body .mbn-tray .mbn-tray-ico{width:42px;height:42px;object-fit:contain}
html[data-theme="dark"] body .mbn-tray .xtr-tray-logo{filter:invert(1)}
html body .mbn-tray .mbn-tray-lbl{padding:4px 10px;border-radius:999px;font-size:12.5px;font-weight:700;letter-spacing:-.01em;line-height:1.2;white-space:nowrap;
  -webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);background:rgba(255,255,255,.62);box-shadow:inset 0 0 0 1px rgba(255,255,255,.6)}
html[data-theme="dark"] body .mbn-tray .mbn-tray-lbl{background:rgba(30,30,34,.62);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
/* открытая вкладка — синее кольцо вокруг капли */
html body .mbn-tray .mbn-tray-item.active .mbn-tray-ico-wrap.mbn-tray-ico-wrap{transform:none;box-shadow:inset 0 0 0 3px #0077C2,0 14px 28px -10px rgba(10,37,64,.45)}
html[data-theme="dark"] body .mbn-tray .mbn-tray-item.active .mbn-tray-ico-wrap.mbn-tray-ico-wrap{box-shadow:inset 0 0 0 3px #F4F4EF,0 14px 28px -10px rgba(0,0,0,.7)}
html body .mbn-tray .mbn-tray-item.mbn-tray-item:active{background:none;transform:none}
html body .mbn-tray .mbn-tray-item:active .mbn-tray-ico-wrap{transform:scale(.94)}
/* Demo: зелёная точка, когда включено */
html body .mbn-tray .mbn-tray-demo::after{content:"";position:absolute;top:2px;right:calc(50% - 38px);width:12px;height:12px;border-radius:50%;background:rgba(10,37,64,.25);box-shadow:0 0 0 2px rgba(255,255,255,.85)}
html body .mbn-tray .mbn-tray-demo.is-on::after{background:#1FBF63}
html body .mbn-tray .mbn-tray-item.mbn-tray-demo.is-on .mbn-tray-ico-wrap{box-shadow:inset 0 2px 1px rgba(255,255,255,.95),inset 0 0 0 1px rgba(255,255,255,.6),0 14px 28px -10px rgba(10,37,64,.45)}
html[data-theme="dark"] body .mbn-tray .mbn-tray-item.mbn-tray-demo.is-on .mbn-tray-ico-wrap{box-shadow:inset 0 2px 1px rgba(255,255,255,.35),inset 0 0 0 1px rgba(255,255,255,.18),0 14px 28px -10px rgba(0,0,0,.7)}
/* появление: капли поднимаются снизу вверх, ближние к навигации — первыми */
@media(prefers-reduced-motion:no-preference){
  html body .mbn-tray.open .mbn-tray-item.mbn-tray-item{animation:mmDrop 320ms cubic-bezier(0.23,1,0.32,1) both}
  html body .mbn-tray.open .mbn-tray-item:nth-child(n+7){animation-delay:0ms}
  html body .mbn-tray.open .mbn-tray-item:nth-child(-n+6){animation-delay:40ms}
  html body .mbn-tray.open .mbn-tray-item:nth-child(-n+3){animation-delay:80ms}
}
@keyframes mmDrop{from{opacity:0;transform:translateY(18px) scale(.8)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){html body .mbn-tray.open .mbn-tray-item.mbn-tray-item{animation:none}html body .mbn-tray .mbn-tray-ico-wrap.mbn-tray-ico-wrap{transition:none}}
@media(max-width:360px){
  html body .mbn-tray .mbn-tray-ico-wrap.mbn-tray-ico-wrap{width:64px;height:64px}
  html body .mbn-tray .mbn-tray-ico{width:36px;height:36px}
  html body .mbn-tray .mbn-tray-demo::after{right:calc(50% - 33px)}
}
/* меню не уезжает вниз, а растворяется: капли не видны из-под навигации при закрытии */
html body .mbn-tray.mbn-tray{transform:none!important;opacity:0;visibility:hidden;transition:opacity 160ms ease,visibility 0s linear 160ms}
html body .mbn-tray.mbn-tray.open{opacity:1;visibility:visible;transition:opacity 120ms ease,visibility 0s}
@media(prefers-reduced-motion:reduce){html body .mbn-tray.mbn-tray,html body .mbn-tray.mbn-tray.open{transition:none}}

/* ── Нижняя навигация — единая полоса жидкого стекла (2026-10-20) ─────────
   Та же плавающая полоса в обеих темах; у пунктов нет своих плашек,
   открытая вкладка — стеклянная «пилюля» внутри полосы. */
@media(max-width:600px){
  html body .mobile-bottom-nav.mobile-bottom-nav{left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom,0px));width:auto;padding-bottom:4px;border:0;border-radius:26px;
    background:rgba(255,255,255,.4);-webkit-backdrop-filter:blur(26px) saturate(180%);backdrop-filter:blur(26px) saturate(180%);
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),inset 0 1px 0 #fff,0 16px 40px -12px rgba(10,37,64,.35)}
  html[data-theme="dark"] body .mobile-bottom-nav.mobile-bottom-nav{background:rgba(36,36,42,.45);
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.16),inset 0 1px 0 rgba(255,255,255,.28),0 16px 40px -12px rgba(0,0,0,.75)}
  html body .mobile-bottom-nav.mobile-bottom-nav::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
    background:radial-gradient(60% 120% at 20% 0%,rgba(255,255,255,.55),transparent 70%)}
  html[data-theme="dark"] body .mobile-bottom-nav.mobile-bottom-nav::before{background:radial-gradient(60% 120% at 20% 0%,rgba(255,255,255,.12),transparent 70%)}
  html body .mobile-bottom-nav .mbn-item{position:relative;color:#3B556E}
  html[data-theme="dark"] body .mobile-bottom-nav .mbn-item{color:#B4B4AC}
  html body .mobile-bottom-nav .mbn-item.active,html body .mobile-bottom-nav .mbn-more-btn.tray-open{color:#0A2540}
  html[data-theme="dark"] body .mobile-bottom-nav .mbn-item.active,html[data-theme="dark"] body .mobile-bottom-nav .mbn-more-btn.tray-open{color:#FFFFFF}
  html body .mobile-bottom-nav .mbn-lbl{font-weight:700}
  /* у пунктов нет своих квадратов; открытая вкладка — стеклянная пилюля на всю ячейку */
  html body .mobile-bottom-nav .mbn-ico-wrap.mbn-ico-wrap{background:none!important;border-color:transparent!important;box-shadow:none!important;transform:none!important}
  html body .mobile-bottom-nav .mbn-item:not(.mbn-create-btn)::before{content:"";position:absolute;inset:5px 3px 5px;border-radius:18px;opacity:0;transition:opacity 150ms ease;
    background:rgba(255,255,255,.62);box-shadow:inset 0 1px 0 #fff,inset 0 0 0 1px rgba(255,255,255,.75),0 4px 12px -6px rgba(10,37,64,.3)}
  html[data-theme="dark"] body .mobile-bottom-nav .mbn-item:not(.mbn-create-btn)::before{background:rgba(255,255,255,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.3),inset 0 0 0 1px rgba(255,255,255,.12)}
  html body .mobile-bottom-nav .mbn-item.active::before,html body .mobile-bottom-nav .mbn-more-btn.tray-open::before{opacity:1}
  html body .mobile-bottom-nav .mbn-item > *{position:relative}
  /* высота полосы для отступов страниц и место меню над ней — одинаково в обеих темах */
  html:root{--mnb-h:96px;--mnb-clearance:calc(96px + env(safe-area-inset-bottom,0px))}
  html body .mbn-tray.mbn-tray{left:10px;right:10px;bottom:calc(84px + max(10px,env(safe-area-inset-bottom,0px)))}
}

/* 2026-10-26 (user): the drops showed plain see-through for a moment before the glass blur kicked in — an
   element fading from opacity 0 (the tray's fade and each drop's pop-in) gets no backdrop-filter until the
   fade ends. Opening is now instant for the tray and transform-only for the drops, so the glass is there
   from the first frame; closing keeps the short fade. */
html body .mbn-tray.mbn-tray.open{opacity:1;transition:none}
@keyframes mmDrop{from{transform:translateY(18px) scale(.8)}to{transform:none}}
/* the bottom row (PNL, Points, Demo data) clears the nav on every phone, safe area included */
@media(max-width:768px){
  html body .mbn-tray.mbn-tray{bottom:calc(98px + max(10px,env(safe-area-inset-bottom,0px)))}
}

/* 2026-10-26 (user): the tray opened in jerks. Two costs: (1) the dim backdrop faded via opacity while carrying a
   backdrop blur — Safari drops the blur during an opacity fade and snaps it in at the end; (2) nine glass drops
   each moved AND scaled, so every frame re-sampled 18 blurred layers. Now: the backdrop's blur is there at once
   and only its tint fades (background-color); the drops only slide 16px (no scale) on the iOS drawer curve, as
   transitions (a quick open/close retargets instead of restarting), with their layers prepared in advance. */
html body .mbn-tray-backdrop.mbn-tray-backdrop{opacity:1;visibility:hidden;background-color:rgba(10,37,64,0);
  transition:background-color 180ms ease,visibility 0s linear 180ms}
html body .mbn-tray-backdrop.mbn-tray-backdrop.open{visibility:visible;background-color:rgba(10,37,64,.2);transition:background-color 220ms ease,visibility 0s}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) body .mbn-tray-backdrop.mbn-tray-backdrop{background-color:rgba(0,0,0,0)}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) body .mbn-tray-backdrop.mbn-tray-backdrop.open{background-color:rgba(0,0,0,.4)}
html body .mbn-tray .mbn-tray-item.mbn-tray-item{will-change:transform}
@media(prefers-reduced-motion:no-preference){
  html body .mbn-tray.open .mbn-tray-item.mbn-tray-item{animation:none}
  html body .mbn-tray .mbn-tray-item.mbn-tray-item{transform:translateY(16px);transition:transform 160ms cubic-bezier(0.32,0.72,0,1)}
  html body .mbn-tray.open .mbn-tray-item.mbn-tray-item{transform:none;transition:transform 280ms cubic-bezier(0.32,0.72,0,1)}
  /* rows rise from the nav up: bottom row first */
  html body .mbn-tray.open .mbn-tray-item:nth-child(-n+6){transition-delay:35ms}
  html body .mbn-tray.open .mbn-tray-item:nth-child(-n+3){transition-delay:70ms}
}

/* 2026-10-26 (user, stands bottom-nav v5 + create-btn v2): a slimmer bar, closer to the bottom edge — 56px tall
   (was 69), big 32px stickers with a small label, and the gap below hugs the iPhone home bar (safe area − 20px,
   at least 6px; was the full 34px). Create is a liquid-glass drop like the More tray's, lifted a little above
   the bar. The page's bottom clearance and the More tray follow the new height. */
@media(max-width:600px){
  html body .mobile-bottom-nav.mobile-bottom-nav{bottom:max(6px,calc(env(safe-area-inset-bottom,0px) - 20px));padding:0 4px;align-items:stretch}
  html body .mobile-bottom-nav .mbn-item.mbn-item{min-height:56px;height:56px;padding:0;justify-content:center;gap:0}
  html body .mobile-bottom-nav .mbn-ico-wrap.mbn-ico-wrap{width:32px;height:32px}
  html body .mobile-bottom-nav .mbn-ico-wrap .mbn-ico{width:28px;height:28px}
  html body .mobile-bottom-nav .mbn-lbl.mbn-lbl{font-size:9.5px;line-height:1.1}
  html body .mobile-bottom-nav .mbn-item:not(.mbn-create-btn)::before{inset:4px 3px;border-radius:16px}
  /* clearance = the bar's own offset from the bottom + its 56px + a 20px breath, not the whole iPhone home-indicator inset on top */
  html:root{--mnb-h:78px;--mnb-clearance:calc(76px + max(6px,calc(env(safe-area-inset-bottom,0px) - 20px)))}
  html body .mbn-tray.mbn-tray{bottom:calc(max(6px,calc(env(safe-area-inset-bottom,0px) - 20px)) + 70px)}
  /* port-light-ton.css still padded the light bar by the whole iPhone safe area: the bar grew by ~34px and covered the
     More tray's bottom row (user 2026-11-12). The bar sits above the home bar already, in both themes. */
  html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) body .mobile-bottom-nav.mobile-bottom-nav{padding-bottom:0}
  /* Create — a glass drop */
  html body .mobile-bottom-nav .mbn-create-btn .mbn-create-ring.mbn-create-ring{width:46px;height:46px;margin-bottom:0;transform:translateY(-10px);
    background:radial-gradient(60% 50% at 35% 25%,rgba(255,255,255,.85),rgba(255,255,255,.25) 60%,rgba(255,255,255,.4))!important;
    -webkit-backdrop-filter:blur(18px) saturate(190%);backdrop-filter:blur(18px) saturate(190%);
    box-shadow:inset 0 2px 1px rgba(255,255,255,.95),inset 0 -6px 12px rgba(10,37,64,.12),inset 0 0 0 1px rgba(255,255,255,.7),0 10px 22px -8px rgba(10,37,64,.45)!important;
    transition:transform 160ms cubic-bezier(.23,1,.32,1)}
  html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) body .mobile-bottom-nav .mbn-create-btn .mbn-create-ring.mbn-create-ring{
    background:radial-gradient(60% 50% at 35% 25%,rgba(255,255,255,.3),rgba(255,255,255,.06) 60%,rgba(255,255,255,.12))!important;
    box-shadow:inset 0 2px 1px rgba(255,255,255,.35),inset 0 0 0 1px rgba(255,255,255,.2),0 10px 22px -8px rgba(0,0,0,.75)!important}
  html body .mobile-bottom-nav .mbn-create-btn .mbn-create-ring::after{display:none}
  html body .mobile-bottom-nav .mbn-create-btn:active .mbn-create-ring.mbn-create-ring{scale:.94}
  html body .mobile-bottom-nav .mbn-create-btn .mbn-create-ring .mbn-ico{width:28px;height:28px}
  html body .mobile-bottom-nav .mbn-create-btn .mbn-lbl.mbn-lbl{margin-top:-7px}
}
