html[data-tmd-app="true"] .sitebar,
html[data-tmd-app="true"] .tb-back { display: none; }
html[data-tmd-app="true"] .topbar { margin-bottom: 0; }
html[data-tmd-app="true"] #checkMenu { left: 0; right: auto; }
@media (max-width: 559px) {
  /* The hidden back link leaves an empty 44px grid column on phones. */
  html[data-tmd-app="true"] .tb-mid { grid-column: 1 / -1; justify-content: center; min-height: 24px; }
}
@media (max-height: 700px) {
  /* Native chrome and split view can leave too little height for a fixed
     crossword plus keyboard. Keep the complete board and clue reachable. */
  html[data-tmd-app="true"] { height: 100%; overflow-y: auto; }
  html[data-tmd-app="true"] body { height: auto; min-height: 100dvh; overflow: visible; }
  html[data-tmd-app="true"] .app { flex: none; overflow: visible; }
  html[data-tmd-app="true"] .gridarea { flex: none; overflow: visible; }
}
