/* MT9 2026-10-20: constrain intrinsic grid tracks instead of hiding overflow.
   A 515px min-content shell expanded Chromium's mobile layout viewport and
   placed the fixed paste-sheet actions outside the 390px visual viewport. */
.shell { grid-template-columns: minmax(0, 1fr); }
.stage, .landing, .capboard, .capboard__col, .result, .pane { min-width: 0; }
.capgroup__item > :last-child { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; gap: 0.6rem; }
  .topbar__brand, .topbar__nav { max-width: 100%; flex-wrap: wrap; }
  .capboard__grid { grid-template-columns: minmax(0, 1fr); }
  .landing__title { font-size: clamp(1.8rem, 8vw, 2.8rem); overflow-wrap: anywhere; }
  .cta-button { min-width: 0; max-width: 100%; padding-inline: 1.2rem; }
  .landing__trybtns { flex-wrap: wrap; justify-content: center; }
  .paste-sheet { width: 100%; height: 100dvh; overflow-y: auto; }
  .paste-sheet__panel { max-height: calc(100dvh - 2rem); overflow-y: auto; flex-shrink: 0; }
}
