body.survey {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: max(24px, env(safe-area-inset-top)) clamp(20px, 4vw, 48px) max(20px, env(safe-area-inset-bottom));
}
#sheet { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; touch-action: none; cursor: crosshair; }
.survey-top, .survey-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; pointer-events: none; }
.survey-top > *, .survey-foot > * { pointer-events: auto; }
.survey-top { align-items: flex-start; }
.survey-foot { grid-row: 3; align-items: center; min-height: 44px; }
.survey-foot a { padding: 12px 0; }
.survey-mark { font-size: 26px; margin-top: 8px; }
/* The mark sits on a patch of paper, as the sheet does, so the drawing passes
   behind it rather than through its outlined letters. The patch reaches past
   the line's overhang and past where the line rests on hover. It is part of
   the link, so the pointer leaves the drawing as it reaches the mark. */
.survey-mark::before { content: ""; position: absolute; inset: -0.55em -0.5em; z-index: -1; background: var(--bg); }
.survey-sheet { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 8px 10px; background: var(--bg); }
.survey-sheet { padding: 10px 12px; margin: -10px -12px 0 0; }
.survey-kicker { color: var(--fg); letter-spacing: 0.2em; }
.survey-sheet #sheet-no { color: var(--fg); }
.survey-keep {
  appearance: none; background: none; border: 0; padding: 8px 0 0; cursor: pointer;
  font-family: var(--font-label); font-size: 11px; letter-spacing: var(--label-tracking); text-transform: var(--label-transform);
  color: var(--fg);
  text-decoration: underline; text-underline-offset: 0.35em; text-decoration-color: var(--accent); text-decoration-thickness: 2px;
}
.survey-foot .label { background: var(--bg); padding: 4px 6px; }
html:not(.js) .survey-sheet { visibility: hidden; }
@media (max-width: 520px) { .survey-mark { font-size: 22px; } }
