:root {
  --bg: #08090d; --ink: #f3f0e8; --mute: rgba(243,240,232,.56); --faint: rgba(243,240,232,.32);
  --card: rgba(255,255,255,.045); --card2: rgba(255,255,255,.075); --line: rgba(255,255,255,.08);
  --ok: #7ee0b0; --warn: #ffb86b; --bad: #ff7a85; --acc: #c9b8ff;
  --spring: cubic-bezier(.34,1.56,.64,1); --out: cubic-bezier(.22,1,.36,1);
  --st: env(safe-area-inset-top); --sb: env(safe-area-inset-bottom);
  --num: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; margin: 0; }
html, body { height: 100%; background: var(--bg); color: var(--ink); overscroll-behavior: none; }
body { font: 16px/1.4 -apple-system, "SF Pro Text", system-ui, sans-serif; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; user-select: text; -webkit-user-select: text; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }

/* ambient aura */
.aura { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.aura i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(80px); opacity: .28; animation: drift 26s ease-in-out infinite alternate; }
.aura i:nth-child(1) { background: #6b4dff; left: -30vmax; top: -35vmax; }
.aura i:nth-child(2) { background: #1fb8a0; right: -40vmax; top: 10vh; opacity: .16; animation-duration: 32s; animation-delay: -8s; }
.aura i:nth-child(3) { background: #ff6a8a; left: -20vmax; bottom: -55vmax; opacity: .12; animation-duration: 38s; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.12); } }

#app { position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; z-index: 1;
  padding: calc(var(--st) + 18px) 20px calc(var(--sb) + 110px); }
.view { animation: viewIn .55s var(--out) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(6px); } }
.stagger > * { animation: rise .6s var(--out) both; animation-delay: calc(var(--i, 0) * 45ms + 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* header */
.hd { display: flex; align-items: flex-end; justify-content: space-between; margin: 6px 2px 22px; }
.hd small { display: block; color: var(--mute); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.hd h1 { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin-top: 4px; }
.iconbtn { width: 44px; height: 44px; border-radius: 22px; background: var(--card2); display: grid; place-items: center; border: 1px solid var(--line); transition: transform .3s var(--spring); }
.iconbtn:active { transform: scale(.88); }
.iconbtn svg { width: 22px; height: 22px; }

/* hero ring */
.hero { display: grid; grid-template-columns: 148px 1fr; gap: 20px; align-items: center; padding: 20px; border-radius: 30px; background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.02)); border: 1px solid var(--line); margin-bottom: 26px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: radial-gradient(120px 80px at 20% 0%, rgba(201,184,255,.2), transparent); pointer-events: none; }
.ring { position: relative; width: 148px; height: 148px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .trk { stroke: rgba(255,255,255,.07); stroke-width: 11; }
.ring .val { stroke: url(#g1); stroke-width: 11; transition: stroke-dashoffset 1.4s var(--out); }
.ring .c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .c b { font: 700 40px/1 var(--num); letter-spacing: -.03em; }
.ring .c span { color: var(--mute); font-size: 12px; margin-top: 4px; }
.hero h2 { font-size: 20px; letter-spacing: -.02em; line-height: 1.2; }
.hero p { color: var(--mute); font-size: 14px; margin-top: 6px; }
.next { margin-top: 12px; display: inline-flex; gap: 8px; align-items: center; font-size: 13px; padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.07); }
.next i { width: 8px; height: 8px; border-radius: 4px; background: var(--c, var(--acc)); box-shadow: 0 0 12px var(--c, var(--acc)); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }

.sec { display: flex; justify-content: space-between; align-items: baseline; margin: 28px 4px 12px; }
.sec h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 650; }
.sec span { font-size: 13px; color: var(--faint); }

/* dose card */
.dose { --c: var(--acc); display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); margin-bottom: 10px; position: relative; overflow: hidden; transition: transform .35s var(--spring), background .3s, opacity .4s; }
.dose:active { transform: scale(.975); }
.dose::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); box-shadow: 0 0 14px var(--c); }
.dose .t { width: 52px; flex: none; font: 600 17px/1 var(--num); letter-spacing: -.02em; }
.dose .t small { display: block; font: 500 11px/1.4 -apple-system, system-ui; color: var(--faint); margin-top: 3px; letter-spacing: 0; }
.dose .m { flex: 1; min-width: 0; }
.dose .m b { display: block; font-size: 16px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dose .m span { color: var(--mute); font-size: 13px; }
.dose.done { opacity: .62; }
.dose.done .m b { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.3); }
.dose.missed::before, .dose.late::before { background: var(--bad); box-shadow: 0 0 14px var(--bad); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--mute); margin-left: 4px; vertical-align: 1px; }
.chip.ok { color: var(--ok); background: rgba(126,224,176,.12); } .chip.bad { color: var(--bad); background: rgba(255,122,133,.12); } .chip.warn { color: var(--warn); background: rgba(255,184,107,.12); }

