/* section-nav.css: Oct 21. The one way back to Home from every page now that the bottom menu bar is gone: a round glass back
   button at the top left, on the same row as your picture at the top right. Sheets (z 30+) cover it. */
.sec-x{display:none;position:fixed;z-index:14;top:calc(var(--sat, env(safe-area-inset-top, 0px)) + 12px);left:max(16px, env(safe-area-inset-left, 0px));
  width:40px;height:40px;padding:0;border-radius:50%;align-items:center;justify-content:center;cursor:pointer;
  color:#eaf6ff;background:rgba(14,26,56,.62);border:1px solid rgba(110,200,255,.55);
  box-shadow:0 0 14px rgba(80,180,255,.28), inset 0 1px 0 rgba(255,255,255,.12);
  -webkit-backdrop-filter:blur(14px) saturate(1.3);backdrop-filter:blur(14px) saturate(1.3);-webkit-tap-highlight-color:transparent}
.sec-x svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.sec-x:active{transform:scale(.92)}
/* Oct 26 2026: the glass circle stays 40 px; an invisible ring makes the tap area 48 px (Apple's minimum is 44 pt) */
.sec-x::after{content:"";position:absolute;inset:-4px;border-radius:50%}
.sec-x:focus-visible{outline:2px solid #7fd4ff;outline-offset:2px}
html.sec-open .sec-x{display:flex}
html.lt .sec-x{color:#0d2440;background:rgba(255,255,255,.72);border-color:rgba(40,140,220,.5)}
/* the same rules that hide your picture while something is open full screen hide the X too */
/* a bloom left open on Home waits, hidden, under the page */
html.sec-open .hb2-bloom{visibility:hidden!important}
/* Oct 26 2026 (Emmanuel: "Once we're in the Community section, the back button disappears"): flying (html.mf-on) no longer
   hides it. Autopilot keeps mf-on set after you leave Home, so every page lost its way home while your companion flew. Only a
   real full-screen layer with its own close hides it: the camera and the herb room. */
html.sec-open.b3-camon .sec-x, html.sec-open.sp-open .sec-x{display:none}
/* Oct 22 2026 (Emmanuel's screenshot: the round arrow sat on the Account "Back" pill): inside a Profile part the header's Back pill is
   the one back control; the round arrow shows again on the overview, where it goes Home */
html.g2e-on.g2e-open .sec-x{display:none!important}
/* the page being swiped away casts a soft edge shadow, like iOS */
html.sec-swiping #main > .tab.active{box-shadow:-12px 0 24px rgba(0,0,0,.35)}
/* Oct 28 2026 (owner request 13, Emmanuel: Kochen opened as a separate page): Kochen rises in place as a glass panel, like the
   profile panel and Einkaufen. The page it was opened from (Home) stays drawn around it and a tap beside the panel goes back.
   The round back button keeps its spot at the top left, in the strip above the panel. */
html.cook-holo #main>.tab.holo-under,.apple-ui html.cook-holo #main .tab.holo-under,html.cook-holo.apple-ui #main .tab.holo-under{opacity:1!important;pointer-events:none!important;content-visibility:visible!important}
html.cook-holo #main>#tab-shelf.active{position:fixed;z-index:12;top:calc(var(--sat, env(safe-area-inset-top, 0px)) + 62px);bottom:calc(var(--sab, env(safe-area-inset-bottom, 0px)) + 14px);
  left:max(10px, calc(50% - 290px));right:max(10px, calc(50% - 290px));border-radius:30px;overflow:hidden;
  border:1.2px solid rgba(143,231,255,.5);background:rgba(10,22,58,.5);
  box-shadow:0 18px 50px rgba(0,0,0,.42),0 0 26px rgba(143,231,255,.22),inset 0 1px 0 rgba(255,255,255,.14)}
html.cook-holo.lt #main>#tab-shelf.active{background:rgba(255,255,255,.55);border-color:rgba(40,140,220,.45);box-shadow:0 18px 44px rgba(20,60,120,.22),0 0 22px rgba(80,180,255,.2)}
#cookHoloScrim{display:none}
html.cook-holo #cookHoloScrim{display:block;position:fixed;inset:0;z-index:11;background:rgba(4,10,32,.28);-webkit-tap-highlight-color:transparent}
html.cook-holo.lt #cookHoloScrim{background:rgba(20,50,100,.14)}
@media (prefers-reduced-motion: no-preference){html.cook-holo #main>#tab-shelf.active{animation:cookHoloUp .26s cubic-bezier(.2,.9,.3,1)}}
@keyframes cookHoloUp{from{opacity:.4;translate:0 18px;scale:.985}to{opacity:1;translate:0 0;scale:1}}
/* Oct 28 2026 11:11 (owner request 15, Emmanuel on his iPhone: "Bro, what the fuck is this? You completely broke it"): the panel
   above had no backdrop at all. body-world-3d.css clears every tab's background (html.wb-on.wb-on.wb-on #app #main > .tab.tab,
   !important), so Home's bubbles, cards and texts showed straight through Kochen and nothing was readable. Kochen keeps rising
   over Home, but on a solid frosted glass panel, and Home behind it is dimmed and blurred hard, so no Home text or bubble shows
   through. The selector carries more ids than the body-world rule so it always wins. Liquid Glass (html.lg) is always dark glass,
   so the panel is dark there in day mode too; only the classic light UI gets the light panel. */
html.cook-holo.cook-holo.cook-holo #app #main#main>#tab-shelf.tab.active:not(#bw3x){
  background-color:#071233!important;
  background-image:radial-gradient(120% 50% at 50% -8%,rgba(60,120,255,.22),transparent 62%),linear-gradient(180deg,rgba(12,28,70,.98) 0%,rgba(7,17,48,.985) 55%,rgba(5,12,36,.99) 100%)!important;
  background-size:100% 100%!important;background-attachment:scroll!important;
  -webkit-backdrop-filter:blur(26px) saturate(1.2)!important;backdrop-filter:blur(26px) saturate(1.2)!important;isolation:isolate;color:#fff}
html.cook-holo.cook-holo.cook-holo.lt:not(.lg) #app #main#main>#tab-shelf.tab.active:not(#bw3x){
  background-color:#f4f8ff!important;background-image:linear-gradient(180deg,rgba(250,252,255,.98),rgba(238,245,255,.985))!important;color:#0d2440}
html.cook-holo #cookHoloScrim{background:rgba(2,6,20,.74);-webkit-backdrop-filter:blur(18px) saturate(.7);backdrop-filter:blur(18px) saturate(.7)}
html.cook-holo.lt:not(.lg) #cookHoloScrim{background:rgba(14,30,60,.55)}
/* Home under the panel: drawn (the panel rises over it, no new page), but faded and soft, so even where a phone has no backdrop
   blur (Low Power Mode, older WebKit) nothing of Home can be read through the scrim. */
html.cook-holo #main>.tab.holo-under,.apple-ui html.cook-holo #main .tab.holo-under,html.cook-holo.apple-ui #main .tab.holo-under{opacity:.35!important}
/* the top-right profile and day/night buttons (z 12 in #main) stay under the scrim while Kochen is up, so nothing of Home floats crisp over it */
html.cook-holo #main>#pfBtn,html.cook-holo #main>#tbTheme{visibility:hidden!important;pointer-events:none!important}
