.auth-shell{max-width:440px;margin:6vh auto;padding:30px 26px}.auth-brand{display:flex;align-items:center;gap:13px;margin-bottom:44px}.auth-brand strong{font-size:26px;letter-spacing:3px}.auth-brand small{display:block;font-size:10px;color:var(--muted);margin-top:4px;letter-spacing:2px}.auth-shell h2{font-size:28px;font-weight:600;margin:0 0 12px}.auth-description{font-size:13px;line-height:1.9;color:var(--muted);margin-bottom:30px}.auth-shell label{margin-top:18px}.auth-shell input:not([type=checkbox]),#password-form input{background:#fff;border:1px solid #dce5d7;border-radius:12px;min-height:50px;padding:13px;width:100%;color:var(--ink)}.auth-shell .primary-button{width:100%;margin-top:18px}.auth-shell .text-button{display:flex;margin:10px auto}.auth-shell .consent{display:flex;gap:10px;align-items:flex-start;font-size:11px;line-height:1.8;margin-top:16px}.consent input{width:18px;height:18px;flex-shrink:0;accent-color:var(--green)}.login-note{font-size:11px;color:#819175;line-height:1.8;margin:18px 0}.auth-error{font-size:12px;color:#a24638;line-height:1.8;margin:12px 0 0}.auth-footer{font-size:11px;color:var(--muted);margin-top:36px;text-align:center}.members-panel{margin:-10px 0 26px}.members-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:11px;font-size:12px;color:#73836d}.members-title strong{color:var(--ink);font-weight:500}.member-strip{display:flex;gap:9px;overflow-x:auto;padding:3px 2px 8px;scrollbar-width:thin}.member-button{display:flex;align-items:center;gap:8px;flex-shrink:0;border:1px solid #dce5d5;background:#fff;border-radius:30px;min-height:44px;padding:7px 14px 7px 8px;font-size:12px;max-width:240px}.member-button .avatar{display:grid;place-items:center;background:#edf2e6;color:var(--green);border-radius:50%;width:28px;height:28px;font-size:12px;flex-shrink:0}.member-button .member-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-button.active{background:var(--green);color:#fff;border-color:var(--green)}.member-button.active .avatar{background:#ffffff24;color:white}.member-button small{font-size:9px;opacity:.75}.cloud-status{font-size:11px;color:#7d8c73;display:flex;align-items:center;gap:8px}.cloud-status button{font-size:11px;color:var(--green);background:transparent;padding:8px;min-height:36px}.view-banner{border:1px solid #d9e3d2;border-radius:14px;background:#eef4e8;padding:14px 18px;margin-bottom:24px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;line-height:1.8}.view-banner strong{display:block;font-size:15px}.view-banner button{white-space:nowrap}.account-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px;margin-bottom:18px}.account-buttons{display:flex;gap:10px;margin-top:14px}.account-buttons button{flex:1;background:#f2f5ed;border-radius:10px;padding:12px;font-size:12px;min-height:44px}#logout-button{color:#a65d43}.network-warning{padding:12px 16px;border-radius:10px;background:#fff2e5;color:#9b6541;font-size:12px;line-height:1.8;margin-bottom:20px}#password-form label{margin-top:16px}#password-error{font-size:12px;color:#a24638}#password-form .primary-button{width:100%;margin-top:20px}@media(max-width:600px){.members-panel{margin-top:-6px;margin-bottom:21px}.members-title{font-size:11px}.view-banner{font-size:11px}.cloud-status{font-size:10px}.auth-shell{margin:3vh auto;padding:26px 24px}.auth-brand{margin-bottom:32px}.auth-shell h2{font-size:25px}}
.actions{grid-template-columns:repeat(4,minmax(0,1fr))}.photo-action{background:#eee8f3;border-color:#dfd4e9}.photo-action .action-icon{font-size:30px;color:#78638c}.photo-col{width:115px}table{min-width:940px}.photo-thumb{padding:0;border:0;background:none;display:grid;gap:5px;color:var(--muted);cursor:pointer}.photo-thumb img{width:76px;height:90px;object-fit:cover;border-radius:12px;border:1px solid #ddd}.photo-thumb small{font-size:11px}.photo-pickers{display:flex;gap:12px;margin:20px 0}.photo-pickers button{flex:1;padding:14px;border:1px solid #d4ddd5;border-radius:12px;background:#eff3ec;color:#385d4b}.photo-preview{width:100%;max-height:280px;object-fit:contain;border-radius:12px;margin-bottom:16px}#photo-error{color:#a44332;min-height:20px}#gallery-dialog{width:100%;max-width:none;height:100%;max-height:none;margin:0;border:0;border-radius:0;padding:0;background:#111a17;color:#fff;overflow:hidden}#gallery-dialog[open]{display:flex;flex-direction:column}.gallery-top{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;flex-shrink:0}.gallery-top button{background:transparent;color:white;border:0;font-size:32px;padding:5px 14px}.gallery-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;touch-action:pan-y pinch-zoom}.gallery-stage img{width:100%;height:100%;object-fit:contain}.gallery-bottom{padding:12px 20px max(18px,env(safe-area-inset-bottom));text-align:center;flex-shrink:0}.gallery-nav{display:flex;align-items:center;justify-content:center;gap:35px}.gallery-nav button,#gallery-privacy{background:#2c4036;color:#fff;border:1px solid #486052;border-radius:12px;padding:9px 24px}.gallery-nav button:disabled{opacity:.25}.gallery-bottom p{font-size:13px;color:#ccd7d1;margin:10px 0}.gallery-bottom small{display:block;margin-top:10px;color:#9aac9f}button:disabled{cursor:default}#photo-form .primary-button{width:100%}
@media(max-width:1050px){.actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.action-card{padding:15px 11px;gap:8px;min-height:105px}.action-icon{width:32px;height:32px;flex-shrink:0}.action-plus{display:none}.action-copy strong{font-size:15px}.action-copy small{font-size:10px}.table-scroll{max-width:100%}}

.brandmark{overflow:hidden;background:transparent;padding:0}.brandmark img{width:100%;height:100%;display:block;object-fit:cover}

.my-code-box{padding:18px;background:#eff5ed;border-radius:14px;margin:20px 0}.my-code-box input{background:transparent;border:0;font-size:23px;font-weight:600;letter-spacing:1px;color:#285d47;width:100%;padding:12px 0}#member-code{width:100%;border:1px solid #dce5d7;border-radius:12px;padding:14px;font-size:18px;background:white}#member-form .primary-button{width:100%}#member-error{color:#a44332;font-size:13px}.cloud-status{gap:2px}.cloud-status button{white-space:nowrap}#settings-code{font-family:monospace;font-size:20px;color:#285d47}
@media(max-width:420px){.members-title{align-items:flex-start}.cloud-status{flex-wrap:wrap;justify-content:flex-end;max-width:195px}#sync-status{width:100%;text-align:right;font-size:10px}}
/* Compact photographic journal: fixed proportions fit unfolded phones from 600 CSS px. */
.daily-public-label{display:flex;align-items:center;gap:4px;font-size:10px;margin:5px 0 0;white-space:nowrap;min-height:28px}.daily-public-label input{accent-color:var(--green);width:16px;height:16px;margin:0}.privacy-settings{margin-top:12px}
.meal-grid{display:grid;gap:3px;width:100%;max-width:190px;grid-template-columns:repeat(3,minmax(0,1fr))}.meal-grid[data-count="1"]{grid-template-columns:1fr;max-width:62px}.meal-grid[data-count="2"],.meal-grid[data-count="3"],.meal-grid[data-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr));max-width:124px}.meal-grid[data-count="3"] .meal-thumb:first-child{grid-row:span 2}.meal-grid[data-count="5"] .meal-thumb:first-child{grid-row:span 2}.meal-grid[data-count="7"] .meal-thumb:first-child{grid-column:span 2;grid-row:span 2}.meal-grid[data-count="8"] .meal-thumb:first-child{grid-column:span 2}.meal-grid[data-count="10"]{grid-template-columns:repeat(5,minmax(0,1fr));max-width:240px}.meal-thumb,.meal-more{position:relative;padding:0;border:0;border-radius:5px;overflow:hidden;background:#edf2e8;min-width:0;height:44px;min-height:44px}.meal-thumb img{display:block;width:100%;height:100%;object-fit:cover}.meal-grid[data-count="3"] .meal-thumb:first-child,.meal-grid[data-count="5"] .meal-thumb:first-child,.meal-grid[data-count="7"] .meal-thumb:first-child{height:91px}.meal-thumb time{position:absolute;bottom:0;left:0;right:0;background:#142b269c;color:#fff;font-size:8px;text-align:center;line-height:14px}.meal-count{display:block;color:var(--muted);font-size:9px;margin:5px 0}.meal-more{font-size:13px;color:var(--green);font-weight:600}
.access-heading{font-size:13px;margin:22px 0 10px}.access-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:10px 0}.access-row>div{min-width:0}.access-row strong{display:block;font-size:14px;overflow-wrap:anywhere}.access-row small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.access-row button{flex-shrink:0}#viewers-status{font-size:12px;color:var(--green)}
table{min-width:560px}.date-col{width:10%}.weight-col{width:12%}.delta-col{width:12%}.meal-col{width:25%}.content-col{width:17%}.photo-col{width:12%}thead th,tbody td{padding:12px 7px}th:first-child,td:first-child{padding-left:10px}.weight-entry strong{font-size:17px}.weight-entry strong small{display:block;margin:1px 0;font-size:8px}.weight-entry time{margin-top:3px}.day-number{font-size:15px}.delta{padding:5px 3px;font-size:11px}.delta small{margin-right:2px}thead th{font-size:11px}thead th svg{display:none}.photo-thumb{max-width:100%;gap:4px}.photo-thumb img{width:56px;height:70px;max-width:100%;border-radius:7px}.photo-thumb small{font-size:9px}.log-entry span{font-size:11px}.today .day-name{padding:3px 4px}.scroll-hint{display:none!important}
@media(min-width:600px) and (max-width:1100px){.shell{padding-left:12px;padding-right:12px}.journal-heading{padding:20px}.metrics{padding-left:20px;padding-right:20px}.table-toolbar{padding-left:14px;padding-right:14px}.table-scroll{max-height:none}}
@media(min-width:1000px){thead th,tbody td{padding:16px 12px}.meal-thumb,.meal-more{height:52px}.meal-grid[data-count="3"] .meal-thumb:first-child,.meal-grid[data-count="5"] .meal-thumb:first-child,.meal-grid[data-count="7"] .meal-thumb:first-child{height:107px}.weight-entry strong{font-size:20px}.weight-entry strong small{display:inline;margin-left:3px}.photo-thumb img{width:68px;height:82px}}
@media(max-width:599px){.scroll-hint{display:flex!important}thead th,tbody td{padding:10px 5px}.daily-public-label{font-size:9px;gap:2px}.table-foot{font-size:9px}}
.meal-count{background:transparent;padding:4px 0;text-align:left;min-height:28px;color:var(--green)}.gallery-filmstrip{display:flex;gap:8px;overflow-x:auto;padding:10px 2px 2px;max-width:650px;margin:auto;overscroll-behavior-x:contain;scrollbar-width:thin}.film-thumb{position:relative;flex:0 0 58px;height:65px;border:2px solid transparent;border-radius:8px;padding:0;overflow:hidden;background:#2c4036;color:white}.film-thumb[aria-pressed="true"]{border-color:#cbef99;box-shadow:0 0 0 1px #cbef99}.film-thumb img{width:100%;height:100%;object-fit:cover}.film-thumb span{position:absolute;bottom:0;left:0;right:0;background:#142b26bb;font-size:9px;line-height:16px}#gallery-filmstrip[hidden]{display:none}
.meal-grid[data-count="7"],.meal-grid[data-count="8"]{grid-template-columns:repeat(4,minmax(0,1fr))}.meal-grid[data-count="7"] .meal-thumb:first-child{grid-row:auto;grid-column:span 2;height:44px}.meal-grid[data-count="8"] .meal-thumb:first-child{grid-column:auto}
@media(min-width:700px){.actions{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.action-card{padding:18px 12px;gap:8px;min-height:104px}.action-icon{width:30px;height:30px}.action-copy strong{font-size:14px}.action-copy small{font-size:9px}.action-plus{display:none}}
@media(min-width:1000px){.meal-grid[data-count="7"] .meal-thumb:first-child{height:52px}}
@media(min-width:600px){table{min-width:0}.scroll-hint{display:none!important}}
