:root{font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#172033;background:#f8f7fb}.timeline-actions{display:flex;flex:0 0 auto;align-items:center;gap:8px;margin-left:auto}.timeline-actions .timeline-edit{margin:0}@media (max-width: 820px){.row>.timeline-actions{margin-left:auto!important}}*{box-sizing:border-box}body{margin:0;min-width:780px}.shell{display:flex;min-height:100vh}.shell>aside{position:fixed;inset:0 auto 0 0;width:238px;padding:28px 18px;background:#fff;border-right:1px solid #ebe8f1;color:#20283a;z-index:10;overflow-y:auto}.shell>aside h2{display:flex;align-items:center;gap:10px;margin:0 0 30px;font-size:19px;font-weight:750}.shell>aside nav{display:grid;gap:5px}.shell>aside a{display:flex;align-items:center;gap:12px;color:#566075;text-decoration:none;padding:12px 14px;border-radius:10px;font-size:14px;font-weight:650;transition:.18s ease}.shell>aside a svg{width:19px;height:19px;stroke-width:1.8;flex:0 0 auto}.shell>aside a.active,.shell>aside a:hover{background:#f0edff;color:#6543e5}main{width:calc(100% - 238px);max-width:1500px;margin-left:238px;padding:34px 34px 52px}h1,h2,p{margin-top:0}h1{font-size:29px;letter-spacing:-.6px}h2{font-size:15px;letter-spacing:-.15px}header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:28px}header p,.panel-copy{margin:7px 0 0;color:#727b8d;font-size:14px}.date-range{display:flex;align-items:end;gap:8px;background:#fff;border:1px solid #ebe8f1;border-radius:12px;padding:7px 10px;box-shadow:0 5px 20px #1f16420a}.date-range label{display:grid;gap:3px;font-size:11px;font-weight:700;color:#70798a}.date-range select,.date-range input{height:30px;border:0;background:#fff;color:#273043;font:inherit}.panel{background:#fff;border:1px solid #ebe8f1;border-radius:16px;padding:20px;box-shadow:0 7px 22px #1f164207}.quick-actions{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:14px}.quick-actions button{min-height:88px;display:flex;align-items:center;gap:13px;text-align:left;padding:16px 18px;margin:0;border:1px solid #eae7f3;border-radius:14px;background:#fff;color:#222a3b;font:inherit;box-shadow:0 5px 14px #2a234008;transition:.18s ease}.quick-action-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;flex:0 0 auto}.quick-action.headache .quick-action-icon{background:#fff0ef;color:#ef625e}.quick-action.anxiety .quick-action-icon{background:#fff4e6;color:#e88623}.quick-action.blood-sugar .quick-action-icon{background:#edf4ff;color:#3d7ff2}.quick-action-icon svg{width:23px;height:23px;stroke-width:1.8}.quick-action-copy{display:grid;gap:4px;font-weight:750;font-size:15px}.quick-action-copy small{font-size:12px;font-weight:500;color:#70798a}.quick-action-plus{width:20px;height:20px;margin-left:auto;color:#7351eb;flex:0 0 20px}.quick-actions button:hover{transform:translateY(-2px);border-color:#cfc3ff;box-shadow:0 10px 24px #422f7114}.insight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0}.insight-grid .panel{margin:0}.metric-head{display:flex;justify-content:space-between;align-items:start}.metric-head h2{color:#556076}.metric-head strong{display:block;margin-top:14px;font-size:29px;letter-spacing:-1px}.metric-head small,.metric-head>span{font-weight:500;font-size:12px;color:#737d8f}.chart{width:100%;min-height:240px}.chart-empty{height:240px;display:grid;place-items:center;border:1px dashed #ddd8ea;border-radius:12px;color:#7a8291;background:#fcfbfe}.comparison{margin-top:18px}.comparison-head{display:flex;align-items:start;justify-content:space-between;gap:14px}.comparison-head p{color:#737d8f;font-size:13px}.series-picker{display:flex;gap:18px;flex-wrap:wrap;margin:12px 0}.series-picker label{font-size:13px;color:#526074}.row{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #eeecf2;padding:15px 0}.row:first-of-type{border-top:0}.row>.timeline-edit{margin-left:auto}.row>.timeline-edit+button{margin-left:8px}.timeline-edit{background:transparent!important;color:#4f5d73!important;border:1px solid #cbd3df!important}.timeline-edit:hover{background:#f5f7fa!important;border-color:#9faabd!important}.row p{margin:4px 0;color:#6d7687;font-size:13px}.panel ul{list-style:none;padding:0;margin:0}.panel li{padding:13px 0;border-bottom:1px solid #eeecf2;font-size:14px}.panel li:last-child{border-bottom:0}.panel li small{display:block;margin-top:3px}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;background:#24203966;display:grid;place-items:center;padding:20px}.dialog{position:relative;background:#fff;width:min(440px,100%);padding:28px;border:1px solid #ebe8f1;border-radius:18px;box-shadow:0 18px 60px #22183b38}.dialog h2{font-size:20px}.dialog label{display:block;margin:15px 0;font-size:13px;font-weight:700;color:#3b4658}.dialog input,.dialog select,.dialog textarea{display:block;width:100%;padding:10px;margin-top:6px;border:1px solid #dcd8e7;border-radius:9px;background:#fff;color:#20283a;font:inherit}.dialog textarea{min-height:88px;resize:vertical;-webkit-text-fill-color:currentColor;caret-color:currentColor}.dialog input:focus,.dialog select:focus,.dialog textarea:focus,button:focus-visible,a:focus-visible{outline:3px solid #b9a9ff;outline-offset:2px}.dialog-close{position:absolute;top:12px;right:12px;width:34px;height:34px;padding:0!important;margin:0!important;background:#f6f4fa!important;color:#687186!important;font-size:26px!important}.actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.actions button,button{border:0;border-radius:9px;padding:10px 14px;background:#7050e7;color:#fff;font-weight:700;cursor:pointer;transition:.16s ease}.actions button[type=button]{background:#f0eef5;color:#4e5769}.actions button:hover,button:hover{filter:brightness(.97);transform:translateY(-1px)}.error{color:#c92c3d;font-size:13px}.optional{font-weight:400;color:#7b8494}.report-options{margin-top:25px;padding-top:22px;border-top:1px solid #eeecf2}.report-dates,.report-trackers{display:flex;gap:14px;flex-wrap:wrap;margin:14px 0}.report-dates label,.report-trackers label{display:grid;gap:5px;font-size:13px;color:#566075}.report-dates input{height:34px;border:1px solid #ddd8e6;border-radius:8px;padding:0 8px}.report-trackers label{display:flex;align-items:center;gap:6px;color:#253045}@media (max-width: 1080px){main{padding:28px 22px}.insight-grid{grid-template-columns:1fr 1fr}.insight-grid .panel:last-child{grid-column:1/-1}.quick-actions{grid-template-columns:1fr}}@media (max-width: 820px){body{min-width:0}.shell{display:block}.shell>aside{position:static;width:auto;display:flex;gap:4px;align-items:center;padding:14px;overflow:auto}.shell>.shell>aside h2{margin:0 12px 0 0;font-size:16px;white-space:nowrap}.shell>.shell>aside a{margin:0;padding:9px 11px;white-space:nowrap}main{width:100%;margin:0;padding:22px 16px}.insight-grid{grid-template-columns:1fr}header{display:block}.date-range{margin-top:16px;width:max-content}}.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}.summary-card{background:#fff;border:1px solid #ebe8f1;border-radius:16px;padding:18px;box-shadow:0 7px 22px #1f164207}.summary-card>span{color:#667186;font-size:13px;font-weight:650}.summary-card strong{display:block;margin:12px 0 6px;font-size:29px;letter-spacing:-1px}.summary-card small{margin-left:4px;font-size:13px;font-weight:600;color:#667186}.summary-card p{margin:0;color:#8a92a2;font-size:12px}.dashboard-layout{margin-top:18px;display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}.dashboard-layout>.recent-activity{position:static;inset:auto;width:auto;margin:0;z-index:auto;overflow:visible}.dashboard-layout .insight-grid{grid-template-columns:1fr;margin-bottom:0}.recent-activity h2{margin-bottom:6px}.recent-activity li{position:relative;padding-left:38px;line-height:1.5;color:#596477}.recent-activity li:before{content:"+";position:absolute;left:0;top:14px;display:grid;place-items:center;width:26px;height:26px;border-radius:9px;background:#f0edff;color:#6e4ce5;font-weight:700}.recent-activity li:nth-child(3n+1):before{background:#fff0ef;color:#ed5d5c}.recent-activity li:nth-child(3n+2):before{background:#eaf2ff;color:#3d7ff2}.recent-activity li:nth-child(3n):before{background:#eaf8ee;color:#3aa15a}.empty-state{text-align:center;padding:42px 10px;color:#747e90}.empty-state button{margin-top:8px}@media (max-width: 1200px){.summary-grid{grid-template-columns:repeat(2,1fr)}.dashboard-layout{grid-template-columns:1fr}.recent-activity{max-width:none}}@media (max-width: 820px){.summary-grid,.dashboard-layout .insight-grid{grid-template-columns:1fr}}.analytics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.analytics-grid .panel{margin:0;min-width:0}.analytics-grid .chart{min-width:0}@media (max-width: 900px){.analytics-grid{grid-template-columns:1fr}}.chart-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.chart-averages{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}.chart-averages span,.chart-average{display:grid;gap:2px;color:#7b8494;font-size:11px;text-align:right}.chart-averages strong,.chart-average strong{color:#20283a;font-size:17px;line-height:1.1}.chart-average small{font-size:11px;color:#697488;font-weight:600}@media (max-width: 700px){.chart-card-header{display:block}.chart-averages{justify-content:flex-start;margin-top:10px}.chart-average{margin-top:10px;text-align:left}}.shell>aside h2 svg{width:25px;height:25px;color:#20283a;stroke-width:1.7;flex:0 0 auto}.threshold-options{margin-top:25px;padding-top:22px;border-top:1px solid #eeecf2}.threshold-options>p{max-width:650px;color:#6d7687;font-size:13px}.threshold-fields{display:flex;gap:14px;flex-wrap:wrap;margin:15px 0}.threshold-fields label{display:grid;gap:5px;color:#566075;font-size:13px}.threshold-fields input{width:170px;height:38px;border:1px solid #ddd8e6;border-radius:8px;padding:0 9px;color:#253045;font:inherit}.datetime-field{display:flex;align-items:center;gap:8px;margin-top:6px}.dialog .datetime-field input{margin-top:0;min-width:0;flex:1}.calendar-trigger{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;padding:0;background:#f0eef5;color:#5c5375}.calendar-trigger svg{width:18px;height:18px}.datetime-done{display:none;flex:0 0 auto;padding:9px 11px;font-size:12px}.datetime-field.is-picker-active .datetime-done{display:block}.entry-date-time{display:flex;gap:8px;margin-top:6px}.dialog .entry-date-time input{margin-top:0;min-width:0;flex:1}.save-success{color:#16803b;font-size:13px;font-weight:650;margin:10px 0 0}.datetime-field input[type=datetime-local]::-webkit-calendar-picker-indicator{display:none}.datetime-field input[type=datetime-local]::-webkit-inner-spin-button{display:none}.meal-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px}.meal-items{display:grid;gap:10px;margin:12px 0}.meal-item{display:grid;grid-template-columns:2fr repeat(4,1fr) auto;gap:7px}.meal-item input,.meal-date input{min-width:0;border:1px solid #dcd8e7;border-radius:8px;padding:9px;font:inherit}.remove-item{background:#f0eef5;color:#4e5769}.macro-percentages{display:flex;gap:10px;flex-wrap:wrap;font-size:12px;color:#667186}.macro-percentages b{font-weight:700}.calorie-total{display:block;font-size:29px;margin:14px 0 6px}.calorie-total small{font-size:13px;color:#667186}.macro-grams{display:grid;gap:8px;margin:16px 0}.macro-grams span{display:flex;justify-content:space-between;border-bottom:1px solid #eeecf2;padding-bottom:7px}.meal-history{margin-top:18px}@media (max-width: 1000px){.meal-layout{grid-template-columns:1fr}}@media (max-width: 720px){.meal-item{grid-template-columns:1fr 1fr}.meal-item input:first-child{grid-column:1/-1}}.quick-action.meal .quick-action-icon{background:#eaf8ee;color:#3aa15a}.meals-page{max-width:1180px}.eyebrow{display:block;margin-bottom:7px;color:#8065df;font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.meal-date{display:grid;gap:5px;color:#687388;font-size:12px;font-weight:700}.meal-date input{height:40px;background:#fff;border:1px solid #e1ddea;border-radius:10px;padding:0 11px;color:#273043;font:inherit}.meal-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px;align-items:start}.meal-form-card{padding:0;overflow:hidden}.meal-form-header{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px 24px 18px;border-bottom:1px solid #eeecf2}.meal-form-header h2,.daily-card h2,.meal-history h2{margin:0;font-size:18px}.meal-form-header p{margin:5px 0 0;color:#748095;font-size:13px}.entry-type-toggle{display:flex;padding:4px;background:#f1eff6;border-radius:10px}.entry-type-toggle button{padding:8px 14px;background:transparent;color:#687388;font-size:13px}.entry-type-toggle button.selected{background:#fff;color:#5e40d5;box-shadow:0 1px 4px #31265a1c}.meal-form-card form{padding:22px 24px}.food-table-head,.meal-item{display:grid;grid-template-columns:minmax(170px,2.2fr) repeat(4,minmax(78px,1fr)) 26px;gap:9px;align-items:center}.food-table-head{padding:0 3px 8px;color:#8790a0;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.meal-items{display:grid;gap:9px}.meal-item>input,.nutrition-input{height:42px;border:1px solid #ddd9e8;border-radius:9px;background:#fff}.meal-item>input{min-width:0;padding:0 11px;color:#20283a;font:inherit}.nutrition-input{display:flex;align-items:center;padding:0 8px}.nutrition-input input{width:100%;min-width:0;border:0;outline:0;color:#20283a;font:inherit}.nutrition-input span{color:#8992a2;font-size:11px;font-weight:700}.icon-remove{width:26px;height:26px;padding:0;background:transparent!important;color:#9aa2b0!important;font-size:22px;line-height:1}.add-food{margin-top:13px;padding:7px 0;background:transparent!important;color:#6849de!important;font-size:13px}.meal-notes{display:grid;gap:7px;margin-top:20px;color:#4b5669;font-size:13px;font-weight:700}.meal-notes small{color:#939baa;font-weight:500}.meal-notes textarea{min-height:68px;border:1px solid #ddd9e8;border-radius:9px;padding:10px 11px;resize:vertical;font:inherit}.meal-actions{display:flex;align-items:center;justify-content:space-between;margin-top:20px;padding-top:16px;border-top:1px solid #eeecf2}.meal-actions>span{color:#7b8493;font-size:12px}.daily-card{padding:22px;background:linear-gradient(145deg,#fff,#fbfaff)}.daily-card h2{margin:2px 0 4px;font-size:29px;letter-spacing:-1px}.daily-card h2 small{font-size:13px;font-weight:600;color:#788296;letter-spacing:0}.daily-card p{margin:0;color:#8991a0;font-size:12px}.macro-grams{margin:22px 0 18px}.macro-balance{padding-top:16px;border-top:1px solid #eeecf2}.macro-balance>span:not(.macro-percentages){display:block;margin-bottom:9px;color:#7a8494;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.macro-percentages{gap:6px}.macro-percentages b{padding:5px 7px;border-radius:6px;background:#f3f0ff;color:#6954b6;font-size:11px}.macro-percentages b:nth-child(2){background:#fff4e6;color:#bd7217}.macro-percentages b:nth-child(3){background:#eaf8ee;color:#248342}.macro-percentages em{font-style:normal}.meal-history{margin-top:18px;padding:0;overflow:hidden}.meal-history-head{display:flex;justify-content:space-between;align-items:start;padding:20px 24px 15px;border-bottom:1px solid #eeecf2}.meal-history-head p{margin:4px 0 0;color:#8590a0;font-size:12px}.meal-history-head>span{padding:5px 8px;border-radius:99px;background:#f1effa;color:#6a52c7;font-size:11px;font-weight:800}.meal-log-row{display:grid;grid-template-columns:68px minmax(0,1fr) auto auto;align-items:center;gap:16px;padding:15px 24px;border-bottom:1px solid #f0eef4}.meal-log-row:last-child{border:0}.meal-log-row b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.meal-log-row small{display:block;margin-top:4px;color:#7e8899;font-size:12px}.meal-kind{width:max-content;padding:5px 8px;border-radius:6px;background:#eef3ff;color:#3d6fbe;font-size:11px;font-weight:800;text-transform:capitalize}.meal-kind.snack{background:#fff3e5;color:#c87a1b}.delete-meal{padding:6px 0;background:transparent!important;color:#8c95a5!important;font-size:12px}.meal-empty{padding:38px 24px;text-align:center;color:#687388}.meal-empty p{margin:5px 0 0;font-size:13px}@media (max-width: 900px){.meal-layout{grid-template-columns:1fr}.daily-card{display:grid;grid-template-columns:1fr 1fr;gap:20px}.daily-card .macro-grams{margin:0}.daily-card .macro-balance{padding-top:0;border-top:0}}@media (max-width: 720px){.food-table-head{display:none}.meal-item{grid-template-columns:1fr 1fr}.meal-item>input{grid-column:1/-1}.icon-remove{justify-self:end}.meal-log-row{grid-template-columns:62px minmax(0,1fr) 45px}.meal-log-row .macro-percentages{display:none}.meal-form-header{align-items:start;flex-direction:column}.meal-form-card form{padding:18px}.meal-history-head,.meal-log-row{padding-left:18px;padding-right:18px}}.meal-date-time{display:grid;gap:7px;margin:0 0 20px;color:#4b5669;font-size:13px;font-weight:700}.meal-date-time small{color:#939baa;font-weight:500}.meal-date-time .datetime-field{margin:0}.meal-date-time .datetime-field input{width:240px;height:42px;border:1px solid #ddd9e8;border-radius:9px;padding:0 10px;color:#20283a;font:inherit}.meal-date-time .entry-date-time{margin:0}.meal-date-time .entry-date-time input{width:156px;height:42px;min-width:0;border:1px solid #ddd9e8;border-radius:9px;padding:0 10px;background:#fff;color:#20283a;font:inherit}@media (max-width: 720px){.meal-date-time .entry-date-time input{width:auto;flex:1 1 0}}.meal-date-time .calendar-trigger{height:42px}@media (max-width: 720px){.meal-date-time input{width:100%}}.nutrition-comparison{margin-top:18px}.nutrition-comparison .chart{margin-top:14px}.meal-glucose-context{margin:20px -20px -20px;border-top:1px solid #eeecf2}.meal-glucose-head,.meal-glucose-row{display:grid;grid-template-columns:minmax(190px,1.5fr) minmax(150px,1.1fr) repeat(3,minmax(88px,.65fr));gap:16px;align-items:center;padding:12px 20px}.meal-glucose-head{background:#fbfafe;color:#7c8494;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.meal-glucose-row{border-top:1px solid #f0eef4;font-size:13px}.meal-glucose-row:first-of-type{border-top:0}.meal-glucose-row b{display:block;color:#30394b}.meal-glucose-row small{display:block;margin-top:3px;color:#7f8898;font-size:11px}.meal-glucose-row .rise{color:#bd5c35;font-weight:800}.meal-glucose-row .fall{color:#17805c;font-weight:800}@media (max-width: 880px){.meal-glucose-head{display:none}.meal-glucose-row{grid-template-columns:1fr 1fr}.meal-glucose-row>div:first-child{grid-column:1/-1}}.meal-actions>div{display:flex;gap:8px}.cancel-edit,.edit-meal{background:#f0eef5!important;color:#5d6676!important}.meal-row-actions{display:flex;align-items:center;gap:10px;justify-content:flex-end}.edit-meal{display:grid;place-items:center;width:36px;height:28px;padding:0 4px!important;border-radius:7px!important}.edit-meal svg{width:14px;height:14px}.delete-meal{padding:6px 0!important}@media (max-width: 720px){.meal-row-actions{flex-direction:column;gap:2px}}:root[data-theme=dark]{color:#e6e8f0;background:#10131b}:root[data-theme=dark] body{background:#10131b}:root[data-theme=dark] .shell>aside{background:#171b26;border-color:#2b3140;color:#f0f2f8}:root[data-theme=dark] .shell>aside a{color:#b5bdce}:root[data-theme=dark] .shell>aside a.active,:root[data-theme=dark] .shell>aside a:hover{background:#292341;color:#c9b9ff}:root[data-theme=dark] .panel,:root[data-theme=dark] .summary-card,:root[data-theme=dark] .date-range,:root[data-theme=dark] .quick-actions button,:root[data-theme=dark] .dialog{background:#191e2a;border-color:#303747;color:#e6e8f0;box-shadow:none}:root[data-theme=dark] .date-range select,:root[data-theme=dark] .date-range input,:root[data-theme=dark] .dialog input,:root[data-theme=dark] .dialog select,:root[data-theme=dark] .dialog textarea,:root[data-theme=dark] .meal-date input,:root[data-theme=dark] .meal-item>input,:root[data-theme=dark] .nutrition-input,:root[data-theme=dark] .meal-notes textarea,:root[data-theme=dark] .threshold-fields input,:root[data-theme=dark] .report-dates input{background:#202633;color:#e6e8f0;border-color:#3a4355;-webkit-text-fill-color:#e6e8f0;caret-color:#e6e8f0}:root[data-theme=dark] .nutrition-input input{color:#e6e8f0}:root[data-theme=dark] .row,:root[data-theme=dark] .panel li,:root[data-theme=dark] .report-options,:root[data-theme=dark] .threshold-options,:root[data-theme=dark] .meal-form-header,:root[data-theme=dark] .meal-actions,:root[data-theme=dark] .meal-history-head,:root[data-theme=dark] .meal-log-row,:root[data-theme=dark] .macro-balance{border-color:#303747}:root[data-theme=dark] header p,:root[data-theme=dark] .panel-copy,:root[data-theme=dark] .row p,:root[data-theme=dark] .quick-action-copy small,:root[data-theme=dark] .summary-card>span,:root[data-theme=dark] .summary-card small,:root[data-theme=dark] .summary-card p,:root[data-theme=dark] .meal-form-header p,:root[data-theme=dark] .meal-history-head p{color:#aeb7c8}:root[data-theme=dark] .chart-empty{background:#171b26;border-color:#3a4355;color:#aeb7c8}:root[data-theme=dark] .daily-card{background:linear-gradient(145deg,#1c2230,#171c27)}:root[data-theme=dark] .entry-type-toggle{background:#282f3e}:root[data-theme=dark] .entry-type-toggle button.selected{background:#3a315c;color:#d8ceff}.theme-toggle{position:absolute;right:18px;bottom:22px;width:42px;height:42px;padding:0;display:grid;place-items:center;background:#f0edff;color:#6543e5}.sidebar-signout{position:absolute;right:68px;bottom:22px;left:18px;height:42px;padding:0 14px;background:#f0eef5;color:#4e5769}.theme-toggle svg,.theme-options button svg{width:18px;height:18px}.theme-options{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}.theme-options button{display:inline-flex;align-items:center;gap:7px;background:#f0eef5;color:#4e5769}.theme-options button.selected{background:#7050e7;color:#fff}:root[data-theme=dark] .theme-toggle{background:#30294c;color:#dfd7ff}:root[data-theme=dark] .sidebar-signout{background:#2a3140;color:#c4ccda}:root[data-theme=dark] .theme-options button{background:#2a3140;color:#c4ccda}:root[data-theme=dark] .theme-options button.selected{background:#8066ee;color:#fff}:root[data-theme=dark] .chart{filter:contrast(1.06)}:root[data-theme=dark] .chart-card-header h2,:root[data-theme=dark] .chart-average strong,:root[data-theme=dark] .chart-averages strong{color:#f3f5fa}:root[data-theme=dark] .food-table-head{color:#b9c3d4}:root[data-theme=dark] .nutrition-input{background:#252d3b;border-color:#536078;box-shadow:inset 0 1px #ffffff0d}:root[data-theme=dark] .nutrition-input:hover{border-color:#7888a5}:root[data-theme=dark] .nutrition-input:focus-within{border-color:#aa9aff;box-shadow:0 0 0 3px #8f7cf436}:root[data-theme=dark] .nutrition-input span{color:#c7d1e0}.nutrition-input input{font-weight:700;font-variant-numeric:tabular-nums;padding:0 2px}.nutrition-input input[type=number]::-webkit-inner-spin-button{opacity:.8;min-height:28px;cursor:pointer}:root[data-theme=dark] .nutrition-input input[type=number]::-webkit-inner-spin-button{filter:invert(1)}:root[data-theme=dark] .meal-item>input:focus,:root[data-theme=dark] .meal-notes textarea:focus{border-color:#aa9aff;box-shadow:0 0 0 3px #8f7cf436;outline:0}:root[data-theme=dark]{color-scheme:dark}:root[data-theme=light]{color-scheme:light}:root[data-theme=dark] .nutrition-input input{background:transparent!important;color:#f4f7fc!important;-webkit-appearance:textfield;appearance:textfield;-moz-appearance:textfield}:root[data-theme=dark] .nutrition-input input[type=number]::-webkit-inner-spin-button,:root[data-theme=dark] .nutrition-input input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}:root[data-theme=dark] .nutrition-input{min-width:0}:root[data-theme=dark] .nutrition-input span{color:#cbd5e1;text-shadow:0 1px 0 #111827}:root[data-theme=dark] input[type=datetime-local]{color-scheme:dark}:root[data-theme=dark] .meal-date-time .datetime-field input{background:#202633!important;color:#f4f7fc!important;border-color:#69768c!important;caret-color:#f4f7fc}:root[data-theme=dark] .meal-date-time .entry-date-time input{background:#202633;color:#f4f7fc;border-color:#69768c;color-scheme:dark}:root[data-theme=dark] .meal-date-time .datetime-field input:focus{border-color:#aa9aff!important;box-shadow:0 0 0 3px #8f7cf436;outline:0}:root[data-theme=dark] .meal-date-time .calendar-trigger{background:#e7e3f4;color:#4b4768}:root[data-theme=dark] .meal-date-time .calendar-trigger:hover{background:#f3f0ff}:root[data-theme=dark] .meal-glucose-head{background:#252c3a;color:#dce5f2;border-color:#3a465a}:root[data-theme=dark] .meal-glucose-row{border-color:#3a465a;color:#e5ebf5}:root[data-theme=dark] .meal-glucose-row b{color:#f4f7fb}:root[data-theme=dark] .meal-glucose-row small{color:#aebbd0}.medications-page{max-width:1180px}.medication-layout{display:grid;grid-template-columns:minmax(320px,.85fr) minmax(0,1.15fr);gap:18px}.medication-form{padding:22px}.medication-form h2,.medication-list h2{margin:0 0 16px;font-size:18px}.medication-form form{display:grid;gap:14px}.medication-form label{display:grid;gap:6px;color:#4b5669;font-size:13px;font-weight:700}.medication-form small{color:#939baa;font-weight:500}.medication-form input:not([type=checkbox]),.medication-form textarea{border:1px solid #ddd9e8;border-radius:9px;padding:10px;color:#20283a;font:inherit}.medication-form textarea{min-height:70px;resize:vertical}.medication-form fieldset{border:1px solid #e4e0eb;border-radius:9px;margin:0;padding:10px 12px;display:flex;gap:12px;flex-wrap:wrap}.medication-form legend{padding:0 4px;color:#4b5669;font-size:13px;font-weight:700}.medication-form .schedule-option{display:flex;align-items:center;gap:5px;text-transform:capitalize;font-weight:500}.medication-list,.medication-history{padding:0;overflow:hidden}.medication-history{margin-top:18px}.medication-list h2{padding:20px 22px 4px}.medication-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 22px;border-top:1px solid #eeecf2}.medication-row b,.medication-row small{display:block}.medication-row small,.medication-row p{margin:4px 0 0;color:#7e8899;font-size:12px}.medication-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}@media (max-width: 850px){.medication-layout{grid-template-columns:1fr}}:root[data-theme=dark] .medication-form input:not([type=checkbox]),:root[data-theme=dark] .medication-form textarea{background:#202633;color:#e6e8f0;border-color:#3a4355}:root[data-theme=dark] .medication-form fieldset,:root[data-theme=dark] .medication-row{border-color:#303747}.quick-action.medication .quick-action-icon{background:#f3edff;color:#7656d7}.dashboard-page{max-width:1320px}.dashboard-header{margin-bottom:20px}.dashboard-header h1{margin:0;font-size:30px}.dashboard-header .eyebrow{margin-bottom:4px}.dashboard-header-actions{display:flex;align-items:center;gap:10px}.dashboard-log-menu{position:relative}.dashboard-log-menu>button{display:flex;align-items:center;gap:7px;white-space:nowrap}.dashboard-log-menu>button svg{width:17px}.dashboard-log-popover{position:absolute;right:0;top:calc(100% + 8px);z-index:15;width:290px;padding:10px;background:#fff;border:1px solid #e5e1ef;border-radius:13px;box-shadow:0 14px 35px #1f164229}.dashboard-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}.dashboard-summary{min-height:132px;padding:18px;border:1px solid #e9e5f0;border-radius:16px;background:#fff;box-shadow:0 7px 22px #1f164207}.dashboard-summary>span{display:block;color:#667186;font-size:12px;font-weight:750}.dashboard-summary strong{display:block;margin:14px 0 5px;font-size:28px;letter-spacing:-1px}.dashboard-summary strong em{margin-left:4px;font-size:12px;font-style:normal;font-weight:650;color:#7b8494;letter-spacing:0}.dashboard-summary small{color:#8490a1;font-size:12px}.dashboard-summary.medication strong{color:#7050e7}.dashboard-main-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(290px,.95fr);gap:18px;align-items:start}.dashboard-primary,.dashboard-secondary{display:grid;gap:18px}.dashboard-trends{padding:22px}.dashboard-trend-tabs{display:flex;gap:5px;overflow:auto;margin:18px 0 8px;padding:4px;background:#f2f0f6;border-radius:10px}.dashboard-trend-tabs button{flex:0 0 auto;padding:8px 11px;background:transparent;color:#687388;font-size:12px}.dashboard-trend-tabs button.selected{background:#fff;color:#6347d8;box-shadow:0 1px 4px #31265a1c}.dashboard-section-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}.dashboard-section-head h2{margin:0;font-size:16px}.dashboard-section-head button{padding:5px 0;background:transparent!important;color:#6949db!important;font-size:12px}.dashboard-quick-actions{display:grid;gap:8px;max-height:292px;overflow:auto;padding-right:2px}.dashboard-quick-actions button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:10px 11px;background:#f7f5fb;color:#313a4d;border:1px solid #ebe7f2;border-radius:9px;font-size:13px;text-align:left}.dashboard-quick-actions button svg{width:16px;color:#7252e5}.dashboard-activity{padding:0;overflow:hidden}.dashboard-activity .dashboard-section-head{padding:20px 22px 12px;border-bottom:1px solid #eeecf2;margin:0}.dashboard-activity-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;padding:13px 22px;border-bottom:1px solid #f0eef4}.dashboard-activity-row:last-child{border:0}.activity-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#f0edff;color:#6949db}.activity-icon svg{width:16px}.activity-icon.blood-sugar{background:#e8faf5;color:#168575}.activity-icon.headache{background:#fff0ef;color:#db5a5d}.activity-icon.meal,.activity-icon.snack{background:#fff4e6;color:#c87a1b}.activity-icon.medication{background:#f2edff;color:#7050e7}.dashboard-activity-row b,.dashboard-activity-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-activity-row b{font-size:13px}.dashboard-activity-row small,.dashboard-activity-row time{margin-top:3px;color:#7e8999;font-size:11px}.dashboard-activity-row time{text-align:right}.dashboard-snapshot strong{display:block;margin:14px 0 8px;font-size:27px;letter-spacing:-1px}.dashboard-snapshot strong small{font-size:12px;font-weight:600;color:#798497;letter-spacing:0}.dashboard-snapshot>p{margin:0;color:#7d8797;font-size:12px}.snapshot-macros{display:grid;gap:8px;margin:15px 0}.snapshot-macros span{display:flex;justify-content:space-between;padding-bottom:7px;border-bottom:1px solid #efecf4;color:#6e788a;font-size:12px}.snapshot-macros b{color:#30394a}.medication-snapshot-list{display:grid;gap:12px}.medication-snapshot-list b,.medication-snapshot-list small{display:block}.medication-snapshot-list b{font-size:13px}.medication-snapshot-list small{margin-top:3px;color:#7d8797;font-size:11px;line-height:1.35}@media (max-width: 1180px){.dashboard-summary-grid{grid-template-columns:repeat(3,1fr)}.dashboard-main-grid{grid-template-columns:1fr}.dashboard-secondary{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-quick-log{grid-row:span 1}}@media (max-width: 820px){.dashboard-header-actions{align-items:stretch;flex-direction:column}.dashboard-summary-grid,.dashboard-secondary{grid-template-columns:1fr}.dashboard-log-popover{position:fixed;left:16px;right:16px;top:110px;width:auto}.dashboard-activity-row{grid-template-columns:34px minmax(0,1fr)}.dashboard-activity-row time{grid-column:2;text-align:left}.dashboard-trend-tabs{max-width:100%}}:root[data-theme=dark] .dashboard-summary,:root[data-theme=dark] .dashboard-log-popover{background:#191e2a;border-color:#303747;box-shadow:none}:root[data-theme=dark] .dashboard-summary>span,:root[data-theme=dark] .dashboard-summary small,:root[data-theme=dark] .dashboard-activity-row small,:root[data-theme=dark] .dashboard-activity-row time,:root[data-theme=dark] .dashboard-snapshot>p,:root[data-theme=dark] .medication-snapshot-list small{color:#aeb7c8}:root[data-theme=dark] .dashboard-trend-tabs{background:#282f3e}:root[data-theme=dark] .dashboard-trend-tabs button{color:#b5bdce}:root[data-theme=dark] .dashboard-trend-tabs button.selected{background:#3a315c;color:#ded6ff}:root[data-theme=dark] .dashboard-quick-actions button{background:#202633;color:#e4e9f2;border-color:#3a4355}:root[data-theme=dark] .dashboard-activity .dashboard-section-head,:root[data-theme=dark] .dashboard-activity-row,:root[data-theme=dark] .snapshot-macros span{border-color:#303747}:root[data-theme=dark] .dashboard-activity-row b,:root[data-theme=dark] .snapshot-macros b,:root[data-theme=dark] .medication-snapshot-list b{color:#eff3fa}.dashboard-summary-label{display:flex!important;align-items:center;gap:7px}.dashboard-summary-label svg{width:17px;height:17px;padding:3px;border-radius:6px}.dashboard-summary.headache .dashboard-summary-label svg{background:#fff0ef;color:#ef625e}.dashboard-summary.anxiety .dashboard-summary-label svg{background:#f3edff;color:#7959d8}.dashboard-summary.blood-sugar .dashboard-summary-label svg{background:#e8faf5;color:#168575}.dashboard-summary.nutrition .dashboard-summary-label svg{background:#fff4e6;color:#c87a1b}.dashboard-summary.medication .dashboard-summary-label svg{background:#eaf8ee;color:#248342}:root[data-theme=dark] .dashboard-summary.headache .dashboard-summary-label svg{background:#4c2932;color:#ff8d91}:root[data-theme=dark] .dashboard-summary.anxiety .dashboard-summary-label svg{background:#342853;color:#c9b9ff}:root[data-theme=dark] .dashboard-summary.blood-sugar .dashboard-summary-label svg{background:#173f3b;color:#68ddca}:root[data-theme=dark] .dashboard-summary.nutrition .dashboard-summary-label svg{background:#4c3520;color:#ffc26f}:root[data-theme=dark] .dashboard-summary.medication .dashboard-summary-label svg{background:#1d4234;color:#74d6a3}.dashboard-summary{position:relative;isolation:isolate;overflow:hidden;padding:20px 18px 18px}.dashboard-summary>*{position:relative;z-index:1}.dashboard-summary-label{min-height:40px;align-items:flex-start!important;gap:10px!important;font-size:13px!important;line-height:1.25}.dashboard-summary-label svg{width:38px!important;height:38px!important;padding:9px!important;border-radius:12px!important;flex:0 0 auto;stroke-width:2!important}.dashboard-summary strong{margin:17px 0 6px;font-size:32px;line-height:1}.dashboard-summary strong em{font-size:13px}.dashboard-summary small{font-size:12px}.dashboard-summary:after{content:"";position:absolute;right:-20px;bottom:-30px;width:100px;height:100px;border-radius:50%;opacity:.35;pointer-events:none;z-index:0}.dashboard-summary.headache:after{background:#ffe5e5}.dashboard-summary.anxiety:after{background:#eee8ff}.dashboard-summary.blood-sugar:after{background:#dff8f1}.dashboard-summary.nutrition:after{background:#fff0db}.dashboard-summary.medication:after{background:#ddf6e9}:root[data-theme=dark] .dashboard-summary:after{opacity:.13}.dashboard-summary.headache strong{color:#d4565b}.dashboard-summary.anxiety strong{color:#7c53c8}.dashboard-summary.blood-sugar strong{color:#188b7a}.dashboard-summary.nutrition strong{color:#c87a1b}.dashboard-summary.medication strong{color:#248342}.dashboard-summary.headache .dashboard-summary-label svg{color:#d4565b}.dashboard-summary.anxiety .dashboard-summary-label svg{color:#7c53c8}.dashboard-summary.blood-sugar .dashboard-summary-label svg{color:#188b7a}.dashboard-summary.nutrition .dashboard-summary-label svg{color:#c87a1b}.dashboard-summary.medication .dashboard-summary-label svg{color:#248342}:root[data-theme=dark] .dashboard-summary.headache strong{color:#ff9298}:root[data-theme=dark] .dashboard-summary.anxiety strong{color:#c4b5fd}:root[data-theme=dark] .dashboard-summary.blood-sugar strong{color:#69ddca}:root[data-theme=dark] .dashboard-summary.nutrition strong{color:#ffc36d}:root[data-theme=dark] .dashboard-summary.medication strong{color:#76d7a5}.app-toast{position:fixed;right:28px;bottom:28px;z-index:50;max-width:min(360px,calc(100vw - 32px));padding:13px 16px;border:1px solid #c7ead6;border-radius:11px;background:#edfbf2;color:#16713c;box-shadow:0 12px 28px #173b2524;font-size:13px;font-weight:750;animation:toast-in .18s ease-out}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}:root[data-theme=dark] .app-toast{background:#19382a;border-color:#2e704b;color:#9ee6bb;box-shadow:none}@media (max-width: 820px){.app-toast{right:16px;bottom:16px}}.auth-page{position:relative;isolation:isolate;display:grid;min-height:100vh;place-items:center;overflow:hidden;padding:28px;background:linear-gradient(135deg,#f7f5fc,#eeebf8 55%,#e7f4f1)}.auth-page:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:-2;background-image:linear-gradient(#7451df09 1px,transparent 1px),linear-gradient(90deg,#7451df09 1px,transparent 1px);background-size:42px 42px}.auth-orb{position:absolute;z-index:-1;border-radius:999px;filter:blur(2px);opacity:.7}.auth-orb-one{width:360px;height:360px;top:-170px;left:-95px;background:#d8ccff}.auth-orb-two{width:310px;height:310px;right:-100px;bottom:-130px;background:#c8eee5}.auth-card{width:min(100%,460px);padding:34px;border:1px solid #e4dfef;border-radius:22px;background:#fff;box-shadow:0 24px 70px #2e1a5421}.auth-brand{display:flex;gap:13px;align-items:center;margin-bottom:36px}.auth-brand-mark{display:grid;width:46px;height:46px;place-items:center;border-radius:14px;background:#7050e7;color:#fff;box-shadow:0 8px 18px #7050e74d}.auth-brand-mark svg{width:24px}.auth-brand .eyebrow{display:block;margin:0;color:#7050e7}.auth-brand strong{display:block;margin-top:2px;color:#465269;font-size:12px}.auth-heading h1{margin:0;color:#252d3d;font-size:28px;letter-spacing:-.7px}.auth-heading p{margin:9px 0 26px;color:#748094;font-size:14px;line-height:1.55}.auth-form{display:grid;gap:16px}.auth-form label{display:grid;gap:7px;color:#4c586c;font-size:13px;font-weight:750}.auth-form input{height:44px;border:1px solid #ddd8e8;border-radius:10px;padding:0 12px;background:#fbfaff;color:#273244;font:inherit}.auth-form input:focus{border-color:#8062e8;box-shadow:0 0 0 3px #8062e82b;outline:0}.auth-submit{width:100%;margin-top:4px;padding:12px;background:#7050e7;color:#fff;font-weight:750;box-shadow:0 9px 18px #7050e738}.auth-submit:hover{background:#6244d1}.auth-message{margin:18px 0 0;padding:10px 12px;border-radius:9px;background:#f0ecff;color:#5c42bd;font-size:13px;line-height:1.4}.auth-links{display:flex;justify-content:space-between;gap:10px;margin-top:22px}.auth-links button{padding:0;background:transparent;color:#6949db;font-size:12px;font-weight:750}.auth-links button:hover{text-decoration:underline}.auth-footnote{margin:27px 0 0;padding-top:18px;border-top:1px solid #eeeaf4;color:#8a94a4;font-size:11px;text-align:center}:root[data-theme=dark] .auth-page{background:linear-gradient(135deg,#111622,#1b1930 58%,#142a29)}:root[data-theme=dark] .auth-page:before{background-image:linear-gradient(#c8b8ff0b 1px,transparent 1px),linear-gradient(90deg,#c8b8ff0b 1px,transparent 1px)}:root[data-theme=dark] .auth-card{background:#191e2a;border-color:#303747;box-shadow:0 24px 70px #0005}:root[data-theme=dark] .auth-heading h1{color:#f3f5fa}:root[data-theme=dark] .auth-heading p,:root[data-theme=dark] .auth-brand strong,:root[data-theme=dark] .auth-footnote{color:#aeb7c8}:root[data-theme=dark] .auth-form label{color:#c5cede}:root[data-theme=dark] .auth-form input{background:#202633;border-color:#3a4355;color:#f1f4f9}:root[data-theme=dark] .auth-footnote{border-color:#303747}@media (max-width: 520px){.auth-page{padding:16px;place-items:start}.auth-card{margin-top:40px;padding:26px 22px;border-radius:18px}.auth-links{align-items:flex-start;flex-direction:column}.auth-orb-one{left:-210px}}.app-error{display:grid;min-height:100vh;place-items:center;padding:24px}.app-error .panel{max-width:460px;padding:30px}.app-error h1{margin:6px 0 10px}.app-error p{color:#718096;line-height:1.55}.collapsed-form{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:132px;padding:22px}.collapsed-form h2{margin:0 0 6px;font-size:18px}.collapsed-form p{margin:0;color:#748095;font-size:13px}.collapsed-form button{flex:0 0 auto}@media (max-width: 520px){.collapsed-form{align-items:stretch;flex-direction:column;padding:18px}.collapsed-form button{width:100%}}@media (max-width: 820px){html,body{overflow-x:hidden}body{min-width:0}.shell{display:block;min-height:100dvh}.shell>aside{position:sticky;inset:auto;width:100%;min-height:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 14px 8px;border-right:0;border-bottom:1px solid #ebe8f1;overflow:visible}.shell>aside h2{margin:0 auto 0 0;font-size:16px;white-space:nowrap}.shell>aside h2 svg{width:21px;height:21px}.shell>aside .theme-toggle{position:static;order:2;width:38px;height:38px;flex:0 0 38px}.shell>aside .sidebar-signout{position:static;order:1;flex:1 1 auto;height:38px;padding:0 12px;font-size:12px}.shell>aside nav{order:2;display:flex;width:100%;gap:4px;overflow-x:auto;padding:2px 0 1px;scrollbar-width:none}.shell>aside nav::-webkit-scrollbar{display:none}.shell>aside a{flex:0 0 auto;gap:7px;margin:0;padding:9px 11px;font-size:13px;white-space:nowrap}.shell>aside a svg{width:17px;height:17px}main{width:100%;max-width:none;margin:0;padding:20px 16px 36px}h1{font-size:26px;line-height:1.15}header{display:block;margin-bottom:20px}header p,.panel-copy{font-size:13px;line-height:1.5}.date-range{width:100%;max-width:100%;margin-top:14px;align-items:center;overflow-x:auto}.date-range label{flex:1 0 auto}.meal-date{width:100%;margin-top:14px}.meal-date input{width:100%}.panel,.summary-card,.dashboard-summary{border-radius:14px;padding:16px}.dialog{width:100%;max-height:calc(100dvh - 24px);overflow-y:auto;padding:22px 18px;border-radius:16px}.modal{padding:12px;align-items:start;overflow-y:auto}.actions{flex-wrap:wrap}.actions button{flex:1 1 130px}.quick-actions,.insight-grid,.summary-grid,.analytics-grid,.dashboard-summary-grid,.dashboard-main-grid,.dashboard-secondary{grid-template-columns:1fr}.quick-actions button{min-height:72px;padding:13px}.chart{min-height:210px}.chart-empty{height:210px}.comparison-head,.dashboard-section-head{align-items:flex-start;flex-direction:column}.series-picker{gap:10px 14px}.row{align-items:flex-start;gap:10px;flex-wrap:wrap}.row>button,.row>.timeline-edit{margin-left:0!important}.report-dates,.report-trackers,.threshold-fields{display:grid;grid-template-columns:1fr;gap:10px}.threshold-fields input,.report-dates input{width:100%}.dashboard-header-actions{margin-top:14px}.dashboard-log-menu,.dashboard-log-menu>button{width:100%}.dashboard-log-menu>button{justify-content:center}.dashboard-log-popover{top:72px}.dashboard-trends,.dashboard-activity .dashboard-section-head{padding:16px}.dashboard-activity-row{padding:13px 16px}.meal-layout,.medication-layout{grid-template-columns:1fr}.daily-card{display:block}.daily-card .macro-grams{margin:18px 0}.daily-card .macro-balance{padding-top:16px;border-top:1px solid #eeecf2}.meal-form-header{padding:18px;align-items:flex-start;flex-direction:column}.meal-form-card form{padding:18px 16px}.meal-actions{align-items:stretch;flex-direction:column;gap:12px}.meal-actions>div{width:100%}.meal-actions>div button{flex:1}.meal-date-time .datetime-field,.entry-date-time,.meal-date-time .datetime-field input{width:100%}.meal-history-head,.meal-log-row{padding-left:16px;padding-right:16px}.meal-log-row{grid-template-columns:minmax(0,1fr) auto;gap:10px}.meal-log-row .meal-kind{grid-column:1}.meal-log-row>div:nth-last-child(1){grid-column:2;grid-row:1 / span 2}.meal-log-row b{white-space:normal}.meal-glucose-context{margin:16px -16px -16px}.meal-glucose-row{grid-template-columns:1fr;padding:13px 16px;gap:7px}.meal-glucose-row>div:first-child{grid-column:auto}.medication-form{padding:16px}.medication-list h2{padding:16px 16px 4px}.medication-row{align-items:flex-start;flex-direction:column;padding:14px 16px}.medication-actions,.dose-time-edit,.meal-row-actions{width:100%;justify-content:flex-start}.dose-time-edit{display:flex;flex-wrap:wrap}.dose-time-edit input{min-width:0;flex:1 1 180px}.app-toast{right:12px;bottom:12px;left:12px;max-width:none}}@media (max-width: 520px){main{padding:16px 12px 28px}.shell>aside{padding-left:12px;padding-right:12px}.shell>aside h2 span{display:none}.shell>aside a span{display:none}.shell>aside a{padding:10px 12px}.shell>aside a svg{width:19px;height:19px}.shell>aside nav{justify-content:space-between}.panel,.summary-card,.dashboard-summary{padding:14px}.food-table-head{display:none}.meal-item{grid-template-columns:1fr 1fr}.meal-item>input{grid-column:1/-1}.nutrition-input{min-width:0}.icon-remove{justify-self:end}.entry-type-toggle{width:100%}.entry-type-toggle button{flex:1}.meal-history-head{padding:16px}.meal-log-row{padding:14px 16px}.meal-row-actions{align-items:center;flex-direction:row;justify-content:flex-end}.meal-row-actions .delete-meal{padding:6px!important}.dashboard-summary strong,.summary-card strong{font-size:25px}input,select,textarea{font-size:16px!important}}.dashboard-log-menu{position:fixed;right:28px;bottom:28px;z-index:40}.dashboard-log-fab{display:inline-flex;align-items:center;gap:8px;min-height:52px;padding:0 18px;border-radius:999px;box-shadow:0 10px 26px #3a26704d}.dashboard-log-fab svg{width:20px;height:20px}.dashboard-log-popover{position:absolute;right:0;top:auto;bottom:calc(100% + 10px);max-height:min(430px,calc(100dvh - 120px));overflow-y:auto}.dashboard-log-popover-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;padding:2px 2px 8px;border-bottom:1px solid #eeecf2;color:#30394b;font-size:13px}.dashboard-log-popover-head button{display:grid;width:30px;height:30px;min-height:30px;padding:0;place-items:center;border-radius:8px;background:transparent;color:#687388}.dashboard-log-popover-head button:hover{background:#f0eef5}.dashboard-log-popover-head svg{width:17px;height:17px}:root[data-theme=dark] .dashboard-log-popover-head{border-color:#303747;color:#edf1f8}:root[data-theme=dark] .dashboard-log-popover-head button{color:#b8c1d1}:root[data-theme=dark] .dashboard-log-popover-head button:hover{background:#282f3e}@media (max-width: 820px){.dashboard-header-actions .dashboard-log-menu{width:auto}.dashboard-header-actions .dashboard-log-menu>.dashboard-log-fab{width:auto;justify-content:center}.dashboard-log-menu{right:16px;bottom:16px}.dashboard-log-popover{top:auto;right:0;bottom:calc(100% + 10px);left:auto;width:min(290px,calc(100vw - 32px))}}@media (max-width: 520px){.dashboard-log-fab{width:56px;height:56px;min-height:56px;justify-content:center;padding:0}.dashboard-log-fab span{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}}@media (max-width: 820px){.dashboard-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dashboard-summary{min-height:118px;padding:14px}.dashboard-summary-label{gap:7px!important;font-size:11px!important}.dashboard-summary-label svg{width:32px!important;height:32px!important;padding:7px!important;border-radius:10px!important}.dashboard-summary strong{margin-top:12px;font-size:27px}.shell>aside .sidebar-signout{flex:0 0 auto;width:auto;padding:0 10px;font-size:11px}.medication-list{order:1}.medication-form{order:2}}@media (max-width: 360px){.dashboard-summary-grid{grid-template-columns:1fr}}@media (max-width: 820px){:root{--mobile-gutter: 14px;--mobile-gap: 12px}main{padding:18px var(--mobile-gutter) calc(32px + env(safe-area-inset-bottom))}.shell>aside{padding:9px var(--mobile-gutter) 7px;gap:7px}.shell>aside nav{gap:6px;padding-top:4px}.shell>aside a{min-height:38px;padding:9px 12px;border-radius:9px}button:not(.icon-remove):not(.edit-meal):not(.calendar-trigger):not(.dialog-close){min-height:40px}header{margin-bottom:18px}h1{margin-bottom:5px;font-size:25px}.panel,.summary-card,.dashboard-summary{border-radius:14px}.panel{padding:16px}.dashboard-main-grid,.dashboard-primary,.dashboard-secondary,.analytics-grid,.insight-grid{gap:var(--mobile-gap)}.dashboard-summary-grid{margin-bottom:var(--mobile-gap)}.dashboard-summary{min-height:120px}.dashboard-trends{padding:16px}.dashboard-trend-tabs{margin:14px 0 6px}.dashboard-trend-tabs button{min-height:36px!important}.dashboard-quick-actions{gap:7px;max-height:none}.dashboard-quick-actions button{min-height:42px;padding:10px 11px}.dashboard-activity .dashboard-section-head{padding:16px}.dashboard-activity-row{gap:9px;padding:12px 16px}.row{padding:13px 0}.row>div:first-child{min-width:0}.row b{font-size:13px}.row p{margin:3px 0;font-size:12px;line-height:1.4}.row small{color:#7c8798;font-size:11px}.timeline-actions{gap:6px}.timeline-actions button{min-height:32px!important;padding:6px 10px;font-size:12px}.meal-layout,.medication-layout{gap:var(--mobile-gap)}.meal-form-header,.meal-form-card form,.medication-form{padding:16px}.meal-form-header{gap:12px}.meal-history,.medication-history{margin-top:var(--mobile-gap)}.meal-history-head{padding:16px}.meal-log-row{gap:8px;padding:13px 16px}.meal-kind{font-size:10px}.medication-row{gap:10px;padding:13px 16px}.medication-actions{gap:7px}.medication-actions button{min-height:36px!important}.collapsed-form{min-height:116px;padding:18px}.collapsed-form button{min-height:42px}.dialog{padding:20px 16px}.dialog h2{margin-right:32px}.actions{gap:10px}.date-range,.meal-date input{min-height:40px}}@media (max-width: 520px){:root{--mobile-gutter: 12px;--mobile-gap: 10px}.shell>aside h2{font-size:15px}.shell>aside .sidebar-signout{min-height:34px;height:34px;padding:0 9px}.shell>aside .theme-toggle{width:34px;height:34px;flex-basis:34px}.dashboard-summary{padding:12px;min-height:114px}.dashboard-summary strong{font-size:25px}.dashboard-summary small{font-size:11px}.dashboard-section-head h2{font-size:15px}.panel,.meal-form-header,.meal-form-card form,.medication-form{padding:14px}.food-table .meal-item{gap:8px}.meal-actions>div{gap:8px}.meal-actions>div button{min-height:42px}.dashboard-log-menu{right:12px;bottom:calc(12px + env(safe-area-inset-bottom))}.dashboard-log-popover{width:min(300px,calc(100vw - 24px))}}.timeline-pagination{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:18px;padding-top:18px;border-top:1px solid #eeecf2}.timeline-pagination span{min-width:106px;color:#687388;font-size:13px;font-weight:650;text-align:center}.timeline-pagination button:disabled{cursor:not-allowed;opacity:.45}.meal-log-row .macro-percentages{gap:5px}.meal-log-row .macro-percentages b{padding:4px 6px;border-radius:5px;font-size:10px;line-height:1.2}.meal-log-row .macro-percentages em{font-size:10px}:root[data-theme=dark] .timeline-pagination{border-color:#303747}:root[data-theme=dark] .timeline-pagination span{color:#aeb7c8}@media (max-width: 520px){.timeline-pagination{justify-content:space-between;gap:8px;margin-top:14px;padding-top:14px}.timeline-pagination button{min-width:84px}.timeline-pagination span{min-width:0;font-size:12px}.meal-log-row .macro-percentages{display:flex;grid-column:1 / -1;gap:4px;margin-top:2px}.meal-log-row>div:nth-child(2){grid-column:1 / -1}.meal-log-row>div:nth-last-child(1){grid-column:2;grid-row:1}.meal-log-row .macro-percentages b{padding:3px 5px;border-radius:5px;font-size:9px;line-height:1.2}.meal-log-row .macro-percentages em{font-size:9px}}.privacy-cover{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:grid;place-items:center;padding:24px;background:#121725d9;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.privacy-cover-card{display:grid;justify-items:center;gap:12px;max-width:310px;padding:28px 24px;border:1px solid #ffffff1f;border-radius:20px;background:#1c2230ee;color:#f3f5fa;text-align:center;box-shadow:0 18px 48px #0006}.privacy-cover-card svg{width:28px;height:28px;color:#c5b5ff}.privacy-cover-card strong{font-size:17px}.privacy-cover-card span{color:#bdc6d6;font-size:13px;line-height:1.45}.privacy-cover-card button{min-width:132px;margin-top:4px}@media (max-width: 520px){.privacy-cover{padding:18px}.privacy-cover-card{width:100%;max-width:340px;padding:24px 20px}}html{scroll-behavior:smooth}.shell>aside a{position:relative}.shell>aside a.active:before{content:"";position:absolute;left:-18px;width:3px;height:22px;border-radius:0 4px 4px 0;background:currentColor}main{animation:workspace-enter .22s ease-out}@keyframes workspace-enter{0%{opacity:.7;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.time-zone-options label{display:grid;gap:6px;max-width:360px;color:#566075;font-size:13px;font-weight:700}.time-zone-options select{width:100%;height:42px;border:1px solid #ddd8e6;border-radius:9px;padding:0 10px;background:#fff;color:#253045;font:inherit}:root[data-theme=dark] .time-zone-options select{background:#202633;color:#e6e8f0;border-color:#3a4355}@media (max-width: 820px){.shell>aside a.active:before{display:none}main{animation-duration:.18s}.time-zone-options label{max-width:none}}@media (max-width: 600px){.auth-page{min-height:100dvh;place-items:center;overflow-y:auto;padding:max(20px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}.auth-card{width:100%;max-width:420px;margin:0;padding:26px 22px 22px;border-radius:20px}.auth-brand{gap:11px;margin-bottom:26px}.auth-brand-mark{width:42px;height:42px;border-radius:13px}.auth-brand-mark svg{width:22px}.auth-brand strong{font-size:11px}.auth-heading h1{font-size:26px;line-height:1.14}.auth-heading p{margin:8px 0 22px;font-size:13px;line-height:1.5}.auth-form{gap:14px}.auth-form input{height:48px;border-radius:11px;font-size:16px}.auth-submit{min-height:48px;margin-top:2px;border-radius:11px}.auth-links{gap:12px;margin-top:20px}.auth-links button{min-height:32px;font-size:13px;text-align:left}.auth-footnote{margin-top:22px;padding-top:16px;font-size:11px}.auth-orb{opacity:.45}.auth-orb-one{width:260px;height:260px;top:-140px;left:-120px}.auth-orb-two{width:220px;height:220px;right:-100px;bottom:-115px}}@media (max-width: 360px){.auth-page{place-items:start center;padding-top:16px}.auth-card{padding:22px 18px 18px;border-radius:18px}.auth-brand{margin-bottom:20px}.auth-heading h1{font-size:24px}.auth-heading p{margin-bottom:18px}}@media (max-width: 820px){.dashboard-page,.meals-page,.medications-page{padding-bottom:88px}.dashboard-summary-grid,.dashboard-main-grid,.meal-layout,.medication-layout{margin-bottom:2px}.panel+.panel,.panel+section.panel{margin-top:0}.add-food{display:inline-flex;align-items:center;justify-content:center;min-height:40px;margin-top:14px;padding:0 12px!important;border:1px solid #d9d0fb!important;border-radius:9px;background:#f6f3ff!important}.collapsed-form button{min-height:44px;padding-inline:16px}.dashboard-log-fab{min-width:58px;min-height:58px}}@media (max-width: 520px){.dashboard-log-fab{width:64px;height:64px;min-width:64px;min-height:64px;border-radius:20px;box-shadow:0 12px 28px #3a267059}.dashboard-log-fab svg{width:24px;height:24px}.add-food{width:100%;min-height:44px;margin-top:16px}.meal-items{gap:10px}.meal-notes{margin-top:18px}.meal-history,.medication-history{margin-top:12px}.dashboard-summary-grid{gap:9px}}:root[data-theme=dark] .add-food{background:#292341!important;border-color:#4a3e72!important}@media (max-width: 820px){html,body,#root{width:100%;max-width:100%;overflow-x:clip}.shell,main,main>*,header,header>*,section,article,.panel,.dialog,.dashboard-page,.meals-page,.medications-page{min-width:0;max-width:100%}.panel{overflow-x:clip}input,select,textarea,button{min-width:0;max-width:100%}input[type=date],input[type=time],input[type=datetime-local],select{width:100%}.date-range,.date-range label,.report-dates,.report-trackers,.threshold-fields,.entry-date-time,.meal-date-time,.dose-time-edit{min-width:0;max-width:100%}.date-range select,.date-range input,.entry-date-time input,.dose-time-edit input{min-width:0}.row>div:first-child,.meal-log-row>div,.medication-row>div,.dashboard-activity-row>div{min-width:0;overflow-wrap:anywhere}.row p,.row small,.meal-log-row b,.meal-log-row small,.medication-row p,.medication-row small{overflow-wrap:anywhere;white-space:normal}.timeline-actions,.meal-row-actions,.medication-actions{flex-shrink:0}.analytics-grid,.insight-grid,.dashboard-main-grid,.dashboard-secondary,.meal-layout,.medication-layout{min-width:0}.analytics-grid .panel,.chart,.chart>div{min-width:0!important;max-width:100%}.meal-glucose-context{max-width:calc(100% + 32px);overflow-x:clip}.dashboard-log-popover{max-width:calc(100vw - 24px)}}@media (max-width: 520px){.entry-date-time{flex-wrap:wrap}.entry-date-time input{flex:1 1 132px;width:auto!important}.row{gap:8px}.timeline-actions{gap:5px}.timeline-actions button{padding-inline:8px}.meal-actions>div,.medication-actions,.dose-time-edit{flex-wrap:wrap}.meal-actions>div button{min-width:0}}.add-food{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px!important;border-radius:8px}.daily-card .macro-percentages{gap:4px}.daily-card .macro-percentages b{margin:0}@media (max-width: 520px){.daily-card .macro-percentages{gap:4px}}.dashboard-summary.blood-pressure .dashboard-summary-label svg{background:#edf4ff;color:#3974bf}.dashboard-summary.blood-pressure strong{color:#3974bf;white-space:nowrap}.dashboard-summary.blood-pressure:after{background:#e1efff}.dashboard-summary>.dashboard-summary-label,.dashboard-summary>small{min-width:0;overflow-wrap:anywhere}.dashboard-summary>small{display:block;line-height:1.35}:root[data-theme=dark] .dashboard-summary.blood-pressure .dashboard-summary-label svg{background:#1d3857;color:#7fb3ff}:root[data-theme=dark] .dashboard-summary.blood-pressure strong{color:#83b7ff}:root[data-theme=dark] .dashboard-summary.blood-pressure:after{background:#315889}@media (max-width: 820px){.dashboard-summary.blood-pressure strong{font-size:clamp(21px,6vw,27px);letter-spacing:-1.2px}}:root{--canvas: #070d1c;--canvas-raised: #0b1326;--surface: #10192b;--surface-raised: #131e33;--surface-muted: #18233a;--border: #26334b;--border-strong: #34425c;--text: #f4f7ff;--text-muted: #aab6cc;--text-subtle: #71809a;--primary: #8069ff;--primary-strong: #6548ef;--success: #53e692;--warning: #ff9a3d;--danger: #ff6872;--info: #48a8ff;--radius-card: 16px;--shadow-card: 0 18px 45px rgb(0 0 0 / 18%);color:var(--text);background:var(--canvas)}:root[data-theme=dark] body{min-width:0;background:radial-gradient(circle at 58% -12%,#1a285022 0,transparent 32rem),linear-gradient(135deg,var(--canvas) 0%,var(--canvas-raised) 55%,#08101f 100%);color:var(--text)}.shell{min-height:100dvh}.shell>aside{display:flex;flex-direction:column;width:192px;padding:28px 12px 18px;background:linear-gradient(180deg,#090f20,#070d1a);border-right:1px solid #1c2940;color:var(--text)}.shell>aside h2{gap:9px;margin:0 8px 38px;color:#9b8bff;font-size:15px;font-weight:780;letter-spacing:-.3px;line-height:1.05}.shell>aside h2 svg{width:29px;height:29px;color:#816bff;stroke-width:1.7}.shell>aside nav{gap:6px}.shell>aside a{min-height:42px;gap:12px;padding:10px 12px;border:1px solid transparent;border-radius:9px;color:#aab6cc;font-weight:600}.shell>aside a svg{width:18px;height:18px;stroke-width:1.8}.shell>aside a.active,.shell>aside a:hover{background:linear-gradient(90deg,#342873,#252249);border-color:#3d3670;color:#9c8bff}.shell>aside a.active:before{display:none}.theme-toggle{position:absolute;top:26px;right:16px;display:grid;width:32px;height:32px;min-height:32px;padding:0;place-items:center;border:1px solid var(--border);border-radius:9px;background:var(--surface-muted);color:var(--text-muted)}.theme-toggle:hover{border-color:#6353b9;color:#d6ceff}.sidebar-signout{width:calc(100% - 16px);margin:auto 8px 0;min-height:38px;border:1px solid var(--border);border-radius:9px;background:#111b2e;color:var(--text-muted);font-size:12px}main{width:calc(100% - 192px);max-width:1600px;margin-left:192px;padding:30px 32px 52px}header p,.panel-copy{color:var(--text-muted)}h1,h2,h3{color:var(--text)}.panel,.dashboard-summary,.date-range{border-color:var(--border);background:linear-gradient(145deg,#131e33f5,#0d1728f5);box-shadow:var(--shadow-card)}.panel,.dashboard-summary{border-radius:var(--radius-card)}.dashboard-header{margin-bottom:26px}.dashboard-header .eyebrow{color:#9181ff;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.dashboard-header h1{font-size:clamp(28px,3vw,34px);letter-spacing:-1.1px}.date-range{padding:6px 10px}.date-range label,.date-range select,.date-range input{background:transparent;color:var(--text-muted)}.dashboard-summary-grid{gap:12px;margin-bottom:20px}.dashboard-summary{min-height:142px;padding:17px}.dashboard-summary>span,.dashboard-summary small,.dashboard-summary strong em{color:var(--text-muted)}.dashboard-summary-label svg,.activity-icon{border:1px solid currentColor}.dashboard-main-grid,.dashboard-primary,.dashboard-secondary{gap:16px}.dashboard-trend-tabs{border:1px solid #2a3851;background:#172239}.dashboard-trend-tabs button{color:var(--text-muted)}.dashboard-trend-tabs button.selected{background:linear-gradient(135deg,#6448e6,#8069ff);color:#fff;box-shadow:0 5px 16px #593ce766}@media (max-width: 820px){.shell>aside{position:sticky;top:0;right:0;bottom:0;left:0;z-index:20;flex-direction:row;width:100%;min-height:66px;padding:10px 14px;overflow:visible}.shell>aside h2{flex:0 0 auto;margin:0 14px 0 0}.shell>aside h2 span{display:none}.theme-toggle{position:static;order:3;flex:0 0 34px;margin-left:8px}.sidebar-signout{display:none}.shell>aside nav{display:flex;flex:1;min-width:0;overflow-x:auto}.shell>aside a{flex:0 0 auto}.shell>aside a span{display:inline}main{width:100%;margin-left:0;padding:22px 16px 88px}}.dashboard-hero{position:relative;display:grid;grid-template-columns:220px minmax(300px,1fr) minmax(180px,.8fr);min-height:218px;margin-bottom:18px;padding:20px 24px;overflow:hidden;isolation:isolate}.health-score{display:grid;justify-items:center;align-content:center;gap:7px;padding-right:24px;border-right:1px solid #2a3750;text-align:center}.health-score-ring{--score: 0;display:grid;width:124px;height:124px;place-items:center;border-radius:50%;background:conic-gradient(from 210deg,#7d5cf6 calc(var(--score) * 1%),#53e692 calc(var(--score) * 1% + 2%),#25334b 0);box-shadow:0 0 28px #735cff33}.health-score-ring:before{grid-area:1 / 1;width:106px;height:106px;border-radius:inherit;background:#111b2e;content:""}.health-score-ring>div{z-index:1;grid-area:1 / 1}.health-score-ring strong{display:block;color:#fff;font-size:44px;line-height:.9;letter-spacing:-2px}.health-score-ring span{color:var(--text-subtle);font-size:11px;font-weight:700}.health-score>span{color:#eef2fb;font-size:13px;font-weight:700}.health-score>b{color:var(--success);font-size:12px}.health-insights{display:grid;align-content:center;gap:16px;padding:10px 24px}.health-insights>div{display:flex;align-items:center;gap:12px}.insight-icon{display:grid;width:34px;height:34px;flex:0 0 auto;place-items:center;border-radius:50%;font-size:18px;font-weight:800}.insight-icon.positive{background:#1b453c;color:var(--success)}.insight-icon.info{background:#173a5c;color:var(--info)}.insight-icon.warning{background:#4c321c;color:var(--warning)}.health-insights p{display:grid;gap:3px;margin:0}.health-insights b{color:#eff3fc;font-size:13px}.health-insights small{color:var(--text-muted);font-size:12px}.hero-glow{position:relative;min-height:178px;overflow:hidden}.hero-glow:before{position:absolute;right:-30px;bottom:-65px;width:290px;height:180px;border-radius:65% 20% 0 0;background:linear-gradient(145deg,transparent 20%,#5b467a 21%,#192842 64%);box-shadow:-72px 32px 0 -10px #17243d,-155px 52px 0 -25px #121d34;content:"";opacity:.9;transform:rotate(-8deg)}.hero-glow span{position:absolute;right:76px;bottom:19px;width:38px;height:38px;border-radius:50%;background:#ffb176;box-shadow:0 0 32px #ffb176b3}.dashboard-summary{position:relative;overflow:hidden;transition:transform .18s ease,border-color .18s ease}.dashboard-summary:hover{border-color:#465878;transform:translateY(-2px)}.dashboard-summary:after{position:absolute;right:-25px;bottom:-35px;width:112px;height:112px;border-radius:50%;background:currentColor;content:"";opacity:.06}.dashboard-summary-label svg{width:31px;height:31px;padding:7px;border-radius:10px}.dashboard-summary.headache .dashboard-summary-label svg{background:#4b202d;color:var(--danger)}.dashboard-summary.anxiety .dashboard-summary-label svg{background:#332454;color:#b59bff}.dashboard-summary.blood-sugar .dashboard-summary-label svg{background:#173f39;color:var(--success)}.dashboard-summary.blood-pressure .dashboard-summary-label svg{background:#492d1b;color:var(--warning)}.dashboard-summary.medication .dashboard-summary-label svg{background:#173b62;color:var(--info)}.dashboard-summary.headache strong{color:var(--danger)}.dashboard-summary.anxiety strong{color:#b59bff}.dashboard-summary.blood-sugar strong{color:var(--success)}.dashboard-summary.blood-pressure strong,.dashboard-summary.nutrition strong{color:var(--warning)}.dashboard-summary.medication strong{color:var(--info)}.dashboard-snapshot{min-height:0;padding:18px}.dashboard-snapshot .dashboard-section-head{margin-bottom:14px}.dashboard-snapshot .dashboard-section-head button{color:#9c8bff!important}.dashboard-snapshot strong{color:#f5f7fd}.snapshot-macros{gap:10px}.snapshot-macros span{display:grid;grid-template-columns:62px 1fr auto;align-items:center;gap:9px;border:0;padding:0;color:var(--text-muted)}.snapshot-macros span:after{grid-column:2;height:5px;border-radius:99px;background:linear-gradient(90deg,var(--success) 0 33%,#29374f 33%);content:""}.snapshot-macros span:nth-child(2):after{background:linear-gradient(90deg,var(--info) 0 28%,#29374f 28%)}.snapshot-macros span:nth-child(3):after{background:linear-gradient(90deg,var(--warning) 0 19%,#29374f 19%)}.snapshot-macros b{grid-column:3;grid-row:1;color:#edf2fb;font-size:11px}.medication-snapshot-list{gap:0;border-top:1px solid #29364c}.medication-snapshot-list>div{position:relative;padding:11px 0 11px 31px;border-bottom:1px solid #29364c}.medication-snapshot-list>div:before{position:absolute;left:0;top:13px;display:grid;width:19px;height:19px;place-items:center;border-radius:50%;background:#1b493e;color:var(--success);content:"✓";font-size:11px;font-weight:800}.medication-snapshot-list>div:last-child{border-bottom:0}@media (max-width: 1050px){.dashboard-hero{grid-template-columns:190px 1fr}.hero-glow{display:none}}@media (max-width: 620px){.dashboard-hero{grid-template-columns:1fr;gap:18px;padding:20px}.health-score{padding:0 0 18px;border-right:0;border-bottom:1px solid #2a3750}.health-insights{gap:12px;padding:0}}.date-range{display:flex;align-items:center;gap:2px;padding:4px;border-radius:12px;background:#101a2d;box-shadow:inset 0 0 0 1px #26344c}.date-range button{min-height:30px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--text-muted);font-size:11px;font-weight:650;white-space:nowrap}.date-range button:hover{color:#e7eaff;background:#1e2b45}.date-range button.selected{color:#fff;background:linear-gradient(135deg,#5d43dc,#8069ff);box-shadow:0 4px 12px #4325b866}.dashboard-log-fab{border:1px solid #907cff;background:linear-gradient(135deg,#5e45dc,#8069ff);color:#fff;box-shadow:0 9px 24px #5738da55}.dashboard-log-fab:hover{filter:brightness(1.12);transform:translateY(-1px)}.dashboard-log-popover{width:316px;border-color:#374660;background:#111c30;box-shadow:0 20px 42px #0008}.dashboard-quick-actions button{min-height:42px;border-color:#2c3a53;background:#18253c;color:#e9edfa;transition:background .16s ease,transform .16s ease}.dashboard-quick-actions button:hover{background:#22324e;transform:translate(-2px)}.dashboard-trends .chart{margin-top:4px}.trend-stat-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:10px;border:1px solid #293850;border-radius:12px;background:#111c2f;overflow:hidden}.trend-stat-row>div{display:grid;gap:4px;min-height:62px;padding:12px 15px;border-right:1px solid #293850}.trend-stat-row>div:last-child{border-right:0}.trend-stat-row span{color:var(--text-subtle);font-size:11px;font-weight:650}.trend-stat-row b{color:#eef3fc;font-size:18px;letter-spacing:-.5px}.trend-stat-row small{margin-left:3px;color:var(--text-muted);font-size:10px;font-weight:600;letter-spacing:0}@media (max-width: 820px){.date-range{width:max-content;max-width:100%;margin-top:0;overflow-x:auto}.dashboard-header-actions{gap:10px}}@media (max-width: 520px){.date-range{width:100%}.date-range button{flex:1 0 auto;padding:0 8px}.trend-stat-row>div{min-height:56px;padding:10px}.trend-stat-row b{font-size:15px}}.dashboard-main-grid{grid-template-columns:minmax(0,1fr) 348px;align-items:start}.dashboard-rail{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.dashboard-rail>article{min-width:0}.nutrition-overview{display:flex;align-items:center;justify-content:center;gap:24px;margin:4px 0 18px}.nutrition-ring{--progress: 0;display:grid;width:98px;height:98px;flex:0 0 auto;place-items:center;border-radius:50%;background:conic-gradient(#48a8ff calc(var(--progress) * 1%),#26334b 0)}.nutrition-ring:before{grid-area:1 / 1;width:81px;height:81px;border-radius:50%;background:#121d31;content:""}.nutrition-ring>div{z-index:1;grid-area:1 / 1;display:grid;justify-items:center;gap:2px}.nutrition-ring b{color:#f5f7ff;font-size:19px;letter-spacing:-.7px}.nutrition-ring span,.nutrition-goal span{color:var(--text-muted);font-size:11px}.nutrition-goal{display:grid;gap:2px}.nutrition-goal b{color:#eef3fc;font-size:21px}.rail-macros{display:grid;gap:10px}.rail-macros>div{display:grid;grid-template-columns:51px minmax(0,1fr) auto;align-items:center;gap:8px}.rail-macros span{color:var(--text-muted);font-size:11px}.rail-macros i{--progress: 0;height:5px;border-radius:99px;background:linear-gradient(90deg,#53e692 calc(var(--progress) * 1%),#29374f 0)}.rail-macros>div:nth-child(2) i{background:linear-gradient(90deg,#48a8ff calc(var(--progress) * 1%),#29374f 0)}.rail-macros>div:nth-child(3) i{background:linear-gradient(90deg,#ff9a3d calc(var(--progress) * 1%),#29374f 0)}.rail-macros b{color:#ecf1fa;font-size:11px;white-space:nowrap}.rail-macros small{color:var(--text-subtle);font-weight:500}.rail-footnote{margin:17px 0 0;color:var(--text-muted);font-size:11px}.medication-rail-card .medication-snapshot-list>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding-right:42px}.medication-snapshot-list>div em{grid-column:2;grid-row:1 / span 2;align-self:center;color:var(--success);font-size:10px;font-style:normal;font-weight:700}.medication-snapshot-list>div.pending:before{border:1px solid #6c788e;background:transparent;color:transparent}.medication-snapshot-list>div.pending em{color:var(--text-subtle)}.rail-activity{padding:0;overflow:hidden}.rail-activity .dashboard-section-head{padding:16px 18px 10px;margin:0;border-bottom:1px solid #29364c}.rail-activity .dashboard-activity-row{grid-template-columns:30px minmax(0,1fr) auto;gap:9px;padding:10px 18px}.rail-activity .activity-icon{width:27px;height:27px;border-radius:8px}.rail-activity .activity-icon svg{width:14px}.rail-activity .dashboard-activity-row b{font-size:12px}.rail-activity .dashboard-activity-row small,.rail-activity .dashboard-activity-row time{font-size:10px}@media (max-width: 1180px){.dashboard-main-grid{grid-template-columns:1fr}.dashboard-rail{display:flex;gap:14px;margin:2px -16px 0;padding:0 16px 12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-color:#53657f transparent;scrollbar-width:thin}.dashboard-rail>article{flex:0 0 min(348px,calc(100vw - 48px));scroll-snap-align:start}}@media (max-width: 520px){.dashboard-rail>article{flex-basis:calc(100vw - 42px)}}.dashboard-summary-grid{display:flex;gap:12px;margin-right:-4px;padding:2px 4px 12px 2px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-color:#53657f transparent;scrollbar-width:thin}.dashboard-summary-grid .dashboard-summary{flex:0 0 clamp(176px,16vw,220px);scroll-snap-align:start}@media (max-width: 1180px){.dashboard-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding:0;overflow:visible}.dashboard-rail>article{flex:initial}}@media (max-width: 820px){.dashboard-rail{grid-template-columns:1fr}.dashboard-summary-grid .dashboard-summary{flex-basis:min(245px,calc(100vw - 54px))}}.dashboard-workspace{display:grid;grid-template-columns:minmax(0,1fr) 348px;gap:16px;align-items:start}.dashboard-workspace>.dashboard-primary{display:grid;gap:0;min-width:0}.dashboard-workspace .dashboard-main-grid{display:block}.dashboard-workspace .dashboard-hero{grid-template-columns:190px minmax(260px,1fr) minmax(110px,.45fr);min-height:205px}.dashboard-workspace .health-score{padding-right:18px}.dashboard-workspace .health-insights{padding-inline:18px}.dashboard-workspace .hero-glow:before{right:-95px}.dashboard-workspace .hero-glow span{right:28px}.dashboard-workspace .dashboard-summary-grid{margin-bottom:18px}@media (max-width: 1260px){.dashboard-workspace{grid-template-columns:1fr}.dashboard-workspace .dashboard-hero{grid-template-columns:220px minmax(300px,1fr) minmax(180px,.8fr)}.dashboard-workspace .dashboard-rail{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width: 820px){.dashboard-workspace .dashboard-hero,.dashboard-workspace .dashboard-rail{grid-template-columns:1fr}}@property --score-progress{syntax: "<number>"; inherits: false; initial-value: 0;}.health-score-ring{--score-progress: 0;background:conic-gradient(from 0deg,#8069ff 0,#8069ff calc((var(--score-progress) - 2) * 1%),#53e692 calc((var(--score-progress) - 2) * 1%),#53e692 calc(var(--score-progress) * 1%),#25334b calc(var(--score-progress) * 1%),#25334b);animation:health-score-draw 2.6s cubic-bezier(.22,.8,.25,1) .2s both}@keyframes health-score-draw{to{--score-progress: var(--score)}}.health-score-ring>div{display:flex;flex-direction:column;align-items:center;transform:translateY(4px)}.health-score-ring strong{line-height:1;transform:translateY(1px)}.health-score-ring span{display:block;margin-top:6px;line-height:1;transform:translateY(2px)}@media (prefers-reduced-motion: reduce){.health-score-ring{animation:none;--score-progress: var(--score)}}.health-score-ring{position:relative;background:#25334b;animation:none}.health-score-ring svg{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;overflow:visible;transform:rotate(-90deg)}.health-score-ring circle{fill:none;stroke-width:7}.health-score-track{stroke:#25334b}.health-score-progress{stroke:#8069ff;stroke-linecap:round;stroke-dasharray:339.3;stroke-dashoffset:339.3;animation:health-score-stroke 2.6s cubic-bezier(.22,.8,.25,1) .2s forwards}@keyframes health-score-stroke{to{stroke-dashoffset:calc(339.3 - (339.3 * var(--score) / 100))}}@media (prefers-reduced-motion: reduce){.health-score-progress{animation:none;stroke-dashoffset:calc(339.3 - (339.3 * var(--score) / 100))}}.health-score-ring:before{display:none}.health-score-ring>div{width:106px;height:106px;justify-content:center;border-radius:50%;background:#111b2e}.health-score-progress{animation:none;transition:stroke-dashoffset 2.6s cubic-bezier(.22,.8,.25,1)}.health-score-ring{background:transparent;box-shadow:none}.health-score-ring>div{position:relative;z-index:2}.health-score-progress{stroke-dasharray:0 339.3;stroke-dashoffset:0;transition:stroke-dasharray 2.6s cubic-bezier(.22,.8,.25,1)}@media (prefers-reduced-motion: reduce){.health-score-progress{transition:none}}.health-score-ring>div{width:auto;height:auto;background:transparent}:root[data-theme=light]{--canvas: #fbfcff;--canvas-raised: #ffffff;--surface: #ffffff;--surface-raised: #ffffff;--surface-muted: #f5f7fc;--border: #e3e8f1;--border-strong: #d3dbea;--text: #182237;--text-muted: #64728a;--text-subtle: #8c99ac;--shadow-card: 0 10px 28px rgb(29 45 74 / 7%);color:var(--text);background:var(--canvas)}:root[data-theme=light] body{background:radial-gradient(circle at 58% -10%,#efeaff70 0,transparent 30rem),linear-gradient(135deg,#fff,#fbfcff 64%,#f8fafc);color:var(--text)}:root[data-theme=light] .shell>aside{background:#fff;border-color:#e8edf5;color:var(--text)}:root[data-theme=light] .shell>aside h2,:root[data-theme=light] .shell>aside h2 svg{color:#7658f5}:root[data-theme=light] .shell>aside a{color:#526177}:root[data-theme=light] .shell>aside a.active,:root[data-theme=light] .shell>aside a:hover{background:linear-gradient(90deg,#f1ecff,#faf8ff);border-color:#e4dcff;color:#7052ef}:root[data-theme=light] .theme-toggle,:root[data-theme=light] .sidebar-signout{background:#f7f9fc;border-color:#e0e6f0;color:#5d6b82}:root[data-theme=light] .panel,:root[data-theme=light] .dashboard-summary,:root[data-theme=light] .date-range{background:#fff;border-color:#e5eaf2;box-shadow:var(--shadow-card)}:root[data-theme=light] h1,:root[data-theme=light] h2,:root[data-theme=light] h3{color:#172136}:root[data-theme=light] header p,:root[data-theme=light] .panel-copy,:root[data-theme=light] .dashboard-summary>span,:root[data-theme=light] .dashboard-summary small,:root[data-theme=light] .dashboard-summary strong em{color:#68768c}:root[data-theme=light] .dashboard-hero{background:linear-gradient(135deg,#fff,#fff 58%,#faf7ff)}:root[data-theme=light] .health-score{border-color:#e6eaf2}:root[data-theme=light] .health-score-ring>div{background:#fff}:root[data-theme=light] .health-score-ring strong,:root[data-theme=light] .health-score>span,:root[data-theme=light] .health-insights b{color:#1a2437}:root[data-theme=light] .health-insights small{color:#6b7890}:root[data-theme=light] .health-score-track{stroke:#e5e9f1}:root[data-theme=light] .hero-glow:before{background:linear-gradient(145deg,transparent 20%,#dfd1ff 21%,#f2edff 64%);box-shadow:-72px 32px 0 -10px #f7f2ff,-155px 52px 0 -25px #fcfaff}:root[data-theme=light] .date-range{background:#fff;box-shadow:inset 0 0 0 1px #dfe5ef}:root[data-theme=light] .date-range button{color:#526177}:root[data-theme=light] .date-range button:hover{background:#f2f5fa;color:#233149}:root[data-theme=light] .dashboard-summary:hover{border-color:#cad4e3}:root[data-theme=light] .dashboard-summary:after{opacity:.045}:root[data-theme=light] .dashboard-trend-tabs,:root[data-theme=light] .trend-stat-row{background:#f7f9fc;border-color:#e0e6ef}:root[data-theme=light] .dashboard-trend-tabs button{color:#637188}:root[data-theme=light] .trend-stat-row>div{border-color:#e0e6ef}:root[data-theme=light] .trend-stat-row b,:root[data-theme=light] .nutrition-ring b,:root[data-theme=light] .nutrition-goal b,:root[data-theme=light] .rail-macros b{color:#1e2a40}:root[data-theme=light] .nutrition-ring:before{background:#fff}:root[data-theme=light] .nutrition-ring{background:conic-gradient(#48a8ff calc(var(--progress) * 1%),#e6ebf2 0)}:root[data-theme=light] .rail-macros i{background:linear-gradient(90deg,#53e692 calc(var(--progress) * 1%),#e8edf4 0)}:root[data-theme=light] .rail-macros>div:nth-child(2) i{background:linear-gradient(90deg,#48a8ff calc(var(--progress) * 1%),#e8edf4 0)}:root[data-theme=light] .rail-macros>div:nth-child(3) i{background:linear-gradient(90deg,#ff9a3d calc(var(--progress) * 1%),#e8edf4 0)}:root[data-theme=light] .medication-snapshot-list,:root[data-theme=light] .medication-snapshot-list>div,:root[data-theme=light] .rail-activity .dashboard-section-head,:root[data-theme=light] .rail-activity .dashboard-activity-row{border-color:#e5eaf2}:root[data-theme=light] .medication-snapshot-list>div:before{background:#dff8ea}:root[data-theme=light] .rail-activity{background:#fff}:root[data-theme=light] .dashboard-activity-row b,:root[data-theme=light] .medication-snapshot-list b{color:#202b40}:root[data-theme=light] .dashboard-log-popover{background:#fff;border-color:#dde5f0;box-shadow:0 20px 42px #27365324}:root[data-theme=light] .dashboard-quick-actions button{background:#f7f9fc;border-color:#e4e9f1;color:#28354b}:root[data-theme=light] .dashboard-quick-actions button:hover{background:#eef2f8}.dashboard-summary.nutrition .dashboard-summary-label svg{background:#4b233f;color:#f08aba}.dashboard-summary.nutrition strong{color:#f08aba}:root[data-theme=light] .dashboard-summary.nutrition .dashboard-summary-label svg{background:#fff0f7;color:#dd5d9a}:root[data-theme=light] .dashboard-summary.nutrition strong{color:#dd5d9a}.dashboard-summary.blood-pressure .dashboard-summary-label svg{background:#4b233f;color:#f08aba}.dashboard-summary.blood-pressure strong{color:#f08aba}.dashboard-summary.nutrition .dashboard-summary-label svg{background:#503018;color:var(--warning)}.dashboard-summary.nutrition strong{color:var(--warning)}:root[data-theme=light] .dashboard-summary.blood-pressure strong{color:#dd5d9a}:root[data-theme=light] .dashboard-summary.nutrition strong{color:#e98220}:root[data-theme=light] .insight-icon.positive{background:#e3faed;color:#1ca56a}:root[data-theme=light] .insight-icon.info{background:#e7f4ff;color:#2f95e7}:root[data-theme=light] .insight-icon.warning{background:#fff1df;color:#eb8a24}:root[data-theme=light] .activity-icon{background:#f0ecff;border-color:#d4c9ff;color:#7758ef}:root[data-theme=light] .activity-icon.anxiety{background:#f0ecff;border-color:#d4c9ff;color:#7758ef}:root[data-theme=light] .activity-icon.blood-pressure{background:#fff0f7;border-color:#f3bdd6;color:#dd5d9a}:root[data-theme=light] .activity-icon.blood-sugar{background:#e5faf1;border-color:#bdebd9;color:#229d79}:root[data-theme=light] .activity-icon.headache{background:#fff0ef;border-color:#ffc4c1;color:#e45f64}:root[data-theme=light] .activity-icon.meal,:root[data-theme=light] .activity-icon.snack{background:#fff5e8;border-color:#f7d6a9;color:#e98220}:root[data-theme=light] .activity-icon.medication{background:#e9f4ff;border-color:#bddcff;color:#318fe2}:root[data-theme=light] .dashboard-quick-actions button svg{color:#7252e5}:root[data-theme=light] .dashboard-log-fab{border-color:#8069ff;color:#fff}:root[data-theme=light] .health-score-progress{stroke:#8069ff}.health-score-progress{animation:none!important;transition:none!important}:root[data-theme=light] .dashboard-summary.headache .dashboard-summary-label svg{background:#fff0ef;color:#e45f64}:root[data-theme=light] .dashboard-summary.anxiety .dashboard-summary-label svg{background:#f1edff;color:#7859e7}:root[data-theme=light] .dashboard-summary.blood-sugar .dashboard-summary-label svg{background:#e5faf1;color:#229d79}:root[data-theme=light] .dashboard-summary.blood-pressure .dashboard-summary-label svg{background:#fff0f7;color:#dd5d9a}:root[data-theme=light] .dashboard-summary.nutrition .dashboard-summary-label svg{background:#fff5e8;color:#e98220}:root[data-theme=light] .dashboard-summary.medication .dashboard-summary-label svg{background:#e9f4ff;color:#318fe2}:root{--dashboard-rail-width: clamp(320px, 20vw, 380px)}main{width:calc(100% - 192px);max-width:2020px;margin-right:auto}.dashboard-page{width:100%;max-width:1880px}.dashboard-workspace{grid-template-columns:minmax(0,1fr) var(--dashboard-rail-width);gap:clamp(16px,1.25vw,24px)}.dashboard-workspace .dashboard-hero{grid-template-columns:200px minmax(360px,1fr) minmax(180px,300px);min-height:clamp(205px,15vw,240px)}.dashboard-workspace .dashboard-rail{gap:clamp(12px,.9vw,18px)}.dashboard-workspace .dashboard-trends{padding:clamp(22px,1.7vw,32px)}.dashboard-workspace .chart{min-height:300px}@media (min-width: 1600px){main{padding:38px clamp(38px,3vw,64px) 64px}.dashboard-summary-grid{gap:16px}.dashboard-summary-grid .dashboard-summary{flex-basis:clamp(190px,13vw,238px);min-height:150px}.dashboard-header h1{font-size:clamp(32px,2vw,40px)}.dashboard-workspace .chart{min-height:360px}}@media (min-width: 2100px){main{margin-left:max(192px,calc(192px + (100vw - 2192px)/2));width:min(calc(100% - 192px),2000px)}}@media (max-width: 1260px){:root{--dashboard-rail-width: 348px}}@media (min-width: 1081px){.dashboard-workspace{grid-template-columns:minmax(0,1fr) var(--dashboard-rail-width)!important}.dashboard-workspace .dashboard-rail{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:var(--dashboard-rail-width)}.dashboard-workspace .dashboard-rail>article{min-width:0}}@media (max-width: 1080px){.dashboard-workspace{grid-template-columns:1fr}.dashboard-workspace .dashboard-rail{grid-template-columns:repeat(3,minmax(0,1fr));width:auto}}@media (max-width: 820px){.dashboard-workspace .dashboard-rail{grid-template-columns:1fr}}@media (max-width: 1500px){.dashboard-workspace{grid-template-columns:1fr!important}.dashboard-workspace .dashboard-rail{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:auto}}@media (max-width: 980px){.dashboard-workspace .dashboard-rail{grid-template-columns:1fr!important}}main>section{margin-inline:auto}.meals-page,.medications-page{width:100%}main>section:not(.dashboard-page):not(.meals-page):not(.medications-page){width:100%;max-width:1480px}@media (max-width: 820px){main>section{max-width:100%}}@media (max-width: 820px){.dashboard-workspace .dashboard-hero{grid-template-columns:1fr!important;min-height:0}.dashboard-workspace .health-score{padding:0 0 18px;border-right:0;border-bottom:1px solid #2a3750}.dashboard-workspace .health-insights{padding:0}.dashboard-workspace .hero-glow{display:none}.dashboard-summary-grid{width:calc(100% + 2px);margin-right:-2px}.dashboard-workspace .dashboard-main-grid,.dashboard-workspace .dashboard-primary,.dashboard-workspace .dashboard-rail{min-width:0}.dashboard-trends{overflow:hidden}}@media (max-width: 820px){:root[data-theme=light] .dashboard-workspace .health-score{border-color:#e6eaf2}}@media (max-width: 820px){html,body,#root,.shell,main{width:100%!important;min-width:0!important;max-width:100%!important}.shell{display:block}main{margin:0!important;padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right))}main>section,main>section:not(.dashboard-page):not(.meals-page):not(.medications-page){width:100%;max-width:100%;margin-inline:auto}}.shell>aside .sidebar-signout{position:static;inset:auto;align-self:stretch;width:auto;max-width:100%;margin:auto 8px 0}.nutrition-rail-card .rail-footnote{margin-top:22px}.dashboard-quick-actions button{justify-content:flex-start;gap:10px}.dashboard-quick-actions button>span:first-child{flex:1}.quick-log-icon{display:grid;width:25px;height:25px;flex:0 0 auto;place-items:center;border-radius:7px}.quick-log-icon svg{width:14px!important;height:14px;color:currentColor!important}.quick-log-icon.blood-sugar{background:#173f39;color:var(--success)}.quick-log-icon.blood-pressure{background:#4b233f;color:#f08aba}.quick-log-icon.headache{background:#4b202d;color:var(--danger)}.quick-log-icon.anxiety{background:#332454;color:#b59bff}.quick-log-icon.peak-flow{background:#173b62;color:var(--info)}.quick-log-icon.meal{background:#503018;color:var(--warning)}.quick-log-icon.medication{background:#173b62;color:var(--info)}:root[data-theme=light] .quick-log-icon.blood-sugar{background:#e5faf1;color:#229d79}:root[data-theme=light] .quick-log-icon.blood-pressure{background:#fff0f7;color:#dd5d9a}:root[data-theme=light] .quick-log-icon.headache{background:#fff0ef;color:#e45f64}:root[data-theme=light] .quick-log-icon.anxiety{background:#f1edff;color:#7859e7}:root[data-theme=light] .quick-log-icon.peak-flow,:root[data-theme=light] .quick-log-icon.medication{background:#e9f4ff;color:#318fe2}:root[data-theme=light] .quick-log-icon.meal{background:#fff5e8;color:#e98220}.dashboard-quick-actions button{justify-content:flex-start;gap:9px;padding:9px 10px}.dashboard-quick-actions button>span:first-child{flex:0 0 auto}.dashboard-quick-actions button>span:not(.quick-log-icon){flex:1;color:inherit;font-weight:650}.quick-log-icon{width:24px;height:24px;border-radius:7px}:root[data-theme=light] .date-range button.selected,:root[data-theme=light] .dashboard-trend-tabs button.selected{color:#fff!important}.nav-toggle{display:none}@media (min-width: 821px) and (max-width: 1080px){.dashboard-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.dashboard-header-actions{margin-left:auto;flex-wrap:nowrap}.date-range{width:max-content;max-width:100%}.dashboard-workspace .dashboard-rail{grid-template-columns:repeat(3,minmax(0,1fr))}.nutrition-overview{gap:14px}.nutrition-ring{width:104px;height:104px}.nutrition-ring:before{width:86px;height:86px}.nutrition-ring b{font-size:16px}.nutrition-goal b{font-size:18px}}@media (max-width: 820px){.shell>aside{align-items:center}.nav-toggle{display:flex;align-items:center;justify-content:center;padding:0;line-height:0;width:40px;height:40px;flex:0 0 40px;margin-left:auto;border:1px solid #34425b;border-radius:10px;background:#18253c;color:#edf2ff}.shell>aside .theme-toggle{margin-left:8px}.shell>aside nav{display:none}.shell>aside nav.open{display:grid;position:absolute;top:calc(100% + 6px);right:12px;left:12px;z-index:30;padding:8px;overflow:visible;border:1px solid #34425b;border-radius:14px;background:#111c30;box-shadow:0 16px 36px #0008}.shell>aside nav.open a{width:100%}.dashboard-header{gap:14px}.dashboard-header-actions{width:100%;flex-wrap:wrap}.date-range{order:2;width:100%}.food-table-head{display:none}.meal-item .nutrition-input{position:relative;padding-top:18px}.meal-item>.nutrition-input:nth-child(2):before{content:"Calories"}.meal-item>.nutrition-input:nth-child(3):before{content:"Fat"}.meal-item>.nutrition-input:nth-child(4):before{content:"Carbs"}.meal-item>.nutrition-input:nth-child(5):before{content:"Protein"}.meal-item .nutrition-input:before{position:absolute;top:0;left:0;color:var(--text-muted);font-size:10px;font-weight:700;letter-spacing:.03em;text-transform:uppercase}}:root[data-theme=light] .nav-toggle{background:#f7f9fc;border-color:#e0e6f0;color:#526177}:root[data-theme=light] .shell>aside nav.open{background:#fff;border-color:#dde5f0;box-shadow:0 16px 36px #27365324}.custom-range-dialog{width:min(440px,calc(100% - 24px))}.custom-range-dialog>p{margin:6px 0 18px;color:var(--text-muted);font-size:14px}.custom-range-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.custom-range-dialog .actions{justify-content:flex-end;margin-top:22px}.custom-range-dialog button:disabled{cursor:not-allowed;opacity:.5}@media (max-width: 520px){.custom-range-fields{grid-template-columns:1fr}}.modal:focus-within{outline:none}.dialog:focus-visible{outline:3px solid #b9a9ff;outline-offset:2px}.ai-meal-capture,.ai-meal-review{--ai-meal-surface: #171b36;--ai-meal-border: #46416f;--ai-meal-muted: #bac2d5;--ai-meal-accent-surface: #2a2852;--ai-meal-accent-text: #c6bcff;margin:0 24px 18px;padding:16px;border:1px solid var(--ai-meal-border);border-radius:12px;background:var(--ai-meal-surface)}.ai-meal-capture-head,.ai-meal-capture-actions,.ai-meal-source-actions,.ai-meal-image-actions{display:flex;align-items:center;gap:8px}.ai-meal-capture-head{justify-content:space-between}.ai-meal-capture-head p,.ai-meal-privacy,.ai-meal-status,.ai-meal-review p{margin:6px 0 0;color:var(--ai-meal-muted);font-size:12px;line-height:1.45}.ai-meal-badge{display:inline-flex;border-radius:999px;padding:3px 8px;background:var(--ai-meal-accent-surface);color:var(--ai-meal-accent-text);font-size:11px;font-weight:800}.ai-meal-trigger,.ai-meal-source-actions button{display:inline-flex;align-items:center;gap:6px}.ai-meal-trigger svg,.ai-meal-source-actions svg,.ai-meal-image-actions svg{width:15px;height:15px}.ai-meal-capture-body{margin-top:14px}.ai-meal-source-actions button{background:var(--ai-meal-accent-surface);color:var(--ai-meal-accent-text)}.ai-meal-previews{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.ai-meal-previews figure{width:108px;margin:0}.ai-meal-previews img{display:block;width:108px;height:82px;border-radius:8px;object-fit:cover}.ai-meal-previews figcaption{margin-top:4px;color:var(--ai-meal-muted);font-size:11px}.ai-meal-image-actions button{width:25px;height:25px;padding:0;background:var(--ai-meal-accent-surface);color:var(--ai-meal-accent-text)}.ai-meal-guidance{display:grid;gap:6px;margin-top:14px;color:var(--text);font-size:13px;font-weight:700}.ai-meal-guidance small{color:var(--ai-meal-muted);font-weight:500}.ai-meal-guidance textarea{min-height:68px;padding:9px 10px;border:1px solid var(--ai-meal-border);border-radius:8px;resize:vertical;background:var(--surface-raised);color:var(--text);font:inherit}.ai-meal-status{min-height:18px}.ai-meal-capture-actions{justify-content:flex-end}:root[data-theme=light] .ai-meal-capture,:root[data-theme=light] .ai-meal-review{--ai-meal-surface: #faf8ff;--ai-meal-border: #ddd6fc;--ai-meal-muted: #657086;--ai-meal-accent-surface: #ede9fe;--ai-meal-accent-text: #5941c7}.ai-spin{width:15px;animation:ai-meal-spin 1s linear infinite}@keyframes ai-meal-spin{to{transform:rotate(360deg)}}@media (max-width: 720px){.ai-meal-capture,.ai-meal-review{margin-inline:18px}.ai-meal-capture-head{align-items:flex-start;flex-direction:column}}
