:root {
  --bg-top: #f7f2e9;
  --bg-bottom: #e9eef5;
  --ink: #0f172a;
  --ink-soft: rgba(15, 23, 42, 0.68);
  --ink-softest: rgba(15, 23, 42, 0.46);
  --paper: rgba(255, 255, 255, 0.82);
  --paper-strong: rgba(255, 255, 255, 0.95);
  --paper-muted: rgba(15, 23, 42, 0.03);
  --line: rgba(15, 23, 42, 0.08);
  --gold: #d97706;
  --gold-deep: #92400e;
  --accent: var(--gold);
  --accent-soft: rgba(217, 119, 6, 0.12);
  --teal: #15806b;
  --teal-soft: rgba(21, 128, 107, 0.14);
  --rose: #c94f61;
  --rose-soft: rgba(201, 79, 97, 0.14);
  --sky: #475569;
  --sky-soft: rgba(71, 85, 105, 0.14);
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-muted: rgba(15, 23, 42, 0.04);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --shadow-xl: 0 28px 70px rgba(15, 23, 42, 0.14);
  --shadow-md: 0 16px 34px rgba(15, 23, 42, 0.1);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shell-width: min(1320px, calc(100vw - 20px));
  --shell-gap: clamp(8px, 0.9vw, 16px);
  --card-pad: clamp(14px, 1.35vw, 20px);
}

* {
  box-sizing: border-box;
}

html,
body,
* {
  scrollbar-width: none !important;
  scrollbar-color: transparent transparent !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

*::-webkit-scrollbar-track,
*::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-corner {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html {
  height: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
  scrollbar-gutter: auto;
}

body {
  height: 100%;
  margin: 0;
  min-height: 100vh;
  color-scheme: light;
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  background:
    radial-gradient(circle at 12% 14%, rgba(217, 119, 6, 0.12), transparent 22%),
    radial-gradient(circle at 88% 10%, rgba(71, 85, 105, 0.08), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(21, 128, 107, 0.07), transparent 32%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  overflow: hidden;
  overscroll-behavior: none;
  text-align: start;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.58), transparent 92%);
  pointer-events: none;
}

body:not(.login-page)::after,
.hero-card::before,
.login-hero::before {
  content: "";
  position: absolute;
  border-radius: 999px;
  opacity: 0.72;
  filter: blur(8px);
  pointer-events: none;
}

body:not(.login-page)::after {
  position: fixed;
  inset: auto -10vw -14vh -10vw;
  height: 42vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 119, 6, 0.14), transparent 56%),
    radial-gradient(circle at 20% 50%, rgba(71, 85, 105, 0.06), transparent 46%);
  filter: blur(26px);
  z-index: 0;
}

body.login-page::after {
  width: 260px;
  height: 260px;
  top: -70px;
  inset-inline-end: -40px;
  background: rgba(223, 154, 71, 0.18);
}

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

h1,
h2,
h3 {
  font-family: "IBM Plex Sans Arabic", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
}

a,
button,
input,
textarea,
select {
  font: inherit;
}

a,
button {
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, filter 160ms ease;
}

a:hover,
button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button,
.button,
.nav-link,
.top-action,
.inline-link {
  border: 0;
  border-radius: 18px;
  padding: 10px 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button,
.top-action,
.inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button-primary {
  background: linear-gradient(135deg, #8a4b00, #d97706 52%, #f59e0b);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.22);
}

.button-secondary,
.inline-link,
.top-action {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(120%);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
}

.button-danger {
  background: rgba(201, 79, 97, 0.12);
  color: #a51f38;
  border: 1px solid rgba(201, 79, 97, 0.16);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  border: 1px solid var(--border);
}

.button-block {
  width: 100%;
  margin-top: 20px;
}

button:hover,
.button:hover,
.nav-link:hover,
.top-action:hover,
.inline-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

button:focus-visible,
.button:focus-visible,
.nav-link:focus-visible,
.top-action:focus-visible,
.inline-link:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(223, 154, 71, 0.4);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(223, 154, 71, 0.12);
}

body:not(.send-page) .page-shell {
  position: relative;
  z-index: 1;
  width: var(--shell-width);
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: clamp(8px, 1vw, 14px) 0 clamp(10px, 1.1vw, 16px);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: var(--shell-gap);
  overflow: hidden;
  overflow-x: clip;
}

body:not(.send-page) #app-header {
  display: block;
  margin-bottom: 0;
}

