/* Narrow-screen layout pass: keep every action reachable without horizontal scrolling. */
@media (max-width: 700px) {
  body { overflow-x: hidden; }
  .grow { min-width: 0; }
  .row { min-width: 0; }
  .row > * { min-width: 0; }
  .topbar { gap: 10px; }
  .topbar .outline, .topbar .ghost { padding: 9px 11px; font-size: 12px; }
  .account { min-width: 0; }
  .accountName { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .content { padding: 20px 13px; }
  .hero h1 { font-size: clamp(30px, 9vw, 38px); }
  .hero p { font-size: 14px; }
  .badge-banner { flex-wrap: wrap; align-items: flex-start; }
  .badge-banner .pill { margin-left: 0; }
  .waiting-card, .mission-intro { display: flex; flex-direction: column; align-items: flex-start; }
  .raid-campaign > .row { display: block; }
  .raid-campaign > .row .secondary-action { width: 100%; margin-top: 10px; }
  .raid-action { flex-wrap: wrap; }
  .raid-action .grow { flex: 1 1 calc(100% - 48px); }
  .raid-action .queue-meta { width: 100%; padding-left: 46px; text-align: left; white-space: normal; }
  .raid-evidence { width: 100%; }
  .share-id { align-items: flex-start; flex-wrap: wrap; }
  .share-id b { overflow-wrap: anywhere; }
  .table { display: block; overflow-x: auto; white-space: nowrap; }
  .reward-strip { grid-template-columns: 1fr !important; }
  .reward-strip .stat { grid-column: auto !important; }
  .section-heading h2 { font-size: 24px; }
  .city-map { height: 205px; }
  .map-district { max-width: 42%; overflow-wrap: anywhere; }
  .map-road { height: 36px; }
  .gate-actions > *, .button-row > * { width: 100%; flex: 1 1 100%; text-align: center; }
}

.raid-appeal-form { display: grid; gap: 8px; margin-top: 8px; }

@media (max-width: 500px) {
  .wizard-card { padding: 16px; }
  .wizard-progress { margin-bottom: 24px; }
  .wizard-task > p { font-size: 14px; }
  .wizard-task > .primary { width: 100%; }
  .wizard-template { font-size: 11px; overflow-wrap: anywhere; }
  .summary-list b { overflow-wrap: anywhere; }
  .invite-fields input { font-size: 16px; }
  .raid-campaign { padding: 15px; }
  .raid-actions { margin-top: 12px; }
  .raid-action { padding: 12px; }
  .raid-action .icon { flex: none; }
}
