:root {
  --ssp-black: #000000;
  --ssp-graphite: #1f2a30;
  --ssp-steel: #8b9ca3;
  --ssp-blue: #1e3a5f;
  --ssp-blue-light: #2c5282;
  --ssp-accent: #c9a227;
  --ssp-bg: #f8fafb;
  --ssp-surface: #ffffff;
  --ssp-border: #e2e8ec;
  --ssp-text: #1a202c;
  --ssp-text-muted: #6b7780;
  --ssp-danger: #c53030;
  --ssp-success: #2f855a;
  --ssp-warning: #b7791f;
  --ssp-info: #2b6cb0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.18);
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Roboto', 'Segoe UI', Tahoma, sans-serif;
  background-color: var(--ssp-bg);
  color: var(--ssp-text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 760px) {
  .input, .select, .textarea, input[type="text"], input[type="password"],
  input[type="email"], input[type="tel"], input[type="date"], input[type="number"],
  input[type="file"], select, textarea {
    font-size: 16px;
  }
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; }
a { color: var(--ssp-blue-light); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 { color: var(--ssp-graphite); margin: 0 0 12px; }

/* ----------------- Buttons ----------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ssp-blue); color: white; }
.btn-primary:hover { background: var(--ssp-blue-light); color: white; }
.btn-secondary { background: white; color: var(--ssp-text); border-color: var(--ssp-border); }
.btn-secondary:hover { background: #f1f4f7; color: var(--ssp-text); }
.btn-danger { background: var(--ssp-danger); color: white; }
.btn-danger:hover { background: #9b2c2c; color: white; }
.btn-warning { background: var(--ssp-accent); color: var(--ssp-graphite); }
.btn-warning:hover { background: #b08d1e; color: var(--ssp-graphite); }
.btn-icon { padding: 6px 10px; font-size: 13px; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ----------------- Inputs ----------------- */
.input, .select, .textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--ssp-border);
  border-radius: 4px;
  background: white;
  color: var(--ssp-text);
  transition: border-color 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--ssp-blue-light);
  box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.15);
}
.textarea { resize: vertical; min-height: 90px; }

.label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ssp-text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-field { display: flex; flex-direction: column; margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }

.input[type="file"] {
  padding: 7px 10px;
  background: var(--ssp-bg);
}

/* ----------------- Card ----------------- */
.card {
  background: var(--ssp-surface);
  border: 1px solid var(--ssp-border);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}
.card-padded { padding: 18px 20px; }
.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--ssp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.card-header-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ssp-graphite);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--ssp-border);
  background: #fbfcfd;
}

/* ----------------- Layout shell ----------------- */
.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--ssp-bg);
}
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.app-content {
  flex: 1;
  padding: 24px 28px;
  overflow-x: auto;
}

/* ----------------- Sidebar ----------------- */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: linear-gradient(180deg, #000000 0%, #1f2a30 50%, #000000 100%);
  color: #e6edf2;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 4px solid var(--ssp-accent);
}
.sidebar-brand img { width: 42px; height: auto; }
.sidebar-brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: 1px;
  color: #ffffff;
}
.sidebar-brand span {
  font-size: 11px;
  color: #b5c1c9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sidebar-nav {
  flex: 1;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 4px;
  color: #cfd6dc;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  text-decoration: none;
}
.sidebar-item.active {
  background: rgba(201, 162, 39, 0.18);
  color: #ffffff;
  border-left: 3px solid var(--ssp-accent);
  padding-left: 11px;
}
.sidebar-item-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}
.sidebar-item-label { flex: 1; }
.sidebar-item-tag {
  font-size: 9px;
  padding: 2px 6px;
  background: rgba(201, 162, 39, 0.25);
  color: #f0d97e;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8b9ca3;
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ----------------- Header ----------------- */
.app-header {
  background: white;
  border-bottom: 1px solid var(--ssp-border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 30;
}
.app-header-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: var(--ssp-bg);
  border: 1px solid var(--ssp-border);
  flex-shrink: 0;
}
.app-header-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ssp-graphite);
  border-radius: 1px;
}
.app-header-toggle:hover { background: white; }
.app-header-title { flex: 1; min-width: 0; }
.app-header-title h1 {
  margin: 0;
  font-size: 18px;
  color: var(--ssp-graphite);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-header-title span {
  font-size: 11px;
  color: var(--ssp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-header-user {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.user-info strong {
  font-size: 13px;
  color: var(--ssp-text);
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-info span { font-size: 11px; color: var(--ssp-text-muted); }
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ssp-blue) 0%, var(--ssp-blue-light) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.header-logout .logout-icon { display: none; font-size: 18px; }

/* ----------------- Sidebar mobile ----------------- */
.sidebar-backdrop { display: none; }

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    z-index: 50;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-open .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 49;
    animation: backdropIn 0.18s ease;
  }
  .app-content { padding: 14px; }
  .app-header { padding: 10px 14px; gap: 10px; }
  .app-header-toggle { display: flex; }
  .app-header-title h1 { font-size: 15px; }
  .app-header-title span { display: none; }
  .user-info { display: none; }
}

@media (max-width: 560px) {
  .app-header-title h1 { font-size: 13px; }
  .header-logout .logout-text { display: none; }
  .header-logout .logout-icon { display: inline; }
  .header-logout { padding: 6px 9px; }
}

@keyframes backdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ----------------- Page header ----------------- */
.page-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-header-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.page-header-left h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ssp-graphite);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.page-header-count {
  font-size: 12px;
  color: var(--ssp-text-muted);
  background: var(--ssp-bg);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid var(--ssp-border);
}
.page-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.page-header-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ssp-text-muted);
}
.page-header-meta strong { color: var(--ssp-text); }

