/* =========================================================
   FOCUS EXTRAS + WELLBEING (focus-extras.js)
   ========================================================= */

/* ---------- 20-20-20 eye rest: a calm full-screen pause ---------- */
.eye-ov { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(4, 8, 16, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: wellIn .4s var(--ease); }
.eye-ov.out { opacity: 0; transition: opacity .3s; }
@keyframes wellIn { from { opacity: 0; } }
.eye-card { width: min(380px, 100%); padding: 28px 26px 22px; border-radius: 26px; text-align: center; color: #f4f6fa; background: rgba(18, 22, 32, .88); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 70px rgba(0, 0, 0, .5); animation: wellPop .45s var(--spring); }
@keyframes wellPop { from { transform: scale(.92); opacity: 0; } }
.eye-ring { position: relative; width: 120px; height: 120px; margin: 0 auto 14px; }
.eye-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.eye-ring circle { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 6; }
.eye-ring circle.v { stroke: #34d399; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 20s linear; }
.eye-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }
.eye-card h3 { margin: 0 0 6px; font-size: 21px; }
.eye-card p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.5; color: rgba(244, 246, 250, .75); }
.eye-card p b { color: #fff; }
.eye-btns { display: flex; justify-content: center; gap: 8px; }
.eye-btns .btn { color: rgba(244, 246, 250, .8); }
.eye-btns .btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- small cards: water, session notes ---------- */
.well-card { position: fixed; z-index: 70; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); width: min(360px, calc(100vw - 32px)); display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 12px; border-radius: 20px; background: var(--card-solid); color: var(--ink); border: 1px solid var(--line2); box-shadow: var(--shadow-hi); animation: wellPop .45s var(--spring); }
.well-card.out { opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.wc-ic { font-size: 24px; line-height: 1; margin-top: 2px; }
.wc-t { flex: 1; min-width: 0; }
.wc-t b { display: block; font-size: 15px; }
.wc-t small { display: block; font-size: 12.5px; color: var(--ink3); margin-top: 1px; }
.wc-dots { display: flex; gap: 4px; margin: 8px 0 2px; }
.wc-dots i { width: 14px; height: 18px; border-radius: 3px 3px 6px 6px; border: 1.5px solid color-mix(in srgb, #38bdf8 60%, var(--line2)); }
.wc-dots i.on { background: linear-gradient(#7dd3fc, #0ea5e9); border-color: #0ea5e9; }
.wc-b { display: flex; flex-direction: column; gap: 6px; }
.note-card .wc-b { flex-direction: row; justify-content: flex-end; margin-top: 8px; }
.well-card .btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.wc-x { position: absolute; top: 6px; right: 8px; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; color: var(--ink3); }
.wc-x:hover { background: var(--acc-soft); color: var(--ink); }
.note-card textarea { width: 100%; margin-top: 8px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line2); background: var(--card-2); color: var(--ink); font: inherit; font-size: 14px; resize: none; outline: none; }
.note-card textarea:focus { border-color: var(--acc); }
body.route-focus .well-card { background: rgba(18, 22, 32, .92); color: #f4f6fa; border-color: rgba(255, 255, 255, .12); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
body.route-focus .well-card small { color: rgba(244, 246, 250, .55); }
body.route-focus .note-card textarea { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .12); color: #fff; }
@media (max-width: 720px) { .well-card { left: 16px; right: 16px; width: auto; bottom: calc(var(--btabs, 0px) + 12px); } body.route-focus .well-card { bottom: 16px; } }

/* ---------- focus lock banner (other pages) ---------- */
.flock { position: fixed; z-index: 40; left: 50%; top: calc(var(--hdr) + env(safe-area-inset-top) + 10px); translate: -50% 0; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 8px 10px 8px 14px; border-radius: 99px; font-size: 13.5px; color: #fff; background: rgba(12, 16, 26, .86); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: wellPop .4s var(--spring); }
.flock i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc2); box-shadow: 0 0 10px var(--acc2); flex: none; animation: flockPulse 1.6s ease-in-out infinite; }
@keyframes flockPulse { 50% { opacity: .35; } }
.flock span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flock em { font-style: normal; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); white-space: nowrap; }
.flock:hover em { background: #fff; color: #0b0d12; }
body.route-polish .flock { top: auto; bottom: calc(var(--btabs, 0px) + 14px); }

/* ---------- guided break card (Focus room) ---------- */
.pm-break { display: flex; align-items: center; gap: 14px; max-width: min(520px, 100%); margin-bottom: 16px; padding: 12px 12px 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; animation: wellPop .45s var(--spring); }
.pmb-ic { font-size: 28px; line-height: 1; flex: none; }
.pmb-t { flex: 1; min-width: 0; }
.pmb-t small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .65; }
.pmb-t b { display: block; font-size: 16px; font-weight: 650; line-height: 1.3; }
.pmb-next { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 16px; color: #fff; background: rgba(255, 255, 255, .1); }
.pmb-next:hover { background: rgba(255, 255, 255, .22); }
.pmb-act { padding: 7px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 650; background: #fff; color: #0b0d12; flex: none; }
.pmb-breathe { position: relative; width: 46px; height: 46px; flex: none; display: grid; place-items: center; }
.pmb-breathe i { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--pm-acc) 80%, #fff), color-mix(in srgb, var(--pm-acc) 30%, transparent)); animation: breathe478 19s ease-in-out infinite; }
@keyframes breathe478 { 0% { transform: scale(.45); } 21% { transform: scale(1); } 58% { transform: scale(1); } 100% { transform: scale(.45); } }
.pm[data-style="center"] .pm-break { margin-left: auto; margin-right: auto; text-align: left; }
.ps-notes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ps-notes li { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 13.5px; line-height: 1.4; }
.ps-notes small { display: block; font-size: 11.5px; color: var(--pm-ink3); margin-bottom: 2px; }
#goalHabit { width: auto; max-width: 160px; padding: 5px 8px !important; font-size: 13px !important; }
@media (prefers-reduced-motion: reduce) { .pmb-breathe i, .flock i { animation: none; } .eye-ring circle.v { transition: none; } }
