*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,sans-serif;background:#E9E7F5;color:#1E1B4B}
button{font-family:inherit;cursor:pointer}
a{color:#4338CA;text-decoration:none}
.app{max-width:480px;margin:0 auto;min-height:100vh;background:#F4F3FA;display:flex;flex-direction:column}
.demo{background:#FEF3C7;color:#78350F;font-size:13px;padding:8px 16px;text-align:center}
.demo a{color:#78350F;font-weight:700;text-decoration:underline}
.hdr{background:#4338CA;color:#fff;padding:20px 20px 56px}
.hdr .top{display:flex;justify-content:space-between;align-items:center;font-weight:700}
.hdr h1{margin:14px 0 2px;font-size:28px;font-weight:800;letter-spacing:-.5px}
.hdr p{margin:0;font-size:14px;color:#E0E7FF}
.bar{background:#fff;padding:12px;display:flex;align-items:center;gap:6px;border-bottom:1px solid #E2E8F0}
.bar h1{margin:0;font-size:20px;font-weight:800}
.bar small{display:block;font-size:12px;color:#64748B}
.back{width:44px;height:44px;border:0;background:none;display:grid;place-items:center;border-radius:12px}
.body{padding:16px;display:flex;flex-direction:column;gap:12px}
.lift{margin-top:-36px}
.card{background:#fff;border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:12px;border:0;text-align:left;color:inherit;width:100%}
.kid{display:flex;align-items:center;gap:10px}
.av{width:40px;height:40px;border-radius:12px;font-weight:800;display:grid;place-items:center;flex:none}
.nm{flex:1}.nm b{display:block;font-size:17px}.nm span{font-size:12px;color:#64748B}
.pill{font-size:12px;font-weight:700;border-radius:999px;padding:5px 10px;white-space:nowrap}
.ok{color:#15803D;background:#DCFCE7}.bad{color:#B91C1C;background:#FEE2E2}.off{color:#475569;background:#F1F5F9}
.meter{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#475569}
.meter .l{display:flex;justify-content:space-between}
.track{height:8px;border-radius:4px;background:#EEF2FF}.fill{height:8px;border-radius:4px;background:#4F46E5}
.alert{background:#FEF2F2;border:1px solid #FECACA;border-radius:16px;padding:12px 14px;display:flex;gap:10px;align-items:center;font-size:13px;color:#7F1D1D}
.alert button{border:0;background:none;color:#B91C1C;font-weight:700;font-size:13px;min-height:44px}
.add{height:52px;border:2px dashed #A5B4FC;border-radius:16px;background:transparent;color:#4338CA;font-weight:600;font-size:15px}
.hero{border-radius:20px;padding:20px;color:#fff;display:flex;flex-direction:column;gap:14px}
.hero b{font-size:20px}.hero span{font-size:13px;opacity:.9}
.hero button{height:48px;border-radius:14px;border:0;background:#fff;font-size:15px;font-weight:700}
.g2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tile{border-radius:16px;padding:14px;min-height:96px;display:flex;flex-direction:column;gap:8px;font-size:15px;font-weight:700;text-align:left;border:1px solid #E2E8F0;background:#fff;color:#1E1B4B}
.tile.p{background:#4338CA;color:#fff;border:0}
.lbl{font-size:13px;font-weight:700;color:#475569;margin:6px 4px 0}
.chips{display:flex;gap:8px}.chips button{flex:1;height:48px;border-radius:12px;border:1px solid #C7D2FE;background:#EEF2FF;color:#3730A3;font-size:15px;font-weight:700}
.list{background:#fff;border-radius:18px;overflow:hidden}
.li{min-height:62px;display:flex;align-items:center;gap:12px;padding:10px 16px;border-bottom:1px solid #F1F5F9;width:100%;background:none;border-left:0;border-right:0;border-top:0;text-align:left;color:inherit;font-size:15px}
.li:last-child{border-bottom:0}.li .t{flex:1}.li .t b{display:block;font-weight:600}.li .t span{font-size:13px;color:#64748B}
.sec{height:48px;border-radius:12px;font-size:15px;font-weight:700}
.pin{width:220px;height:64px;border:2px solid #C7D2FE;border-radius:14px;text-align:center;font:800 32px Inter,sans-serif;letter-spacing:10px;color:#1E1B4B;background:#F8FAFF}
.cta{width:100%;height:56px;border-radius:16px;border:0;background:#4338CA;color:#fff;font-size:17px;font-weight:700}
.sw{width:52px;height:32px;border-radius:16px;border:0;padding:3px;display:flex;flex:none;background:#CBD5E1}
.sw i{width:26px;height:26px;border-radius:13px;background:#fff}
.sw[aria-checked=true]{background:#4338CA;justify-content:flex-end}
.dot{width:10px;height:10px;border-radius:5px;flex:none}
.kids{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}
.kids button{height:40px;padding:0 16px;border-radius:999px;white-space:nowrap;font-size:14px;font-weight:600;border:1px solid #E2E8F0;background:#fff;color:#334155}
.kids button[aria-pressed=true]{background:#4338CA;color:#fff;border-color:#4338CA}
.grow{flex:1}
.nav{position:sticky;bottom:0;background:#fff;border-top:1px solid #E2E8F0;display:flex;justify-content:space-around;padding:8px 0 calc(12px + env(safe-area-inset-bottom))}
.nav button{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:12px;font-weight:500;color:#64748B;min-width:72px;padding:6px 0}
.nav button[aria-current=page]{color:#4338CA;font-weight:700}
.toast{position:fixed;left:50%;bottom:96px;transform:translateX(-50%);background:#1E1B4B;color:#fff;padding:12px 18px;border-radius:12px;font-size:14px;opacity:0;transition:opacity .2s;pointer-events:none;max-width:90vw}
.toast.on{opacity:1}
.center{min-height:70vh;display:grid;place-items:center}
.spin{width:36px;height:36px;border-radius:50%;border:4px solid #C7D2FE;border-top-color:#4338CA;animation:sp 1s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
.authwrap{padding:32px 20px;display:flex;flex-direction:column;gap:16px}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px}
.logo i{width:40px;height:40px;border-radius:12px;background:#4338CA;display:grid;place-items:center}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:14px;font-weight:600;color:#334155}
.field input{height:52px;border:1.5px solid #CBD5E1;border-radius:12px;padding:0 14px;font:500 16px Inter,sans-serif;color:#1E1B4B;background:#fff}
.field input:focus{outline:none;border-color:#4338CA;box-shadow:0 0 0 3px #E0E7FF}
.field small{font-size:12px;color:#64748B}
.link{border:0;background:none;color:#4338CA;font-weight:600;font-size:15px;min-height:44px}
.err{background:#FEF2F2;color:#991B1B;border-radius:12px;padding:10px 14px;font-size:14px}
.info{background:#EEF2FF;color:#3730A3;border-radius:12px;padding:12px 14px;font-size:14px;line-height:1.5}
.cta:disabled{opacity:.6}
.modal{position:fixed;inset:0;background:rgba(30,27,75,.45);display:flex;align-items:flex-end;justify-content:center;z-index:20}
.sheet{background:#fff;width:100%;max-width:480px;border-radius:22px 22px 0 0;padding:22px 18px calc(22px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px}
.sheet h2{margin:0;font-size:20px}
.opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.opts button{height:52px;border-radius:12px;border:1px solid #C7D2FE;background:#EEF2FF;color:#3730A3;font-size:15px;font-weight:700}
.empty{background:#fff;border-radius:18px;padding:28px 20px;text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center}
.empty p{margin:0;color:#475569;font-size:15px;line-height:1.5}
.tile:disabled{opacity:.45}
