/* Shared by a.html and b.html. */
@view-transition { navigation: auto; }
::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 700ms; }
#lt { view-transition-name: stage; display: block; }
h1 { view-transition-name: heading; }
/* Shader mode: the new page's canvas starts on a picture of the old page's canvas and draws the change itself.
   The old snapshot stays underneath until the canvas has drawn its first frame. */
.handover::view-transition-old(stage) { animation: none; opacity: 1; }
.handover::view-transition-new(stage) { animation: none; opacity: 1; mix-blend-mode: normal; }
live-transition:not(:defined) > :not(:first-child) { display: none; }
.state { box-sizing: border-box; height: 100%; padding: 18px 20px; border-radius: 14px; font: 15px/1.4 system-ui; display: grid; gap: 8px; align-content: center; }
.state h2 { margin: 0; font-size: 22px; }
.state p { margin: 0; }
.state input { font: inherit; padding: 5px 7px; max-width: 100%; box-sizing: border-box; }
#lt > img { display: block; width: 100%; height: 100%; }
.clock { font: 600 13px var(--mono); }
