:root {
  --bg-0: #030813;
  --bg-1: #071224;
  --bg-2: #0b1930;
  --panel: rgba(7, 18, 36, 0.78);
  --panel-strong: rgba(8, 22, 42, 0.92);
  --border: rgba(118, 175, 255, 0.18);
  --line: rgba(163, 205, 255, 0.11);
  --text: #e8f3ff;
  --muted: #94a9c5;
  --accent: #57a5ff;
  --accent-strong: #78beff;
  --danger: #ff5170;
  --shadow: 0 26px 80px rgba(1, 6, 14, 0.62);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(30, 89, 177, 0.18), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(72, 143, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #02050d 0%, #08101f 45%, #03060f 100%);
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.backdrop-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(118, 175, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 175, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 95%);
  pointer-events: none;
}

.backdrop-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.28;
  pointer-events: none;
}

.orb-left {
  top: -120px;
  left: -90px;
  background: radial-gradient(circle, rgba(30, 96, 211, 0.7) 0%, rgba(6, 23, 50, 0) 72%);
  animation: drift 14s ease-in-out infinite alternate;
}

.orb-right {
  top: 14%;
  right: -160px;
  background: radial-gradient(circle, rgba(74, 173, 255, 0.52) 0%, rgba(6, 23, 50, 0) 72%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

.site-shell {
  width: min(1520px, calc(100% - 40px));
  margin: 0 auto;
}

.chrome {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(3, 8, 19, 0.58);
  border-bottom: 1px solid rgba(126, 183, 255, 0.08);
}

.chrome-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  height: 56px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

.main-nav a:hover,
.text-link:hover {
  color: var(--accent-strong);
}

.logout-form {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.logout-form form {
  margin: 0;
}

.language-select {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(131, 188, 255, 0.16);
  background: rgba(5, 13, 26, 0.88);
  color: var(--text);
  font: inherit;
}

.field .language-select {
  width: 100%;
}

.operator-chip,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(9, 24, 46, 0.82);
  color: var(--text);
  font-size: 0.88rem;
}

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

.role-badge-admin {
  color: #dff0ff;
  border-color: rgba(120, 190, 255, 0.28);
  background: rgba(18, 45, 82, 0.9);
}

.role-badge-user {
  background: rgba(7, 18, 36, 0.78);
}

.role-badge-donor {
  color: #f6f4dc;
  border-color: rgba(255, 217, 105, 0.24);
  background: rgba(64, 46, 8, 0.9);
}

.chip-alert {
  color: #ffd7de;
  border-color: rgba(255, 81, 112, 0.24);
  background: rgba(46, 10, 24, 0.9);
}

.content-shell {
  padding: 42px 0 80px;
}

.banner {
  margin-bottom: 26px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(120, 190, 255, 0.22);
  background: rgba(13, 30, 56, 0.88);
  box-shadow: var(--shadow);
}

.banner-error {
  border-color: rgba(255, 81, 112, 0.24);
  background: rgba(46, 10, 24, 0.9);
}

.hero-panel,
.auth-shell,
.editor-grid,
.stats-grid,
.feature-grid {
  display: grid;
  gap: 24px;
}

.hero-panel {
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  align-items: stretch;
}

.hero-panel-single {
  grid-template-columns: 1fr;
}

.hero-copy,
.hero-card,
.panel,
.feature-card,
.stat-card {
  position: relative;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(8, 20, 40, 0.88) 0%, rgba(5, 13, 26, 0.94) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy,
.hero-card,
.panel,
.feature-card {
  padding: 30px;
}

.hero-copy::before,
.hero-card::before,
.panel::before,
.feature-card::before,
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(92, 170, 255, 0.08), transparent 42%);
  pointer-events: none;
}

.eyebrow,
.feature-label {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: none;
  margin-bottom: 18px;
}

.title-single-line {
  white-space: nowrap;
}

h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.lead {
  font-size: 1.06rem;
  line-height: 1.75;
  max-width: 60ch;
  color: #b9cce3;
}

.lead.tight,
.tight {
  max-width: 44ch;
}

.hero-actions,
.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid rgba(120, 190, 255, 0.38);
  background: linear-gradient(135deg, #2f78ff 0%, #5ba8ff 100%);
  color: #03101f;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  box-shadow: 0 14px 40px rgba(37, 110, 214, 0.32);
}

.button-compact {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(37, 110, 214, 0.4);
}

.button-ghost {
  background: rgba(10, 24, 47, 0.7);
  color: var(--text);
}

.button-danger {
  background: linear-gradient(135deg, #822540 0%, #ff5170 100%);
  color: #fff;
  border-color: rgba(255, 81, 112, 0.36);
}

.button.wide {
  width: 100%;
}

.hero-card-header,
.hero-preview-top,
.preview-meta,
.section-head,
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hero-card-body {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.signal-line {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}

.signal-line span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(25, 64, 122, 0.5);
  border: 1px solid rgba(120, 190, 255, 0.18);
  font-weight: 700;
  color: var(--accent-strong);
}

.feature-grid {
  margin-top: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-preview {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
}

.hero-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 4px 0 6px;
}

.preview-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.preview-links li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  color: #d7e9ff;
  overflow-wrap: anywhere;
  border-bottom: 1px solid rgba(120, 190, 255, 0.08);
}

.preview-links span {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7cc5ff 0%, #2f78ff 100%);
  box-shadow: 0 0 16px rgba(87, 165, 255, 0.45);
}

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

.feature-card p:last-child {
  color: var(--muted);
  line-height: 1.75;
}

.auth-shell {
  grid-template-columns: minmax(0, 520px) minmax(280px, 1fr);
  align-items: stretch;
}

.auth-shell-single {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.auth-panel-wide {
  width: 100%;
}

.stack-form {
  display: grid;
  gap: 18px;
}

.auth-actions-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 10px;
}

.field span {
  color: #dbe9ff;
  font-weight: 600;
}

.field-note {
  margin: -6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

input,
textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(131, 188, 255, 0.16);
  background: rgba(5, 13, 26, 0.88);
  color: var(--text);
  outline: none;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

textarea {
  resize: vertical;
  min-height: 280px;
  line-height: 1.7;
}

input:focus,
textarea:focus {
  border-color: rgba(120, 190, 255, 0.52);
  box-shadow: 0 0 0 4px rgba(87, 165, 255, 0.12);
  transform: translateY(-1px);
}

.detail-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 10px;
  line-height: 1.6;
}

.section-head {
  margin-bottom: 26px;
}

.section-head-stack > div {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.admin-toolbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.registration-toggle-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.support-expiry {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-donor-box {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(120, 190, 255, 0.08);
  display: grid;
  gap: 16px;
}

.admin-ip-box {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(120, 190, 255, 0.08);
  display: grid;
  gap: 16px;
}

.admin-donor-head h3 {
  margin: 0;
  font-size: 1.08rem;
}

.admin-donor-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.donation-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: 54px 28px 26px;
  border-radius: 24px;
  border: 2px solid rgba(255, 88, 88, 0.78);
  background:
    radial-gradient(circle at top right, rgba(255, 108, 108, 0.22) 0%, rgba(255, 108, 108, 0) 40%),
    radial-gradient(circle at bottom left, rgba(255, 170, 72, 0.18) 0%, rgba(255, 170, 72, 0) 34%),
    linear-gradient(135deg, rgba(82, 8, 13, 0.98) 0%, rgba(33, 5, 10, 0.98) 100%);
  box-shadow:
    0 22px 52px rgba(68, 6, 10, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: donationPulse 1.05s steps(2, end) infinite;
}

.donation-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(-45deg,
      rgba(255, 255, 255, 0.04) 0 16px,
      rgba(255, 112, 112, 0.12) 16px 32px);
  opacity: 0.22;
  pointer-events: none;
  animation: donationStripeShift 9s linear infinite;
}

.donation-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(90deg, #ff5252 0%, #ff9f43 50%, #ff5252 100%);
  box-shadow: 0 0 22px rgba(255, 91, 91, 0.7);
}

.donation-banner-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.donation-alert-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 197, 197, 0.3);
  background: rgba(255, 244, 244, 0.08);
  color: #fff0f0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.donation-banner-copy strong {
  font-size: 1.34rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff7f7;
  text-shadow: 0 0 20px rgba(255, 96, 96, 0.28);
}

