:root{color:#222c25;font-synthesis:none;background:#f6f6f1;font-family:system-ui,-apple-system,sans-serif}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;scrollbar-width:none}::-webkit-scrollbar{width:0;height:0;display:none}textarea{overscroll-behavior:contain}body{min-width:320px;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline-offset:2px;outline:3px solid #a5d1b3}.topbar{background:#fff;border-bottom:1px solid #e9ede6;justify-content:space-between;align-items:center;height:72px;padding:0 5%;display:flex}.topbar>div{align-items:center;gap:12px;display:flex}.brand-mark{object-fit:contain;border-radius:11px;width:36px;height:36px;display:block}.brand{letter-spacing:-.035em;font-size:18px;font-weight:800}.topbar-note{color:#91a096;font-size:12px}.shell{grid-template-columns:218px minmax(0,1fr);max-width:1500px;margin:auto;display:grid}.sidebar{border-right:1px solid #e4e9e1;flex-direction:column;min-height:calc(100vh - 72px);padding:47px 22px 30px 32px;display:flex}.eyebrow{color:#82a08b;letter-spacing:.15em;margin:0 0 12px;font-size:10px;font-weight:800}.sidebar nav{gap:5px;margin-top:5px;display:grid}.nav{text-align:left;color:#738075;background:0 0;border:0;border-radius:10px;align-items:center;gap:14px;width:100%;padding:13px;font-size:13px;font-weight:700;display:flex}.nav svg{flex:none}.nav.active{color:#347b52;background:#e6f0e7}.sidebar-bottom{color:#9aaba0;margin-top:auto;padding:24px 12px;font-size:12px;line-height:1.6}.sidebar-bottom strong{color:#5c856b}.content{min-width:0;padding:48px clamp(24px,5vw,72px) 90px}.page-heading{justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:28px;display:flex}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-.055em;margin:0 0 7px;font-size:clamp(30px,4vw,42px);line-height:1.15}h2{letter-spacing:-.035em;margin:0;font-size:20px}h3{letter-spacing:-.02em;margin:0;font-size:14px}.subtitle{color:#8a998e;margin:0;font-size:13px}.primary,.secondary{border-radius:10px;min-height:44px;padding:11px 17px;font-size:12px;font-weight:800}.primary{color:#fff;background:#347b52;border:1px solid #347b52;box-shadow:0 5px 12px #347b5221}.primary:hover{background:#286940}.secondary{color:#4c6c56;background:#fff;border:1px solid #dfe7df}.secondary:hover{background:#f3f8f3}.small{min-height:37px;padding:8px 12px}.text-button{color:#3b8058;background:0 0;border:0;padding:10px 4px;font-size:12px;font-weight:800}.danger{color:#b55d55}.date-picker{align-items:center;gap:8px;margin-bottom:22px;display:flex}.today-swipe-content{transition:transform .2s ease-out}.date-picker>button:not(.text-button){color:#6d8171;background:#fff;border:1px solid #e3e9e1;border-radius:9px;width:38px;height:38px;font-size:22px}.date-picker input{color:#455b4a;background:0 0;border:0;font-size:13px;font-weight:700}.nutrition-panel{background:#fff;border:1px solid #e9eee7;border-radius:19px;padding:22px;box-shadow:0 8px 25px #394f3a0b}.nutrition-heading{align-items:center;gap:13px;margin-bottom:18px;display:flex}.nutrition-heading h2{color:#143524;font-size:21px}.nutrition-heading-icon,.meal-symbol{color:#247647;background:#e8f4e7;border-radius:12px;flex:none;place-items:center;width:42px;height:42px;display:grid}.metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;display:grid}.panel,.meal-card,.food-card,.week-row{background:#fff;border:1px solid #e9eee7;border-radius:15px;box-shadow:0 5px 22px #394f3a06}.metric{--accent:#4e9d43;--pale:#e7f3e4;--ink:#123b21;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:0;width:100%;min-width:0;padding:13px 18px;display:block}.metric+.metric{border-left:1px solid #edf0e9}.metric-calories{--accent:#1262c4;--pale:#dcecff;--ink:#102d54}.metric-fat{--accent:#de9519;--pale:#fff1da;--ink:#5d3909}.metric-carbs{--accent:#8b4cc4;--pale:#f1e6fa;--ink:#422267}.metric-name{color:var(--accent);align-items:center;gap:9px;font-size:15px;font-weight:800;display:flex}.metric-icon{background:var(--pale);border-radius:10px;place-items:center;width:35px;height:35px;display:grid}.metric-number{color:var(--ink);letter-spacing:-.05em;overflow-wrap:anywhere;flex-wrap:wrap;align-items:baseline;gap:2px 6px;margin:13px 0;font-size:clamp(23px,2.3vw,34px);font-weight:800;line-height:1.15;display:flex}.metric-number span{color:#78877c;letter-spacing:0;font-size:12px;font-weight:600}.meter{background:var(--pale);border-radius:8px;height:8px;overflow:hidden}.meter i{border-radius:inherit;background:var(--accent);height:100%;display:block}.metric-note{color:#78877c;min-height:24px;margin-top:9px;font-size:11px;line-height:1.5;display:block}.nutrient-details{--accent:#4e9d43;--pale:#e7f3e4;--ink:#123b21}.nutrient-calories{--accent:#1262c4;--pale:#dcecff;--ink:#102d54}.nutrient-fat{--accent:#de9519;--pale:#fff1da;--ink:#5d3909}.nutrient-carbs{--accent:#8b4cc4;--pale:#f1e6fa;--ink:#422267}.nutrient-day{color:#78877c;margin:0 0 20px;font-size:14px}.nutrient-tabs{scrollbar-width:none;gap:6px;margin-bottom:16px;padding-bottom:4px;display:flex;overflow-x:auto}.nutrient-tabs::-webkit-scrollbar{display:none}.nutrient-tab{--tab-accent:#4e9d43;--tab-pale:#e7f3e4;background:var(--tab-pale);min-height:42px;color:var(--tab-accent);border:0;border-radius:10px;flex:1 0 auto;justify-content:center;align-items:center;gap:6px;padding:8px 10px;font-size:12px;font-weight:700;display:inline-flex}.nutrient-tab-calories{--tab-accent:#1262c4;--tab-pale:#eaf3fd}.nutrient-tab-fat{--tab-accent:#c77d05;--tab-pale:#fff3df}.nutrient-tab-carbs{--tab-accent:#8b4cc4;--tab-pale:#f1e6fa}.nutrient-tab.active{background:var(--tab-accent);color:#fff}.nutrient-summary{background:#fff;border:1px solid #e9eee7;border-radius:15px;padding:18px}.nutrient-total{color:var(--ink);letter-spacing:-.04em;font-size:30px;font-weight:800;line-height:1.15}.nutrient-total span{color:#78877c;letter-spacing:0;font-size:14px;font-weight:600}.nutrient-bar{background:var(--pale);border-radius:8px;height:8px;display:block;overflow:hidden}.nutrient-bar i{border-radius:inherit;background:var(--accent);height:100%;display:block}.nutrient-summary .nutrient-bar{margin-top:15px}.nutrient-summary p{color:#78877c;margin:10px 0 0;font-size:13px}.nutrient-list-title{margin:24px 0 12px;font-size:19px}.nutrient-list,.nutrient-empty{background:#fff;border:1px solid #e9eee7;border-radius:15px;padding:5px 14px}.nutrient-empty{color:#78877c;padding:20px;font-size:14px}.nutrient-row{text-align:left;color:#243c2c;background:0 0;border:0;align-items:center;gap:12px;width:100%;padding:14px 0;display:flex}.nutrient-row+.nutrient-row{border-top:1px solid #edf0e9}.nutrient-row .food-photo{flex:none;width:54px;height:54px}.nutrient-row-content{flex:1;gap:6px;min-width:0;display:grid}.nutrient-row-heading{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.nutrient-row-heading strong{overflow-wrap:anywhere;min-width:0;font-size:14px}.nutrient-amount{color:var(--ink);white-space:nowrap;flex:none;font-size:13px;font-weight:700}.nutrient-meal{color:#78877c;overflow-wrap:anywhere;font-size:12px}.notice{color:#5c795c;background:#eef5e9;border-radius:10px;margin:20px 0;padding:13px 16px;font-size:12px;line-height:1.6}.section-heading{justify-content:space-between;align-items:end;margin:42px 0 16px;display:flex}.section-heading .eyebrow{margin-bottom:7px}.empty{text-align:center;background:#fff;border:1px dashed #d9e4d8;border-radius:16px;padding:58px 20px}.empty p{color:#9aa69c;max-width:360px;margin:10px auto 20px;font-size:12px;line-height:1.7}.empty-icon{color:#75a77f;background:#eaf4ea;border-radius:16px;place-items:center;width:51px;height:51px;margin:0 auto 16px;font-size:27px;display:grid}.meal-list,.food-list,.week-list{gap:12px;display:grid}.meal-card{text-align:left;width:100%;min-width:0;color:inherit;grid-template-columns:42px minmax(80px,1fr) auto 18px;align-items:center;gap:14px;padding:13px 17px;display:grid}.meal-card:hover{background:#fbfdfb;border-color:#b8d6bd}.row-between{justify-content:space-between;align-items:center;gap:12px;display:flex}.meal-copy{gap:4px;min-width:0;display:grid}.meal-copy strong{color:#1d3327;font-size:15px}.meal-copy>span{color:#829187;font-size:12px}.meal-arrow{text-align:right}.muted{color:#93a196;font-size:12px}.item-nutrition{color:#7f9483;flex-wrap:wrap;align-items:baseline;gap:4px 10px;font-size:11px;line-height:1.5;display:flex}.item-nutrition strong,.item-nutrition b{color:#4c6d55;font-weight:700}.item-nutrition-empty{color:#95a398}.item-editor .item-nutrition{background:#edf4ea;border-radius:9px;padding:6px 9px}.item-editor .item-nutrition-empty{background:#f0f3ee}.meal-values{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:5px;min-width:0;display:flex}.meal-value{color:#2a7739;white-space:nowrap;background:#eaf5e8;border-radius:8px;padding:6px 9px;font-size:12px;font-weight:800}.meal-value-kcal{color:#175cad;background:#e9f3ff}.meal-value-fat_g{color:#a96608;background:#fff3e0}.meal-value-carbs_g{color:#783bb2;background:#f3eafd}.meal-value small{font-size:10px;font-weight:600}.meal-partial{color:#a77c33;text-align:right;flex-basis:100%;font-size:10px}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.search,input,select,textarea{color:#27382c;background:#fff;border:1px solid #dfe7dd;border-radius:9px;width:100%;min-width:0;min-height:44px;padding:11px 13px;font-size:13px}.expanding-note{overflow-wrap:anywhere;resize:none;line-height:1.45;display:block;overflow:hidden}.search{margin-bottom:20px;padding:14px 18px}.food-card{text-align:left;width:100%;color:inherit;align-items:center;gap:15px;padding:18px;display:flex}.food-card:hover{background:#fbfdfb;border-color:#b8d6bd}.food-icon{color:#6b9a73;background:#ecf5e8;border-radius:13px;flex:0 0 48px;place-items:center;height:48px;font-size:22px;display:grid}.food-photo{color:#9aaa9d;background:#eef2ec;border-radius:12px;flex:0 0 76px;place-items:center;width:76px;height:76px;display:grid;overflow:hidden}.food-photo img{object-fit:cover;width:100%;height:100%}.food-photo-large{flex-basis:92px;width:92px;height:92px}.grow{flex:1;min-width:0}.food-card p{color:#99a79b;margin:5px 0;font-size:11px}.food-card h3,.picker-food strong{overflow-wrap:anywhere}.food-nutrition{flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px;display:flex}.food-basis{color:#839187;font-size:11px}.nutrition-badges{flex-wrap:wrap;gap:5px;min-width:0;display:flex}.nutrition-badge{white-space:nowrap;border-radius:7px;padding:5px 7px;font-size:11px;font-weight:700;line-height:1.25;display:inline-flex}.badge-kcal{color:#175cad;background:#e9f3ff}.badge-protein{color:#28763a;background:#eaf5e8}.badge-fat{color:#a96608;background:#fff3e0}.badge-carbs{color:#783bb2;background:#f3eafd}.food-actions{align-items:center;gap:10px;display:flex}.more{margin:20px auto;display:block}.week-heading{align-items:center}.week-range{color:#256a3c;white-space:nowrap;background:#e8f3e4;border-radius:12px;align-items:center;gap:8px;padding:10px 13px;font-weight:700;display:inline-flex}.week-row{text-align:left;min-height:96px;color:inherit;grid-template-columns:minmax(150px,.8fr) minmax(0,1.8fr) 16px;align-items:center;gap:18px;padding:19px 22px;display:grid}.week-row-today{background:#f6fbf3;border-color:#a7cfa5}.week-date{gap:6px;min-width:0;display:grid}.week-date-title{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.week-date-title strong{font-size:17px}.week-today{color:#fff;background:#398b54;border-radius:20px;padding:3px 8px;font-size:11px;font-weight:700}.week-day,.week-empty{color:#819087;font-size:13px}.week-nutrition{border-left:1px solid #e0e7df;flex-direction:column;justify-content:center;gap:5px;min-width:0;min-height:46px;padding-left:18px;display:flex}.week-nutrition .nutrition-badges{align-items:center}.week-nutrition .nutrition-badge{font-size:12px}.week-partial{color:#8b7a57;font-size:11px}.arrow{color:#a7b8aa;font-size:24px}.target-layout{grid-template-columns:1fr 1fr;align-items:start;gap:18px;display:grid}.panel{padding:25px}.panel>h2{margin-bottom:18px}.panel>h3{margin:27px 0 13px}.target-values{grid-template-columns:1fr 1fr;gap:10px;display:grid}.target-values div{background:#f5f8f3;border-radius:10px;gap:9px;padding:14px;display:grid}.target-values span{color:#91a094;font-size:11px}.target-values strong{font-size:20px}.target-values small{color:#9aab9c;font-size:10px}.target-overview{gap:18px;max-width:720px;display:grid}.target-values .target-value{align-items:center;gap:12px;padding:18px;display:flex}.target-values .target-value>div{background:0 0;gap:6px;padding:0}.target-values .target-kcal{color:#175cad;background:#e9f3ff}.target-values .target-protein_g{color:#28763a;background:#eaf5e8}.target-values .target-fat_g{color:#a96608;background:#fff3e0}.target-values .target-carbs_g{color:#783bb2;background:#f3eafd}.target-value span,.target-value small{color:#718278}.target-history{border-top:1px solid #e6ece5;margin-top:24px}.target-history summary{cursor:pointer;padding:18px 0 10px;font-size:16px;font-weight:750}.target-edit{width:100%;min-height:48px}.target-form{box-shadow:none}.target-preview{background:#edf5eb;border-radius:12px;gap:12px;padding:16px;display:grid}.target-preview>strong{color:#347b52;font-size:13px}.target-preview p{margin:0}.settings-layout{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:18px;display:grid}.settings-panel{padding:25px}.settings-panel .settings-title{align-items:center;gap:14px;margin:0 0 4px;font-size:20px;display:flex}.settings-icon{color:#277646;background:#eaf3e9;border-radius:11px;flex:none;place-items:center;width:42px;height:42px;display:grid}.settings-panel .field>span{color:#526f5a;font-size:12px}.settings-help{color:#75857b;margin:0;font-size:13px;line-height:1.5}.settings-save{width:100%;min-height:48px}.settings-save:disabled{opacity:.52;cursor:not-allowed}.settings-error{color:#b84840;margin:-8px 0 0;font-size:12px;line-height:1.4}.settings-success{color:#347b52;margin:0;font-size:12px}.settings-data{gap:16px;display:grid}.settings-download,.settings-logout button{justify-self:start;align-items:center;gap:10px;display:inline-flex}.settings-logout{border-top:1px solid #e5ece4;margin-top:2px;padding-top:18px}.admin-open{margin-top:18px}.access-open{align-items:center;gap:10px;margin-top:18px;display:flex}.access-badge{color:#fff;background:#347b52;border-radius:999px;place-items:center;min-width:22px;height:22px;padding:0 5px;font-size:12px;display:inline-grid}.diary-switch-banner{color:#fff;background:#347b52;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;padding:12px 16px;display:flex}.diary-switch-banner button{color:#fff;background:0 0;border:1px solid #fff9;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;gap:6px;padding:8px 12px;font-weight:700;display:inline-flex}.diary-picker{gap:8px;display:grid}.diary-picker-item{color:#243c2c;text-align:left;background:#fff;border:1px solid #e1e9e0;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:52px;padding:12px 16px;font-weight:700;display:flex}.diary-picker-item.selected{background:#edf5eb;border-color:#a4c9a9}.diary-picker-current{color:#347b52;font-size:.875rem;font-weight:600}.admin-menu{gap:10px;display:grid}.admin-menu button{color:#235d39;text-align:left;background:#fff;border:1px solid #e2e9df;border-radius:14px;align-items:center;gap:14px;width:100%;min-height:66px;padding:15px;display:flex}.admin-menu button strong{color:#1d3024;flex:1;font-size:15px}.admin-menu button>span{font-size:24px}.backup-dashboard{gap:14px;display:grid}.backup-alert{border-radius:12px;padding:14px;font-size:15px;font-weight:800}.backup-alert.good,.backup-chip.good{color:#246839;background:#e4f3df}.backup-alert.warning,.backup-chip.warning{color:#995b0d;background:#fff0d8}.backup-last,.backup-warning{margin:0;font-size:13px}.backup-warning{color:#a46116}.backup-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.backup-card,.backup-restore{background:#fff;border:1px solid #e8ede6;border-radius:13px;min-width:0;padding:13px}.backup-card-title{color:#347b52;align-items:center;gap:7px;display:flex}.backup-card-title strong{color:#24382a;overflow-wrap:anywhere;font-size:13px}.backup-chip{border-radius:999px;margin:10px 0 4px;padding:4px 7px;font-size:11px;font-weight:700;display:inline-block}.backup-card p,.backup-restore p{color:#78877c;overflow-wrap:anywhere;margin:7px 0 0;font-size:11px;line-height:1.4}.backup-restore strong{font-size:14px}@media (width<=360px){.backup-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}.access-list{gap:12px;display:grid}.access-list h3{margin:8px 0 0}.access-card{gap:10px;display:grid}.access-card p{margin:0}.access-actions{flex-wrap:wrap;gap:8px;display:flex}.access-actions button{flex:1;min-width:120px}.admin-users{gap:14px;display:grid}.admin-tabs button{font-size:13px}.admin-users h2{margin:4px 0}.admin-user-count{color:#84968a;font-size:14px;font-weight:600}.admin-user-card{text-align:left;color:#263c2d;cursor:pointer;background:#fff;border:1px solid #e1e9df;border-radius:15px;align-items:center;gap:14px;width:100%;min-width:0;padding:17px;display:flex}.admin-user-card:focus-visible{outline-offset:2px;outline:2px solid #347b52}.admin-avatar{color:#287547;background:#e5f1e2;border-radius:50%;flex:none;place-items:center;width:48px;height:48px;font-size:22px;font-weight:800;display:grid}.admin-user-card-main{flex-direction:column;flex:1;align-items:flex-start;gap:5px;min-width:0;display:flex}.admin-user-card-main>strong{overflow-wrap:anywhere;font-size:16px}.admin-user-summary{color:#708477;font-size:12px;line-height:1.5}.admin-chevron{color:#7b8d80;font-size:26px}.admin-status{color:#287344;background:#e7f4e4;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:700;line-height:1.3;display:inline-block}.admin-status.frozen{color:#8b601b;background:#fff3dd}.admin-status.deleting{color:#a34c43;background:#f9e9e7}.admin-detail-identity{align-items:center;gap:14px;display:flex}.admin-detail-identity h2{overflow-wrap:anywhere;margin:0 0 5px}.editor-overlay .modal:has(.admin-detail-identity){background:#fff}.admin-activity h3,.admin-overview h3{margin:0 0 10px;font-size:16px}.admin-activity dl{background:#fff;border:1px solid #e3e9e1;border-radius:12px;margin:0;padding:2px 12px}.admin-activity dl>div{grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:8px;padding:11px 0;font-size:12px;display:grid}.admin-activity dl>div+div{border-top:1px solid #edf1eb}.admin-activity svg,.admin-overview svg{color:#32734a}.admin-activity dt{color:#52685a}.admin-activity dd{color:#24382b;text-align:right;margin:0;font-weight:650}.admin-overview dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;display:grid}.admin-overview dl>div{background:#f0f4ec;border-radius:12px;flex-direction:column;align-items:flex-start;gap:7px;min-width:0;padding:14px 11px;display:flex}.admin-overview dd{color:#1e3927;overflow-wrap:anywhere;order:1;margin:0;font-size:19px;font-weight:800}.admin-overview dt{color:#6c7c70;overflow-wrap:anywhere;order:2;font-size:11px;line-height:1.3}.admin-more-stats[open] .admin-detail-section{margin-top:16px}.admin-detail-section{min-width:0}.admin-detail-section h3{margin:0 0 9px;font-size:15px}.admin-detail-section dl{grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr));gap:8px;margin:0;display:grid}.admin-detail-section dl>div{background:#f3f7f0;border:1px solid #e6ece3;border-radius:12px;flex-direction:column-reverse;justify-content:center;align-items:flex-start;gap:5px;min-width:0;min-height:70px;padding:12px;display:flex}.admin-detail-section dt{color:#687d6e;overflow-wrap:anywhere;font-size:12px;line-height:1.3}.admin-detail-section dd{color:#203d2a;overflow-wrap:anywhere;margin:0;font-size:17px;font-weight:750;line-height:1.25}.admin-extra dl{gap:10px;margin:0;display:grid}.admin-extra dl>div{gap:4px;font-size:13px;display:grid}.admin-extra dt{color:#718278}.admin-extra dd{margin:0;font-weight:700}.admin-extra{background:#fff;border:1px solid #e6ece3;border-radius:14px;padding:14px 16px}.admin-extra summary{cursor:pointer;font-weight:700}.admin-extra dl{margin-top:10px}.admin-id{overflow-wrap:anywhere}.admin-extra .text-button{margin-top:8px}.admin-actions{gap:10px;padding:6px 0 12px;display:grid}.admin-actions button{min-height:46px}.admin-freeze,.admin-delete{cursor:pointer;border:0;border-radius:11px;justify-content:center;align-items:center;gap:9px;width:100%;font-weight:750;display:inline-flex}.admin-freeze{color:#245d36;background:#e7f0e2}.admin-delete{color:#be443c;background:0 0}.admin-freeze:focus-visible,.admin-delete:focus-visible{outline-offset:2px;outline:2px solid #347b52}.admin-user-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.admin-user-heading span{color:#4f795a;font-size:12px;font-weight:700}.admin-user .hint{overflow-wrap:anywhere}.admin-stats{color:#697f6e;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;font-size:12px;display:grid}.admin-stats strong{color:#243c2c}.invite-page{width:min(100% - 32px,520px);margin:35px auto}.invite-brand{color:#287548;margin-bottom:24px;font-size:22px;font-weight:800}.invite-card h1{margin-bottom:20px}.invite-card .form-stack>.hint{margin:-6px 0 0}.invite-login{align-items:center;text-decoration:none;display:inline-flex}.history p{border-top:1px solid #eef2ec;justify-content:space-between;gap:12px;margin:0;padding:10px 0;font-size:11px;display:flex}.history span{color:#99a79b}.segmented{background:#f1f5ef;border-radius:10px;padding:4px;display:flex}.segmented button{color:#839487;background:0 0;border:0;border-radius:8px;flex:1;min-height:38px;font-size:11px;font-weight:800}.segmented button.active{color:#347b52;background:#fff;box-shadow:0 2px 8px #304b3010}.preview{background:#eef6ec;border-radius:10px;padding:16px}.preview span{color:#85a48a;letter-spacing:.12em;margin-bottom:10px;font-size:9px;font-weight:800;display:block}.preview strong{color:#3b7450;font-size:13px;line-height:1.8}.preview p{color:#8ea38f;margin:0;font-size:12px}hr{border:0;border-top:1px solid #eaf0e8;margin:24px 0}.overlay{z-index:20;opacity:0;background:#20372a80;place-items:center;padding:18px;transition:opacity .3s;display:grid;position:fixed;inset:0}.overlay-active{opacity:1}.modal{background:#fff;border-radius:18px;flex-direction:column;width:min(100%,620px);min-height:0;max-height:min(90vh,100dvh - 36px);transition:transform .3s;display:flex;overflow:hidden;transform:translateY(16px);box-shadow:0 25px 80px #14271a35}.modal.modal-compact{width:min(100%,460px);height:auto}.overlay-active .modal{transform:translateY(0)}.modal>header{flex:none;justify-content:space-between;align-items:center;gap:12px;padding:25px 25px 20px;display:flex}.modal-body{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;min-height:0;padding:0 25px 25px;overflow-y:auto}.modal:has(.nutrient-details){background:#f6f6f1}.modal-body .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-body .meal-card{background:#fbfcfa;border-color:#e4ebe2}.modal-handle{display:none}.modal-header-actions{flex:none;align-items:center;gap:8px;display:flex}.editor-overlay .modal{background:#f6f6f1;width:min(100%,920px);height:min(90dvh,900px)}.editor-overlay .modal-body{align-content:start;gap:16px;padding-top:8px;display:grid}.editor-overlay .modal>header h2{overflow-wrap:anywhere;min-width:0}.modal.modal-dragging{transition:none}.icon-button,.alert button{color:#94a198;background:0 0;border:0;font-size:25px}.form-stack{gap:16px;display:grid}.field{gap:7px;min-width:0;display:grid}.field>span{color:#718275;font-size:11px;font-weight:700}.two-cols,.three-cols,.four-cols{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.three-cols{grid-template-columns:repeat(3,minmax(0,1fr))}.four-cols{grid-template-columns:repeat(4,minmax(0,1fr))}.item-editor{background:#f7f9f5;border:1px solid #edf1eb;border-radius:12px;gap:8px;padding:12px;display:grid}.item-heading{align-items:end;gap:8px;display:flex}.item-remove{color:#b55d55;background:0 0;border:0;border-radius:9px;flex:none;place-items:center;width:44px;height:44px;display:grid}.item-remove:hover{background:#f7eae7}.item-amount{grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:10px;width:100%;max-width:300px;display:grid}.item-options{border-top:1px solid #e6ede5}.item-options summary{color:#66836d;cursor:pointer;flex-wrap:wrap;align-items:center;gap:6px;min-height:40px;font-size:12px;font-weight:700;list-style:none;display:flex}.item-options summary::-webkit-details-marker{display:none}.item-options summary:after{content:"⌄";margin-left:auto;font-size:18px;line-height:1}.item-options[open] summary:after{transform:rotate(180deg)}.item-options summary span{color:#738c72;background:#ebf2e9;border-radius:6px;padding:3px 6px;font-size:10px;font-weight:600}.item-options-fields{gap:12px;padding:2px 0 4px;display:grid}.hint{color:#94a296;margin:0;font-size:11px;line-height:1.6}.actions{justify-content:flex-end;gap:10px;display:flex}.actions .left{margin-right:auto}.alert{z-index:100;color:#9a4e45;background:#fff3ee;border:1px solid #edd3cc;border-radius:10px;justify-content:space-between;align-items:center;gap:15px;width:min(440px,100vw - 40px);padding:13px 16px;font-size:12px;display:flex;position:fixed;top:20px;right:20px;box-shadow:0 8px 30px #36291d20}.editor-screen{z-index:40;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:#f6f6f1;position:fixed;inset:0;overflow-y:auto}.editor-screen-inner{width:min(100%,920px);min-height:100%;margin:auto}.editor-screen-header{z-index:2;padding:max(12px, env(safe-area-inset-top)) 20px 12px;background:#fbfcf9;border-bottom:1px solid #e8eee6;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;display:grid;position:sticky;top:0}.editor-screen-header h1{overflow-wrap:anywhere;margin:0;font-size:clamp(20px,3vw,27px);line-height:1.2}.editor-back{color:#356247;background:0 0;border:0;border-radius:10px;width:44px;height:44px;font-size:32px;line-height:1}.editor-back:hover{background:#e8f2e6}.editor-screen-body{padding:24px 20px max(36px, env(safe-area-inset-bottom));align-content:start;gap:16px;display:grid}.editor-form{gap:16px;display:grid}.editor-section{background:#fff;border:1px solid #e9eee7;border-radius:16px;gap:14px;padding:20px;display:grid;box-shadow:0 5px 22px #394f3a08}.editor-section h2,.meal-editor-total h2,.editor-section-heading h2{font-size:18px}.nutrition-inputs .field:first-child input{background:#f0f7ff;border-color:#c9def5}.nutrition-inputs .field:nth-child(2) input{background:#f2f8ef;border-color:#d1e6cb}.nutrition-inputs .field:nth-child(3) input{background:#fff8ec;border-color:#f2dfbc}.nutrition-inputs .field:nth-child(4) input{background:#f8f2fe;border-color:#e4d2f3}.portion-row{grid-template-columns:minmax(0,1fr) minmax(90px,.6fr) 44px;align-items:end;gap:8px;display:grid}.add-wide{color:#287548;background:#e8f2e5;border:0;border-radius:10px;min-height:46px;padding:10px 15px;font-weight:800}.add-wide:hover{background:#dcecd8}.archive-area{border-top:1px solid #e2eae0;padding-top:10px}.meal-editor-total{background:#eef5ea;border-radius:15px;gap:12px;padding:17px;display:grid}.editor-section-heading{padding:4px 2px 0}.meal-product{background:#fff;border-color:#e9eee7;padding:15px;box-shadow:0 5px 22px #394f3a08}.meal-product-top{align-items:flex-start;gap:12px;min-width:0;display:flex}.meal-product-top>.item-remove{margin-left:-12px}.meal-product-top>.item-replace,.meal-product-top>.item-remove{width:32px}.meal-product-open{text-align:left;cursor:pointer;background:0 0;border:0;flex:1;align-items:flex-start;gap:12px;min-width:0;padding:0;display:flex}.item-replace{color:#347b52;cursor:pointer;background:0 0;border:0;border-radius:9px;flex:none;place-items:center;width:44px;height:44px;padding:0;display:grid}.item-replace:hover{background:#e8f3e8}.item-replace:focus-visible,.meal-product-open:focus-visible{outline-offset:2px;outline:2px solid #347b52}.meal-product-identity{flex:1;min-width:0}.choose-product{color:#263b2c;text-align:left;background:0 0;border:0;gap:5px;width:100%;min-height:60px;padding:2px 0;display:grid}.choose-product strong{overflow-wrap:anywhere;font-size:15px;line-height:1.3}.choose-product span{color:#86988a;overflow-wrap:anywhere;font-size:12px}.choose-product small{color:#43815b;font-weight:700}.item-warning{color:#a26a1e;font-size:12px;line-height:1.5}.picker-actions{flex-wrap:wrap;align-items:center;gap:8px 18px;display:flex}.picker-food strong,.picker-brand,.picker-nutrition{display:block}.picker-brand,.picker-nutrition{color:#87968a;margin-top:4px;font-size:11px}.loading{color:#829788;place-items:center;min-height:100vh;display:grid}.mobile-nav{display:none}@media (width<=1000px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.metric:nth-child(3){border-left:0}}.evidence-panel{margin:0}.evidence-images{flex-wrap:wrap;gap:.5rem;margin:.75rem 0;display:flex}.evidence-cover{color:#347b52;cursor:pointer;background:0 0;border:0;width:100%;padding:6px 2px;font-size:11px;display:block}.product-overview-head{align-items:flex-start;gap:16px;display:flex}.product-overview-head h2{overflow-wrap:anywhere;margin:0 0 6px}.product-overview-head p{color:#718275;margin:0 0 12px}.product-overview-photo{cursor:pointer;background:0 0;border:0;padding:0;position:relative}.product-overview-photo .food-photo{width:90px;height:90px}.product-overview-photo>span:last-child:not(:first-child){color:#fff;background:#26382dcc;border-radius:6px;padding:3px 5px;font-size:10px;position:absolute;bottom:0;right:0}.product-overview-nutrition h2{justify-content:space-between;gap:12px;display:flex}.product-overview-nutrition h2 small{color:#718275;font-size:12px;font-weight:500}.product-overview-nutrition .hint{margin-top:12px}.product-nutrition-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.product-nutrient{color:#387d50;background:#f3f6f2;border-radius:11px;align-items:center;gap:10px;min-width:0;padding:13px;display:flex}.product-nutrient div{gap:3px;min-width:0;display:grid}.product-nutrient strong{color:#233a29;overflow-wrap:anywhere;font-size:15px}.product-nutrient span{color:#718275;font-size:11px}.product-nutrient.nutrient-0{color:#347bb3;background:#f4f8fa}.product-nutrient.nutrient-2{color:#bf8321;background:#fcf5e9}.product-nutrient.nutrient-3{color:#8c5cb5;background:#f6f0fb}.product-gallery{z-index:100;color:#fff;padding:max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));background:#111713;flex-direction:column;align-items:center;display:flex;position:fixed;inset:0}.product-gallery header{justify-content:space-between;align-items:center;width:100%;font-size:18px;display:flex}.product-gallery button{color:inherit;cursor:pointer;background:0 0;border:0;font-size:28px}.product-gallery-main{flex:1;justify-content:center;align-items:center;gap:8px;width:100%;min-height:0;display:flex;overflow:hidden}.product-gallery-main img{object-fit:contain;max-width:calc(100% - 80px);max-height:100%}.product-gallery-main button:disabled{opacity:.25}.product-gallery-thumbs{gap:8px;max-width:100%;display:flex;overflow-x:auto}.product-gallery-thumbs button{border:2px solid #0000;border-radius:8px;padding:2px}.product-gallery-thumbs button[aria-current=true]{border-color:#a5d397}.product-gallery-thumbs img{object-fit:cover;border-radius:5px;width:64px;height:64px}.evidence-image{position:relative}.evidence-images img{object-fit:cover;border-radius:.6rem;width:120px;height:120px;display:block}.evidence-delete{color:#a3483f;background:#fffc;border:0;border-radius:8px;place-items:center;width:34px;height:34px;display:grid;position:absolute;top:4px;right:4px}.evidence-upload{cursor:pointer;display:inline-flex}.evidence-upload input{opacity:0;width:1px;height:1px;position:absolute;overflow:hidden}@media (width<=700px){.topbar{height:60px;padding:0 18px}.topbar-note,.sidebar{display:none}.brand{font-size:16px}.brand-mark{width:32px;height:32px}.shell{display:block}.content{padding:28px 17px 110px}.page-heading{align-items:flex-start}.page-heading .primary{width:45px;height:45px;padding:0;font-size:0}.page-heading .primary:first-letter{font-size:22px}.nutrition-panel{padding:15px}.nutrition-heading{margin-bottom:12px}.nutrition-heading h2{font-size:18px}.metrics{gap:6px}.metric{padding:11px}.metric-name{font-size:13px}.metric-number{font-size:23px}.section-heading{margin-top:30px}.meal-card{grid-template-columns:38px minmax(0,1fr) 18px;gap:5px 10px;padding:12px}.meal-symbol{grid-row:1/3;align-self:start;width:38px;height:38px}.meal-values{grid-column:2;justify-content:flex-start}.meal-arrow{grid-area:1/3/3}.meal-partial{text-align:left}.target-layout,.settings-layout{grid-template-columns:1fr}.panel{padding:20px}.food-card{align-items:flex-start}.food-actions{gap:0;display:grid}.food-icon{flex-basis:38px;height:38px}.mobile-nav{z-index:10;padding:7px 5px max(7px, env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e5ece3;display:flex;position:fixed;bottom:0;left:0;right:0}.mobile-nav button{color:#8c9e92;background:0 0;border:0;flex:1;place-content:center;justify-items:center;gap:4px;min-width:0;min-height:50px;padding:2px 0;font-size:clamp(10px,3vw,12px);font-weight:600;display:grid}.mobile-nav button.selected{color:#347b52;font-weight:700}.four-cols{grid-template-columns:repeat(2,minmax(0,1fr))}.week-heading{align-items:flex-start;gap:10px}.week-range{padding:8px;font-size:12px}.week-range svg{width:17px;height:17px}.week-row{grid-template-columns:minmax(105px,.85fr) minmax(0,1.65fr) 12px;gap:10px;padding:15px 13px}.week-date-title strong{font-size:15px}.week-nutrition{padding-left:10px}.week-nutrition .nutrition-badge{padding:4px 5px;font-size:11px}.food-photo{flex-basis:64px;width:64px;height:64px}.food-card{gap:11px;padding:13px}.food-card h3{font-size:13px}.editor-screen-header{gap:8px;padding-inline:12px}.editor-screen-body{padding:17px 14px max(30px, env(safe-area-inset-bottom))}.editor-section{padding:15px}.meal-product{padding:12px}}@media (width<=767px){.today-swipe{touch-action:pan-y}.overlay{place-items:end stretch;padding:0}.editor-overlay .modal{border-radius:20px 20px 0 0;height:min(94dvh,100dvh - 12px);max-height:calc(100dvh - 12px)}.modal{border-radius:20px 20px 0 0;width:100%;height:min(94dvh,100dvh - 12px);max-height:calc(100dvh - 12px);transform:translateY(100%)}.modal.modal-compact{width:100%;max-height:min(80dvh,100dvh - 12px)}.overlay-active .modal{transform:translateY(0)}.modal-handle{flex:none;place-items:center;height:22px;display:grid}.modal-handle span{background:#d3ddd2;border-radius:4px;width:38px;height:4px}.modal>header{padding:0 20px 16px}.modal-body{padding:0 20px max(24px, env(safe-area-inset-bottom))}.nutrient-tab{gap:4px;padding:8px 7px;font-size:11px}.nutrient-tab svg{width:16px;height:16px}}@media (prefers-reduced-motion:reduce){.overlay,.modal{transition-duration:0s}}.ai-float{z-index:15;right:16px;bottom:calc(84px + env(safe-area-inset-bottom));color:#fff;background:#347b52;border:0;border-radius:50%;place-items:center;width:56px;height:56px;display:grid;position:fixed;box-shadow:0 4px 14px #1d4a3040}.ai-float:hover{background:#286940}.ai-float-busy:after{content:"";border:3px solid #347b52;border-right-color:#0000;border-radius:50%;animation:1.1s linear infinite ai-spin;position:absolute;inset:-4px}.ai-unread{background:#e0583a;border:2px solid #fff;border-radius:50%;width:13px;height:13px;position:absolute;top:4px;right:4px}.ai-backdrop{z-index:45;touch-action:none;background:#0e1a1226;position:fixed;inset:0}.ai-panel{--ai-keyboard:0px;--ai-viewport:100dvh;z-index:50;left:0;right:0;bottom:var(--ai-keyboard);height:calc(var(--ai-viewport) * .9);padding-bottom:env(safe-area-inset-bottom);color:#222c25;background:#fff;border-radius:24px 24px 0 0;flex-direction:column;transition:transform .22s;display:flex;position:fixed;transform:translateY(0);box-shadow:0 -6px 28px #0e1a1229}.ai-panel-closed{pointer-events:none;transform:translateY(110%)}.ai-drag-zone{touch-action:none;-webkit-user-select:none;user-select:none;flex:none}.ai-handle{cursor:grab;place-items:center;height:26px;display:grid}html.ai-sheet-open,html.ai-sheet-open body{overscroll-behavior-y:none}.ai-handle span{background:#d4dbd5;border-radius:4px;width:42px;height:5px}.ai-header{border-bottom:1px solid #edf1ed;flex:none;align-items:center;gap:6px;padding:0 12px 12px 16px;display:flex}.ai-title{flex:1;gap:1px;min-width:0;display:grid}.ai-title strong{font-size:17px}.ai-diary{color:#2f6e49;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:700;overflow:hidden}.ai-upload-note{color:#607267;align-self:center;font-size:12px}.ai-icon-button{color:#4c6c56;background:0 0;border:0;border-radius:50%;flex:none;place-items:center;width:44px;height:44px;display:grid}.ai-icon-button:hover,.ai-icon-button[aria-pressed=true]{background:#eef5ef}.ai-avatar{color:#2f7a4b;background:#e6f3e8;border-radius:12px;flex:none;place-items:center;width:34px;height:34px;display:grid}.ai-avatar-large{border-radius:14px;width:44px;height:44px}.ai-avatar-hero{border-radius:20px;width:64px;height:64px;margin:0 auto 6px}.ai-avatar-busy{animation:1.2s ease-in-out infinite ai-pulse}.ai-messages{overscroll-behavior:contain;flex-direction:column;flex:1;gap:14px;padding:16px 14px 8px;display:flex;position:relative;overflow-y:auto}.ai-empty{text-align:center;color:#607267;max-width:300px;margin:auto}.ai-empty h3{color:#222c25;margin:6px 0 4px;font-size:20px}.ai-empty p{margin:0;line-height:1.45}.ai-row{align-items:flex-start;gap:8px;display:flex}.ai-row-user{justify-content:flex-end}.ai-bubble{overflow-wrap:anywhere;border-radius:16px;padding:10px 13px;line-height:1.45}.ai-bubble p{white-space:pre-wrap;margin:0}.ai-bubble-user{background:#e3f3e2;border-bottom-right-radius:6px;gap:6px;max-width:85%;display:grid}.ai-bubble-user time{justify-self:end}.ai-bubble-assistant{background:#f3f5f2;border-top-left-radius:6px}.ai-assistant-body{flex:1;justify-items:start;gap:8px;min-width:0;max-width:calc(100% - 42px);display:grid}.ai-assistant-body>.ai-cards{width:100%}.ai-row time{color:#8a978e;font-size:11px}.ai-thumbs{flex-wrap:wrap;gap:6px;display:flex}.ai-thumbs img{object-fit:cover;border-radius:10px;width:88px;height:88px}.ai-markdown p{white-space:normal;margin:0 0 8px}.ai-markdown p:last-child,.ai-markdown ul:last-child,.ai-markdown ol:last-child{margin-bottom:0}.ai-markdown ul,.ai-markdown ol{margin:0 0 8px;padding-left:20px}.ai-markdown li+li{margin-top:3px}.ai-markdown a{color:#2f6e49}.ai-markdown code{background:#e6ebe6;border-radius:4px;padding:1px 4px;font-size:.92em}.ai-typing{color:#4c6c56;background:#f3f5f2;border-radius:16px;align-items:center;gap:10px;padding:10px 13px;font-size:14px;display:inline-flex}.ai-dots{gap:4px;display:inline-flex}.ai-dots i{background:#6c9c7b;border-radius:50%;width:6px;height:6px;animation:1s ease-in-out infinite ai-pulse}.ai-dots i:nth-child(2){animation-delay:.15s}.ai-dots i:nth-child(3){animation-delay:.3s}.ai-options{flex-wrap:wrap;gap:8px;padding-left:42px;display:flex}.ai-options button{color:#2f6e49;background:#fff;border:1px solid #b9d6c0;border-radius:20px;min-height:40px;padding:8px 14px;font-weight:600}.ai-options button:hover{background:#eef7ef}.ai-jump{z-index:2;color:#347b52;background:#fff;border:1px solid #dfe7df;border-radius:50%;place-items:center;width:40px;height:40px;display:grid;position:absolute;bottom:132px;right:18px;box-shadow:0 2px 8px #0002}.ai-notice{color:#8b2f1a;background:#fff3ef;border-radius:12px;flex-wrap:wrap;align-items:center;gap:8px;margin:0 12px 6px;padding:8px 10px 8px 12px;font-size:13px;display:flex}.ai-notice span{flex:160px}.ai-notice button{color:#8b2f1a;background:0 0;border:0;min-height:32px;font-weight:700}.ai-composer-wrap{overscroll-behavior:contain;background:#fff;border-top:1px solid #edf1ed;flex:none;padding:10px 12px 12px}.ai-composer{align-items:flex-end;gap:8px;display:flex}.ai-composer textarea{resize:none;background:#fafbf9;border:1px solid #d8e0da;border-radius:16px;flex:1;min-width:0;min-height:46px;max-height:140px;padding:12px 14px;line-height:1.35}.ai-composer textarea:focus{background:#fff;border-color:#7fb491;outline:none}.ai-tool,.ai-send{color:#2f7a4b;background:#e9f4ea;border:0;border-radius:14px;flex:none;place-items:center;width:46px;height:46px;display:grid}.ai-send{color:#fff;background:#347b52}.ai-send:not(:disabled):hover{background:#286940}.ai-stop{background:#4c5a50}.ai-recording{align-items:center}.ai-wave{background:#f3f8f4;border-radius:16px;flex:1;justify-content:center;align-items:center;gap:5px;height:46px;display:flex}.ai-wave i{transform-origin:50%;background:#3f9461;border-radius:3px;width:5px;height:30px;transition:transform 90ms linear;display:block}.ai-timer{font-variant-numeric:tabular-nums;color:#2f6e49;text-align:center;min-width:44px;font-weight:700}.ai-attachments{gap:8px;padding-bottom:8px;display:flex;overflow-x:auto}.ai-attachment{flex:none;position:relative}.ai-attachment img{object-fit:cover;border-radius:12px;width:64px;height:64px;display:block}.ai-attachment button{color:#fff;background:#3d4a41;border:2px solid #fff;border-radius:50%;place-items:center;width:26px;height:26px;padding:0;display:grid;position:absolute;top:-6px;right:-6px}.ai-history{flex:1;padding:14px;overflow-y:auto}.ai-history ul{gap:4px;margin:12px 0 0;padding:0;list-style:none;display:grid}.ai-history li{border-radius:12px;align-items:center;gap:2px;display:flex}.ai-history-current{background:#f1f7f2}.ai-history-open{text-align:left;background:0 0;border:0;border-radius:12px;flex:1;gap:2px;min-width:0;padding:10px 12px;display:grid}.ai-history-open:hover{background:#f4f7f4}.ai-history-open strong,.ai-history-open small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ai-history-open small{color:#708077}.ai-rename,.ai-history-confirm{flex-wrap:wrap;flex:1;align-items:center;gap:8px;padding:8px;display:flex}.ai-rename input{border:1px solid #cdd8cf;border-radius:10px;flex:160px;min-height:40px;padding:8px 10px}.ai-history-confirm span{flex:100%;font-size:14px}.ai-new{justify-content:center;width:100%}.ai-cards{gap:8px;display:grid}.ai-card{background:#fff;border:1px solid #dfeadf;border-radius:16px;gap:10px;padding:12px 14px;display:grid;box-shadow:0 1px 2px #0e1a120d}.ai-card>header{color:#2f6e49;align-items:center;gap:10px;display:flex}.ai-card>header>div{flex:1;min-width:0;display:grid}.ai-card>header strong{color:#222c25;font-size:16px}.ai-card>header small{color:#708077;font-size:12px}.ai-card>header .food-photo{flex-basis:52px;width:52px;height:52px}.ai-meal-card>header,.ai-product-card>header{background:#f2f8f1;border-radius:16px 16px 0 0;margin:-12px -14px 0;padding:10px 14px}.ai-status{color:#2f7a4b;flex:none;align-items:center;gap:4px;font-size:12px;font-weight:700;display:inline-flex}.ai-status-warn{color:#a3530f}.ai-status-muted{color:#6b776f}.ai-items{gap:8px;margin:0;padding:0;list-style:none;display:grid}.ai-items li{align-items:center;gap:10px;display:flex}.ai-items li>span:not(.food-photo){flex:1;min-width:0;display:grid}.ai-items li small{color:#708077}.ai-items li b{flex:none;font-size:14px}.ai-items .food-photo{border-radius:10px;flex-basis:36px;width:36px;height:36px}.ai-items .food-photo svg{width:20px;height:20px}.ai-pending{color:#a3530f;font-size:12px;font-weight:600}.ai-totals{background:#f2f8f1;border-radius:12px;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:9px 12px;font-size:13px;display:flex}.ai-totals>strong{color:#2f6e49;margin-right:2px}.ai-total{align-items:center;gap:3px;font-weight:700;display:inline-flex}.ai-total-kcal{color:#175cad}.ai-total-protein{color:#28763a}.ai-total-fat{color:#a96608}.ai-total-carbs{color:#783bb2}.ai-partial{color:#a3530f;flex-basis:100%}.ai-card footer{flex-wrap:wrap;gap:8px;display:flex}.ai-action{color:#2f6e49;background:0 0;border:0;border-radius:12px;align-items:center;gap:6px;min-height:40px;padding:8px 12px;font-weight:700;display:inline-flex}.ai-action:hover{background:#eef5ef}.ai-action-primary{background:#e3f1e4}.ai-action-danger{color:#fff;background:#c4432b}.ai-action-danger:hover{background:#a8341f}.ai-link{color:#2f6e49;background:0 0;border:0;justify-self:start;padding:4px 0;font-weight:700}.ai-note{color:#4f5d53;margin:0;font-size:13px;line-height:1.4}.ai-estimate{color:#8a5a12}.ai-progress{gap:10px;display:grid}.ai-progress-row{gap:4px;display:grid}.ai-progress-head{color:var(--ink);justify-content:space-between;gap:8px;font-size:13px;display:flex}.ai-progress-name{color:var(--accent);align-items:center;gap:5px;font-weight:700;display:inline-flex}.ai-progress-row small{color:#708077;font-size:12px}.ai-progress .meter{position:relative}.ai-progress .meter i{position:absolute;top:0;left:0}.ai-progress .meter .ai-meter-base{z-index:1}.ai-progress-row{--accent:#4e9d43;--pale:#e7f3e4;--ink:#123b21}.ai-progress-row.metric-calories{--accent:#1262c4;--pale:#dcecff;--ink:#102d54}.ai-progress-row.metric-fat{--accent:#de9519;--pale:#fff1da;--ink:#5d3909}.ai-progress-row.metric-carbs{--accent:#8b4cc4;--pale:#f1e6fa;--ink:#422267}.ai-confirm-card{border-color:#f0d2c9}.ai-confirm-card>header{color:#b4442d}.ai-error-card{background:#fff8f6;border-color:#f0d2c9}.ai-error-card>header{color:#b4442d}.ai-error-card>header small{color:#6d4c44;font-size:13px}.ai-muted-card{background:#f8faf8;border-color:#e1e6e2}.ai-muted-card>header{color:#6b776f}.ai-settings .ai-toggle{align-items:flex-start;gap:12px;padding:10px 0;display:flex}.ai-settings .ai-toggle input{accent-color:#347b52;flex:none;width:22px;height:22px;margin-top:2px}.ai-settings .ai-toggle span{gap:2px;display:grid}.ai-settings .ai-toggle small{color:#708077}.ai-settings .secondary{align-items:center;gap:6px;display:inline-flex}@keyframes ai-spin{to{transform:rotate(360deg)}}@keyframes ai-pulse{0%,to{opacity:1}50%{opacity:.35}}@media (width<=767px){.ai-close{display:none}}@media (width>=768px){.ai-drag-zone{touch-action:auto;-webkit-user-select:auto;user-select:auto}.ai-float{bottom:24px;right:24px}.ai-backdrop{display:none}.ai-panel{border-radius:24px 0 0 24px;width:440px;height:auto;transition:transform .22s;top:0;bottom:0;left:auto;box-shadow:-6px 0 28px #0e1a1224}.ai-panel-closed{transform:translate(105%)}.ai-handle{display:none}.ai-header{padding-top:14px}.ai-jump{bottom:120px}}@media (prefers-reduced-motion:reduce){.ai-panel{transition:none}.ai-float-busy:after,.ai-avatar-busy,.ai-dots i{animation:none}}.ai-usage{gap:12px;display:grid}.ai-usage-filters{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.ai-usage-filters select,.ai-usage-head select{background:#fff;border:1px solid #d8e0da;border-radius:10px;min-height:40px;padding:6px 10px}.ai-segmented{background:#eef3ee;border-radius:12px;flex-wrap:wrap;gap:2px;padding:3px;display:inline-flex}.ai-segmented button{color:#4c6c56;background:0 0;border:0;border-radius:9px;min-height:36px;padding:6px 12px;font-weight:700}.ai-segmented button.active{color:#1f5a37;background:#fff;box-shadow:0 1px 3px #0001}.ai-usage-dates{flex-wrap:wrap;gap:12px;display:flex}.ai-usage-dates label{align-items:center;gap:6px;display:flex}.ai-usage-chip{margin:0}.ai-usage-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;display:grid}.ai-stat{background:#fff;border:1px solid #e3ebe3;border-radius:14px;align-content:start;gap:3px;padding:12px 14px;display:grid}.ai-stat span{color:#68766d;font-size:12px;font-weight:700}.ai-stat strong{color:#1d3527;font-variant-numeric:tabular-nums;font-size:20px}.ai-stat small{color:#68766d;line-height:1.35}.ai-chart{background:#fff;border:1px solid #e3ebe3;border-radius:14px;margin:4px 0 0;padding:12px 14px}.ai-chart figcaption{color:#1d3527;justify-content:space-between;margin-bottom:10px;font-weight:700;display:flex}.ai-chart figcaption span{color:#68766d;font-size:12px;font-weight:400}.ai-chart-plot{border-bottom:1px solid #dfe6df;align-items:flex-end;gap:2px;height:120px;display:flex;position:relative}.ai-chart-bar{cursor:default;background:0 0;border:0;flex:1;align-items:flex-end;min-width:3px;height:100%;padding:0;display:flex}.ai-chart-bar i{background:#347b52;border-radius:4px 4px 0 0;width:100%;display:block}.ai-chart-bar.active i,.ai-chart-bar:focus-visible i{background:#1f5a37}.ai-chart-tip{z-index:2;color:#fff;pointer-events:none;white-space:nowrap;background:#1d2b22;border-radius:10px;gap:2px;min-width:170px;padding:8px 10px;font-size:12px;display:grid;position:absolute;bottom:calc(100% + 6px);transform:translate(-50%)}.ai-chart-axis{color:#68766d;justify-content:space-between;margin-top:4px;font-size:12px;display:flex}.ai-billing,.ai-billing .ai-table-scroll{gap:10px;display:grid}.ai-usage-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.ai-usage-head h4,.ai-usage h4{margin:8px 0 0}.ai-table-scroll{overflow-x:auto}.ai-usage-table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;font-size:13px}.ai-usage-table th,.ai-usage-table td{text-align:left;white-space:nowrap;border-bottom:1px solid #edf1ed;padding:8px 10px}.ai-usage-table th{color:#68766d;font-size:12px;font-weight:700}.ai-usage-table-wrap summary{cursor:pointer;color:#2f6e49;padding:4px 0;font-weight:700}.ai-pager{align-items:center;gap:10px;display:flex}.admin-ai-usage .ai-usage{box-shadow:none;background:0 0;border:0;margin:12px 0 0;padding:0}.ai-other-diary{color:#7a4b07;background:#fff4e0;border-radius:10px;align-items:center;gap:6px;margin:0;padding:7px 10px;font-size:13px;display:flex}
