/* V262: Keep the four real student-account controls on one mobile row.
   Preserve the original buttons, IDs, auth handlers and desktop styling. */
@media (max-width: 700px) {
  #dashboard .welcomeControls {
    display: grid !important;
    grid-template-columns: minmax(0,1.08fr) minmax(0,.88fr) minmax(0,.76fr) minmax(0,1fr) !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: 5px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 8px 0 0 !important;
  }
  #dashboard .welcomeControls > .welcomeButtons {display: contents !important;}
  #dashboard .welcomeControls > .v258-account-button,
  #dashboard .welcomeControls > .welcomeButtons > button {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 43px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 2px !important;
    font-size: clamp(10px, 2.65vw, 13px) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    letter-spacing: -0.15px !important;
    text-align: center !important;
    flex: initial !important;
    overflow: hidden !important;
    text-overflow: clip !important;
  }
  #dashboard .welcomeControls > .v258-account-button {grid-column: 1 !important;}
  #dashboard .welcomeControls > .welcomeButtons > #studentInstallBtn {grid-column: 2 !important;}
  #dashboard .welcomeControls > .welcomeButtons > #printReport {grid-column: 3 !important;}
  #dashboard .welcomeControls > .welcomeButtons > #logout {grid-column: 4 !important;}
}
@media (max-width: 355px) {
  #dashboard .welcomeControls {gap: 3px !important;}
  #dashboard .welcomeControls > .v258-account-button,
  #dashboard .welcomeControls > .welcomeButtons > button {font-size: 10px !important; padding: 8px 1px !important;}
}
