@font-face{font-family:DM Sans;src:url(/fonts/dm-sans-latin.woff2)format("woff2");font-weight:100 1000;font-display:swap}@font-face{font-family:Bricolage Grotesque;src:url(/fonts/bricolage-grotesque-latin.woff2)format("woff2");font-weight:400 800;font-display:swap}:root{--ink:#1d2534;--muted:#575c67;--paper:#faf8f1;--surface:#fffef9;--line:#d3d1c6;--strong-line:#a6a9b0;--accent:#263e91;--tint:#e9ecf6;--subtle:#f0eee5;--signal:#ae3920;--display:"Bricolage Grotesque", "DM Sans", system-ui, sans-serif;--sans:"DM Sans", system-ui, sans-serif;font:16px/1.48 var(--sans);color:var(--ink);background:var(--paper);font-synthesis:none;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);background:var(--surface);border-radius:.55rem;padding:.5rem .86rem;font-size:.9rem;font-weight:600}button:disabled{opacity:.55;cursor:default}a{color:var(--accent)}button:hover:not(:disabled){border-color:var(--strong-line);background:var(--subtle)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2{font-family:var(--display);letter-spacing:-.03em;font-weight:680}h1{font-size:clamp(2.6rem,5vw,4.25rem);line-height:1.07}h2{font-size:clamp(1.5rem,2.7vw,2rem);line-height:1.16}h3{font-size:1rem;font-weight:650;line-height:1.35}small,.muted{color:var(--muted)}.app-shell{flex-direction:column;min-height:100svh;display:flex}.skip-link{z-index:5;background:var(--surface);padding:1rem;position:fixed;top:-8rem;left:1rem}.skip-link:focus{top:.5rem}.inbox-link b{background:var(--accent);color:#fff;border-radius:2rem;padding:0 .27rem;font-size:.65rem;position:absolute;top:-4px;right:-5px}.page-heading{align-items:center;gap:.8rem;margin:1rem 0 1.75rem;display:flex}.section-head,.card-heading,.saved-row,.key-row{justify-content:space-between;align-items:center;gap:.7rem;display:flex}.section-head{margin:1.95rem 0 .85rem}.section-head h2{font-size:1.57rem}.text-action,.back-link{color:var(--accent);background:0 0;border:none;align-items:center;gap:.35rem;padding:.3rem 0;font-size:.82rem;font-weight:650;display:inline-flex}.text-action:hover:not(:disabled),.back-link:hover:not(:disabled){background:0 0;text-decoration:underline}.timeline-rows,.form-card,.directive-card{border:1px solid var(--line);background:var(--surface);border-radius:.55rem}.settings p{color:var(--muted);margin:.3rem 0 0;font-size:.88rem;line-height:1.5}.timeline-rows{overflow:hidden}.timeline-rows>button{text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;align-items:center;gap:.8rem;width:100%;padding:1rem;display:flex}.timeline-rows>button:last-child{border-bottom:0}.timeline-rows time{min-width:4rem;font-size:.78rem;font-weight:500}.row-copy{min-width:0;display:grid}.row-copy b{text-overflow:ellipsis;white-space:nowrap;font-size:.94rem;overflow:hidden}.row-copy small{font-size:.76rem;font-weight:500}.timeline-rows>button>svg{flex:none;margin-left:auto}.directive-card{margin-bottom:.6rem;padding:1rem}.directive-card button{margin:.7rem .4rem 0 0}.form-card{margin:0 0 1rem;padding:clamp(1.1rem,3vw,1.8rem)}.form-card .section-head:first-child{margin-top:0}.form-card h2{font-size:1.5rem}.form-card h2+p{margin-top:.4rem}.settings,.log-panel{max-width:800px;margin:auto}.settings .form-card>button,.settings .form-card>.choice-row{margin-top:1rem}.card-heading{justify-content:flex-start}.settings p{font-size:.96rem}.back-link{margin:0 0 .2rem}.log-panel .page-heading h1{font-size:clamp(2.45rem,5vw,3.6rem)}.log-panel .page-heading .round-icon{width:44px;height:44px}.form-card label,.timeline-tools label{flex-direction:column;gap:.35rem;margin-top:.85rem;font-size:.86rem;font-weight:600;display:flex}.form-card input:not([type=checkbox]):not([type=range]),.form-card select,.form-card textarea,.timeline-tools select,.timeline-tools input{border:1px solid var(--strong-line);background:var(--surface);border-radius:.48rem;width:100%;min-width:0;padding:.64rem .72rem;font-size:1rem;font-weight:400}.form-card textarea{resize:vertical}.form-card input[type=range]{width:100%;accent-color:var(--accent)}.form-card input[type=checkbox]{width:1rem;height:1rem;accent-color:var(--accent)}.field-pair{grid-template-columns:1fr 1fr;gap:1rem;display:grid}.form-card button.primary,.primary{background:var(--accent);color:#fff;border:1px solid var(--accent);align-items:center;gap:.45rem;margin-top:1.25rem;padding:.7rem 1.1rem;display:inline-flex}.form-card button.primary:hover{background:#1c2f73}.tabs{background:var(--subtle);border:1px solid var(--line);border-radius:.6rem;gap:2px;width:max-content;max-width:100%;padding:3px;display:inline-flex}.tabs button{text-transform:capitalize;background:0 0;border:1px solid #0000;border-radius:.43rem;align-items:center;gap:.38rem;display:inline-flex}.tabs button[aria-pressed=true]{background:var(--surface);border-color:var(--line)}.choice-row,.flag-list{flex-wrap:wrap;align-items:center;gap:.42rem;display:flex}.choice-row button{justify-content:center;align-items:center;gap:.35rem;min-height:42px;display:inline-flex}.bristol-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:.38rem;display:grid}.bristol-grid,.rating,.flag-list{border:0;min-width:0;margin:.8rem 0 1.4rem;padding:0}.bristol-grid .bristol-choice{border:1px solid var(--line);background:var(--surface);cursor:pointer;border-radius:.55rem;flex-direction:column;align-items:center;gap:.12rem;min-width:0;margin:0;padding:.55rem .2rem;display:flex;position:relative}.bristol-choice small{text-align:center;font-size:.68rem;font-weight:500}.bristol-choice strong{font-size:.85rem}.choice-row button[aria-pressed=true]{background:var(--tint);border-color:var(--accent)}.bristol-choice:has(input:checked){background:var(--tint);border-color:var(--accent)}.flag-list{gap:.15rem .85rem;margin:.5rem 0}.form-card .flag-list label{flex-direction:row;align-items:center;font-size:.9rem;font-weight:500;display:inline-flex}.saved-row{background:var(--tint);border-radius:.5rem;justify-content:flex-start;padding:.7rem}.saved-row span{margin-left:auto;font-size:.85rem}.rating legend,.flag-list legend{font-size:.85rem;font-weight:600}.rating{max-width:350px;padding-top:.3rem}.rating .choice-row{grid-template-columns:repeat(5,1fr);display:grid}.scale-ends{color:var(--muted);justify-content:space-between;margin-top:.22rem;font-size:.74rem;display:flex}.voice-button,.drop-input{margin-top:1rem}.form-card .drop-input{border:1px dashed var(--strong-line);background:var(--subtle);border-radius:.65rem;justify-content:center;align-items:center;padding:1rem}.form-card .drop-input input{max-width:300px;background:0 0!important;border:0!important;font-size:.82rem!important}.food-thumb{object-fit:cover;border-radius:.5rem;width:80px;height:80px}.media-list{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.media-list:not(:empty){margin:.8rem 0}.media-list>div{align-items:center;gap:.2rem;display:flex}.media-list button{padding:.1rem .4rem;font-size:1.1rem}.media-list audio{max-width:100%}.timeline-tools{flex-wrap:wrap;align-items:flex-end;gap:1rem;display:flex}.timeline-tools label{margin:0}.timeline-tools .tabs{margin-bottom:2px}.warning,.confirmation{color:#7b4525;overflow-wrap:anywhere;background:#f8e9dc;border-radius:.5rem;padding:.75rem .9rem;font-size:.92rem;margin:.8rem 0!important}.confirmation{background:var(--tint);color:var(--accent)}.key-row{border-top:1px solid var(--line);margin-top:.75rem;padding-top:.75rem}.key-row small{display:block}.audit-row{border-top:1px solid var(--line);padding-top:.3rem}.danger{color:#954828}.startup{padding:2rem 0}.toast{background:var(--ink);color:#fff;z-index:3;border-radius:.65rem;align-items:center;gap:.5rem;max-width:90vw;padding:.6rem 1rem;display:flex;position:fixed;bottom:1rem;left:50%;transform:translate(-50%);box-shadow:0 3px 18px #18243622}.research{padding:0!important}@media (max-width:690px){.section-head{margin:1.4rem 0 .7rem}.page-heading{margin:.65rem 0 1.3rem}.bristol-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.bristol-grid .bristol-choice{min-height:70px}.field-pair{gap:.5rem}.form-card{padding:1rem}.log-panel .page-heading{margin-top:.5rem}.timeline-rows>button{gap:.55rem;padding:.75rem}.timeline-rows time{min-width:3.25rem}.timeline-rows .round-icon{width:32px;height:32px}.timeline-tools{gap:.5rem}.timeline-tools label{font-size:.75rem}.timeline-tools input,.timeline-tools select{font-size:.88rem}.toast{bottom:calc(72px + env(safe-area-inset-bottom));width:max-content}}@media (max-width:365px){.bristol-grid{gap:.2rem}}.sync-issue{background:#f8e9dc;border-radius:.55rem;margin:.7rem 0;padding:.6rem}.sync-issue pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:12rem;overflow:auto}.sync-issue h3{margin-top:.8rem}.barcode-panel{margin:.75rem 0}.barcode-panel p,.parsing-hint{color:var(--muted);margin:.6rem 0;font-size:.84rem}.barcode-panel>div{background:var(--subtle);border-radius:.5rem;margin-top:.6rem;padding:1rem}.barcode-panel small,.barcode-panel a{margin:.6rem 0;display:block}.barcode-panel .parsing-hint a,.parsing-hint a{color:var(--accent)}.log-tabs{flex-wrap:wrap}.log-tabs button{font-size:.83rem}.topbar{border-bottom:1px solid var(--line);background:var(--paper)}.top-inner,main{width:min(100%,74rem);margin-inline:auto;padding-inline:clamp(1.2rem,5vw,4.5rem)}.top-inner{justify-content:space-between;align-items:center;gap:1.25rem;min-height:74px;display:flex}.brand{color:var(--accent);white-space:nowrap;align-items:center;gap:.52rem;text-decoration:none;display:inline-flex}.brand img{width:38px;height:38px}.brand span{font:790 1.86rem/.95 var(--display);letter-spacing:-.035em}.main-nav,.top-actions,.journal-status button{align-items:center;display:flex}.main-nav{gap:.1rem}.main-nav a{color:var(--muted);border-radius:.35rem;padding:.68rem .8rem;font-size:.88rem;font-weight:610;text-decoration:none}.main-nav a svg{display:none}.main-nav a[aria-current=page],.settings-link[aria-current=page]{color:var(--accent);background:var(--tint)}.main-nav a:hover,.top-actions a:hover{background:var(--subtle)}.top-actions{gap:.4rem}.top-actions>a{width:42px;height:42px;color:var(--accent);border-radius:.4rem;place-items:center;display:grid;position:relative}.journal-status button{min-height:42px;color:var(--muted);background:0 0;border:none;gap:.42rem;padding:.2rem .4rem;font-size:.79rem}.state-dot{background:var(--accent);border-radius:50%;width:7px;height:7px}.state-dot.warning{background:var(--signal)}main{flex:1;min-width:0;padding-top:clamp(1.5rem,3.2vw,3rem);padding-bottom:4rem}.today-heading{border-block-end:2px solid var(--ink);grid-template-rows:1fr 1fr;grid-template-columns:minmax(0,1fr) minmax(160px,33%);align-content:center;min-height:clamp(165px,18vw,216px);margin-bottom:1.1rem;display:grid;position:relative}.today-heading .date-line{grid-area:1/1;align-self:end}.date-line,.eyebrow{color:var(--muted);letter-spacing:.025em;font-size:.82rem;font-weight:600}.today-heading h1{font:750 clamp(4.5rem, 8vw, 7rem) / .92 var(--display);letter-spacing:-.035em;grid-area:2/1;align-self:start;margin:.32rem 0 1.4rem -.04em}.study{object-fit:contain;mix-blend-mode:multiply;grid-area:1/2/3;place-self:center end;width:min(100%,307px);height:auto;max-height:215px}.quick-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;display:grid}.quick{background:var(--surface);min-width:0;min-height:62px;color:var(--ink);border:1px solid var(--strong-line);border-radius:.45rem;justify-content:flex-start;align-items:center;gap:.7rem;padding:.7rem 1rem;display:flex}.quick b{font:680 1.08rem/1.2 var(--display);letter-spacing:-.02em}.quick .round-icon{width:24px;height:24px;color:var(--accent);background:0 0}.quick.meal,.quick.meal:hover{color:#fff;border-color:var(--accent);background:var(--accent)}.quick.meal:hover{background:#1c2f73}.quick.meal .round-icon{color:inherit}.round-icon{width:38px;height:38px;color:var(--accent);background:var(--tint);border-radius:.4rem;flex:none;place-items:center;display:inline-grid}.today-bottom{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);column-gap:clamp(1.6rem,4vw,3rem);margin-top:1.7rem;display:grid}.today-bottom .section-head{margin:0 0 .75rem}.section-head h2{letter-spacing:-.04em}.empty-timeline{border-block:1px solid var(--line);align-items:center;gap:.85rem;min-height:5.1rem;padding:1.15rem 0;display:flex}.empty-timeline p{color:var(--muted);margin:0;font-size:.94rem}.empty-mark{width:36px;height:36px;color:var(--accent);flex:none;place-items:center;display:grid}.daily-card{border:1px solid var(--line);background:var(--subtle);border-radius:.45rem;padding:1rem 1.15rem}.daily-card+.daily-card{margin-top:.65rem}.daily-title{color:var(--accent);align-items:center;gap:.65rem;display:flex}.daily-title .text-action{text-align:left;font-size:.95rem}.baseline-track{border-top:1px solid var(--line);margin-top:.75rem;padding-top:.75rem}.baseline-track>div{gap:3px;max-width:175px;display:flex}.baseline-track i{background:#ced0d5;flex:1;height:4px}.baseline-track i.filled{background:var(--accent)}.baseline-track span{color:var(--muted);margin-top:.25rem;font-size:.75rem;display:block}.settings-group{border-top:1px solid var(--line)}.settings-group:last-child{border-bottom:1px solid var(--line)}.settings-group>summary{cursor:pointer;font:640 1.13rem/1.25 var(--display);justify-content:space-between;align-items:center;padding:1.05rem .15rem;list-style:none;display:flex}.settings-group>summary::-webkit-details-marker{display:none}.settings-group>summary:after{content:"+";color:var(--accent);font:500 1.3rem/1 var(--sans)}.settings-group[open]>summary:after{content:"−"}summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}section.settings,.log-panel{max-width:46rem}@media (max-width:820px){.top-inner{gap:.45rem;min-height:60px}.brand img{width:32px;height:32px}.brand span{font-size:1.55rem}.main-nav{z-index:4;border-top:1px solid var(--line);background:var(--paper);width:100%;padding:.2rem 0 calc(.2rem + env(safe-area-inset-bottom));justify-content:space-around;gap:0;position:fixed;bottom:0;left:0}.main-nav a{flex-direction:column;justify-content:center;align-items:center;gap:.22rem;min-width:44px;min-height:48px;font-size:.7rem;line-height:1.15;display:flex}.main-nav a svg{display:block}.top-actions{gap:.12rem}.journal-status button{font-size:.76rem}main{padding-bottom:calc(5rem + env(safe-area-inset-bottom))}.toast{bottom:calc(70px + env(safe-area-inset-bottom))}}@media (max-width:620px){main{padding-top:1.15rem}.today-heading{grid-template-columns:minmax(0,1fr) minmax(110px,41%);min-height:120px}.today-heading h1{margin-bottom:1rem;font-size:clamp(3.5rem,14vw,5.2rem)}.date-line{font-size:.76rem}.study{max-height:130px}.quick-grid{grid-template-columns:1fr 1fr;gap:.5rem}.quick{min-height:49px;padding:.55rem .75rem}.quick b{font-size:.95rem}.today-bottom{grid-template-columns:minmax(0,1fr);gap:1.3rem;margin-top:1.45rem}.today-bottom .section-head{margin-bottom:.55rem}.empty-timeline{min-height:55px;padding:.6rem .1rem}.daily-card{padding:.85rem 1rem}.form-card input:not([type=checkbox]):not([type=range]),.form-card select,.form-card textarea{font-size:max(16px,1rem)}}@media (max-width:360px){.top-inner,main{padding-inline:.8rem}.top-actions>a{width:36px}.brand{gap:.33rem}.brand span{font-size:1.42rem}}.journal-status{color:var(--muted);white-space:nowrap;align-items:center;gap:.35rem;font-size:.79rem;display:inline-flex}.journal-status button{font-size:inherit}.stool-urgency-head{flex-wrap:wrap;align-items:baseline;gap:.65rem;display:flex}.stool-urgency-head p{color:var(--muted);font-size:.85rem}@media (max-width:480px){.top-actions,.journal-status,.journal-status button{min-width:0}.top-actions>a,.state-dot{flex-shrink:0}.journal-status{white-space:normal;font-size:.72rem;line-height:1.2}.journal-status button{padding-inline:.2rem}}.device-note{color:var(--muted);align-items:center;gap:.45rem;margin-top:.65rem;font-size:.82rem;display:flex}.device-note svg{flex:none}.today-bottom{grid-template-areas:"entries checkin"}.today-bottom>aside{grid-area:checkin}.today-entries{grid-area:entries;min-width:0}.today-entries .section-head{min-height:44px;margin-bottom:.25rem}.today-entries .text-action,.daily-title a{min-height:44px}.timeline-page .timeline-tools{border-block:1px solid var(--line);align-items:end;padding:.8rem 0 1rem}.timeline-date{align-items:end;gap:.35rem;display:flex}.timeline-date input,.timeline-tools select,.period-step,.today-jump{height:44px}.period-step{place-items:center;width:44px;padding:0;display:grid}.timeline-tools .tabs button{min-height:42px}.timeline-date label{min-width:0}.timeline-tools .entry-filter{min-width:8rem}.timeline-no-results{align-items:flex-start;gap:1rem;padding:1.4rem 0;display:flex}.timeline-no-results>svg{color:var(--muted);margin-top:.15rem}.timeline-no-results h2{font-size:1.25rem}.timeline-no-results p{color:var(--muted);margin-top:.25rem}.timeline-no-results .text-action{min-height:44px}.timeline-rows>button:focus-visible{outline-offset:-3px}.timeline-rows time{flex:0 0 4rem}.toast a{color:#fff;white-space:nowrap;padding:.5rem .15rem;font-weight:650}@media (max-width:820px){html{scroll-padding-bottom:calc(80px + env(safe-area-inset-bottom))}}@media (max-width:620px){.today-bottom{grid-template-areas:"checkin""entries"}.timeline-tools .entry-filter{flex:1}.timeline-date{flex:1 0 100%}.timeline-date label{flex:1}.timeline-page .timeline-tools input,.timeline-page .timeline-tools select{font-size:1rem}.timeline-date{min-width:0;max-width:100%}}@media (max-width:360px){.timeline-date{grid-template-columns:44px 44px minmax(0,1fr);display:grid}.timeline-date label{grid-column:1/-1}}.main-nav a[aria-current=location]{color:var(--accent);background:var(--tint)}.journal-nav-band{border-bottom:1px solid var(--line)}.journal-nav{align-items:stretch;gap:clamp(.4rem,2vw,1.6rem);width:min(100%,74rem);margin:auto;padding-inline:clamp(1.2rem,5vw,4.5rem);display:flex}.journal-nav a{min-height:44px;color:var(--muted);border-bottom:2px solid #0000;justify-content:center;align-items:center;padding:.45rem .22rem;font-size:.88rem;font-weight:600;text-decoration:none;display:inline-flex}.journal-nav a[aria-current=page]{color:var(--accent);border-bottom-color:var(--accent)}@media (max-width:620px){.journal-nav{justify-content:space-between}.journal-nav a{font-size:.84rem}}