body:not(.send-page) .page-shell > :last-child {
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body:not(.send-page) .metric-grid,
body:not(.send-page) .section-grid,
body:not(.send-page) .settings-stack,
body:not(.send-page) .hero-mini-grid,
body:not(.send-page) .fleet-grid {
  min-height: 0;
  margin-top: 0;
  align-content: start;
}

.loading-bar {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), var(--sky));
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
  z-index: 30;
}

.loading-bar.visible {
  opacity: 1;
  transform: scaleX(1);
}

.topbar,
.hero-card,
.card,
.login-card,
.login-hero,
.public-topbar {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  animation: fadeUp 700ms ease both;
}

.topbar,
.public-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(12px, 1.2vw, 18px);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(120%);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.24);
  color: #f8fafc;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, #7c2d12, #d97706 54%, #fbbf24);
  box-shadow: 0 18px 30px rgba(217, 119, 6, 0.2);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 250, 244, 0.5);
}

.topbar .brand-copy span,
.public-topbar .brand-copy span,
.topbar .muted,
.public-topbar .muted,
.topbar .small-note,
.public-topbar .small-note {
  color: rgba(248, 250, 252, 0.72);
}

.topbar .brand-copy strong,
.public-topbar .brand-copy strong {
  color: #fffaf4;
}

.brand-copy strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand-copy span,
.muted,
.section-copy,
.field-note,
.small-note,
.table-head,
small {
  color: var(--ink-soft);
}

.topbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.icon-link,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
}

.nav-link.active {
  background: linear-gradient(135deg, #8a4b00, #d97706 60%, #f59e0b);
  color: #ffffff;
  border-color: rgba(217, 119, 6, 0.28);
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.18);
}

.icon-glyph {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
  color: var(--ink-soft);
}

.language-picker select,
.input,
textarea,
select,
input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 252, 0.98));
  padding: 12px 14px;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.language-picker select {
  min-width: 116px;
  padding: 8px 10px;
  background: transparent;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(217, 119, 6, 0.52);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
  transform: translateY(-1px);
}

::placeholder {
  color: rgba(15, 23, 42, 0.36);
}

.hero-card,
.login-hero {
  margin-top: 14px;
  padding: clamp(16px, 1.6vw, 24px);
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.2), transparent 34%),
    linear-gradient(145deg, #101827, #182336 58%, #0b1220);
  color: #fffaf4;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(115%);
}

.hero-card::before,
.login-hero::before {
  width: 220px;
  height: 220px;
  inset-inline-end: -50px;
  bottom: -70px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.3), transparent 72%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
}

.hero-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #ffd28a);
  box-shadow: 0 0 18px rgba(217, 119, 6, 0.5);
}

.hero-title {
  margin-top: 18px;
  max-width: 840px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin-top: 14px;
  max-width: 760px;
  line-height: 1.9;
  color: rgba(255, 250, 244, 0.82);
}

.hero-metrics-card {
  padding: 16px;
}

.hero-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-metric {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  backdrop-filter: blur(10px);
}

.hero-metric span {
  display: block;
  color: rgba(255, 250, 244, 0.76);
  font-size: 0.92rem;
}

.hero-metric strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1;
}

.hero-metric-note {
  display: block;
  margin-top: 10px;
  color: rgba(255, 250, 244, 0.7);
  font-size: 0.78rem;
  line-height: 1.5;
}

.hero-metric-footnote {
  margin-top: 14px;
  color: rgba(255, 250, 244, 0.72);
  font-size: 0.84rem;
  text-align: center;
}

.metric-grid,
.section-grid,
.card-grid,
.list-stack,
.record-list,
.form-grid,
.hero-mini-grid,
.fleet-grid {
  display: grid;
  gap: clamp(10px, 1vw, 16px);
  min-width: 0;
}

.section-grid {
  align-items: start;
}

.metric-grid {
  margin-top: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
}

.metric-card,
.stat-card,
.info-card,
.item-card,
.record,
.empty-state,
.mini-box,
.tip-card {
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 252, 0.98));
  border: 1px solid var(--border);
  box-shadow: inset 0 3px 0 rgba(217, 119, 6, 0.12), var(--shadow-md);
  backdrop-filter: blur(14px) saturate(118%);
}

