:root,:root[data-theme=dark]{color-scheme:dark;--bg: #202022;--bg-glow-1: rgba(100, 244, 172, .12);--bg-glow-2: rgba(21, 235, 128, .08);--surface: #2d2e32;--surface-alt: #25262a;--stroke: rgba(100, 244, 172, .18);--text: #ffffff;--text-muted: #818181;--teal: #64f4ac;--teal-ink: #0c0c0c;--coral: #be6464;--amber: #f0ad4e;--radius: 12px;--tabbar-bg: rgba(37, 38, 42, .92);--shadow: 0 8px 24px rgba(0, 0, 0, .35);--font: "Poppins", system-ui, sans-serif}:root[data-theme=light]{color-scheme:light;--bg: #f3f5f4;--bg-glow-1: rgba(15, 159, 110, .14);--bg-glow-2: rgba(13, 143, 95, .08);--surface: #ffffff;--surface-alt: #e9eeeb;--stroke: rgba(15, 159, 110, .22);--text: #1a1c1b;--text-muted: #6b736e;--teal: #0f9f6e;--teal-ink: #ffffff;--coral: #be6464;--amber: #c98710;--tabbar-bg: rgba(255, 255, 255, .92);--shadow: 0 8px 24px rgba(26, 31, 40, .08)}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;font-family:inherit}button,input,textarea,select{font-family:var(--font)}html,body,#root{margin:0;min-height:100%}body{font-family:var(--font);background:radial-gradient(ellipse 80% 50% at 10% -10%,var(--bg-glow-1),transparent 55%),radial-gradient(ellipse 60% 40% at 100% 0%,var(--bg-glow-2),transparent 50%),var(--bg);background-attachment:fixed;color:var(--text);-webkit-font-smoothing:antialiased}h1,h2,h3{font-family:var(--font);margin:0}.mono{font-family:var(--font);font-variant-numeric:tabular-nums}.muted{color:var(--text-muted);font-size:14px}.app-shell{max-width:460px;margin:0 auto;min-height:100dvh;display:flex;flex-direction:column;position:relative;padding-bottom:calc(78px + env(safe-area-inset-bottom))}.top{padding:20px 20px 8px;display:flex;align-items:baseline;justify-content:space-between;gap:12px}.eyebrow{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--text-muted);font-weight:600}.top h1{font-size:19px;font-weight:700}.day-pill{display:inline-flex;align-items:center;gap:6px;background:var(--surface-alt);border:1px solid var(--stroke);border-radius:99px;padding:6px 14px;font-size:13px}.dot{width:6px;height:6px;border-radius:50%;background:var(--teal)}.screen{padding:4px 20px 24px;flex:1}.card{background:var(--surface);border:1px solid var(--stroke);border-radius:var(--radius);padding:16px;margin-top:14px;box-shadow:var(--shadow)}.card-title{font-size:14px;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);font-weight:600;margin-bottom:10px}.card-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.info-cta{display:inline-flex;align-items:center;gap:5px;background:var(--surface-alt);border:1px solid var(--stroke);color:var(--teal);border-radius:99px;padding:6px 12px;font-size:14px;font-weight:600;font-family:var(--font);cursor:pointer;flex-shrink:0}.info-cta svg{width:16px;height:16px}.info-cta:hover{border-color:var(--teal)}.modal-card-wide{max-width:400px;max-height:min(85dvh,640px);overflow:auto}.modal-body-rich{font-size:14px;line-height:1.45;margin-bottom:12px}.modal-body-rich p{margin:0 0 10px}.info-list{margin:0 0 12px;padding-left:18px;display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--text)}.info-list li strong{color:var(--teal)}.row{display:flex;align-items:center;justify-content:space-between;gap:10px}.row+.row{margin-top:10px}.meal-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}.meal-btn,.seg button,button.ghost,button.primary,.icon-btn{font-family:inherit;cursor:pointer}.meal-btn{background:var(--surface-alt);border:1px solid var(--stroke);color:var(--text);border-radius:10px;padding:10px;font-size:13px;font-weight:500;text-align:left}.meal-btn.active{border-color:var(--teal);color:var(--teal)}.add-row{display:flex;gap:8px}.activity-edit-list+.add-row{margin-top:12px}.notif-toggles{display:flex;flex-direction:column;gap:8px}.notif-row{display:grid;grid-template-columns:1.25rem minmax(0,1fr) 7.5rem;align-items:center;column-gap:10px;padding:10px 12px;background:var(--surface-alt);border-radius:10px;font-size:14px;cursor:pointer}.notif-row input[type=checkbox]{width:1.25rem;height:1.25rem;margin:0;accent-color:var(--teal);justify-self:center}.notif-row-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notif-time,.notif-time-slot{width:7.5rem;min-width:7.5rem;max-width:7.5rem;box-sizing:border-box;justify-self:stretch}.notif-row input.notif-time[type=time]{width:7.5rem;min-width:7.5rem;max-width:7.5rem;margin:0;padding:8px 10px;font-variant-numeric:tabular-nums}.notif-check-slot{width:1.25rem;height:1.25rem;justify-self:center}.notif-block{display:flex;flex-direction:column;gap:0;padding:4px 0;background:var(--surface-alt);border-radius:10px}.notif-block .notif-row{background:transparent;border-radius:0;padding:8px 12px}.notif-row-sub{cursor:default}.notif-schedule{margin:0 0 14px;padding:10px 12px;background:var(--surface-alt);border-radius:10px}.notif-schedule-list{margin:0;padding-left:18px;font-size:13px;line-height:1.55}input[type=number],input[type=text],input[type=date],input[type=time],textarea,select{background:var(--surface-alt);border:1px solid var(--stroke);color:var(--text);border-radius:10px;padding:10px 12px;font-size:14px;width:100%;font-family:inherit}input[type=number]{font-variant-numeric:tabular-nums}textarea{resize:vertical;min-height:56px}button.primary{background:var(--teal);color:var(--teal-ink);border:none;border-radius:10px;padding:10px 16px;font-weight:600;font-size:14px;transition:transform .15s ease}@media(hover:hover){button.primary:hover{transform:translateY(-1px)}}button.primary:active{transform:translateY(0)}button.primary:disabled{opacity:.55;cursor:not-allowed;transform:none}button.ghost{background:transparent;border:1px solid var(--stroke);color:var(--text-muted);border-radius:10px;padding:8px 12px;font-size:13px}.meal-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}.meal-group{border:1px solid var(--stroke);border-radius:10px;overflow:hidden;background:var(--surface)}.meal-group-head{width:100%;display:flex;align-items:center;gap:8px;padding:10px 12px;background:var(--surface-alt);border:none;color:var(--text);font:inherit;cursor:pointer;text-align:left}.meal-group-head:hover{background:color-mix(in srgb,var(--teal) 8%,var(--surface-alt))}.meal-group-chevron{width:1em;color:var(--teal);flex-shrink:0}.meal-group-title{font-weight:600;font-size:14px;flex:1;min-width:0}.meal-group-count{font-size:12px;flex-shrink:0}.meal-group-kcal{font-size:13px;font-weight:600;flex-shrink:0;min-width:2.5em;text-align:right}.meal-group-body{display:flex;flex-direction:column;gap:6px;padding:8px;border-top:1px solid var(--stroke)}.meal-item{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px;padding:8px 10px;background:var(--surface-alt);border-radius:8px}.meal-item .meta{display:flex;flex-direction:column;gap:2px;min-width:0}.meal-item .meta strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quality-chip{display:inline-block;margin-top:4px;font-size:11px;font-weight:600;letter-spacing:.02em;width:fit-content}.quality-day{margin-top:6px;font-size:12px;font-weight:600}.quality-mini{font-weight:600}.tone-good{color:var(--teal)}.tone-mid{color:var(--text-muted)}.tone-poor{color:var(--coral)}.tone-none{color:var(--text-muted)}.quality-scale{display:flex;flex-direction:column;gap:10px;margin-top:12px}.quality-scale-row{display:grid;grid-template-columns:5.5rem minmax(0,1fr);gap:10px;align-items:start}.quality-scale-score{font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.35}.quality-scale-label{font-weight:600}.quality-scale-body{display:flex;flex-direction:column;gap:2px;font-size:12px;line-height:1.4}.quality-scale-body strong{font-weight:600}.meal-thumb{width:44px;height:44px;border-radius:8px;object-fit:cover;flex-shrink:0;background:var(--stroke)}.meal-item button.remove{background:none;border:none;color:var(--coral);font-size:16px;padding:0 4px;cursor:pointer}.seg{display:flex;background:var(--surface-alt);border-radius:10px;border:1px solid var(--stroke);overflow:hidden}.seg button{flex:1;background:none;border:none;color:var(--text-muted);padding:9px;font-size:13px}.seg button.on{background:var(--teal);color:var(--teal-ink);font-weight:600}.field{margin-top:12px}.field label{font-size:14px;color:var(--text-muted);display:block;margin-bottom:6px}.tabbar{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:100%;max-width:460px;background:var(--tabbar-bg);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--stroke);display:flex;padding:8px 8px calc(8px + env(safe-area-inset-bottom));z-index:30}.tabbar button{flex:1;background:none;border:none;display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--text-muted);font-family:var(--font);font-size:10px;padding:6px 0;font-weight:500;cursor:pointer}.tabbar button.active{color:var(--teal)}.tabbar svg{width:20px;height:20px}.toast{position:fixed;bottom:96px;left:50%;transform:translate(-50%) translateY(20px);opacity:0;background:var(--surface-alt);border:1px solid var(--stroke);padding:9px 16px;border-radius:99px;font-size:13px;transition:.25s;pointer-events:none;z-index:40}.toast.show{opacity:1;transform:translate(-50%) translateY(0)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000008c;z-index:60;display:flex;align-items:center;justify-content:center;padding:20px;animation:modal-fade .2s ease}@keyframes modal-fade{0%{opacity:0}to{opacity:1}}.modal-card{width:100%;max-width:360px;background:var(--surface);border:1px solid var(--stroke);border-radius:16px;padding:20px;box-shadow:var(--shadow);animation:sheet-up .25s ease}.modal-card h2{font-size:18px;margin:0 0 10px}.modal-card p{margin:0 0 12px;font-size:14px;line-height:1.45;color:var(--text)}.modal-card .modal-hint{color:var(--text-muted);font-size:13px;background:var(--surface-alt);border-radius:10px;padding:10px 12px;margin-bottom:16px}.file-picker{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.file-picker-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.file-picker-btn{display:inline-flex;align-items:center;gap:8px;background:var(--surface-alt);border:1px solid var(--stroke);color:var(--text);border-radius:10px;padding:10px 14px;font-size:13px;font-weight:600;font-family:inherit;cursor:pointer;transition:border-color .15s ease,color .15s ease}.file-picker-btn svg{width:16px;height:16px;color:var(--teal);flex-shrink:0}.file-picker-btn:hover{border-color:var(--teal);color:var(--teal)}.file-picker-input:focus-visible+.file-picker-btn{outline:2px solid var(--teal);outline-offset:2px}.file-picker-name{flex:1;min-width:0;font-size:12px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-picker-name.has-file{color:var(--text)}.file-picker-clear{background:none;border:none;color:var(--coral);font-size:20px;line-height:1;padding:0 4px;cursor:pointer;font-family:inherit}.file-picker-preview{margin-top:10px;width:100%;max-height:180px;object-fit:cover;border-radius:12px;border:1px solid var(--stroke)}.formula-box{margin-top:14px;padding:12px;background:var(--surface-alt);border:1px solid var(--stroke);border-radius:12px;font-size:14px}.formula-box .row+.row{margin-top:8px}.formula-box .muted{font-size:14px}.formula-result{margin-top:12px!important;padding-top:10px;border-top:1px solid var(--stroke);font-size:14px;font-weight:600}.settings-screen{padding-bottom:24px}.field-hint{margin:0 0 12px;font-size:14px;line-height:1.45;color:var(--text-muted)}.kpi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.kpi{background:var(--surface-alt);border:1px solid var(--stroke);border-radius:12px;padding:10px 8px;text-align:center;min-width:0}.kpi-ok{border-color:color-mix(in srgb,var(--teal) 45%,var(--stroke))}.kpi-warn{border-color:color-mix(in srgb,var(--amber) 55%,var(--stroke))}.kpi-label{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--text-muted);font-weight:600}.kpi-value{margin-top:4px;font-size:22px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.1}.kpi-value-sm{font-size:18px}.kpi-unit{margin-top:4px;font-size:12px;color:var(--text-muted)}.chip-row{display:flex;flex-direction:column;gap:8px}.chip{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:left;background:var(--surface-alt);border:1px solid var(--stroke);border-radius:12px;padding:12px 14px;color:var(--text);font-family:var(--font);cursor:pointer;transition:border-color .15s ease}.chip.on{border-color:var(--teal);color:var(--teal)}.chip-label{font-size:14px;font-weight:600}.chip-meta{font-size:13px;color:var(--text-muted)}.chip.on .chip-meta{color:var(--teal)}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field-grid .field:last-child{grid-column:1 / -1}.disclosure{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;background:none;border:none;color:var(--text);font-family:var(--font);font-size:14px;font-weight:600;padding:0;cursor:pointer}.disclosure-chevron{color:var(--teal)}.save-bar{position:sticky;bottom:calc(70px + env(safe-area-inset-bottom));margin-top:8px;padding-top:4px;z-index:5}@media(max-width:380px){.kpi-value{font-size:18px}.kpi-value-sm{font-size:16px}}.ring-wrap{display:flex;flex-direction:column;align-items:center;padding:8px 0 4px}.ring-center{position:relative;width:190px;height:190px}.ring-center svg{width:190px;height:190px}.ring-labels{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.ring-labels .big{font-size:34px;font-weight:600;line-height:1}.ring-labels .small{font-size:12px;color:var(--text-muted);margin-top:6px}.login-screen{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 24px;text-align:center;gap:16px}.login-screen .brand{font-family:var(--font);font-size:36px;font-weight:800;letter-spacing:-.02em}.login-screen .brand span{color:var(--teal)}.login-screen .powered-by{margin-top:8px;font-size:12px;color:var(--text-muted);letter-spacing:.06em;text-transform:uppercase}.login-screen p{color:var(--text-muted);max-width:280px;margin:0;line-height:1.5}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;z-index:50;display:flex;align-items:flex-end;justify-content:center}.sheet{width:100%;max-width:460px;background:var(--surface);border-radius:20px 20px 0 0;border:1px solid var(--stroke);border-bottom:none;padding:16px 20px calc(20px + env(safe-area-inset-bottom));max-height:85dvh;overflow:auto;animation:sheet-up .28s ease}@keyframes sheet-up{0%{transform:translateY(40px);opacity:.6}to{transform:translateY(0);opacity:1}}.week-nav{display:flex;align-items:center;gap:8px;margin-bottom:8px}.week-nav .label{flex:1;text-align:center;font-weight:600;font-size:14px}.week-carousel{touch-action:pan-y;overflow:hidden;-webkit-user-select:none;user-select:none}.week-day-block{padding:9px 0;border-bottom:1px solid var(--stroke)}.week-day-block:last-child{border-bottom:none}.week-day-head{display:grid;grid-template-columns:1rem minmax(0,1fr);align-items:center;gap:8px;width:100%;padding:0;border:none;background:transparent;color:inherit;font:inherit;cursor:pointer;text-align:left}.week-day-head:hover .week-bar-fill{filter:brightness(1.08)}.week-row{display:flex;align-items:center;gap:10px;min-width:0}.week-day{width:34px;flex-shrink:0;font-size:12px;font-weight:600;color:var(--text-muted)}.week-activity{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:5px;padding-left:1.5rem;font-size:12px;line-height:1.35}.week-activity-plan{color:var(--text-muted)}.week-activity-meta{color:var(--text-muted);font-variant-numeric:tabular-nums}.week-activity>*+.week-activity-meta:before{content:"·";margin-right:10px;opacity:.55}.week-meals{display:flex;flex-direction:column;gap:6px;margin-top:8px;padding:8px 10px 8px 1.5rem;border-radius:10px;background:var(--surface-alt)}.week-meals-empty{margin:0;font-size:12px}.week-meal{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.week-meal-main{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;min-width:0;font-size:12px;line-height:1.35}.week-meal-main strong{font-weight:600}.week-meal-kcal{flex-shrink:0;font-size:12px}.week-bar-track{flex:1;height:8px;background:var(--surface-alt);border-radius:99px;overflow:hidden}.week-bar-fill{height:100%;border-radius:99px;background:var(--teal);transition:width .35s ease}.week-kcal{width:64px;text-align:right;font-size:12px}.plan-row{display:flex;flex-direction:column;gap:0;padding:0;border-bottom:1px solid var(--stroke)}.plan-row:last-child{border-bottom:none}.plan-day-head{display:grid;grid-template-columns:1rem minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;padding:12px 2px;background:none;border:none;color:inherit;text-align:left;cursor:pointer;font:inherit}.plan-day-title{display:flex;flex-direction:column;gap:2px;min-width:0}.plan-day-title strong{display:inline-flex;align-items:center;gap:8px}.plan-today-tag{font-size:10px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--teal-ink, #0b2e28);background:var(--teal);padding:2px 6px;border-radius:999px}.plan-day-summary{font-size:12px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plan-day-kcal{font-size:12px;white-space:nowrap}.plan-day-body{display:flex;flex-direction:column;gap:8px;padding:0 0 14px 1.65rem}.chevron{width:.45rem;height:.45rem;border-right:2px solid var(--text-muted);border-bottom:2px solid var(--text-muted);transform:rotate(-45deg);transition:transform .18s ease;justify-self:center}.chevron.open{transform:rotate(45deg)}.collapse-head{display:grid;grid-template-columns:1rem minmax(0,1fr);align-items:center;gap:10px;width:100%;padding:0;background:none;border:none;color:inherit;text-align:left;cursor:pointer;font:inherit}.collapse-head-main{display:flex;flex-direction:column;gap:2px;min-width:0}.collapse-head-meta{font-size:12px}.collapse-body{margin-top:12px}.slot-list{display:flex;flex-direction:column;gap:8px}.slot-row{display:grid;grid-template-columns:1fr minmax(7.25rem,auto);gap:8px;align-items:center}.slot-row input[type=time]{width:100%;min-width:7.25rem;font-variant-numeric:tabular-nums}.profile{display:flex;align-items:center;gap:12px}.profile img{width:48px;height:48px;border-radius:50%;object-fit:cover;border:2px solid var(--teal)}.profile .name{font-weight:600}.profile .email{font-size:12px;color:var(--text-muted)}.actions-row{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}.loading{display:flex;align-items:center;justify-content:center;min-height:60vh;color:var(--text-muted)}.activity-edit-list{display:flex;flex-direction:column;gap:8px}.activity-edit-row{display:flex;align-items:center;gap:10px;padding:8px 10px;background:var(--surface-alt);border-radius:8px}.activity-edit-meta{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.activity-edit-row .remove{background:none;border:none;color:var(--coral);font-size:16px;cursor:pointer}.onboarding{padding:20px 16px 32px;max-width:460px;margin:0 auto;min-height:100dvh;display:flex;flex-direction:column;gap:14px}.onboarding-brand{display:flex;align-items:center;gap:12px}.onboarding-brand h1{margin:0;font-size:24px;font-weight:700}.onboarding-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.onboarding-step{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:8px;border-radius:10px;background:var(--surface-alt);border:1px solid transparent;opacity:.55}.onboarding-step.on{opacity:1;border-color:color-mix(in srgb,var(--teal) 45%,var(--stroke))}.onboarding-step.done{opacity:.85}.onboarding-step-num{font-size:11px;font-weight:700;color:var(--teal)}.onboarding-step-label{font-size:11px;font-weight:600;line-height:1.2}.onboarding-card{flex:1}.onboarding-preview{margin-top:14px;padding:12px;border-radius:10px;background:var(--surface-alt);border:1px solid var(--stroke)}.onboarding-error{color:var(--coral);font-size:13px;margin:12px 0 0}.onboarding-actions{display:flex;justify-content:space-between;align-items:center;gap:10px}.onboarding-actions .primary{min-width:140px;padding:12px 16px}.onboarding-foot{text-align:center;font-size:12px;margin:0}:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
