/* Under the page: pull the torn top edge down, or the bottom edge up, to uncover
   a small arm working on the mat. */
.bench { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; visibility: hidden; opacity: 0; transition: opacity .15s linear; }
.bench.is-ready { opacity: 1; }
.bench-visible .bench { visibility: visible; }
.bench-open .bench { pointer-events: auto; cursor: grab; touch-action: none; }
.bench-open .bench:active { cursor: grabbing; }
html.bench-open { overflow: hidden; }
.sheet { z-index: 1; transform-origin: 50% 0; transition: transform .25s ease, box-shadow .4s ease; }
.sheet.is-dragging { transition: box-shadow .3s ease; }
.sheet.is-settling { transition: transform .7s cubic-bezier(.2, .8, .2, 1), box-shadow .7s ease; }
/* Lifted off the mat, the page casts a longer, softer shadow. */
.bench-visible .sheet { box-shadow: 0 2px 3px #0000001f, 0 30px 60px -12px #00000080, 0 8px 18px -4px #00000033; }
.sheet:has(> .tear-handle-top:hover) { transform: translateY(5px) rotate(.25deg); }
.sheet:has(> .tear-handle-bottom:hover) { transform: translateY(-5px) rotate(-.25deg); }
.tear-handle { position: absolute; left: 0; right: 0; z-index: 2; height: 30px; padding: 0; border: 0; background: transparent; cursor: grab; touch-action: none; }
.tear-handle:active { cursor: grabbing; }
.tear-handle:focus-visible { outline-offset: -6px; }
.tear-handle-top { top: -20px; }
.tear-handle-bottom { bottom: 0; }
