:root {
  --theme-primary: #1d7cff;
  --theme-accent: #00d4ff;
  --theme-bg: #05070f;
  --theme-panel: #0a1020;
  --theme-text: #f4f8ff;
  --logo-tone: #1d7cff;
  --ink: var(--theme-text);
  --ink-soft: color-mix(in srgb, var(--theme-text) 72%, transparent);
  --muted: color-mix(in srgb, var(--theme-text) 52%, transparent);
  --bg: var(--theme-bg);
  --panel: color-mix(in srgb, var(--theme-panel) 92%, #ffffff 8%);
  --line: color-mix(in srgb, var(--theme-primary) 28%, transparent);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--theme-primary) 18%, transparent), transparent 35%),
    radial-gradient(circle at 82% 0%, color-mix(in srgb, var(--theme-accent) 20%, transparent), transparent 28rem),
    linear-gradient(180deg, var(--theme-bg), #02030a 92%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(color-mix(in srgb, var(--theme-primary) 13%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--theme-primary) 13%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 72%);
  pointer-events: none;
}

button,
input,
textarea,
select {
  font: inherit;
  font-weight: 500;
}

button {
  cursor: pointer;
  font-weight: 500 !important;
}

button * {
  font-weight: 500 !important;
}

.app-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.54);
  border-right: 1px solid var(--line);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  background: transparent;
  filter:
    drop-shadow(10px 0 18px color-mix(in srgb, var(--logo-tone) 20%, transparent))
    drop-shadow(-12px 6px 22px color-mix(in srgb, var(--theme-accent) 12%, transparent));
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 0 var(--logo-tone))
    drop-shadow(8px 8px 16px color-mix(in srgb, var(--logo-tone) 24%, transparent))
    saturate(1.12);
}

.brand h1,
.brand p,
.topbar h2,
.panel h3 {
  margin: 0;
}

.brand h1 {
  font-size: 1.18rem;
  letter-spacing: 0;
}

.brand p {
  color: var(--muted);
  font-size: 0.84rem;
}

.nav-list {
  display: grid;
  gap: 9px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink-soft);
  background: transparent;
  text-align: left;
  transition: 160ms ease;
}

.nav-item.active,
.nav-item:hover {
  color: var(--ink);
  border-color: var(--line);
  background: color-mix(in srgb, var(--theme-primary) 14%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--theme-primary) 12%, transparent);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid color-mix(in srgb, var(--theme-primary) 30%, transparent);
  border-radius: 6px;
  color: var(--theme-accent);
  background: rgba(255, 255, 255, 0.04);
  flex: 0 0 auto;
  overflow: hidden;
}

.nav-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-accent));
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.nav-dashboard::before {
  mask-image: url("assets/Dashboard.png");
  -webkit-mask-image: url("assets/Dashboard.png");
}

.nav-leads::before {
  mask-image: url("assets/Leads.png");
  -webkit-mask-image: url("assets/Leads.png");
}

.nav-send::before {
  mask-image: url("assets/Send.png");
  -webkit-mask-image: url("assets/Send.png");
}

.nav-settings::before {
  mask-image: url("assets/Settings.png");
  -webkit-mask-image: url("assets/Settings.png");
}

.settings-gear {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  order: 4;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 18px color-mix(in srgb, var(--theme-primary) 14%, transparent);
  font-weight: 500;
}

.settings-gear.active,
.settings-gear:hover {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-accent));
}

.settings-gear.active .nav-icon,
.settings-gear:hover .nav-icon {
  border-color: transparent;
  background: transparent;
}

.settings-gear.active .nav-icon::before,
.settings-gear:hover .nav-icon::before {
  background: var(--theme-bg);
}

.sidebar-card {
  order: 3;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: color-mix(in srgb, var(--theme-panel) 76%, transparent);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.sidebar-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.sidebar-actions {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--theme-accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--theme-accent) 16%, transparent), 0 0 22px var(--theme-accent);
}

.main {
  min-width: 0;
  padding: 30px;
}

