:root{color-scheme:light;--bg:#f7f6f0;--paper:#fffefa;--ink:#242d29;--muted:#818981;--line:#e9e9df;--green:#5c755f;--green-dark:#344c38;--green-pale:#e9efe6;--peach:#f6dfcf;--yellow:#f1ce7c;--lavender:#e9e6f3;--shadow:0 12px 35px rgba(48,59,46,.045);--radius:22px;font-family:"DM Sans",sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-size:14px}button,input,select{font:inherit}button{color:inherit;cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #91ad95;outline-offset:3px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.app-shell{min-height:100dvh}.rail{position:fixed;inset:0 auto 0 0;width:226px;padding:29px 17px 22px 22px;display:flex;flex-direction:column;background:#f3f3eb;border-right:1px solid #ecece3;z-index:5}.brand,.mobile-brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--ink);font-family:Manrope,sans-serif;font-weight:800;font-size:22px;letter-spacing:-1px}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:#dce8d9;color:var(--green-dark)}.brand-mark svg{width:25px;height:25px;fill:#739074;stroke:#49664d;stroke-width:1.25}.brand-dot{color:#98a771}.rail-nav{display:grid;gap:6px;margin-top:63px}.nav-item{height:46px;width:100%;display:flex;align-items:center;gap:13px;padding:0 13px;border:0;background:transparent;color:#747d74;text-align:left;border-radius:13px;font-weight:600;transition:background .18s,color .18s,transform .18s}.nav-item svg{width:19px;height:19px}.nav-item:hover{background:#e9ebe2;color:var(--ink)}.nav-item.active{background:#e3eadf;color:#3e5942}.rail-bottom{margin-top:auto}.main-content{max-width:1340px;margin-left:226px;padding:0 54px 64px}.topbar{height:94px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.top-date{display:grid;gap:4px}.eyebrow{font-size:10px;line-height:1.2;letter-spacing:1.28px;font-weight:700;color:#969d92;margin:0}.top-subtitle{color:#70796f;font-size:12px}.top-actions{display:flex;align-items:center;gap:13px}.sync-pill{display:flex;align-items:center;gap:7px;padding:8px 11px;border-radius:20px;background:#eeefe8;color:#778074;font-size:11px}.sync-dot{width:6px;height:6px;border-radius:50%;background:#94aa83}.avatar{width:34px;height:34px;border-radius:50%;border:1px solid #e0ddd0;background:#ede6da;color:#716d60;font-family:Manrope,sans-serif;font-weight:700}.mobile-brand{display:none}.view{display:none;animation:fade-in .22s ease}.view.active-view{display:block}@keyframes fade-in{from{opacity:.35;transform:translateY(4px)}to{opacity:1;transform:none}}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:37px 0 23px}.accent{color:#789275}.page-heading h1{font:700 33px/1.18 Manrope,sans-serif;letter-spacing:-1.2px;margin:8px 0 7px}.heading-spark{color:#b5bf93;font-size:19px;vertical-align:5px;margin-left:4px}.lead{margin:0;color:#858d83;font-size:13px}.date-button,.text-button,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:transparent;border:1px solid var(--line);border-radius:12px;padding:10px 13px;color:#6c766c;font-size:12px;font-weight:600}.date-button svg,.text-button svg{width:16px;height:16px}.date-button:hover,.icon-button:hover{background:#f0f1e9}.overview-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:17px}.panel{background:var(--paper);border:1px solid rgba(230,231,221,.85);border-radius:var(--radius);box-shadow:var(--shadow)}.calorie-card{height:239px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;padding:28px 38px 27px 31px;background:#e7eee3;border-color:#e1e9dc}.section-label{font-size:10px;letter-spacing:1.08px;color:#818b7d;font-weight:700}.tiny-info{display:inline-grid;place-items:center;width:14px;height:14px;margin-left:3px;border:1px solid #aeb9a5;border-radius:50%;font-size:9px;letter-spacing:0;color:#778774}.calorie-number{font:700 46px/1.1 Manrope,sans-serif;letter-spacing:-2.2px;margin-top:18px;color:#334637;font-variant-numeric:tabular-nums}.calorie-number .unit{font:600 13px "DM Sans",sans-serif;letter-spacing:0;margin-left:7px;color:#6e7c6c}.calorie-goal{color:#798579;margin-top:4px;font-size:12px}.remaining-chip{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;margin-top:16px;border-radius:20px;background:#f3f5ef;color:#657363;font-size:11px}.remaining-mark{width:7px;height:7px;border-radius:50%;background:#9aaf8c}.remaining-chip b{font-weight:700;color:#4a5f4b}.progress-ring-wrap{position:relative;width:148px;height:148px;flex:0 0 148px;z-index:1}.progress-ring{transform:rotate(-90deg);width:100%;height:100%}.ring-track,.ring-value{fill:none;stroke-width:8}.ring-track{stroke:#d8e2d4}.ring-value{stroke:#718f73;stroke-linecap:round;stroke-dasharray:383.27;stroke-dashoffset:383.27;transition:stroke-dashoffset .6s ease}.ring-center{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;color:#415b44}.ring-center span{font:700 26px Manrope,sans-serif;letter-spacing:-1px}.ring-center small{font-size:10px;color:#859180;margin-top:1px}.ring-leaf{position:absolute;color:#9eae87}.leaf-one{top:6px;right:11px;font-size:15px}.leaf-two{bottom:11px;left:3px;font-size:24px}.card-orbit{position:absolute;border:1px solid rgba(123,151,118,.1);border-radius:50%;pointer-events:none}.orbit-a{width:220px;height:220px;right:35px;top:-115px}.orbit-b{width:180px;height:180px;right:-76px;bottom:-110px}.macro-card{padding:23px 25px 17px}.panel-heading,.section-heading,.streak-top,.weight-top,.trend-head,.weight-history-header{display:flex;align-items:center;justify-content:space-between}.panel-heading h2,.section-heading h2,.streak-top h2,.weight-top h2,.weight-history-header h2{font:700 18px Manrope,sans-serif;letter-spacing:-.45px;margin:6px 0 0}.icon-button{width:34px;height:34px;padding:0;border-radius:11px}.icon-button svg{width:17px;height:17px}.macro-list{display:grid;gap:17px;margin-top:20px}.macro-row{display:flex;align-items:center;gap:11px}.macro-icon{width:29px;height:29px;border-radius:10px;display:grid;place-items:center;font:700 11px Manrope,sans-serif;flex:0 0 29px}.protein{color:#587659;background:#e6eee2}.fat{color:#ad8c43;background:#f5edda}.carbs{color:#bd8069;background:#f5e7df}.macro-main{flex:1;min-width:0}.macro-title{display:flex;justify-content:space-between;align-items:baseline;font-size:11px;color:#697268;margin-bottom:7px}.macro-title b{font-weight:600;color:#4f5850}.macro-title strong{font:700 12px Manrope,sans-serif;color:#343e35;font-variant-numeric:tabular-nums}.macro-title span{color:#92988f;font-size:10px}.macro-title i{font-style:normal;color:#b1b6ad;padding:0 2px}.bar-track{height:5px;background:#eff0ea;border-radius:9px;overflow:hidden}.bar-fill{height:100%;display:block;border-radius:9px;width:0;transition:width .4s ease}.protein-fill{background:#82a182}.fat-fill{background:#ddbd70}.carbs-fill{background:#dfa68d}.macro-footer{display:flex;align-items:center;gap:7px;border-top:1px solid #f0f0ea;margin-top:18px;padding-top:13px;font-size:10px;color:#798178}.macro-footer b{font-size:11px;color:#525e51}.fiber-dot{width:7px;height:7px;border-radius:50%;background:#93a77c}.macro-footer-goal{margin-left:auto;color:#a1a69f}.meal-heading{margin-top:36px}.section-heading{margin:36px 0 16px}.section-heading .eyebrow{margin-bottom:2px}.meal-count{display:inline-grid;place-items:center;vertical-align:2px;width:20px;height:20px;border-radius:7px;background:#ebeee6;color:#778673;font:600 10px "DM Sans",sans-serif;margin-left:4px}.text-button{border:0;padding:7px 0;color:#778574;background:transparent}.text-button:hover{color:#3e5b43}.meal-layout{display:grid;grid-template-columns:1fr 247px;gap:17px;align-items:start}.meal-list{display:grid;gap:10px}.meal-group{padding:17px 18px 6px;background:var(--paper);border:1px solid rgba(230,231,221,.85);border-radius:18px}.meal-group-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.meal-kind{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700}.meal-kind-mark{display:grid;place-items:center;width:25px;height:25px;border-radius:9px;background:#f3ebdc;color:#a68b5c;font-size:12px}.meal-group.cal-group .meal-kind-mark{background:#e7eee1;color:#748b6e}.meal-group.dinner-group .meal-kind-mark{background:#e9e8f0;color:#817b9d}.meal-group.snack-group .meal-kind-mark{background:#f5e5df;color:#b07b68}.meal-time{font-size:10px;color:#9ba097}.meal-entry{display:flex;align-items:center;gap:11px;padding:11px 0;border-top:1px solid #f0f0e9}.meal-entry:first-of-type{border-top:0}.food-mark{width:35px;height:35px;border-radius:12px;background:#f1f0e6;display:grid;place-items:center;color:#8e9977;font:700 11px Manrope,sans-serif;flex:0 0 35px}.food-info{min-width:0;flex:1}.food-info b{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:12px;font-weight:600}.food-info span{display:block;color:#a0a59c;font-size:10px;margin-top:3px}.food-kcal{white-space:nowrap;text-align:right;font:700 12px Manrope,sans-serif;color:#4d5e4d}.food-kcal small{display:block;font:400 9px "DM Sans",sans-serif;color:#a0a59c;margin-top:3px}.food-delete{display:grid;place-items:center;width:28px;height:30px;border:0;background:transparent;color:#b5b8af;opacity:0;transition:opacity .2s}.food-delete svg{width:14px;height:14px}.meal-entry:hover .food-delete,.food-delete:focus-visible{opacity:1}.quick-add{padding:19px 18px 15px}.quick-icon{width:36px;height:36px;display:grid;place-items:center;background:#e7eee1;border-radius:12px;color:#648066}.quick-icon svg{width:19px;height:19px}.quick-add h3{font:700 14px Manrope,sans-serif;margin:13px 0 5px}.quick-add p{font-size:11px;line-height:1.55;color:#90978d;margin:0 0 14px}.button{min-height:42px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;font-size:11px;font-weight:700;transition:transform .15s,background .15s}.button:active{transform:scale(.97)}.button svg{width:16px;height:16px}.button-dark{width:100%;background:#435f47;color:#fff}.button-dark:hover{background:#354e39}.button-plain{width:100%;margin-top:6px;background:#f3f4ee;color:#657464}.button-plain:hover{background:#e9eee6}.quick-note{margin-top:13px;font-size:9px;color:#9ba194;line-height:1.45}.quick-note span{color:#b1b884;margin-right:3px}.bottom-grid{display:grid;grid-template-columns:.87fr 1.13fr;gap:17px;margin-top:20px}.streak-card,.weight-card{padding:20px 22px}.streak-card{background:#f4eadc;border-color:#eee2d2}.streak-flower{display:grid;place-items:center;width:33px;height:33px;border-radius:50%;background:#fbf3e6;color:#c09d5f;font-size:16px}.streak-number{display:flex;align-items:baseline;gap:8px;margin-top:16px}.streak-number b{font:700 34px Manrope,sans-serif;letter-spacing:-1.6px;color:#66553b}.streak-number span{color:#8f8169;font-size:11px}.streak-week{display:flex;justify-content:space-between;margin-top:14px;gap:7px}.streak-day{display:grid;justify-items:center;gap:6px;color:#958d7f;font-size:9px}.streak-day i{display:grid;place-items:center;width:24px;height:24px;border:1px solid #e8d9c4;border-radius:50%;font-style:normal;color:#a79c89;font-size:9px}.streak-day.done i{background:#d8e4d2;color:#577154;border-color:#d8e4d2}.small-note{font-size:9px;line-height:1.45;color:#928672;margin:12px 0 0}.weight-card{min-height:194px}.weight-top .text-button{font-size:10px}.weight-empty{display:flex;align-items:center;gap:11px;margin-top:17px;padding:12px 10px;border-radius:14px;background:#f7f7f1}.weight-illustration{width:43px;height:43px;display:grid;place-items:center;flex:0 0 43px;background:#e8eee4;border-radius:14px;color:#7b9478}.weight-illustration svg{width:33px;height:29px}.weight-empty>div:nth-child(2){min-width:0;flex:1}.weight-empty b{display:block;color:#566656;font-size:11px;font-weight:700}.weight-empty span{display:block;color:#979f92;font-size:9px;line-height:1.45;margin-top:4px}.round-add{width:32px;height:32px;border:1px solid #e2e8dc;background:#fffefa;border-radius:50%;color:#6b8768;display:grid;place-items:center;flex:0 0 32px}.round-add svg{width:16px;height:16px}.weight-chart-mini{height:73px;margin-top:12px}.mobile-nav{display:none}.modal{padding:25px;width:min(100% - 28px,520px);max-height:min(90dvh,850px);overflow-y:auto;border:1px solid #e5e7dc;border-radius:24px;background:#fffefa;color:var(--ink);box-shadow:0 22px 80px rgba(30,42,30,.2)}.modal::backdrop{background:rgba(35,46,37,.36);backdrop-filter:blur(2px)}.modal form{display:grid;gap:14px}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:2px}.modal-header h2{font:700 23px Manrope,sans-serif;letter-spacing:-.7px;margin:6px 0 0}.close-dialog{flex:0 0 auto}.modal label,.settings-fields label,.settings-time{display:grid;gap:6px;color:#606a60;font-size:11px;font-weight:600}.modal input,.modal select,.settings-fields input,.settings-time input{width:100%;height:43px;border:1px solid #e5e8df;border-radius:11px;background:#fbfbf7;padding:0 11px;color:#354037;font-size:12px}.modal input::placeholder,.settings-fields input::placeholder{color:#b4b9b0}.form-two{display:grid;grid-template-columns:1fr 1fr;gap:11px}.form-three{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.nutrient-details{border-top:1px solid #eee;margin-top:1px;padding-top:12px}.nutrient-details summary{font-size:11px;color:#687969;font-weight:700;cursor:pointer;margin-bottom:13px}.wide-field{grid-column:1/-1}.form-hint{margin:0;color:#929b90;font-size:10px;line-height:1.55}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:3px}.modal-actions .button{width:auto;min-width:100px}.compact-modal{max-width:410px}.optional{font-weight:400;color:#a1a89f}.calc-intro{margin-top:-8px}.detail-nutrients{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:9px 0 15px}.detail-tile{padding:13px;border:1px solid #edf0e8;background:#f8f9f3;border-radius:14px}.detail-tile span{display:block;font-size:10px;color:#8b9588}.detail-tile b{display:block;font:700 16px Manrope,sans-serif;color:#4c614e;margin-top:5px}.detail-tile small{color:#a4aa9f;font-size:9px}.toast{position:fixed;z-index:20;bottom:27px;left:50%;transform:translate(-50%,15px);padding:11px 17px;background:#344c38;color:#fff;border-radius:14px;font-size:12px;box-shadow:0 7px 25px #344c3833;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translate(-50%,0)}.history-controls{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;width:255px}.history-controls b{font:600 12px Manrope,sans-serif}.history-days{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;margin:15px 0}.history-day{border:1px solid var(--line);background:#fffefa;border-radius:16px;padding:13px 9px;text-align:center;cursor:pointer}.history-day.selected{border-color:#89a388;background:#e8eee4}.history-day span,.history-day b,.history-day small{display:block}.history-day span{font-size:9px;color:#90978f}.history-day b{font:700 16px Manrope,sans-serif;margin:8px 0;color:#434e43}.history-day small{font-size:9px;color:#9da399}.history-day .day-dot{width:5px;height:5px;border-radius:50%;background:#9eb391;margin:7px auto 0}.history-detail{padding:19px}.history-detail h2{font:700 16px Manrope,sans-serif;margin:0 0 11px}.history-detail p{font-size:11px;color:#90978f}.trend-card{padding:24px 27px}.trend-number{font:700 36px Manrope,sans-serif;letter-spacing:-1.5px;margin-top:7px}.trend-number small{font:600 13px "DM Sans",sans-serif;letter-spacing:0;color:#8d968a;margin-left:5px}.trend-change{padding:8px 11px;background:#f1f3ec;border-radius:20px;color:#7e8d77;font-size:10px}.weight-chart{height:260px;margin:20px 0 8px;position:relative}.weight-chart svg{width:100%;height:100%;overflow:visible}.chart-legend{display:flex;gap:18px;font-size:9px;color:#8f978c}.chart-legend span{display:flex;align-items:center;gap:6px}.chart-legend i{width:7px;height:7px;border-radius:50%;background:#d4b774}.chart-legend span+span i{background:#789276}.chart-explainer{font-size:10px;line-height:1.55;color:#929b90;margin:14px 0 0}.weight-history-header{margin:27px 2px 12px}.weight-history{display:grid;gap:8px}.weight-record{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;background:#fffefa;border:1px solid var(--line);border-radius:14px}.weight-record div:first-child{display:grid;gap:4px}.weight-record b{font:700 13px Manrope,sans-serif}.weight-record span{font-size:10px;color:#929b90}.weight-record .record-note{color:#7d8f77}.empty-panel{padding:27px;text-align:center;color:#8c9688;font-size:12px;line-height:1.55}.chat-window{max-width:790px;min-height:515px;display:flex;flex-direction:column;padding:19px}.chat-date{text-align:center;color:#a5aaa1;font-size:9px;letter-spacing:1px;font-weight:700;padding:1px 0 17px}.chat-messages{flex:1;overflow-y:auto;padding:0 3px 15px}.chat-message{display:flex;gap:9px;max-width:85%;margin-bottom:12px}.chat-message.user-message{margin-left:auto;flex-direction:row-reverse}.assistant-avatar{width:40px;height:40px;display:grid;place-items:center;background:#e6eee2;border-radius:14px;color:#668169}.assistant-avatar svg{width:21px;height:21px}.assistant-avatar.small{width:27px;height:27px;flex:0 0 27px;font-size:13px;border-radius:9px}.message-bubble{padding:11px 13px;background:#f4f5ef;border-radius:4px 15px 15px 15px}.user-message .message-bubble{background:#e5eee2;border-radius:15px 4px 15px 15px}.message-bubble p{font-size:11px;line-height:1.55;margin:0;color:#5b655a}.message-time{display:block;font-size:8px;color:#a6aca2;margin-top:5px}.chat-suggestions{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 5px 36px}.chat-suggestions button{border:1px solid #e5e8de;border-radius:18px;background:#fffefa;padding:8px 11px;color:#778474;font-size:9px}.chat-suggestions button:hover{background:#f1f4ec}.chat-tools{display:flex;align-items:center;gap:8px;border-top:1px solid #eff0e9;padding-top:13px}.chat-tool{width:37px;height:37px;border:1px solid #e7e9e0;background:#fafbf7;border-radius:12px;color:#778b75;display:grid;place-items:center;flex:0 0 37px}.chat-tool svg{width:17px;height:17px}.chat-tool.recording{background:#fae8e2;color:#c16b53;animation:pulse 1s infinite alternate}@keyframes pulse{to{transform:scale(1.08)}}.chat-input-wrap{height:42px;display:flex;align-items:center;gap:6px;flex:1;border:1px solid #e7e9e0;background:#fafbf7;border-radius:13px;padding:0 5px 0 11px}.chat-input-wrap textarea{min-width:0;flex:1;border:0;outline:0;background:transparent;font-size:11px;color:#394239}.chat-input-wrap button{width:31px;height:31px;border:0;border-radius:10px;background:#49644a;color:white;display:grid;place-items:center;flex:0 0 31px}.chat-input-wrap button svg{width:15px;height:15px}.chat-disclaimer{text-align:center;color:#a3a99e;font-size:9px;margin:10px 0 0}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.settings-panel{padding:22px}.settings-title{display:flex;align-items:center;gap:11px;margin-bottom:19px}.settings-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:12px}.settings-icon svg{width:18px;height:18px}.settings-icon.green{background:#e7eee2;color:#688468}.settings-icon.peach{background:#f5e8dd;color:#ba8e70}.settings-icon.lavender{background:#eceaf4;color:#8983a5}.settings-title h2{font:700 14px Manrope,sans-serif;margin:0}.settings-title p{font-size:10px;color:#969e93;margin:4px 0 0}.settings-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}.settings-fields input{height:39px}.full-width{display:flex;margin:10px auto 0}.toggle-row{position:relative;display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-top:1px solid #eff0e9;cursor:pointer}.toggle-row span{display:grid;gap:4px}.toggle-row b{font-size:11px;font-weight:600;color:#525e53}.toggle-row small{font-size:9px;color:#9ca399}.toggle-row input{position:absolute;opacity:0}.toggle-row i{width:38px;height:22px;border-radius:20px;background:#e3e6df;position:relative;transition:background .2s}.toggle-row i:after{content:"";position:absolute;width:16px;height:16px;border-radius:50%;background:#fff;top:3px;left:3px;box-shadow:0 1px 3px #0002;transition:transform .2s}.toggle-row input:checked+i{background:#779576}.toggle-row input:checked+i:after{transform:translateX(16px)}.settings-time{grid-template-columns:1fr auto;align-items:center;padding:11px 0;color:#7e877c}.settings-time input{width:104px;height:34px}.button-soft{width:100%;margin-top:10px;background:#f0f3ed;color:#617560}.divider{height:1px;background:#eef0e8;margin:19px 0}.settings-panel>.text-button{font-size:10px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:1500px){.main-content{padding-right:75px;padding-left:75px}}@media(max-width:1160px){.rail{width:190px;padding-left:16px;padding-right:13px}.main-content{margin-left:190px;padding-left:30px;padding-right:30px}.overview-grid{grid-template-columns:1fr 1fr}.calorie-card{padding-left:23px;padding-right:22px}.progress-ring-wrap{width:130px;height:130px;flex-basis:130px}.meal-layout{grid-template-columns:1fr 220px}}@media(max-width:850px){.rail{width:72px;align-items:center;padding:21px 10px}.brand{font-size:0}.brand-mark{width:39px;height:39px}.rail-nav{width:100%;margin-top:52px}.nav-item{justify-content:center;padding:0}.nav-item span{display:none}.rail-bottom{width:100%}.main-content{margin-left:72px;padding-left:25px;padding-right:25px}.meal-layout{grid-template-columns:1fr}.quick-add{display:grid;grid-template-columns:40px 1fr auto;align-items:center;column-gap:12px}.quick-icon{grid-row:span 2}.quick-add h3{margin:0}.quick-add p{margin:4px 0 0}.quick-add .button{grid-column:3;grid-row:1}.quick-add .button-plain{grid-row:2;margin:0}.quick-note{display:none}.overview-grid{grid-template-columns:1fr}.calorie-card{height:220px}.macro-card{padding-bottom:18px}.bottom-grid{grid-template-columns:1fr 1fr}}@media(max-width:600px){body{font-size:13px}.rail{display:none}.main-content{margin:0;padding:0 17px calc(94px + env(safe-area-inset-bottom))}.topbar{height:64px;margin:0 -17px;padding:0 17px;background:rgba(247,246,240,.94);position:sticky;top:0;z-index:4;border-bottom:1px solid #edede5;backdrop-filter:blur(12px)}.mobile-brand{display:flex;font-size:19px;gap:7px}.mobile-brand .brand-mark{width:29px;height:29px;border-radius:10px}.mobile-brand .brand-mark svg{width:22px;height:22px}.top-date{display:none}.top-actions{gap:8px}.sync-pill{padding:7px 9px;font-size:9px}.avatar{width:31px;height:31px}.page-heading{margin:27px 0 19px;align-items:center}.page-heading h1{font-size:28px;margin:6px 0}.page-heading .lead{font-size:11px;max-width:245px}.date-button{padding:9px 10px;font-size:10px}.date-button svg{width:14px}.overview-grid{gap:11px}.calorie-card{height:205px;padding:21px 20px}.calorie-number{font-size:40px;margin-top:14px}.progress-ring-wrap{width:122px;height:122px;flex-basis:122px}.ring-center span{font-size:23px}.remaining-chip{margin-top:13px;font-size:10px;padding:7px 9px}.macro-card{padding:18px 17px 15px}.macro-list{gap:14px;margin-top:16px}.macro-footer{margin-top:14px}.section-heading{margin:27px 0 12px}.section-heading h2,.streak-top h2,.weight-top h2{font-size:16px}.section-heading .text-button{font-size:10px}.meal-layout{gap:11px}.meal-group{padding:14px 14px 5px}.meal-entry{gap:8px}.food-mark{width:32px;height:32px;flex-basis:32px}.food-info b{font-size:11px}.food-kcal{font-size:11px}.quick-add{grid-template-columns:37px 1fr auto;padding:14px 13px;gap:8px}.quick-add h3{font-size:12px}.quick-add p{font-size:9px}.quick-add .button{min-height:37px;padding:0 9px;font-size:9px;gap:5px}.quick-add .button svg{width:14px;height:14px}.bottom-grid{grid-template-columns:1fr;gap:11px;margin-top:12px}.streak-card,.weight-card{padding:17px}.streak-number{margin-top:11px}.small-note{margin-top:9px}.mobile-nav{height:calc(67px + env(safe-area-inset-bottom));padding:6px 8px calc(6px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);position:fixed;z-index:8;inset:auto 0 0;background:rgba(255,254,250,.96);border-top:1px solid #e8e9e0;backdrop-filter:blur(14px)}.mobile-nav-item{border:0;background:transparent;color:#92988f;display:grid;justify-items:center;align-content:center;gap:3px;font-size:9px}.mobile-nav-item svg{width:19px;height:19px}.mobile-nav-item.active{color:#4c694d}.mobile-nav-item.active svg{stroke-width:2}.toast{bottom:calc(79px + env(safe-area-inset-bottom));white-space:nowrap}.history-controls{width:100%}.history-days{gap:4px}.history-day{padding:10px 3px;border-radius:13px}.history-day b{font-size:13px}.settings-grid{grid-template-columns:1fr;gap:11px}.settings-panel{padding:18px}.trend-card{padding:18px}.weight-chart{height:210px}.chat-window{min-height:calc(100dvh - 215px);padding:13px}.chat-tools{gap:6px}.chat-tool{width:34px;height:34px;flex-basis:34px}.chat-input-wrap{height:39px}.chat-input-wrap textarea{font-size:10px}.chat-disclaimer{font-size:8px}.modal{padding:20px 17px;border-radius:21px}.modal-header h2{font-size:21px}.modal label{font-size:10px}.modal input,.modal select{height:41px}.form-three{gap:7px}.form-three label{font-size:9px}.form-three input{padding:0 7px;font-size:11px}.modal-actions .button{min-height:40px;font-size:10px;min-width:88px}.page-heading:has(>.button){align-items:flex-end}.page-heading>.button{width:auto;min-height:38px;padding:0 10px;font-size:10px}.history-day small{font-size:8px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
.settings-help{font-size:10px;line-height:1.5;color:#929b90;margin:4px 0 10px}.google-signin-button{min-height:40px}
.eyebrow,.section-label,.calorie-goal,.remaining-chip,.macro-title,.macro-title span,.macro-footer,.meal-time,.food-info span,.food-kcal small,.quick-add p,.quick-note,.small-note,.streak-number span,.streak-day,.weight-empty b,.weight-empty span,.trend-change,.chart-legend,.chart-explainer,.history-day span,.history-day small,.weight-record span,.chat-date,.message-bubble p,.message-time,.chat-suggestions button,.chat-input-wrap textarea,.chat-disclaimer,.settings-title p,.settings-help,.settings-time,.toggle-row b,.toggle-row small,.settings-fields label,.modal label,.form-hint,.date-button,.text-button,.button{font-size:12px}.page-heading .lead,.lead{font-size:14px}.quick-add .button,.page-heading>.button{font-size:12px}.form-three label,.form-three input{font-size:12px}.macro-title strong{font-size:13px}.macro-footer b{font-size:12px}.food-info b{font-size:13px}.food-kcal{font-size:13px}.history-day b{font-size:15px}.chat-message p{font-size:13px}
.account-fields{display:grid;gap:10px;margin:12px 0}.account-fields label{display:grid;gap:6px;color:#697268;font-size:12px}.account-fields input{height:44px;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:#fffefa;color:var(--ink)}.account-actions{display:flex;flex-wrap:wrap;gap:8px}.account-actions .button{min-height:44px}.account-fields[hidden],#account-signout[hidden]{display:none}
@media(min-width:901px){.main-content{width:calc(100% - 226px);max-width:1640px;margin-left:226px}}

/* Rest, rhythm, and conversation workspace */
.sleep-overview{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,.75fr);gap:17px}
.sleep-hero{min-height:264px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;padding:29px 34px;background:linear-gradient(118deg,#e9eee7 3%,#e6e9ee 58%,#eeeaf1 100%);border-color:#e3e6e2}
.sleep-hero-copy{position:relative;z-index:1}.sleep-duration{display:grid;gap:5px;margin:19px 0 18px}.sleep-duration>span{font:700 42px/1.1 Manrope,sans-serif;letter-spacing:-1.8px;color:#354339;font-variant-numeric:tabular-nums}.sleep-duration small{font-size:12px;color:#7c867d}.sleep-target{display:flex;align-items:center;gap:8px;color:#657568;font-size:12px}.sleep-target-dot{width:7px;height:7px;border-radius:50%;background:#899e83;box-shadow:0 0 0 4px #dbe5d8}
.sleep-sky{position:absolute;inset:0 0 0 auto;width:48%;overflow:hidden;pointer-events:none;background:linear-gradient(150deg,rgba(189,199,216,.17),rgba(214,204,220,.27))}.sleep-moon{position:absolute;width:102px;height:102px;top:27px;right:48px;border-radius:50%;background:linear-gradient(145deg,#fffdf0,#f4e6c9);box-shadow:0 0 35px rgba(255,246,215,.72)}.sleep-moon:after{content:"";position:absolute;width:90px;height:90px;top:-8px;left:17px;border-radius:50%;background:#e9ebed}.sleep-star{position:absolute;z-index:1;color:#a2a897;font-style:normal;animation:star-breathe 3.4s ease-in-out infinite}.star-a{right:184px;top:45px;font-size:13px}.star-b{right:31px;top:119px;font-size:9px;animation-delay:1s}.star-c{right:123px;top:152px;font-size:26px;animation-delay:1.7s}.sleep-horizon{position:absolute;right:-25px;bottom:-81px;width:360px;height:145px;border-radius:50%;background:rgba(195,204,198,.55);box-shadow:0 -10px 25px rgba(164,177,168,.15)}
.sleep-progress-ring{width:124px;height:124px;position:relative;flex:0 0 124px;z-index:1}.sleep-progress-ring svg{width:100%;height:100%;transform:rotate(-90deg)}.sleep-ring-track,.sleep-ring-value{fill:none;stroke-width:7}.sleep-ring-track{stroke:rgba(113,133,122,.15)}.sleep-ring-value{stroke:#728c79;stroke-linecap:round;stroke-dasharray:307.88;stroke-dashoffset:307.88;transition:stroke-dashoffset .7s cubic-bezier(.2,0,0,1)}.sleep-progress-ring>div{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;color:#43574a}.sleep-progress-ring b{font:700 23px Manrope,sans-serif}.sleep-progress-ring small{font-size:10px;color:#849088;margin-top:2px}
.sleep-streak{padding:24px;display:flex;flex-direction:column;justify-content:center;background:#fffefa}.sleep-streak-icon{width:37px;height:37px;display:grid;place-items:center;margin-bottom:15px;border-radius:13px;background:#f7ead8;color:#bd8951}.sleep-streak-icon svg{width:21px;height:21px}.sleep-streak-number{display:flex;align-items:baseline;gap:9px;margin:9px 0 16px}.sleep-streak-number b{font:700 34px Manrope,sans-serif;color:#3f5043;font-variant-numeric:tabular-nums}.sleep-streak-number span{font-size:12px;color:#7d877c}.sleep-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.sleep-day{display:grid;justify-items:center;gap:6px;color:#979e94}.sleep-day i{display:grid;place-items:center;width:29px;height:29px;border-radius:10px;background:#f2f3ed;font-style:normal;font-size:10px}.sleep-day small{font-size:9px}.sleep-day.done i{background:#e5ede2;color:#527054;font-weight:700}.sleep-streak .small-note{margin:15px 0 0;line-height:1.5}
.sleep-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:17px;margin-top:18px;align-items:start}.sleep-history-panel,.sleep-schedule{padding:22px}.sleep-history-panel .section-heading{margin:0 0 13px}.sleep-history-caption{font-size:10px;color:#929b91}.sleep-history{display:grid}.sleep-record{display:flex;align-items:center;gap:12px;padding:13px 0;border-top:1px solid #eff0e9}.sleep-record:first-child{border-top:0}.sleep-record-mark{width:35px;height:35px;display:grid;place-items:center;flex:0 0 35px;border-radius:12px;background:#edecf3;color:#82819f}.sleep-record-mark svg{width:18px;height:18px}.sleep-record-main{flex:1;min-width:0;display:grid;gap:5px}.sleep-record-main b{font:600 12px Manrope,sans-serif;color:#465247}.sleep-record-main span{font-size:10px;color:#90998f;white-space:normal;line-height:1.45}.sleep-record-actions{display:flex;align-items:center;gap:3px}.sleep-edit{min-height:38px;border:0;background:transparent;padding:0 7px;color:#7b8c7b;font-size:10px}.sleep-edit:hover{color:#405b45}.sleep-record .food-delete{opacity:1;width:34px;height:38px;border-radius:10px}.sleep-empty{display:grid;justify-items:center;gap:8px;padding:35px 15px 27px;text-align:center}.sleep-empty-moon{font-size:25px;line-height:1;color:#9292aa}.sleep-empty b{font:600 13px Manrope,sans-serif;color:#596459}.sleep-empty>span:not(.sleep-empty-moon){font-size:11px;color:#9aa197}.sleep-schedule{background:linear-gradient(155deg,#fffefa,#f5f4f8)}.sleep-schedule-icon{width:38px;height:38px;display:grid;place-items:center;margin-bottom:15px;border-radius:13px;background:#eceaf4;color:#85819f}.sleep-schedule-icon svg{width:21px;height:21px}.sleep-schedule h2{font:700 18px Manrope,sans-serif;letter-spacing:-.4px;margin:6px 0 18px}.sleep-schedule form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sleep-schedule form label{display:grid;gap:6px;color:#707b70;font-size:11px}.sleep-schedule input{height:42px;min-width:0;padding:0 9px;border:1px solid #e6e7e1;border-radius:11px;background:#fbfbf8;color:#354037}.schedule-target{grid-column:1/-1;display:flex;justify-content:space-between;padding:11px 0;border-top:1px solid #eceee7;color:#8c968b;font-size:11px}.schedule-target b{color:#58695a}.sleep-schedule .button{grid-column:1/-1;width:100%}.sleep-schedule-note{margin:13px 0 0;color:#9aa197;font-size:10px;line-height:1.5}.sleep-form-duration{margin:0;padding:12px;border-radius:12px;background:#f1f3ee;color:#617364;font-size:12px;font-weight:600}
.assistant-heading{align-items:center}.assistant-status{display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid #e8e9e1;border-radius:22px;background:rgba(255,254,250,.65);color:#788476;font-size:11px}.assistant-status-dot{width:7px;height:7px;border-radius:50%;background:#91a789;box-shadow:0 0 0 4px #e9efe5}.assistant-layout{position:relative;display:grid;grid-template-columns:260px minmax(0,1fr);min-height:590px;overflow:hidden}.chat-sidebar{display:flex;flex-direction:column;padding:18px 13px;background:#f3f4ee;border-right:1px solid #e9ebe3;min-width:0}.new-chat-button{width:100%;justify-content:center;min-height:44px}.new-chat-button svg{width:17px;height:17px}.chat-sidebar-label{margin:23px 9px 10px;color:#929b90;font-size:9px;font-weight:700;letter-spacing:1.05px}.chat-list{display:grid;gap:4px;overflow:auto;min-height:0}.chat-list-row{display:flex;align-items:center;gap:2px;padding:3px;border:1px solid transparent;border-radius:13px;transition:background .2s,border-color .2s,transform .2s}.chat-list-row:hover{background:#ecefe8}.chat-list-row.selected{background:#e8ede5;border-color:#dfe6dc}.chat-list-item{display:flex;align-items:center;gap:9px;min-width:0;flex:1;padding:6px 5px;border:0;background:transparent;text-align:left}.chat-list-icon{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border-radius:11px;background:#fffefa;color:#718672;font:700 12px Manrope,sans-serif}.chat-list-copy{display:grid;gap:3px;min-width:0}.chat-list-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:600;color:#566257}.chat-list-copy small{font-size:9px;color:#929b91}.chat-delete{display:grid;place-items:center;width:34px;height:36px;flex:0 0 34px;border:0;border-radius:10px;background:transparent;color:#9ca398;opacity:0;transition:opacity .18s,background .18s}.chat-delete svg{width:15px;height:15px}.chat-list-row:hover .chat-delete,.chat-delete:focus-visible{opacity:1}.chat-delete:hover{background:#fffefa;color:#936e67}.chat-workspace{display:flex;flex-direction:column;min-width:0;padding:0 20px 14px;background:#fffefa}.chat-workspace-head{height:66px;flex:0 0 66px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #eff0e9}.chat-thread-heading{display:grid;gap:3px;min-width:0;flex:1}.chat-thread-heading b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 13px Manrope,sans-serif;color:#3f4e41}.chat-thread-heading span{font-size:10px;color:#98a095}.chat-context-select select{height:36px;max-width:145px;padding:0 28px 0 11px;border:1px solid #e7e9e0;border-radius:11px;background:#fafbf7;color:#69766a;font-size:11px}.chat-list-toggle{display:none;width:40px;height:40px;place-items:center;border:1px solid #e8e9e1;border-radius:12px;background:#fafbf7;color:#708170}.chat-list-toggle svg{width:18px;height:18px}.chat-workspace .chat-messages{flex:1;min-height:275px;max-height:425px;padding:18px 4px 12px}.assistant-layout .chat-message{max-width:min(84%,680px);margin-bottom:15px}.assistant-layout .message-bubble{max-width:100%;padding:13px 15px;border:1px solid #f0f1eb}.assistant-layout .message-bubble p{font-size:13px;line-height:1.6;color:#4f5e51;overflow-wrap:anywhere}.assistant-layout .message-time{font-size:9px}.assistant-layout .chat-suggestions{margin:0 0 9px;gap:7px}.assistant-layout .chat-suggestions button{min-height:37px;padding:8px 12px;font-size:10px;transition:background .18s,border-color .18s,transform .18s}.assistant-layout .chat-suggestions button:hover{transform:translateY(-1px);border-color:#d8dfd4}.chat-composer{flex:0 0 auto}.assistant-layout .chat-tools{gap:9px;padding-top:12px}.assistant-layout .chat-tool{width:42px;height:42px;flex-basis:42px}.assistant-layout .chat-input-wrap{height:46px}.assistant-layout .chat-input-wrap textarea{font-size:13px}.assistant-layout .chat-input-wrap button{width:35px;height:35px;flex-basis:35px}.assistant-layout .chat-disclaimer{margin-top:9px;font-size:10px;line-height:1.45}.assistant-layout .food-confirm-actions{margin:10px 0 0;display:flex;gap:7px}.chat-thinking{display:flex;align-items:center;gap:5px;width:max-content;margin:4px 0 14px 36px;padding:10px 13px;border-radius:13px;background:#f4f5ef;color:#879286;font-size:10px}.chat-thinking span{width:5px;height:5px;border-radius:50%;background:#8ca08a;animation:thinking 1.2s ease-in-out infinite}.chat-thinking span:nth-child(2){animation-delay:.14s}.chat-thinking span:nth-child(3){animation-delay:.28s}.chat-thinking b{margin-left:4px;font-weight:500}.chat-list-row{animation:chat-enter .22s ease-out both}.sleep-record{animation:chat-enter .28s ease-out both}.sleep-record:nth-child(2){animation-delay:.035s}.sleep-record:nth-child(3){animation-delay:.07s}.sleep-record:nth-child(4){animation-delay:.105s}.sleep-record:nth-child(5){animation-delay:.14s}
.nav-item,.button,.date-button,.round-add,.mobile-nav-item,.chat-tool,.sleep-edit,.chat-delete{transition:background .2s,color .2s,transform .2s,border-color .2s,box-shadow .2s}.nav-item:active,.button:active,.date-button:active,.round-add:active,.mobile-nav-item:active,.chat-tool:active{transform:scale(.98)}.button-dark{box-shadow:0 4px 10px rgba(52,76,56,.09)}.button-dark:hover{box-shadow:0 7px 18px rgba(52,76,56,.15);transform:translateY(-1px)}.panel{transition:box-shadow .25s ease,border-color .25s ease}.sleep-streak:hover,.sleep-schedule:hover,.sleep-history-panel:hover{border-color:#dfe6dc;box-shadow:0 15px 38px rgba(48,59,46,.065)}@keyframes star-breathe{0%,100%{opacity:.45;transform:scale(.92)}50%{opacity:.92;transform:scale(1.08)}}@keyframes chat-enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1050px){.sleep-content-grid{grid-template-columns:minmax(0,1fr) 275px}.assistant-layout{grid-template-columns:225px minmax(0,1fr)}.chat-sidebar{padding-inline:10px}.chat-workspace{padding-inline:15px}}
@media(max-width:760px){.sleep-overview{grid-template-columns:1fr}.sleep-streak{display:grid;grid-template-columns:42px 1fr auto;align-items:center;column-gap:12px;padding:16px 18px}.sleep-streak-icon{grid-row:span 2;margin:0}.sleep-streak>.eyebrow{grid-column:2}.sleep-streak-number{grid-column:2;margin:5px 0 0}.sleep-week{grid-column:3;grid-row:1/span 2;width:min(240px,42vw)}.sleep-day{gap:4px}.sleep-day i{width:25px;height:25px}.sleep-streak .small-note{grid-column:1/-1;margin:12px 0 0}.sleep-content-grid{grid-template-columns:1fr}.sleep-schedule{grid-row:1}.assistant-layout{grid-template-columns:minmax(0,1fr);min-height:560px}.chat-sidebar{display:none;position:absolute;inset:0 auto 0 0;width:min(310px,84%);z-index:30;box-shadow:18px 0 40px rgba(42,53,44,.14)}.chat-sidebar.chat-sidebar-open{display:flex;animation:chat-enter .2s ease-out both}.chat-list-toggle{display:grid}.chat-workspace{padding-inline:14px}.chat-workspace .chat-messages{max-height:none;min-height:310px}}
@media(max-width:600px){.mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr))}.mobile-nav-item{min-width:0;gap:2px;font-size:9px}.mobile-nav-item svg{width:18px;height:18px}.sleep-hero{min-height:218px;padding:22px 19px}.sleep-duration>span{font-size:34px}.sleep-duration{margin:15px 0}.sleep-duration small,.sleep-target{font-size:10px}.sleep-sky{width:44%;opacity:.78}.sleep-moon{width:75px;height:75px;right:21px;top:28px}.sleep-moon:after{width:67px;height:67px;left:14px;top:-6px}.sleep-progress-ring{width:83px;height:83px;flex-basis:83px}.sleep-progress-ring b{font-size:17px}.sleep-progress-ring small{font-size:8px}.sleep-content-grid{gap:12px;margin-top:12px}.sleep-history-panel,.sleep-schedule{padding:17px}.sleep-streak{grid-template-columns:36px 1fr;row-gap:3px;padding:15px}.sleep-week{grid-column:1/-1;grid-row:auto;width:100%;margin-top:10px}.sleep-streak .small-note{grid-column:1/-1;font-size:10px}.sleep-record{gap:8px}.sleep-record-main b{font-size:11px}.sleep-edit{font-size:9px;padding:0 4px}.sleep-record-actions{gap:0}.sleep-record .food-delete{width:32px;flex:0 0 32px}.assistant-heading{margin-bottom:15px}.assistant-status{font-size:9px;padding:7px 9px}.assistant-layout{height:calc(100dvh - 205px);min-height:440px;margin:0 -4px;border-radius:19px}.chat-workspace{padding:0 11px 11px}.chat-workspace-head{height:58px;flex-basis:58px;gap:8px}.chat-thread-heading b{font-size:12px}.chat-context-select select{max-width:116px;height:35px;font-size:10px}.chat-list-toggle{width:37px;height:37px}.chat-workspace .chat-messages{min-height:0;padding:13px 2px 9px}.assistant-layout .chat-message{max-width:94%;gap:7px}.assistant-layout .assistant-avatar.small{width:25px;height:25px;flex-basis:25px}.assistant-layout .message-bubble{padding:10px 12px}.assistant-layout .message-bubble p{font-size:12px}.assistant-layout .chat-tools{gap:6px}.assistant-layout .chat-tool{width:40px;height:40px;flex-basis:40px}.assistant-layout .chat-input-wrap{height:43px;padding-left:9px}.assistant-layout .chat-input-wrap textarea{font-size:12px}.assistant-layout .chat-disclaimer{font-size:9px}.assistant-layout .chat-suggestions{gap:6px}.assistant-layout .chat-suggestions button{min-height:34px;font-size:9px;padding:7px 9px}.sleep-schedule form{gap:9px}.sleep-schedule input{font-size:12px}.page-heading:has(#view-sleep)>.button{min-width:114px}}
@media(prefers-reduced-motion:reduce){.sleep-star,.chat-thinking span,.chat-list-row,.sleep-record{animation:none!important}.panel,.nav-item,.button,.date-button,.round-add,.mobile-nav-item,.chat-tool,.sleep-edit,.chat-delete{transition:none!important}}
@media(max-width:760px){.chat-delete{opacity:1}}
.sleep-page .page-heading>.button{width:auto;flex:0 0 auto;padding-inline:16px}
.chat-sidebar-heading{display:flex;align-items:center;justify-content:space-between;margin:23px 9px 10px}.chat-sidebar-heading .chat-sidebar-label{margin:0}.chat-sidebar-heading button{display:none;width:38px;height:38px;place-items:center;border:1px solid #e3e6df;border-radius:11px;background:#fffefa;color:#6f7e6f}.chat-sidebar-heading button svg{width:16px;height:16px}
@media(max-width:760px){.chat-sidebar-heading button{display:grid}}

@media(max-width:600px){.assistant-layout{height:calc(100dvh - 152px - env(safe-area-inset-bottom));min-height:min(420px,calc(100dvh - 180px))}}
.assistant-layout{grid-template-rows:minmax(0,1fr)}
.chat-workspace{min-height:0}
.assistant-layout .chat-messages{min-height:0;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
@media(max-width:760px){.assistant-layout .chat-messages{flex:1 1 0}}

.chat-input-wrap{height:auto;min-height:42px;align-items:flex-end;padding:5px 5px 5px 11px}
.chat-input-wrap textarea{display:block;width:100%;min-width:0;min-height:30px;max-height:148px;flex:1 1 0;resize:none;overflow-x:hidden;overflow-y:hidden;border:0;outline:0;background:transparent;color:#394239;font:inherit;font-size:13px;line-height:1.45;padding:4px 1px;scrollbar-width:thin;scrollbar-color:#aab8a5 transparent}
.chat-input-wrap textarea::-webkit-scrollbar{width:5px}
.chat-input-wrap textarea::-webkit-scrollbar-thumb{border-radius:5px;background:#aab8a5}
.chat-input-wrap:focus-within{border-color:#aab8a5;box-shadow:0 0 0 2px rgba(145,173,149,.12)}
.assistant-layout .chat-input-wrap{height:auto;min-height:46px;max-height:160px;align-items:flex-end;padding:5px 5px 5px 11px}
.assistant-layout .chat-input-wrap textarea{min-height:30px;font-size:13px;line-height:1.45}
.assistant-layout .chat-input-wrap button{align-self:flex-end;margin:0 0 1px}
@media(max-width:600px){.assistant-layout .chat-input-wrap{min-height:43px}.assistant-layout .chat-input-wrap textarea{font-size:12px}}

/* Compact chat media and per-device dark appearance */
#view-assistant>.assistant-heading{display:none}
#view-assistant .assistant-layout{margin-top:29px}
#view-assistant .assistant-layout{height:calc(100dvh - 158px);min-height:520px}
#view-assistant .chat-workspace .chat-messages{max-height:none}
.chat-attachments[hidden]{display:none}
.chat-attachments{display:flex;flex-wrap:wrap;gap:8px;max-height:100px;overflow-y:auto;padding:9px 2px 7px;scrollbar-width:thin}
.chat-attachment{position:relative;width:62px;height:62px;flex:0 0 62px;border:1px solid var(--line);border-radius:13px;background:var(--bg);overflow:hidden}
.chat-attachment img,.message-attachments img{display:block;width:100%;height:100%;object-fit:cover}
.chat-attachment button{position:absolute;top:3px;right:3px;display:grid;place-items:center;width:22px;height:22px;padding:0;border:1px solid #ffffff80;border-radius:50%;background:#202620c9;color:white;font-size:17px;line-height:1}
.message-attachments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;width:min(100%,270px);margin:0 0 9px}
.message-attachments img{aspect-ratio:1;border-radius:9px;background:var(--bg)}
:root[data-theme="dark"]{color-scheme:dark;--bg:#171b19;--paper:#202622;--ink:#e6ebe5;--muted:#a1aaa1;--line:#343d36;--green:#91aa91;--green-dark:#aec7ad;--green-pale:#2a342b;--peach:#47372e;--yellow:#d5bb72;--lavender:#363342;--shadow:0 12px 35px rgba(0,0,0,.16);--chart-grid:#38413a;--chart-label:#a7b1a6}
:root[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
:root[data-theme="dark"] .rail,:root[data-theme="dark"] .chat-sidebar{background:#1b211d;border-color:var(--line)}
:root[data-theme="dark"] .topbar{border-color:var(--line)}
:root[data-theme="dark"] .sync-pill,:root[data-theme="dark"] .nav-item:hover,:root[data-theme="dark"] .nav-item.active,:root[data-theme="dark"] .chat-list-row:hover,:root[data-theme="dark"] .chat-list-row.selected,:root[data-theme="dark"] .chat-thinking,:root[data-theme="dark"] .button-soft,:root[data-theme="dark"] .remaining-chip{background:#2a342b;color:#c4d2c2}
:root[data-theme="dark"] .brand-mark,:root[data-theme="dark"] .quick-icon,:root[data-theme="dark"] .food-mark{background:#2a3a2d;color:#b6cbb2}
:root[data-theme="dark"] .panel,:root[data-theme="dark"] .chat-workspace,:root[data-theme="dark"] .settings-panel,:root[data-theme="dark"] .weight-record,:root[data-theme="dark"] .history-day{background:var(--paper);border-color:var(--line)}
:root[data-theme="dark"] .calorie-card{background:#29372c;border-color:#344439}
:root[data-theme="dark"] .macro-row .macro-icon,:root[data-theme="dark"] .chat-list-icon,:root[data-theme="dark"] .chat-list-heading button{background:#2a302b;color:#bec9bd}
:root[data-theme="dark"] .mobile-nav{background:#1d231fF2;border-color:var(--line)}
:root[data-theme="dark"] .mobile-nav-item,:root[data-theme="dark"] .eyebrow,:root[data-theme="dark"] .section-label,:root[data-theme="dark"] .lead,:root[data-theme="dark"] .small-note,:root[data-theme="dark"] .chart-legend,:root[data-theme="dark"] .chart-explainer,:root[data-theme="dark"] .settings-title p,:root[data-theme="dark"] .settings-help,:root[data-theme="dark"] .toggle-row small{color:#a3ada2}
:root[data-theme="dark"] .calorie-number,:root[data-theme="dark"] .calorie-number .unit,:root[data-theme="dark"] .macro-title,:root[data-theme="dark"] .macro-title strong,:root[data-theme="dark"] .macro-footer,:root[data-theme="dark"] .meal-entry,:root[data-theme="dark"] .food-info b,:root[data-theme="dark"] .weight-record b,:root[data-theme="dark"] .settings-title h2,:root[data-theme="dark"] .toggle-row b,:root[data-theme="dark"] .chat-list-copy b,:root[data-theme="dark"] .chat-thread-heading b{color:var(--ink)}
:root[data-theme="dark"] .message-bubble,:root[data-theme="dark"] .assistant-layout .message-bubble{background:#292f2a;border-color:#343c35}
:root[data-theme="dark"] .assistant-layout .message-bubble p{color:#d8dfd7}
:root[data-theme="dark"] .user-message .message-bubble{background:#2c3a2e}
:root[data-theme="dark"] .chat-input-wrap,:root[data-theme="dark"] input,:root[data-theme="dark"] select,:root[data-theme="dark"] textarea,:root[data-theme="dark"] .sleep-schedule input,:root[data-theme="dark"] .account-fields input{background:#1a201c;color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .button-dark{background:#527253;color:#f5f7f3}
:root[data-theme="dark"] .chat-tool,:root[data-theme="dark"] .chat-list-toggle,:root[data-theme="dark"] .date-button,:root[data-theme="dark"] .icon-button{background:#252c27;color:#d1dbd0;border-color:var(--line)}
:root[data-theme="dark"] .topbar{background:rgba(23,27,25,.94)}
:root[data-theme="dark"] .progress-ring-wrap .ring-track{stroke:#39453a}
:root[data-theme="dark"] .progress-ring-wrap .ring-value{stroke:#9db79b}
:root[data-theme="dark"] .weight-chart svg text{font-family:inherit}
:root[data-theme="dark"] .weight-chart svg circle{stroke:#202622}
@media(max-width:600px){#view-assistant .assistant-layout{height:calc(100dvh - 152px - env(safe-area-inset-bottom));min-height:min(420px,calc(100dvh - 180px));margin-top:13px}.chat-attachments{max-height:82px}.chat-attachment{width:54px;height:54px;flex-basis:54px}}
@media(max-width:600px) and (max-height:700px){#view-assistant .assistant-layout{min-height:0}#view-assistant .assistant-layout .chat-input-wrap textarea{max-height:96px}.chat-attachments{max-height:56px}}
#view-assistant .chat-suggestions{display:none}
#view-assistant .food-confirm-actions{display:flex}
#view-today,.meal-layout,.meal-list,.meal-group,.meal-entry{min-width:0;max-width:100%}
.meal-layout{grid-template-columns:minmax(0,1fr) 247px}
.food-info{min-width:0;overflow-wrap:anywhere}
.food-info b{white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis}
@media(max-width:1160px) and (min-width:851px){.meal-layout{grid-template-columns:minmax(0,1fr) 220px}}
@media(max-width:850px){.meal-layout{grid-template-columns:minmax(0,1fr)}}
.date-picker-wrap{position:relative;display:inline-flex;flex:0 0 auto;border-radius:14px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.date-picker-wrap .date-button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:14px;background:rgba(255,254,250,.55);color:var(--muted);transition:background .18s,border-color .18s,transform .18s}
.date-picker-wrap:hover .date-button{background:var(--paper);border-color:#d8dfd2}
.date-picker-wrap:active .date-button{transform:scale(.98)}
.date-picker-wrap:focus-within .date-button{outline:3px solid #91ad95;outline-offset:3px}
.date-picker-input{position:absolute;z-index:2;inset:0;width:100%;height:100%;min-width:100%;margin:0;padding:0;border:0;opacity:.01;cursor:pointer;color:transparent;background:transparent;appearance:none;-webkit-appearance:none}
#view-today{touch-action:pan-y}
.message-retry-actions{display:flex;margin-top:10px}
.chat-retry-button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 13px;border:1px solid #dfe6dc;border-radius:13px;background:#e8ede5;color:#49634c;font:600 12px "DM Sans",sans-serif;transition:background .18s,transform .18s}
.chat-retry-button:hover{background:#dde8da}
.chat-retry-button:active{transform:scale(.98)}

/* Approximate macro split; unclassified amounts stay on the neutral track. */
.macro-stack{display:flex;gap:0;background:#eff0ea;isolation:isolate}
.macro-segment{display:block;flex:0 0 auto;width:0;height:100%;transition:width .35s ease}
.macro-segment:first-child{border-radius:9px 0 0 9px}.macro-segment:last-child{border-radius:0 9px 9px 0}
.protein-animal{background:#668b69}.protein-plant{background:#afc8a8}
.fat-saturated{background:#d2aa50}.fat-unsaturated{background:#86aa94}
.carbs-simple{background:#cb856e}.carbs-complex{background:#e1b69e}
.macro-split-label{display:flex;flex-wrap:wrap;gap:2px 9px;margin-top:4px;color:#7f887d;font-size:9px;line-height:1.35}
.macro-split-label .split-first{color:#5f8061}.macro-split-label .split-second{color:#8e9b78}.macro-split-label .split-unknown,.macro-split-label.is-unknown{color:#a1a69d}.macro-split-label .split-unit{color:#a1a69d}
.food-split-summary{display:block;margin-top:4px;color:#849181;font-size:9px;line-height:1.4;overflow-wrap:anywhere}
.macro-input-grid{row-gap:10px}
:root[data-theme="dark"] .macro-stack{background:#333b35}
:root[data-theme="dark"] .protein-animal{background:#86ad88}:root[data-theme="dark"] .protein-plant{background:#58745d}
:root[data-theme="dark"] .fat-saturated{background:#c5a452}:root[data-theme="dark"] .fat-unsaturated{background:#668c78}
:root[data-theme="dark"] .carbs-simple{background:#bc806b}:root[data-theme="dark"] .carbs-complex{background:#8e6e5e}
:root[data-theme="dark"] .macro-split-label,:root[data-theme="dark"] .food-split-summary{color:#aeb8aa}
@media(max-width:600px){.macro-split-label{font-size:8px;gap:2px 7px}.food-split-summary{font-size:8px}}
.food-actions{display:flex;align-items:center;gap:2px;flex:0 0 auto}
.food-edit,.food-actions .food-delete{display:grid;place-items:center;width:34px;height:36px;border:0;border-radius:10px;background:transparent;color:#7b8c7b;transition:background .16s,color .16s,opacity .16s}
.food-edit{opacity:.78}
.food-edit svg,.food-actions .food-delete svg{width:15px;height:15px}
.meal-entry:hover .food-edit,.food-edit:focus-visible,.meal-entry:hover .food-delete,.food-actions .food-delete:focus-visible{opacity:1;background:#eff2ec;color:#4c694d}
:root[data-theme="dark"] .food-edit,:root[data-theme="dark"] .food-actions .food-delete{color:#aeb8aa}
:root[data-theme="dark"] .meal-entry:hover .food-edit,:root[data-theme="dark"] .food-edit:focus-visible,:root[data-theme="dark"] .meal-entry:hover .food-delete,:root[data-theme="dark"] .food-actions .food-delete:focus-visible{background:#2b342d;color:#d3dfd1}
@media(max-width:600px){.food-actions{gap:0}.food-edit,.food-actions .food-delete{width:34px;height:38px;flex-basis:34px}.food-edit{opacity:.9}}
