:root{--green:#204838;--dark:#143526;--sage:#557747;--gold:#b39a68;--ink:#253a2c;--muted:#52634e;--paper:#f6f7f1;--line:#c5d0bf;--white:#fff}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}a{color:var(--green);text-decoration:none}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:4px}input:focus,textarea:focus,select:focus{outline:2px solid #a1bb90;outline-offset:1px}h1,h2,h3,p{margin:0}h1{font:normal 44px/1.18 Georgia,serif;letter-spacing:-1px}h2{font-size:20px;letter-spacing:-.5px;font-weight:600}h3{font-size:14px;font-weight:600}label{display:block;font-size:12px;font-weight:600;margin-bottom:17px}input,textarea,select{display:block;width:100%;border:1px solid #dbe3d3;background:#fff;border-radius:10px;padding:12px 14px;color:var(--ink);margin-top:7px}textarea{resize:vertical;line-height:1.8}input[type=checkbox]{width:auto;display:inline-block;margin-right:8px;accent-color:var(--green)}.skip{position:absolute;top:-80px;left:20px;background:#fff;padding:12px;z-index:100}.skip:focus{top:10px}.app-header{height:100px;max-width:1180px;padding:24px 40px;margin:auto;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:16px;font-size:12px;letter-spacing:1.3px;font-weight:600}.brand-monogram{position:relative;font:42px/1 Georgia,serif;letter-spacing:-5px;color:var(--green);padding-right:8px}.brand-monogram sup{position:absolute;right:-3px;top:-7px;font-size:12px;letter-spacing:0;color:var(--gold)}.brand small{display:block;font-size:10px;font-weight:400;letter-spacing:.2px;color:var(--muted);margin-top:4px}.pilot-tag{font-size:10px;color:#52634e;background:#ebefdf;border:1px solid #e0e7ce;border-radius:25px;padding:5px 12px}.eyebrow{font-size:9px;font-weight:650;letter-spacing:2px;color:#52634e;margin-bottom:12px}.muted{color:var(--muted);font-size:12px;line-height:1.8}.help{color:var(--muted);font-size:11px;line-height:1.8}.help-box{border:1px solid #e2e7d5;background:#f8faf2;border-radius:10px;padding:14px;font-size:11px;line-height:1.8;color:#52634e}.help-box a{font-weight:600;display:inline-block;margin-top:8px}.button{display:inline-flex;justify-content:center;align-items:center;gap:14px;min-height:43px;border:1px solid var(--green);border-radius:10px;padding:12px 19px;font-size:12px;font-weight:600;color:white;background:var(--green)}.button:hover{background:var(--dark)}.button.secondary{color:var(--green);border-color:var(--line);background:white}.button.small{min-height:32px;padding:7px 12px;font-size:11px}.button.danger{color:#94452e;border-color:#ebdcd2;background:white}.text-button{border:0;background:none;font-size:11px;color:#52634e;padding:10px 0}.round-button{border:1px solid var(--line);background:#fff;border-radius:50%;width:40px;height:40px;font-size:21px;color:var(--green);display:grid;place-items:center}.error{font-size:12px;color:#94452e;margin:13px 0 0}.auth-layout{max-width:1110px;margin:42px auto 65px;padding:20px 35px;display:grid;grid-template-columns:1.25fr 1fr;gap:80px;align-items:center}.welcome>p:not(.eyebrow){font-size:14px;line-height:1.9;color:#52634e;max-width:415px;margin-top:23px}.welcome-features{display:flex;gap:10px;flex-wrap:wrap;margin-top:29px}.welcome-features span{display:inline-block;border:1px solid #dce5d2;border-radius:25px;padding:8px 12px;color:#52634e;font-size:10px}.welcome-note{display:flex;gap:14px;margin-top:60px;max-width:350px;align-items:center}.welcome-note>span{font-size:29px;color:#b8a373}.welcome-note p{font-size:11px;color:#52634e;line-height:1.8}.auth-card{padding:35px;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 15px 50px #203b2b05}.auth-card h2{font-size:21px;margin-bottom:10px}.auth-card>.muted{margin-bottom:23px}.auth-card .button{width:100%;justify-content:space-between}.auth-foot{text-align:center;font-size:10px;color:#52634e;border-top:1px solid #edf0e6;padding-top:17px;margin-top:18px}.app-footer{max-width:1100px;margin:30px auto 25px;text-align:center;color:#52634e;font-size:9px;line-height:2}.app-footer>span{padding:0 8px}.app-footer small{font-size:9px;color:#52634e}.app-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);background:#fffffff5;backdrop-filter:blur(15px);display:flex;border:1px solid var(--line);border-radius:20px 20px 0 0;padding:10px 20px max(10px,env(safe-area-inset-bottom));width:min(100%,700px);justify-content:space-around;z-index:20}.app-nav button{border:0;background:transparent;color:#52634e;display:flex;flex-direction:column;align-items:center;font-size:10px;gap:3px;padding:3px 12px}.app-nav button>span{font-size:23px;line-height:1.2}.app-nav button.active{color:var(--green)}#patientView{max-width:960px;margin:25px auto 0;padding:0 30px 65px}.patient-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px}.patient-heading h1{font:600 32px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-1px}.patient-heading .eyebrow{font-size:8px;margin-bottom:7px}.patient-heading .muted{margin-top:7px}.pilot-note{background:#f6f3e9;border:1px solid #eae3ce;color:#715b2d;padding:10px 14px;border-radius:10px;font-size:10px;line-height:1.7;margin-bottom:20px}.day-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.card{background:white;border:1px solid var(--line);border-radius:18px;padding:23px}.card.wide{grid-column:1/-1}.card-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:18px}.card-head small{color:#52634e;font-size:10px}.feature-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#edf3e7;color:#52634e;font-size:21px}.card h3{font-size:14px}.stat{font-size:31px;letter-spacing:-1px;font-weight:550;line-height:1.2}.stat small{font-size:12px;color:#52634e;letter-spacing:0;font-weight:400}.progress{height:6px;border-radius:6px;background:#f0f4e9;margin:17px 0 10px;overflow:hidden}.progress>span{display:block;height:100%;background:#47743c;border-radius:6px}.quick-water{display:flex;gap:8px;margin-top:20px}.quick-water button{flex:1;border:1px solid #dae7d0;border-radius:9px;padding:9px 6px;background:#f8fbf3;color:#52634e;font-size:11px}.card p.help{margin-top:10px}.greeting{background:var(--green);border-radius:18px;padding:25px 28px;color:#eaf0e3;margin-bottom:20px;display:flex;justify-content:space-between;align-items:center}.greeting h2{font:normal 25px/1.3 Georgia,serif;letter-spacing:-.3px}.greeting p{color:#e0ebd7;font-size:11px;margin-top:8px;max-width:440px}.greeting>span{font-size:36px;color:#c3b182;padding-left:20px}.mini-stats{display:flex;gap:22px;flex-wrap:wrap;margin:15px 0}.mini-stats .stat{font-size:23px}.mini-stats label{font-size:9px;color:#52634e;margin-bottom:5px}.empty{padding:26px 12px;text-align:center;color:#52634e}.empty h3{color:#52634e;font-size:13px}.empty p{font-size:11px;max-width:310px;margin:9px auto 15px;line-height:1.8}.empty>span{font-size:29px;color:#52634e;display:block;margin-bottom:12px}.list{display:flex;flex-direction:column;gap:12px}.record{background:white;border:1px solid var(--line);border-radius:13px;padding:17px 19px;display:flex;gap:15px;justify-content:space-between;align-items:flex-start}.record h3{font-size:12px;overflow-wrap:anywhere}.record p{font-size:11px;color:#52634e;margin-top:5px;line-height:1.8;white-space:pre-wrap}.record small{font-size:10px;color:#52634e}.record-actions{display:flex;gap:6px;flex:0 0 auto}.section-head{display:flex;gap:15px;align-items:center;justify-content:space-between;margin:25px 0 15px}.section-head h2{font-size:17px}.section-head .button{font-size:10px;padding:8px 11px}.date-filter{display:flex;gap:12px;align-items:center;margin-bottom:18px}.date-filter input{width:auto;margin:0;font-size:11px;padding:8px 10px}.date-filter label{margin:0;font-size:11px;color:#52634e}.pill{display:inline-block;background:#eff4e7;color:#52634e;padding:4px 8px;font-size:9px;border-radius:20px}.pill.amber{background:#f7f2e5;color:#715b2d}.button-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:15px}.details-title{font-size:10px;color:#52634e;margin-top:8px}.chart{display:flex;gap:5px;align-items:flex-end;height:130px;padding-top:10px;overflow-x:auto;margin:15px 0}.chart>div{min-width:25px;flex:1;display:flex;flex-direction:column;align-items:center;gap:5px}.chart span{display:block;width:100%;max-width:28px;background:#b0c59d;border-radius:5px 5px 0 0}.chart small{font-size:8px;color:#52634e}.account-list{display:grid;gap:12px}.account-row{padding:17px 0;border-bottom:1px solid var(--line)}.account-row strong{font-size:12px;font-weight:550}.account-row p{font-size:11px;color:#52634e;line-height:1.8;margin-top:6px}.calendar-link{font-size:11px;font-weight:600;color:#52634e}.value-pair{display:flex;gap:12px;margin:7px 0}.value-pair span{background:#f5f8ef;border-radius:7px;padding:5px 8px;font-size:10px;color:#52634e}.entry-date{font-size:10px;color:#52634e}.privacy-box{background:#eff4e8;border-radius:12px;padding:17px;font-size:11px;color:#52634e;line-height:1.9}dialog{border:1px solid var(--line);border-radius:19px;padding:25px;width:min(100% - 24px,490px);max-height:90dvh;color:var(--ink);box-shadow:0 25px 100px #17372526}dialog::backdrop{background:#17352366;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px}.dialog-head h2{font-size:21px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.fields-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.check-label{font-weight:400;color:#52634e;font-size:12px;margin:15px 0}#toast{position:fixed;bottom:95px;left:50%;transform:translateX(-50%);background:var(--dark);border-radius:11px;padding:13px 18px;font-size:12px;color:white;z-index:100;width:max-content;max-width:calc(100% - 35px);box-shadow:0 5px 25px #14372120}#toast.error-toast{background:#9b5f49}[hidden]{display:none!important}
@media(max-width:850px){.auth-layout{gap:35px;margin-top:25px}.auth-card{padding:27px}.welcome h1{font-size:36px}.welcome-features{gap:7px}.welcome-features span{font-size:9px;padding:7px 10px}.welcome-note{margin-top:40px}.app-header{padding:20px 30px}}
@media(max-width:600px){.app-header{height:83px;padding:20px 24px}.brand{gap:12px;font-size:10px;letter-spacing:1px}.brand-monogram{font-size:35px}.brand small{font-size:8px;margin-top:3px}.pilot-tag{font-size:9px;padding:4px 10px}.auth-layout{display:block;margin:15px auto 30px;padding:12px 23px}.welcome h1{font-size:35px;line-height:1.2}.welcome>p:not(.eyebrow){font-size:12px;margin-top:16px;max-width:320px}.welcome .eyebrow{font-size:8px;letter-spacing:1.5px;margin-bottom:11px}.welcome-features{margin-top:18px}.welcome-features span{font-size:9px;padding:6px 10px}.welcome-note{display:none}.auth-card{margin-top:29px;padding:25px 23px;border-radius:18px}.auth-card h2{font-size:20px}.auth-card>.muted{font-size:11px;margin-bottom:20px}.app-footer{margin:15px 24px 25px;font-size:8px}.app-footer small{font-size:8px}.day-grid{gap:12px;grid-template-columns:1fr}.card{padding:21px}.card.wide{grid-column:auto}.greeting{padding:22px}.greeting h2{font-size:23px}.greeting p{font-size:10px}.greeting>span{font-size:29px}#patientView{margin-top:19px;padding:0 20px 72px}.patient-heading h1{font-size:29px}.patient-heading .muted{font-size:11px}.app-nav{border-radius:18px 18px 0 0;padding-left:7px;padding-right:7px}.app-nav button{font-size:9px;padding:3px 8px;min-width:48px}.app-nav button>span{font-size:22px}.pilot-note{font-size:9px;padding:10px 12px}.mini-stats{gap:25px}.record{padding:16px;gap:10px;flex-wrap:wrap}.record-actions{width:100%;justify-content:flex-end}.record h3{font-size:12px}.record p{font-size:10px}.section-head h2{font-size:16px}.fields-row{gap:10px}.date-filter{justify-content:space-between}.date-filter label{font-size:10px}.account-row p{font-size:11px}.card-head{margin-bottom:14px}input,textarea,select{font-size:16px}dialog{padding:23px}.app-footer:has(+*){margin-bottom:20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Readability pass: text, controls and navigation are deliberately stronger. */
input,textarea,select{border-color:#8d9e85}input::placeholder,textarea::placeholder{color:#5c6b56;opacity:1}
.button.secondary,.round-button{border-color:#82947a}.quick-water button{color:#315829;border-color:#829c71;font-weight:600}
.app-nav button{color:#52634e;font-weight:600;min-height:48px}.app-nav button.active{color:#173e2c;background:#e7efdf;border-radius:12px;box-shadow:inset 0 -3px #204838}
.app-nav button.active>span{font-weight:700}.feature-icon{color:#3d6530}.pilot-tag{color:#485e35;border-color:#9aaa83}
.progress{background:#e2e9da}.card-head small,.stat small,.mini-stats label,.record small,.entry-date{color:#52634e}
.help,.muted,.record p,.account-row p{font-size:12px}.pilot-note,.privacy-box,.help-box{font-size:12px}.chart small{font-size:10px}.date-filter label{color:#52634e;font-size:12px}
.app-footer,.app-footer small{color:#52634e;font-size:10px}.greeting p{font-size:12px}.eyebrow{color:#52634e}.text-button{color:#36582d;font-size:12px}
@media(max-width:600px){.help,.muted,.record p,.account-row p,.patient-heading .muted{font-size:12px}.pilot-note,.greeting p,.privacy-box{font-size:11px}.app-nav button{font-size:11px}.mini-stats label{font-size:10px}.date-filter label{font-size:11px}}
.water-cups{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}.water-cups button{display:flex;flex-direction:column;align-items:center;gap:2px;border:1px solid #b6c6ab;background:#f3f7ee;color:#204838;border-radius:10px;padding:8px;min-width:65px;min-height:90px}.water-cups svg{width:28px;height:35px}.water-cups strong{font-size:11px}.water-cups small{font-size:10px;color:#52634e}.water-cups button:hover{border-color:#204838;background:#e7efdf}.exercise-summary{border-top:1px solid var(--line);margin-top:16px}.meal-photo{display:block;width:min(100%,340px);max-height:290px;object-fit:contain;border-radius:12px;background:#f0f4e9;margin-top:12px}.record-main{min-width:0;flex:1}.record-main .meal-photo{max-height:180px;width:auto;max-width:100%}.photo-field{padding:15px;border:1px solid #a3b299;border-radius:12px;margin:18px 0}.photo-label{position:relative;overflow:hidden;margin:0;cursor:pointer;min-height:44px}.photo-label input{position:absolute;inset:0;opacity:0;cursor:pointer;margin:0;padding:0}.photo-label:focus-within{outline:3px solid #735b2d;outline-offset:3px}.time-hint{margin:-6px 0 17px}.profile-summary{margin-bottom:18px}.weight-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.weight-stats .stat{margin-top:14px}.goal-card.green{border:2px solid #397047}.goal-card.red{border:2px solid #a53930}.goal-card.amber{border:2px solid #947222}.goal-card.neutral{border:2px solid #7b8976}.status-label{display:inline-block;border-radius:9px;background:#edf0e9;color:#455440;padding:7px 10px;font-size:12px;font-weight:650}.green .status-label{color:#23542d;background:#e8f2e4}.red .status-label{color:#8e2823;background:#fbece9}.amber .status-label{color:#70500f;background:#faf2dc}.red .progress>span{background:#a53930}.weight-chart{display:block;width:100%;height:auto;margin-top:20px}.weight-chart text{font:12px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;fill:#43533d}
@media(max-width:600px){.weight-stats{grid-template-columns:1fr 1fr}.weight-stats article:last-child{grid-column:1/-1}.weight-stats .card{padding:17px}.weight-stats .stat{font-size:28px}.goal-card .card-head{align-items:flex-start;flex-direction:column}.profile-summary .card-head{gap:12px;flex-wrap:wrap}.water-cups{gap:7px}}

input,textarea,select{border-color:#788b6d}button:focus-visible,a:focus-visible,summary:focus-visible{outline-color:#735b2d}

.avatar-card{display:flex;align-items:center;gap:20px;margin-bottom:18px}.avatar-button{padding:0;border:2px solid #82947a;border-radius:50%;background:#e7efdf;flex:0 0 auto;width:86px;height:86px;overflow:hidden;color:#204838}.profile-avatar{display:block;width:100%;height:100%;object-fit:cover}.initials{display:grid;place-items:center;font-size:26px;font-weight:650}.avatar-card .button-row{margin-top:9px}.avatar-preview{width:180px;height:180px;object-fit:cover;border-radius:50%;margin:18px auto}.avatar-picker .button-row{justify-content:center}@media(max-width:600px){.avatar-card{gap:14px}.avatar-button{width:72px;height:72px}.avatar-card .help{font-size:11px}}
/* Larger reading sizes throughout the app, especially on a phone. */
:root{--muted:#354a32;--ink:#193424}body{font-size:16px;line-height:1.65}.help,.muted,.record p,.account-row p,.privacy-box,.help-box{font-size:15px;color:#354a32;line-height:1.7}label{font-size:15px}.button,.button.small,.section-head .button,.text-button{font-size:15px;min-height:46px}.button.small{padding:9px 13px}.card h3,.record h3,h3{font-size:18px}.card-head small,.details-title,.entry-date,.record small{font-size:13px;color:#354a32}.stat small{font-size:15px;color:#354a32}.mini-stats label{font-size:12px;color:#354a32;font-weight:700}.quick-water button{font-size:15px;min-height:46px}.water-cups strong{font-size:13px}.water-cups small{font-size:12px;color:#354a32}.pilot-note,.greeting p,.empty p{font-size:14px}.empty h3{font-size:17px}.date-filter label,.date-filter input{font-size:14px}.app-nav button{font-size:13px;color:#354a32;min-height:54px}.app-nav button>span{font-size:26px}.app-nav{padding-top:10px}.eyebrow,.patient-heading .eyebrow{font-size:11px;font-weight:700;color:#354a32}.brand small{font-size:11px;color:#354a32}.pilot-tag,.pill{font-size:12px}.auth-card>.muted,.welcome>p:not(.eyebrow){font-size:16px;color:#354a32}.welcome-note p,.auth-foot,.app-footer,.app-footer small,.welcome-features span{font-size:12px;color:#354a32}.calendar-link,.value-pair span,.check-label{font-size:14px;color:#354a32}.error{font-size:15px}.greeting p{color:#f1f5e9}.profile-summary .help,.avatar-card .help{font-size:14px}#patientView{padding-bottom:90px}.routine-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:18px}.routine-tools .button{padding:12px 8px}.quick-profile{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.remember-check{display:flex;align-items:center;gap:10px;margin:18px 0;font-size:15px;line-height:1.5}.remember-check input{width:20px;height:20px;margin:0;flex:0 0 auto}
@media(max-width:600px){body{font-size:16px}.help,.muted,.record p,.account-row p,.patient-heading .muted,.privacy-box,.help-box{font-size:15px}.pilot-note,.greeting p{font-size:14px}.card{padding:20px}.card h3,.record h3{font-size:18px}.button,.button.small,.section-head .button,.text-button{font-size:15px}.app-nav button{font-size:12px;padding:4px 7px}.date-filter label,.date-filter input{font-size:14px}.fields-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.mini-stats label{font-size:12px}.app-footer,.app-footer small{font-size:12px}.auth-card>.muted{font-size:15px}.brand small{font-size:10px}.avatar-card .help{font-size:14px}.section-head h2{font-size:20px}input,textarea,select{font-size:17px;min-width:0}.record-actions{flex-wrap:wrap}.date-filter{flex-wrap:wrap}.quick-profile .button{flex:1}.routine-tools .button{font-size:14px}.welcome-features span{font-size:12px}.empty p{font-size:15px}}
.app-nav button{font-size:14px}.mini-stats label{font-size:13px}.pilot-note{font-size:15px}@media(max-width:600px){.app-nav button{font-size:14px;padding:4px 5px}.mini-stats label{font-size:13px}.avatar-card .help{font-size:15px}}