/* ----------------- Table ----------------- */
.data-table-wrapper { overflow: hidden; }
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table thead th {
  background: var(--ssp-bg);
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ssp-text-muted);
  border-bottom: 1px solid var(--ssp-border);
  font-weight: 600;
  white-space: nowrap;
}
.data-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--ssp-border);
  font-size: 13px;
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #fafbfc; }
.data-table tbody tr.row-danger { background: #fff5f5; }
.data-table tbody tr.row-danger:hover { background: #ffe9e9; }
.data-table code {
  background: var(--ssp-bg);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  color: var(--ssp-graphite);
}
.row-actions { display: flex; gap: 6px; }
.col-center { text-align: center; }

/* ----------------- Badges ----------------- */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-secondary { background: var(--ssp-bg); color: var(--ssp-text); border: 1px solid var(--ssp-border); }
.badge-primary { background: rgba(30, 58, 95, 0.12); color: var(--ssp-blue); }
.badge-danger { background: rgba(197, 48, 48, 0.12); color: var(--ssp-danger); }
.badge-success { background: rgba(47, 133, 90, 0.12); color: var(--ssp-success); }
.badge-warning { background: rgba(201, 162, 39, 0.18); color: #946a00; }
.badge-dark { background: var(--ssp-graphite); color: white; }

/* ----------------- Alerts (flash) ----------------- */
.alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 14px;
  border: 1px solid transparent;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.alert-success { background: #f0fdf4; color: var(--ssp-success); border-color: #bbf7d0; }
.alert-danger  { background: #fef2f2; color: var(--ssp-danger); border-color: #fecaca; }
.alert-warning { background: #fffbeb; color: #946a00; border-color: #fde68a; }
.alert-info    { background: #eff6ff; color: var(--ssp-info); border-color: #bfdbfe; }
.alert-secondary { background: var(--ssp-bg); color: var(--ssp-text); border-color: var(--ssp-border); }
.alert-close {
  color: inherit;
  font-size: 18px;
  line-height: 1;
  opacity: 0.6;
  padding: 0 4px;
}
.alert-close:hover { opacity: 1; }

/* ----------------- Pagination ----------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 6px 10px;
  border: 1px solid var(--ssp-border);
  border-radius: 4px;
  background: white;
  color: var(--ssp-text);
  font-size: 13px;
  text-decoration: none;
}
.pagination a:hover { background: var(--ssp-bg); text-decoration: none; }
.pagination .active { background: var(--ssp-blue); color: white; border-color: var(--ssp-blue); }
.pagination .disabled { opacity: 0.45; pointer-events: none; }
.pagination-info {
  text-align: center;
  font-size: 12px;
  color: var(--ssp-text-muted);
  margin-top: 8px;
}

/* ----------------- Empty state ----------------- */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--ssp-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.empty-icon { font-size: 48px; line-height: 1; opacity: 0.5; }
.empty-state p { margin: 0; font-size: 15px; color: var(--ssp-text); }
.empty-state small { font-size: 12px; color: var(--ssp-text-muted); }

/* ----------------- Login ----------------- */
.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #000000 0%, #1f2a30 45%, #8b9ca3 100%);
  padding: 20px;
  overflow: hidden;
}
.login-overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(201,162,39,0.06) 0, transparent 35%);
  pointer-events: none;
}
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 8px;
  padding: 38px 36px 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  border-top: 4px solid var(--ssp-accent);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ssp-border);
}
.login-brand img { width: 64px; height: auto; }
.login-brand h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--ssp-graphite);
  letter-spacing: 1px;
}
.login-brand p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ssp-text-muted);
  line-height: 1.3;
}
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-submit {
  margin-top: 6px;
  padding: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}
