/* Keep the home screen accessible on short windows and touch devices. */
@media (max-width: 560px) {
  html:has(#home:not([hidden])), body:has(#home:not([hidden])) { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; }
  body:has(#home:not([hidden])) { min-height: 100dvh; grid-template-rows: 132px auto 28px; }
  #home:not([hidden]) { height: auto; min-height: 0; grid-template-columns: minmax(0,1fr); grid-template-rows: clamp(230px, 70vw, 350px) repeat(2, clamp(120px, 36vw, 190px)) auto; gap: 20px; padding: 12px 0 18px; }
  #home .hero { grid-row: 1; grid-column: 1; }
  #home .dock-wrap { grid-column: 1; grid-row: 2; }
  #home .dock-wrap.secondary { grid-row: 3; }
  #home #status { grid-row: 4; grid-column: 1; }
  #home .hint { font-size: 10px; letter-spacing: .8px; }
  #home .label strong { font-size: clamp(9px, 2.45vw, 14px); overflow-wrap: anywhere; }
  #home .ivory-stage { width: min(110cqw, 138cqh); }
}
@media (min-width: 561px) and (max-height: 600px) {
  html:has(#home:not([hidden])), body:has(#home:not([hidden])) { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; }
  body:has(#home:not([hidden])) { height: 700px; }
}
