/* LOWiSPIKE evening catch-up / Day recap, iOS 17 look (Oct 27 2026). Emmanuel, voice 27 Oct: "update this section ... the recap.
   Cuz the UI looks bad. Even the end. It's just everything is so big and bulky. And not iOS 17 aesthetic. And some buttons we
   can't even see nor click on it." So: the app's own deep blue glass over the living world (no separate purple screen),
   system type sizes (title 22-28, body 17, secondary 13-15), grouped inset rows, a 44pt compact top bar, real 44pt+ touch
   targets with nothing oversized. Layout is one column in normal flow (top bar / stage / companion row / buttons), so the
   companion and what it says can never sit on a button. Still calm and readable for the 80-year-old beta user (17px body,
   high contrast). Reduce Motion: fades only. */
.ec-ov { position: fixed; inset: 0; z-index: 2147483250; display: flex; flex-direction: column; box-sizing: border-box;
    padding: calc(env(safe-area-inset-top, 0px) + 6px) 16px calc(env(safe-area-inset-bottom, 0px) + 12px);
    color: #fff; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
    font-size: 17px; line-height: 1.3; letter-spacing: -.01em; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased;
    background: radial-gradient(120% 70% at 50% 0%, rgba(22, 52, 104, .55), transparent 70%), linear-gradient(180deg, rgba(6, 14, 34, .66), rgba(4, 9, 24, .84));
    -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
    opacity: 0; transition: opacity .28s ease; overscroll-behavior: contain; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ec-ov.on { opacity: 1; }
html.ec-open, html.ec-open body { overflow: hidden; }
.ec-ov button { font-family: inherit; -webkit-tap-highlight-color: transparent; }

/* top bar: points pill (leading), progress (centre), close (trailing); 44pt tall */
.ec-top { position: relative; flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; min-height: 44px; }
.ec-pts { justify-self: start; margin: 0; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 11px; border-radius: 15px; box-sizing: border-box;
    font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: #fff; white-space: nowrap;
    background: rgba(255, 255, 255, .1); border: .5px solid rgba(255, 255, 255, .16); }
.ec-star { color: #ffd60a; font-size: 13px; }
.ec-prog { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.ec-dots { display: flex; gap: 4px; }
.ec-dots i { width: 18px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .2); transition: background .3s, width .3s; }
.ec-dots i.ec-d-done { background: rgba(255, 255, 255, .7); }
.ec-dots i.ec-d-now { background: #0a84ff; width: 26px; }
.ec-stepn { font-size: 12px; font-weight: 500; color: rgba(235, 235, 245, .6); font-variant-numeric: tabular-nums; min-height: 15px; }
/* close: a 30pt glass circle inside a 44pt hit area */
.ec-x { justify-self: end; position: relative; width: 44px; height: 44px; margin-right: -7px; padding: 0; border: 0; background: transparent; color: rgba(235, 235, 245, .8);
    display: grid; place-items: center; cursor: pointer; }
.ec-x::before { content: ""; position: absolute; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .12); border: .5px solid rgba(255, 255, 255, .14); }
.ec-x svg { position: relative; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.ec-x:active::before { background: rgba(255, 255, 255, .22); }

/* the stage: centred when it fits, scrolls from the top when it does not (no row cut off under the bar) */
.ec-stage { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 14px;
    min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px 2px 12px; text-align: center; }
.ec-stage > :first-child { margin-top: auto; }
.ec-stage > :last-child { margin-bottom: auto; }
.ec-stage.ec-in { animation: ecIn .3s ease both; }
@keyframes ecIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ec-hint { margin: 0; font-size: 15px; color: rgba(235, 235, 245, .6); }

/* the step bubble: a refined glass orb with a soft colour core, its name under it, all one button */
.ec-choose { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 16px; border: 0; background: transparent; color: #fff; cursor: pointer; border-radius: 28px; }
.ec-bubble { --c1: #8fb8ff; --c2: #2f5fd0; width: 132px; height: 132px; border-radius: 50%; flex: none; box-sizing: border-box; padding: 0;
    display: grid; place-items: center; color: #fff; border: .5px solid rgba(255, 255, 255, .35);
    background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .55) 0 6%, transparent 24%), radial-gradient(circle at 50% 58%, var(--c1), var(--c2) 78%);
    box-shadow: 0 0 28px color-mix(in srgb, var(--c1) 45%, transparent), inset 0 -10px 24px rgba(0, 0, 0, .22), inset 0 6px 16px rgba(255, 255, 255, .16);
    transition: transform .2s cubic-bezier(.3, .7, .4, 1); }
.ec-choose:active .ec-bubble { transform: scale(.95); }
.ec-bname { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.ec-choose:focus-visible, .ec-opt:focus-visible, .ec-big:focus-visible, .ec-soft:focus-visible, .ec-x:focus-visible, .ec-input:focus-visible { outline: 3px solid #0a84ff; outline-offset: 3px; }
.ec-drift .ec-bubble { animation: ecDrift .6s cubic-bezier(.2, .8, .25, 1) both, ecGlow 3.6s ease-in-out .6s infinite; }
@keyframes ecDrift { from { opacity: 0; transform: translateY(24px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes ecGlow { 50% { box-shadow: 0 0 40px color-mix(in srgb, var(--c1) 60%, transparent), inset 0 -10px 24px rgba(0, 0, 0, .22), inset 0 6px 16px rgba(255, 255, 255, .16); } }
.ec-b-breakfast { --c1: #ffc46b; --c2: #e0782a; }
.ec-b-lunch { --c1: #7fe0a6; --c2: #23935c; }
.ec-b-dinner { --c1: #a99bff; --c2: #5146d6; }
.ec-b-snack { --c1: #ff9fc0; --c2: #cf4f86; }
.ec-b-water { --c1: #86d6ff; --c2: #1e7fd0; }
.ec-b-move { --c1: #ffe07a; --c2: #d0981a; }
.ec-ico { width: 40%; height: 40%; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25)); }

/* choices: a small icon chip, the question, then one grouped inset list */
.ec-qhead { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; max-width: 440px; }
.ec-mini { --c1: #8fb8ff; --c2: #2f5fd0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
    background: radial-gradient(circle at 50% 58%, var(--c1), var(--c2) 78%); box-shadow: 0 0 16px color-mix(in srgb, var(--c1) 45%, transparent); animation: ecOpen .3s ease both; }
.ec-mini .ec-ico { width: 56%; height: 56%; stroke-width: 5; }
@keyframes ecOpen { from { transform: scale(1.8); opacity: .4; } to { transform: none; opacity: 1; } }
/* h2 + parent: apple-ui.css's .apple-ui :is(.h2, h2) out-ranks a bare class */
.ec-ov h2.ec-q, .ec-hi h2.ec-hi-h { margin: 0; font-size: 22px; line-height: 1.22; font-weight: 700; letter-spacing: -.015em; max-width: 26ch; }
.ec-ov h2.ec-q.ec-lt { font-size: 28px; letter-spacing: -.02em; }
.ec-opts { width: 100%; max-width: 440px; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
    background: rgba(255, 255, 255, .08); border: .5px solid rgba(255, 255, 255, .12); animation: ecIn .3s ease both; }
.ec-opt { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; box-sizing: border-box; padding: 10px 14px 10px 16px;
    border: 0; background: transparent; color: #fff; font-size: 17px; font-weight: 400; text-align: left; cursor: pointer; }
.ec-opt + .ec-opt::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: rgba(255, 255, 255, .14); }
.ec-opt:active { background: rgba(255, 255, 255, .1); }
.ec-opt-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ec-opt-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-opt-h { font-size: 13px; color: rgba(235, 235, 245, .6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-chev { flex: none; width: 8px; height: 13px; fill: none; stroke: rgba(235, 235, 245, .35); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* buttons: one filled primary (50pt), tinted secondaries (44pt) */
.ec-row { display: flex; gap: 10px; width: 100%; max-width: 440px; }
.ec-big { display: block; width: 100%; max-width: 440px; min-height: 50px; box-sizing: border-box; padding: 0 20px; border-radius: 14px; border: 0; cursor: pointer;
    color: #fff; font-size: 17px; font-weight: 600; background: #0a84ff; box-shadow: 0 4px 16px rgba(10, 132, 255, .28); }
.ec-big:active { background: #0070e0; }
.ec-big:disabled { opacity: .4; box-shadow: none; }
.ec-soft { flex: 1; min-height: 44px; box-sizing: border-box; padding: 0 14px; border-radius: 12px; border: 0; cursor: pointer;
    color: #64b5ff; font-size: 17px; font-weight: 500; background: rgba(255, 255, 255, .09); }
.ec-soft:active { background: rgba(255, 255, 255, .16); }
.ec-plain { background: transparent; color: #64b5ff; }
.ec-wide { flex: none; width: 100%; max-width: 440px; }
.ec-input { width: 100%; max-width: 440px; min-height: 48px; box-sizing: border-box; border-radius: 12px; border: .5px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 17px; padding: 0 52px 0 14px; caret-color: #0a84ff; }
.ec-input::placeholder { color: rgba(235, 235, 245, .45); }

/* the pop: the bubble bursts, a few sparks, the points rise */
.ec-popwrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ec-popbox { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.ec-popping { cursor: default; animation: ecPop .5s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes ecPop { 0% { transform: scale(1); opacity: 1; } 35% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(.25); opacity: 0; } }
.ec-popping.ec-calm { animation: ecFade .45s ease forwards; }
@keyframes ecFade { to { opacity: 0; } }
.ec-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.ec-burst i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(#fff, #ffd60a 60%, transparent 70%);
    animation: ecSpark .7s ease-out .15s both; transform: rotate(var(--a)) translateY(0); }
.ec-burst i:nth-child(3n) { background: radial-gradient(#fff, #64b5ff 60%, transparent 70%); }
@keyframes ecSpark { 0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(1); } }
.ec-got { margin: 0; max-width: 300px; font-size: 20px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; animation: ecIn .35s ease .2s both; }
.ec-plus { margin: 0; font-size: 34px; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; color: #ffd60a; animation: ecFloat 1.1s ease-out .2s both; }
.ec-plus.ec-zero { font-size: 17px; font-weight: 500; color: rgba(235, 235, 245, .7); }
@keyframes ecFloat { 0% { opacity: 0; transform: translateY(14px) scale(.8); } 35% { opacity: 1; transform: none; } 100% { opacity: 1; transform: translateY(-6px); } }

/* the companion row: in the flow, above the buttons, never over them */
.ec-palrow { flex: none; display: flex; align-items: flex-end; gap: 8px; min-height: 44px; max-width: 520px; width: 100%; margin: 0 auto; padding: 4px 0 0; pointer-events: none; }
.ec-pal { flex: none; width: 44px; height: 44px; filter: drop-shadow(0 0 10px rgba(120, 190, 255, .45)); }
.ec-pal-art, .ec-pal-art > * { display: block; width: 100%; height: 100%; }
.ec-pal-art svg { width: 100%; height: 100%; }
.ec-pal-orb { display: block; width: 70%; height: 70%; margin: 15%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #8fd0ff 40%, #2f7fe0 75%); }
.ec-pal.ec-cheer { animation: ecHop .6s cubic-bezier(.3, 1.7, .5, 1); }
@keyframes ecHop { 30% { transform: translateY(-10px) rotate(-5deg) scale(1.05); } 60% { transform: translateY(0) rotate(3deg); } }
.ec-say { position: relative; flex: 0 1 auto; min-width: 0; margin: 0 0 6px; padding: 8px 12px; border-radius: 16px 16px 16px 5px; box-sizing: border-box;
    background: rgba(255, 255, 255, .12); border: .5px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    font-size: 15px; line-height: 1.3; font-weight: 400; color: #fff; text-align: left; opacity: 0; transform: translateY(4px); transition: opacity .22s, transform .22s;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.ec-say.on { opacity: 1; transform: none; }
.ec-say:empty { display: none; }

/* the buttons of the screen, always on screen at the bottom */
.ec-foot { flex: none; display: none; flex-direction: column; align-items: center; gap: 6px; padding-top: 10px; }
.ec-foot.on { display: flex; }

/* the read-back: one grouped inset list, one line per thing, then the total */
.ec-rv { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.ec-rv h2.ec-q { max-width: none; }
.ec-list { list-style: none; margin: 0; padding: 0; width: 100%; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .08); border: .5px solid rgba(255, 255, 255, .12); }
.ec-list li { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; box-sizing: border-box; padding: 8px 14px 8px 12px; }
.ec-list li + li::before { content: ""; position: absolute; top: 0; left: 54px; right: 0; height: .5px; background: rgba(255, 255, 255, .14); }
.ec-l-i { --c1: #8fb8ff; --c2: #2f5fd0; flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
    background: linear-gradient(180deg, var(--c1), var(--c2)); color: #fff; font-size: 15px; }
.ec-l-i .ec-ico { width: 64%; height: 64%; stroke-width: 5.5; }
.ec-l-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ec-l-h { font-size: 13px; color: rgba(235, 235, 245, .6); }
.ec-l-w { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-l-s { font-size: 13px; color: #ffb36b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-l-p { flex: none; font-size: 15px; font-weight: 600; color: #ffd60a; font-variant-numeric: tabular-nums; }
.ec-l-bonus .ec-l-i { --c1: #ffe27a; --c2: #e0a412; }
.ec-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 14px 0 16px; border-radius: 14px;
    background: rgba(255, 255, 255, .08); border: .5px solid rgba(255, 255, 255, .12); }
.ec-sum-l { font-size: 17px; font-weight: 600; }
.ec-total { margin: 0; font-size: 17px; font-weight: 700; color: #ffd60a; font-variant-numeric: tabular-nums; }

/* the finish: a calm glow around her companion */
.ec-ov.ec-finished .ec-palrow { visibility: hidden; }
.ec-fin { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ec-fin-glow { position: relative; width: 132px; height: 132px; display: grid; place-items: center; margin-bottom: 4px; }
.ec-fin-glow > .ec-pal-art, .ec-fin-glow > .ec-pal-orb { position: relative; z-index: 1; width: 96px; height: 96px; filter: drop-shadow(0 0 20px rgba(120, 190, 255, .6)); animation: ecIn .5s ease both; }
.ec-fin-glow i { position: absolute; inset: 18px; border-radius: 50%; border: 1.5px solid rgba(120, 190, 255, .5); animation: ecRing 3s ease-out infinite; }
.ec-fin-glow i:nth-child(2) { animation-delay: 1s; } .ec-fin-glow i:nth-child(3) { animation-delay: 2s; }
@keyframes ecRing { from { transform: scale(.75); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }
.ec-fin.ec-calm .ec-fin-glow i { animation: none; opacity: .3; transform: scale(1.1); }
.ec-fin .ec-total { font-size: 34px; line-height: 1.1; }
.ec-lv { margin: 0; font-size: 15px; color: rgba(235, 235, 245, .7); }

/* the evening greeting: a compact glass sheet at the bottom */
.ec-hi { position: fixed; inset: 0; z-index: 2147483240; display: flex; align-items: flex-end; justify-content: center; box-sizing: border-box;
    padding: 16px 12px calc(env(safe-area-inset-bottom, 0px) + 12px); background: rgba(2, 6, 18, .4); opacity: 0; transition: opacity .28s ease;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
.ec-hi.on { opacity: 1; }
.ec-hi-card { width: 100%; max-width: 420px; box-sizing: border-box; padding: 18px 16px 14px; border-radius: 26px; color: #fff; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 17px; letter-spacing: -.01em;
    background: linear-gradient(180deg, rgba(20, 32, 60, .82), rgba(10, 16, 36, .9)); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
    border: .5px solid rgba(205, 236, 255, .2); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); transform: translateY(24px); transition: transform .38s cubic-bezier(.2, .9, .3, 1); }
.ec-hi.on .ec-hi-card { transform: none; }
.ec-hi-pal { width: 64px; height: 64px; filter: drop-shadow(0 0 14px rgba(120, 190, 255, .55)); }
.ec-hi .ec-big { margin-top: 4px; }
.ec-hi .ec-big:focus-visible, .ec-hi .ec-soft:focus-visible { outline: 3px solid #0a84ff; outline-offset: 3px; }

/* Reduce Motion: no drifting, popping, sparkles or rings; fades only */
.ec-reduced *, .ec-reduced { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
.ec-reduced .ec-burst { display: none; }
@media (prefers-reduced-motion: reduce) {
    .ec-ov *, .ec-hi * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .ec-burst { display: none; }
}
/* small phones (iPhone SE): a little smaller still, nothing cut off */
@media (max-height: 700px) {
    .ec-bubble, .ec-popbox { width: 112px; height: 112px; }
    .ec-bname { font-size: 24px; }
    .ec-ov h2.ec-q.ec-lt { font-size: 24px; }
    .ec-stage { gap: 10px; }
    .ec-opt, .ec-list li { min-height: 48px; }
}
/* iPad: the same column, centred, a touch more air */
@media (min-width: 700px) and (min-height: 700px) {
    .ec-ov { padding-left: 24px; padding-right: 24px; }
    .ec-top { max-width: 560px; width: 100%; margin: 0 auto; }
    .ec-bubble, .ec-popbox { width: 148px; height: 148px; }
}
