*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{height:100%;margin:0}body{background:var(--background);color:var(--text);overscroll-behavior:none;-webkit-font-smoothing:antialiased;font-family:-apple-system,BlinkMacSystemFont,SF Pro Rounded,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-weight:600}button,input,select{font:inherit;color:inherit}button{cursor:pointer;background:0 0;border:0;padding:0}button:disabled{cursor:default}a{color:var(--accent)}.app{max-width:430px;height:100%;padding:max(12px, env(safe-area-inset-top)) 20px max(12px, env(safe-area-inset-bottom));flex-direction:column;margin:0 auto;display:flex;position:relative;overflow:hidden}@media (width>=500px){.app{border-radius:36px;height:min(100%,900px);margin-top:max(0px,50vh - 450px);box-shadow:0 0 0 1px #ffffff14}}.header{align-items:center;gap:10px;margin-bottom:16px;display:flex}.wordmark{letter-spacing:-.01em;white-space:nowrap;font-family:ui-rounded,SF Pro Rounded,-apple-system,BlinkMacSystemFont,Nunito,sans-serif;font-weight:900}.header .wordmark{flex:1}.card{background:var(--surface);border-radius:24px}.card.small{border-radius:18px}.icon-btn{background:var(--surface);width:44px;height:44px;color:var(--text);border-radius:15px;place-items:center;display:grid}.icon-btn.lg{border-radius:20px;width:60px;height:60px}.icon-btn:active,.pill:active,.chip:active{opacity:.8}.pill{background:var(--accent);height:60px;color:var(--background);border-radius:20px;justify-content:center;align-items:center;gap:10px;width:100%;font-size:16px;font-weight:800;display:flex}.pill.secondary{background:var(--surface);color:var(--food);height:52px}.pill:disabled{opacity:.45}.pill small{opacity:.8;font-size:12px;font-weight:700}.chip{background:var(--surface);color:var(--text);border-radius:999px;align-items:center;gap:6px;padding:7px 11px;font-size:12px;font-weight:800;display:inline-flex}.chip.off{opacity:.5}.chip .dot{border:1.5px solid;border-radius:50%;width:8px;height:8px}.chip.off .dot{background:0 0!important}.badge{border-radius:50%;flex:none;place-items:center;display:inline-grid}.section-title{color:var(--textMuted);text-transform:uppercase;letter-spacing:1px;font-size:13px;font-weight:800}.muted{color:var(--textMuted)}.row{align-items:center;gap:12px;display:flex}.grow{flex:1;min-width:0}.safety{border:1px solid;border-radius:24px;flex-direction:column;gap:14px;padding:18px;display:flex}.safety .icon{width:48px;height:48px;color:var(--background);border-radius:50%;flex:none;place-items:center;display:grid}.safety h2{margin:0;font-size:22px;font-weight:800}.safety p{opacity:.75;margin:2px 0 0;font-size:14px}.bars{gap:5px;display:flex}.bars.dense{gap:3px}.bar{border-radius:5px;flex:1;height:10px;position:relative;overflow:hidden}.bar .fill{width:var(--fill);border-radius:5px;position:absolute;inset:0}.bar.current{box-shadow:inset 0 0 0 1.5px #fffc}.bars-footer,.safety-footer{opacity:.75;font-variant-numeric:tabular-nums;justify-content:space-between;font-size:12px;display:flex}.bars-footer{opacity:.5;margin-top:6px;font-size:10px}.value-row{justify-content:space-between;align-items:center;margin:10px 0;padding:0 4px;display:flex}.value{letter-spacing:-1.5px;font-variant-numeric:tabular-nums;font-size:44px;font-weight:800}.value small{color:var(--textMuted);letter-spacing:0;margin-left:6px;font-size:16px}.value-side{text-align:right}.value-side .label{color:var(--textMuted);font-size:12px}.value-side .big{font-size:16px;font-weight:800}.chart-wrap{flex:1;min-height:200px;max-height:320px;position:relative}.chart-wrap canvas{touch-action:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;display:block}.now-btn{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:var(--text);background:#ffffff24;border-radius:999px;align-items:center;gap:4px;padding:6px 10px;font-size:12px;font-weight:800;display:inline-flex;position:absolute;top:8px;right:8px}.legend{align-items:center;gap:8px;margin:10px 0 0;display:flex}.legend .divider{background:var(--textMuted);opacity:.35;width:1px;height:22px}.actions{gap:12px;margin-top:auto;padding-top:14px;display:flex}.sheet{background:var(--background);z-index:10;padding:max(12px, env(safe-area-inset-top)) 20px max(12px, env(safe-area-inset-bottom));flex-direction:column;animation:.25s ease-out rise;display:flex;position:absolute;inset:0}@keyframes rise{0%{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}.sheet-header{grid-template-columns:1fr auto 1fr;align-items:center;height:44px;margin-bottom:12px;display:grid}.sheet-header .close{color:var(--textMuted);justify-self:start;align-items:center;gap:2px;padding:8px 12px 8px 0;font-size:16px;font-weight:600;display:inline-flex}.sheet-header h1{text-align:center;margin:0;font-size:17px;font-weight:800}.sheet-body{flex-direction:column;flex:1;gap:22px;padding-bottom:12px;display:flex;overflow:hidden auto}.sheet-footer{flex-direction:column;gap:10px;padding-top:14px;display:flex;box-shadow:0 -10px 18px -10px #00000073}.preset-grid{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.preset{background:var(--surface);color:var(--text);white-space:nowrap;border:1.5px solid #0000;border-radius:16px;flex:auto;justify-content:center;align-items:center;gap:8px;padding:8px 14px 8px 8px;font-size:14px;font-weight:800;display:inline-flex}.preset.selected{background:color-mix(in srgb, var(--accent) 22%, transparent);border-color:var(--accent)}.customize{flex-direction:column;flex:1;min-height:150px;display:flex}.customize .wheels{flex:1}.wheels{gap:10px;display:flex}.wheel{background:var(--surface);text-align:center;border-radius:18px;flex-direction:column;flex:1;padding:10px 8px 12px;display:flex}.wheel label{color:var(--textMuted);margin-bottom:6px;font-size:12px;font-weight:800;display:block}.wheel select{background:var(--surfaceDeep);text-align:center;appearance:none;text-align-last:center;border:0;border-radius:12px;flex:1;width:100%;padding:10px 6px;font-size:16px;font-weight:800}.field{align-items:center;gap:10px;padding:16px;display:flex}.field input[type=datetime-local]{background:var(--surfaceDeep);color:var(--text);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;border:0;border-radius:12px;padding:8px 10px;font-weight:700}.link-btn{color:var(--textMuted);align-items:center;gap:6px;padding-left:4px;font-size:13px;font-weight:800;display:inline-flex}.list{flex-direction:column;gap:8px;display:flex}.item{background:var(--surface);border-radius:20px;align-items:center;gap:14px;padding:12px;display:flex}.item .name{font-size:17px;font-weight:800}.item .sub{color:var(--textMuted);white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:500;overflow:hidden}.item .time{font-variant-numeric:tabular-nums;text-align:right;font-size:17px;font-weight:800}.item .grams{color:var(--accent);font-size:13px;font-weight:800}.item .mini{background:var(--surfaceDeep);border-radius:50%;place-items:center;width:34px;height:34px;display:grid}.tile{background:var(--surface);text-align:left;border-radius:24px;align-items:center;gap:16px;width:100%;padding:16px;display:flex}.tile .icon{width:60px;height:60px;color:var(--background);border-radius:50%;flex:none;place-items:center;display:grid}.tile h3{margin:0;font-size:18px;font-weight:800}.tile p{color:var(--textMuted);margin:4px 0 0;font-size:13px;font-weight:500}.segmented{background:var(--surfaceDeep);border-radius:16px;gap:4px;padding:4px;display:flex}.segmented button{border-radius:12px;flex:1;padding:10px;font-size:15px;font-weight:800}.segmented button.on{background:var(--accent);color:var(--background)}.strip{scrollbar-width:none;scroll-snap-type:x proximity;gap:6px;padding:0 4px;display:flex;overflow-x:auto}.strip::-webkit-scrollbar{display:none}.strip button{width:48px;height:44px;color:var(--textMuted);scroll-snap-align:center;border-radius:12px;flex:none;font-size:18px;font-weight:500}.strip button.on{background:var(--accent);color:var(--background);font-weight:800}.search{background:var(--surfaceDeep);width:100%;color:var(--text);border:1px solid #ffffff1f;border-radius:14px;padding:12px 14px;font-weight:600}.limit-tile{text-align:left;background:var(--surfaceDeep);border:1.5px solid #0000;border-radius:14px;flex:1;padding:10px 12px}.limit-tile.on{border-color:var(--accent)}.limit-tile .t{color:var(--textMuted);justify-content:space-between;font-size:11px;font-weight:800;display:flex}.limit-tile .v{font-size:20px;font-weight:800}.limit-tile.on .v{color:var(--accent)}.limit-tile:disabled{opacity:.5}.info-card{background:var(--surface);border-radius:24px;flex-direction:column;gap:12px;padding:16px;display:flex}.info-card h3{align-items:center;gap:8px;margin:0;font-size:17px;font-weight:800;display:flex}.info-card h3:before{content:"";background:var(--bar,var(--accent));border-radius:2px;width:4px;height:16px}.info-card p{opacity:.85;margin:0;font-size:14px;font-weight:500;line-height:1.45}.bullet{opacity:.85;align-items:flex-start;gap:12px;font-size:14px;font-weight:500;display:flex}.bullet .b{background:var(--surfaceDeep);width:30px;height:30px;color:var(--teal);border-radius:50%;flex:none;place-items:center;display:grid}.source{color:var(--text);align-items:flex-start;gap:10px;font-size:13px;font-weight:600;text-decoration:none;display:flex}.source .arrow{color:var(--textMuted);margin-left:auto}.disclaimer{text-align:center;flex-direction:column;flex:1;justify-content:center;gap:18px;padding:24px 8px;display:flex;overflow-y:auto}.disclaimer p{margin:0;font-size:16px;font-weight:500;line-height:1.5}.disclaimer p.bold{font-weight:800}.disclaimer p.last{color:var(--textMuted);font-size:14px}.fade{animation:.7s ease-in both fadein}@keyframes fadein{0%{opacity:0}to{opacity:1}}
