:root{--ios-bg: #f2f2f7;--ios-card: #ffffff;--ios-line: rgba(15, 23, 42, .08);--ios-text: #111827;--ios-muted: #6b7280;--ios-blue: #007aff;--ios-purple: #5856d6;--ios-red: #ef4444;--ios-green: #16a34a;--ios-orange: #f59e0b;--settings-cream: #f7f1e5;--settings-sand: #e6dcc7;--settings-olive: #3f5b45;--settings-coral: #cf6d60;--settings-ink: #2f2f29}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%}body{font-family:Avenir Next,SF Pro Text,SF Pro Display,Helvetica Neue,sans-serif;color:var(--ios-text);background:var(--ios-bg)}.ios-bg{background:var(--ios-bg)}.loading-screen{min-height:100vh;display:grid;place-items:center;font-size:1rem;color:var(--ios-muted)}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:1rem;background:radial-gradient(circle at 85% 12%,rgba(207,109,96,.2),transparent 32%),radial-gradient(circle at 12% 90%,rgba(63,91,69,.16),transparent 36%),linear-gradient(155deg,#fcf8ef 0%,var(--settings-cream) 58%,var(--settings-sand) 100%)}.auth-card-ios{width:min(30rem,100%);background:#fffdf9eb;border-radius:1rem;padding:1.2rem;box-shadow:0 16px 36px #2f2f2917;border:1px solid rgba(63,91,69,.14);display:grid;gap:1rem}.auth-logo-wrap{text-align:center;display:grid;gap:.5rem}.auth-logo{width:84px;height:84px;margin:0 auto;border-radius:22px;display:grid;place-items:center;font-size:2.4rem;font-weight:800;color:#fff;background:linear-gradient(138deg,var(--settings-olive),#57735d 65%);box-shadow:0 10px 24px #3f5b4533}.auth-logo-wrap h1{margin:0;font-size:2rem;color:var(--settings-ink)}.auth-logo-wrap p{margin:0;color:#2f2f29b8}.auth-fields{display:grid;gap:.8rem}.auth-signup-top{display:flex;align-items:center;gap:.7rem}.auth-signup-top h2{margin:0;font-size:1.2rem}.auth-card-ios .btn-primary{background:var(--settings-olive)}.auth-card-ios .btn-link{color:var(--settings-coral)}.auth-card-ios .btn-ghost{color:var(--settings-olive);background:#3f5b4514}.auth-card-ios input{border-color:#3f5b4538}.btn-back,.icon-button{border:1px solid var(--ios-line);background:#fff;border-radius:.7rem;width:2rem;height:2rem;display:grid;place-items:center;cursor:pointer}.field{display:grid;gap:.35rem}.field span{padding-left:.2rem;font-size:.88rem;color:var(--ios-muted);font-weight:600}input,select,textarea,button{font:inherit}input,select,textarea{width:100%;border-radius:.75rem;border:1px solid var(--ios-line);padding:.62rem .72rem;background:#fff;color:var(--ios-text)}textarea{resize:vertical}.btn-primary,.btn-secondary,.btn-danger,.btn-link,.btn-ghost{border:1px solid transparent;border-radius:.75rem;padding:.72rem .9rem;font-weight:600;cursor:pointer}.btn-primary{background:var(--ios-blue);color:#fff}.btn-primary.small,.btn-secondary.small{padding:.6rem .78rem;font-size:.88rem}.btn-secondary,.btn-ghost{background:#0f172a12;color:var(--ios-text)}.btn-danger{width:100%;background:var(--ios-red);color:#fff}.btn-link{background:transparent;color:var(--ios-blue);padding:0;border:0;font-weight:600}.as-label{display:inline-flex;align-items:center;justify-content:center}button:disabled,label:has(input:disabled){opacity:.45;cursor:not-allowed}.server-block{display:grid;gap:.6rem}.server-form{background:#fff;border:1px solid var(--ios-line);border-radius:.9rem;padding:.8rem;display:grid;gap:.6rem}.row-actions{display:flex;flex-wrap:wrap;gap:.55rem}.hint-text{margin:0;font-size:.78rem;color:var(--ios-muted)}.error-text{margin:0;color:#b91c1c;font-size:.9rem;white-space:pre-wrap}.ios-shell{min-height:100vh;max-width:980px;margin:0 auto;padding-bottom:6rem}.ios-main{min-height:100vh}.screen-scroll{padding:.8rem .95rem 1.2rem}.screen-header{position:sticky;top:0;z-index:3;padding-top:.2rem;background:linear-gradient(180deg,var(--ios-bg) 86%,transparent)}.screen-header-top{display:grid;grid-template-columns:minmax(2rem,auto) 1fr minmax(2rem,auto);align-items:center;gap:.5rem;min-height:2.7rem}.header-title-wrap{min-width:0}.header-slot{display:flex;align-items:center}.header-slot.right{justify-content:flex-end}.screen-header h2{margin:0;font-size:1.05rem;text-align:center;line-height:1.2;overflow-wrap:anywhere}.screen-header p{margin:.08rem 0 0;text-align:center;font-size:.82rem;color:var(--ios-muted)}.screen-header input[type=date]{max-width:8.8rem;padding:.38rem .5rem;font-size:.84rem}.screen-section{display:grid;gap:.8rem;padding-top:.5rem}.section-hero{margin:0;font-size:1.45rem}.section-title{margin:.2rem 0 0;font-size:1.15rem}.hero-block{display:grid;gap:.2rem}.hero-block h1{margin:0;font-size:clamp(1.4rem,3.8vw,1.9rem)}.hero-block p{margin:0;color:var(--ios-muted)}.surface-card{background:var(--ios-card);border-radius:.88rem;border:1px solid var(--ios-line);overflow:hidden}.dashboard-balance{display:grid;grid-template-columns:1fr auto 1fr;gap:.7rem;padding:.8rem;align-items:center}.dashboard-wheel-block{display:grid;justify-items:center;gap:.42rem}.dashboard-wheel-block h4{margin:0;font-size:.95rem}.wheel{position:relative;display:inline-grid;place-items:center}.wheel-center{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;line-height:1.15}.wheel-center strong{font-size:1.22rem}.wheel-center span{color:var(--ios-muted);font-size:.72rem}.wheel-value{margin:0;font-size:.76rem;font-weight:600;text-align:center}.wheel-status{margin:0;font-size:.74rem;text-align:center;font-weight:600}.divider{width:1px;background:var(--ios-line);min-height:8.8rem}.good{color:var(--ios-green)}.warn{color:var(--ios-orange)}.bad{color:var(--ios-red)}.chip-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.45rem;padding:.76rem}.summary-chip{display:grid;place-items:center;gap:.1rem;background:#0f172a0b;border-radius:.55rem;padding:.4rem .2rem;text-align:center}.summary-chip strong{font-size:.72rem}.summary-chip span{font-size:.62rem;color:var(--ios-muted)}.mini-trend{padding:.78rem;display:grid;gap:.6rem}.mini-trend-legend{display:flex;gap:.8rem;flex-wrap:wrap;color:var(--ios-muted);font-size:.78rem}.dot{display:inline-block;width:8px;height:8px;border-radius:999px;margin-right:.25rem}.dot.blue{background:var(--ios-blue)}.dot.red{background:#ef4444}.mini-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.35rem;align-items:end}.mini-bar-col{display:grid;justify-items:center;gap:.2rem}.mini-bar-wrap{display:flex;align-items:end;gap:3px;min-height:72px}.bar{width:8px;border-radius:4px;display:block}.bar.consumed{background:#007affd9}.bar.burned{background:#ef4444d9}.mini-bar-col small{color:var(--ios-muted);font-size:.65rem}.recommendation-card{display:grid;grid-template-columns:auto 1fr;gap:.72rem;padding:.82rem;text-align:left}.recommendation-icon{width:1.9rem;height:1.9rem;border-radius:999px;display:grid;place-items:center;background:#007aff24;color:var(--ios-blue);font-weight:700}.recommendation-card h4{margin:0;font-size:1rem}.recommendation-card p,.recommendation-card small{margin:.2rem 0 0;color:var(--ios-muted);font-size:.84rem}.empty-card{padding:1rem;text-align:center}.empty-card p{margin:0}.empty-card small{color:var(--ios-muted)}.date-row{padding:.8rem;display:flex;align-items:center;gap:.8rem;justify-content:space-between}.date-row span{color:var(--ios-muted)}.date-row input{max-width:11rem}.meal-card-ios{display:grid}.meal-hero{width:100%;height:190px;object-fit:cover}.meal-card-content{display:grid;gap:.66rem;padding:.8rem}.meal-head-row{display:flex;justify-content:space-between;gap:.66rem;align-items:flex-start}.meal-head-row>div{min-width:0}.meal-head-row h4{margin:.3rem 0 0;font-size:1.06rem;overflow-wrap:anywhere}.meal-badge{display:inline-flex;font-size:.67rem;font-weight:700;padding:.2rem .55rem;border-radius:999px;background:#0f172a14}.muted{margin:0;color:var(--ios-muted);font-size:.82rem}.alert-list{display:grid;gap:.4rem}.alert-list p{margin:0;padding:.55rem .64rem;border-radius:.6rem;font-size:.8rem;font-weight:600}.alert-list.warn p{background:#ef44441f;color:#991b1b}.alert-list.good p{background:#16a34a1f;color:#166534}.history-day-card{display:grid;gap:.56rem;text-align:left;padding:.8rem}.history-day-top{display:flex;justify-content:space-between;align-items:flex-start;gap:.66rem;flex-wrap:wrap}.history-day-top h4{margin:0;font-size:.96rem}.history-kcal{text-align:right;margin-left:auto}.history-kcal strong{display:block;font-size:1.2rem;line-height:1}.history-kcal small{color:var(--ios-muted);font-size:.64rem}.calories-chart-card{padding:.8rem;display:grid;gap:.65rem}.calories-chart-card h4{margin:0}.calories-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.5rem;align-items:end;min-height:150px}.calorie-col{display:grid;justify-items:center;gap:.25rem}.calorie-col small{color:var(--ios-muted);font-size:.64rem}.calorie-bar{width:100%;max-width:24px;border-radius:6px;background:#007aff59}.day-items{display:grid;gap:.25rem}.day-items h5{margin:0;color:var(--ios-muted)}.item-row{display:flex;justify-content:space-between;gap:.5rem;font-size:.86rem}.item-row small{color:var(--ios-muted)}.targets-intro{padding:.8rem;display:grid;gap:.8rem;grid-template-columns:auto 1fr;align-items:center}.targets-intro h4{margin:0;font-size:1rem}.targets-intro p{margin:.2rem 0;font-size:.85rem;font-weight:700}.targets-intro small{color:var(--ios-muted);font-size:.74rem}.metric-list{display:grid}.metric-row,.metric-line{display:flex;justify-content:space-between;align-items:flex-start;gap:.8rem;padding:.72rem .85rem;border-bottom:1px solid var(--ios-line)}.metric-list .metric-row:last-child,.metric-list .metric-line:last-child{border-bottom:none}.metric-row h4{margin:0;font-size:.92rem}.metric-row small{display:block;margin-top:.22rem;font-size:.74rem}.metric-row strong,.metric-line strong{font-size:.9rem;text-align:right}.recommendation-header-card,.recommendation-detail{padding:.85rem;display:grid;gap:.45rem}.recommendation-header-card h1,.recommendation-detail h4,.recommendation-detail h5{margin:0}.recommendation-header-card p,.recommendation-header-card small,.recommendation-detail p{margin:0;color:var(--ios-muted)}.recommendation-detail ul,.recommendation-detail ol{margin:0;padding-left:1rem;display:grid;gap:.3rem}.recommendation-detail li{font-size:.88rem}.whoop-status-card{padding:.82rem;display:grid;gap:.55rem}.whoop-status-top{display:flex;justify-content:space-between;gap:.55rem;align-items:center}.whoop-meta{display:grid;gap:.2rem}.whoop-meta small{color:var(--ios-muted)}.whoop-daily-calories{padding:.82rem;display:grid;gap:.52rem}.whoop-kcal-head{display:flex;justify-content:space-between;align-items:baseline;gap:.6rem}.whoop-kcal-head strong{font-size:1.4rem;color:var(--ios-blue)}.whoop-kcal-head small{color:var(--ios-muted)}.settings-screen{position:relative;border-radius:1.1rem;padding:.8rem;background:radial-gradient(circle at 94% 12%,rgba(207,109,96,.22),transparent 35%),radial-gradient(circle at 9% 96%,rgba(95,128,101,.18),transparent 38%),linear-gradient(165deg,#fcf8ef 0%,var(--settings-cream) 58%,#f1e8d8 100%)}.settings-header-back{width:2.1rem;height:2.1rem;border-radius:.72rem;border-color:#3f5b4538;color:var(--settings-olive);background:#ffffffa6;font-size:1.2rem}.settings-sync-pill{display:inline-flex;align-items:center;justify-content:center;padding:.2rem .5rem;border-radius:999px;font-size:.66rem;font-weight:700;color:var(--settings-olive);background:#3f5b4524;border:1px solid rgba(63,91,69,.22);white-space:nowrap}.settings-screen .screen-header{background:linear-gradient(180deg,rgba(247,241,229,.92) 80%,transparent)}.settings-screen .screen-header h2{color:var(--settings-ink);font-size:1.08rem}.settings-screen .screen-header p{color:#2f2f29b8;font-size:.76rem}.settings-screen .surface-card{border-radius:1rem;border-color:#3f5b4529;background:#fffdf9db;box-shadow:0 8px 24px #2e302b0f}.settings-hero-card{display:grid;gap:.9rem;padding:1rem;background:linear-gradient(145deg,#fffcf6f2,#f5efe2eb 45%,#e8dcc6e6)}.settings-avatar{width:74px;height:74px;border-radius:1.1rem;display:grid;place-items:center;background:linear-gradient(140deg,#69806e,#3f5b45 68%);color:#fff;font-size:1.5rem;font-weight:800;letter-spacing:.05em}.settings-avatar-image{width:74px;height:74px;object-fit:cover;border-radius:1.1rem;border:1px solid rgba(63,91,69,.22)}.settings-hero-copy{display:grid;gap:.3rem}.settings-hero-copy h1{margin:0;color:var(--settings-ink);font-size:clamp(1.22rem,3.5vw,1.55rem)}.settings-hero-copy p{margin:0;color:#2f2f29b8;font-size:.9rem}.settings-tags{display:flex;flex-wrap:wrap;gap:.38rem;margin-top:.35rem}.settings-tag{display:inline-flex;align-items:center;padding:.22rem .58rem;border-radius:999px;font-size:.68rem;font-weight:700;color:#4f5d48;background:#3f5b4524}.settings-tag.admin{color:#7b2f25;background:#cf6d6033}.settings-hero-cta.btn-primary{justify-self:flex-start;min-width:10.3rem;border-radius:.76rem;border-color:transparent;background:linear-gradient(120deg,#cf6d60,#bc5b4f)}.settings-hero-cta.btn-primary:hover{background:linear-gradient(120deg,#bf6155,#aa4e44)}.settings-panel{display:grid;gap:.32rem}.settings-panel-title{margin:.18rem 0 0;color:#4d5f4f;font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.09em}.settings-panel-title.danger{color:#8e3a30}.settings-row-stack{display:grid}.settings-action-row,.settings-toggle-row{width:100%;border:none;border-bottom:1px solid rgba(63,91,69,.16);background:transparent;display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.88rem .95rem;text-align:left;cursor:pointer;transition:background .18s ease,transform .14s ease,opacity .14s ease}.settings-action-row:last-child,.settings-toggle-row:last-child,.settings-select-row:last-child{border-bottom:none}.settings-action-row:hover,.settings-toggle-row:hover{background:#ffffffb3}.settings-action-row:active,.settings-toggle-row:active{transform:translateY(1px);background:#cf6d6017}.settings-action-row:disabled,.settings-toggle-row:disabled{cursor:not-allowed;opacity:.52;transform:none}.settings-row-copy{display:grid;gap:.18rem}.settings-row-copy strong{color:var(--settings-ink);font-size:.89rem}.settings-row-copy small{color:#2f2f29a8;font-size:.76rem}.settings-row-action{color:#556a58;font-size:.78rem;font-weight:700;white-space:nowrap}.settings-action-row.danger .settings-row-copy strong,.settings-action-row.danger .settings-row-action{color:#8e3a30}.settings-switch{position:relative;width:46px;height:28px;border-radius:999px;border:1px solid rgba(63,91,69,.25);background:#3f5b4533;transition:background .18s ease,border-color .18s ease}.settings-switch.on{border-color:#3f5b45f2;background:#3f5b45e6}.settings-switch-thumb{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 2px 4px #11182740;transition:transform .18s ease}.settings-switch.on .settings-switch-thumb{transform:translate(18px)}.settings-select-row{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.88rem .95rem;border-bottom:1px solid rgba(63,91,69,.16)}.settings-select-row label{color:var(--settings-ink);font-size:.88rem;font-weight:700}.settings-select-row select{width:min(56%,210px);border:1px solid rgba(63,91,69,.3);border-radius:.72rem;padding:.54rem .65rem;background:#ffffffeb}.settings-config-card{display:grid;gap:.62rem;padding:.9rem .95rem 1rem}.settings-config-card h4{margin:0;color:var(--settings-ink);font-size:.94rem}.settings-config-card p{margin:0;color:#2f2f29b8;font-size:.79rem}.settings-config-card input{border-color:#3f5b453d;background:#fffffff0}.settings-danger-zone{display:grid;gap:.6rem}.settings-logout-button{margin:.1rem .9rem .9rem;width:auto;border-radius:.82rem;background:linear-gradient(120deg,#ce5f52,#b54a3f)}.settings-logout-button:hover{background:linear-gradient(120deg,#bd5549,#a43f36)}.settings-screen.dark-preview{background:radial-gradient(circle at 90% 12%,rgba(207,109,96,.23),transparent 35%),radial-gradient(circle at 8% 95%,rgba(113,146,119,.2),transparent 40%),linear-gradient(160deg,#1f2529,#1b2326 40%,#13191c)}.settings-screen.dark-preview .screen-header{background:linear-gradient(180deg,rgba(31,37,41,.95) 80%,transparent)}.settings-screen.dark-preview .screen-header h2,.settings-screen.dark-preview .settings-row-copy strong,.settings-screen.dark-preview .settings-select-row label,.settings-screen.dark-preview .settings-config-card h4,.settings-screen.dark-preview .settings-hero-copy h1{color:#edf1ec}.settings-screen.dark-preview .screen-header p,.settings-screen.dark-preview .settings-row-copy small,.settings-screen.dark-preview .settings-hero-copy p,.settings-screen.dark-preview .settings-config-card p{color:#edf1ecb8}.settings-screen.dark-preview .surface-card{background:#1b2124e0;border-color:#edf1ec1f;box-shadow:0 10px 28px #0000004d}.settings-screen.dark-preview .settings-action-row,.settings-screen.dark-preview .settings-toggle-row,.settings-screen.dark-preview .settings-select-row{border-bottom-color:#edf1ec21}.settings-screen.dark-preview .settings-action-row:hover,.settings-screen.dark-preview .settings-toggle-row:hover{background:#edf1ec0f}.settings-screen.dark-preview .settings-panel-title{color:#b4c4b6}.settings-screen.dark-preview .settings-panel-title.danger,.settings-screen.dark-preview .settings-action-row.danger .settings-row-copy strong,.settings-screen.dark-preview .settings-action-row.danger .settings-row-action{color:#f2b0a6}.settings-screen.dark-preview .settings-select-row select,.settings-screen.dark-preview .settings-config-card input{background:#0a0d0fb8;border-color:#edf1ec33;color:#f5f7f4}.settings-screen.dark-preview .settings-sync-pill{color:#d5e2d7;background:#d5e2d729;border-color:#d5e2d74d}.settings-logout-primary{background:var(--settings-olive)}.manage-account-screen{padding:.8rem}.manage-account-card{padding:.9rem;display:grid;gap:.75rem}.manage-account-card h4{margin:0;color:var(--settings-ink);font-size:1rem}.manage-avatar-row{display:flex;gap:.85rem;align-items:center;flex-wrap:wrap}.manage-avatar-image,.manage-avatar-fallback{width:88px;height:88px;border-radius:50%;border:1px solid rgba(63,91,69,.2)}.manage-avatar-image{object-fit:cover}.manage-avatar-fallback{display:grid;place-items:center;font-size:1.45rem;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--settings-olive),var(--settings-coral))}.manage-avatar-actions{display:grid;gap:.35rem}.manage-avatar-actions small{color:#2f2f29b8;font-size:.74rem}.legal-card{gap:.62rem}.legal-section{display:grid;gap:.35rem}.legal-section strong{color:var(--settings-ink);font-size:.9rem}.legal-list{margin:0;padding-left:1.05rem;display:grid;gap:.28rem;color:#2f2f29c2;font-size:.84rem}.upload-card{padding:.82rem}.upload-actions-stack{display:grid;gap:.55rem}.preview-wrap{position:relative}.preview-image{width:100%;max-height:250px;object-fit:cover;border-radius:.8rem}.preview-image.short{max-height:180px}.preview-image.tall{max-height:250px}.preview-clear{position:absolute;top:.5rem;right:.5rem;width:1.7rem;height:1.7rem;border-radius:999px;border:none;color:#fff;background:#0000008c;cursor:pointer;font-size:1rem}.form-grid{padding:.82rem;display:grid;gap:.72rem}.meal-item-editor{padding:.82rem;display:grid;gap:.55rem}.item-name{font-weight:700}.grid-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.number-input{display:grid;gap:.25rem}.number-input span{color:var(--ios-muted);font-size:.72rem;font-weight:600}.totals-grid{padding:.82rem;display:grid;gap:.42rem;grid-template-columns:repeat(2,minmax(0,1fr))}.total-line{border-radius:.55rem;background:#0f172a0d;padding:.46rem .58rem;display:flex;justify-content:space-between;gap:.5rem}.total-line span{font-size:.78rem;color:var(--ios-muted)}.total-line strong{font-size:.78rem}.debug-top-card{padding:.85rem;display:grid;gap:.55rem}.status-pill-row{display:flex;flex-wrap:wrap;gap:.45rem}.status-pill{display:inline-flex;align-items:center;gap:.3rem;padding:.3rem .62rem;border-radius:999px;background:#0f172a12}.status-pill small{color:var(--ios-muted);font-size:.7rem}.status-pill strong{font-size:.74rem}.debug-metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.debug-metric-card{padding:.65rem;display:grid;gap:.3rem}.debug-metric-card small{color:var(--ios-muted);font-size:.72rem;font-weight:700}.debug-metric-card strong{font-size:1.15rem}.debug-list-card{padding:.85rem;display:grid;gap:.7rem}.debug-list-card h3{margin:0}.debug-row{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem;border-top:1px solid var(--ios-line);padding-top:.68rem}.debug-row>div{min-width:0}.debug-row:first-of-type{border-top:none;padding-top:0}.debug-row p{margin:.18rem 0}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.78rem;overflow-wrap:anywhere;word-break:break-word}.debug-badges{display:flex;flex-wrap:wrap;gap:.3rem}.badge{font-size:.68rem;font-weight:700;padding:.2rem .42rem;border-radius:999px;background:#0f172a17;color:var(--ios-text)}.badge.good{background:#16a34a29;color:#166534}.badge.warn{background:#f59e0b33;color:#92400e}.badge.bad{background:#ef444433;color:#991b1b}.plain-button{border:none;background:transparent;padding:0;text-align:inherit;color:inherit;cursor:pointer}.tab-bar{position:fixed;left:50%;bottom:0;transform:translate(-50%);width:min(980px,100%);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.1rem;padding:.4rem .5rem max(.5rem,env(safe-area-inset-bottom));background:#f9fafbf2;border-top:1px solid var(--ios-line);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:10}.tab-item{border:none;background:transparent;padding:.3rem .2rem;display:grid;justify-items:center;gap:.1rem;color:var(--ios-muted);cursor:pointer}.tab-item.active{color:var(--ios-blue)}.tab-icon{font-size:1rem;line-height:1}.tab-label{font-size:.67rem;line-height:1}@media(min-width:820px){.settings-hero-card{grid-template-columns:auto 1fr auto;align-items:center;gap:1rem}.settings-hero-cta.btn-primary{justify-self:flex-end}}@media(max-width:780px){.screen-scroll{padding:.74rem .75rem 1rem}.screen-header-top{gap:.4rem}.screen-header input[type=date]{max-width:7.6rem;font-size:.78rem;padding:.34rem .45rem}.settings-screen{padding:.62rem}.settings-sync-pill{font-size:.62rem}.settings-hero-card{gap:.72rem}.settings-hero-cta.btn-primary{width:100%;justify-self:stretch}.settings-select-row{align-items:flex-start;flex-direction:column}.settings-select-row select{width:100%}.settings-row-action{font-size:.74rem}.date-row{align-items:stretch;flex-direction:column;gap:.45rem}.date-row input{max-width:none}.history-kcal{text-align:left;margin-left:0}.debug-row{flex-direction:column;gap:.45rem}.debug-badges{justify-content:flex-start}.calories-bars{min-height:132px;gap:.35rem}.calorie-col small{font-size:.6rem}.chip-row{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-balance{grid-template-columns:1fr;gap:.8rem}.divider{display:none}.totals-grid,.debug-metric-grid,.grid-two{grid-template-columns:1fr}.calories-bars,.mini-bars{grid-template-columns:repeat(7,minmax(0,1fr))}}@media(max-width:420px){.ios-shell{padding-bottom:5.6rem}.screen-scroll{padding:.6rem .56rem .92rem}.screen-header h2{font-size:.96rem}.screen-header p{font-size:.74rem}.screen-header input[type=date]{max-width:6.9rem;font-size:.74rem}.section-hero{font-size:1.23rem}.section-title{font-size:1rem}.chip-row{grid-template-columns:1fr}.summary-chip{padding:.45rem .28rem}.summary-chip strong{font-size:.75rem}.summary-chip span{font-size:.64rem}.wheel-center strong{font-size:1.07rem}.recommendation-card{grid-template-columns:1fr;gap:.5rem}.meal-hero{height:160px}.mini-bar-wrap{min-height:60px}.bar{width:7px}.calories-bars{min-height:118px;gap:.28rem}.tab-bar{padding:.34rem .4rem max(.5rem,env(safe-area-inset-bottom))}.tab-icon{font-size:.92rem}.tab-label{font-size:.61rem}.targets-intro{grid-template-columns:1fr;gap:.55rem}}
