:root{--bg: #f6f7f9;--surface: #fff;--ink: #1b1f24;--muted: #6b7380;--line: #eceef2;--tonal: #e7ebf0;--green: #2e7d32;--lightgreen: #7cb342;--yellow: #b58100;--yellow-dot: #f2b705;--orange: #e8590c;--red: #d32f2f;--grey: #9aa3af;--blue1: #64a6e8;--blue2: #1e63b5;--nav: 72px;--r: 16px}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;background:var(--bg)}body{font-family:Rubik,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:var(--ink);padding-bottom:calc(var(--nav) + 24px + env(safe-area-inset-bottom))}button,input,select{font-family:inherit}.wrap{max-width:480px;margin:0 auto}.top{display:flex;align-items:center;justify-content:space-between;padding:14px 20px 4px}.top h1{font-size:24px;font-weight:600;margin:0}.top .date{font-size:13px;color:var(--muted);margin-top:2px}.btn{min-height:48px;padding:0 18px;border-radius:14px;border:1px solid var(--line);background:var(--surface);font-size:15px;font-weight:600;color:var(--ink);cursor:pointer}.btn.primary{background:var(--ink);color:#fff;border-color:var(--ink)}.btn.tonal{background:var(--tonal);border-color:var(--tonal)}.btn:active{opacity:.8}.icon-btn{width:48px;height:48px;border-radius:50%;border:0;background:transparent;font-size:22px;cursor:pointer;color:var(--ink)}.card{margin:12px 16px 0;background:var(--surface);border-radius:var(--r);padding:14px 16px}.row1{display:flex;justify-content:space-between;align-items:center;gap:8px}.muted{color:var(--muted);font-size:13px}.big{font-size:28px;font-weight:700;font-variant-numeric:tabular-nums}.bar{position:relative;height:10px;border-radius:5px;background:var(--line);margin-top:10px;overflow:hidden}.bar i{display:block;height:100%;border-radius:5px}.bar b{position:absolute;top:0;bottom:0;width:2px;background:#fff}.ticks{position:relative;height:16px;font-size:10px;color:var(--muted)}.ticks span{position:absolute;top:2px;transform:translate(50%)}.btnrow{display:flex;gap:8px;margin-top:12px}.btnrow .btn{flex:1 1 auto;white-space:nowrap;padding:0 14px}.btnrow .btn.primary{flex:2 1 auto}.btn:disabled{opacity:.45;cursor:default}.tree-h{display:flex;justify-content:space-between;align-items:baseline;margin:22px 20px 4px}.tree-h h2{margin:0;font-size:18px;font-weight:600}.grp{margin:12px 16px 0;background:var(--surface);border-radius:20px;border:1.5px solid var(--line);overflow:hidden}.grp-h{width:100%;display:flex;align-items:center;gap:12px;padding:14px 16px;min-height:72px;background:transparent;border:0;color:var(--ink);cursor:pointer;text-align:right}.grp-ic{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;font-size:22px;flex:none;background:#f1f3f6}.grp-t{flex:1;min-width:0}.grp-t b{display:block;font-size:17px;font-weight:600}.grp-t span{display:block;font-size:13px;color:var(--muted);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.grp-s{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none}.chip{font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px;background:var(--surface);border:1px solid var(--line);white-space:nowrap}.chev{font-size:14px;color:var(--muted);flex:none;transition:transform .2s}.grp-b{padding:0 12px 12px}.sub-h{font-size:13px;font-weight:600;color:var(--muted);margin:10px 6px 8px;display:flex;justify-content:space-between}.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tile{background:var(--surface);border-radius:var(--r);padding:14px;display:flex;flex-direction:column;gap:6px;border:1px solid var(--line);min-width:0}.tile .top2{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}.tile .rw{position:relative;width:64px;height:64px;flex:none}.tile .rw .n{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}.tile .nm{font-size:15px;font-weight:500;overflow-wrap:anywhere}.tile .lb{font-size:12px;color:var(--muted)}.tile .st{display:flex;gap:8px;margin-top:auto;padding-top:6px}.tile .st button{flex:1;height:48px;border-radius:14px;border:1px solid var(--line);background:var(--surface);font-size:24px;color:var(--ink);cursor:pointer}.tile .st button.p{background:var(--tonal);border-color:var(--tonal)}.list{background:var(--surface);border-radius:var(--r);margin:12px 16px 0;overflow:hidden}.li{display:flex;align-items:center;gap:12px;min-height:60px;padding:10px 16px;border-top:1px solid var(--line)}.li:first-child{border-top:0}.li .main{flex:1;min-width:0}.li .name{font-size:15px;font-weight:500}.sec-h{margin:20px 20px 0;font-size:15px;font-weight:600;display:flex;justify-content:space-between}nav.bottom{position:fixed;bottom:0;left:0;right:0;height:calc(var(--nav) + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);display:flex;justify-content:center;z-index:5}nav.bottom .in{display:flex;width:100%;max-width:480px}nav.bottom button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:12px;color:var(--muted);background:none;border:0;cursor:pointer}nav.bottom button .pill{width:56px;height:30px;border-radius:15px;display:grid;place-items:center;font-size:18px}nav.bottom button.on{color:var(--ink);font-weight:600}nav.bottom button.on .pill{background:var(--tonal)}.snack{position:fixed;left:16px;right:16px;bottom:calc(var(--nav) + 12px + env(safe-area-inset-bottom));max-width:448px;margin:0 auto;background:#2b3038;color:#fff;border-radius:12px;padding:0 8px 0 16px;min-height:48px;display:flex;align-items:center;justify-content:space-between;font-size:14px;z-index:8}.snack button{background:none;border:0;color:#9cc4ff;font-weight:600;font-size:14px;min-height:48px;padding:0 12px;cursor:pointer}.sheet-bg{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000052;z-index:6}.sheet{position:absolute;bottom:0;left:0;right:0;max-width:480px;margin:0 auto;background:var(--surface);border-radius:24px 24px 0 0;padding:12px 16px calc(20px + env(safe-area-inset-bottom));max-height:88vh;overflow:auto}.grab{width:36px;height:4px;border-radius:2px;background:var(--line);margin:0 auto 12px}.sheet h3{margin:0 0 10px;font-size:20px;font-weight:600}.field{display:block;font-size:13px;color:var(--muted);margin:10px 0 6px}.input{width:100%;height:48px;border:1px solid var(--line);border-radius:12px;font-size:16px;padding:0 12px;background:#fff;min-width:0}.two{display:flex;gap:10px}.two>*{flex:1;min-width:0}.pchips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.pchips button{min-height:44px;min-width:44px;padding:0 12px;border-radius:22px;border:1px solid var(--line);background:#fff;font-size:13px;cursor:pointer}.pchips button.on{background:var(--ink);color:#fff;border-color:var(--ink)}.qty{display:flex;align-items:center;gap:8px}.qty button{width:48px;height:48px;border-radius:50%;border:1px solid var(--line);background:#fff;font-size:22px;cursor:pointer}.qty .v{min-width:64px;text-align:center;font-weight:600;font-variant-numeric:tabular-nums}.check{display:flex;align-items:center;gap:10px;min-height:48px;font-size:15px}.check input{width:22px;height:22px}.empty{text-align:center;color:var(--muted);padding:24px;font-size:14px}.hours{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.hours button{height:44px;border-radius:12px;border:1px solid var(--line);background:#fff;font-size:15px;font-variant-numeric:tabular-nums;cursor:pointer}.hours button.on,.pchips button.on{background:var(--ink);color:#fff;border-color:var(--ink)}.picked{margin-top:12px;padding:10px 12px;border-radius:12px;background:var(--tonal);font-weight:600;text-align:center}.prow{display:flex;align-items:center;gap:8px;margin-top:8px}.prow .pl{font-size:12px;color:var(--muted);width:40px;flex:none}.prow .pbar{flex:1;height:8px;border-radius:4px;background:var(--line);overflow:hidden;min-width:20px}.prow .pbar i{display:block;height:100%;border-radius:4px}.prow .pv{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.timebtn{min-width:56px;height:44px;padding:0 8px;border-radius:10px;border:1px solid var(--line);background:#fff;font-size:14px;font-variant-numeric:tabular-nums;cursor:pointer}.snack>span:last-child{display:flex}.preview{margin-top:12px;padding:12px;border-radius:12px;background:var(--tonal);display:flex;flex-direction:column;gap:4px;font-size:14px}.preview .warn{color:var(--red);font-weight:600}.balance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px;text-align:center}.balance .big{font-size:22px}.burnbtn{background:var(--tonal);border:0;border-radius:14px;padding:8px 4px;cursor:pointer;font-family:inherit;color:var(--ink);min-height:48px}.scanvideo{width:100%;max-height:40vh;border-radius:14px;background:#000;object-fit:cover}.btn.photo{display:grid;place-items:center;width:100%;margin-bottom:10px;background:var(--ink);color:#fff;border-color:var(--ink)}.steps{display:flex;align-items:center;gap:10px;margin-top:12px}.steps .muted{flex:1}.steps .input{width:110px;flex:none;text-align:center}.prow{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"l v" "b b";gap:4px 8px;margin-top:8px}.prow .pl{grid-area:l;width:auto}.prow .pv{grid-area:v;justify-self:end;font-size:13px}.prow .pbar{grid-area:b;min-width:0;height:6px}.sheet-close{position:absolute;top:10px;left:12px;width:44px;height:44px;border-radius:50%;border:0;background:var(--tonal);font-size:18px;cursor:pointer}.sheet{position:absolute}.timebtn span{font-size:11px;margin-inline-start:2px}.pchips .pl{align-self:center;font-size:13px;color:var(--muted);margin-inline-end:2px}.mb-chips{margin-top:10px}.mb-chips.short{max-height:150px;overflow-y:auto;padding-bottom:2px}.mb-lines{margin-top:10px;border-top:1px solid var(--line)}.mb-line{border-bottom:1px solid var(--line);padding:8px 0}.mb-actions{position:sticky;bottom:calc(-20px - env(safe-area-inset-bottom));background:var(--surface);z-index:1;padding:8px 0 calc(20px + env(safe-area-inset-bottom));margin-bottom:calc(-20px - env(safe-area-inset-bottom))}.noresult{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;flex-wrap:wrap}.noresult .btn{min-height:44px}.kcal-hero{font-size:34px;font-weight:700;font-variant-numeric:tabular-nums;margin-top:6px;line-height:1.15}.kcal-hero small{font-size:15px;font-weight:600;color:var(--muted)}.kcal .bar{margin-top:10px}.kcal-sub{margin-top:8px;font-variant-numeric:tabular-nums}.kcal-steps{margin-top:10px;padding-top:10px;border-top:1px solid var(--line);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}.infobtn{background:none;border:0;font-size:20px;color:var(--muted);min-width:44px;min-height:44px;margin:-12px -12px -12px 0;cursor:pointer}.linkbtn{background:none;border:0;padding:0;color:var(--blue2);font:inherit;font-weight:600;text-decoration:underline;cursor:pointer}.ins-sugg{border:1.5px solid var(--green);background:#eef7ef}.ins-sugg .ttl{font-size:16px;font-weight:600;overflow-wrap:anywhere}.ins-sugg .btnrow .btn{min-width:0;padding:0 10px}.ins-cmp{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 8px;align-items:center;margin-top:10px}.ins-cmp .lbl{min-width:0}.ins-cmp .lbl b{display:block;font-size:15px;font-weight:600}.ins-cmp .lbl span{display:block;font-size:13px;color:var(--muted);margin-top:2px}.ins-badge{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px;white-space:nowrap;border:1px solid currentColor}.ins-seg{display:flex;gap:4px;margin:14px 16px 0;padding:4px;border-radius:14px;background:var(--tonal)}.ins-seg button{flex:1;min-width:0;min-height:44px;border:0;border-radius:10px;background:transparent;font-size:14px;font-weight:600;color:var(--muted);cursor:pointer;font-family:inherit}.ins-seg button.on{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px #00000014}.ins-li{display:flex;align-items:center;gap:10px;min-height:60px;padding:10px 16px;border-top:1px solid var(--line)}.ins-li:first-child{border-top:0}.ins-li .main{flex:1;min-width:0}.ins-li .name{font-size:15px;font-weight:500;overflow-wrap:anywhere}.ins-li .grp-name{font-weight:600}.ins-li .vals{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:4px}.ins-li .now{font-size:17px;font-weight:700;font-variant-numeric:tabular-nums}.ins-m3{display:grid;grid-template-columns:minmax(0,1fr) repeat(3,46px) 50px;align-items:center;gap:0 4px;padding:10px 12px;border-top:1px solid var(--line);min-height:52px}.ins-m3:first-child{border-top:0}.ins-m3.head{min-height:40px;font-size:12px;color:var(--muted);font-weight:600}.ins-m3 .nm{font-size:14px;font-weight:500;overflow-wrap:anywhere;min-width:0}.ins-m3 .c{text-align:center;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}.ins-m3 .c.tot{border-inline-start:1px solid var(--line)}.ins-stat{display:grid;grid-template-columns:minmax(0,1fr) 62px 62px;gap:4px 6px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}.ins-stat.head{border-top:0;padding:6px 0 2px;font-size:12px;color:var(--muted);font-weight:600}.ins-stat .v{text-align:center;font-size:15px;font-weight:700;font-variant-numeric:tabular-nums}.ins-stat .v.prev{font-weight:500;color:var(--muted)}.ins-stat .k{min-width:0;font-size:14px}.ins-stat .k small{display:block;font-size:12px;color:var(--muted);margin-top:2px}.ins-stat .badge{grid-column:1 / -1}.ins-dist{display:flex;height:10px;border-radius:5px;overflow:hidden;background:var(--line);margin-top:8px}.ins-dist i{display:block;height:100%}.ins-legend{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:6px;font-size:12px;color:var(--muted)}.ins-legend span:before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--dot);margin-inline-end:4px}.wavg{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.wavg b{font-size:18px;font-variant-numeric:tabular-nums}.wgoal{margin-top:6px;flex-wrap:wrap}.wdelta{min-width:0}.wdelta .muted{overflow-wrap:anywhere}.wlegend{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:12px;color:var(--muted);justify-content:flex-end}.wlegend span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.wlegend .dot{width:8px;height:8px;border-radius:50%;background:var(--blue1)}.wlegend .ln{width:14px;height:0;border-top:2.5px solid var(--blue2)}.wlegend .ln.goal{border-top:1.5px dashed var(--green)}.wchart{margin-top:8px;width:100%}.wchart svg{display:block;width:100%;height:auto;overflow:visible}button.wli{width:100%;background:transparent;border:0;border-top:1px solid var(--line);font:inherit;color:var(--ink);text-align:right;cursor:pointer}button.wli:first-child{border-top:0}.wli .wkg{font-size:17px;font-variant-numeric:tabular-nums;min-width:48px;text-align:left}.wdays button{min-height:44px;padding:0 16px}.wdate{margin-top:8px}.wqty{margin-top:2px}.wqty button{flex:none}.wqty .input{flex:1;text-align:center;font-size:22px;font-weight:600;font-variant-numeric:tabular-nums}.btn.wsave:disabled{opacity:.4}
