/* Page-scoped editor and F06/F07/F12 presentation. No domain or global reset. */
body.supplement-editor-active .app:has(#main>.supplements-native){padding:0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));min-height:0}
body.supplement-editor-active #nav{display:none}
.supplement-editor-active .supplements-native{height:var(--visible-viewport-height,100dvh);display:flex;flex-direction:column;padding-top:max(8px,env(safe-area-inset-top));box-sizing:border-box}
.supplement-editor-active .supplement-native-header{height:auto;min-height:56px;flex-shrink:0;margin:0 0 8px;gap:8px;position:relative}
.supplement-editor-active .supplement-native-header h1{max-width:none;font-size:22px;line-height:28px;flex:1;letter-spacing:-.03em}
.supplement-editor-active #supplement-native-settings-open{display:none}
.supplement-editor-active .supplement-daily-status:not([hidden]){margin:0 0 8px;font-size:12px;line-height:18px}
.supplement-editor-active .supplement-native-settings{display:none}
.supplements-native .supplement-editor-mobile{padding:0;margin:0;border:0;background:none;border-radius:0;min-height:0;flex:1}
.supplements-native .supplement-editor-mobile form{display:flex;flex-direction:column;height:100%;min-height:0;margin:0;gap:0}
.supplement-editor-mobile .supplement-editor-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;border-bottom:1px solid #303a45;flex-shrink:0;padding:0 0 8px}
.supplement-editor-mobile .supplement-editor-steps button{background:transparent;color:#a6b0bc;font-size:13px;font-weight:600;min-height:52px;padding:6px 2px;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:6px}
.supplement-editor-mobile .supplement-editor-steps button span{display:grid;place-items:center;width:22px;height:22px;border:1px solid #46515d;border-radius:50%;font-size:12px;flex-shrink:0}
.supplement-editor-mobile .supplement-editor-steps button[aria-pressed=true]{color:#d4ff5a;background:#d4ff5a0a}
.supplement-editor-mobile .supplement-editor-steps button[aria-pressed=true] span{color:#101318;background:#d4ff5a;border-color:#d4ff5a}
.supplement-editor-mobile .supplement-editor-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 2px 12px;scroll-padding:12px}
.supplement-editor-mobile .supplement-editor-page{display:grid;gap:16px}
.supplement-editor-mobile .supplement-editor-caption h2{font-size:23px;line-height:29px;margin:0;color:#f6f8fa;letter-spacing:-.025em}
.supplement-editor-mobile .supplement-editor-caption p{font-size:14px;line-height:21px;color:#a6b0bc;margin:6px 0 0}
.supplements-native .supplement-editor-mobile label{margin:0;font-size:14px;line-height:20px;color:#b8c2cd;min-width:0}
.supplements-native .supplement-editor-mobile input,.supplements-native .supplement-editor-mobile select{width:100%;min-height:52px;margin:6px 0 0;padding:12px;border:1px solid #3b4955;border-radius:12px;background:#19222b;font-size:16px;color:#f6f8fa}
.supplement-editor-mobile .supplement-dose-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:12px}
.supplements-native .supplement-editor-mobile .supplement-editor-info{font-size:13px;line-height:20px;color:#a6b0bc;margin:0}
.supplement-editor-mobile .supplement-editor-next{display:flex;align-items:center;justify-content:space-between;color:#d4ff5a;background:transparent;text-align:left;border-top:1px solid #303a45;border-radius:0;min-height:48px;padding:10px 0;font-size:14px}
.supplement-editor-mobile .supplement-editor-next span{font-size:22px}
.supplements-native .supplement-editor-mobile .supplement-days{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.supplement-editor-mobile .supplement-days legend{font-size:14px;line-height:20px;margin:0 0 8px}
.supplements-native .supplement-editor-mobile .supplement-days input{min-height:48px;height:100%;margin:0;padding:0}
.supplement-editor-mobile .supplement-days label{min-height:48px;min-width:0}
.supplement-editor-mobile .supplement-days span{min-height:48px;font-size:14px;border-radius:12px}
.supplement-editor-mobile .supplement-editor-footer{height:auto;display:block;background:#101318;border-top:1px solid #303a45;flex-shrink:0;padding:12px 0 max(12px,env(safe-area-inset-bottom));margin:0}
.supplement-editor-mobile .supplement-editor-footer>div{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:12px}
.supplement-editor-mobile .supplement-editor-footer button{min-height:52px;font-size:16px;border-radius:16px;padding:12px}
.supplement-editor-mobile .supplement-editor-footer .secondary{background:#202a33;color:#c4ced8}
.supplement-editor-mobile .supplement-editor-error{font-size:13px;line-height:20px;color:#ffb4ab;margin:0 0 8px}
.supplement-editor-mobile .supplement-editor-archive{width:100%;background:transparent;color:#ffb4ab;min-height:48px;padding:8px;font-size:14px}
.supplement-editor-mobile .supplement-reminder-settings{padding:0 12px;border-color:#35414d;border-radius:14px;background:#19222b}
.supplement-editor-mobile .supplement-reminder-settings p{font-size:12px;line-height:18px;margin:8px 0}
.supplement-editor-mobile .supplement-reminder-settings summary{min-height:48px}
.supplements-native .supplement-editor-mobile .supplement-reminder-switch{min-height:48px;margin:0;gap:12px;font-size:13px;line-height:19px}
.supplements-native .supplement-editor-mobile .supplement-reminder-switch input{width:24px;height:24px;min-height:24px;flex:0 0 24px;margin:0}
.supplements-native .supplement-editor-mobile label>small{font-size:12px;line-height:18px;margin-top:4px}
.supplements-native[data-ionic-mode=ios] .supplement-editor-footer button{border-radius:12px}
.supplements-native[data-ionic-mode=md] :is(button,summary){min-height:48px}
.supplements-native[data-ionic-mode=md] ion-button::part(native){min-height:48px}
.supplements-native[data-ionic-mode=md] :is(.supplement-native-header>button,.supplement-native-header>ion-button,.supplement-native-date>button,.supplement-native-date>ion-button,.supplement-native-options,.supplement-correction>summary,.supplement-native-library-card>button,.supplement-native-library-card>ion-button){width:48px;min-width:48px;flex-basis:48px}
.supplements-native[data-ionic-mode=md] .supplement-native-header>ion-button,.supplements-native[data-ionic-mode=md] .supplement-native-library-card>ion-button{height:48px}
.supplements-native[data-ionic-mode=md] .supplement-native-date{grid-template-columns:48px minmax(0,1fr) 48px}
.supplements-native[data-ionic-mode=md] #supplement-daily-new{flex-basis:48px;min-width:48px}
.supplements-native[data-ionic-mode=md] .supplement-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:clamp(2px,.8vw,5px)}
/* Give text the whole first row. Water remains a compact secondary action. */




.supplements-native .supplement-native-row-head>.supplement-check{flex:1;min-width:0}
.supplements-native .supplement-check>span{min-width:0}
.supplements-native .supplement-check strong,.supplements-native .supplement-check small{overflow-wrap:anywhere}
.supplements-native .supplement-note{display:block;font-size:13px;color:#a6b0bc;line-height:20px;margin-top:4px}
.supplements-native .supplement-note>summary{font-size:13px;min-height:48px;align-content:center;cursor:pointer;list-style:revert}
.supplements-native .supplement-note p{font-size:13px;line-height:20px;margin:0 0 6px;overflow-wrap:anywhere}
#supplement-correction-sheet .nutrition-sheet-heading{padding-top:20px}
#supplement-correction-sheet :is(button,.nutrition-sheet-close){min-width:48px;min-height:48px}
@media(max-height:700px){.supplement-editor-mobile .supplement-editor-body{padding-top:12px}.supplement-editor-mobile .supplement-editor-page{gap:12px}.supplement-editor-mobile .supplement-editor-caption h2{font-size:21px;line-height:26px}.supplement-editor-mobile .supplement-editor-caption p{margin-top:4px;font-size:13px;line-height:19px}.supplement-editor-mobile .supplement-editor-footer{padding-top:8px}.supplement-editor-mobile .supplement-editor-steps{padding-bottom:4px}.supplement-editor-mobile .supplement-editor-steps button{min-height:48px}}
@media(prefers-reduced-motion:no-preference){.supplement-editor-steps button{transition:background-color .15s,color .15s}}

@media(max-width:350px){.supplement-editor-mobile .supplement-editor-steps button span{display:none}.supplement-editor-active .supplement-native-header h1{font-size:20px}.supplement-editor-mobile .supplement-editor-page{gap:10px}}

.supplements-native .supplement-row>.supplement-note{grid-column:1 / -1;grid-row:2}
.supplements-native .supplement-row:has(>.supplement-note)>.water-supplement-compact{grid-row:3}
@media(min-width:420px){.supplements-native[data-ionic-mode=md] .supplement-week{grid-template-columns:repeat(7,minmax(0,1fr))}}
.supplement-editor-active #supplement-daily-status{padding:0;border:0;background:none;min-height:0}
.supplement-editor-mobile #supplement-editor-page-2{gap:12px}
@media(max-width:350px){.supplement-editor-mobile #supplement-editor-page-2{gap:10px}}
.supplements-native[data-ionic-mode=ios] :is(button,summary){min-height:44px}
.supplements-native[data-ionic-mode=ios] .supplement-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}


/* v242: water and correction share one action row. */
.supplements-native .supplement-row:has(.supplement-row-actions){display:block}
.supplements-native .supplement-row:has(.supplement-row-actions)>.supplement-native-row-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px}
.supplements-native .supplement-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.supplements-native .supplement-row-actions>.supplement-correction{flex:0 0 auto}
.supplements-native .supplement-row-actions .water-supplement.water-supplement-compact{display:flex;padding:0;margin:0;max-width:102px;flex:0 0 auto}
.supplements-native .supplement-row-actions .water-supplement-compact>button,.supplements-native .supplement-row-actions .water-supplement-compact>ion-button{height:48px;min-height:48px}
.supplements-native .supplement-row-actions .water-supplement-compact>ion-button::part(native){min-height:48px}
.supplements-native .supplement-row-actions>.supplement-native-options,.supplements-native .supplement-row-actions .supplement-correction>summary{position:static;margin:0}
.supplements-native .supplement-water-configured{display:grid;place-items:center;width:32px;min-height:48px;color:#8edfff;flex:0 0 32px}
.supplements-native .supplement-water-configured svg{width:20px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6}
.supplements-native .supplement-row.has-long-name>.supplement-native-row-head{grid-template-columns:minmax(0,1fr)}
.supplements-native .supplement-row.has-long-name .supplement-row-actions{justify-self:end}
.supplements-native .supplement-row-actions .water-supplement-compact>[role=status]:not([hidden]){max-width:110px}
@media(max-width:359px){.supplements-native .supplement-row.is-taken:has(.water-supplement-compact)>.supplement-native-row-head{grid-template-columns:minmax(0,1fr)}.supplements-native .supplement-row.is-taken .supplement-row-actions{justify-self:end}}