.metric-card,
.stat-card,
.info-card,
.item-card,
.record,
.empty-state,
.mini-box,
.tip-card {
  padding: var(--card-pad);
}

.metric-card strong,
.stat-card strong,
.info-card strong,
.mini-box strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
}

.metric-card,
.stat-card {
  text-align: center;
}

.metric-card .muted,
.stat-card .muted {
  display: block;
}

.section-grid {
  margin-top: 10px;
  align-items: start;
}

.section-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.section-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.card {
  padding: var(--card-pad);
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 252, 0.98));
  border: 1px solid var(--border);
  box-shadow: inset 0 3px 0 rgba(217, 119, 6, 0.12), var(--shadow-md);
  backdrop-filter: blur(18px) saturate(116%);
}

.card-large {
  padding: var(--card-pad);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.send-page-head {
  justify-content: flex-end;
  margin-bottom: 6px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  min-width: 0;
}

.record-head,
.table-cell-stack {
  display: grid;
  gap: 8px;
}

.record-head {
  margin-bottom: 8px;
}

.record-head .card-actions,
.record-actions {
  margin-top: 8px;
}

.small-note {
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

label,
.field {
  display: grid;
  gap: 8px;
}

textarea {
  min-height: 104px;
  overflow: hidden;
  resize: vertical;
  line-height: 1.7;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-grid {
  margin-top: 0;
}

.send-compose-shell,
.send-compose-main,
.send-compose-block,
.send-message-layout,
.send-tools-side,
.send-body-card,
.send-inline-tools,
.send-inline-block,
.attachment-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.send-compose-shell {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.send-compose-block {
  padding: var(--card-pad);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.99));
  border: 1px solid var(--border);
  box-shadow: inset 0 3px 0 rgba(217, 119, 6, 0.12), var(--shadow-md);
}

.send-inline-tools {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: start;
}

.send-message-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  align-items: start;
}

.send-tools-side {
  gap: 10px;
  align-content: start;
}

.send-body-card {
  padding: var(--card-pad);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(217, 119, 6, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.99));
  border: 1px solid var(--border);
  box-shadow: inset 0 3px 0 rgba(217, 119, 6, 0.12), var(--shadow-md);
}

.send-inline-block {
  padding: var(--card-pad);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.99));
  border: 1px solid var(--border);
  box-shadow: inset 0 3px 0 rgba(217, 119, 6, 0.12), var(--shadow-md);
}

.send-inline-head,
.send-inline-field {
  display: grid;
  gap: 8px;
}

.send-inline-head h3 {
  font-size: 0.98rem;
}