.donation-banner-copy p {
  margin: 0;
  color: #ffe4e4;
  line-height: 1.7;
  font-size: 1rem;
}

.donation-banner-meta {
  width: fit-content;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 202, 202, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff2f2;
  font-weight: 700;
}

.donation-banner-note {
  padding-left: 14px;
  border-left: 3px solid rgba(255, 166, 97, 0.88);
  color: #ffd5bf;
  font-weight: 700;
}

.donation-banner-button {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  min-width: 220px;
  border-color: rgba(255, 191, 128, 0.46);
  background: linear-gradient(135deg, #ffb14a 0%, #ffd772 100%);
  color: #3d1005;
  box-shadow: 0 18px 36px rgba(255, 140, 67, 0.32);
}

.donation-banner-button:hover {
  box-shadow: 0 22px 42px rgba(255, 126, 47, 0.42);
}

.dashboard-logo {
  display: block;
  width: min(560px, 100%);
  height: auto;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 24px;
}

.stat-card {
  padding: 26px 28px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}

.stat-card strong {
  font-size: clamp(1.8rem, 2vw, 2.6rem);
  letter-spacing: -0.04em;
}

.panel-head-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: min(320px, 100%);
}

.dashboard-search {
  width: 100%;
}

.table-shell {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid rgba(120, 190, 255, 0.09);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table-compact th,
.data-table-compact td {
  padding: 14px 16px;
}

.data-table th,
.data-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(120, 190, 255, 0.08);
}

