@font-face{font-family:DiarySans;src:url(/static/fonts/diary-0.ttf)}@font-face{font-family:DiarySans;src:url(/static/fonts/diary-1.ttf);font-weight:700}@font-face{font-family:DiarySerif;src:url(/static/fonts/diary-2.ttf)}


*{box-sizing:border-box}body{margin:0;background:#eee;color:#171717;font-family:DiarySans,sans-serif}button{font:inherit;cursor:default}button:focus-visible{outline:2px solid #333;outline-offset:3px}.screen{width:390px;margin:auto;background:white;padding:23px 23px 0}.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.brand{font-size:31px;font-weight:700;letter-spacing:-2px}.owner{font-size:10px;color:#555}.date-top{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:15px}.date-top h1{font-size:24px;font-weight:400;letter-spacing:-.8px;margin:0}.date-top>span{font-size:10px;color:#555}.date-strip{display:flex;justify-content:space-between;align-items:center;gap:4px}.date-strip button{border:0;background:white;color:#171717;padding:0}.date-strip .day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:34px;height:58px;border-radius:20px}.day span{font-size:9px;color:#555}.day b{font-size:15px;font-weight:400}.date-strip .selected{background:#171717;color:white}.selected span{color:#ddd}.date-strip .arrow{font-size:24px;width:23px;height:44px;font-weight:400}.date-bottom{display:flex;align-items:center;justify-content:space-between;margin:13px 0 22px;font-size:8px;color:#666}.date-bottom b{font-size:12px;font-weight:400;margin-left:3px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}h2{font-size:14px;letter-spacing:-.3px;margin:0;font-weight:700}.tag{font-size:8px;padding:5px 7px;border:1px solid #606060;border-radius:5px;color:#ddd}.nutrition{background:#181818;color:#fff;padding:19px 18px 16px;border-radius:12px}.energy{display:grid;grid-template-columns:1.2fr 1fr;gap:12px}.energy>div{display:flex;flex-direction:column;min-width:0}.energy .remaining{border-left:.7px solid #666;padding-left:18px}.metric-label{font-size:10px;color:#ddd}.energy strong{font-size:35px;font-weight:400;letter-spacing:-1.6px;margin:9px 0 4px;line-height:1.1;white-space:nowrap}.remaining strong{color:#e2ef5f}.remaining-hint{font-size:8px;line-height:1.5;color:#ddd}.energy-footer{display:flex;justify-content:space-between;margin-top:16px;padding-top:11px;border-top:.7px solid #555;font-size:9px;color:#ccc}.estimate-note{font-size:8px;color:#666;margin:8px 2px 20px;line-height:1.6}.macro-section{padding-bottom:18px;border-bottom:.7px solid #ccc;margin-bottom:22px}.muted{font-size:9px;color:#666;white-space:nowrap}.macro-section h2{font-size:13px}.macros{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.macro{border-right:.7px solid #ddd;padding-right:8px;min-width:0}.macro:last-child{border:0;padding-right:0}.macro>span{font-size:10px;color:#555}.macro>strong{font-size:23px;font-weight:400;display:block;margin:7px 0 6px;letter-spacing:-.7px;white-space:nowrap}.macro strong small{font-size:11px}.macro>div{font-size:9px;color:#666;display:flex;gap:14px}.macro>div b{font-weight:400}.fine{font-size:8px;line-height:1.65;color:#666;margin:12px 0 0}.text-button{border:0;padding:6px 0;background:white;font-size:10px;color:#333}.photo-hint{font-size:8px;color:#666;margin-top:-5px;margin-bottom:20px;line-height:1.5}.timeline{position:relative}.timeline:before{content:'';position:absolute;top:17px;bottom:30px;width:.7px;left:50px;background:#ccc}.meal{display:grid;grid-template-columns:62px 1fr 59px;gap:10px;position:relative;padding-bottom:23px;align-items:start}.meal:last-child{padding-bottom:7px}.time{font-size:11px;padding-top:3px;position:relative}.dot{position:absolute;width:5px;height:5px;border-radius:50%;background:white;border:.8px solid #555;top:7px;left:48px}.meal-kind{font-size:8px;color:#666;display:block;margin-bottom:6px}.meal h3{font-size:12px;line-height:1.5;letter-spacing:-.3px;font-weight:400;margin:0}.meal p{font-size:8px;line-height:1.55;color:#666;margin:6px 0}.meal strong{font-size:10px;font-weight:400}.meal strong small{font-size:8px;color:#666;margin-left:3px}.thumb{width:59px;height:76px;object-fit:cover;border-radius:7px;display:block}.coffee-pic{object-position:50% 45%}.table-section{padding-top:18px;padding-bottom:20px;border-bottom:.7px solid #ccc}.table-section h2{font-size:13px}table{border-collapse:collapse;width:100%;font-size:10px;table-layout:fixed}th,td{text-align:right;padding:11px 4px;border-bottom:.7px solid #ddd;font-weight:400}th{font-size:9px;color:#666;padding-top:0}th:first-child,td:first-child{text-align:left;width:65px;padding-left:0}th:nth-child(2){width:72px}td:last-child,th:last-child{padding-right:0}tfoot td{border-bottom:0;font-weight:700;padding-top:13px}tfoot td:last-child{font-size:8px;font-weight:400;color:#666}.advice{padding:24px 0 22px;border-bottom:.7px solid #ccc}.monogram{width:24px;height:24px;border:1px solid #999;border-radius:50%;font-size:11px;display:flex;align-items:center;justify-content:center}.small-label{font-size:8px;letter-spacing:.6px;color:#666}.recommendation p{font-size:12px;line-height:1.7;margin:8px 0 19px}.next-meal{background:#f5f5f2;padding:13px;border-radius:8px}.next-meal>div{display:flex;justify-content:space-between;align-items:center;margin-top:8px}.next-meal strong{font-size:11px;font-weight:400}.next-meal p{font-size:9px;color:#666;line-height:1.7;margin:7px 0 0}.quote{font-size:15px;line-height:1.65;letter-spacing:-.3px;margin-top:19px}.water{padding:22px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:.7px solid #ccc}.water strong{font-weight:400;font-size:25px;display:block;margin-top:9px;letter-spacing:-.6px}.water strong small{font-size:10px;letter-spacing:0;color:#666}.water p{font-size:9px;color:#666;margin:6px 0 0}.water button{border:.8px solid #888;border-radius:23px;padding:0 15px;height:43px;background:white;font-size:11px}.workout{padding:23px 0 24px;border-bottom:.7px solid #ccc}.duration{font-size:9px;padding:5px 7px;background:#edf2c5;border-radius:4px;white-space:nowrap}.workout h3{font-size:21px;font-weight:400;letter-spacing:-.8px;margin:12px 0 8px}.workout p{font-size:10px;color:#666;line-height:1.7;margin:0 0 17px}.work-actions{display:flex;gap:10px}.work-actions button{min-height:45px;flex:1;background:white;color:#111;border:.8px solid #777;border-radius:8px;font-size:12px}.work-actions .primary{background:#171717;color:white;border-color:#171717}.easy-label{margin:17px 0 9px}.easy{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.easy button{font-size:10px;min-height:35px;border:.7px solid #aaa;border-radius:20px;background:white;color:#333}.shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:22px 0}.shortcuts button{display:flex;justify-content:space-between;align-items:center;border:.7px solid #aaa;border-radius:9px;background:white;padding:16px 13px;font-size:12px}.shortcuts b{font-size:17px;font-weight:400}footer{font-size:7px;color:#777;text-align:center;padding:0 0 17px;line-height:1.5}

.date-bottom{justify-content:flex-end;margin-top:13px;margin-bottom:22px;min-height:16px}.cycle-count{font-size:10px;color:#555;letter-spacing:0}.cycle-count.period{color:#ae3045}.date-strip .day.period{color:#ae3045}.day.period span{color:#ae3045}.date-strip .day.selected.period{background:#ae3045;color:#fff}.day.selected.period span{color:#fff}.energy-footer>strong{color:#fff;font-size:11px;font-weight:400}.nutrition .section-head{min-height:21px}.energy strong{margin-bottom:10px}.recommendation p{font-size:11px}

.food-options{padding:16px 0 3px;border-bottom:.7px solid #ccc}.options-head{margin-bottom:8px}.options-head h2{font-size:12px;line-height:1.5;letter-spacing:-.3px}.options-head>span{display:block;font-size:8px;color:#666;margin-top:4px}.food-options>button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:left;background:white;border:0;border-top:.7px solid #e3e3e3;padding:12px 0;min-height:53px}.food-options>button:first-of-type{border-top:0}.food-options b{display:block;font-size:10px;font-weight:400;line-height:1.5}.food-options small{display:block;font-size:8px;color:#666;margin-top:3px;line-height:1.5}.food-options i{font-size:15px;font-style:normal}.estimate-note{margin-top:10px;margin-bottom:18px}tfoot td:last-child{font-size:10px;color:#171717;font-weight:400}.table-section .fine{font-size:8px;line-height:1.7}

body{background:#fff;touch-action:pan-y}.screen{width:100%;max-width:390px;padding-bottom:23px}footer{display:none}.training-nudge{padding:15px 14px;border:.8px solid #c8c8c8;border-radius:10px;margin-bottom:21px}.nudge-top{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:9px;color:#555}.pending{display:flex;align-items:center;gap:5px;font-size:8px;color:#444}.pending:before{content:'';height:5px;width:5px;border-radius:50%;background:#bbc843}.nudge-title{font-size:17px;line-height:1.5;letter-spacing:-.5px;margin-top:10px}.training-nudge p{font-size:9px;color:#666;margin:4px 0 12px;line-height:1.6}.nudge-actions{display:flex;gap:9px;align-items:center}.nudge-actions button{height:40px;border:0;font-size:9px;background:white;color:#444;padding:0 2px;white-space:nowrap}.nudge-actions .nudge-primary{background:#191919;color:white;border-radius:7px;padding:0 10px}.nudge-time{flex:1;text-align:right}.date-bottom{margin-bottom:18px}

.tabs{position:fixed;bottom:0;left:50%;right:auto;transform:translateX(-50%);width:min(390px,100%);height:58px;padding:6px 16px 5px;background:#fff;border-top:.7px solid #ddd;display:flex;gap:0;overflow-x:auto;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tabs button{position:relative;flex:1 0 72px;min-width:72px;min-height:44px;background:transparent;color:#888;border:0;padding:0;font:11px Arial,sans-serif;white-space:nowrap}.tabs button>span{display:inline-block;padding:6px 0;background:transparent;color:inherit}.tabs button[aria-selected=true]{font-weight:600;color:#111}.tabs button[aria-selected=true]:before{content:'';position:absolute;top:0;left:50%;transform:translateX(-50%);height:2px;width:28px;background:#111}.tabs button:focus-visible{outline:1px solid #555;outline-offset:-3px}

/* Production states and accessible controls; approved geometry above. */
.screen{padding-bottom:85px}button{cursor:pointer;min-height:44px}button:disabled{cursor:wait;opacity:.55}input{font:inherit}button,a,input{touch-action:manipulation}button:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #555;outline-offset:3px}.tabs{z-index:5}.top-actions{display:flex;align-items:center;gap:8px}.top-actions button{font-size:10px;border:0;background:white;padding:0 2px}.date-top h1 button{font:inherit;color:inherit;background:none;border:0;padding:0}.date-strip{overflow-x:auto;scrollbar-width:none;gap:0;margin-inline:-15px}.date-strip .day{flex:1 0 44px;min-width:44px}.date-strip .arrow{flex:0 0 44px;width:44px}.date-strip .day.selected{border-radius:20px}.pending:before{background:#aaa}.nudge-actions button{min-height:44px}.water button{height:44px}.status{font-size:11px;line-height:1.5;color:#555}.status.error{color:#9b2439}.status:empty{display:none}.empty{font-size:10px;line-height:1.7;color:#666;padding:10px 0 16px}.option{border-top:.7px solid #e3e3e3;padding:12px 0}.option b{font-size:10px;font-weight:400;display:block}.option small{font-size:8px;color:#666;display:block;margin-top:3px;line-height:1.5}.meal details{font-size:9px;color:#666;line-height:1.6}.meal summary{min-height:44px;display:flex;align-items:center;cursor:pointer}.meal-body{min-width:0;overflow-wrap:anywhere}.meal details p{white-space:pre-wrap}.photos{display:flex;gap:4px;flex-direction:column}.thumb{border:0;padding:0;background:transparent;min-height:76px}.thumb img{width:100%;height:76px;object-fit:cover;border-radius:7px}.water-entries{border-bottom:.7px solid #ccc}.water-entry{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px}.water-entry button{border:0;background:white;font-size:10px}.water-entry span{flex:1}dialog{border:.7px solid #aaa;border-radius:12px;padding:22px;width:calc(100% - 32px);max-width:360px;font-family:DiarySans,sans-serif;color:#171717}dialog::backdrop{background:#0006}dialog h2{font-size:18px;margin-bottom:16px}dialog p{font-size:12px;line-height:1.7}dialog form{display:grid;gap:14px}label{display:grid;gap:7px;font-size:12px}input{width:100%;min-height:44px;padding:10px;border:.7px solid #aaa;border-radius:6px;background:#fff;color:#171717}.dialog-actions{display:flex;gap:10px;justify-content:flex-end}.dialog-actions button,.auth button{border:.7px solid #777;border-radius:7px;background:white;padding:0 14px}.dialog-actions .primary,.auth .primary{background:#171717;color:#fff}.date-strip{overflow:visible}.date-strip .days{display:flex;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none;touch-action:pan-x pan-y}.date-strip .days::-webkit-scrollbar{display:none}.date-strip .day{flex:0 0 44px}.date-strip .arrow{flex:0 0 44px}#photo-dialog{max-width:640px}#photo-view{max-width:100%;max-height:70vh;object-fit:contain}.auth{padding-top:40px}.auth h1{font-size:24px;font-weight:400}.auth form{display:grid;gap:18px;margin-top:28px}.auth p{font-size:12px;line-height:1.7}.auth button{min-height:44px}.auth .brand{display:block;margin-bottom:40px}[hidden]{display:none!important}@media(max-width:350px){.screen{padding-left:18px;padding-right:18px}.date-strip{margin-inline:-10px}.energy strong{font-size:30px}.meal{grid-template-columns:52px 1fr 50px;gap:7px}.timeline:before{left:44px}.dot{left:42px}.thumb{width:50px}.macro>div{gap:6px}.nudge-top{gap:5px}}
