/* The sheet's foot (lib/sheet-keyboard.js): Save stays in reach whether the form is taller than its sheet or a
   keyboard covers the sheet's bottom. The sheet itself (a bottom sheet, a dialog, a side panel) is style.css's. */
/* A form taller than its sheet keeps Save at the sheet's foot (lib/sheet-keyboard.js sets .sk-pin on its submit row):
   sticky at the bottom of the scrolling body, full width over the body's 20 px side padding and over its bottom
   padding (a sticky box stops at the body's padding edge, so the row reaches over that padding to the sheet's edge),
   solid and above the content scrolling under it; with a keyboard up the float below (.sk-float) takes over. */
#sheet-root .sk-pin:not(.sk-float){position:sticky;bottom:calc(-26px - env(safe-area-inset-bottom));z-index:3;margin:10px -20px 0;padding:10px 20px calc(10px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line)}
/* A field typed in with the phone's keyboard up (lib/sheet-keyboard.js sets --kb, --sk-vh, --sk-h, --sk-s, --sk-w):
   the sheet ends at the keyboard and is at most the visible height, its form's submit row is pinned as a solid
   footer just above the keyboard, and the body keeps room under its content so no field stays under the footer. */
#sheet-root.sk-kb .sheet{bottom:var(--kb);max-height:var(--sk-vh)}
#sheet-root.sk-kb .sheet-body{padding-bottom:calc(var(--sk-h) + 24px)}
#sheet-root .sk-float{position:fixed;inset-inline-start:var(--sk-s);width:var(--sk-w);bottom:var(--kb);z-index:1;margin:0;box-sizing:border-box;opacity:1;transition:none;transform:none}
#sheet-root .sk-float:not(.btn){padding:10px 20px;background:var(--surface);border-top:1px solid var(--line)}
#sheet-root .btn.sk-float{inset-inline-start:calc(var(--sk-s) + 16px);width:calc(var(--sk-w) - 32px);bottom:calc(var(--kb) + 8px);box-shadow:var(--shadow)}#sheet-root .actions.sk-float:has(>.btn.pri,>.btn.acc){flex-direction:row;flex-wrap:nowrap}#sheet-root .actions.sk-float>:is(.btn.pri,.btn.acc){flex:1}
/* From 900 px the sheet is a dialog with rounded corners: the pinned row rounds with them (a phone on its side keeps
   its square side panel). */
@media (min-width:900px) and (min-height:500px){#sheet-root .sk-pin:not(.sk-float){border-radius:0 0 var(--r) var(--r)}}
