:root{--ink:#243d36;--muted:#75837d;--green:#176b56;--green-dark:#10513f;--soft:#edf4ec;--paper:#f8f9f5;--line:#e5e9e1;--white:#fff;--amber:#977443;--serif:Georgia,'Times New Roman',serif;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--paper);font-size:14px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #8bbdaf;outline-offset:4px}input:focus,textarea:focus,select:focus{outline:2px solid #6f9d8d;outline-offset:2px}button svg,span[data-icon] svg{display:block;width:20px;height:20px;flex-shrink:0}svg{vertical-align:middle}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-100px;left:20px;z-index:1000;padding:15px;background:white}.skip-link:focus{top:10px}.shell{display:flex;min-height:100vh}.sidebar{width:230px;flex-shrink:0;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:33px 22px 0;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:11px;margin:0 7px 64px}.brandmark{background:var(--green);width:42px;height:42px;border-radius:13px;color:white;font-family:var(--serif);font-size:36px;font-weight:bold;display:flex;align-items:center;justify-content:center;padding-bottom:5px;letter-spacing:-5px;line-height:1}.brandmark span{color:#c5df9c;letter-spacing:0}.brand strong{font-size:30px;letter-spacing:-1.4px;font-weight:650;line-height:1}.brand strong span{color:#b2c7bc;font-weight:300;margin-left:3px}.brand small{display:block;font-size:8px;letter-spacing:1.15px;margin-top:8px;color:#7b8b80}.nav-label{font-size:9px;letter-spacing:1.5px;color:#93a097;margin:0 15px 15px;font-weight:650}.nav-item{display:flex;align-items:center;gap:13px;height:48px;border:0;width:100%;padding:0 15px;border-radius:9px;background:transparent;text-align:left;color:#718078;margin-bottom:7px;font-size:13px}.nav-item:hover{background:#f5f7f2}.nav-item.active{color:var(--green);background:#edf4ec;font-weight:650}.nav-dot{height:5px;width:5px;background:var(--green);border-radius:50%;margin-left:auto}.nav-item:not(.active) .nav-dot{display:none}.sidebar-note{margin:auto 13px 38px;padding-top:60px}.sidebar-note>span svg{height:35px;width:35px;color:#77937a}.sidebar-note p{font-family:var(--serif);font-size:23px;line-height:1.45;margin:13px 0 8px;letter-spacing:-.5px}.sidebar-note small{color:#91a093;font-size:11px}.sidebar-bottom{display:flex;gap:10px;align-items:center;border-top:1px solid var(--line);padding:22px 0}.avatar{width:32px;height:32px;border-radius:50%;background:#ecefe5;color:#637c66;display:grid;place-items:center;font-size:10px;font-weight:650}.sidebar-bottom strong{font-size:10px}.sidebar-bottom small{display:block;font-size:9px;color:var(--muted);margin-top:4px}.sidebar-bottom .icon-button{margin-left:auto;width:24px}.workspace{margin-left:230px;width:calc(100% - 230px)}.topbar{height:77px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 44px;background:#fbfcf9}.breadcrumb{color:#8c9790;font-size:11px}.breadcrumb span{margin:0 11px;color:#c4cdc6}.breadcrumb strong{color:#5b6d62;font-weight:500}.privacy-label{display:flex;gap:7px;align-items:center;color:#78887d;font-size:10px}.privacy-label svg{width:13px!important;height:13px!important}main{max-width:1400px;margin:0 auto;padding:43px 44px 28px}.page-heading{display:flex;gap:24px;align-items:center;justify-content:space-between;margin-bottom:29px}.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:650;color:#6d8b76;margin:0 0 12px}.page-heading h1{font-family:var(--serif);font-size:38px;letter-spacing:-1.35px;font-weight:400;margin:0 0 12px}.page-heading h1 span{color:#68a06a}.page-heading p:not(.eyebrow){font-size:12px;color:var(--muted);margin:0;line-height:1.7}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 17px;min-height:43px;border:1px solid transparent;border-radius:8px;font-size:11px;font-weight:600;white-space:nowrap;transition:background .15s,transform .15s}.button:active{transform:translateY(1px)}.button svg{width:16px;height:16px}.button.primary{background:var(--green);color:white}.button.primary:hover{background:var(--green-dark)}.button.secondary{background:#fff;border-color:#dde4db;color:#54675a}.button.secondary:hover{background:#f2f5ef}.icon-button{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;width:36px;height:36px;border-radius:7px;font-size:24px;color:#748477}.icon-button:hover{background:#eaf0e7}.date-toolbar{display:flex;align-items:center;gap:14px;margin-bottom:22px}.date-picker{display:flex;gap:8px;align-items:center}.date-picker .icon-button{width:26px;height:30px;border:1px solid var(--line);background:#fff;font-size:21px}.date-control{position:relative;display:flex;gap:8px;align-items:center;cursor:pointer;font-size:12px;font-weight:600}.date-control svg{width:15px;height:15px;color:#769180}.date-control input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.date-control input::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;cursor:pointer}.timezone{font-size:9px;color:#96a094;margin-left:auto}.text-button{padding:5px;background:transparent;border:0;font-size:10px;color:var(--green);text-decoration:underline;text-underline-offset:3px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:26px}.stat{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--line);padding:18px 21px;border-radius:11px;min-height:103px}.stat-label{font-size:10px;color:#7b8980;display:block;margin-bottom:8px}.stat-value{font-size:29px;font-weight:500;letter-spacing:-1px;line-height:1}.stat-value small{font-size:11px;font-weight:400;letter-spacing:0;color:#96a195;margin-left:6px}.stat-icon{height:37px;width:37px;background:#f2f5ed;border-radius:11px;display:grid;place-items:center;color:#81a087}.stat:nth-child(2) .stat-icon{background:#f5f0e5;color:#a59a70}.stat:nth-child(3) .stat-icon{background:#eef2f5;color:#7e98aa}.journal-layout{display:grid;grid-template-columns:minmax(0,1fr) 278px;gap:23px;align-items:start}.panel{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.panel-heading{padding:23px 24px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #edf0e9}.panel h2{font-size:15px;font-weight:600;margin:0 0 7px;letter-spacing:-.2px}.panel-heading p{font-size:10px;color:#8c978f;margin:0;line-height:1.5}.pill{padding:5px 8px;border-radius:5px;font-size:8px;font-weight:550;white-space:nowrap;display:inline-block;line-height:1.2}.pill.neutral{color:#7f8a7f;background:#f2f4ed}.pill.complete{background:#edf5eb;color:#5e8660}.pill.pending{background:#fbf5e7;color:#9b7f43}.meal-card{padding:23px 23px 22px;position:relative;border-bottom:1px solid #edf0e9;display:flex;gap:16px}.meal-card:last-child{border-bottom:0}.meal-symbol{width:41px;height:41px;border-radius:12px;background:#f9f4e8;color:#b6a276;display:flex;align-items:center;justify-content:center;flex-shrink:0}.meal-symbol.lunch{color:#89a086;background:#f0f4e9}.meal-symbol.tea-time{color:#bc9780;background:#faf0e9}.meal-symbol.dinner{color:#8397af;background:#edf1f7}.meal-symbol.supper{color:#a293b5;background:#f3eff7}.meal-symbol.other{color:#849c93;background:#edf5f1}.meal-content{min-width:0;flex:1}.meal-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}.meal-title{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.meal-title h3{font-size:12px;font-weight:600;margin:0}.meal-title time{font-size:9px;color:#99a098}.meal-description{font-size:11px;color:#7a887f;line-height:1.65;margin:7px 0 0;overflow-wrap:anywhere}.meal-description.empty{color:#a0aaa0}.meal-action{background:transparent;border:1px solid #e0e7dc;color:#637960;border-radius:6px;padding:6px 10px;font-size:9px;white-space:nowrap}.meal-action:hover{background:var(--soft)}.reading-strip{display:flex;gap:21px;margin-top:13px;flex-wrap:wrap}.reading-strip .reading-label{display:block;font-size:8px;color:#98a195;margin-bottom:5px}.reading-strip strong{font-size:14px;font-weight:550;color:#50674f}.reading-strip strong small{font-size:8px;font-weight:400;color:#91a08e}.reading-strip .missing{font-size:10px;color:#a09c87;font-weight:400}.after-button{background:#f4f7ef;border:1px dashed #cbd8c2;padding:7px 9px;border-radius:5px;font-size:9px;color:#678156;align-self:flex-end}.mini-note{font-size:8px;color:#9ba499;margin-top:5px}.quick-panel{border-radius:12px;border:1px solid #dce7d7;padding:23px;background:#edf3e9;position:relative}.quick-symbol{width:31px;height:31px;background:#e1ebd8;border:1px solid #d7e2cf;border-radius:8px;display:grid;place-items:center;color:#6f906a;margin-bottom:20px}.quick-panel .eyebrow{font-size:7px;letter-spacing:1.3px;color:#84947c;margin-bottom:10px}.quick-panel h2{font-family:var(--serif);font-weight:400;font-size:27px;letter-spacing:-.8px;margin:0 0 10px}.quick-panel>p:not(.eyebrow):not(.tiny){font-size:10px;line-height:1.7;color:#83907a;margin:0 0 16px}.quick-panel textarea{width:100%;resize:vertical;border:1px solid #dce6d6;background:#fbfcf8;border-radius:8px;padding:13px;font-size:11px;line-height:1.7;color:var(--ink);min-height:127px}.quick-panel textarea::placeholder{color:#a2ac9b}.quick-actions{display:flex;align-items:center;gap:8px;margin:5px 0 10px;color:#8c9a83;font-size:8px}.quick-actions .icon-button{width:30px;height:30px;color:#7c9473}.quick-actions svg{height:15px;width:15px}.quick-panel .primary{width:100%;justify-content:space-between;min-height:41px}.tiny{font-size:8px;line-height:1.6;color:#8f9e85;text-align:center;margin:13px 0 0}.sample-button{display:flex;gap:11px;align-items:center;padding:20px 8px;border:0;background:transparent;text-align:left;width:100%;color:#829279}.sample-button strong{font-size:10px;font-weight:500;display:block}.sample-button small{display:block;font-size:8px;color:#a0a99a;margin-top:5px}.sample-button>span:last-child{margin-left:auto}.sample-banner{padding:13px 16px;background:#e7f0df;border:1px solid #d2e1c6;border-radius:8px;margin-bottom:24px;display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:11px}.sample-banner button{border:0;background:transparent;color:var(--green);font-size:10px;text-decoration:underline;white-space:nowrap}.page-footnote{display:flex;gap:6px;align-items:center;justify-content:center;margin-top:27px;font-size:8px;color:#9ba597}.page-footnote svg{height:12px!important;width:12px!important}.other-panel{margin-top:20px}.error-banner{padding:15px;border:1px solid #dfb5a9;background:#fff2ee;color:#924c38;margin-bottom:20px;border-radius:8px;font-size:12px}.boot{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:var(--muted)}
dialog{border:1px solid #e0e6db;border-radius:16px;padding:0;width:min(680px,calc(100% - 28px));max-height:92dvh;box-shadow:0 25px 100px #233b3430;color:var(--ink);background:#fff}dialog::backdrop{background:#15392b66;backdrop-filter:blur(4px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:25px 28px 20px;border-bottom:1px solid var(--line)}.dialog-header h2{font-family:var(--serif);font-weight:400;font-size:29px;margin:0;letter-spacing:-.7px}.dialog-header .eyebrow{font-size:8px;margin-bottom:8px}.dialog-body{padding:24px 28px 10px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{font-size:11px;color:#627564;display:block;font-weight:500}label small{display:block;font-size:9px;color:#99a392;margin-top:6px;font-weight:400}input,select,textarea{width:100%;border:1px solid #dfe5d9;border-radius:7px;padding:11px 12px;color:var(--ink);background:#fff;min-height:41px;margin-top:8px;font-size:12px}textarea{resize:vertical;line-height:1.6}input::placeholder,textarea::placeholder{color:#a5aea0}select{height:42px}input[type=datetime-local]{font-size:11px;min-width:0}.form-section{border-top:1px solid #e9ede4;margin-top:24px;padding-top:20px}.form-section h3{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:600;margin:0 0 16px}.step{display:inline-grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#eff4e8;color:#7b9471;font-size:9px}.unit-input{display:flex;align-items:center;border:1px solid #dfe5d9;border-radius:7px;margin-top:8px}.unit-input:focus-within{outline:2px solid #6f9d8d;outline-offset:2px}.unit-input input{margin:0;border:0;min-width:0;background:transparent;outline:none;padding-right:5px}.unit-input span{font-size:10px;white-space:nowrap;padding-right:12px;color:#9aa592;font-weight:400}.field-label{margin:20px 0 9px}.segmented{display:flex;padding:4px;background:#f3f5ef;border-radius:8px;gap:3px}.segmented label{flex:1;cursor:pointer;text-align:center;position:relative}.segmented input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0}.segmented span{display:block;padding:9px 5px;font-size:10px;border-radius:5px;color:#8b9984}.segmented input:checked+span{background:white;color:var(--green);box-shadow:0 1px 4px #25382a0d}.segmented input:focus-visible+span{outline:2px solid var(--green)}.insulin-grid{margin-top:16px}.full-width{grid-column:1/-1}.optional{font-size:7px;letter-spacing:1px;color:#93a08c;font-weight:500;margin-left:auto}.field-hint{font-size:10px;color:#8d9b84;margin:0 0 13px;line-height:1.6}.notes-label{margin:24px 0 8px}.notes-label>span{font-weight:400;color:#a0aa98;font-size:10px;margin-left:4px}.dialog-footer{display:flex;gap:9px;align-items:center;justify-content:flex-end;padding:17px 28px;border-top:1px solid var(--line);background:#fafbf7;position:sticky;bottom:0}.save-note{font-size:9px;color:#96a18d;margin-right:auto}.danger{color:#a2634f;margin-right:auto}.form-error{font-size:11px;color:#a74f37;line-height:1.6}.parse-notice{padding:14px 16px;border:1px solid #dbe7ce;background:#f1f6e9;border-radius:8px;margin-bottom:20px;font-size:11px;line-height:1.7;color:#6d825f}.parse-notice ul{padding-left:17px;margin:5px 0 0}.recent-meals{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.recent-meals button{border:1px solid #e2e8db;background:#f7f9f3;padding:5px 9px;border-radius:20px;color:#7a8c6c;font-size:8px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-meals:empty{display:none}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#244f3e;color:white;border-radius:9px;padding:14px 24px;font-size:12px;box-shadow:0 6px 22px #254a3220;z-index:100;max-width:90%;line-height:1.5}.login-page{min-height:100dvh;display:grid;place-items:center;background:#edf3e9;padding:25px}.login-card{width:100%;max-width:410px;background:#fff;padding:38px;border-radius:16px;box-shadow:0 10px 60px #34533208}.login-card .brandmark{margin-bottom:30px}.login-card h1{font-family:var(--serif);font-size:40px;font-weight:400;letter-spacing:-1px;margin:0}.login-card>p:not(.eyebrow){font-size:12px;line-height:1.8;color:var(--muted);margin-bottom:25px}.login-card label{margin-bottom:17px}.login-card .button{width:100%;justify-content:space-between}.permission-dialog{padding:30px;max-width:470px}.permission-dialog h2{font-family:var(--serif);font-size:27px;font-weight:400}.permission-dialog p{color:var(--muted);font-size:12px;line-height:1.8}.permission-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}
.history-day{width:100%;display:flex;align-items:center;text-align:left;justify-content:space-between;gap:20px;background:white;border:1px solid var(--line);border-radius:10px;padding:23px 25px;margin-bottom:12px}.history-day:hover{border-color:#b4c7aa}.history-day strong{font-size:14px;font-weight:500}.history-day small{display:block;color:var(--muted);font-size:10px;margin-top:7px}.history-day .day-index{color:#90a186;font-size:25px;font-family:var(--serif);margin-right:10px}.empty-state{padding:70px 25px;text-align:center;border:1px solid var(--line);border-radius:12px;background:white}.empty-state>span svg{width:35px;height:35px;margin:0 auto;color:#a2b49a}.empty-state h2{font-family:var(--serif);font-size:27px;font-weight:400;margin:20px 0 10px}.empty-state p{font-size:12px;color:var(--muted);line-height:1.8}.empty-state .button{margin-top:10px}.report-toolbar{display:flex;gap:15px;align-items:flex-end;margin-bottom:24px;flex-wrap:wrap}.report-toolbar label{flex:1;min-width:145px;max-width:220px}.report-toolbar .button{height:43px;margin-bottom:0}.report-table-wrap{overflow:auto}.report-table{border-collapse:collapse;font-size:10px;width:100%;text-align:left}.report-table th{font-size:8px;text-transform:uppercase;letter-spacing:.7px;color:#84937a;font-weight:600;background:#f8faf4;padding:14px 16px;border-bottom:1px solid var(--line);white-space:nowrap}.report-table td{padding:17px 16px;border-bottom:1px solid var(--line);line-height:1.7;vertical-align:top;min-width:75px;max-width:230px;overflow-wrap:anywhere}.report-table td small{display:block;font-size:8px;color:#91a087}.report-table td strong{font-size:11px;font-weight:550}.report-table tr:last-child td{border-bottom:0}.report-panel{margin-top:24px}.report-note{padding:16px 24px;font-size:9px;color:#8c9c82;line-height:1.7;border-top:1px solid var(--line);margin:0}.chart{width:100%;height:190px;display:block}.chart text{font-family:inherit;fill:#92a28a;font-size:10px}.chart-legend{font-size:9px;color:#839378;display:flex;gap:15px;padding:0 24px 20px}.legend-dot{display:inline-block;height:6px;width:6px;border-radius:50%;background:#4d8c6d;margin-right:5px}.legend-dot.after{background:#bba376}.print-title{display:none}.history-count{font-size:11px;color:#819277}.privacy-label{max-width:50%;text-align:right}
@media(min-width:1500px){main{padding-top:50px}.journal-layout{grid-template-columns:minmax(0,1fr) 310px}.meal-card{padding:27px}.quick-panel{padding:28px}.page-heading h1{font-size:44px}}
@media(max-width:1190px){.sidebar{width:200px;padding-left:16px;padding-right:16px}.workspace{margin-left:200px;width:calc(100% - 200px)}main{padding:32px 26px}.topbar{padding:0 26px}.journal-layout{grid-template-columns:minmax(0,1fr) 250px;gap:16px}.page-heading h1{font-size:32px}.page-heading .button{font-size:9px;padding:10px 12px}.meal-card{padding:20px 17px;gap:11px}.panel-heading{padding:20px 18px}.panel-heading p{font-size:9px}.reading-strip{gap:14px}.meal-symbol{width:35px;height:35px}.quick-panel{padding:20px}.stat{padding:17px}.stat-icon{width:32px;height:32px}}
@media(max-width:980px){.sidebar{width:175px;padding:25px 13px 0}.workspace{margin-left:175px;width:calc(100% - 175px)}.brand{margin-left:4px;gap:8px}.brand strong{font-size:26px}.brand small{font-size:6px}.brandmark{width:36px;height:36px;font-size:31px}.sidebar-note p{font-size:21px}.sidebar-bottom .avatar{display:none}.sidebar-bottom small{font-size:8px}.journal-layout{grid-template-columns:1fr}.companion{display:grid;grid-template-columns:1fr 1fr;gap:15px}.quick-panel{grid-row:span 2}.sample-button{padding:15px;border:1px solid var(--line);border-radius:10px;align-self:start}.stats{gap:10px}.stat{padding:15px}.stat-icon{display:none}.page-heading{align-items:flex-start}.page-heading .button{margin-top:23px}.quick-panel textarea{min-height:90px}.quick-symbol{display:none}.timezone{font-size:8px}}
@media(max-width:700px){.sidebar{position:fixed;inset:auto 0 0;width:100%;height:71px;padding:0 14px;background:#ffffffed;backdrop-filter:blur(12px);border-right:0;border-top:1px solid var(--line);z-index:20}.sidebar .brand,.nav-label,.sidebar-note,.sidebar-bottom{display:none}.sidebar nav{display:flex;justify-content:space-around;height:100%;align-items:center}.nav-item{height:52px;width:90px;display:flex;flex-direction:column;justify-content:center;gap:5px;font-size:9px;margin:0;padding:5px;border-radius:9px}.nav-item svg{height:19px;width:19px}.nav-dot{display:none!important}.workspace{margin:0;width:100%}.topbar{height:57px;padding:0 20px}.breadcrumb{font-size:10px}.privacy-label{font-size:8px}main{padding:28px 19px 90px}.page-heading{gap:12px;flex-direction:column;margin-bottom:22px}.page-heading h1{font-size:33px}.page-heading p:not(.eyebrow){font-size:11px}.page-heading .button{margin-top:3px;font-size:10px;padding:9px 12px;min-height:36px}.page-heading .eyebrow{font-size:8px}.date-toolbar{flex-wrap:wrap;margin-bottom:18px;gap:8px}.date-control{font-size:11px}.date-picker{gap:7px}.timezone{display:none}.text-button{font-size:9px;margin-left:auto}.stats{gap:8px;margin-bottom:19px}.stat{min-height:84px;padding:14px 11px}.stat-label{font-size:8px;margin-bottom:10px}.stat-value{font-size:24px}.stat-value small{font-size:8px;margin-left:4px}.journal-layout{gap:18px}.panel-heading{padding:20px 17px}.panel h2{font-size:14px}.panel-heading p{font-size:9px;max-width:180px}.pill{font-size:7px}.meal-card{padding:20px 16px;gap:12px;min-height:105px}.meal-symbol{width:35px;height:35px;border-radius:10px}.meal-symbol svg{width:18px;height:18px}.meal-title h3{font-size:12px}.meal-action{padding:7px 9px}.meal-title{gap:5px}.meal-title time{font-size:8px}.meal-description{font-size:10px}.reading-strip{gap:14px}.reading-strip strong{font-size:14px}.reading-strip .reading-label{font-size:8px}.after-button{font-size:8px}.companion{display:flex;flex-direction:column;gap:0}.quick-panel{width:100%;padding:23px}.quick-panel .eyebrow{font-size:8px}.quick-panel h2{font-size:29px}.quick-panel>p:not(.eyebrow):not(.tiny){font-size:11px}.quick-panel textarea{font-size:12px;min-height:100px}.quick-actions{font-size:9px}.tiny{font-size:9px}.sample-button{border:0;padding:20px 8px}.sample-button strong{font-size:11px}.sample-button small{font-size:10px}.page-footnote{font-size:8px;line-height:1.7;align-items:flex-start;margin-top:15px}.sample-banner{flex-direction:column;align-items:flex-start;font-size:10px}.sample-banner button{font-size:10px}.dialog-header{padding:20px}.dialog-body{padding:20px}.dialog-footer{padding:15px;gap:8px}.dialog-footer .button{font-size:10px;padding:10px 12px}.save-note{display:none}.form-grid{gap:12px}.form-grid label{font-size:10px}.form-grid input[type=datetime-local]{font-size:10px;padding:11px 7px}.optional{font-size:6px}.form-section h3{font-size:11px}.dialog-header h2{font-size:26px}.dialog-footer .danger{font-size:9px;padding:0;margin-left:0}.notes-label{font-size:11px}.report-toolbar{gap:10px}.report-toolbar label{max-width:none;min-width:130px}.report-toolbar .button{flex:1}.history-day{padding:20px 16px;gap:10px}.history-day strong{font-size:12px}.history-count{font-size:9px}.toast{bottom:85px;width:max-content;max-width:90%;font-size:11px}.chart{height:170px}.login-card{padding:30px}.permission-dialog{padding:25px}.quick-panel .primary{font-size:12px}}
.mobile-logout{display:none}.meal-title h3{font-size:14px}.meal-description{font-size:12px}.meal-title time{font-size:10px}.meal-action{font-size:11px;min-height:35px}.reading-strip .reading-label{font-size:9px}.reading-strip strong{font-size:16px}.reading-strip strong small{font-size:10px}.mini-note{font-size:9px}.after-button{font-size:10px;min-height:34px}.stat-label{font-size:11px}.panel-heading p{font-size:11px}.quick-panel>p:not(.eyebrow):not(.tiny){font-size:12px}.quick-panel textarea{font-size:13px}.button{font-size:12px}.tiny{font-size:10px}.page-footnote{font-size:10px}.sample-button strong{font-size:12px}.sample-button small{font-size:10px}.nav-item{font-size:14px}
@media(max-width:700px){.mobile-logout{display:inline-block;font-size:10px}.nav-item{font-size:10px}.stat-label{font-size:9px}.stat-value small{font-size:9px}.meal-title h3{font-size:13px}.meal-description{font-size:12px}.meal-action{min-height:40px;font-size:11px}.reading-strip strong{font-size:17px}.after-button{min-height:40px}.panel-heading p{font-size:10px}.quick-panel textarea{font-size:16px}.page-footnote{font-size:9px}.date-picker .icon-button{min-width:35px;min-height:38px}.date-control{font-size:12px}.form-grid label,label{font-size:12px}input,select,textarea,.form-grid input[type=datetime-local]{font-size:16px;min-height:46px}.form-section h3{font-size:13px}.unit-input span{font-size:12px}.segmented span{font-size:12px;padding:12px 6px}.field-hint{font-size:12px}.form-error{font-size:13px}.dialog-footer .button{font-size:12px;min-height:44px}.dialog-footer .danger{font-size:11px}.dialog-body{padding:20px}.save-note{font-size:10px}.quick-actions{font-size:10px}.reading-strip .missing{font-size:11px}.panel-heading .pill{font-size:8px}}
@media(max-width:500px){.form-grid{grid-template-columns:1fr}.form-grid label{font-size:12px}.optional{font-size:7px}.form-section h3{gap:7px}.report-toolbar label{min-width:120px}.report-toolbar input{font-size:14px}.date-control input{font-size:16px}.privacy-label{max-width:64%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{body{background:white;color:#18271f}.sidebar,.topbar,.page-heading,.report-toolbar,#today-view,#history-view,.sample-banner,.toast,dialog,.skip-link,.error-banner{display:none!important}.workspace{margin:0;width:100%}main{padding:0;max-width:none}#reports-view{display:block!important}.print-title{display:block;font-family:var(--serif);margin:0 0 20px}.print-title h1{font-size:25px;font-weight:400}.print-title p{font:11px sans-serif;color:#65715f}.stats{gap:10px;margin:15px 0}.stat{min-height:70px;padding:12px;border-color:#ccc}.stat-value{font-size:22px}.stat-icon{display:none}.panel{break-inside:avoid;border-color:#ccc}.report-panel:last-child{break-inside:auto}.report-table-wrap{overflow:visible}.report-table{font-size:8px;table-layout:fixed}.report-table td,.report-table th{padding:8px 6px;min-width:0;max-width:none;white-space:normal}.report-table td strong{font-size:9px}.report-table th{font-size:7px}.report-table td small{font-size:7px}.report-table tr{break-inside:avoid}.report-note{font-size:8px}.chart{height:140px}.panel-heading{padding:12px 15px}.chart-legend{padding-bottom:12px}@page{size:A4 landscape;margin:14mm}}

/* Food references and personal portions */
.food-tools{border:1px solid #dce7d7;background:#f6f8f1;border-radius:12px;padding:18px;margin:0 0 25px}
.food-tools-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;font-size:14px}
.food-help,.food-source,.library-source{font-size:12px;line-height:1.65;color:#647969;margin:8px 0 14px}
.food-source a,.library-source a{text-decoration:underline;text-underline-offset:3px}
.food-search-row{display:flex;gap:10px;align-items:flex-end;margin:14px 0 10px}.food-search-row label{flex:1;min-width:0}
.food-search-row .button{margin-bottom:0;white-space:normal}
.food-tools summary{cursor:pointer;color:var(--green);font-weight:600;padding:10px 0;font-size:13px}
.food-match{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;width:100%;background:white;border:1px solid var(--line);border-radius:8px;padding:12px;margin:7px 0;line-height:1.5}
.food-match:hover{border-color:#85a28b}.food-match strong{font-size:13px;font-weight:600}.food-match small{display:block;font-size:11px;color:#6c7c70;margin-top:3px}.food-match>span:last-child{font-size:11px;color:var(--green);flex-shrink:0}
.nutrition-editor{margin-top:16px}.nutrition-editor>label{margin:15px 0}.food-items{display:grid;gap:13px;margin:16px 0}.food-item{min-width:0;padding:15px;border:1px solid #dce4d6;background:white;border-radius:9px}
.food-item-top{display:flex;align-items:flex-start;gap:10px;justify-content:space-between;margin-bottom:12px;font-size:13px}.food-item-top strong{overflow-wrap:anywhere}.food-item-top button{flex-shrink:0}
.food-item .form-grid{margin:10px 0}.food-item label{font-size:12px}.food-item label small{font-size:11px;line-height:1.5}.food-item input,.food-item select{min-width:0;width:100%}
.food-item .reference-choice{margin:12px 0}.food-calculated{align-self:center;color:var(--green);font-size:14px;font-weight:600}
.food-source{margin-bottom:0;font-size:11px}
.nutrition-summary{margin:17px 0;padding:14px;background:#e9f1e3;border-radius:8px;line-height:1.6}.nutrition-summary strong{font-size:14px}.nutrition-summary p{font-size:12px;margin:6px 0 0}
.review-check{display:flex;align-items:flex-start;gap:10px;line-height:1.6!important;font-size:12px!important}.review-check input{width:20px!important;height:20px;min-height:20px!important;flex-shrink:0;margin:0;accent-color:var(--green)}
.usual-save{border-top:1px solid #d9e4d2;padding-top:16px;display:grid;gap:10px}.usual-save .button{justify-self:start}.usual-save>small{font-size:11px;color:#6c7c70;line-height:1.5}
.food-adjust{background:#fff6e5;padding:14px;border-radius:8px;margin:14px 0;font-size:12px;line-height:1.6}.food-adjust p{margin:0 0 10px}.food-adjust small{display:block;margin-top:8px}
.meal-nutrition{margin:8px 0 0;font-size:11px;line-height:1.6;color:#547456}.report-nutrition{color:#3f624a!important}.report-table details{font-size:10px}.report-table details summary{cursor:pointer;color:var(--green)}
.library-intro{max-width:680px;line-height:1.7;color:#677a6c;font-size:14px;margin:0 0 25px}.library-intro label{display:block;margin-top:20px;max-width:500px}.library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.library-card{background:white;border:1px solid var(--line);padding:24px;border-radius:12px}.library-card h2{font-family:var(--serif);font-weight:400;font-size:24px;line-height:1.3;margin:12px 0}.library-card p{font-size:13px;color:#6d7d70;line-height:1.7;min-height:44px}.library-card>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.library-source{margin-top:24px}
@media(max-width:700px){.food-tools{padding:14px}.food-search-row{flex-direction:column;align-items:stretch}.food-item{padding:12px}.food-item input,.food-item select{font-size:16px}.food-item .form-grid{grid-template-columns:1fr}.food-tools .text-button{font-size:12px}.food-tools .button{min-height:44px}.food-tools .optional{font-size:9px}.library-grid{grid-template-columns:1fr}.library-card{padding:20px}.library-card p{min-height:0}.nutrition-summary strong{font-size:13px}.food-tools-heading{align-items:flex-start}}
@media print{#library-view{display:none!important}.report-table details>small{display:block!important}.report-table details::details-content{display:block}.report-table summary{display:none}}

/* Two-step meal entry and tap-to-count food portions. */
.intake-fields{border:0;padding:0;margin:0;min-width:0;width:100%}
.entry-date-context{font-size:12px;color:#6c7d70;margin:0 0 18px;line-height:1.6}
.form-grid input[type=time]{min-height:46px;width:100%;font-size:16px;color:var(--ink);background:white}
.followup-day{max-width:320px;display:block;margin-top:16px}.followup-day small{display:block;line-height:1.6;font-size:11px;color:var(--muted);margin-top:6px}
.meal-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.meal-card-actions .after-button{align-self:center;border-style:solid;font-size:11px}.meal-start{font-size:12px;min-width:80px}
.food-categories{display:flex;gap:7px;overflow-x:auto;padding:3px 2px 12px;scrollbar-width:thin;scrollbar-color:#c7d7c5 transparent}
.food-categories button{flex-shrink:0;border:1px solid #d4dfcf;background:white;border-radius:20px;padding:9px 13px;font-size:12px;min-height:40px}
.food-categories button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:white}
.exchange-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:16px}
.exchange-card{border:1px solid #dce4d6;background:white;border-radius:10px;overflow:hidden;min-width:0}.exchange-card.selected{border-color:#75a386;box-shadow:inset 0 0 0 1px #75a386}
.exchange-pick{width:100%;border:0;text-align:left;background:transparent;padding:12px 11px;display:flex;flex-direction:column;gap:6px;min-height:115px}
.exchange-pick strong{font-size:13px;line-height:1.4}.exchange-pick small{font-size:11px;line-height:1.5;color:#6b7e70}.exchange-pick span{font-size:10px;color:#376b4d;margin-top:auto;line-height:1.4}
.exchange-counter{display:flex;align-items:center;justify-content:space-between;background:#f3f6ef;border-top:1px solid #e3eadf}
.exchange-counter button{border:0;background:transparent;min-width:42px;min-height:42px;font-size:21px;color:var(--green)}.exchange-counter output{font-size:14px;font-weight:650}
.exchange-pick:hover,.exchange-counter button:hover{background:#edf4e8}
.selected-foods{margin:20px 0 0}.selected-food{border-bottom:1px solid #dde5d6;padding:14px 0}.selected-food-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px}.selected-portion{display:block;color:#65796a;font-size:12px;margin:7px 0;line-height:1.6}.selected-food .form-grid{margin:12px 0}.selected-food .form-grid label{font-size:12px}.selected-food .form-grid small{font-size:11px}.selected-food details summary{font-size:11px;font-weight:400;padding:3px 0}
.usual-save>label{margin-top:12px}.usual-save>button{margin-top:10px}.usual-save>small{display:block;margin-top:8px}
@media(max-width:700px){.meal-top{flex-wrap:wrap}.meal-card-actions{margin-left:auto}.meal-card-actions .after-button{font-size:11px;padding:7px 9px}.exchange-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.exchange-pick{min-height:112px}.exchange-counter button{min-height:44px;min-width:44px}.food-categories button{min-height:44px}.selected-food .form-grid{grid-template-columns:1fr}.food-tools{padding:12px}.selected-food input{font-size:16px}.form-grid input[type=time]{font-size:16px;min-height:48px}.entry-date-context{font-size:12px}}

/* Reusable meals, optional meal photos and the bedtime insulin check-in. */
#usual-picker{margin-bottom:20px}#usual-picker small{font-size:11px;line-height:1.6}#usual-select{height:auto;min-height:46px}
.library-heading-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.library-card>div{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
#entry-dialog[data-mode=usual] #usual-picker,#entry-dialog[data-mode=usual] .usual-save,#entry-dialog[data-mode=usual] .step{display:none}
#usual-editor-name input{font-size:16px}.meal-details-label{margin-top:14px}.meal-details-label .optional{margin-left:8px}
.meal-photo-fields{margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}.photo-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.photo-pick{position:relative;overflow:hidden;cursor:pointer;min-height:44px}.photo-pick input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.photo-pick:focus-within{outline:2px solid var(--green);outline-offset:3px}.photo-preview{display:block;width:100%;max-height:300px;object-fit:contain;background:#f2f4ee;border-radius:10px;margin:16px 0}.meal-card-photo{display:block;width:100%;max-height:280px;object-fit:cover;object-position:center;border-radius:10px;margin:15px 0 12px}.bedtime-card{background:#f5f6f2}.bedtime-units{display:block;font-size:23px;font-weight:500;margin-top:10px}.bedtime-units small{font-size:12px;color:var(--muted);font-weight:400}#bedtime-dialog{max-width:460px}#bedtime-form .dialog-body{padding-bottom:24px}
@media(max-width:700px){.photo-actions .button{font-size:12px}.photo-actions .text-button{font-size:12px}.meal-card-photo{max-height:210px}.library-heading-actions{width:100%;justify-content:space-between}.bedtime-card .meal-top{gap:10px}.bedtime-card .meal-title h3{font-size:13px}}
#entry-dialog[data-mode=usual] .food-tools-heading>.optional{display:none}

/* Compact diary: clinical values stay visible; context expands on demand. */
.heading-mobile,.other-label-short,.edit-glyph{display:none}.page-heading h1 .heading-desktop,.page-heading h1 .heading-mobile{color:var(--ink)}
.empty-card{padding:0;min-height:0}.empty-meal{display:flex;align-items:center;gap:14px;width:100%;padding:16px 23px;border:0;background:white;text-align:left;min-height:68px}.empty-meal:hover{background:#f5f8f1}.empty-meal strong{font-size:14px;font-weight:550}.empty-add{margin-left:auto;color:var(--green);font-size:24px;font-weight:400;padding:0 8px}
.meal-summary{display:flex;align-items:center;gap:12px;margin-top:9px;min-width:0}.meal-summary>div{min-width:0;flex:1}.meal-summary .meal-description{margin:0}.meal-summary .meal-nutrition{margin:4px 0 0;font-size:11px}
.meal-photo-thumb{display:block;width:72px;height:72px;flex-shrink:0;border:1px solid var(--line);padding:0;border-radius:10px;overflow:hidden;background:#edf2e9}.meal-photo-thumb .meal-card-photo{width:100%;height:100%;max-height:none;object-fit:cover;margin:0;border-radius:0}
.reading-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.reading-strip.standalone-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.reading-strip>div{min-width:0}.reading-strip .reading-label{font-size:10px;color:#617469}.reading-label small{font-size:9px;color:#798b7f;font-weight:400}.reading-strip .mini-note{font-size:10px;line-height:1.4;overflow-wrap:anywhere;color:#778779}
.meal-card-details{margin-top:8px;font-size:12px}.meal-card-details>summary{display:flex;align-items:center;min-height:34px;width:max-content;cursor:pointer;color:#587562;list-style:none;gap:4px}.meal-card-details>summary::after{content:'⌄';margin-left:4px;font-size:15px}.meal-card-details[open]>summary::after{transform:rotate(180deg)}.detail-hint{font-size:10px;color:#7e8e81}.meal-detail-body{padding:12px;border:1px solid var(--line);background:#f8faf5;border-radius:9px;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.meal-detail-body p{margin:0 0 10px}.meal-detail-body p:last-child{margin-bottom:0}.meal-detail-body dl{margin:0 0 12px}.meal-detail-body dl>div{display:grid;grid-template-columns:110px 1fr;gap:8px;margin:7px 0}.meal-detail-body dt{color:#738276}.meal-detail-body dd{margin:0}.detail-notes{white-space:pre-wrap}.detail-foods{font-size:11px;color:#6b7c6b}
.quick-summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;min-height:44px}.quick-summary::-webkit-details-marker,.meal-card-details>summary::-webkit-details-marker{display:none}.quick-summary>span[data-icon]{color:var(--green)}.quick-summary strong{font-size:20px;display:block;font-family:var(--serif);font-weight:400}.quick-summary small{font-size:10px;color:#748773;display:block;margin-top:4px}.disclosure-arrow{margin-left:auto;font-size:20px}.quick-panel[open] .disclosure-arrow{transform:rotate(180deg)}.quick-body{padding-top:14px}.quick-body>p:not(.tiny){font-size:12px;line-height:1.6;color:#70816f;margin:0 0 12px}.quick-body textarea{min-height:88px}.quick-panel .tiny{font-size:10px}
.bedtime-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}.bedtime-card .meal-title{display:block}.bedtime-name{font-size:11px;color:#6f7f75;display:block;margin-top:5px}.bedtime-actions .bedtime-units{font-size:22px;margin:0;white-space:nowrap}.bedtime-card{align-items:center;padding-top:16px;padding-bottom:16px;min-height:0}
#meal-photo-dialog{width:min(800px,calc(100% - 24px));background:#f8faf6}#meal-photo-dialog .dialog-header{padding:15px 20px}#meal-photo-full{display:block;max-width:100%;width:100%;max-height:75dvh;object-fit:contain}#meal-photo-dialog h2{font-size:23px}
@media screen and (max-width:700px){
  .topbar{height:42px;padding:0 14px}.breadcrumb{font-size:11px}.privacy-label{font-size:9px;gap:4px}.privacy-label svg{display:none!important}
  main{padding:16px 12px 88px}.heading-desktop,.other-label-full{display:none}.heading-mobile,.other-label-short{display:inline}.page-heading{flex-direction:row;align-items:center;gap:8px;margin-bottom:12px}.page-heading .eyebrow,#today-view>.page-heading p:not(.eyebrow){display:none}.page-heading h1{font-size:28px;line-height:1.15;letter-spacing:-.8px;margin:0}.page-heading .button{margin:0;min-height:44px;padding:9px 12px;font-size:12px}.page-heading .button svg{width:15px;height:15px}
  .date-toolbar{margin-bottom:12px;gap:6px}.date-picker{gap:5px}.date-picker .icon-button{height:40px;min-height:40px;width:36px}.date-control{font-size:12px}.date-control svg{width:13px;height:13px}#go-today{font-size:11px;min-height:40px}
  .stats{gap:7px;margin-bottom:12px}.stat{padding:10px 11px;min-height:67px;border-radius:10px}.stat-label{font-size:10px;margin-bottom:7px}.stat-value{font-size:23px;letter-spacing:-.6px}.stat-value small{font-size:9px;margin-left:4px}.stat-icon{display:none}
  .journal-layout{display:flex;flex-direction:column;gap:12px}.journal-layout>div{width:100%;order:2}.companion{display:contents}.quick-panel{order:1;width:100%;padding:7px 12px;border-radius:10px}.quick-summary{min-height:44px}.quick-summary strong{font-family:inherit;font-size:13px;font-weight:600}.quick-summary small{font-size:10px;margin-top:2px}.quick-summary>span[data-icon] svg{width:19px;height:19px}.quick-body{padding:8px 0 5px}.quick-body textarea{min-height:84px;font-size:16px}.quick-actions .icon-button{min-width:44px;min-height:44px}.quick-actions{margin:2px 0 5px}.quick-body .primary{min-height:44px}.quick-panel .tiny{margin-top:9px}
  .sample-button{order:3;padding:9px 4px;min-height:44px}.sample-button strong{font-size:11px}.sample-button small{font-size:10px}.sample-banner{padding:10px 12px;margin-bottom:12px;font-size:10px;gap:3px}.sample-banner button{min-height:30px}
  .panel-heading{padding:12px 14px}.panel h2{font-size:14px;margin:0}.meals-panel>.panel-heading p{display:none}.panel-heading .pill{font-size:9px}.panel{border-radius:12px}
  .logged-card{padding:12px 14px 5px;gap:0;min-height:0}.logged-card>.meal-symbol{display:none}.meal-top{flex-wrap:nowrap;align-items:center;gap:8px}.meal-title{display:block;min-width:0}.meal-title h3{font-size:14px}.meal-title time{display:block;font-size:11px;margin-top:3px;color:#7a8b7f}.meal-card-actions{flex-wrap:nowrap;gap:5px;margin-left:auto;flex-shrink:0}.meal-card-actions .after-button{padding:8px 10px;font-size:11px;min-height:44px;border-radius:8px}.edit-word{display:none}.edit-glyph{display:inline;font-size:21px}.edit-meal{min-width:44px;min-height:44px;padding:5px;border-color:transparent}
  .meal-summary{gap:10px;margin-top:7px}.meal-description{font-size:12px;line-height:1.45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.meal-photo-thumb{width:52px;height:52px;border-radius:8px}.meal-summary .meal-nutrition{font-size:11px;line-height:1.4;margin-top:5px;color:#3d6c51}
  .reading-strip{gap:8px;margin-top:11px;padding-top:10px;border-top:1px solid #edf1e9}.reading-strip .reading-label{font-size:10px;margin-bottom:4px;white-space:nowrap}.reading-label small{font-size:9px}.reading-strip strong{font-size:21px;line-height:1.2;color:#2f5746}.reading-strip .missing{font-size:12px;line-height:1.4}.reading-strip .mini-note{font-size:10px;margin-top:4px}.meal-card-details{margin-top:2px}.meal-card-details>summary{min-height:40px;font-size:11px}.meal-detail-body{margin-bottom:8px}.meal-detail-body dl>div{grid-template-columns:100px 1fr}
  .empty-card{padding:0;min-height:0}.empty-meal{min-height:60px;padding:10px 14px;gap:10px}.empty-meal .meal-symbol{width:32px;height:32px;border-radius:9px}.empty-meal .meal-symbol svg{width:17px;height:17px}.empty-meal strong{font-size:13px}.empty-add{font-size:22px}
  .bedtime-card{padding:13px 14px;gap:10px;min-height:0}.bedtime-card>.meal-symbol{width:32px;height:32px;border-radius:9px}.bedtime-card>.meal-symbol svg{width:17px;height:17px}.bedtime-card .meal-title h3{font-size:13px}.bedtime-name{font-size:10px;line-height:1.5;margin-top:3px}.bedtime-actions{gap:8px}.bedtime-actions .bedtime-units{font-size:20px}.bedtime-units small{font-size:10px}.bedtime-actions .meal-action{min-height:44px;font-size:11px;padding:7px 9px}
  .page-footnote{margin-top:12px;font-size:9px;line-height:1.5}.sidebar{height:65px;padding-bottom:env(safe-area-inset-bottom,0px)}.nav-item{min-height:48px;gap:4px;font-size:10px}
  #entry-dialog{width:100%;max-width:none;max-height:96dvh;margin:auto 0 0;border-radius:17px 17px 0 0;border-bottom:0}#entry-dialog .dialog-header{position:sticky;top:0;z-index:2;background:#fff;padding:14px 16px}#entry-dialog .dialog-header .eyebrow{display:none}#entry-dialog .dialog-header h2{font-size:24px}#entry-dialog .dialog-body{padding:15px 16px 8px}#entry-dialog .dialog-footer{padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px));z-index:2}#entry-dialog .icon-button{width:44px;height:44px}.entry-date-context{font-size:11px;margin-bottom:12px}
  #meal-basics,#before-section>.form-grid,#after-section>.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#entry-dialog input,#entry-dialog select{min-width:0}#entry-dialog .form-section{margin-top:17px;padding-top:16px}#entry-dialog .form-section h3{margin-bottom:12px}.field-label{margin-top:15px}.form-grid input[type=time]{padding:10px 6px}.food-tools{padding:10px;margin-bottom:16px}.food-tools-heading{font-size:13px}.food-help{font-size:11px;line-height:1.5}#usual-picker{margin-bottom:14px}#usual-picker small{font-size:10px}.food-categories{gap:6px;padding-bottom:10px}.food-categories button{font-size:11px;padding:8px 11px;min-height:44px}.exchange-grid{gap:7px}.exchange-pick{padding:9px;min-height:88px;gap:4px}.exchange-pick strong{font-size:12px}.exchange-pick small{font-size:10px;line-height:1.35}.exchange-pick span{font-size:9px}.exchange-counter button{min-height:44px;min-width:44px}.photo-preview{max-height:210px}.meal-photo-fields{margin-top:17px;padding-top:15px}.notes-label{margin-top:16px}
  .library-intro{font-size:12px;margin-bottom:16px}.library-intro label{margin-top:12px}.library-grid{gap:10px}.library-card{padding:16px}.library-card .eyebrow{font-size:8px;margin:0}.library-card h2{font-size:22px;margin:7px 0}.library-card p{font-size:12px;margin:8px 0;min-height:0}.library-card .button,.library-card .text-button{min-height:44px}.history-day{padding:15px 14px}.other-panel{margin-top:12px}
}
@media screen and (max-width:359px){.stat{padding:9px 7px}.stat-label{font-size:9px}.stat-value{font-size:21px}.stat-value small{font-size:8px}.logged-card{padding-left:11px;padding-right:11px}.meal-card-actions .after-button{padding-left:8px;padding-right:8px}.bedtime-card>.meal-symbol{display:none}.page-heading h1{font-size:26px}.reading-label small{font-size:8px}.reading-strip .reading-label{font-size:9px}}
.details-more{display:none}.detail-edit{margin-bottom:12px;min-height:44px;font-size:12px}
@media screen and (max-width:700px){
  .meal-card-actions .edit-meal{display:none}.logged-card .meal-title{padding-right:46px}.meal-card-details{margin-top:0}.meal-card-details>summary{position:absolute;top:12px;right:124px;justify-content:center;width:44px;height:44px;padding:0;border-radius:8px}.meal-card-details>summary:hover,.meal-card-details[open]>summary{background:#edf4e8}.meal-card-details>summary::after,.details-word,.meal-card-details>summary .detail-hint{display:none}.details-more{display:block;font-size:23px;font-weight:600;line-height:1}.meal-card-details[open]{padding-top:10px}.other-panel .meal-card-details>summary{right:14px}.logged-card{padding-bottom:14px}
}

/* Photo review and app setup retain touch-sized controls on narrow screens. */
.app-tools{display:flex;gap:20px;justify-content:center;padding:20px 0;color:var(--muted)}
.ai-scan{border-top:1px solid var(--line,#e3e8e2);margin-top:16px;padding-top:16px}
.ai-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.check-label{display:flex;gap:10px;align-items:center;min-height:44px;font-weight:400;line-height:1.5;margin:14px 0}
.check-label input[type=checkbox]{width:20px;height:20px;min-height:20px;min-width:20px;flex-shrink:0;padding:0;margin:2px 0 0;accent-color:#176b56}
.ai-review{border:1px solid #c8dbd0;background:#f5f8f2;border-radius:14px;padding:16px;margin-top:14px}
.ai-review h4{font-size:17px;margin:0 0 8px}
.ai-food-row{padding:12px 0;border-bottom:1px solid #dbe3d8;margin-bottom:12px}
.ai-food-row p{font-size:13px;margin:5px 0;line-height:1.5}
.ai-food-row small{font-size:12px;color:#5c695f}
.ai-food-row label:not(.check-label){margin-top:8px}
.ai-food-row input[type=number]{max-width:150px}
.ai-portion{font-weight:600}
#ai-settings-dialog{max-width:540px}
#ai-settings-dialog .dialog-body>p{line-height:1.6}
#ai-settings-dialog small{display:block;line-height:1.5;color:#647167;margin-top:6px;font-weight:400}
#ai-settings-status{padding:12px;border-radius:10px;background:#f0f4ec;font-size:13px}
#ai-api-key{font-family:monospace}
@media(max-width:600px){.ai-review{padding:12px}.ai-actions .button{flex:1}.app-tools{padding-bottom:18px}.shell .sidebar nav{padding-bottom:env(safe-area-inset-bottom,0px)}}

.app-tools .text-button,.ai-actions .text-button{min-height:44px;font-size:12px}
#meal-photo-fields{margin-bottom:18px}

/* Saved meals stay highlighted until their after-meal reading is recorded. */
.logged-card.awaiting-followup{background:#fff9e6}
.awaiting-followup .meal-detail-body{background:#fffdf5;border-color:#eee4bb}
.awaiting-followup .reading-strip{border-top-color:#ede4c6}

/* Personal mmol/L colour bands; numeric values and range labels remain visible. */
[data-glucose-band=purple]{--glucose-ink:#7e22ce;--glucose-bg:#f3e8ff;--glucose-dot:#9333ea}
[data-glucose-band=green]{--glucose-ink:#166534;--glucose-bg:#dcfce7;--glucose-dot:#16a34a}
[data-glucose-band=yellow]{--glucose-ink:#715500;--glucose-bg:#fef3b0;--glucose-dot:#eab308}
[data-glucose-band=red]{--glucose-ink:#b91c1c;--glucose-bg:#fee2e2;--glucose-dot:#dc2626}
.glucose-value[data-glucose-band]:not([data-glucose-band=""]){display:inline-block;color:var(--glucose-ink);background:var(--glucose-bg);border-radius:5px;padding:1px 6px;font-variant-numeric:tabular-nums}
input[data-glucose-band]:not([data-glucose-band=""]){color:var(--glucose-ink);background:var(--glucose-bg);border-color:var(--glucose-ink);font-weight:600}
.glucose-point{fill:var(--glucose-dot,#647167);stroke:var(--glucose-ink,#647167);stroke-width:1}
.glucose-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;font-size:11px;line-height:1.5;color:#617469;padding:0 24px 16px}
.glucose-legend>span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.glucose-legend i{width:8px;height:8px;display:inline-block;border-radius:50%;background:var(--glucose-dot);border:1px solid var(--glucose-ink)}
#reading-colour-key .glucose-legend{padding:0 2px 14px}#reading-colour-key{margin-top:-12px}
@media screen and (max-width:700px){#reading-colour-key{margin-top:0}.glucose-legend{gap:6px 11px;font-size:10px;padding:0 14px 12px}#reading-colour-key .glucose-legend{padding-bottom:12px}}
@media print{[data-glucose-band]{print-color-adjust:exact;-webkit-print-color-adjust:exact}#reading-colour-key{display:none!important}}

/* NRIC identifies an account; only a masked identifier appears inside the diary. */
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:#f1f5ed;border-radius:10px;margin-bottom:24px}
.auth-tabs button{min-height:44px;border:0;background:transparent;border-radius:7px;font-size:13px;color:#667b6b}
.auth-tabs button[aria-pressed=true]{background:#fff;color:#176b56;font-weight:600;box-shadow:0 1px 4px #20382b12}
.login-card{max-width:440px}.login-card h1{font-size:36px}.login-card .auth-hint{font-size:12px;line-height:1.6;color:#718174;margin:0 0 18px}
.login-card .check-label{font-size:13px;line-height:1.5;margin:12px 0}.login-card .auth-privacy{font-size:11px;line-height:1.6;margin:18px 0 0}
#legacy-option{padding:12px 14px;border:1px solid #dce5d5;border-radius:10px;background:#f8faf5;margin-bottom:16px}
#login-error{color:#a74f37;margin:8px 0 14px}.login-card .brandmark{margin-bottom:22px}
@media(max-width:700px){.login-page{padding:16px}.login-card{padding:26px 22px}.login-card h1{font-size:34px}.remember-option input[type=checkbox]{min-height:20px}.privacy-label{gap:5px}.mobile-logout{min-height:44px}}

/* Keep food browsing inside a compact panel on phones and desktops. */
#food-tools .food-categories{overscroll-behavior-x:contain}
#food-tools #food-group-note{margin:0 0 8px;font-size:11px}
#food-tools .exchange-grid{height:clamp(230px,42vh,350px);height:clamp(230px,42dvh,350px);overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#8ca488 #edf2e9;scrollbar-gutter:stable;align-content:start;grid-auto-rows:max-content;gap:6px;padding:3px 4px 3px 2px;margin-bottom:10px;border-block:1px solid #dce4d6;overflow-anchor:none}
#food-tools .exchange-card{border-radius:8px;display:flex;flex-direction:column}
#food-tools .exchange-pick{padding:8px;min-height:78px;gap:3px;flex:1}
#food-tools .exchange-pick strong{font-size:12px;line-height:1.3}
#food-tools .exchange-pick small{font-size:10px;line-height:1.35}
#food-tools .exchange-pick span{font-size:10px;line-height:1.3}
#food-tools .exchange-counter button{min-width:44px;min-height:44px;font-size:19px;padding:0}
#food-tools .exchange-counter output{font-size:12px}
#food-tools .selected-foods{margin-top:12px}
#food-tools .nutrition-summary{margin:8px 0;padding:10px}
#food-tools .plate-details>summary{min-height:44px;display:flex;align-items:center;gap:8px;font-size:12px;padding:8px 0}
#food-tools .plate-details>summary::before{content:'▸'}
#food-tools .plate-details[open]>summary::before{content:'▾'}
#food-tools .selected-food{padding:9px 0}
#food-tools .selected-food-heading{font-size:12px}
#food-tools .selected-portion{font-size:11px;margin:3px 0}
#food-tools .selected-food .form-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin:6px 0}
#food-tools .selected-food .form-grid label{font-size:11px}
#food-tools .selected-food .form-grid input{padding:8px;min-height:44px}
#food-tools .selected-food .form-grid small{font-size:10px}
#food-tools .food-calculated{font-size:12px}
#food-tools .usual-save{padding-top:6px}
#food-tools .food-empty{grid-column:1/-1;margin:14px 8px;font-size:12px;line-height:1.6;color:var(--muted)}
