/* home-settings-sleep-v2.css: Sleep and Settings blooms on the one-page Home (Oct 18 2026). Chips use the same glass as the ring bubbles,
   white line icons, no emoji. The layer never dims the page, so Misty stays fully in view. */
.ss2-layer { position: fixed; inset: 0; z-index: 8990; pointer-events: none; }
.ss2-layer:empty { display: none; }
.ss2-fan { position: absolute; inset: 0; pointer-events: none; }
/* the button box sits at its final spot at once (taps land even mid-animation); only the glass face inside grows out of the bubble */
.ss2-chip { position: absolute; width: var(--ss2-c, 64px); height: var(--ss2-c, 64px); margin: calc(var(--ss2-c, 64px) / -2) 0 0 calc(var(--ss2-c, 64px) / -2); padding: 0;
    border: 0; border-radius: 50%; background: none; color: #fff; font: inherit; font-size: calc(var(--ss2-c, 64px) * .17); font-weight: 600; line-height: 1.05; cursor: pointer; pointer-events: auto;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.ss2-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; border-radius: 50%; text-align: center;
    background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.36), rgba(255,255,255,.08) 42%, rgba(120,190,255,.12) 70%, rgba(255,255,255,.18)), rgba(20,34,74,.38);
    border: 1px solid rgba(255,255,255,.45); box-shadow: inset 0 0 16px rgba(255,255,255,.18), 0 6px 20px rgba(0,20,60,.32);
    -webkit-backdrop-filter: blur(10px) saturate(1.25); backdrop-filter: blur(10px) saturate(1.25); text-shadow: 0 1px 3px rgba(0,25,70,.55);
    pointer-events: none; animation: ss2-out .26s cubic-bezier(.2,.9,.25,1.15) backwards; animation-delay: calc(var(--ss2-i, 0) * 24ms); }
.ss2-face .ss2-ico { width: 38%; height: 38%; flex: none; filter: drop-shadow(0 1px 3px rgba(0,30,80,.55)); }
.ss2-face small { font-size: .82em; font-weight: 500; opacity: .85; }
.ss2-chip[aria-checked="true"] .ss2-face { background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.4), rgba(160,255,215,.16) 45%, rgba(60,200,150,.34)), rgba(20,60,60,.4);
    border-color: rgba(170,255,220,.8); box-shadow: inset 0 0 18px rgba(170,255,220,.3), 0 0 0 2px rgba(170,255,220,.35), 0 6px 20px rgba(0,20,60,.32); }
.ss2-chip:focus-visible, .ss2-back:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (hover: hover) { .ss2-chip:hover .ss2-face { box-shadow: inset 0 0 22px rgba(255,255,255,.3), 0 6px 22px rgba(0,20,60,.36); } }
.ss2-chip:active .ss2-face { transform: scale(.94); }
@keyframes ss2-out { from { opacity: 0; transform: translate(var(--ss2-fx, 0), var(--ss2-fy, 0)) scale(.35); } to { opacity: 1; transform: none; } }
.ss2-ask { position: absolute; margin: 0; pointer-events: none; text-align: center; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.25;
    text-shadow: 0 1px 4px rgba(0,25,70,.75); animation: ss2-fade .3s ease both .12s; }
@keyframes ss2-fade { from { opacity: 0; } to { opacity: 1; } }

/* More ("Everything else"): a glass panel in the free band beside, below or above the ring, placed by placePanel() so it never
   covers Misty. A column: the Back / x header never scrolls; only the body could, and it is sized to fit with no scrolling. */
.ss2-panel { position: absolute; display: flex; flex-direction: column; box-sizing: border-box; max-height: calc(100% - 20px); pointer-events: auto;
    padding: 10px 10px 10px; border-radius: 28px; color: #fff;
    background: radial-gradient(120% 90% at 28% 0%, rgba(255,255,255,.26), rgba(255,255,255,.06) 46%, rgba(120,190,255,.1) 78%, rgba(255,255,255,.14)), rgba(20,34,74,.42);
    border: 1px solid rgba(255,255,255,.45); box-shadow: inset 0 0 22px rgba(255,255,255,.16), 0 10px 34px rgba(0,20,60,.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); text-shadow: 0 1px 3px rgba(0,25,70,.55);
    animation: ss2-fade .22s ease both; }
.ss2-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; }
.ss2-head b { font-size: 15px; font-weight: 700; text-align: center; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss2-back { flex: none; min-width: 44px; min-height: 40px; padding: 6px 12px; font: inherit; font-size: 14px; color: #fff; border-radius: 20px; cursor: pointer;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); }
.ss2-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.ss2-group { margin: 0; }
.ss2-gl { margin: 6px 4px 4px; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .78; }
.ss2-grid { display: grid; grid-template-columns: repeat(var(--ss2-cols, 2), minmax(0, 1fr)); gap: 6px; }
.ss2-chip.ss2-row { position: relative; box-sizing: border-box; width: auto; height: auto; min-height: 44px; margin: 0; border-radius: 22px; display: flex; align-items: center; justify-content: space-between; gap: 6px;
    padding: 6px 12px; font-size: 13px; line-height: 1.15; text-align: left; overflow-wrap: anywhere;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.22), rgba(255,255,255,.06) 60%), rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.32);
    box-shadow: inset 0 0 12px rgba(255,255,255,.1); text-shadow: 0 1px 3px rgba(0,25,70,.55); }