/* hold-to-take button */
.take { position: relative; width: 52px; height: 52px; flex: none; border-radius: 26px; display: grid; place-items: center; background: rgba(255,255,255,.06); touch-action: none; transition: transform .35s var(--spring), background .3s; }
.take svg.r { position: absolute; inset: 0; transform: rotate(-90deg); }
.take svg.r circle { stroke: var(--c); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; }
.take.holding { transform: scale(.9); }
.take.holding svg.r circle { stroke-dashoffset: 0; transition: stroke-dashoffset .55s linear; }
.take .ic { width: 22px; height: 22px; color: var(--c); }
.take.is-done { background: var(--c); }
.take.is-done .ic { color: #0b0c10; stroke-width: 2.4; }
.take.pop { animation: pop .6s var(--spring); }
@keyframes pop { 40% { transform: scale(1.22); } }
.burst { position: fixed; pointer-events: none; z-index: 60; }
.burst i { position: absolute; width: 6px; height: 6px; border-radius: 3px; background: var(--c); animation: fly .8s var(--out) forwards; }
@keyframes fly { to { transform: translate(var(--x), var(--y)) scale(.2); opacity: 0; } }

/* interval card */
.iv { --c: var(--acc); padding: 18px; border-radius: 26px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 16%, transparent), rgba(255,255,255,.03)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); margin-bottom: 12px; }
.iv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.iv-top b { font-size: 17px; } .iv-top span { color: var(--mute); font-size: 13px; display: block; }
.iv .big { font: 700 34px/1 var(--num); letter-spacing: -.03em; margin: 16px 0 4px; }
.iv .big small { font-size: 15px; color: var(--mute); font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.track { position: relative; height: 34px; margin: 16px 0 8px; }
.track .bar { position: absolute; left: 0; right: 0; top: 13px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.07); }
.track .win { position: absolute; top: 9px; height: 16px; border-radius: 8px; background: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 0 20px color-mix(in srgb, var(--c) 50%, transparent); }
.track .fill { position: absolute; left: 0; top: 13px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,.15), var(--c)); transition: width 1s var(--out); }
.track .now { position: absolute; top: 4px; width: 3px; height: 26px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px #fff; transition: left 1s var(--out); }
.track-l { display: flex; justify-content: space-between; font: 500 12px var(--num); color: var(--faint); }
.track-l b { color: var(--ink); font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 20px; border-radius: 25px; font-weight: 640; font-size: 16px; background: var(--card2); border: 1px solid var(--line); transition: transform .3s var(--spring), opacity .2s; }
.btn:active { transform: scale(.95); }
.btn.pri { background: var(--ink); color: #0b0c10; border: 0; }
.btn.c { background: var(--c); color: #0b0c10; border: 0; }
.btn.danger { color: var(--bad); }
.btn.wide { width: 100%; }
.row { display: flex; gap: 10px; } .row > * { flex: 1; }

/* empty */
.empty { text-align: center; padding: 50px 20px; color: var(--mute); }
.empty .pill3d { width: 120px; height: 120px; margin: 0 auto 20px; animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(6deg); } }
.empty h2 { color: var(--ink); font-size: 22px; margin-bottom: 8px; letter-spacing: -.02em; }

/* med card */
.med { --c: var(--acc); padding: 18px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); margin-bottom: 12px; transition: transform .35s var(--spring); }
.med:active { transform: scale(.98); }
.med-top { display: flex; gap: 14px; align-items: center; }
.glyph { width: 46px; height: 46px; border-radius: 16px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); }
.glyph svg { width: 24px; height: 24px; }
.med-top div { flex: 1; min-width: 0; }
.med-top b { font-size: 17px; display: block; }
.med-top span { color: var(--mute); font-size: 13px; }
.stock { margin-top: 16px; }
.stock-l { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); margin-bottom: 8px; }
.stock-l b { color: var(--ink); font-family: var(--num); }
.meter { height: 6px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--c); transform-origin: left; animation: grow 1.1s var(--out) both .2s; }
@keyframes grow { from { transform: scaleX(0); } }
.reorder { margin-top: 12px; display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 10px 12px; border-radius: 14px; background: rgba(255,184,107,.1); color: var(--warn); }
.reorder svg { width: 18px; height: 18px; flex: none; }
.fab { position: fixed; right: 20px; bottom: calc(var(--sb) + 96px); width: 60px; height: 60px; border-radius: 30px; background: var(--ink); color: #0b0c10; display: grid; place-items: center; z-index: 5; box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .4s var(--spring); animation: fabIn .7s var(--spring) both .3s; }
.fab svg { width: 26px; height: 26px; stroke-width: 2.2; }
.fab:active { transform: scale(.88) rotate(90deg); }
@keyframes fabIn { from { transform: scale(0) rotate(-90deg); } }

/* tabs */
#tabs { position: fixed; z-index: 10; left: 50%; transform: translateX(-50%); bottom: calc(var(--sb) + 12px); display: flex; padding: 6px; border-radius: 30px; background: rgba(22,23,30,.72); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 16px 40px rgba(0,0,0,.45); animation: tabsIn .8s var(--spring) both; }
@keyframes tabsIn { from { transform: translate(-50%, 120px); } }
#tabs button { position: relative; z-index: 1; width: 74px; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--faint); transition: color .35s; }
#tabs button svg { width: 23px; height: 23px; transition: transform .45s var(--spring); }
#tabs button b { font-size: 10.5px; font-weight: 600; }
#tabs button.on { color: var(--ink); }
#tabs button.on svg { transform: translateY(-1px) scale(1.08); }
#tabs .pill { position: absolute; top: 6px; left: 6px; width: 74px; height: 54px; border-radius: 24px; background: rgba(255,255,255,.1); transition: transform .55s var(--spring); }

/* sheet */
#sheet { position: fixed; inset: 0; z-index: 40; }
#sheet .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s; }
#sheet .panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; border-radius: 30px 30px 0 0; background: #13141b; border-top: 1px solid rgba(255,255,255,.1); transform: translateY(100%); transition: transform .5s var(--out); display: flex; flex-direction: column; }
#sheet.open .scrim { opacity: 1; } #sheet.open .panel { transform: none; }
#sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.2); margin: 10px auto 4px; flex: none; }
.sheet-body { overflow-y: auto; padding: 10px 20px calc(var(--sb) + 22px); -webkit-overflow-scrolling: touch; }
.sheet-body h2 { font-size: 24px; letter-spacing: -.02em; margin: 6px 0 4px; }
.sheet-body .sub { color: var(--mute); font-size: 14px; margin-bottom: 18px; }
.acts { display: grid; gap: 10px; }
.act { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-align: left; transition: transform .3s var(--spring), background .2s; }
.act:active { transform: scale(.97); background: var(--card2); }
.act .ai { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.07); flex: none; }
.act .ai svg { width: 21px; height: 21px; }
.act b { display: block; font-size: 16px; font-weight: 620; } .act span { font-size: 13px; color: var(--mute); }
.act.ok .ai { background: rgba(126,224,176,.15); color: var(--ok); } .act.bad .ai { background: rgba(255,122,133,.14); color: var(--bad); } .act.warn .ai { background: rgba(255,184,107,.14); color: var(--warn); }
.act input[type=time], .act input[type=datetime-local] { margin-left: auto; background: rgba(255,255,255,.08); border: 0; border-radius: 10px; padding: 8px 10px; font-family: var(--num); }