.attachments-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.attachments-picked-name {
  max-width: min(64%, 280px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
}

.send-inline-field > span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.send-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.send-field-head .chip-row {
  margin-top: 0;
  gap: 6px;
}

.recipients-inline-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.recipients-picked-name {
  max-width: min(62%, 280px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
}

.send-field-head .chip {
  padding: 5px 9px;
  font-size: 0.72rem;
}

.send-inline-field .actions-row {
  margin-top: 0;
}

.send-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.send-block-head h3 {
  font-size: 1rem;
}

.send-body-field textarea {
  min-height: 320px;
  line-height: 1.7;
}

.attachment-toolbar,
.send-actions {
  margin-top: 0;
}

#send-status,
#recipients-import-status,
#attachments-status {
  margin-top: 0;
}

body.send-page {
  overflow: hidden;
}

body.send-page .page-shell {
  height: 100dvh;
  max-height: 100dvh;
  padding: 16px 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 16px;
}

body.send-page .page-shell > :last-child {
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body.send-page #app-header,
body.send-page .hero-metrics-card,
body.send-page .section-grid {
  margin-bottom: 0;
  margin-top: 0;
}

body.send-page #app-header {
  min-height: 0;
}

body.send-page .hero-metrics-card {
  padding: clamp(10px, 1vw, 14px);
}

body.send-page .hero-metric {
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

body.send-page .hero-metric strong {
  margin-top: 6px;
  font-size: clamp(1.35rem, 1.8vw, 2rem);
}

body.send-page .hero-metric span {
  font-size: 0.82rem;
}

body.send-page .section-grid,
body.send-page .card-large,
body.send-page #campaign-form,
body.send-page .send-compose-shell,
body.send-page .send-compose-main,
body.send-page .send-message-layout,
body.send-page .send-tools-side,
body.send-page .send-body-card,
body.send-page .send-inline-tools {
  min-height: 0;
}

body.send-page .card-large {
  height: auto;
  align-self: start;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 10px;
  padding: 12px;
}

body.send-page #campaign-form {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 12px;
}

body.send-page .send-compose-shell {
  height: clamp(320px, 38vh, 460px);
  align-items: stretch;
  overflow: visible;
}

body.send-page .send-compose-main,
body.send-page .send-message-layout,
body.send-page .send-tools-side,
body.send-page .send-inline-tools {
  overflow: visible;
  padding-inline-end: 0;
  gap: 12px;
}

body.send-page .send-message-layout {
  height: 100%;
  align-items: stretch;
}

body.send-page .send-body-card,
body.send-page .send-body-field {
  min-height: 0;
}

body.send-page .send-body-field {
  display: grid;
  grid-template-rows: auto 1fr;
}

body.send-page .send-inline-block,
body.send-page .send-compose-block,
body.send-page .status-panel,
body.send-page .status-subpanel {
  padding: 12px 14px;
}

body.send-page .card-head,
body.send-page .status-stack,
body.send-page .status-stream,
body.send-page .status-inline,
body.send-page .attachment-list,
body.send-page .recipient-pill-grid,
body.send-page .recipient-activity-grid {
  gap: 12px;
}

body.send-page .form-grid,
body.send-page .send-compose-shell,
body.send-page .send-compose-main,
body.send-page .send-message-layout,
body.send-page .send-tools-side,
body.send-page .send-inline-tools,
body.send-page .send-inline-block {
  gap: 12px;
}

body.send-page .card-head {
  margin-bottom: 8px;
}

body.send-page .small-note,
body.send-page .field-note {
  line-height: 1.4;
  font-size: 0.78rem;
}

body.send-page .send-body-field textarea {
  min-height: 0;
  height: 100%;
}

body.send-page .actions-row {
  margin-top: 10px;
}

body.send-page .send-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

body.send-page .send-actions-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

body.send-page .send-actions #send-status {
  min-width: 0;
  margin-top: 0;
  padding: 10px 12px;
  align-self: stretch;
}

@media (max-height: 980px) {
  body.send-page .page-shell {
    padding: 10px 0;
    gap: 10px;
  }

  body.send-page .hero-metrics-card,
  body.send-page .card-large,
  body.send-page .send-body-card,
  body.send-page .send-compose-block,
  body.send-page .status-panel,
  body.send-page .status-subpanel {
    padding: 10px 12px;
  }

  body.send-page .hero-metric {
    padding: 10px 12px;
  }

  body.send-page .hero-metric strong {
    font-size: 1.2rem;
  }

  body.send-page .send-compose-shell {
    height: clamp(300px, 36vh, 420px);
  }

  body.send-page .send-body-field textarea {
    min-height: 210px;
    height: auto;
  }
}

@media (max-height: 900px) {
  body.send-page .card-head .small-note,
  body.send-page .send-block-head .small-note,
  body.send-page .field-note {
    display: none;
  }

  body.send-page .send-body-field textarea {
    min-height: 160px;
  }

  body.send-page .send-actions {
    grid-template-columns: 1fr;
  }
}

.table-wrap {
  overflow: hidden;
  max-width: 100%;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.mx-stats-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin: 14px 0 16px;
}

.help-records-toolbar {
  margin: 10px 0 14px;
}

.mx-stats-search {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.mx-stats-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.mx-stats-pager .small-note {
  white-space: nowrap;
}

.mx-blocked-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.mx-stats-card {
  margin-top: 12px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

th,
td {
  padding: 12px 10px;
  text-align: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
  word-break: break-word;
}

th {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

tbody tr:hover td {
  background: rgba(217, 119, 6, 0.03);
}

.list-stack {
  grid-template-columns: 1fr;
}

.item-card h3 {
  font-size: 1rem;
}

.item-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.fleet-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ip-events-head {
  margin-top: 18px;
}

.ip-find-badge {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ip-find-badge svg {
  width: 18px;
  height: 18px;
}

.ip-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 253, 0.98));
  border: 1px solid var(--border);
  box-shadow: inset 0 3px 0 rgba(217, 119, 6, 0.12), var(--shadow-md);
}

.ip-card.is-active {
  border-color: rgba(217, 119, 6, 0.26);
  box-shadow: inset 0 3px 0 rgba(217, 119, 6, 0.22), 0 18px 44px rgba(217, 119, 6, 0.14);
}

.ip-card::after {
  content: "";
  position: absolute;
  inset-inline-start: -28px;
  bottom: -34px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.14), transparent 70%);
}

