/* Oct 16: Misty's card (misty-hub.js). Dark liquid glass like the tab bar and the Daily Quest box, over the live world.
   Text rule for the whole card: light text on dark glass, dark text on light/mint fills. Nothing is clipped: every line wraps. */
html .r2-ov.mh-ov .r2-sh, html.wh-on .r2-ov.mh-ov:not(.full) .r2-sh { background: rgba(14, 20, 38, .80) !important; color: #fff; -webkit-backdrop-filter: blur(28px) saturate(185%); backdrop-filter: blur(28px) saturate(185%); border: .5px solid rgba(255, 255, 255, .14); }
.mh { --a: #6ee7c8; --b: #64d2ff; --mh-ink: #fff; --mh-ink-2: rgba(235, 235, 245, .80); --mh-card: rgba(255, 255, 255, .07); --mh-rim: rgba(255, 255, 255, .14);
    color: var(--mh-ink); font-family: var(--lg-font, -apple-system, system-ui, sans-serif); display: flex; flex-direction: column; gap: 12px; padding: 2px 0 6px; }
.mh * { box-sizing: border-box; }
.mh h2, .mh h3, .mh p { margin: 0; }
.mh svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Misty herself: the same artwork as on Home, cloned live */
.mh-head { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: center; padding-right: 40px; }
.mh-art { --m: 96px; position: relative; width: 104px; height: 104px; display: flex; align-items: center; justify-content: center; }
/* Nov 5 2026: the same aura geometry as Home (world-home.css AURA GEOMETRY): Misty's drawing is 0.82 x --m, the aura a band just outside her outline */
.mh-art > .wh-fx { inset: calc(50% - var(--m) * var(--wh-rs, .85) * .5687); }
.mh-art > svg { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--a) 70%, transparent)) drop-shadow(0 0 15px color-mix(in srgb, var(--b, var(--a)) 42%, transparent)); }
.mh-glow { position: absolute; inset: calc(50% - var(--m) / 2); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--a) 34%, transparent), transparent 68%); }
@media (prefers-reduced-motion: no-preference) { .mh-glow { animation: wh-breathe 4.5s ease-in-out infinite; } }
.mh-art svg.tmg-plant, .mh-art > svg { position: relative; width: calc(var(--m) * .82) !important; height: calc(var(--m) * .82) !important; stroke: none; fill: initial; stroke-width: initial; pointer-events: none; }
.mh-art .lh-acc, .mh-art .lh-pot-fx, .mh-art .cw-pill { display: none !important; }
.mh-id { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mh-id h2 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; overflow-wrap: anywhere; }
/* Oct 19 (aura-rename task): Rename sits under the name and level (the sheet's grab handle owns the top strip when the card is
   pulled up full); it opens a small field in place of the name. */