.topbar,
.panel-head,
.split-header,
.button-row,
.top-actions {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.topbar h2 {
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  letter-spacing: 0;
  text-shadow: 0 0 36px color-mix(in srgb, var(--theme-primary) 34%, transparent);
}

.top-actions,
.button-row {
  gap: 10px;
  flex-wrap: wrap;
}

.top-actions {
  display: grid;
  grid-template-columns: auto minmax(220px, 360px) auto;
  align-items: end;
}

.button-row {
  align-items: end;
}

.config-field {
  min-width: 180px;
}

.top-actions .config-field {
  margin: 0;
}

.top-actions button,
.top-actions select {
  min-height: 46px;
}

.top-actions button {
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--theme-accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.view {
  display: none;
  position: relative;
}

.view.active {
  display: block;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.metric,
.panel,
.modal {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: var(--shadow);
}

.metric {
  padding: 18px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: 8px;
  color: var(--theme-primary);
  font-size: 2rem;
  line-height: 1;
}

.metric small {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
}

.two-column,
.campaign-grid,
.settings-layout {
  display: grid;
  gap: 14px;
}

.two-column {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.campaign-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.template-panel,
.launch-panel {
  grid-column: 1 / -1;
  width: min(920px, 100%);
  justify-self: center;
}

.launch-panel,
.pacing-panel,
.template-panel,
.preview-panel {
  min-width: 0;
}

.preview-panel {
  grid-column: 1 / -1;
}

.settings-layout {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
}

.panel {
  padding: 18px;
}

.panel-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel h3 {
  font-size: 1.12rem;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 36%, transparent);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--theme-accent);
  background: color-mix(in srgb, var(--theme-accent) 12%, transparent);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.primary-btn,
.ghost-btn,
.icon-btn,
.secondary-btn,
.switch-btn {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  padding: 0 15px;
  font-weight: 500;
}

.primary-btn,
.secondary-btn {
  color: #02030a;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-accent));
  box-shadow: 0 0 30px color-mix(in srgb, var(--theme-primary) 32%, transparent);
}

.ghost-btn,
.icon-btn,
.switch-btn {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.icon-btn {
  width: 42px;
  padding: 0;
  font-size: 0.86rem;
}

.queue-list,
.lead-stack,
.sender-list {
  display: grid;
  gap: 10px;
}

.queue-item,
.priority-card,
.sender-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--theme-primary) 22%, transparent);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.sender-card {
  grid-template-columns: 1fr auto;
}

.sender-card.active {
  border-color: var(--theme-accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-accent) 30%, transparent);
}

.sender-card p {
  margin: 5px 0 0;
  color: var(--muted);
}

.time-chip {
  border: 1px solid color-mix(in srgb, var(--theme-accent) 40%, transparent);
  border-radius: 6px;
  padding: 6px 8px;
  color: var(--theme-accent);
  background: color-mix(in srgb, var(--theme-accent) 12%, transparent);
  font-size: 0.8rem;
  font-weight: 950;
}

.queue-item h4,
.priority-card h4 {
  margin: 0;
  font-size: 0.95rem;
}

.queue-item p,
.priority-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.split-header {
  align-items: stretch;
  gap: 14px;
  margin-bottom: 14px;
}

.import-panel {
  flex: 1.3;
}

.add-panel {
  flex: 0.7;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--theme-primary) 26%, transparent);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.28);
  font-weight: 500;
  outline: none;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--theme-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-accent) 13%, transparent);
}

textarea {
  min-height: 126px;
  margin: 12px 0;
  padding: 12px;
  line-height: 1.5;
  resize: vertical;
}

input,
select {
  min-height: 42px;
  padding: 0 11px;
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--theme-text) 50%, transparent);
  opacity: 1;
}

option {
  color: #101010;
}

.lead-form,
.settings-grid {
  display: grid;
  gap: 12px;
}

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

.lead-form button {
  grid-column: 1 / -1;
}

label,
.field {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.83rem;
  font-weight: 500;
}

.hidden {
  display: none !important;
}

.table-panel {
  overflow: hidden;
}

.search {
  max-width: 260px;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  border-top: 1px solid color-mix(in srgb, var(--theme-primary) 18%, transparent);
  padding: 13px 10px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  font-size: 0.9rem;
}

.status {
  display: inline-flex;
  border: 1px solid color-mix(in srgb, var(--theme-primary) 20%, transparent);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  font-weight: 900;
}

.status.contacted {
  color: var(--theme-primary);
}

.status.replied,
.status.motivated {
  color: #23f0a3;
}

.status.opted-out {
  color: #ff647c;
}

.settings-grid,
.launch-grid,
.import-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}

.launch-grid,
.import-tools {
  margin-bottom: 14px;
}

.launch-pacing-grid {
  margin: 2px 0 14px;
}

.send-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.send-mode-card {
  display: grid;
  gap: 7px;
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
}

.send-mode-card strong {
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.1;
}

.send-mode-card span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.send-mode-card.active {
  border-color: var(--theme-accent);
  background: color-mix(in srgb, var(--theme-primary) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-accent) 22%, transparent);
}

.local-sending-box {
  display: grid;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 28%, transparent);
  border-radius: 8px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.22);
}

.local-toolbar,
.local-account-main,
.local-account-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.local-account-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-end;
}

.local-account-form button {
  min-height: 42px;
  margin-bottom: 0;
  white-space: nowrap;
}

.local-toolbar,
.local-account-main {
  justify-content: space-between;
}