.ip-head,
.row-between,
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ip-head {
  align-items: flex-start;
}

.ip-title {
  font-size: 1.08rem;
  font-weight: 700;
}

.ip-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ip-host {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.score-badge,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.score-badge {
  min-width: 68px;
  padding: 10px 12px;
  border-radius: 18px;
  font-weight: 700;
  background: rgba(217, 119, 6, 0.08);
}

.ip-find-badge {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: var(--accent);
}

.ip-find-badge:hover {
  border-color: rgba(217, 119, 6, 0.34);
  background: rgba(255, 255, 255, 0.96);
}

.chip-row,
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  min-width: 0;
}

.chip {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.chip.good,
.tone-good,
.progress-fill.good {
  background: var(--teal-soft);
  color: var(--teal);
}

.chip.warn,
.tone-warn,
.progress-fill.warn {
  background: rgba(214, 148, 67, 0.16);
  color: #8d581e;
}

.chip.risk,
.tone-risk,
.progress-fill.risk {
  background: var(--rose-soft);
  color: var(--rose);
}

.chip.info,
.tone-info,
.progress-fill.info {
  background: var(--sky-soft);
  color: var(--sky);
}

.chip.neutral,
.tone-neutral {
  background: rgba(15, 23, 42, 0.06);
  color: var(--ink);
}

.progress-stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.progress-meta {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.progress-track {
  position: relative;
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 220ms ease;
}

.hero-mini-grid {
  margin-top: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.status-panel {
  padding: var(--card-pad);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 249, 252, 0.98));
  border: 1px solid var(--border);
  box-shadow: inset 0 3px 0 rgba(217, 119, 6, 0.12), var(--shadow-md);
  line-height: 1.8;
}

.status-panel.good {
  background: linear-gradient(180deg, rgba(239, 253, 244, 0.98), rgba(248, 255, 250, 0.98));
  border-color: rgba(34, 197, 94, 0.18);
  box-shadow: inset 3px 0 0 rgba(34, 197, 94, 0.36), var(--shadow-md);
}

.status-panel.warn {
  background: linear-gradient(180deg, rgba(255, 248, 232, 0.98), rgba(255, 252, 244, 0.98));
  border-color: rgba(234, 179, 8, 0.18);
  box-shadow: inset 3px 0 0 rgba(234, 179, 8, 0.36), var(--shadow-md);
}

.status-panel.risk {
  background: linear-gradient(180deg, rgba(255, 238, 241, 0.98), rgba(255, 248, 250, 0.98));
  border-color: rgba(201, 79, 97, 0.18);
  box-shadow: inset 3px 0 0 rgba(201, 79, 97, 0.36), var(--shadow-md);
}

.send-chart-wrap {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.send-status-stack {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.send-status-progress {
  display: grid;
  gap: 8px;
}

.send-status-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.send-status-progress-fill {
  transition: width 280ms ease;
}

.send-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.send-chart-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
}

.send-chart-chip strong {
  font-size: 0.88rem;
}

.send-chart-chip.sent {
  background: rgba(114, 214, 157, 0.18);
  color: #2f8f63;
}

.send-chart-chip.failed {
  background: rgba(233, 105, 105, 0.18);
  color: #bb4343;
}

.send-chart-chip.bounced {
  background: rgba(214, 163, 61, 0.2);
  color: #9a6a17;
}

.send-chart-view {
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.99));
}

.send-chart-view svg {
  display: block;
  width: 100%;
  height: 100%;
}

.send-chart-grid {
  stroke: rgba(15, 23, 42, 0.08);
  stroke-width: 1;
  stroke-dasharray: 7 9;
}

.send-chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.send-chart-line.sent {
  stroke: #72d69d;
}

.send-chart-line.failed {
  stroke: #e96969;
}

.send-chart-line.bounced {
  stroke: #d6a33d;
}

.dashboard-send-chart {
  margin-bottom: 14px;
}

.dashboard-send-chart-view {
  height: 210px;
}

