:root[data-keyboard] dialog[open]:not(#drawer):not(#feature-panel){top:calc(var(--keyboard-top,0px) + 12px);bottom:auto;margin-block:0;max-height:calc(var(--viewport-height,100dvh) - 24px)}
:root[data-keyboard] body:not(:has(.app)){padding-bottom:calc(var(--keyboard-inset,0px) + 24px)}
:root[data-keyboard] :is(input,textarea,select,[contenteditable=true]){scroll-margin-block:12px}
:root[data-keyboard] textarea{max-height:min(180px,calc(var(--viewport-height,100dvh) * .4))}
#food-editor{scroll-padding-block:80px}
:root[data-keyboard-compact] #food-editor{scroll-padding-block:12px}
:root[data-keyboard-compact] #food-editor :is(.editor-header,.form-actions){position:static}
.pull-refresh{position:fixed;left:50%;top:calc(env(safe-area-inset-top,0px) - 40px);z-index:2147483000;width:36px;height:36px;margin-left:-18px;border-radius:50%;background:var(--surface,#E6E9EF);color:var(--accent,#8839EF);box-shadow:0 2px 10px rgb(0 0 0 / .18);display:grid;place-items:center;opacity:0;pointer-events:none;transform:translateY(var(--pull-offset,0px));transition:opacity .15s}
.pull-refresh.is-visible{opacity:1}
.pull-refresh-icon{width:18px;height:18px;border:2.5px solid currentColor;border-top-color:transparent;border-radius:50%;transform:rotate(calc(var(--pull-progress,0) * 270deg));opacity:calc(.35 + var(--pull-progress,0) * .65)}
.pull-refresh.is-refreshing{transform:translateY(72px);transition:transform .15s,opacity .15s}
.pull-refresh.is-refreshing .pull-refresh-icon{opacity:1;animation:pull-refresh-spin .7s linear infinite}
@keyframes pull-refresh-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.pull-refresh.is-refreshing .pull-refresh-icon{animation-duration:2s}}
