/* LOWiSPIKE navigation moves (Oct 15, 2026): For You in Cook, Leaderboard in Move, Community is the galaxy alone */
.nm-pill { position: absolute; right: calc(max(14px, env(safe-area-inset-right)) + var(--nm-r, 0px)); top: calc(var(--sat, 0px) + 14px); z-index: 4; height: 38px; padding: 0 14px 0 11px;
    display: inline-flex; align-items: center; gap: 6px; border-radius: 19px; border: 1px solid var(--line2, rgba(255,255,255,.18));
    background: var(--card, rgba(255,255,255,.08)); color: var(--text, #fff); font: 700 13.5px/1 inherit; letter-spacing: -.01em; cursor: pointer;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 6px 18px -10px rgba(0,0,0,.45); -webkit-tap-highlight-color: transparent; }
.nm-pill svg, .nm-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nm-pill svg .nm-fill { fill: currentColor; stroke: none; }
.nm-pill:active { transform: scale(.96); }
.nm-pill.nm-hide { display: none; }
html.nm-open-fy #tab-shelf > .nm-pill, html.nm-open-lb #tab-move > .nm-pill { display: none; }
.nm-layer { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; background: var(--bg, #0b1220); }
.nm-layer[hidden] { display: none; }
.nm-head { flex: none; display: flex; align-items: center; gap: 8px; padding: calc(var(--sat, 0px) + 12px) 14px 8px; min-height: 44px; z-index: 3; }
.nm-back { display: inline-flex; align-items: center; gap: 2px; height: 38px; padding: 0 12px 0 6px; border-radius: 19px; border: 1px solid var(--line2, rgba(255,255,255,.18));
    background: var(--card, rgba(255,255,255,.08)); color: var(--text, #fff); font: 700 13.5px/1 inherit; cursor: pointer; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nm-title { flex: 1; text-align: center; margin-right: 76px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--text, #fff); }
.nm-body { position: relative; flex: 1; min-height: 0; display: flex; }
.nm-body > .ls-pane { width: 100% !important; flex: 1 1 auto; height: 100%; }
/* For You keeps its full-screen slides: the header floats over the feed */
.nm-layer-fy { background: #000; }
.nm-layer-fy .nm-head { position: absolute; left: 0; right: 0; top: 0; background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,0)); }
.nm-layer-fy .nm-title { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.nm-layer-fy .nm-back { background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.22); color: #fff; }
/* Oct 16: For You's Back button sits right above the inline player, so it wears the same blue liquid glass as the player's
   Close / Open on ... buttons and the weather pill (same tokens, same blur); size and place unchanged. */
.nm-layer-fy .nm-back { border: 1.5px solid var(--wh-glass-rim, rgba(160,220,255,.55)); color: var(--wh-glass-ink, #fff);
    background: var(--wh-glass-wide, linear-gradient(160deg, rgba(80,170,255,.14), rgba(28,74,150,.34))), rgba(8,20,48,.42);
    box-shadow: var(--wh-glass-sh, inset 0 0 18px rgba(140,210,255,.32), 0 8px 26px -12px rgba(40,120,255,.5));
    backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4); text-shadow: 0 1px 4px rgba(0,20,60,.45); }
html[data-theme="light"] .nm-layer-fy .nm-back { background: var(--wh-glass-wide), rgba(235,243,255,.66); text-shadow: none; }
.nm-layer-lb .nm-body > .ls-pane { padding-top: 4px; }
/* Community: the spirit galaxy alone. No For You / Leaderboard tabs, no big title, no Privacy & quiet button. */
#tab-foryou.nm-solo .ls-phd { display: none !important; }
#tab-foryou.nm-solo #cmTrack { width: 100% !important; transform: none !important; padding-top: calc(var(--sat, 0px) + 8px); }
#tab-foryou.nm-solo #cmTrack > .ls-pane:not(#cmPaneChat) { display: none !important; }
#tab-foryou.nm-solo #cmPaneChat { width: 100% !important; flex: 1 1 auto; }
html.nm-on #cmPaneChat .cp-bar, html.nm-on #cmPaneChat #csControls { display: none !important; }

/* Oct 21 Community declutter: privacy is a small shield icon next to the Community name, the friends tree a labelled button in the
   galaxy's lower left corner (the energy joystick sits lower right). */
#cmPaneChat > .rm-bar .rm-head > .nm-cpriv { flex: none; width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.16); background: rgba(10,14,40,.55); color: #fff; cursor: pointer; margin-left: 8px;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-tap-highlight-color: transparent; }
#cmPaneChat > .rm-bar .rm-head > .nm-cpriv svg, #cpRoom > .nm-ctree svg, .nm-milescard .nm-msic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
#cmPaneChat > .rm-bar .rm-head > .nm-cpriv:active, #cpRoom > .nm-ctree:active { transform: scale(.94); }
#cpRoom > .nm-ctree { position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); bottom: 12px; z-index: 6; height: 38px; padding: 0 13px 0 10px;
    display: inline-flex; align-items: center; gap: 6px; border-radius: 19px; border: 1px solid rgba(255,255,255,.18); background: rgba(10,14,40,.55);
    color: #fff; font: 650 13px/1 inherit; font-family: inherit; white-space: nowrap; cursor: pointer;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-tap-highlight-color: transparent; }
@media (min-width: 700px) and (min-height: 700px) { #cpRoom > .nm-ctree { left: 16px; bottom: 16px; } }
/* short phones (SE size): a little lower and slimmer, below You in the middle of the galaxy */
@media (max-height: 720px) { #cpRoom > .nm-ctree { bottom: 6px; height: 36px; padding: 0 11px 0 9px; font-size: 12.5px; } }
html[data-theme="light"] #cmPaneChat > .rm-bar .rm-head > .nm-cpriv, html[data-theme="light"] #cpRoom > .nm-ctree { background: rgba(255,255,255,.78); color: #141836; border-color: rgba(20,24,54,.14); }
#cmPaneChat[data-room] #cpRoom > .nm-ctree, html.rm-room-open #cpRoom > .nm-ctree { display: none; }
html.cs-chat-map-typing #cpRoom > .nm-ctree, #cpRoom:has(#cgThread[data-open]) > .nm-ctree { opacity: 0; pointer-events: none; }
/* Move: Milestones as a slim row under the Care board */
.nm-milescard { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 10px; padding: 10px 14px; min-height: 48px; text-align: left; color: var(--text, #fff); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nm-milescard:active { transform: scale(.98); }
.nm-milescard .nm-msic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none; background: rgba(var(--gold-rgb, 232,196,120), .16); color: var(--gold2, #e8c478); }
html[data-theme="light"] .nm-milescard .nm-msic { color: #a8792e; }
.nm-milescard b { font-size: 15px; }
.nm-milescard small { flex: 1; min-width: 0; font-size: 12.5px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html:not([data-lay=phone]) #mv-screen.tabmode > .stack > .nm-milescard, html:not([data-lay=phone]) #mv-screen.tabmode > .stack > .nm-milescard + .card { grid-column: 1/-1; }

/* Profile > Community: the chat privacy & quiet hours row (moved out of the Community screen) */
.nm-privacy { padding: 0 !important; overflow: hidden; }
.nm-privbtn { display: block; width: 100%; text-align: left; padding: 14px 16px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.nm-privbtn b { display: block; font-size: 15px; }
.nm-privbtn span { display: block; font-size: 12.5px; opacity: .7; margin-top: 2px; }

/* Oct 16: For You sits in Cook's Shuffle | For You | Swipe switch, the Leaderboard is a card under the Move title.
   The old top-right pills collided with the profile, weather and day/night buttons, so they are gone. */
html.nm-on .nm-pill { display: none !important; }
#tab-shelf .ck-view .ck-fy { white-space: nowrap; }
/* Move: no Safety shield in the header; the notes are a quiet line under the tiles */
.nm-safeline { margin: 6px 0 0; text-align: center; font-size: 11.5px; line-height: 1.3; opacity: .75; grid-column: 1/-1; }
html.nm-on .g2-safe { display: none !important; }
.nm-safe { border: 0; background: none; padding: 0; margin-left: 4px; color: var(--gold2, #e6c27a); font: inherit; font-size: inherit; text-decoration: underline; cursor: pointer; }
.nm-lbcard { display: flex; align-items: center; gap: 12px; width: 100%; margin: 8px 0 10px; padding: 12px 14px; text-align: left; color: var(--text, #fff); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nm-lbcard:active { transform: scale(.98); }
.nm-lbcard .nm-lbic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nm-lbtx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nm-lbtx .h3 { margin: 0; }
.nm-lbgo { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
html:not([data-lay=phone]) #mv-screen.tabmode > .stack > .nm-lbcard { grid-column: 1/-1; }
html:not([data-lay=phone]) #mv-screen.tabmode > .stack > .nm-lbcard + .card { grid-column: 1/-1; }
/* Oct 16 (E-man, iPad screenshot: "remove that boring black"): For You no longer sits on a black backdrop. The layer is clear,
   the Cook page underneath steps aside while it is open, and the living world shows around the video. On iPad/laptop the
   video column is a rounded frame with the blue glass rim; the video itself, its buttons and swiping are unchanged. */
.nm-layer-fy { background: transparent; }
html.nm-open-fy:not(.nm-fyw) #tab-shelf > :not(.nm-layer) { visibility: hidden !important; }
html:not([data-lay=phone]) .nm-layer-fy .nm-head { background: none; }
html:not([data-lay=phone]) .nm-layer-fy .fy-slide { border-radius: 28px; outline: 1.5px solid var(--wh-glass-rim, rgba(160,220,255,.55)); outline-offset: -1.5px;
    box-shadow: 0 18px 50px -22px rgba(40,120,255,.55); }

/* Oct 16 (E-man: "For You should open like Shuffle and Swipe"): For You is a window inside Cook. Cook's title, top row and
   switch stay on screen; the window sits where the Shuffle game and the Swipe cards appear, in the blue liquid glass of the
   Misty bubble, and you swipe up and down through the posts inside it. nav-moves.js sets its height (room left above the tab bar). */
#tab-shelf .nm-layer-fy.fyw { position: relative; inset: auto; z-index: 1; flex: none; width: 100%; max-width: 560px; height: 520px; margin: 12px auto 0; align-self: center;
    border-radius: 26px; overflow: hidden; isolation: isolate; box-sizing: border-box; transform: translateZ(0);
    border: 1.5px solid var(--wh-glass-rim, rgba(160,220,255,.55));
    background: var(--wh-glass-wide, linear-gradient(160deg, rgba(80,170,255,.14), rgba(28,74,150,.34))), rgba(8,20,48,.5);
    box-shadow: var(--wh-glass-sh, inset 0 0 18px rgba(140,210,255,.32), 0 8px 26px -12px rgba(40,120,255,.5));
    backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); animation: nmFywIn .28s cubic-bezier(.2,.9,.3,1); }
html[data-theme="light"] #tab-shelf .nm-layer-fy.fyw { background: var(--wh-glass-wide), rgba(8,20,48,.62); }
#tab-shelf .nm-layer-fy.fyw[hidden] { display: none; }
@keyframes nmFywIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateZ(0); } }
@media (prefers-reduced-motion: reduce) { #tab-shelf .nm-layer-fy.fyw { animation: none; } }
/* Cook steps aside only where the window goes: the Shuffle game, the Swipe cards and the tools row under them */
html.nm-open-fy.nm-fyw #tab-shelf #shBody > :is(#r5Shuf, #r3kSwipe, #g2cTiles, #r3kYes, #r3kAll) { display: none !important; }
html.nm-open-fy.nm-fyw #app #main #tab-shelf #ckBar .ck-view .ck-b.on:not(.ck-fy) { background: transparent !important; color: var(--muted, rgba(235,235,245,.7)) !important; box-shadow: none !important; }
html.nm-open-fy.nm-fyw #tab-shelf #ckBar .ck-view .ck-fy.on { background: var(--tmg-a, #9de6b8); color: #0b1410; }
/* inside the window: no floating header, slides fill the glass, caption and buttons sit at the window's bottom edge */
#tab-shelf .nm-layer-fy.fyw .nm-head { display: none; }
#tab-shelf .nm-layer-fy.fyw .nm-body, #tab-shelf .nm-layer-fy.fyw .fy-pane, #tab-shelf .nm-layer-fy.fyw #cmFeed { height: 100%; min-height: 0; }
#tab-shelf .nm-layer-fy.fyw #cmFeed { position: relative; }
#tab-shelf .nm-layer-fy.fyw .fy-feed { height: 100%; touch-action: pan-y; overscroll-behavior: contain; }
#tab-shelf .nm-layer-fy.fyw .fy-slide { width: 100%; margin: 0; border-radius: 0; outline: 0; box-shadow: none; background: transparent; }
#tab-shelf .nm-layer-fy.fyw :is(.fy-rail, .fy-meta) { bottom: 16px; }
#tab-shelf .nm-layer-fy.fyw .fy-endin { padding-bottom: 0; }
/* Post sits in the window's top-left corner: the like / chat / save / share column runs down the right edge */
#tab-shelf .nm-layer-fy.fyw .fyv-fab { top: 12px; left: 12px; right: auto; }
#tab-shelf .nm-layer-fy.fyw .fy-rail { gap: 10px; right: 6px; }