.status-stack {
  display: grid;
  gap: 14px;
}

.status-subpanel {
  display: grid;
  gap: 12px;
  padding: var(--card-pad);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
}

.status-subpanel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.status-panel-recipients {
  background:
    radial-gradient(circle at top right, rgba(21, 128, 107, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 252, 250, 0.98));
}

.status-panel-attachments {
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 252, 0.98));
}

.recipient-pill-grid,
.recipient-activity-grid {
  display: grid;
  gap: 12px;
}

.recipient-pill-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.recipient-pill-card,
.recipient-activity-card,
.attachment-card {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.98));
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.recipient-pill-card strong,
.recipient-activity-card strong,
.attachment-card strong {
  display: block;
  overflow-wrap: anywhere;
}

.attachment-card-head,
.attachment-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.attachment-card-meta {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  justify-content: flex-start;
}

.recipient-activity-head,
.recipient-activity-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.recipient-activity-meta {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  justify-content: flex-start;
}

.recipient-activity-detail {
  margin-top: 10px;
  color: var(--ink-soft);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.info-strip {
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  line-height: 1.7;
}

.info-strip.error {
  background: rgba(184, 78, 70, 0.08);
  color: var(--rose);
  border-color: rgba(184, 78, 70, 0.12);
}

.info-strip.warn {
  background: rgba(214, 148, 67, 0.1);
  color: #8d581e;
  border-color: rgba(214, 148, 67, 0.12);
}

.status-stream,
.status-inline {
  display: grid;
  gap: 10px;
}

.status-live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(20, 123, 115, 0.12);
  animation: pulse 1.8s ease infinite;
}

.status-dot.ok {
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(20, 123, 115, 0.12);
}

.status-dot.warn {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(214, 148, 67, 0.14);
}

.status-dot.error {
  background: var(--rose);
  box-shadow: 0 0 0 6px rgba(184, 78, 70, 0.12);
}

.empty-state {
  line-height: 1.8;
  color: var(--ink-soft);
}

.record-list {
  grid-template-columns: 1fr;
}

.settings-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.settings-health-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.settings-panel-shell,
.settings-panel,
.panel-box {
  min-width: 0;
}

.settings-toolbar {
  padding: var(--card-pad);
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.98));
}

.settings-stack {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.settings-panel[hidden] {
  display: none !important;
}

.recipients-toolbar {
  align-items: center;
}

.attachment-toolbar,
.recipients-toolbar {
  min-width: 0;
}

.file-picker-row {
  align-items: center;
}

.file-picker-row input[type="text"] {
  flex: 1 1 260px;
  min-width: 0;
}

.recipients-toolbar input[type="text"] {
  flex: 1 1 220px;
}

.progress-popup {
  position: fixed;
  inset-inline-end: 18px;
  top: 88px;
  width: min(360px, calc(100vw - 32px));
  z-index: 45;
  pointer-events: none;
}

.progress-popup-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.99));
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: inset 0 3px 0 rgba(217, 119, 6, 0.12), var(--shadow-xl);
  animation: fadeUp 180ms ease;
}

.progress-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.progress-popup .small-note {
  color: var(--ink-soft);
}

.settings-panel {
  padding: clamp(16px, 1.3vw, 22px);
  display: grid;
  gap: 16px;
}

.compact-head {
  margin-bottom: 14px;
}

.compact-actions {
  margin-top: 16px;
}

.panel-box {
  display: grid;
  gap: 16px;
  padding: var(--card-pad);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.field-inline {
  align-items: center;
}

.compact-field {
  width: min(320px, 100%);
}

pre.code-block {
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  overflow-x: hidden;
  overflow-y: visible;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
}

input,
select,
textarea,
button,
a {
  max-width: 100%;
}

.toast {
  position: fixed;
  inset-inline-start: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  color: #fffaf4;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 40;
}

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

.login-shell {
  min-height: 100dvh;
}

.login-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100dvh - 82px);
}

.login-card {
  width: min(520px, 100%);
  padding: clamp(20px, 2vw, 28px);
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.99));
  border: 1px solid var(--border);
  backdrop-filter: blur(22px) saturate(122%);
  box-shadow: inset 0 3px 0 rgba(217, 119, 6, 0.12), var(--shadow-xl);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(217, 119, 6, 0.08), transparent 42%, rgba(21, 128, 107, 0.05)),
    radial-gradient(circle at 85% 12%, rgba(15, 23, 42, 0.04), transparent 28%);
  pointer-events: none;
}