.login-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--ssp-border);
  text-align: center;
  font-size: 11px;
  color: var(--ssp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
@media (max-width: 480px) {
  .login-page { padding: 12px; align-items: stretch; }
  .login-card { padding: 26px 20px 22px; max-width: none; }
  .login-brand { gap: 10px; margin-bottom: 22px; padding-bottom: 16px; }
  .login-brand img { width: 52px; }
  .login-brand h1 { font-size: 18px; }
  .login-brand p { font-size: 11px; }
  .login-submit { padding: 14px; font-size: 15px; }
}

/* ----------------- Utilities ----------------- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.text-muted { color: var(--ssp-text-muted); }
.text-danger { color: var(--ssp-danger); }
.text-success { color: var(--ssp-success); }
.text-small { font-size: 12px; }
.divider {
  border: 0;
  border-top: 1px solid var(--ssp-border);
  margin: 16px 0;
}
.section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ssp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px;
}

/* ----------------- Mobile: table -> cards (eventos) ----------------- */
@media (max-width: 760px) {
  .page-header {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
  }
  .page-header-actions { flex-direction: column; align-items: stretch; }
  .page-header-actions .btn { width: 100%; padding: 10px; }
}

@media (max-width: 700px) {
  .data-table.responsive thead { display: none; }
  .data-table.responsive,
  .data-table.responsive tbody,
  .data-table.responsive tr,
  .data-table.responsive td { display: block; width: 100%; }
  .data-table.responsive tbody tr {
    border: 1px solid var(--ssp-border);
    border-radius: 8px;
    margin: 10px;
    padding: 12px 14px;
    background: white;
    box-shadow: var(--shadow-sm);
  }
  .data-table.responsive tbody tr:hover { background: white; }
  .data-table.responsive tbody td {
    padding: 5px 0;
    border-bottom: 1px dashed var(--ssp-border);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .data-table.responsive tbody td:last-of-type { border-bottom: none; }
  .data-table.responsive tbody td[data-label]::before {
    content: attr(data-label);
    font-size: 10px;
    color: var(--ssp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    flex-shrink: 0;
  }
}

/* ----------------- Filtros de busca ----------------- */
.filtros {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 14px 18px;
}
.filtros .form-field { margin: 0; }
.filtros-acoes {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
@media (max-width: 700px) {
  .filtros { flex-direction: column; align-items: stretch; }
  .filtros .form-field { flex: 1 1 auto !important; }
  .filtros-acoes { width: 100%; }
  .filtros-acoes .btn { flex: 1; }
}

/* ----------------- Linhas clicáveis ----------------- */
.linha-mandado { cursor: pointer; transition: background 0.12s; }
.linha-mandado:hover { background: #f1f6fb !important; }
.linha-mandado:focus-visible {
  outline: 2px solid var(--ssp-blue-light);
  outline-offset: -2px;
}
.linha-mandado:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--ssp-accent);
}

/* ----------------- Modal ----------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 30, 0.55);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  z-index: 100;
  overflow-y: auto;
}
.modal-overlay.open {
  display: flex;
  animation: backdropIn 0.15s ease;
}
.modal {
  background: var(--ssp-surface);
  border-radius: 8px;
  width: 100%;
  max-width: 640px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--ssp-accent);
  animation: modalIn 0.18s ease;
}
@keyframes modalIn {
  from { transform: translateY(-12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ssp-border);
}
.modal-header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--ssp-graphite);
}
.modal-close {
  font-size: 24px;
  line-height: 1;
  color: var(--ssp-text-muted);
  padding: 0 6px;
  border-radius: 4px;
}
.modal-close:hover { color: var(--ssp-text); background: var(--ssp-bg); }
.modal-body { padding: 18px 20px 22px; }
.modal-loading {
  text-align: center;
  color: var(--ssp-text-muted);
  padding: 30px 0;
}
.modal-status {
  font-weight: 600;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  text-align: center;
}
.modal-status.status-aberto { background: #fef2f2; color: var(--ssp-danger); border: 1px solid #fecaca; }
.modal-status.status-fechado { background: var(--ssp-bg); color: var(--ssp-text-muted); border: 1px solid var(--ssp-border); }
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ssp-border);
  border: 1px solid var(--ssp-border);
  border-radius: 6px;
  overflow: hidden;
}
.modal-row {
  background: var(--ssp-surface);
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.modal-key {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--ssp-text-muted);
  font-weight: 600;
}
.modal-val {
  font-size: 13px;
  color: var(--ssp-text);
  word-break: break-word;
}
@media (max-width: 560px) {
  .modal-overlay { padding: 16px 10px; }
  .modal-grid { grid-template-columns: 1fr; }
}
