/* First-time guide (welcome.js). Light patterns match the firmware: slow amber = setup mode, two slow green flashes =
   connected, three quick red flashes = it went wrong. */
.wiz { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; min-height: calc(100vh - 130px); }
.wiz-top { position: sticky; top: 58px; z-index: 4; background: var(--bg); padding: 6px 0 8px; }
.wiz-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: 6px; }
.wiz-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .45s cubic-bezier(.3, .7, .2, 1); }
.wiz-stage { flex: 1; overflow: hidden; padding: 4px 2px 12px; }
.wiz-step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 18px; }
.wiz-step.fwd { animation: wz-in-r .34s cubic-bezier(.3, .7, .2, 1); }
.wiz-step.bwd { animation: wz-in-l .34s cubic-bezier(.3, .7, .2, 1); }
@keyframes wz-in-r { from { opacity: 0; transform: translateX(36px); } }
@keyframes wz-in-l { from { opacity: 0; transform: translateX(-36px); } }
.wiz-step h1 { font-size: 24px; line-height: 1.2; margin: 6px 0 10px; outline: none; }
.wiz-step .lead { font-size: 16px; margin: 0 0 12px; }
.wiz-foot { position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: 10px; padding: 12px 0 max(12px, env(safe-area-inset-bottom)); background: var(--bg); }
.wiz-foot button { min-width: 110px; padding: 12px 18px; font-size: 16px; }
.wiz-foot .primary { flex: 0 1 260px; }
.hero { position: relative; display: flex; justify-content: center; margin: 0 0 6px; }
.split { display: grid; gap: 22px; align-items: start; }
@media (min-width: 700px) { .split { grid-template-columns: 210px 1fr; } .split > .hero { margin-top: 10px; } }
@media (max-width: 699px) { .split > .phone { margin: 0 auto; } }
.amber-txt { color: #d97706; }
details.trouble { border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; margin: 12px 0 0; }
details.trouble[open] { padding-bottom: 8px; }
details.trouble p { margin: 6px 0; }
ul.need { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ul.need li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; animation: wz-up .4s both; }
ul.need li:nth-child(2) { animation-delay: .08s; } ul.need li:nth-child(3) { animation-delay: .16s; } ul.need li:nth-child(4) { animation-delay: .24s; }
@keyframes wz-up { from { opacity: 0; transform: translateY(10px); } }
.ni { font-size: 22px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--chip); border-radius: 12px; }
ol.mini { margin: 4px 0; padding-left: 22px; } ol.mini li { margin: 4px 0; }
.codechip { text-align: center; border: 2px dashed var(--accent); border-radius: 14px; padding: 10px; margin: 10px 0; background: var(--chip); }
.codechip .paircode { font-size: 40px; margin: 2px 0; }
.codechip.dead .paircode { color: var(--muted); text-decoration: line-through; }
.watch { display: grid; gap: 8px; margin: 10px 0; }
.wrow { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 14px; }
.pip { width: 18px; height: 18px; border-radius: 50%; margin-top: 2px; background: #6b7280; }
.pip.green2 { animation: pip-green2 3.2s infinite; } .pip.red3 { animation: pip-red3 2.4s infinite; }
@keyframes pip-green2 { 0%, 15% { background: #22c55e; } 16%, 27% { background: #6b7280; } 28%, 43% { background: #22c55e; } 44%, 100% { background: #6b7280; } }
@keyframes pip-red3 { 0%, 6% { background: #ef4444; } 7%, 12% { background: #6b7280; } 13%, 19% { background: #ef4444; } 20%, 25% { background: #6b7280; } 26%, 32% { background: #ef4444; } 33%, 100% { background: #6b7280; } }
.waiting { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 8px 0; }
.waiting .spin { margin: 0; width: 22px; height: 22px; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.chip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px 10px; border-radius: 14px; border: 2px solid var(--line); transition: transform .15s, border-color .15s, background .15s; position: relative; }
.chip i { font-style: normal; font-size: 26px; line-height: 1.1; }
.chip b { font-size: 22px; letter-spacing: -.3px; } .chip span { font-size: 13px; color: var(--muted); font-weight: 600; }
.chip.on::after { position: absolute; top: 6px; right: 8px; }
.chip.on { border-color: var(--accent); background: var(--chip); transform: scale(1.03); }
.chip.on::after { content: '\2713'; color: var(--accent); font-weight: 800; }
.chip:active { transform: scale(.97); }
ol.ladder { list-style: none; padding: 0; margin: 6px 0 14px; position: relative; display: grid; gap: 6px; }
ol.ladder::before { content: ''; position: absolute; left: 19px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
ol.ladder li { position: relative; display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 10px; padding: 6px 10px 6px 0; border-radius: 10px;
  animation: ladder 8s calc(var(--i) * 1.1s) infinite both; }
.li-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--line); z-index: 1; font-size: 18px; }
.li-t { font-weight: 600; } .li-m { color: var(--muted); font-size: 13px; }
@keyframes ladder { 0%, 3% { background: transparent; } 6%, 13% { background: var(--chip); } 18%, 100% { background: transparent; } }
.card.inset { background: var(--bg); margin: 0 0 10px; }
.card.inset p { margin: 4px 0; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.summary > div { display: flex; flex-direction: column; background: var(--bg); border-radius: 10px; padding: 10px 12px; }

/* --- the bottle and cap */
.ill.bottle { width: 190px; height: 210px; overflow: visible; }
.ill.bottle.small { width: 120px; height: 132px; }
.ill.bottle.float { animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.cap-body, .cap-top { fill: #f8fafc; stroke: #94a3b8; stroke-width: 2; }
.ridges line { stroke: #cbd5e1; stroke-width: 2; }
.neck { fill: #b45309; opacity: .8; }
.jar { fill: #f59e0b; opacity: .82; stroke: #b45309; stroke-width: 2; }
.label { fill: #fff; opacity: .95; } .label-line { stroke: #cbd5e1; stroke-width: 4; stroke-linecap: round; }
@media (prefers-color-scheme: dark) { .cap-body, .cap-top { fill: #e2e8f0; } .label { fill: #f1f5f9; } }
.led { fill: #475569; } .led-glow { fill: transparent; opacity: 0; }
.led.led-amber { animation: led-amber 2s infinite; }
.led.led-green2 { animation: led-green2 3.2s infinite; }
.led.led-red3 { animation: led-red3 2.4s infinite; }
.led.led-holdseq { animation: led-holdseq 7s infinite; }
.led-glow.led-amber { animation: glow-amber 2s infinite; }
.led-glow.led-green2 { animation: glow-green2 3.2s infinite; }
.led-glow.led-red3 { animation: glow-red3 2.4s infinite; }
@keyframes led-amber { 0%, 8% { fill: #f59e0b; } 12%, 100% { fill: #475569; } }
@keyframes led-green2 { 0%, 15% { fill: #22c55e; } 16%, 27% { fill: #475569; } 28%, 43% { fill: #22c55e; } 44%, 100% { fill: #475569; } }
@keyframes led-red3 { 0%, 6% { fill: #ef4444; } 7%, 12% { fill: #475569; } 13%, 19% { fill: #ef4444; } 20%, 25% { fill: #475569; } 26%, 32% { fill: #ef4444; } 33%, 100% { fill: #475569; } }
@keyframes led-holdseq { 0%, 14% { fill: #475569; } 15%, 20% { fill: #f59e0b; } 21%, 26% { fill: #475569; } 27%, 32% { fill: #f59e0b; } 33%, 38% { fill: #475569; }
  39%, 44% { fill: #f59e0b; } 45%, 50% { fill: #475569; } 51%, 56% { fill: #f59e0b; } 57%, 62% { fill: #475569; }
  63%, 67% { fill: #22c55e; } 68%, 72% { fill: #475569; } 73%, 77% { fill: #22c55e; } 78%, 82% { fill: #475569; } 83%, 87% { fill: #22c55e; } 88%, 100% { fill: #475569; } }
@keyframes glow-amber { 0%, 8% { fill: #f59e0b; opacity: .35; } 12%, 100% { fill: #f59e0b; opacity: 0; } }
@keyframes glow-green2 { 0%, 15% { fill: #22c55e; opacity: .35; } 16%, 27% { fill: #22c55e; opacity: 0; } 28%, 43% { fill: #22c55e; opacity: .35; } 44%, 100% { fill: #22c55e; opacity: 0; } }
@keyframes glow-red3 { 0%, 6% { fill: #ef4444; opacity: .35; } 7%, 12% { opacity: 0; } 13%, 19% { fill: #ef4444; opacity: .35; } 20%, 25% { opacity: 0; } 26%, 32% { fill: #ef4444; opacity: .35; } 33%, 100% { fill: #ef4444; opacity: 0; } }
.capgrp { transform-box: fill-box; transform-origin: 50% 100%; }
.capgrp.pressing { animation: cap-press 2s infinite; }
@keyframes cap-press { 0%, 30% { transform: none; } 38%, 48% { transform: scaleY(.94); } 56%, 100% { transform: none; } }
.finger path { fill: #fcd9b6; stroke: #c08a5b; stroke-width: 2; } .finger .nail { fill: #fff4ea; }
.finger.tap { animation: finger-tap 2s infinite; }
@keyframes finger-tap { 0%, 10% { transform: translateY(-36px); opacity: 0; } 22% { opacity: 1; } 38%, 48% { transform: translateY(26px); opacity: 1; } 70% { transform: translateY(-30px); opacity: 0; } 100% { opacity: 0; } }
.finger.hold { animation: finger-hold 7s infinite; }
@keyframes finger-hold { 0% { transform: translateY(-36px); opacity: 0; } 8%, 90% { transform: translateY(26px); opacity: 1; } 98%, 100% { transform: translateY(-36px); opacity: 0; } }
.waves path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; opacity: 0; animation: wave 2s infinite; }
.waves path:nth-child(2) { animation-delay: .25s; } .waves path:nth-child(3) { animation-delay: .5s; }
@keyframes wave { 40% { opacity: 0; } 55% { opacity: 1; } 100% { opacity: 0; } }

/* --- the 15 s hold, sped up */
.holddemo { display: grid; grid-template-columns: 120px 64px 1fr; gap: 12px; align-items: center; margin: 8px 0; }
.ring { width: 60px; height: 60px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; } .ring-bg { stroke: var(--line); }
.ring-fg { stroke: #22c55e; stroke-dasharray: 163.4; stroke-dashoffset: 163.4; stroke-linecap: round; animation: ring 7s infinite; }
@keyframes ring { 0%, 6% { stroke-dashoffset: 163.4; stroke: #f59e0b; } 60% { stroke: #f59e0b; } 62% { stroke-dashoffset: 0; stroke: #22c55e; } 90% { stroke-dashoffset: 0; stroke: #22c55e; } 100% { stroke-dashoffset: 163.4; } }
.holdlbl { display: grid; gap: 4px; } .holdlbl span { opacity: .35; animation-duration: 7s; animation-iteration-count: infinite; }
.holdlbl .h1 { animation-name: hl1; } .holdlbl .h2 { animation-name: hl2; } .holdlbl .h3 { animation-name: hl3; }
@keyframes hl1 { 0% { opacity: .35; } 5%, 14% { opacity: 1; font-weight: 700; } 16%, 100% { opacity: .35; font-weight: 400; } }
@keyframes hl2 { 0%, 14% { opacity: .35; } 15%, 60% { opacity: 1; font-weight: 700; } 62%, 100% { opacity: .35; font-weight: 400; } }
@keyframes hl3 { 0%, 62% { opacity: .35; } 63%, 92% { opacity: 1; font-weight: 700; color: var(--ok); } 94%, 100% { opacity: .35; } }
@media (max-width: 520px) { .holddemo { grid-template-columns: 90px 52px 1fr; } .holddemo .ill.bottle.small { width: 90px; height: 100px; } }

/* --- phone mock-ups */
.phone { width: 196px; height: 360px; border: 8px solid #1f2937; border-radius: 30px; background: #fff; position: relative; overflow: hidden; color: #111827; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); flex: none; }
.phone .notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 70px; height: 16px; background: #1f2937; border-radius: 0 0 10px 10px; z-index: 2; }
.phone .screen { position: absolute; inset: 0; padding: 26px 10px 10px; font-size: 12px; }
.ph-title { font-size: 20px; font-weight: 800; margin: 6px 0 10px; }
.wl-group { background: #f3f4f6; border-radius: 10px; overflow: hidden; }
.wl-row { display: flex; align-items: center; gap: 6px; padding: 9px 8px; border-top: 1px solid #e5e7eb; position: relative; }
.wl-row:first-child { border-top: 0; } .wl-name { flex: 1; } .wl-row.dim { color: #6b7280; }
.wl-row.target { animation: wl-hi 4.5s infinite; } .wl-check { color: #2563eb; font-weight: 800; opacity: 0; animation: wl-ck 4.5s infinite; }
@keyframes wl-hi { 0%, 30% { background: transparent; } 36%, 90% { background: #dbeafe; } 100% { background: transparent; } }
@keyframes wl-ck { 0%, 44% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
.ph-note { margin-top: 10px; color: #6b7280; font-size: 11px; opacity: 0; animation: wl-ck 4.5s .3s infinite; }
.tap-dot { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: rgba(37, 99, 235, .35); border: 2px solid rgba(37, 99, 235, .7);
  left: 110px; top: 104px; opacity: 0; animation: tap 4.5s infinite; pointer-events: none; }
@keyframes tap { 0%, 24% { opacity: 0; transform: scale(1.6); } 30% { opacity: 1; transform: scale(1); } 40% { opacity: 0; transform: scale(.6); } 100% { opacity: 0; } }
.sp-head { font-weight: 800; font-size: 14px; margin: 6px 0 6px; }
.sp-l { font-weight: 700; font-size: 11px; margin: 8px 0 3px; }
.sp-f { border: 1px solid #d1d5db; border-radius: 6px; padding: 7px; min-height: 30px; white-space: nowrap; overflow: hidden; }
.sp-f.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; letter-spacing: 2px; font-weight: 700; }
.type { display: inline-block; clip-path: inset(0 100% 0 0); animation-duration: 8s; animation-iteration-count: infinite; animation-timing-function: steps(10); }
.type.t1 { animation-name: ty1; } .type.t2 { animation-name: ty2; } .type.t3 { animation-name: ty3; animation-timing-function: steps(7); }
@keyframes ty1 { 0%, 4% { clip-path: inset(0 100% 0 0); } 16%, 94% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes ty2 { 0%, 20% { clip-path: inset(0 100% 0 0); } 34%, 94% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes ty3 { 0%, 38% { clip-path: inset(0 100% 0 0); } 56%, 94% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
.sp-f.f3 { animation: fld 8s infinite; }
@keyframes fld { 0%, 37% { border-color: #d1d5db; box-shadow: none; } 38%, 57% { border-color: #2563eb; box-shadow: 0 0 0 2px #bfdbfe; } 58%, 100% { border-color: #d1d5db; box-shadow: none; } }
.sp-btn { margin-top: 14px; background: #2563eb; color: #fff; text-align: center; padding: 9px; border-radius: 6px; font-weight: 700; animation: spb 8s infinite; }
@keyframes spb { 0%, 66% { transform: none; filter: none; } 70% { transform: scale(.95); filter: brightness(.85); } 74%, 100% { transform: none; filter: none; } }
.tap-dot.b { left: 75px; top: 236px; animation: tapb 8s infinite; }
@keyframes tapb { 0%, 64% { opacity: 0; transform: scale(1.6); } 68% { opacity: 1; transform: scale(1); } 76% { opacity: 0; transform: scale(.6); } 100% { opacity: 0; } }

/* --- cap talking to the service, and the success burst */
.link-anim { display: flex; align-items: center; gap: 6px; }
.link-anim .dots { display: flex; gap: 8px; } .link-anim .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); opacity: .2; animation: dot 1.5s infinite; }
.link-anim .dots i:nth-child(2) { animation-delay: .15s; } .link-anim .dots i:nth-child(3) { animation-delay: .3s; } .link-anim .dots i:nth-child(4) { animation-delay: .45s; } .link-anim .dots i:nth-child(5) { animation-delay: .6s; }
@keyframes dot { 30% { opacity: 1; transform: scale(1.25); } 60% { opacity: .2; transform: none; } }
.ill.cloud { width: 74px; height: 52px; } .ill.cloud path { fill: var(--chip); stroke: var(--accent); stroke-width: 2.5; }
.burst { position: absolute; top: 74px; left: 50%; width: 0; height: 0; z-index: 1; pointer-events: none; }
.burst .tick { position: absolute; left: 40px; top: -70px; width: 46px; height: 46px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 26px; font-weight: 800;
  display: grid; place-items: center; animation: pop .55s .15s cubic-bezier(.2, 1.6, .4, 1) both; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
@keyframes pop { from { transform: scale(0); } }
.burst i { position: absolute; left: 0; top: 0; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); opacity: 0; animation: ray .9s .2s ease-out both; transform: rotate(var(--a)); }
.burst i:nth-child(odd) { background: var(--ok); } .burst i:nth-child(3n) { background: #f59e0b; }
@keyframes ray { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-90px) scale(.5); } }

@media (max-width: 520px) {
  .wiz-step { padding: 18px 14px 14px; } .wiz-step h1 { font-size: 21px; } .wiz-step .lead { font-size: 15px; }
  .ill.bottle { width: 150px; height: 166px; } .wiz-top { top: 54px; }
}
/* Keep the light patterns (they are the instructions); drop the movement. */
@media (prefers-reduced-motion: reduce) {
  .wiz-step.fwd, .wiz-step.bwd, ul.need li, .ill.bottle.float, .capgrp.pressing, .burst .tick, .chip, .link-anim .dots i, ol.ladder li { animation: none !important; transition: none; }
  .finger.tap, .finger.hold { animation: none; transform: translateY(26px); opacity: 1; }
  .burst i { display: none; }
}
.li-need { font-size: 12px; font-weight: 600; color: var(--warn); }
.card.inset.who h2 { margin-top: 0; }
.card.inset.who label:first-of-type { margin-top: 4px; }
.cglist { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 8px; }
.cglist .cg { padding: 6px 10px; border-top: 1px solid var(--line); } .cglist .cg:first-child { border-top: 0; }

/* switches: the alert plan in the guide, and the battery option */
.switch { position: relative; display: inline-block; width: 44px; height: 26px; margin: 0; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: background .2s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled { cursor: default; } .switch input:disabled + span { opacity: .5; }
ol.ladder li.off { animation: none; } ol.ladder li.off .li-ico, ol.ladder li.off .li-t, ol.ladder li.off .li-m { opacity: .45; }
ol.ladder li.off .li-m { text-decoration: line-through; }
.li-note { font-size: 12px; font-weight: 500; color: var(--muted); }
.cgadd { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .cgadd input[type=tel] { grid-column: 1; } .cgadd button { grid-column: 2; }
@media (max-width: 520px) { .cgadd { grid-template-columns: 1fr; } .cgadd input[type=tel], .cgadd button { grid-column: auto; } }
.battery-opt { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; margin: 12px 0; padding: 12px 14px; border: 2px solid var(--line);
  border-radius: 12px; font-weight: 400; font-size: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.battery-opt.on { border-color: var(--ok); background: var(--chip); }
.bo-ico { font-size: 24px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--chip); border-radius: 12px; }

/* who each alert reaches: you (blue) and your caregivers (purple), the same on both sides of the alerts step */
.who-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; vertical-align: 2px; margin-right: 4px; }
.who-tag.you { background: #dbeafe; color: #1d4ed8; } .who-tag.cg { background: #ede9fe; color: #6d28d9; }
@media (prefers-color-scheme: dark) { .who-tag.you { background: #1e3a8a; color: #bfdbfe; } .who-tag.cg { background: #4c1d95; color: #ddd6fe; } }
.lgroup { border-left: 4px solid; border-radius: 4px 10px 10px 4px; padding: 8px 0 2px 10px; margin: 0 0 12px; }
.lgroup.you { border-color: #3b82f6; } .lgroup.cg { border-color: #8b5cf6; }
.lg-head { font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.lgroup ol.ladder { margin: 0 0 6px; }
.who { display: grid; gap: 12px; }
.whobox { border: 1px solid var(--line); border-left: 4px solid; border-radius: 4px 12px 12px 4px; padding: 12px 14px; background: var(--bg); }
.whobox.you { border-left-color: #3b82f6; } .whobox.cg { border-left-color: #8b5cf6; }
.whobox h2 { font-size: 15px; margin: 0 0 6px; }
.whobox label:first-of-type { margin-top: 4px; }

/* The "click": a ring springs out from the cap the moment the finger presses it (finger-tap: pressed at 38-48%). */
.tapring { fill: none; stroke: var(--accent); stroke-width: 4; opacity: 0; transform-box: fill-box; transform-origin: center; animation: tapring 2s infinite; }
@keyframes tapring { 0%, 37% { opacity: 0; transform: scale(.7); } 40% { opacity: 1; transform: scale(.85); } 70%, 100% { opacity: 0; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .tapring { animation: none; opacity: .6; } }

/* reminder times: the day as a bar, midnight to midnight, with a marker at each chosen time */
.daywrap { margin: 18px 0 6px; }
.daysum { font-size: 16px; margin: 0 0 40px; }
.daybar { position: relative; height: 34px; border-radius: 17px; cursor: copy;
  background: linear-gradient(90deg, #1e1b4b 0%, #312e81 18%, #f59e0b 26%, #fde68a 32%, #bae6fd 42%, #7dd3fc 58%, #fdba74 72%, #f97316 77%, #4338ca 84%, #1e1b4b 100%); }
.dayticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }
.daymark { position: absolute; top: 0; bottom: 0; width: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.dm-pin { position: absolute; left: -9px; top: 6px; width: 18px; height: 22px; border-radius: 9px; background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.dm-bubble { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 99px; display: inline-flex; gap: 4px; align-items: center; animation: dm-pop .25s ease-out; }
.dm-bubble i { font-style: normal; }
.daymark:hover .dm-bubble, .daymark:focus-visible .dm-bubble { background: var(--bad); }
.daymark:hover .dm-bubble::after { content: '✕'; margin-left: 2px; }
@keyframes dm-pop { from { transform: translate(-50%, 6px) scale(.8); opacity: 0; } }
@media (max-width: 520px) { .dm-bubble { font-size: 11px; padding: 2px 6px; } .chip b { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .dm-bubble { animation: none; } }
/* the demo's "with a real cap" list */
ul.realcap { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; font-size: 13.5px; }
ul.realcap li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; }
ul.realcap li > span { font-size: 18px; line-height: 1.2; }

/* the cap page's reminder list (app.js tabReminders) under the same day bar */
.cap-day { margin: 6px 0 14px; }
.cap-day .daymark:hover .dm-bubble { background: var(--accent); filter: brightness(1.15); } .cap-day .daymark:hover .dm-bubble::after { content: none; }
.daymark.off .dm-bubble, .daymark.off .dm-pin { background: var(--muted); opacity: .7; }
.remlist { display: grid; gap: 8px; }
.rem { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
.rem.off { opacity: .55; }
.rem-ico { font-size: 26px; text-align: center; }
.rem-t { display: flex; flex-direction: column; } .rem-t b { font-size: 21px; line-height: 1.2; }
.rem-act { display: flex; align-items: center; gap: 6px; }
@media (max-width: 520px) { .rem { grid-template-columns: 36px 1fr; } .rem-act { grid-column: 1 / -1; justify-content: flex-end; } }
