/* One quiet transport, always aligned with the illustrated phone. */
:root { --demo-footer-space:calc(32px + env(safe-area-inset-bottom,0px)); }
html:has(#story) { scroll-padding-bottom:var(--demo-footer-space); }
body:has(#story) { padding-bottom:var(--demo-footer-space); }
.story .story-controls {
  display:block; width:var(--player-width,356px); max-width:100%; margin-left:auto; margin-right:var(--player-inset,0px);
}
.story .stage-controls { display:flex; gap:24px; }
.story .stage-controls button { min-height:44px; padding:0; }
.story-player-slot {
  box-sizing:border-box; min-height:var(--demo-footer-space); padding-top:4px;
  width:var(--player-width,356px); max-width:100%; margin-left:auto; margin-right:var(--player-inset,0px);
}
.story-player-dock { visibility:visible; }
.story-player-slot.is-docked .story-player-dock {
  position:fixed; left:var(--player-left); bottom:0; z-index:80;
  box-sizing:border-box; width:var(--player-width); height:var(--demo-footer-space);
  padding:4px 0 env(safe-area-inset-bottom,0px);
  background:#f7f9f6;
}
.story-player-slot.is-unavailable .story-player-dock { visibility:hidden; pointer-events:none; }
.story-player {
  box-sizing:border-box; display:grid; grid-template-columns:28px minmax(0,1fr) auto;
  align-items:center; gap:6px; height:28px; width:100%; margin:0;
  padding:0 6px 0 0; border:0; border-radius:0; background:transparent; color:#397770;
}
.story-player .playback {
  width:28px; height:28px; padding:0; display:grid; place-items:center;
  border:0; border-radius:4px; background:transparent; color:inherit;
}
.story-player .playback:hover { background:#edf3ef; }
.story-player .playback .icon { width:12px; height:12px; }
#story-time { font-size:11px; color:#667a72; font-variant-numeric:tabular-nums; white-space:nowrap; }
#story-seek {
  appearance:none; -webkit-appearance:none; min-width:0; width:100%; height:28px;
  margin:0; padding:0; cursor:pointer; background:transparent; border:0;
}
#story-seek::-webkit-slider-runnable-track {
  height:2px; border-radius:2px;
  background:linear-gradient(to right,#397770 var(--seek-progress,0%),#dce6df var(--seek-progress,0%));
}
#story-seek::-webkit-slider-thumb {
  appearance:none; -webkit-appearance:none; width:7px; height:7px;
  margin-top:-2.5px; border-radius:50%; background:#397770; border:0;
}
#story-seek::-moz-range-track { height:2px; border-radius:2px; background:#dce6df; }
#story-seek::-moz-range-progress { height:2px; background:#397770; }
#story-seek::-moz-range-thumb { width:7px; height:7px; border:0; border-radius:50%; background:#397770; }
#story-seek:focus-visible { outline:2px solid #17666d; outline-offset:1px; border-radius:4px; }