.mh-name { min-width: 0; }
.mh-name[hidden] { display: none; }
.mh-rn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -4px 0 -8px -10px; padding: 0 12px 0 10px; border: 0; border-radius: 22px; background: transparent; color: rgba(225,248,255,.78); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mh-rn[hidden] { display: none; }
.mh-rn svg { width: 16px; height: 16px; }
.mh-rn:active { background: rgba(255,255,255,.08); }
.mh-rn:focus-visible { outline: 2px solid var(--a, #8fe7ff); outline-offset: -2px; }
.mh-rnf { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mh-rnl { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mh-rnl span { font-size: 12px; opacity: .72; }
.mh-rnl input { width: 100%; min-width: 0; box-sizing: border-box; font: inherit; font-size: 18px; font-weight: 600; color: #fff; padding: 9px 12px; border-radius: 12px; border: 1px solid rgba(225,248,255,.28); background: rgba(255,255,255,.07); }
.mh-rnl input:focus { outline: none; border-color: var(--a, #8fe7ff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a, #8fe7ff) 25%, transparent); }
.mh-rnl input[aria-invalid="true"] { border-color: #ff9b8a; }
.mh-rnb { display: flex; gap: 8px; }
.mh-rnb button { min-height: 44px; padding: 0 16px; border-radius: 22px; font: inherit; font-weight: 600; cursor: pointer; }
.mh-rns { border: 0; background: var(--a, #8fe7ff); color: #0a1a22; }
.mh-rnx { border: 1px solid rgba(225,248,255,.28); background: transparent; color: inherit; }
.mh-rnh { font-size: 12px; opacity: .7; line-height: 1.35; }
.mh-rne { margin: 0; font-size: 13px; color: #ffb4a6; }
.mh-rne[hidden] { display: none; }
.mh-lv { font-size: 13.5px; font-weight: 600; color: var(--a); }
.mh-st { display: flex; flex-direction: column; gap: 1px; font-size: 13px; line-height: 1.3; color: var(--mh-ink-2); }
.mh-st b { color: var(--mh-ink); font-size: 14.5px; font-weight: 600; }

/* her words, a real speech bubble with the tail on her, wrapping instead of being cut off */
.mh-say { position: relative; padding: 11px 14px; border-radius: 18px; background: rgba(255, 255, 255, .10); border: .5px solid var(--mh-rim); font-size: 15px; line-height: 1.38; color: var(--mh-ink); white-space: normal; overflow-wrap: anywhere; box-shadow: var(--lg-edge, none); }
.mh-say::before { content: ""; position: absolute; left: 44px; top: -7px; width: 12px; height: 12px; background: inherit; border-left: .5px solid var(--mh-rim); border-top: .5px solid var(--mh-rim); transform: rotate(45deg); }
.mh-say[hidden] { display: none; }

.mh-card { padding: 14px 16px; border-radius: 20px; background: var(--mh-card); border: .5px solid var(--mh-rim); box-shadow: var(--lg-edge, none); }
.mh-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mh-row b { font-size: 15.5px; font-weight: 600; }
.mh-row .num { font-size: 15px; font-weight: 700; color: var(--a); font-variant-numeric: tabular-nums; }
.mh-bar { display: block; height: 8px; margin: 10px 0 6px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.mh-bar > i { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: linear-gradient(90deg, var(--a), var(--b)); }
.mh-xp small { display: block; font-size: 13px; color: var(--mh-ink-2); }

.mh-mood h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 10px; }
.mh-moods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mh-moods button { min-height: 44px; padding: 6px 4px; border-radius: 14px; border: .5px solid var(--mh-rim); background: rgba(255, 255, 255, .08); color: var(--mh-ink); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.15; cursor: pointer; overflow-wrap: anywhere; }
.mh-moods button[aria-pressed="true"] { background: var(--a); border-color: transparent; color: #06201a; }

/* the one filled button: mint fill, dark ink (like See my fast and Scan) */
.mh-pri { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 10px 16px; border: 0; border-radius: 16px; background: linear-gradient(135deg, var(--a), var(--b)); color: #06201a; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.mh-pri[aria-pressed="true"] { background: var(--mh-card); border: .5px solid var(--mh-rim); color: var(--mh-ink); }

/* Oct 22: two equal doors (Forms, Glow); the Food journal door was removed */
.mh-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mh-doors button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 88px; padding: 14px; border-radius: 18px; border: .5px solid var(--mh-rim); background: var(--mh-card); box-shadow: var(--lg-edge, none); color: var(--mh-ink); font: inherit; text-align: left; cursor: pointer; }
.mh-doors svg { color: var(--a); margin-bottom: 4px; }
.mh-doors b { font-size: 15.5px; font-weight: 600; line-height: 1.2; }
.mh-doors small { font-size: 12.5px; line-height: 1.25; color: var(--mh-ink-2); overflow-wrap: anywhere; }
.mh button:focus-visible { outline: 3px solid var(--b); outline-offset: 2px; }
.mh button:active { transform: scale(.98); }

/* Misty's nudge on Home: her normal speech bubble, tappable (opens Today) */
.wh-hint.mh-nudge { pointer-events: none; cursor: pointer; border: 1.5px solid var(--wh-glass-rim, rgba(255, 255, 255, .3)); font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--wh-glass-ink, #fff); z-index: 6; }
.wh-hint.mh-nudge.on { pointer-events: auto; }
html.wh-today-open .wh-hint.mh-nudge { opacity: 0; pointer-events: none; }
/* docked at the top or bottom because the spot above Misty would cover a control (BH-002): no tail pointing at her */
.wh-hint.mh-nudge.mh-dock::after { display: none; }
/* the row in Today it points at */
.mh-point { box-shadow: 0 0 0 2px var(--wh-aura-a, #6ee7c8), 0 0 18px color-mix(in srgb, var(--wh-aura-a, #6ee7c8) 55%, transparent) !important; border-radius: 14px; transition: box-shadow .3s ease; }

/* ---------- readable text everywhere (same request, item 3) ----------
   Rule: dark ink on light or mint fills, light ink on dark glass. */
/* "Say goodnight" and every other next-step button in Today: the label span inherited the grey status text */
html.spirit-app #spHome .sp-next, html.spirit-app #spHome .sp-next span { color: #06201a; }
/* small grey second lines (Today pill on Home, the Today shortcuts, the Cook and Profile tiles) were a dim grey at 62% and then faded again:
   one solid secondary ink instead, no extra fade. The tabs are always dark glass (html.lg), so light ink there;
   only Home's own glass (Today pill, Today shortcuts) turns light in day theme, and gets dark navy ink then. */
html .g2h-tile small, html.lg #app #main .tab .g2h-tile small,
html .wh-todaybtn small, html.lg #app #main .wh-todaybtn small, html.lg.wh-home #app #main .wh-hud .wh-todaybtn small, html.lg #app #main .tab .wh-todaybtn small, html.wh-home .wh-tiles small, html.lg #app #main .tab .wh-tiles small { opacity: 1 !important; color: rgba(235, 235, 245, .86) !important; }
html[data-theme="light"] .wh-todaybtn small, html[data-theme="light"].lg #app #main .wh-todaybtn small, html[data-theme="light"].lg.wh-home #app #main .wh-hud .wh-todaybtn small, html[data-theme="light"].lg #app #main .tab .wh-todaybtn small,
html[data-theme="light"].wh-home .wh-tiles .g2h-tile small, html[data-theme="light"].lg.wh-home #app #main .wh-tiles .g2h-tile small { color: rgba(11, 29, 63, .80) !important; }
/* Community chat (dark glass): the send arrow while the box is empty was grey on grey (still disabled, now readable); small meta line and chips at full secondary ink */
html.lg #cmSend:disabled, html #cmPaneChat #cmSend:disabled { opacity: 1 !important; color: rgba(235, 235, 245, .80) !important; background: rgba(118, 118, 128, .36) !important; }
html #cmPaneChat .cs-compose-meta, html #cmPaneChat[data-spirit-chat] .cg-chip:not(.on), html #cmPaneChat :is(.cm-chip, .cm-mini) { color: rgba(235, 235, 245, .82) !important; opacity: 1; }
.mh-mood-sub { font-size: 13px; line-height: 1.35; color: var(--mh-ink-2); margin: -4px 0 10px; }
.mh-adv li[data-been="1"] span { color: var(--mh-ink); }

/* Oct 22 (E-man: "it should say what's missing to get Misty to true 100%, Super Saiyan level"): World glow, her bar to peak
   (Supernova) and the "What's missing" checklist, right under her name (misty-peak.js). Shared tokens only: the brand cyan
   (--one-acc), the sheet's card/rim/ink; the sheet is dark glass in Day and Night, so one set of colours fits both. */
.mp-card { --mp-acc: var(--one-acc, var(--b)); display: grid; gap: 6px; padding: 12px 14px; }
.mp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mp-head h3 { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; letter-spacing: -.01em; min-width: 0; overflow-wrap: anywhere; }
.mp-head h3 svg { width: 18px; height: 18px; fill: var(--mp-acc); stroke: none; }
.mp-pct { flex: none; font-size: 15px; font-weight: 800; color: var(--mp-acc); }
.mp-bar { position: relative; display: block; height: 10px; border-radius: 99px; background: var(--one-cell, rgba(255, 255, 255, .08)); border: .5px solid var(--mh-rim); overflow: hidden; }
.mp-bar > i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--mp-acc) 55%, transparent), var(--mp-acc)); box-shadow: 0 0 10px color-mix(in srgb, var(--mp-acc) 45%, transparent); transition: width .5s ease; }
.mp-sub { font-size: 13px; line-height: 1.35; color: var(--mh-ink-2); }
.mp-h { margin: 4px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--mh-ink-2); }
.mp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mp-list button, .mp-list .mp-row { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 12px; color: var(--mh-ink); font: inherit; }
.mp-list button { cursor: pointer; background: var(--one-cell, rgba(255, 255, 255, .07)); border: .5px solid var(--one-cell-line, var(--mh-rim)); -webkit-tap-highlight-color: transparent; }
.mp-list button:active { transform: scale(.985); }
.mp-list button:focus-visible { outline: 2px solid var(--mp-acc); outline-offset: 1px; }
.mp-list .mp-row { grid-template-columns: 22px minmax(0, 1fr); padding: 3px 8px; }
.mp-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
.mp-list svg { width: 16px; height: 16px; stroke-width: 2.4; }
.mp-list li[data-done="1"] .mp-ic { color: var(--mp-acc); }
.mp-list li[data-done="1"] .mp-tx b { font-weight: 600; color: var(--mh-ink-2); }
.mp-list li[data-done="0"] .mp-ic { color: var(--mh-ink-2); }
.mp-tx { display: grid; gap: 1px; min-width: 0; }
.mp-tx b { font-size: 13.5px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.mp-tx small { font-size: 12px; line-height: 1.3; color: var(--mh-ink-2); overflow-wrap: anywhere; }
.mp-go { color: var(--mh-ink-2); }
/* the peak: a small glow round the card and its bar */
.mp-card[data-peak="1"] { border-color: color-mix(in srgb, var(--mp-acc) 60%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--mp-acc) 30%, transparent), 0 0 22px color-mix(in srgb, var(--mp-acc) 30%, transparent); }
.mp-card[data-peak="1"] .mp-bar > i { animation: mp-shine 2.4s ease-in-out infinite; }
@keyframes mp-shine { 50% { filter: brightness(1.35); box-shadow: 0 0 16px var(--mp-acc); } }
.ms-held { color: var(--mh-ink-2); }
@media (prefers-reduced-motion: reduce) { .mp-card[data-peak="1"] .mp-bar > i { animation: none; } }

/* Oct 23 (Eman: "where Misty's ranked, worldwide ... a very tiny preview, to others"): the rank peek under her picture and name (misty-hub.js
   LowiMistyRank). A small living glass pill: small label and short value at the same size, three tiny companions (above, Misty,
   below), a gentle pulse. The whole pill is the tap target (44px tall, thumb-sized). */
.mh-rk { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 44px; margin: 2px 0 0 -2px; padding: 0 10px 0 12px; border-radius: 22px; border: .5px solid rgba(143, 231, 255, .34); background: radial-gradient(120% 140% at 22% 18%, rgba(143, 231, 255, .20), rgba(10, 132, 255, .10) 55%, rgba(255, 255, 255, .04)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 14px rgba(90, 169, 255, .16); color: var(--mh-ink); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; box-sizing: border-box; }
.mh-head > .mh-rk { grid-column: 1 / -1; justify-self: start; margin: -4px 0 0; }
.mh-rk:active { transform: scale(.97); }
.mh-rk:focus-visible { outline: 2px solid #8fe7ff; outline-offset: 2px; }
.mh-rk-t { display: inline-flex; align-items: baseline; gap: 6px; flex: none; font-size: 13px; line-height: 1.2; }
.mh-rk-l { color: var(--mh-ink-2); font-weight: 500; }
.mh-rk-v { color: #8fe7ff; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mh-rk-fs { display: inline-flex; align-items: center; flex: none; }
.mh-rk-f { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .30), rgba(90, 169, 255, .14) 60%, rgba(10, 30, 60, .5)); border: .5px solid rgba(255, 255, 255, .26); opacity: .78; }
.mh-rk-f + .mh-rk-f { margin-left: -5px; }
.mh-rk-f svg { width: 100%; height: 100%; display: block; }
.mh-rk-f.hid i { width: 9px; height: 9px; border-radius: 50%; background: rgba(225, 248, 255, .45); }
.mh-rk-f.me { z-index: 1; width: 26px; height: 26px; opacity: 1; border: 1.5px solid #8fe7ff; box-shadow: 0 0 8px rgba(143, 231, 255, .55); }
.mh-rk-go { color: var(--mh-ink-2); font-size: 16px; line-height: 1; margin-left: -2px; }
@media (prefers-reduced-motion: no-preference) { .mh-rk { animation: mh-rk-pulse 3.6s ease-in-out infinite; } }
@keyframes mh-rk-pulse { 50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 20px rgba(90, 169, 255, .30); } }
/* the Ranking's Your place card glows for a moment when you come from the peek */
.rk-me.mh-rk-hi { box-shadow: 0 0 0 2px #8fe7ff, 0 0 22px rgba(143, 231, 255, .55) !important; transition: box-shadow .3s; }

/* Oct 25 2026 (Eman: "Nuke it" about the little Home bubble and the Today sheet behind it): what only lived in Today comes back
   as small round living bubbles: three on Misty's card (Journeys/Surprise, Sun, Weekly goal) and the "My day" sheet
   (Community hold -> You). Same glass bubble as Home: soft rim, inner light, the aura colour; the label sits under the bubble and
   wraps, never clipped. Only a bubble that needs you (surprise waiting, full sun, goal won) breathes, and only when motion is allowed. */
.mh-today { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 8px; justify-items: center; }
.mh-orb { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 4px 2px; border-radius: 18px; cursor: pointer; color: var(--mh-ink); text-align: center; -webkit-tap-highlight-color: transparent; }
.mh-orb:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }
.mh-ob { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .34), rgba(255, 255, 255, .07) 46%, color-mix(in srgb, var(--a) 16%, transparent) 100%);
    border: .5px solid var(--mh-rim); box-shadow: inset 0 0 14px color-mix(in srgb, var(--a) 26%, transparent), 0 0 16px color-mix(in srgb, var(--a) 14%, transparent); color: var(--a);
    transition: transform .18s ease; }
.mh-ob svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mh-ob .num { font-size: 15px; font-weight: 700; color: var(--mh-ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.mh-orb:active .mh-ob { transform: scale(.94); }
.mh-orb b { font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--mh-ink); overflow-wrap: break-word; hyphens: manual; max-width: 100%; }
.mh-orb.on .mh-ob { border-color: color-mix(in srgb, var(--a) 70%, white); box-shadow: inset 0 0 16px color-mix(in srgb, var(--a) 40%, transparent), 0 0 22px color-mix(in srgb, var(--a) 40%, transparent); }
@media (prefers-reduced-motion: no-preference) { .mh-orb.on .mh-ob { animation: mh-breathe 2.8s ease-in-out infinite; } }
@keyframes mh-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.mh-day-t { margin: 2px 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--mh-ink); }
.mh-day-grid { gap: 14px 8px; }
.mh-day-none { margin: 0; font-size: 15px; color: var(--mh-ink-2); }
.mh-day .mh-ob .g2h-ic, .mh-day .mh-ob .g2h-ic svg { display: grid; place-items: center; }

/* Oct 28 2026 slim structure batch 1: one companion panel. Growth and the aura shop open inside the card; the card already shows
   the companion, its name and level, so the section drops its own picture, name and forms button. */
.mh-doors.mh-doors3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mh-doors.mh-doors3 button { min-height: 92px; padding: 12px 6px 10px; text-align: center; align-items: center; }
.mh-doors.mh-doors3 button b { font-size: 13.5px; overflow-wrap: anywhere; }
.mh-doors.mh-doors3 button small { font-size: 11px; line-height: 1.25; }
.mh-doors button[aria-expanded="true"] { border-color: color-mix(in srgb, var(--a) 70%, transparent); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--a) 55%, transparent), var(--lg-edge, 0 0 0 transparent); }
.mh-sec { margin: 12px 0 4px; padding: 4px 14px 14px; border-radius: 18px; border: .5px solid var(--mh-rim); background: var(--mh-card); color: var(--mh-ink); scroll-margin-top: 12px; }
/* Nov 5 2026: the shop preview (Misty wearing the aura you tapped, .wh-pv-stage) stays visible in the card; before, this rule hid
   it too, so a locked aura could only be judged by the small coloured ball, which is not what she looks like wearing it */
.mh-sec .wh-ms-stage:not(.wh-pv-stage), .mh-sec .wh-ms-id, .mh-sec .wh-ms-forms { display: none !important; }
.mh-sec .wh-ms-tabs { margin-top: 10px; }
.mh-sec .wh-ms-panel { min-height: 0; }
/* Oct 28 2026 (slim structure rule: panels have a solid frosted backdrop, nothing bleeds through): beta.css's solid-sheet rule
   switched the blur off (!important) while this card kept its 80 % tint, so Home showed through the card. Near-solid tint + blur. */
html .r2-ov.mh-ov .r2-sh, html.wh-on .r2-ov.mh-ov:not(.full) .r2-sh { background: rgba(12, 18, 34, .96) !important; -webkit-backdrop-filter: blur(28px) saturate(160%) !important; backdrop-filter: blur(28px) saturate(160%) !important; }

/* Nov 5 2026 My day without the bloat (misty-hub.js dayHtml): one Today card, then short grouped iOS-style lists. Neutral greys only
   (no navy), so Dark stays true black, Night keeps its glass and Day reads the same. Rows are 56 pt tall, well over the 44 pt minimum. */
.mh-day { gap: 10px; }
.mh-day-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2px 2px 0; }
.mh-day-h .mh-day-t { margin: 0; }
.mh-day-d { font-size: 13px; color: var(--mh-ink-2); text-align: right; }
.mh-dcard { padding: 14px 16px; border-radius: 18px; border: .5px solid var(--mh-rim); background: var(--mh-card); }
.mh-dcard-k { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mh-ink-2); }
.mh-dcard-v { margin: 4px 0 0; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--mh-ink); }
.mh-dcard-acts { display: flex; gap: 8px; margin-top: 12px; }
.mh-dbtn { flex: 1 1 0; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 0; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), opacity .15s; }
.mh-dbtn-1 { background: var(--mh-ink); color: #000; }
.mh-dbtn-2 { background: rgba(255, 255, 255, .12); color: var(--mh-ink); }
.mh-dbtn:active { transform: scale(.97); opacity: .85; transition-duration: .06s; }
.mh-dgrp { margin: 8px 16px -4px; font-size: 13px; font-weight: 600; color: var(--mh-ink-2); }
.mh-list { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: .5px solid var(--mh-rim); background: var(--mh-card); }
.mh-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; border: 0; background: none; color: var(--mh-ink); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mh-row + .mh-row { box-shadow: inset 0 .5px 0 var(--mh-rim); }
.mh-row:active { background: rgba(255, 255, 255, .08); }
.mh-row:focus-visible, .mh-dbtn:focus-visible { outline: 2px solid var(--mh-ink); outline-offset: -2px; }
.mh-row-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .10); color: var(--mh-ink); }
.mh-row-ic svg, .mh-row-ic .g2h-ic svg { width: 18px; height: 18px; }
.mh-row-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mh-row-tx b { font-size: 16px; font-weight: 500; line-height: 1.25; }
.mh-row-tx small { font-size: 13px; line-height: 1.3; color: var(--mh-ink-2); overflow-wrap: anywhere; }
.mh-row-chev { flex: none; width: 8px; height: 14px; color: var(--mh-ink-2); opacity: .7; }
@media (prefers-reduced-motion: reduce) { .mh-dbtn { transition: none; } .mh-dbtn:active { transform: none; } }
html.lowi-saver .mh-dbtn { transition: none; }
/* Nov 5 2026 (Misty sheet plan, phase 1): "‹ Misty" at the top of Growth and the Aura shop folds the section back into the card */
.mh-sback { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: 6px 0 0 -6px; padding: 0 10px; border: 0; border-radius: 22px; background: transparent; color: var(--mh-ink); font: 600 16px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mh-sback span { font-size: 22px; line-height: 1; margin-top: -2px; }
.mh-sback:active { background: rgba(255, 255, 255, .08); }
.mh-sback:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* Nov 5 2026 (Misty sheet plan + owner: "Settings and Misty's sheet should be one design"): the card sits in the same one-sheet
   shell as Settings (overlay .one-sheet, root .cme.cme-in), rows are Settings rows (.cme-list/.cme-row). Here only what Settings
   has no piece for: the segmented Today / History / <name> control, meal thumbnails, a quiet "No entries" line. */
.mh-seg { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 4px 0 14px; padding: 2px; border-radius: 12px;
  background: var(--one-cell, rgba(255,255,255,.06)); border: 1px solid var(--one-cell-line, rgba(170,214,255,.18)); }
.mh-tab { min-height: 36px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; color: inherit; opacity: .72;
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mh-tab.on { opacity: 1; background: rgba(255,255,255,.14); box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.mh-tab:focus-visible { outline: 2px solid var(--one-acc, #8fe7ff); outline-offset: 1px; }
.mh-body { display: block; }
.mh-body > .cme-sec, .mh-body > section { margin: 0 0 14px; }
.ms-sec .mh-card { margin-top: 8px; }
.ms-world .mh-wl { margin-top: 8px; }
.ms-world .mh-pri { margin-top: 8px; }
.ms-row.ms-empty .cme-tx small { opacity: .5; }
.ms-row .ms-v { font-variant-numeric: tabular-nums; white-space: nowrap; }
div.cme-row.ms-row { cursor: default; }
.ms-thumbs { display: flex; gap: 4px; margin-top: 6px; }
.ms-thumbs img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex: none; background: rgba(255,255,255,.06); }
.mh.cme-in .mh-head { flex-wrap: wrap; }
html[data-black="1"] .mh-seg { background: #111; border-color: rgba(255,255,255,.12); }
html[data-black="1"] .mh-tab.on { background: #2a2a2a; }
html[data-theme="light"] .mh-tab.on { background: rgba(255,255,255,.22); }
/* History tab (phase 3): period choice, ‹ range ›, a quiet note */
.mh-seg.mh-seg2 { position: static; grid-template-columns: repeat(4, 1fr); margin: 0 0 8px; }
.mh-hnav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.mh-hrange { flex: 1 1 auto; text-align: center; font-size: 15px; font-weight: 600; }
.mh-hstep { width: 44px; height: 44px; flex: none; border: 0; border-radius: 22px; background: transparent; color: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
.mh-hstep:disabled { opacity: .25; cursor: default; }
.mh-hstep:not(:disabled):active { background: rgba(255,255,255,.1); }
.mh-hstep:focus-visible { outline: 2px solid var(--one-acc, #8fe7ff); outline-offset: 1px; }
.mh-hnote { margin: 4px 4px 14px; font-size: 12.5px; line-height: 17px; opacity: .6; }