.login-body {
  position: relative;
  z-index: 1;
}

.error-box {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(201, 79, 97, 0.1);
  color: #a51f38;
  border: 1px solid rgba(201, 79, 97, 0.14);
}

.error-box.visible {
  display: block;
}

.helper-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  line-height: 1.8;
}

.help-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(6px);
  z-index: 46;
}

.helper-box.help-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, calc(100vw - 28px));
  max-height: min(82vh, 760px);
  margin-top: 0;
  padding: 18px 20px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.1), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.99));
  box-shadow: inset 0 3px 0 rgba(217, 119, 6, 0.12), var(--shadow-xl);
  z-index: 47;
  animation: fadeUp 190ms ease;
}

.help-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.help-popup-head h3 {
  margin: 0;
}

.help-popup-close {
  width: 34px;
  height: 34px;
  min-width: 34px;
  font-size: 1.3rem;
  line-height: 1;
  padding: 0;
}

body.help-popup-open {
  overflow: hidden;
}

.panel-toggle {
  background: rgba(255, 255, 255, 0.84);
}

.helper-list {
  margin: 12px 0 0;
  padding-inline-start: 20px;
  display: grid;
  gap: 8px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.12);
    opacity: 0.82;
  }
}

@media (max-width: 1024px) {
  .form-grid.two,
  .form-grid.three,
  .form-grid.four-up,
  .hero-metric-grid,
  .send-compose-shell,
  .send-message-layout,
  .send-inline-tools,
  .login-layout {
    grid-template-columns: 1fr;
  }

  body.send-page .page-shell {
    padding: 10px 0;
    gap: 10px;
  }

  body.send-page .card-large,
  body.send-page #campaign-form,
  body.send-page .send-compose-shell,
  body.send-page .send-compose-main,
  body.send-page .send-message-layout,
  body.send-page .send-inline-tools {
    height: 100%;
    overflow: hidden;
  }

  body.send-page .send-actions {
    grid-template-columns: 1fr;
  }

  body.send-page .send-actions-buttons {
    width: 100%;
  }

  body.send-page .send-actions #send-status {
    width: 100%;
  }

  .progress-popup {
    top: auto;
    bottom: 18px;
    inset-inline-start: 18px;
    inset-inline-end: 18px;
    width: auto;
  }
}

@media (max-width: 960px) {
  .section-grid.two,
  .section-grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100vw - 18px, 100%);
  }

  .topbar,
  .public-topbar,
  .card-head,
  .ip-head {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar,
  .public-topbar {
    gap: 12px;
    border-radius: 24px;
  }

  .nav-list {
    gap: 6px;
  }

  .nav-link,
  .top-action,
  .icon-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .mx-stats-toolbar {
    grid-template-columns: 1fr;
  }

  .mx-stats-pager {
    justify-content: flex-start;
  }

  .mx-stats-card {
    margin-top: 10px;
  }

  .topbar-right,
  .nav-list {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .section-grid {
    gap: 10px;
  }

  .card,
  .card-large {
    padding: 12px;
  }

  .metric-card,
  .stat-card,
  .info-card,
  .item-card,
  .record,
  .empty-state,
  .mini-box,
  .tip-card,
  .status-panel,
  .status-subpanel,
  .helper-box,
  .panel-box,
  .ip-card,
  .recipient-pill-card,
  .recipient-activity-card,
  .attachment-card {
    border-radius: 18px;
  }
}

@media (max-height: 920px) {
  body:not(.send-page) .page-shell {
    padding: 10px 0 12px;
    gap: 10px;
  }

  body:not(.send-page) .topbar,
  body:not(.send-page) .public-topbar,
  body:not(.send-page) .card {
    padding: 14px;
  }

  body:not(.send-page) .card-head {
    margin-bottom: 10px;
  }

  body:not(.send-page) .metric-grid,
  body:not(.send-page) .section-grid,
  body:not(.send-page) .settings-stack,
  body:not(.send-page) .hero-mini-grid,
  body:not(.send-page) .fleet-grid {
    gap: 12px;
  }

  body.send-page .page-shell {
    padding: 10px 0;
    gap: 10px;
  }
}
