/* LOWiSPIKE cycle world (Oct 23 2026), cycle-world.js. Lives inside the shared one-sheet glass (one-sheet.css tokens: --one-*),
   so it looks like every other sheet. The phase is a little cell world: rest (rose), grow (mint), glow (gold), gather (violet).
   Soft membranes, a nucleus, a shine; calm motion only, none at all with reduced motion. */
:root { --cw-rest: #f0839b; --cw-grow: #55d6ad; --cw-glow: #f2c75e; --cw-gather: #ad92f2; --cw-none: #8fd8ff; }
.cw { color: #eef6ff; padding: 2px 2px 6px; }
.cw-head { display: flex; align-items: center; padding: 0 2px 4px; }
.cw-head h2 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: .01em; color: #fff; }
.cw-hero { width: min(80vw, 320px); margin: 0 auto 4px; }
.cw-svg { display: block; width: 100%; height: auto; overflow: visible; color: var(--c); }
.cw-mem { fill: url(#cwG); stroke: color-mix(in srgb, currentColor 75%, #fff); stroke-width: 1.8; filter: drop-shadow(0 0 10px color-mix(in srgb, currentColor 55%, transparent)); }
.cw-nuc { fill: color-mix(in srgb, currentColor 70%, #0b1d4a); opacity: .85; }
.cw-org { fill: #fff; opacity: .7; }
.cw-shine { fill: #fff; opacity: .5; }
.cw-cell { transform-box: fill-box; transform-origin: center; }
.cw-main { animation: cwBreathe 5.5s ease-in-out infinite; }
.cw-rest .cw-main { animation-duration: 8s; opacity: .9; }
.cw-rest .cw-dust circle { fill: currentColor; opacity: .45; animation: cwSettle 7s ease-in-out infinite; animation-delay: var(--d); }
.cw-bud { animation: cwBud 4.5s ease-in-out infinite; animation-delay: var(--d); }
.cw-halo { fill: currentColor; opacity: .14; transform-box: fill-box; transform-origin: center; animation: cwHalo 4s ease-in-out infinite; }
.cw-spark { fill: #fff; opacity: .2; animation: cwTwinkle 2.8s ease-in-out infinite; animation-delay: var(--d); }
.cw-near { opacity: .82; animation: cwDrift 7s ease-in-out infinite; animation-delay: var(--d); }
.cw-none .cw-mem, .cw-wait .cw-mem { fill: rgba(143, 216, 255, .08); stroke-dasharray: 4 6; filter: none; }
.cw-none .cw-nuc { opacity: .35; }
.cw-track { fill: none; stroke: rgba(170, 214, 255, .3); stroke-width: 1.6; stroke-dasharray: 2 5; stroke-linecap: round; }
.cw-mini .cw-md { fill: rgba(11, 29, 74, .85); stroke: color-mix(in srgb, var(--c) 70%, transparent); stroke-width: 1.6; }
.cw-mini .cw-mh { fill: var(--c); opacity: .22; }
.cw-mini.on .cw-md { fill: var(--c); stroke: #fff; stroke-width: 1.4; }
.cw-mini text { font-size: 12px; font-weight: 700; text-anchor: middle; fill: rgba(225, 240, 255, .72); }
.cw-mini.on text { fill: #fff; }
.cw-now { margin: 6px 0 10px; padding: 14px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--c, var(--cw-none)) 50%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c, var(--cw-none)) 16%, transparent), rgba(255, 255, 255, .04)); }
.cw-now small { display: block; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--c, var(--cw-none)); }
.cw-now h3 { margin: 2px 0 6px; font-size: 19px; font-weight: 750; color: #fff; }
.cw-now h3 span { font-size: 15px; font-weight: 600; color: rgba(236, 246, 255, .82); }
.cw-now p { margin: 0; font-size: 15px; line-height: 1.45; color: rgba(236, 246, 255, .92); }
.cw-now .cw-next { margin-top: 8px; font-weight: 650; color: #8fe7ff; }
.cw-acts { display: flex; flex-direction: column; gap: 8px; }
.cw-btn { min-height: 48px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--one-cell-line, rgba(170, 214, 255, .26)); background: var(--one-cell, rgba(255, 255, 255, .08));
  color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cw-btn.pri { border-color: rgba(143, 231, 255, .7); background: linear-gradient(180deg, rgba(143, 231, 255, .34), rgba(80, 160, 255, .22)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.cw-btn:active { transform: scale(.98); }
.cw-btn:focus-visible, .cw-off:focus-visible, .cw-date input:focus-visible { outline: 2px solid #8fe7ff; outline-offset: 2px; }
.cw-date { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 18px; border: 1px solid var(--one-cell-line, rgba(170, 214, 255, .26)); background: rgba(255, 255, 255, .05); }
.cw-date label { grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: rgba(225, 240, 255, .78); }
.cw-date input { min-width: 0; min-height: 46px; padding: 0 12px; border-radius: 14px; border: 1px solid rgba(170, 214, 255, .4); background: rgba(5, 13, 41, .55); color: #fff; font: inherit; font-size: 16px; color-scheme: dark; }
.cw-msg { margin: 10px 2px 0; font-size: 14px; font-weight: 650; color: #a8ffd8; text-align: center; }
.cw-hedge { margin: 14px 4px 4px; font-size: 13px; line-height: 1.4; color: rgba(225, 240, 255, .66); text-align: center; }
.cw-off { display: block; margin: 2px auto 0; min-height: 44px; padding: 0 12px; border: 0; background: none; color: rgba(225, 240, 255, .7); font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@keyframes cwBreathe { 50% { transform: scale(1.04); } }
@keyframes cwBud { 0%, 100% { transform: scale(.82); } 50% { transform: scale(1.08); } }
@keyframes cwHalo { 50% { transform: scale(1.1); opacity: .22; } }
@keyframes cwTwinkle { 50% { opacity: .95; } }
@keyframes cwDrift { 50% { transform: translate(2px, -3px); } }
@keyframes cwSettle { 50% { transform: translateY(3px); opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .cw-svg *, .cw-btn { animation: none !important; transition: none !important; } }
/* iPad and wide screens: a bit more room for the world, same sheet */
@media (min-width: 700px) { .cw-hero { width: 340px; } }
/* Oct 24 2026, the cycle on Home (cycle-world.js paintRing): a thin ring on Misty's Home bubble in the estimated phase colour,
   only with cycle tracking on. Discreet: 2px, soft glow, no pulse; never catches a touch; gone while the map or the full world
   is up. Screen readers get the phase as the bubble's description (.cyh-sr). */
.cyh-ring { position: absolute; inset: 3px; border-radius: 50%; pointer-events: none; z-index: 3; box-sizing: border-box;
    border: 2px solid color-mix(in srgb, var(--cyh, #8fd8ff) 78%, transparent);
    box-shadow: 0 0 9px color-mix(in srgb, var(--cyh, #8fd8ff) 38%, transparent), inset 0 0 7px color-mix(in srgb, var(--cyh, #8fd8ff) 22%, transparent);
    opacity: .9; transition: opacity .6s ease; animation: cyhIn .8s ease both; }
.cyh-ring[data-ph="rest"] { --cyh: var(--cw-rest); }
.cyh-ring[data-ph="grow"] { --cyh: var(--cw-grow); }
.cyh-ring[data-ph="glow"] { --cyh: var(--cw-glow); }
.cyh-ring[data-ph="gather"] { --cyh: var(--cw-gather); }
html.wh-home.wh-mapview #spBubble .cyh-ring, html.wh-snap #spBubble .cyh-ring { opacity: 0; }
.cyh-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
@keyframes cyhIn { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cyh-ring { transition: none; animation: none; } }
/* Oct 24 2026: the "Your cycle" section in Misty's card (misty-hub.js), tracking on only: one quiet row, the phase colour as a dot */
.cyh-hub { padding: 0; overflow: hidden; }
.cyh-hub-b { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cyh-dot { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; background: var(--cyh, rgba(255,255,255,.35)); box-shadow: 0 0 8px color-mix(in srgb, var(--cyh, #fff) 45%, transparent); }
.cyh-hub-b[data-ph="rest"] { --cyh: var(--cw-rest); }
.cyh-hub-b[data-ph="grow"] { --cyh: var(--cw-grow); }
.cyh-hub-b[data-ph="glow"] { --cyh: var(--cw-glow); }
.cyh-hub-b[data-ph="gather"] { --cyh: var(--cw-gather); }
.cyh-hub-t { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cyh-hub-t b { font-size: 15px; font-weight: 600; line-height: 1.2; }
.cyh-hub-t small { font-size: 12.5px; line-height: 1.25; color: var(--mh-ink-2, rgba(235,245,255,.78)); overflow-wrap: anywhere; }
.cyh-hub-go { flex: 0 0 auto; font-size: 22px; line-height: 1; opacity: .7; }

/* ---------- Oct 24 2026: care in My cycle (check-in, gentle day, calm world, cycle settings). cycle-care-core.js has the rules ---------- */
.cw-now .cw-wide { margin-top: 6px; font-size: 13.5px; color: rgba(236, 246, 255, .74); }
.cw-care { margin: 14px 0 4px; padding: 14px; border-radius: 20px; border: 1px solid var(--one-cell-line, rgba(170, 214, 255, .26)); background: rgba(255, 255, 255, .05); }
.cw-care h4 { margin: 0; font-size: 16px; font-weight: 750; color: #fff; }
.cw-sub { margin: 4px 2px 8px; font-size: 13px; line-height: 1.4; color: rgba(225, 240, 255, .7); }
.cw-lab { margin: 12px 2px 6px; font-size: 13px; font-weight: 700; color: rgba(225, 240, 255, .82); }
.cw-chips, .cw-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.cw-chip { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--one-cell-line, rgba(170, 214, 255, .26)); background: rgba(255, 255, 255, .06); color: #eef6ff; font: inherit; font-size: 14.5px; font-weight: 650; }
.cw-chip.on { border-color: rgba(143, 231, 255, .8); background: rgba(143, 231, 255, .22); color: #fff; }
.cw-seg .cw-chip { flex: 1 1 0; }
.cw-chip:focus-visible, .cw-step:focus-visible, .cw-del:focus-visible, .cw-set summary:focus-visible, .cw-tog input:focus-visible { outline: 2px solid #8fe7ff; outline-offset: 2px; }
.cw-doc { margin: 10px 2px 0; font-size: 13.5px; line-height: 1.4; color: #ffd9c2; }
.cw-gentle { margin-top: 12px; padding: 12px; border-radius: 18px; border: 1px solid rgba(255, 200, 150, .4); background: rgba(255, 190, 130, .08); }
.cw-gentle > b { display: block; font-size: 15.5px; color: #fff; }
.cw-gentle .cw-btn { width: 100%; margin-top: 6px; }
.cw-btn.done { border-color: rgba(168, 255, 216, .6); background: rgba(168, 255, 216, .14); color: #d9ffef; }
.cw-set { margin: 12px 0 6px; border-radius: 18px; border: 1px solid var(--one-cell-line, rgba(170, 214, 255, .26)); background: rgba(255, 255, 255, .04); }
.cw-set summary { min-height: 48px; display: flex; align-items: center; padding: 0 14px; font-size: 15px; font-weight: 700; color: #eef6ff; cursor: pointer; list-style: none; }
.cw-set summary::-webkit-details-marker { display: none; }
.cw-set summary::after { content: '\203a'; margin-left: auto; font-size: 20px; transform: rotate(90deg); color: rgba(225, 240, 255, .7); }
.cw-set[open] summary::after { transform: rotate(-90deg); }
.cw-set-in { padding: 0 14px 12px; }
.cw-len { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cw-len output { min-width: 128px; text-align: center; font-size: 15px; font-weight: 700; color: #fff; }
.cw-step { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--one-cell-line, rgba(170, 214, 255, .3)); background: rgba(255, 255, 255, .07); color: #fff; font: inherit; font-size: 20px; font-weight: 700; }
.cw-tog { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 12px; font-size: 15px; font-weight: 650; color: #eef6ff; }
.cw-tog input { width: 22px; height: 22px; accent-color: #8fe7ff; }
.cw-del { display: block; width: 100%; min-height: 46px; margin-top: 8px; border-radius: 999px; border: 1px solid rgba(255, 150, 150, .45); background: rgba(255, 120, 120, .08); color: #ffc9c9; font: inherit; font-size: 14.5px; font-weight: 700; }
.cw-del.armed { background: rgba(255, 110, 110, .28); color: #fff; border-color: rgba(255, 140, 140, .9); }
/* the ring is a guess: dimmer when cycles vary, she marked them irregular, or the period is late */
.cyh-ring[data-wide] { opacity: .45; }
/* calm world: a soft warm light over the world, only while she switched it on (cycle-world.js applyCalm) */
.bw3-stage::before, .bw3-view::before, #bw3Back::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.4s ease;
  background: radial-gradient(120% 90% at 50% 30%, rgba(255, 196, 140, .16), rgba(255, 150, 110, .1) 60%, rgba(40, 20, 30, .14)); }
html.cc-calm .bw3-stage::before, html.cc-calm .bw3-view::before, html.cc-calm #bw3Back::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .bw3-stage::before, .bw3-view::before, #bw3Back::before { transition: none; } }
