/* Generic modal shell (components/common/Modal.tsx) — used by Edit Profile
   from the account dashboard. */
.sw-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 28, 0.55);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.sw-modal-panel {
  position: relative;
  background: #fff;
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.sw-modal-panel.lg {
  max-width: 760px;
}
.sw-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid #f0f0f0;
}
.sw-modal-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.sw-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f3f3f3;
  color: #555;
  cursor: pointer;
  font-size: 14px;
  flex: 0 0 auto;
}
.sw-modal-close:hover {
  background: #e6e6e6;
}
.sw-modal-body {
  padding: 24px 26px 28px;
}

@media (max-width: 480px) {
  .sw-modal-panel {
    max-height: 94vh;
  }
  .sw-modal-body {
    padding: 20px;
  }
}
