:root {
  --bg: #eff3fa;
  --panel: #ffffff;
  --ink: #233056;
  --muted: #6b7698;
  --line: #dce3f0;
  --primary: #2e7fe8;
  --primary-strong: #1f64bf;
  --danger: #d64045;
  --danger-strong: #b92f34;
  --soft: #f3f7ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top right, #d8e6ff 0, var(--bg) 45%);
  color: var(--ink);
  overflow-x: hidden;
}

.app-shell {
  min-height: 100vh;
  padding: 24px;
  width: 100%;
}

.view {
  display: none;
}

.view-active {
  display: block;
}

.hidden {
  display: none !important;
}

.hero-card,
.panel-card,
.content-panel,
.sidebar,
.topbar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(23, 40, 84, 0.1);
}

.hero-card,
.login-card {
  max-width: 520px;
  margin: 60px auto;
  padding: 30px;
  text-align: center;
}

.logo {
  width: 170px;
  height: auto;
  object-fit: contain;
}

.logo-small {
  width: 140px;
  height: auto;
}

.logo-topbar {
  width: 120px;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
}

p {
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.stack-12 > * + * {
  margin-top: 12px;
}

.field-label {
  display: block;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  background: #fff;
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap .input {
  padding-right: 76px;
}

.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.password-toggle-btn:hover {
  background: #e8eefb;
}

.input-search {
  max-width: 360px;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-loading {
  position: relative;
  padding-left: 34px;
}

.btn-loading::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-secondary {
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: var(--danger-strong);
}

.btn-warning {
  background: #f59e0b;
  color: #fff;
}

.btn-warning:hover {
  background: #d97706;
}

.btn-success {
  background: #16a34a;
  color: #fff;
}

.btn-success:hover {
  background: #15803d;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.error-text {
  color: var(--danger);
  min-height: 20px;
  margin-top: 10px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f7f9fd 0%, #eef3fb 100%);
  border-color: #dbe3f2;
}

.topbar-left {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.topbar-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.topbar-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f0ff;
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-identity-line {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-left > div {
  min-width: 0;
}

.topbar-left h2 {
  overflow-wrap: anywhere;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
}

.dashboard-grid > * {
  min-width: 0;
}

.sidebar {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.tab-btn {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.tab-btn:hover {
  transform: translateY(-1px);
  border-color: #bfd2f6;
  box-shadow: 0 8px 18px rgba(31, 100, 191, 0.12);
}

.tab-btn-active {
  background: linear-gradient(180deg, #eff5ff 0%, #e7f0ff 100%);
  border-color: #9fc0f3;
  color: var(--primary-strong);
}

.tab.active {
  background: linear-gradient(180deg, #eff5ff 0%, #e7f0ff 100%);
  border-color: #9fc0f3;
  color: var(--primary-strong);
}

.content-panel {
  padding: 14px;
  min-height: 70vh;
  min-width: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
}

.panel-toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
  flex-wrap: wrap;
  min-width: 0;
  border: 1px solid #e7edf9;
  background: #f8fbff;
  border-radius: 14px;
  padding: 10px;
}

.toolbar-row-break {
  flex-basis: 100%;
}

.filter-reset-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.data-sources-row {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.stats-inline {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.offline-admin-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #d7e5fb;
  border-radius: 14px;
  background: linear-gradient(180deg, #edf5ff 0%, #f8fbff 100%);
}

.offline-admin-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.key-config-stack {
  gap: 8px;
}

.key-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.key-input-row .input {
  flex: 1 1 360px;
  min-width: 240px;
}

.key-config-stack .config-status {
  min-width: 0;
}

.key-config-stack .stats-inline {
  margin-left: 0;
  gap: 8px;
  flex-wrap: wrap;
}

/* Bouton ON/OFF global base de données */
.global-db-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
}

.global-db-toggle:last-child {
  flex-direction: column;
  align-items: flex-start;
}

.global-db-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: normal;
}

.btn-global-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.btn-refresh-sql {
  width: 100%;
}

.btn-global-toggle .toggle-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.btn-global-toggle.toggle-on {
  background: #ddf4e8;
  color: #1f7d4b;
}

.btn-global-toggle.toggle-on .toggle-indicator {
  background: #16a34a;
}

.btn-global-toggle.toggle-off {
  background: #fef2f2;
  color: #b91c1c;
}

.btn-global-toggle.toggle-off .toggle-indicator {
  background: #dc2626;
}

/* Etat initial avant chargement */
.btn-global-toggle:not(.toggle-on):not(.toggle-off) {
  background: var(--soft);
  color: var(--muted);
}
.btn-global-toggle:not(.toggle-on):not(.toggle-off) .toggle-indicator {
  background: var(--muted);
}

  /* ── Barre d'actions multiples ─────────────────────────────────────────────── */
  .bulk-bar {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: #fff8e1;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13px;
  }
  .bulk-count {
    font-weight: 700;
    color: #92400e;
    flex: 1;
  }
  .cb-cell {
    width: 36px;
    text-align: center;
    padding: 0 4px !important;
  }
  .cb-cell input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent, #2563eb);
  }

.stat-pill {
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

.spots-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.spots-stats[data-loading="true"] {
  opacity: 0.65;
}

.panel-toolbar .spots-stats,
.panel-toolbar .spots-substats {
  flex-basis: 100%;
}

.spots-substats {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.spot-substat-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.spot-substat-group-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.spot-substat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spot-substat-chip {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 999px;
  padding: 5px 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.spot-substat-chip strong {
  color: var(--primary-strong);
}

.spot-stat-card {
  border: 1px solid var(--line);
  background: #f8fbff;
  border-radius: 999px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.spot-stat-card strong {
  color: var(--primary-strong);
}

.toolbar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  min-width: 180px;
}

.toolbar-item-wide {
  min-width: min(420px, 100%);
  flex: 1 1 320px;
}

.toolbar-actions-group {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
}

.key-actions-group {
  align-items: center;
}

.config-status {
  min-width: 260px;
  font-size: 13px;
  font-weight: 600;
}

.config-status[data-tone="success"] {
  color: #15803d;
}

.config-status[data-tone="warning"] {
  color: #b45309;
}

.config-status[data-tone="error"] {
  color: #b91c1c;
}

.textarea-input {
  resize: vertical;
  min-height: 96px;
}

.editor-flags-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.checkbox-line input {
  width: 16px;
  height: 16px;
}

.input-select {
  min-width: 180px;
}

.input-select[multiple] {
  min-height: 146px;
  border-radius: 12px;
  padding: 6px;
}

.interest-select {
  min-width: 320px;
}

.interest-select optgroup {
  font-weight: 800;
  color: var(--primary-strong);
}

.interest-select option {
  padding: 3px 6px 3px 18px;
  font-weight: 400;
  color: var(--ink);
}

.table-error {
  color: #b91c1c;
  font-weight: 600;
}

.pagination-size {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font-size: 13px;
  color: var(--muted);
}

.pagination-size .input-select {
  min-width: 90px;
}

.pagination-bar .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.filter-select-actions {
  display: flex;
  gap: 8px;
}

.btn-mini {
  padding: 5px 10px;
  font-size: 12px;
}

.tab-content {
  display: none;
}

.tab-content-active {
  display: block;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
  background: #fff;
  box-shadow: 0 8px 20px rgba(21, 51, 111, 0.06);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

th {
  background: linear-gradient(180deg, #edf3ff 0%, #e8eefb 100%);
  color: var(--ink);
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}

.badge-yes {
  background: #ddf4e8;
  color: #1f7d4b;
}

.badge-no {
  background: #f2f2f4;
  color: #6a738a;
}

.badge-active {
  background: #ddf4e8;
  color: #1f7d4b;
}

.badge-inactive {
  background: #fef2f2;
  color: #b91c1c;
}

.badge-warn {
  background: #fff3cd;
  color: #92400e;
}

.badge-support-support {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-support-explorer {
  background: #d1fae5;
  color: #0f766e;
}

.badge-support-premium {
  background: #fef3c7;
  color: #b45309;
}

.badge-support-supporter {
  background: #ede9fe;
  color: #6d28d9;
}

.badge-support-founder {
  background: #fce7f3;
  color: #be185d;
}

.user-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-account-stack,
.user-status-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-meta-line {
  font-size: 12px;
  color: var(--muted);
  word-break: break-word;
}

.user-status-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spot-disabled-row {
  opacity: 0.55;
}

.support-tier-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.support-tier-hint {
  font-size: 12px;
  color: var(--muted);
}

.support-tier-select {
  min-width: 180px;
  font-size: 13px;
  padding: 8px 10px;
}

.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.row-actions .btn {
  flex: 0 0 auto;
}

.table-subcategory {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.row-link {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: #b7cff6;
  text-underline-offset: 3px;
}

.row-link:hover {
  color: var(--primary-strong);
}

.actions-cell {
  width: auto;
  min-width: 190px;
  white-space: nowrap;
}

#spotsTab table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

#usersTab th:last-child,
#usersTab td:last-child,
#spotsTab th:last-child,
#spotsTab td:last-child {
  min-width: 190px;
}

#spotsTab th:nth-child(6),
#spotsTab td:nth-child(6) {
  width: 280px;
  max-width: 280px;
}

#spotsTab td:nth-child(6) .row-link {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#spotsTab td:nth-child(7) .row-actions {
  flex-direction: column;
  align-items: stretch;
}

.users-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

.users-actions .btn {
  min-width: 0;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.users-actions .btn-danger {
  min-width: 0;
}

.pagination-bar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border: 1px solid #e8eefb;
  background: #fbfdff;
  border-radius: 12px;
  padding: 10px;
}

.pagination-info {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  min-width: 150px;
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 56, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
  z-index: 1200;
  padding: 16px;
}

.modal-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  width: min(860px, 100%);
  max-height: 85vh;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(20, 30, 56, 0.22);
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform 180ms ease;
}

.modal-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-card-compact {
  width: min(520px, 100%);
}

.modal-card-support {
  width: min(440px, calc(100vw - 24px));
  max-height: min(76vh, 560px);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.panel-help {
  margin: 6px 0 0;
  max-width: 640px;
  font-size: 13px;
  line-height: 1.45;
}

.modal-body {
  padding: 10px 14px 14px;
  overflow: auto;
  max-height: calc(85vh - 64px);
}

.modal-message {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
  white-space: pre-wrap;
}

.modal-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.support-tier-current-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 0 2px 2px;
}

.support-tier-current-label {
  display: inline;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.support-tier-current-badge:empty {
  display: none;
}

.support-tier-current-text {
  font-size: 12px;
}

.support-tier-grid-modal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.support-tier-option {
  width: 100%;
  border: 1px solid #dce6f7;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.support-tier-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(46, 127, 232, 0.12);
}

.support-tier-option-active {
  border-color: #7fb0f6;
  box-shadow: 0 12px 26px rgba(46, 127, 232, 0.16);
  background: linear-gradient(180deg, #fbfdff 0%, #f2f7ff 100%);
}

.support-tier-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.support-tier-option-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-strong);
}

.support-tier-option-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.support-tier-option-description {
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

.detail-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eef2fa;
}

.detail-row strong {
  color: var(--muted);
  font-size: 13px;
}

.detail-row span,
.detail-row pre {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
}

.toast-viewport {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(360px, calc(100vw - 24px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(20, 30, 56, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-info {
  background: #2e7fe8;
}

.toast-success {
  background: #2fa968;
}

.toast-warning {
  background: #e0b128;
}

.toast-error {
  background: #d64045;
}

.toast-icon {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1.4;
}

.toast-message {
  flex: 1 1 auto;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.toast-close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 900px) {
  .app-shell {
    padding: 12px;
  }

  .modal-card-support {
    width: min(420px, calc(100vw - 18px));
    max-height: min(86vh, 620px);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    flex-direction: row;
    overflow: auto;
  }

  .tab-btn {
    min-width: 140px;
  }

  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-toolbar {
    align-items: stretch;
  }

  .data-sources-row {
    flex-direction: column;
  }

  .global-db-toggle,
  .global-db-toggle:last-child {
    width: 100%;
    align-items: center;
    flex-direction: row;
  }

  .btn-refresh-sql {
    width: auto;
  }

  .stats-inline {
    margin-left: 0;
  }

  .toolbar-item,
  .input-select {
    min-width: 0;
    width: 100%;
  }

  .input-select[multiple] {
    min-height: 128px;
  }

  .pagination-bar {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .input-search {
    max-width: none;
  }

  .key-input-row .input {
    min-width: 0;
    width: 100%;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar .btn {
    width: 100%;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .support-tier-grid-modal {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .support-tier-option {
    min-height: 0;
    padding: 10px 11px;
  }

  .modal-header {
    align-items: flex-start;
    gap: 10px;
  }

  .modal-actions {
    flex-wrap: wrap;
  }

  .modal-actions .btn {
    flex: 1 1 140px;
  }

  .toast-viewport {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }
}