.data-table th {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.inline-form {
  margin: 0;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.text-button:hover {
  color: var(--accent-strong);
}

.empty-state {
  text-align: center;
  padding: 34px 20px 8px;
}

.empty-state-compact {
  padding: 22px 0 4px;
}

.table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pagination-link {
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(120, 190, 255, 0.14);
  background: rgba(7, 18, 36, 0.64);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.pagination-link:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 190, 255, 0.28);
}

.pagination-link.is-active {
  border-color: rgba(120, 190, 255, 0.34);
  background: rgba(18, 45, 82, 0.9);
  color: #dff0ff;
}

.per-page-control {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
}

.per-page-control .language-select {
  min-width: 96px;
}

.editor-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  align-items: start;
}

.editor-grid-single {
  grid-template-columns: 1fr;
}

.preview-panel {
  position: sticky;
  top: 112px;
}

.preview-meta {
  margin: 24px 0;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(120, 190, 255, 0.11);
  background: rgba(7, 18, 36, 0.56);
  flex-direction: column;
}

.preview-meta span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.preview-meta strong {
  font-size: 1.2rem;
}

.mono-text {
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}

.inset-panel {
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(11, 27, 52, 0.92) 0%, rgba(5, 13, 26, 0.98) 100%);
}

.link-result-shell {
  display: grid;
  justify-items: center;
}

.link-result-panel {
  width: min(1320px, 100%);
  display: grid;
  gap: 18px;
}

.link-result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.link-output {
  width: 100%;
  min-height: 58px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(131, 188, 255, 0.16);
  background: rgba(5, 13, 26, 0.88);
  color: var(--text);
  font: inherit;
}

.toast-notice {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  min-width: 180px;
  max-width: min(320px, calc(100vw - 40px));
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(120, 190, 255, 0.16);
  background: rgba(7, 18, 36, 0.72);
  color: var(--text);
  box-shadow: 0 20px 46px rgba(1, 6, 14, 0.34);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.page-public {
  background:
    linear-gradient(180deg, #02040a 0%, #050a13 100%);
}

.public-shell {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.public-view-shell {
  align-items: start;
}

.public-result-panel {
  gap: 24px;
}

.public-result-panel h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.public-result-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.public-copy-buffer {
  display: none;
}

.public-links {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.public-links li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(120, 190, 255, 0.08);
}

.public-links span {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7cc5ff 0%, #2f78ff 100%);
  box-shadow: 0 0 16px rgba(87, 165, 255, 0.45);
}

.public-links a {
  display: block;
  color: #d6ebff;
  overflow-wrap: anywhere;
}

.public-links a:hover {
  color: var(--accent-strong);
}

.container-title-cell {
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal-delay {
  animation-delay: 90ms;
}

.reveal-delay-2 {
  animation-delay: 180ms;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(30px, 18px, 0) scale(1.08);
  }
}

@keyframes donationPulse {
  0%, 100% {
    box-shadow:
      0 22px 52px rgba(68, 6, 10, 0.5),
      0 0 0 0 rgba(255, 86, 86, 0.3),
      inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 88, 88, 0.76);
  }
  50% {
    box-shadow:
      0 28px 62px rgba(92, 8, 14, 0.62),
      0 0 0 8px rgba(255, 86, 86, 0.14),
      inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 147, 147, 0.98);
  }
}

@keyframes donationStripeShift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(48px);
  }
}

@media (max-width: 980px) {
  .hero-panel,
  .auth-shell,
  .feature-grid,
  .stats-grid,
  .editor-grid,
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    position: static;
  }

  .chrome-inner,
  .section-head,
  .hero-card-header,
  .panel-head,
  .admin-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .title-single-line {
    white-space: normal;
  }
}

@media (max-width: 720px) {
  .site-shell,
  .public-shell {
    width: min(100% - 28px, 100%);
  }

  .content-shell {
    padding-top: 26px;
  }

  .hero-copy,
  .hero-card,
  .panel,
  .feature-card,
  .stat-card {
    padding: 22px;
    border-radius: 22px;
  }

  .main-nav,
  .logout-form,
  .hero-actions,
  .editor-actions,
  .actions-cell,
  .registration-toggle-form,
  .auth-actions-split {
    width: 100%;
  }

  .main-nav,
  .link-result-actions,
  .table-controls,
  .hero-actions,
  .editor-actions,
  .actions-cell,
  .registration-toggle-form,
  .donation-banner,
  .admin-donor-status {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-actions-split {
    grid-template-columns: 1fr;
  }

  .per-page-control {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2.3rem, 13vw, 3.4rem);
  }
}