.ss2-chip.ss2-row small { flex: none; font-size: .85em; opacity: .85; }
.ss2-chip.ss2-row[aria-checked="true"] { background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.3), rgba(160,255,215,.14) 55%, rgba(60,200,150,.3)); border-color: rgba(170,255,220,.8); }
.ss2-chip.ss2-row:active { transform: scale(.97); }

/* The Settings panel (one tap on the Settings bubble). Oct 19 2026, Emmanuel: "why do you have a whole page? ... This could have been
   just like the design of when the sound menu bar appears." So it is no longer a full-screen page: it is one glass panel in the Body
   sound panel's look (misty-panels.css membrane surface, rim, glow, 34 px corners), placed by placePage() in the free space beside or
   under Misty, so she and Home stay in view. No dimming layer behind it. Its own surface carries no backdrop blur (the membrane surface
   is opaque enough; nothing extra over the moving world for phone heat). The title never scrolls, only the list does when a short
   window needs it; the x sits at the panel's bottom right. Rows keep their 44 px. */
.ss2-page { position: absolute; display: flex; flex-direction: column; box-sizing: border-box; max-height: calc(100% - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 20px); pointer-events: auto; color: var(--mb-ink, #fff);
    padding: 12px 12px 10px; background: var(--mb-surface, linear-gradient(160deg, rgba(40,110,210,.6), rgba(8,20,58,.92)));
    border: 1px solid var(--mb-rim, rgba(143,231,255,.55)); border-radius: var(--mb-r, 34px); box-shadow: var(--mb-glow, 0 0 30px 3px rgba(143,231,255,.24));
    text-shadow: 0 1px 6px rgba(0,30,80,.45); animation: ss2-page-in .28s cubic-bezier(.2,.9,.25,1.12) both; }
@keyframes ss2-page-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.ss2-page-title { flex: none; margin: 2px 8px 10px; font-size: 17px; line-height: 22px; font-weight: 700; letter-spacing: .01em; }
.ss2-page-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.ss2-page .ss2-group + .ss2-group { margin-top: 12px; }
.ss2-page .ss2-gl { margin: 0 8px 6px; font-size: 11px; line-height: 14px; }
.ss2-list { display: grid; grid-template-columns: repeat(var(--ss2-cols, 1), minmax(0, 1fr)); gap: 6px; }
.ss2-page .ss2-chip.ss2-row { min-height: 44px; padding: 6px 12px; gap: 8px; justify-content: flex-start; font-size: 14px; font-weight: 600; border-radius: 22px;
    background: var(--mb-pill, rgba(255,255,255,.08)); border: 1px solid var(--mb-pill-rim, rgba(143,231,255,.42)); box-shadow: var(--mb-pill-sh, none); }
.ss2-page .ss2-chip.ss2-row[aria-checked="true"] { background: var(--mb-chosen, rgba(60,200,150,.4)); border-color: rgba(170,255,220,.8); }
.ss2-page .ss2-row .ss2-ico { width: 20px; height: 20px; flex: none; }
.ss2-page .ss2-row .ss2-lbl { flex: 1 1 auto; min-width: 0; }
.ss2-page .ss2-row small { font-size: 12px; font-weight: 500; }
.ss2-page .ss2-row .ss2-chev { width: 16px; height: 16px; flex: none; opacity: .7; }
.ss2-page-foot { flex: none; display: flex; justify-content: flex-end; padding-top: 8px; }
.ss2-ver { margin-right: auto; align-self: center; padding-left: 8px; font-size: 12px; line-height: 16px; font-weight: 500; opacity: .75; }
.ss2-page-x { flex: none; width: 48px; height: 48px; padding: 0; border-radius: 50%; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
    background: var(--mb-orb, rgba(20,34,74,.6)); border: 1px solid var(--mb-rim, rgba(255,255,255,.45)); box-shadow: var(--mb-orb-sh, none); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.ss2-page-x svg { width: 22px; height: 22px; }
.ss2-page-x:active { transform: scale(.94); }
.ss2-page-x:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* the Sleep bubble face: its fill follows the logged band (empty until logged) */
html.o8.wh-home #whHud .o8-sleep[data-o8-adapter="settings-sleep"] .wh-cell-fill { height: calc(var(--wh-fill, 0) * 100%); transition: height .6s cubic-bezier(.2,.8,.2,1); }
/* a short nod of the label when a choice lands (inner content only: the shell holds the control box still) */
.wh-cell-tx.ss2-pulse { animation: ss2-pulse .5s ease; }
@keyframes ss2-pulse { 40% { transform: scale(1.08); } }
/* the bubble whose bloom is open glows a little */
html.ss2-open #whHud [data-orbit][aria-expanded="true"] { box-shadow: 0 0 0 2px rgba(255,255,255,.55), 0 0 24px rgba(160,210,255,.45) !important; }

@media (prefers-reduced-motion: reduce) { .ss2-face, .ss2-ask, .ss2-panel, .wh-cell-tx.ss2-pulse { animation: none !important; } }
@media (prefers-reduced-motion: reduce) { .ss2-page { animation: ss2-fade .2s ease both !important; } }

/* Oct 21 2026: slim Settings (hold the Community bubble): the Day / night switch, the language row, Delete account and the one-time hint */
.ss2-page .ss2-chip.ss2-row[data-ss2="theme"][aria-checked] { background: var(--mb-pill, rgba(255,255,255,.08)); border-color: var(--mb-pill-rim, rgba(143,231,255,.42)); }
.ss2-page .ss2-langrow { cursor: default; grid-column: 1 / -1; }
.ss2-page .ss2-langrow .ss2-lbl { min-width: 0; flex: 1 1 auto; }
.ss2-page .ss2-langrow:active { transform: none; }
.ss2-langs { display: flex; gap: 4px; flex: none; }
.ss2-langs button { min-width: 40px; min-height: 32px; padding: 0 8px; border-radius: 16px; border: 1px solid var(--mb-pill-rim, rgba(143,231,255,.42)); background: transparent; color: inherit; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.ss2-langs button.on { background: rgba(143,231,255,.28); border-color: rgba(143,231,255,.95); box-shadow: 0 0 10px rgba(143,231,255,.45); }
.ss2-langs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ss2-page .ss2-chip.ss2-row.ss2-danger, .ss2-page .ss2-chip.ss2-row.ss2-del-go { color: #ffb3b8; border-color: rgba(255,140,150,.55); }
.ss2-page .ss2-chip.ss2-row.ss2-del-go { justify-content: center; background: rgba(200,40,60,.32); color: #fff; }
.ss2-page .ss2-chip.ss2-row.ss2-del-go[disabled] { opacity: .7; }
.ss2-del-tx { margin: 0 8px 12px; font-size: 14px; line-height: 1.45; font-weight: 500; }
.ss2-del-acts { display: grid; gap: 8px; }
.ss2-del-acts .ss2-chip.ss2-row { justify-content: center; }
html.o8 #whHud [data-orbit="settings"][data-o8-adapter="settings-sleep"] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* Oct 22 2026 (item 42): a light cue while the finger holds the Community bubble (no transform: the ring places the bubble) */
html.o8 #whHud [data-orbit="settings"].ss2-holding { filter: brightness(1.18) drop-shadow(0 0 10px rgba(143,231,255,.75)); transition: filter .35s ease; }
@media (prefers-reduced-motion: reduce) { html.o8 #whHud [data-orbit="settings"].ss2-holding { transition: none; } }
.ss2-hint { position: fixed; z-index: 8995; max-width: min(280px, calc(100vw - 20px)); padding: 9px 14px; border-radius: 18px; pointer-events: none; color: #fff; font-size: 14px; line-height: 18px; font-weight: 600; text-align: center;
    background: rgba(10,22,58,.82); border: 1px solid rgba(143,231,255,.75); box-shadow: 0 0 16px rgba(143,231,255,.4), 0 8px 24px rgba(0,10,40,.45);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: ss2-fade .3s ease both; transition: opacity .3s ease; }
.ss2-hint::after { content: ""; position: absolute; left: calc(var(--ss2-hx, 50%) - 6px); width: 12px; height: 12px; background: inherit; border: inherit; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.ss2-hint[data-side="above"]::after { bottom: -7px; }
.ss2-hint[data-side="below"]::after { top: -7px; transform: rotate(225deg); }
.ss2-hint.out { opacity: 0; }
/* slim batch 9: About & info sheet */
.ss2-about { padding: 4px 4px 8px; line-height: 1.45; overflow-wrap: anywhere; }
.ss2-about h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.ss2-about h3 { margin: 16px 0 4px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.ss2-about p, .ss2-about li { margin: 0; font-size: 14px; }
.ss2-about ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.ss2-about .ss2-ab-v { opacity: .72; font-size: 13px; font-variant-numeric: tabular-nums; }
.ss2-about .ss2-ab-crash { font-size: 12.5px; opacity: .8; overflow-wrap: anywhere; }
.ss2-about ul.ss2-ab-crash li { margin-bottom: 6px; font-size: 12.5px; }
