/* v232: Water page and its existing dialogs only. The home card keeps its styles. */
.water-mobile .water-hero{border:1px solid #3c515fb3;border-radius:24px;background:linear-gradient(135deg,#202c36,#17212b);padding:20px 16px;margin:0 0 16px;box-shadow:inset 0 1px 0 #d9f6ff05}
.water-mobile .water-hero-body{display:grid;grid-template-columns:minmax(0,1fr) 128px;grid-template-rows:auto auto auto 1fr auto auto;gap:0 12px;min-height:194px;align-items:start}
.water-mobile .water-mobile-amount{display:contents}
.water-mobile .water-page-glass{grid-column:2;grid-row:1/7;align-self:center;justify-self:center;width:128px;height:166px;margin:0;filter:none}
.water-mobile .water-total-label{grid-column:1;grid-row:1;font-size:14px;line-height:20px;order:initial;margin:4px 0 8px}
.water-mobile #water-page-total{grid-column:1;grid-row:2;font-size:40px;line-height:44px;letter-spacing:-.045em;margin:0;order:initial;white-space:normal;overflow-wrap:normal;font-variant-numeric:tabular-nums}
.water-mobile #water-page-target{grid-column:1;grid-row:3;font-size:14px;line-height:20px;margin:8px 0 0;order:initial}
.water-mobile #water-page-caption{grid-column:1;grid-row:5;border-top:1px solid #3c515f;margin:16px 0 4px;padding-top:12px;font-size:14px;line-height:20px;font-weight:650;order:initial;color:#69d2f7}
.water-mobile #water-page-plain{grid-column:1;grid-row:6;font-size:12px;line-height:18px;margin:0;order:initial;color:#a6b0bc}
.water-mobile .water-page-glass .water-liquid{transition:transform 420ms cubic-bezier(.2,.75,.25,1),opacity 160ms ease}
.water-mobile .water-page-glass.is-static .water-liquid{transition:none}
.water-mobile .water-page-glass .water-glass-outline{stroke:#b5e2f2;stroke-width:.9;stroke-opacity:.7}
.water-mobile .water-page-glass .water-glass-reflection{stroke:#e0f7ff;stroke-width:2;stroke-opacity:.55}
.water-mobile .water-page-glass .water-glass-rim{stroke:#cbefff;stroke-width:.75;stroke-opacity:.65}
.water-mobile .water-page-glass .water-glass-delta{display:none}
.water-mobile .water-shortcuts-heading{margin-bottom:8px;min-height:44px}
.water-mobile .water-shortcuts-heading h2{font-size:18px;line-height:24px;margin:0}
.water-mobile .water-page-quick .water-shortcut{border-radius:20px;padding:14px 8px 8px;min-height:124px;gap:7px;border-color:#3c515f;background:linear-gradient(150deg,#202b35,#19222b);box-shadow:inset 0 1px 0 #e5f7ff05}
.water-mobile .water-shortcut>svg{width:26px;height:30px;stroke:#c4dfe9}
.water-mobile .water-shortcut>strong{font-size:15px;line-height:21px;font-weight:650}
.water-mobile .water-shortcut>span.water-shortcut-amount{display:flex;align-items:center;justify-content:center;align-self:stretch;min-height:36px;border:1px solid #3d6578;border-radius:12px;background:#69d2f70b;color:#7ddcfa;font-size:15px;line-height:20px;font-weight:700;white-space:nowrap;padding:5px 2px;margin-top:2px}
.water-mobile .water-shortcut:active{transform:scale(.98);background:#263c48}
.water-mobile .water-shortcut:focus-visible{outline:2px solid #69d2f7;outline-offset:3px}
.water-mobile .water-shortcuts-hint{margin:8px 0 12px;font-size:12px}
.water-mobile .water-custom-open{border-color:#69d2f7;border-radius:14px;min-height:48px;font-size:16px;font-weight:650}
.water-mobile .water-page-undo:not(:empty){margin-top:12px;min-height:48px;padding:3px 12px;border-radius:14px;display:flex;align-items:center;justify-content:space-between;background:#1b252e;border-color:#344551}
.water-mobile .water-page-undo button{padding:8px;min-height:44px;color:#69d2f7}
.water-mobile .water-page-journal{margin:24px 0 16px}
.water-mobile .water-section-heading{align-items:center;margin-bottom:10px;gap:12px}
.water-mobile .water-section-heading h2{font-size:18px;line-height:24px}
.water-mobile #water-page-history{padding:0 12px;border-radius:20px;background:linear-gradient(135deg,#1e2932,#18212a);border-color:#344551}
.water-mobile .water-journal-row{min-height:64px;padding:8px 0;grid-template-columns:24px minmax(0,1fr) auto 44px;gap:8px;border-color:#35434d}
.water-mobile .water-journal-row:last-child{border-bottom:0}
.water-mobile .water-journal-amount{font-size:16px;font-weight:700}
.water-mobile .water-drink-row strong{font-size:16px;line-height:22px}
.water-mobile .water-drink-row time{font-size:12px;line-height:18px}
.water-mobile .water-mobile-row-actions>summary{font-size:24px;min-height:44px;border-radius:10px}
.water-mobile .water-mobile-row-actions[open]{z-index:5}
.water-mobile .water-mobile-row-actions[open]>button{position:absolute;right:0;top:44px;min-width:148px;min-height:44px;white-space:nowrap;background:#26343f;border:1px solid #465967;border-radius:12px;box-shadow:0 8px 24px #0005;padding:10px 14px;font-size:14px}
.water-mobile #water-page-show-all{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;color:#69d2f7;font-size:14px;font-weight:600;padding:8px 0;margin:0}
.water-mobile .water-mobile-week,.water-mobile .water-mobile-settings{background:#1b252e;border-color:#344551;border-radius:16px;margin:12px 0}
.water-mobile .water-mobile-week>summary,.water-mobile .water-mobile-settings>summary{min-height:52px;font-size:16px;color:#d8e6ee;gap:12px}
.water-mobile .water-mobile-settings>summary svg{width:22px;height:22px;fill:none;stroke:#a8c3d0;stroke-width:1.75}
/* Existing native drink sheet, with its original form and validation. */
#water-drink-sheet{background:linear-gradient(140deg,#202b35,#19222b);border-color:#3c515f}
#water-drink-sheet .nutrition-sheet-heading{padding-bottom:16px}
#water-drink-sheet .nutrition-sheet-heading p{display:none}
#water-drink-sheet .water-drink-types{margin-bottom:20px}
#water-drink-sheet .water-drink-types legend{font-size:14px;margin-bottom:8px}
#water-drink-sheet .water-drink-types label>span{min-height:72px;flex-direction:column;gap:5px;padding:9px;border-radius:16px;font-size:14px;line-height:20px;font-weight:600;background:#1a252f;border-color:#3a4e5b}
#water-drink-sheet .water-drink-types svg{width:25px;height:25px}
#water-drink-sheet .water-drink-types input:checked+span{background:#69d2f716;border-color:#69d2f7;color:#86e3ff;box-shadow:inset 0 0 0 1px #69d2f7}
#water-drink-sheet .water-drink-note{margin:0 0 4px;font-size:13px;line-height:20px}
#water-drink-sheet .water-drink-help{border:0;padding:0;margin:0 0 16px;background:none}
#water-drink-sheet .water-drink-help>summary{min-height:44px;color:#69d2f7;font-size:13px;align-content:center;cursor:pointer}
#water-drink-sheet .water-drink-help p{font-size:13px;line-height:20px;color:#a6b0bc}
#water-drink-sheet .water-drink-stepper{padding:4px;border-radius:16px;background:#151e27;gap:8px}
#water-drink-sheet .water-drink-stepper button{width:48px;height:48px;background:#26343f;border:1px solid #3b5261;color:#e1f3fb}
#water-drink-sheet .water-drink-stepper input{font-size:32px;min-height:56px;font-variant-numeric:tabular-nums}
#water-drink-sheet .daily-sheet-footer{background:#1b252e}
#water-drink-sheet .daily-sheet-footer button{font-size:16px;min-height:48px}
/* Personal shortcuts: same editor/state; more legible hierarchy and one scroll body. */
#water-shortcut-sheet.water-polish-sheet{--ink:#f6f8fa;--muted:#a6b0bc;box-sizing:border-box;inset:auto 0 var(--visible-viewport-bottom,0px);margin:0 auto;width:100%;max-width:480px;max-height:calc(var(--visible-viewport-height,100dvh) - 16px);padding:0;overflow:hidden;border:1px solid #3c515f;border-bottom:0;border-radius:24px 24px 0 0;background:linear-gradient(140deg,#202b35,#19222b);color:#f6f8fa}
#water-shortcut-sheet[open]{display:flex;flex-direction:column;animation:water-polish-enter 200ms ease-out}
#water-shortcut-sheet::backdrop{background:#070b10b8;backdrop-filter:none}
#water-shortcut-sheet .nutrition-sheet-handle{flex-shrink:0;margin:10px auto 12px;width:38px;height:4px;min-height:4px}
#water-shortcut-sheet .nutrition-sheet-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:0 16px 16px;margin:0;border:0;background:none;flex-shrink:0}
#water-shortcut-sheet .nutrition-sheet-heading h2{font-size:22px;line-height:28px;margin:0 0 4px}
#water-shortcut-sheet .nutrition-sheet-heading p{font-size:13px;line-height:20px;margin:0;color:#a6b0bc}
#water-shortcut-sheet .nutrition-sheet-close{flex-shrink:0;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:1px solid #3c515f;border-radius:12px;background:#26343f;font-size:27px}
#water-shortcut-sheet>.nutrition-sheet-content{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding:0 16px 16px}
#water-shortcut-sheet>footer{flex-shrink:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #344551;background:#1b252e}
#water-shortcut-sheet #water-shortcut-save{width:100%;min-height:48px;border-radius:14px;font-size:16px;margin:0;background:#69d2f7;color:#101318}
#water-shortcut-sheet .water-shortcut-edit-row{min-height:64px;padding:10px 12px;border-radius:14px;border-color:#354753;background:#19242e;margin-bottom:8px;gap:12px}
#water-shortcut-sheet .water-shortcut-edit-row.is-editing{border-color:#69d2f7;background:#69d2f70a}
#water-shortcut-sheet .water-shortcut-edit-row strong{font-size:16px;line-height:22px}
#water-shortcut-sheet .water-shortcut-edit-row small{font-size:13px;line-height:20px}
#water-shortcut-sheet .water-shortcut-edit-row>svg{width:25px;height:28px;fill:none;stroke:#c4dfe9;stroke-width:1.75}
#water-shortcut-sheet #water-shortcut-form{padding:16px;margin:16px 0 0;border-color:#344551;background:#151f28;border-radius:16px}
#water-shortcut-sheet label{font-size:14px;line-height:20px;margin-bottom:16px}
#water-shortcut-sheet input,#water-shortcut-sheet select{min-height:48px;border-radius:12px;font-size:16px;border-color:#3a4e5b;background:#111a22}
#water-shortcut-sheet .water-shortcut-stepper{gap:6px}
#water-shortcut-sheet .water-shortcut-stepper button{width:44px;flex-basis:44px;min-height:48px;border-radius:12px;background:#26343f;border-color:#3a4e5b}
#water-shortcut-sheet .water-shortcut-stepper input{font-size:24px;font-weight:700}
#water-shortcut-sheet .water-shortcut-presets{gap:6px}
#water-shortcut-sheet .water-shortcut-presets button{min-height:44px;font-size:14px;border-radius:12px;border-color:#3a4e5b;padding:6px 2px}
#water-shortcut-sheet #water-shortcut-remove{font-size:13px;min-height:44px;padding:8px;color:#f18b88}
#water-shortcut-sheet .water-shortcut-note,#water-shortcut-sheet #water-shortcut-error{font-size:13px;line-height:20px}
body:has(#water-shortcut-sheet[open]) #nav{visibility:hidden;pointer-events:none}
@keyframes water-polish-enter{from{opacity:.6;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:359px){.water-mobile .water-hero{padding:16px 12px}.water-mobile .water-hero-body{grid-template-columns:minmax(0,1fr) 96px;gap:0 8px;min-height:184px}.water-mobile .water-page-glass{width:96px;height:128px}.water-mobile #water-page-total{font-size:32px;line-height:38px}.water-mobile .water-total-label,.water-mobile #water-page-target,.water-mobile #water-page-caption{font-size:13px}.water-mobile .water-page-quick .water-shortcut{padding:12px 5px 7px}.water-mobile .water-shortcut>span.water-shortcut-amount{font-size:13px}.water-mobile .water-journal-row{gap:6px;grid-template-columns:22px minmax(0,1fr) auto 44px}.water-mobile .water-journal-amount{font-size:14px}#water-shortcut-sheet #water-shortcut-form{padding:12px}}
@media(prefers-reduced-motion:reduce){.water-mobile .water-page-glass .water-liquid{transition:none}.water-mobile .water-shortcut:active{transform:none}#water-shortcut-sheet[open]{animation:none}}
#water-drink-sheet .water-drink-unit{font-size:16px;line-height:24px;color:#b8d7e5;flex-shrink:0}
#water-shortcut-sheet .water-shortcut-edit-row>span:last-child>svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
#water-shortcut-sheet .water-shortcut-edit-row small{font-weight:400}
.water-mobile .water-hero-body{min-height:182px}
.water-mobile #water-page-total>span{white-space:nowrap}
.water-mobile #water-page-total>small{font-size:18px;line-height:24px;letter-spacing:0;font-weight:600;color:#d7e5ec}
.water-mobile .water-page-quick .water-shortcut{min-height:114px;padding:10px 6px 6px;gap:4px}
.water-mobile .water-shortcuts-hint{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.water-mobile .water-custom-open{margin-top:12px}
.water-mobile .water-page-undo:not(:empty){padding:0 12px}
.water-mobile .water-page-journal{margin-top:16px}
#water-drink-sheet .water-drink-value{display:flex;align-items:baseline;justify-content:center;gap:6px;flex:1;min-width:0}
#water-drink-sheet .water-drink-value input{flex:0 1 auto;width:5ch;max-width:calc(100% - 28px);min-width:0;padding:8px 0}
#water-drink-sheet .water-drink-value input::placeholder{font-size:16px;font-weight:400}
.water-mobile .water-page-undo button{text-decoration:none;font-weight:650}

/* v233: compact personal quantities editor, without shrinking touch targets. */
#water-shortcut-sheet #water-shortcut-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#water-shortcut-sheet .water-shortcut-edit-row{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:88px;padding:8px 4px;margin:0;text-align:center}
#water-shortcut-sheet .water-shortcut-edit-row>span:first-of-type{flex:0;gap:0;width:100%}
#water-shortcut-sheet .water-shortcut-edit-row>span:last-child{display:none}
#water-shortcut-sheet .water-shortcut-edit-row>svg{width:22px;height:24px}
#water-shortcut-sheet .water-shortcut-edit-row strong{font-size:14px;line-height:20px}
#water-shortcut-sheet .water-shortcut-edit-row small{font-size:12px;line-height:18px}
#water-shortcut-sheet #water-shortcut-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 10px;padding:12px;margin-top:12px}
#water-shortcut-sheet #water-shortcut-form>label{margin:0;min-width:0}
#water-shortcut-sheet #water-shortcut-form>label:nth-child(3),#water-shortcut-sheet .water-shortcut-presets,#water-shortcut-sheet #water-shortcut-remove{grid-column:1/-1}
#water-shortcut-sheet #water-shortcut-remove{margin:0;padding:4px;justify-self:center}
#water-shortcut-sheet .water-shortcut-note{margin:10px 0 0;font-size:12px;line-height:18px}
#water-shortcut-sheet .nutrition-sheet-heading{padding-bottom:12px}
#water-shortcut-sheet>.nutrition-sheet-content{flex:0 1 auto;padding-bottom:12px}
#water-shortcut-sheet .water-shortcut-presets button{margin:0}