/* form */
.f { margin-bottom: 18px; }
.f > label { display: block; font-size: 12.5px; color: var(--mute); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin: 0 4px 8px; }
.in { width: 100%; height: 52px; padding: 0 16px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid var(--line); outline: none; font-size: 17px; transition: border-color .2s, background .2s; }
.in:focus { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.09); }
textarea.in { height: 84px; padding: 14px 16px; resize: none; }
.in.big { height: 62px; font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
.seg { display: flex; padding: 4px; border-radius: 16px; background: rgba(255,255,255,.06); position: relative; }
.seg button { flex: 1; height: 42px; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--mute); position: relative; z-index: 1; transition: color .3s; }
.seg button.on { color: var(--ink); background: rgba(255,255,255,.12); animation: segIn .4s var(--spring); }
@keyframes segIn { from { transform: scale(.9); } }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button { width: 38px; height: 38px; border-radius: 19px; background: var(--c); transition: transform .35s var(--spring), box-shadow .3s; }
.swatches button.on { transform: scale(1.12); box-shadow: 0 0 0 3px #13141b, 0 0 0 5px var(--c); }
.times { display: flex; flex-wrap: wrap; gap: 8px; }
.times .tp { display: flex; align-items: center; background: rgba(255,255,255,.07); border-radius: 14px; padding: 0 6px 0 12px; height: 46px; animation: rise .4s var(--spring); }
.times .tp input { background: none; border: 0; font: 600 17px var(--num); width: 74px; }
.times .tp button { width: 30px; height: 30px; color: var(--faint); font-size: 20px; }
.times .add { height: 46px; padding: 0 16px; border-radius: 14px; border: 1px dashed rgba(255,255,255,.2); color: var(--mute); font-weight: 600; }
.days { display: flex; gap: 6px; }
.days button { flex: 1; height: 42px; border-radius: 13px; background: rgba(255,255,255,.06); font-size: 13px; font-weight: 650; color: var(--faint); transition: all .3s var(--spring); }
.days button.on { background: var(--c, var(--acc)); color: #0b0c10; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.hint { font-size: 13px; color: var(--faint); margin: 8px 4px 0; line-height: 1.45; }
.stepper { display: flex; align-items: center; height: 52px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.stepper button { width: 46px; height: 100%; font-size: 22px; color: var(--mute); }
.stepper input { flex: 1; min-width: 0; text-align: center; background: none; border: 0; font: 650 19px var(--num); outline: none; }
.toggle { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.05); }
.sw { width: 52px; height: 32px; border-radius: 16px; background: rgba(255,255,255,.14); position: relative; transition: background .3s; flex: none; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 13px; background: #fff; transition: transform .4s var(--spring); }
.sw.on { background: var(--ok); } .sw.on::after { transform: translateX(20px); }

/* stats */
.kpis { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.kpi { padding: 18px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.kpi.hero2 { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, rgba(126,224,176,.14), rgba(255,255,255,.03)); }
.kpi small { color: var(--mute); font-size: 12.5px; font-weight: 600; }
.kpi b { display: block; font: 700 30px/1.05 var(--num); letter-spacing: -.03em; margin-top: 6px; }
.kpi.hero2 b { font-size: 58px; }
.kpi b sup { font-size: .45em; color: var(--mute); margin-left: 2px; vertical-align: .9em; }
.kpi span { font-size: 12.5px; color: var(--faint); }
.heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 16px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.heat .dn { font-size: 11px; color: var(--faint); text-align: center; font-weight: 600; }
.heat button { aspect-ratio: 1; border-radius: 9px; background: rgba(255,255,255,.05); font: 600 11px var(--num); color: var(--faint); animation: cell .5s var(--spring) both; animation-delay: calc(var(--i) * 12ms); }
@keyframes cell { from { transform: scale(.3); opacity: 0; } }
.heat button.l1 { background: rgba(255,122,133,.55); color: #fff; } .heat button.l2 { background: rgba(255,184,107,.55); color: #fff; }
.heat button.l3 { background: rgba(126,224,176,.35); color: #fff; } .heat button.l4 { background: var(--ok); color: #0b0c10; }
.heat button.today { box-shadow: inset 0 0 0 2px var(--ink); }
.heat button.fut { opacity: .25; }
.legend { display: flex; gap: 12px; justify-content: center; font-size: 12px; color: var(--faint); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.bars { padding: 16px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.bar-r { --c: var(--acc); margin-bottom: 14px; } .bar-r:last-child { margin-bottom: 0; }
.bar-r .bl { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 7px; } .bar-r .bl span { color: var(--mute); font-family: var(--num); }
.list { border-radius: 24px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.li .d { width: 46px; text-align: center; flex: none; } .li .d b { display: block; font: 700 20px/1 var(--num); } .li .d small { font-size: 11px; color: var(--faint); text-transform: uppercase; }
.li .x { flex: 1; font-size: 14px; color: var(--mute); } .li .x b { color: var(--ink); display: block; font-size: 15px; font-weight: 600; }
.dots { display: flex; gap: 4px; flex-wrap: wrap; } .dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--c); }
.spark { width: 100%; height: 120px; padding: 16px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.spark path.a { fill: url(#g2); stroke: none; } .spark path.l { stroke: var(--ok); stroke-width: 2.2; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 1.6s var(--out) forwards .2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.insight { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 20px; background: rgba(201,184,255,.08); border: 1px solid rgba(201,184,255,.15); margin-bottom: 10px; font-size: 14px; line-height: 1.45; }
.insight svg { width: 20px; height: 20px; color: var(--acc); flex: none; margin-top: 1px; }

/* pin */
.pin { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--st) 30px var(--sb); z-index: 2; }
.logo { width: 84px; height: 84px; margin-bottom: 18px; animation: float 5s ease-in-out infinite; }
.pin h1 { font-size: 30px; letter-spacing: -.03em; } .pin p { color: var(--mute); margin: 6px 0 28px; font-size: 15px; }
.pdots { display: flex; gap: 16px; margin-bottom: 40px; }
.pdots i { width: 14px; height: 14px; border-radius: 7px; border: 1.5px solid var(--faint); transition: all .3s var(--spring); }
.pdots i.on { background: var(--ink); border-color: var(--ink); transform: scale(1.15); }
.pdots.shake { animation: shake .5s; }
@keyframes shake { 20%, 60% { transform: translateX(-12px); } 40%, 80% { transform: translateX(12px); } }
.pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 16px 26px; }
.pad button { width: 76px; height: 76px; border-radius: 38px; background: rgba(255,255,255,.07); font: 500 30px var(--num); transition: transform .25s var(--spring), background .2s; }
.pad button:active { transform: scale(.88); background: rgba(255,255,255,.18); }
.pad button.ghost { background: none; font-size: 16px; color: var(--mute); }

#toast { position: fixed; left: 50%; top: calc(var(--st) + 10px); transform: translate(-50%, -140%); z-index: 70; padding: 12px 18px; border-radius: 20px; background: rgba(30,31,40,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.1); font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; transition: transform .55s var(--spring); white-space: nowrap; }
#toast.on { transform: translate(-50%, 0); }
#toast button { color: var(--acc); font-weight: 700; padding-left: 6px; }
.card { padding: 18px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); margin-bottom: 12px; }
.card p { color: var(--mute); font-size: 14px; line-height: 1.5; }
.card h4 { font-size: 16px; margin-bottom: 6px; }
.steps { padding-left: 20px; color: var(--mute); font-size: 14px; line-height: 1.8; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 16px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 8px; border-radius: 18px; transition: background .35s, transform .35s var(--spring); }
.wd:active { transform: scale(.9); }
.wd small { font-size: 11px; color: var(--faint); font-weight: 600; }
.wd b { font-size: 17px; font-weight: 650; }
.wd svg { width: 20px; height: 20px; }
.wd.on { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.wd.on small { color: var(--mute); }
.grid2 > *, .grid3 > * { min-width: 0; }
.stepper input { width: 100%; }
.swatches { justify-content: space-between; gap: 0; }
.swatches button { width: 34px; height: 34px; }
.hero { grid-template-columns: 124px 1fr; gap: 18px; }
.ring { width: 124px; height: 124px; }
.ring .c b { font-size: 34px; }
.hero h2 { font-size: 19px; }
.next { grid-column: 1 / -1; margin-top: 0; justify-self: start; }
.next i { flex: none; }
.btn svg { width: 20px; height: 20px; flex: none; stroke-width: 2.2; }
.act { flex-wrap: wrap; }
.act > div:not(.ctl) { flex: 1; min-width: 0; }
.act .ctl { display: flex; gap: 8px; width: 100%; padding-left: 54px; }
.act .ctl input { flex: 1; min-width: 0; margin: 0; height: 42px; background: rgba(255,255,255,.08); border: 0; border-radius: 12px; padding: 0 12px; font: 600 16px var(--num); }
.act .ctl .btn { height: 42px; padding: 0 16px; font-size: 15px; }
.times .tp input { width: 96px; }

/* editor fixes: iOS date input intrinsic width, cramped 3-up steppers, flex parts */
.in.date { -webkit-appearance: none; appearance: none; width: 100%; min-width: 0; display: flex; align-items: center; justify-content: center; }
.in.date::-webkit-date-and-time-value { text-align: center; }
.grid3 .stepper button { width: 30px; flex: none; font-size: 19px; }
.stepper input { padding: 0; }
.days.parts { grid-template-columns: repeat(4, 1fr); }
.days.parts button { font-size: 14px; }
#sheet .panel { max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom); }