.local-status {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.local-driver-status {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.82rem;
  line-height: 1.45;
}

.local-driver-status.ready {
  color: #d9fbe7;
  border-color: rgba(70, 210, 132, 0.32);
  background: rgba(70, 210, 132, 0.1);
}

.local-driver-status.warning {
  color: #ffe8a6;
  border-color: rgba(255, 196, 87, 0.34);
  background: rgba(255, 196, 87, 0.11);
}

.local-driver-status.error {
  color: #ffd4d4;
  border-color: rgba(255, 105, 105, 0.36);
  background: rgba(255, 105, 105, 0.11);
}

.local-settings-grid,
.local-template-fields {
  display: grid;
  gap: 12px;
}

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

.local-template-fields {
  grid-template-columns: 1fr;
}

.local-account-form .field {
  flex: 1;
}

.local-account-list {
  display: grid;
  gap: 10px;
}

.local-account-card {
  display: grid;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--theme-primary) 22%, transparent);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.local-account-card.empty p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.check-inline {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
}

.check-inline input {
  width: auto;
  min-height: auto;
}

.settings-grid {
  margin-bottom: 18px;
}

.wide {
  grid-column: 1 / -1;
}

.file-picker {
  display: grid;
  place-items: center;
  min-height: 42px;
  align-self: end;
  border: 1px dashed color-mix(in srgb, var(--theme-accent) 46%, transparent);
  border-radius: 8px;
  color: var(--theme-accent);
  background: color-mix(in srgb, var(--theme-accent) 9%, transparent);
  font-size: 0.84rem;
  font-weight: 500;
}

.file-picker input {
  display: none;
}

.start-btn {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  color: #02030a;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-accent));
  box-shadow: 0 0 22px color-mix(in srgb, var(--theme-primary) 28%, transparent);
  font-size: 1rem;
  font-weight: 500;
}

.panel > .primary-btn,
.panel > .start-btn {
  margin-top: 16px;
}

#saveScheduleBtn {
  width: min(260px, 100%);
}

button strong,
.provider-card strong {
  font-weight: 500;
}

.template-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.template-vars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.template-vars button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 500;
}

.template-vars .special-var {
  color: #02030a;
  border-color: var(--theme-accent);
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-accent));
}

.email-preview,
.agreement-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.23);
  line-height: 1.6;
}

.email-preview strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.email-preview p {
  margin: 0;
  white-space: pre-wrap;
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.check-list input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

.compliance-banner {
  margin-top: 14px;
  border-radius: 8px;
  padding: 13px;
  font-weight: 900;
}

.compliance-banner.ready {
  color: #29f5a6;
  background: rgba(35, 240, 163, 0.12);
}

.compliance-banner.blocked {
  color: #ff7186;
  background: rgba(255, 113, 134, 0.12);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.68);
}

.modal-backdrop.open {
  display: grid;
}

.modal {
  width: min(720px, 100%);
  max-height: min(760px, 90vh);
  overflow: auto;
  padding: 18px;
}

.connect-modal {
  width: min(780px, 100%);
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.provider-card {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
}

.provider-card.active,
.provider-card:hover {
  border-color: var(--theme-accent);
  background: color-mix(in srgb, var(--theme-primary) 12%, transparent);
}

.provider-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: min(380px, calc(100vw - 44px));
  transform: translateY(20px);
  opacity: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
  pointer-events: none;
  transition: 180ms ease;
  display: none;
  max-height: 120px;
  overflow: hidden;
}

.toast.show {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
    z-index: 5;
    flex-direction: row;
    align-items: center;
    padding: 16px;
    overflow-x: auto;
  }

  .nav-list {
    display: flex;
  }

  .sidebar-card {
    min-width: 270px;
    margin-top: 0;
  }

  .metrics-grid,
  .campaign-grid {
    grid-template-columns: 1fr;
  }

  .two-column,
  .settings-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body::before {
    display: none;
  }

  .main {
    padding: 14px;
  }

  .topbar,
  .split-header {
    align-items: stretch;
    flex-direction: column;
  }

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

  .metrics-grid,
  .campaign-grid,
  .send-mode-grid,
  .launch-grid,
  .import-tools,
  .settings-grid,
  .local-settings-grid,
  .local-template-fields,
  .lead-form,
  .provider-grid,
  .template-picker {
    grid-template-columns: 1fr;
  }

  .local-toolbar,
  .local-account-main {
    align-items: stretch;
    flex-direction: column;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    gap: 14px;
    align-items: stretch;
  }

  .brand {
    min-width: max-content;
  }

  .nav-list {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-item {
    min-width: max-content;
  }

  .sidebar-card {
    min-width: min(100%, 320px);
  }

  .search {
    max-width: none;
  }

  .topbar h2 {
    font-size: 2rem;
  }

  .panel {
    padding: 14px;
  }

  input,
  select {
    min-height: 46px;
  }

  #saveScheduleBtn {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .sidebar {
    flex-direction: column;
  }

  .metrics-grid,
  .two-column,
  .campaign-grid,
  .settings-layout {
    gap: 10px;
  }

  .metric strong {
    font-size: 1.65rem;
  }

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

  table {
    min-width: 680px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
