:root{--bg:#F6F5EF;--paper:#fff;--ink:#163B42;--muted:#687A7B;--teal:#2C827A;--mint:#DCEEE8;--coral:#E89C7D;--yellow:#F1CA57;--line:#DCE5E1;--serif:Georgia,serif;--sans:system-ui,-apple-system,sans-serif}*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}html,body{height:100%;overflow:hidden}body{background:#D8E4E1;color:var(--ink);font-family:var(--sans)}button,input{font:inherit}.app{height:100dvh;width:min(100%,560px);margin:auto;background:var(--bg);position:relative;overflow:hidden;box-shadow:0 0 70px #163b4230}.screen{position:absolute;inset:0 0 75px;display:none;opacity:0;transform:translateX(16px)}.screen.active{display:block;animation:enter .4s ease forwards}.scroll{height:100%;overflow-y:auto;padding:calc(13px + env(safe-area-inset-top)) 19px 35px;scrollbar-width:none}.scroll::-webkit-scrollbar{display:none}.top,.page-head{display:flex;align-items:center;justify-content:space-between;min-height:48px;margin-bottom:15px}.brand{font:600 25px var(--serif);letter-spacing:-.05em}.brand span{color:var(--coral);margin-left:2px}.avatar{width:38px;height:38px;background:var(--ink);color:#fff;border:0;border-radius:14px;font-weight:700;font-size:11px}.eyebrow{font-size:10px;letter-spacing:.13em;text-transform:uppercase;font-weight:700;color:var(--teal);margin-bottom:5px}.hero{display:flex;justify-content:space-between;align-items:center;margin:9px 2px 20px}.hero h1,.page-head h1{font:500 33px/1.02 var(--serif);letter-spacing:-.035em}.muted{font-size:13px;color:var(--muted);line-height:1.5;margin-top:8px}.sun{width:137px;height:137px;position:relative;background:linear-gradient(145deg,var(--mint),#F5E8D3);border-radius:43px;overflow:hidden}.sun:before{content:"";position:absolute;width:95px;height:95px;border:1px dashed #2c827a55;border-radius:50%;top:21px;left:21px;animation:orbit 14s linear infinite}.sun i{position:absolute;width:48px;height:48px;border-radius:50%;background:var(--yellow);top:43px;left:44px;box-shadow:0 0 0 10px #f1ca5733;animation:breathe 4s ease-in-out infinite}.sun b,.sun em{position:absolute;width:7px;height:7px;border-radius:50%;background:var(--coral);top:26px;right:22px}.sun em{top:97px;left:23px;background:var(--teal)}.day-card{background:var(--paper);border:1px solid var(--line);border-radius:24px;padding:18px;box-shadow:0 13px 28px #163b420c}.day-head{display:flex;justify-content:space-between;align-items:center}.day-head h2{font:500 24px var(--serif)}.ring{width:49px;height:49px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--teal) 0deg,var(--teal) 0deg,var(--mint) 0deg);position:relative}.ring:after{content:"";position:absolute;inset:5px;border-radius:50%;background:#fff}.ring span{position:relative;z-index:1;font-size:10px;font-weight:700;color:var(--teal)}.dose-list{margin-top:14px}.dose{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding:13px 0;animation:row .35s ease both}.dose-time{font-size:12px;color:var(--muted);width:42px}.dose-mark{width:35px;height:35px;border-radius:12px;background:var(--mint);display:grid;place-items:center;color:var(--teal);font-size:17px}.dose-info{flex:1}.dose-info strong{display:block;font:500 16px var(--serif)}.dose-info small{color:var(--muted);font-size:11px}.done{background:var(--teal);color:white;border:0;width:29px;height:29px;border-radius:10px}.done.pending{background:var(--bg);color:var(--muted);border:1px solid var(--line)}.empty{text-align:center;padding:19px 5px;color:var(--muted)}.empty span{display:grid;place-items:center;margin:auto auto 8px;width:34px;height:34px;border-radius:12px;background:var(--mint);color:var(--teal)}.empty p{font-size:12px}.small-action,.cancel{background:transparent;color:var(--teal);font-size:12px;font-weight:700;border:0;margin-top:10px}.next-card,.privacy,.setting-card,.info-card{display:flex;align-items:center;gap:12px;background:var(--mint);border-radius:18px;padding:14px;margin-top:14px}.next-icon{display:grid;place-items:center;width:35px;height:35px;background:var(--teal);color:#fff;border-radius:12px}.next-card h3{font:500 16px var(--serif)}.arrow{margin-left:auto;font-size:20px;color:var(--teal)}.privacy{background:var(--paper);border:1px solid var(--line);align-items:flex-start}.privacy>span{color:var(--teal);font-size:17px}.privacy p,.setting-card p,.info-card p{font-size:11px;line-height:1.45;color:var(--muted)}.back{background:var(--paper);border:1px solid var(--line);border-radius:12px;width:39px;height:39px;font-size:21px}.page-head>div{flex:1;margin-left:11px}.add-round{width:39px;height:39px;border-radius:13px;background:var(--coral);color:#fff;border:0;font-size:23px}.medicine-list{display:grid;gap:10px}.medicine{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px}.pill{display:grid;place-items:center;width:40px;height:40px;border-radius:14px;background:var(--peach-light,#FCE7DE);color:#A85739;font-size:18px}.medicine h3{font:500 17px var(--serif)}.medicine p{font-size:11px;color:var(--muted);margin-top:3px}.medicine small{margin-left:auto;color:var(--teal);font-weight:700}.empty-full{text-align:center;padding:65px 22px}.empty-full h2{font:500 25px var(--serif);margin:15px 0 6px}.empty-full p{color:var(--muted);font-size:13px;line-height:1.5}.pill-art{display:grid;place-items:center;width:75px;height:75px;margin:auto;border-radius:25px;background:var(--mint);color:var(--teal);font-size:30px;animation:breathe 4s infinite}.primary{display:block;width:100%;border:0;border-radius:14px;background:var(--teal);color:#fff;padding:13px;font-weight:700;margin-top:18px;box-shadow:0 8px 19px #2c827a30}.nav{position:absolute;z-index:5;bottom:calc(8px + env(safe-area-inset-bottom));left:12px;right:12px;height:65px;border:1px solid var(--line);border-radius:22px;background:#fffffff2;display:grid;grid-template-columns:1fr 1fr 60px 1fr;align-items:center;box-shadow:0 12px 32px #163b4215}.nav-item{display:grid;place-items:center;gap:2px;background:none;border:0;color:var(--muted);font-size:19px;height:54px}.nav-item small{font-size:9px}.nav-item.active{color:var(--teal)}.nav-add{width:52px;height:52px;margin:-24px auto 0;border:5px solid var(--bg);border-radius:18px;background:var(--coral);color:#fff;font-size:27px;box-shadow:0 8px 18px #e89c7d55}.setting-card{justify-content:space-between;background:var(--paper);border:1px solid var(--line)}.setting-card h2{font:500 17px var(--serif);margin-bottom:3px}.check{display:grid;place-items:center;width:30px;height:30px;background:var(--mint);border-radius:10px;color:var(--teal)}.toggle{color:#bccac5}.toggle.on{color:var(--teal)}.info-card{display:block;background:#FCE7DE;color:#7d4a38}.info-card h2{font:500 20px var(--serif);margin:5px 0}.info-card p{color:#7d655d}.scrim{position:fixed;inset:0;z-index:20;background:#163b4266;display:flex;align-items:flex-end;justify-content:center}.sheet{width:min(100%,560px);background:var(--bg);border-radius:28px 28px 0 0;padding:12px 20px calc(22px + env(safe-area-inset-bottom));animation:up .35s ease}.handle{display:block;width:42px;height:4px;border-radius:9px;background:var(--line);margin:0 auto 18px}.sheet h2{font:500 27px var(--serif);margin-bottom:5px}.sheet label{display:block;font-size:12px;font-weight:700;margin-top:15px}.sheet label small{color:var(--muted);font-weight:400}.sheet input{display:block;width:100%;border:1px solid var(--line);background:#fff;border-radius:13px;padding:12px;margin-top:6px;color:var(--ink);font-size:16px}.toast{position:fixed;z-index:30;left:50%;bottom:94px;transform:translate(-50%,15px);opacity:0;background:var(--ink);color:#fff;border-radius:99px;padding:10px 15px;font-size:12px;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}@keyframes enter{to{opacity:1;transform:none}}@keyframes row{from{opacity:0;transform:translateY(8px)}}@keyframes up{from{transform:translateY(40px)}}@keyframes breathe{50%{transform:scale(1.06)}}@keyframes orbit{to{transform:rotate(360deg)}}@media(max-width:390px){.hero h1{font-size:29px}.sun{width:118px;height:118px}.sun:before{width:80px;height:80px;top:19px;left:19px}.sun i{top:37px;left:38px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

