/* Keep result controls and helper actions reachable on narrow screens. */
@media (max-width: 700px) {
  .result-band .draw-main {
    /* Override the legacy compact sheet's forced two-column layout. */
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 12px !important;
  }

  .result-band .draw-numbers {
    grid-column: 1;
    grid-row: 2;
  }

  .result-band .scratch-button {
    grid-column: 1 !important;
    grid-row: 3 !important;
    justify-self: end;
    flex-direction: row;
    gap: 6px;
    width: auto;
    min-width: 88px;
    height: 44px;
    min-height: 44px;
    padding: 6px 12px;
  }

  .result-band .c28-draw-chime-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .result-band .equation {
    flex-wrap: wrap;
    font-size: 18px !important;
  }

  .result-band .equation > .ball {
    flex-shrink: 0;
  }

  .result-band .tags {
    flex-wrap: wrap;
  }

  .float-actions {
    position: static;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 0 16px calc(80px + env(safe-area-inset-bottom));
  }
}
