/* ==========================================================================
   Mailuxe — glossy dark workspace UI
   ========================================================================== */

:root {
  --bg: #060910;
  --bg-soft: #080d16;
  --panel: rgba(16, 23, 38, 0.62);
  --panel-solid: #0b1220;
  --panel-deep: #070c15;
  --text: #e9eef8;
  --muted: #8f9bb3;
  --faint: #5e6b83;
  --line: rgba(148, 163, 184, 0.12);
  --line-soft: rgba(148, 163, 184, 0.07);
  --line-strong: rgba(148, 163, 184, 0.2);
  --teal: #2dd4bf;
  --teal-soft: #5eead4;
  --emerald: #34d399;
  --indigo: #818cf8;
  --violet: #a78bfa;
  --amber: #fbbf24;
  --rose: #fb7185;
  --sky: #38bdf8;
  --lime: #a3e635;
  --grad: linear-gradient(135deg, #5eead4 0%, #22d3ee 46%, #818cf8 100%);
  --grad-subtle: linear-gradient(120deg, rgba(45, 212, 191, 0.14), rgba(129, 140, 248, 0.1));
  --shadow-lg: 0 30px 80px -50px #000;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Sora", "Inter", "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.025em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; }
img { max-width: 100%; }
::selection { background: rgba(45, 212, 191, 0.32); color: #fff; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.18);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.3); background-clip: content-box; }

.ic { display: block; flex: none; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- ambient background ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
}
.orb-a {
  width: 640px; height: 640px;
  left: -260px; top: -260px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.55), transparent 65%);
}
.orb-b {
  width: 700px; height: 700px;
  right: -300px; top: -200px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.4), transparent 68%);
}
.orb-c {
  width: 620px; height: 620px;
  left: 30%; bottom: -430px;
  background: radial-gradient(circle, rgba(180, 83, 9, 0.22), transparent 65%);
}
.grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 5%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 5%, transparent 75%);
}

/* ---------- shell ---------- */
.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 272px;
  display: flex;
  flex-direction: column;
  padding: 22px 18px 18px;
  background: linear-gradient(180deg, rgba(9, 14, 24, 0.9), rgba(6, 10, 18, 0.97));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(22px);
  z-index: 60;
}

.main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-left: 272px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 8px 24px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
  filter: drop-shadow(0 10px 22px rgba(45, 212, 191, 0.3));
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-text strong {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand-text small {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
}

.nav {
  flex: 1;
  overflow-y: auto;
  padding-right: 2px;
  margin-right: -4px;
}
.nav-label {
  padding: 12px 12px 8px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.nav-label--gap { margin-top: 16px; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 43px;
  padding: 0 12px;
  margin-bottom: 3px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: 0.17s ease;
}
.nav-link .ic { color: var(--faint); transition: 0.17s ease; }
.nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.nav-link:hover .ic { color: var(--muted); }
.nav-link.is-active {
  color: #fff;
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.16), rgba(129, 140, 248, 0.07));
  border-color: rgba(45, 212, 191, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.nav-link.is-active .ic { color: var(--teal); }
.nav-link.is-active::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 11px;
  bottom: 11px;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(#5eead4, #818cf8);
  box-shadow: 0 0 14px rgba(45, 212, 191, 0.8);
}
.nav-badge {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.5;
}
.nav-badge--accent {
  color: #06121b;
  border-color: transparent;
  background: var(--teal-soft);
  font-weight: 700;
}
.nav-link--external .nav-ext { margin-left: auto; color: var(--faint); }

.sidebar-bottom { margin-top: 16px; }
.sending-card {
  position: relative;
  overflow: hidden;
  padding: 15px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.12), rgba(129, 140, 248, 0.06));
  border: 1px solid rgba(45, 212, 191, 0.16);
}
.sending-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -55px;
  top: -55px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.28), transparent 70%);
}
.sending-card.is-live {
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.16), rgba(16, 185, 129, 0.05));
  border-color: rgba(52, 211, 153, 0.22);
}
.sending-card__head {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a7f3d0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.sending-card p {
  position: relative;
  z-index: 1;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}
.sending-card a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal-soft);
  font-size: 10.5px;
  font-weight: 600;
}
.sending-card a:hover { color: #fff; }
.status-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12);
}
.status-dot.is-live {
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.14), 0 0 10px rgba(52, 211, 153, 0.7);
}
.sidebar-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 14px;
  color: var(--faint);
  font-size: 9.5px;
}
.sidebar-foot a:hover { color: var(--muted); }

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 74px;
  padding: 0 32px;
  background: rgba(6, 10, 18, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(26px) saturate(140%);
}
.menu-btn { display: none !important; }
.global-search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(380px, 36vw);
  height: 39px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--faint);
  transition: 0.18s ease;
}
.global-search:focus-within {
  border-color: rgba(45, 212, 191, 0.4);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.08);
}
.global-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 12px;
}
.global-search input::placeholder { color: var(--faint); }
.global-search kbd {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--faint);
  font-family: var(--sans);
  font-size: 9.5px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}
.mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 31px;
  padding: 0 11px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 99px;
  background: rgba(251, 191, 36, 0.07);
  color: #fcd34d;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.mode-chip.is-live {
  border-color: rgba(52, 211, 153, 0.24);
  background: rgba(52, 211, 153, 0.07);
  color: #6ee7b7;
}
.mode-chip:hover { filter: brightness(1.15); }

.icon-btn {
  position: relative;
  width: 37px;
  height: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: 0.17s ease;
}
.icon-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
}
.notif-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 8px var(--rose);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 8px 3px 3px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: 0.17s ease;
}
.user-chip:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.user-chip__text { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.user-chip__text strong { font-size: 11.5px; font-weight: 600; }
.user-chip__text small { color: var(--faint); font-size: 9.5px; margin-top: 1px; }
.user-chip__chev { color: var(--faint); }

/* ---------- content ---------- */
.content {
  flex: 1;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 30px 32px 44px;
  animation: rise 0.45s ease backwards;
}
.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 32px 26px;
  color: var(--faint);
  font-size: 10px;
  flex-wrap: wrap;
}
.footer-right { display: flex; align-items: center; gap: 10px; }
.app-footer a:hover { color: var(--muted); }
.dot-sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
  opacity: 0.5;
}

/* ---------- typography & links ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow--muted { color: var(--faint); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 11.5px;
  font-weight: 600;
  transition: 0.15s;
}
.text-link:hover { color: var(--teal-soft); gap: 8px; }
.text-link--muted { color: var(--muted); }
.text-link--muted:hover { color: var(--text); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.nowrap { white-space: nowrap; }
.strong { color: var(--text); font-weight: 600; }
.mono { font-family: "Cascadia Code", Consolas, "SF Mono", monospace; }

/* ---------- page heads ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.page-head h1 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.page-head p {
  max-width: 640px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}
.page-head--hero h1 { font-size: 33px; }
.page-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.head-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.head-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-size: 10.5px;
}
.head-meta__item .ic { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: 0.18s ease;
}
.btn .ic { flex: none; }
.btn:disabled, .btn.is-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn-primary {
  color: #04121a;
  background: var(--grad);
  box-shadow: 0 14px 34px -14px rgba(45, 212, 191, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font-weight: 700;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 48%);
  pointer-events: none;
  opacity: 0.7;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 42px -14px rgba(45, 212, 191, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.btn-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(148, 163, 184, 0.32); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.btn-danger {
  border-color: rgba(251, 113, 133, 0.28);
  background: rgba(251, 113, 133, 0.1);
  color: #fda4af;
}
.btn-danger:hover { background: rgba(251, 113, 133, 0.18); }
.btn-sm { height: 34px; padding: 0 12px; border-radius: 9px; font-size: 11px; }
.btn-lg { height: 46px; padding: 0 21px; border-radius: 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn .spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(4, 18, 26, 0.3);
  border-top-color: #04121a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ---------- panels ---------- */
.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 28, 45, 0.6), rgba(10, 15, 26, 0.52));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
}
.panel + .panel { margin-top: 18px; }
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 0;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.panel-sub { margin-top: 5px; color: var(--faint); font-size: 10.5px; line-height: 1.55; }
.panel-body { padding: 20px 22px 22px; }
.panel-body--flush { padding: 0 12px 8px; }
.panel-body--tight { padding: 14px 18px; }
.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
}
.panel + .panel { margin-top: 0; }
.stack-14 > * + * { margin-top: 14px; }
.stack-18 > * + * { margin-top: 18px; }

/* ---------- kpi ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 18px;
}
.kpi {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 18px 19px 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(165deg, rgba(22, 31, 50, 0.66), rgba(9, 14, 24, 0.6));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.kpi::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.16), transparent 70%);
  pointer-events: none;
}
.kpi::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.28), transparent);
  opacity: 0.6;
}
.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.kpi-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(45, 212, 191, 0.16);
  border-radius: 10px;
  background: rgba(45, 212, 191, 0.09);
  color: var(--teal);
}
.kpi-icon.tone-indigo { color: var(--indigo); border-color: rgba(129, 140, 248, 0.18); background: rgba(129, 140, 248, 0.09); }
.kpi-icon.tone-amber { color: var(--amber); border-color: rgba(251, 191, 36, 0.18); background: rgba(251, 191, 36, 0.08); }
.kpi-icon.tone-rose { color: var(--rose); border-color: rgba(251, 113, 133, 0.18); background: rgba(251, 113, 133, 0.08); }
.kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border: 1px solid rgba(52, 211, 153, 0.16);
  border-radius: 99px;
  background: rgba(52, 211, 153, 0.07);
  color: #6ee7b7;
  font-size: 9.5px;
  font-weight: 600;
}
.kpi-delta.is-neg { color: #fda4af; background: rgba(251, 113, 133, 0.07); border-color: rgba(251, 113, 133, 0.16); }
.kpi-delta.is-muted { color: var(--muted); background: rgba(255, 255, 255, 0.04); border-color: var(--line); }
.kpi-value {
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.kpi-label { color: var(--muted); font-size: 11px; }
.kpi-foot { margin-top: 9px; color: var(--faint); font-size: 9.5px; line-height: 1.5; }

.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.mini-stat {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 28, 45, 0.5), rgba(10, 15, 26, 0.4));
}
.mini-stat__icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
}
.mini-stat__icon.tone-teal { color: var(--teal); background: rgba(45, 212, 191, 0.08); border-color: rgba(45, 212, 191, 0.15); }
.mini-stat__icon.tone-amber { color: var(--amber); background: rgba(251, 191, 36, 0.07); border-color: rgba(251, 191, 36, 0.15); }
.mini-stat__icon.tone-rose { color: var(--rose); background: rgba(251, 113, 133, 0.07); border-color: rgba(251, 113, 133, 0.15); }
.mini-stat strong { display: block; font-family: var(--display); font-size: 17px; letter-spacing: -0.03em; line-height: 1.1; }
.mini-stat span { display: block; margin-top: 2px; color: var(--faint); font-size: 9.5px; }

/* ---------- pills, tags, chips ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}
.pill .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.pill-sent, .pill-subscribed, .pill-active, .pill-completed, .pill-delivered {
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.18);
  background: rgba(45, 212, 191, 0.07);
}
.pill-scheduled { color: #fcd34d; border-color: rgba(251, 191, 36, 0.2); background: rgba(251, 191, 36, 0.07); }
.pill-sending { color: #7dd3fc; border-color: rgba(56, 189, 248, 0.2); background: rgba(56, 189, 248, 0.07); }
.pill-draft, .pill-paused, .pill-queued, .pill-skipped { color: #a7b4c9; border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }
.pill-unsubscribed, .pill-failed { color: #fda4af; border-color: rgba(251, 113, 133, 0.2); background: rgba(251, 113, 133, 0.07); }
.pill-bounced { color: #fbbf24; border-color: rgba(251, 191, 36, 0.2); background: rgba(251, 191, 36, 0.07); }
.pill-opened { color: #a5b4fc; border-color: rgba(129, 140, 248, 0.2); background: rgba(129, 140, 248, 0.07); }
.pill-clicked { color: #c4b5fd; border-color: rgba(167, 139, 250, 0.2); background: rgba(167, 139, 250, 0.07); }

.tag {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 7px;
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: 6px;
  background: rgba(167, 139, 250, 0.07);
  color: #c4b5fd;
  font-size: 9.5px;
  white-space: nowrap;
}
.tag--teal { color: #99f6e4; background: rgba(45, 212, 191, 0.07); border-color: rgba(45, 212, 191, 0.15); }
.tag--muted { color: var(--muted); background: rgba(255, 255, 255, 0.04); border-color: var(--line); }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }

.list-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 9.5px;
  white-space: nowrap;
}
.list-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); flex: none; }
.list-dot.teal { background: var(--teal); box-shadow: 0 0 6px rgba(45, 212, 191, 0.6); }
.list-dot.violet { background: var(--violet); box-shadow: 0 0 6px rgba(167, 139, 250, 0.6); }
.list-dot.amber { background: var(--amber); box-shadow: 0 0 6px rgba(251, 191, 36, 0.6); }
.list-dot.sky { background: var(--sky); box-shadow: 0 0 6px rgba(56, 189, 248, 0.6); }
.list-dot.rose { background: var(--rose); box-shadow: 0 0 6px rgba(251, 113, 133, 0.6); }
.list-dot.lime { background: var(--lime); box-shadow: 0 0 6px rgba(163, 230, 53, 0.5); }
.list-dot.slate { background: #94a3b8; }
.list-dot.teal-text { color: var(--teal); }

/* ---------- avatars ---------- */
.avatar {
  width: var(--av, 38px);
  height: var(--av, 38px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32%;
  color: #fff;
  font-family: var(--display);
  font-size: calc(var(--av, 38px) * 0.32);
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 7px 16px rgba(0, 0, 0, 0.32);
}
.av-0 { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.av-1 { background: linear-gradient(135deg, #4338ca, #818cf8); }
.av-2 { background: linear-gradient(135deg, #b45309, #fbbf24); }
.av-3 { background: linear-gradient(135deg, #be185d, #fb7185); }
.av-4 { background: linear-gradient(135deg, #0369a1, #38bdf8); }
.av-5 { background: linear-gradient(135deg, #6d28d9, #c084fc); }
.avatar--ring { box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.3); }

/* ---------- progress ---------- */
.progress {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2dd4bf, #818cf8);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.4);
}
.progress--thin { height: 4px; }
.progress--amber > span { background: linear-gradient(90deg, #f59e0b, #fbbf24); box-shadow: 0 0 10px rgba(251, 191, 36, 0.35); }
.progress--rose > span { background: linear-gradient(90deg, #f43f5e, #fb7185); box-shadow: 0 0 10px rgba(251, 113, 133, 0.35); }

/* ---------- tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}
.data th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.data td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.data tbody tr { transition: background 0.15s ease; }
.data tbody tr:hover { background: rgba(255, 255, 255, 0.022); }
.data tbody tr:last-child td { border-bottom: 0; }
.data .num { text-align: right; font-variant-numeric: tabular-nums; }
.data .cell-tight { width: 36px; }
.cell-person { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.cell-person__text strong { display: block; color: var(--text); font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.cell-person__text small { display: block; margin-top: 2px; color: var(--faint); font-size: 10px; }
.cell-actions { display: flex; align-items: center; gap: 3px; justify-content: flex-end; }
.row-actions .icon-btn {
  width: 29px;
  height: 29px;
  border-color: transparent;
  background: transparent;
  color: var(--faint);
}
.row-actions .icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.engagement { display: flex; align-items: center; gap: 7px; min-width: 86px; }
.engagement .progress { flex: 1; }
.engagement span { width: 24px; color: var(--muted); font-size: 9.5px; text-align: right; }
.check {
  appearance: none;
  width: 15px;
  height: 15px;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  position: relative;
  transition: 0.15s;
  vertical-align: middle;
}
.check:hover { border-color: rgba(45, 212, 191, 0.5); }
.check:checked {
  border-color: transparent;
  background: linear-gradient(135deg, #2dd4bf, #818cf8);
}
.check:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 7px;
  border: solid #04121a;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #c4d0e2;
  font-size: 11px;
  font-weight: 600;
}
.field > label .label-note { color: var(--faint); font-size: 9.5px; font-weight: 400; }
.field .hint { color: var(--faint); font-size: 9.5px; line-height: 1.55; }
.field .hint a { color: var(--teal); }
.input, .select, .textarea {
  width: 100%;
  height: 41px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  background: rgba(5, 10, 18, 0.62);
  color: var(--text);
  font-family: var(--sans);
  font-size: 12px;
  transition: 0.17s ease;
  color-scheme: dark;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(148, 163, 184, 0.3); }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.09);
  background: rgba(5, 10, 18, 0.8);
}
.input--sm, .select--sm { height: 34px; font-size: 11px; border-radius: 9px; }
.textarea {
  height: auto;
  min-height: 108px;
  padding: 10px 12px;
  line-height: 1.65;
  resize: vertical;
}
.select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238f9bb3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  cursor: pointer;
}
.select option { background: #0c1321; color: var(--text); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid--3 { grid-template-columns: repeat(3, 1fr); }
.span-2 { grid-column: 1 / -1; }
.form-section { padding: 22px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
}
.section-heading .ic { color: var(--teal); }
.section-note { margin: 0 0 16px; color: var(--faint); font-size: 10px; line-height: 1.6; }
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: rgba(5, 10, 18, 0.25);
  border-radius: 0 0 var(--radius) var(--radius);
}
.form-actions .danger-zone { margin-right: auto; }
.input-icon { position: relative; }
.input-icon .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-icon .input { padding-left: 36px; }
.size-counter { color: var(--faint); font-size: 9px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  width: 38px;
  height: 21px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  transition: 0.18s ease;
}
.switch__track::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #94a3b8;
  transition: 0.18s ease;
}
.switch input:checked + .switch__track {
  border-color: transparent;
  background: linear-gradient(90deg, #0d9488, #34d399);
}
.switch input:checked + .switch__track::after { transform: translateX(17px); background: #04121a; }
.switch__label { color: var(--muted); font-size: 11px; }
.switch__label strong { display: block; color: var(--text); font-size: 11.5px; font-weight: 600; }
.choice-row { display: flex; gap: 8px; flex-wrap: wrap; }
.choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 10.5px;
  cursor: pointer;
  transition: 0.15s;
}
.choice input { position: absolute; opacity: 0; }
.choice:has(input:checked) {
  color: #99f6e4;
  border-color: rgba(45, 212, 191, 0.35);
  background: rgba(45, 212, 191, 0.08);
}
.choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice--card {
  height: auto;
  width: 100%;
  padding: 13px 14px;
  align-items: flex-start;
  text-align: left;
  line-height: 1.5;
}
.choice--card > span { display: block; color: var(--faint); font-size: 9.5px; }
.choice--card strong { display: block; margin-bottom: 2px; color: var(--text); font-size: 11px; font-weight: 600; }
.choice--card:has(input:checked) strong { color: #99f6e4; }
.field-error { color: #fda4af; font-size: 10px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

/* ---------- tabs & toolbar ---------- */
.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}
.segmented a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  transition: 0.15s;
  white-space: nowrap;
}
.segmented a:hover { color: var(--text); }
.segmented a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-weight: 600;
}
.segmented .count { color: var(--faint); font-size: 9px; }
.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.toolbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 190px;
  height: 35px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--faint);
}
.toolbar-search:focus-within { border-color: rgba(45, 212, 191, 0.4); }
.toolbar-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 11px;
}
.toolbar-search input::placeholder { color: var(--faint); }
.toolbar .select { width: auto; min-width: 116px; }
.toolbar-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.subtabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
}
.subtab {
  position: relative;
  padding: 13px 12px 12px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  transition: 0.15s;
}
.subtab:hover { color: var(--text); }
.subtab.is-active { color: var(--text); }
.subtab.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2dd4bf, #818cf8);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.5);
}
.subtab .count {
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--faint);
  font-size: 8.5px;
}

/* ---------- pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 13px 16px;
}
.page-btn {
  min-width: 29px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 10.5px;
  transition: 0.15s;
}
.page-btn:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.page-btn.is-active {
  border-color: rgba(45, 212, 191, 0.25);
  background: rgba(45, 212, 191, 0.1);
  color: var(--teal);
  font-weight: 600;
}
.page-btn.is-disabled { opacity: 0.3; pointer-events: none; }
.page-gap { color: var(--faint); font-size: 10px; padding: 0 2px; }

/* ---------- empty state ---------- */
.empty { padding: 46px 24px; text-align: center; }
.empty-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 13px;
  border: 1px solid rgba(45, 212, 191, 0.16);
  border-radius: 15px;
  background: rgba(45, 212, 191, 0.07);
  color: var(--teal);
}
.empty h3 { font-size: 15px; margin-bottom: 5px; }
.empty p { max-width: 340px; margin: 0 auto 15px; color: var(--faint); font-size: 10.5px; line-height: 1.65; }

/* ---------- toast ---------- */
.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: min(370px, calc(100vw - 32px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(12, 19, 32, 0.94);
  box-shadow: 0 24px 60px -20px #000;
  backdrop-filter: blur(18px);
  animation: toast-in 0.35s ease both;
}
.toast-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 8px;
  background: rgba(45, 212, 191, 0.1);
  color: var(--teal);
}
.toast--error .toast-icon { background: rgba(251, 113, 133, 0.1); color: #fda4af; }
.toast--info .toast-icon { background: rgba(56, 189, 248, 0.1); color: #7dd3fc; }
.toast p { flex: 1; margin: 2px 0 0; color: #dbe3f0; font-size: 11px; line-height: 1.55; }
.toast-close {
  flex: none;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
}
.toast-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.toast.is-out { animation: toast-out 0.24s ease forwards; }

/* ---------- popovers ---------- */
.popover-wrap { position: relative; }
.popover {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  z-index: 90;
  width: 328px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: rgba(10, 16, 27, 0.97);
  box-shadow: 0 34px 80px -20px #000;
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px) scale(0.985);
  transition: 0.17s ease;
}
.popover.is-open { opacity: 1; visibility: visible; transform: none; }
.popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 9.5px;
  color: var(--faint);
}
.popover-head strong { color: var(--text); font-size: 11px; font-weight: 600; }
.notif-list { max-height: 300px; overflow-y: auto; padding: 4px 0; }
.notif-row { display: flex; align-items: flex-start; gap: 9px; padding: 8px 10px; border-radius: 8px; }
.notif-row:hover { background: rgba(255, 255, 255, 0.03); }
.notif-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 8px;
  background: rgba(45, 212, 191, 0.08);
  color: var(--teal);
}
.notif-icon.tone-campaign { background: rgba(129, 140, 248, 0.09); color: #a5b4fc; }
.notif-icon.tone-contact { background: rgba(56, 189, 248, 0.08); color: #7dd3fc; }
.notif-icon.tone-automation { background: rgba(167, 139, 250, 0.09); color: #c4b5fd; }
.notif-icon.tone-template { background: rgba(251, 191, 36, 0.08); color: #fcd34d; }
.notif-icon.tone-system { background: rgba(148, 163, 184, 0.08); color: #cbd5e1; }
.notif-copy strong { display: block; color: #dbe3f0; font-size: 10.5px; font-weight: 500; line-height: 1.45; }
.notif-copy small { display: block; margin-top: 2px; color: var(--faint); font-size: 9px; }
.notif-empty { padding: 22px 12px; text-align: center; color: var(--faint); font-size: 10.5px; }
.popover-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px;
  border-top: 1px solid var(--line);
  color: var(--teal);
  font-size: 10px;
  font-weight: 600;
}
.popover-foot:hover { color: var(--teal-soft); }
.popover--user { width: 244px; }
.popover-user { display: flex; align-items: center; gap: 9px; padding: 9px 10px 11px; border-bottom: 1px solid var(--line); }
.popover-user strong { display: block; font-size: 11px; font-weight: 600; }
.popover-user small { display: block; margin-top: 2px; color: var(--faint); font-size: 9px; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.popover-links { display: flex; flex-direction: column; padding: 5px; }
.popover-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 10.5px;
}
.popover-links a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.popover-logout { padding: 5px; border-top: 1px solid var(--line); }
.popover-logout button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: #fda4af;
  font-size: 10.5px;
  cursor: pointer;
  text-align: left;
}
.popover-logout button:hover { background: rgba(251, 113, 133, 0.08); }

/* ---------- modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 14, 0.72);
  backdrop-filter: blur(7px);
}
.modal-card {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 19px;
  background: linear-gradient(180deg, #101827, #0a111d);
  box-shadow: 0 44px 110px -30px #000;
  transform: translateY(9px) scale(0.985);
  transition: 0.2s ease;
}
.modal.is-open .modal-card { transform: none; }
.modal-card--confirm { width: min(392px, 100%); text-align: center; }
.modal-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 13px;
  border: 1px solid rgba(251, 113, 133, 0.2);
  border-radius: 13px;
  background: rgba(251, 113, 133, 0.08);
  color: #fda4af;
}
.modal-card h3 { font-size: 17px; margin-bottom: 7px; }
.modal-card > p { margin-bottom: 19px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.modal-actions { display: flex; justify-content: center; gap: 8px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.modal-head h3 { font-size: 17px; margin: 0; }
.modal-head p { color: var(--faint); font-size: 10px; margin-top: 3px; }

/* ---------- dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 0.88fr); gap: 16px; align-items: start; }
.dash-grid + .dash-grid { margin-top: 16px; }
.chart-card .panel-head { padding-bottom: 4px; }
.chart-legend { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9.5px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.chart-shell { position: relative; padding: 10px 12px 6px; }
.chart-svg { display: block; width: 100%; height: 258px; overflow: visible; }
.chart-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 128px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(8, 14, 24, 0.97);
  box-shadow: 0 18px 40px -15px #000;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: opacity 0.12s;
}
.chart-tooltip.is-visible { opacity: 1; }
.chart-tooltip__label { margin-bottom: 5px; color: var(--faint); font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.chart-tooltip__row { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 9.5px; color: var(--muted); }
.chart-tooltip__row strong { margin-left: auto; color: var(--text); font-family: var(--display); font-size: 10px; }
.chart-tooltip__row .legend-dot { width: 5px; height: 5px; }
.chart-empty { height: 258px; display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 11px; }

.health-wrap { display: flex; flex-direction: column; align-items: center; gap: 17px; padding: 10px 4px 2px; }
.donut {
  position: relative;
  width: 164px;
  height: 164px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.4));
}
.donut::after {
  content: "";
  position: absolute;
  inset: 21px;
  border-radius: 50%;
  background: #0a111d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.donut-center { position: relative; z-index: 2; text-align: center; }
.donut-center strong { display: block; font-family: var(--display); font-size: 25px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.donut-center span { display: block; margin-top: 4px; color: var(--faint); font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; }
.health-legend { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.health-row { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.health-row .legend-dot { width: 6px; height: 6px; }
.health-row strong { margin-left: auto; color: var(--text); font-family: var(--display); font-size: 10.5px; font-weight: 600; }
.health-row small { width: 36px; text-align: right; color: var(--faint); font-size: 9px; }
.health-note { margin-top: 4px; padding-top: 11px; border-top: 1px solid var(--line); width: 100%; color: var(--faint); font-size: 9.5px; line-height: 1.6; text-align: center; }

.list-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.list-row:first-child { border-top: 0; }
.list-row__main { min-width: 0; flex: 1; }
.list-row__name { display: block; color: var(--text); font-size: 10.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row__meta { display: block; margin-top: 1px; color: var(--faint); font-size: 8.5px; }
.list-row__count { width: 34px; text-align: right; color: var(--muted); font-size: 9px; }
.list-row__bar { width: 54px; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.list-row__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2dd4bf, #818cf8); }

.activity-list { display: flex; flex-direction: column; }
.activity-item { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.activity-item:first-child { border-top: 0; padding-top: 2px; }
.activity-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1px solid rgba(45, 212, 191, 0.1);
  border-radius: 8px;
  background: rgba(45, 212, 191, 0.06);
  color: var(--teal);
}
.activity-icon.tone-campaign { background: rgba(129, 140, 248, 0.07); border-color: rgba(129, 140, 248, 0.12); color: #a5b4fc; }
.activity-icon.tone-contact { background: rgba(56, 189, 248, 0.07); border-color: rgba(56, 189, 248, 0.12); color: #7dd3fc; }
.activity-icon.tone-automation { background: rgba(167, 139, 250, 0.07); border-color: rgba(167, 139, 250, 0.12); color: #c4b5fd; }
.activity-icon.tone-template { background: rgba(251, 191, 36, 0.06); border-color: rgba(251, 191, 36, 0.12); color: #fcd34d; }
.activity-icon.tone-system { background: rgba(148, 163, 184, 0.06); border-color: var(--line); color: #cbd5e1; }
.activity-copy p { color: #cfd9e8; font-size: 10.5px; line-height: 1.5; }
.activity-copy small { display: block; margin-top: 2px; color: var(--faint); font-size: 8.5px; }

.feature-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 19px 20px;
  border: 1px solid rgba(45, 212, 191, 0.16);
  border-radius: 17px;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(45, 212, 191, 0.16), transparent 55%),
    linear-gradient(160deg, rgba(17, 26, 43, 0.9), rgba(8, 13, 23, 0.8));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.feature-card .mini-label { color: #99f6e4; font-size: 8.5px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; }
.feature-card h3 { margin: 9px 0 5px; font-size: 16px; line-height: 1.3; }
.feature-card p { color: var(--muted); font-size: 9.5px; line-height: 1.6; }
.feature-metric { display: flex; align-items: flex-end; gap: 10px; margin-top: 15px; }
.feature-metric strong { font-family: var(--display); font-size: 27px; letter-spacing: -0.04em; line-height: 1; }
.feature-metric span { color: var(--faint); font-size: 9px; padding-bottom: 3px; }
.feature-bar { display: flex; gap: 3px; margin-top: 13px; }
.feature-bar i { height: 4px; flex: 1; border-radius: 99px; background: rgba(255, 255, 255, 0.07); }
.feature-bar i.on { background: linear-gradient(90deg, #2dd4bf, #818cf8); }
.feature-cta { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.feature-cta .text-link { color: #99f6e4; }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 28, 45, 0.5), rgba(10, 15, 26, 0.42));
  transition: 0.18s ease;
}
.quick-card:hover { border-color: rgba(45, 212, 191, 0.22); transform: translateY(-2px); }
.quick-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}
.quick-card:hover .quick-icon { color: var(--teal); border-color: rgba(45, 212, 191, 0.2); background: rgba(45, 212, 191, 0.07); }
.quick-copy strong { display: block; font-size: 11px; font-weight: 600; }
.quick-copy small { display: block; margin-top: 2px; color: var(--faint); font-size: 9px; }
.quick-card > .ic:last-child { margin-left: auto; color: var(--faint); }

/* ---------- campaign cards ---------- */
.campaign-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.campaign-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(170deg, rgba(21, 30, 48, 0.6), rgba(9, 14, 24, 0.55));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition: 0.2s ease;
  overflow: hidden;
}
.campaign-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 212, 191, 0.24);
  box-shadow: 0 34px 70px -40px #000, 0 0 0 1px rgba(45, 212, 191, 0.06);
}
.campaign-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.campaign-card h3 { font-size: 14px; font-weight: 600; line-height: 1.35; }
.campaign-card__subject { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--faint); font-size: 10px; line-height: 1.5; min-height: 30px; }
.campaign-card__meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; color: var(--faint); font-size: 9px; }
.campaign-card__meta .ic { color: var(--muted); }
.campaign-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-top: 11px; border-top: 1px solid var(--line); }
.campaign-metrics strong { display: block; font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: -0.02em; }
.campaign-metrics span { display: block; margin-top: 1px; color: var(--faint); font-size: 8px; letter-spacing: 0.07em; text-transform: uppercase; }
.campaign-card__foot { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 2px; }
.campaign-card__foot .progress { flex: 1; }
.campaign-card__foot small { color: var(--faint); font-size: 8.5px; white-space: nowrap; }

/* ---------- templates ---------- */
.template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.template-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(170deg, rgba(21, 30, 48, 0.58), rgba(9, 14, 24, 0.52));
  box-shadow: var(--shadow-lg);
  transition: 0.2s ease;
  display: flex;
  flex-direction: column;
}
.template-card:hover { transform: translateY(-3px); border-color: rgba(167, 139, 250, 0.26); }
.tpl-thumb {
  --tpl-a: #0f766e;
  --tpl-b: #312e81;
  position: relative;
  aspect-ratio: 16 / 9.4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(120% 120% at 15% 0%, rgba(255, 255, 255, 0.16), transparent 45%), linear-gradient(135deg, var(--tpl-a), var(--tpl-b));
}
.tpl-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.7;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
}
.tpl-thumb[data-cat="Onboarding"] { --tpl-a: #0f766e; --tpl-b: #0a2540; }
.tpl-thumb[data-cat="Newsletter"] { --tpl-a: #92400e; --tpl-b: #1c1917; }
.tpl-thumb[data-cat="Product"] { --tpl-a: #4338ca; --tpl-b: #111827; }
.tpl-thumb[data-cat="Promotion"] { --tpl-a: #7c2d12; --tpl-b: #3b0764; }
.tpl-thumb[data-cat="Event"] { --tpl-a: #0e7490; --tpl-b: #0b3954; }
.tpl-thumb[data-cat="Win-back"] { --tpl-a: #b45309; --tpl-b: #3f2414; }
.tpl-thumb--photo {
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
}
.tpl-thumb--photo::after {
  background: linear-gradient(180deg, rgba(4, 10, 10, 0.04) 45%, rgba(4, 10, 10, 0.42));
  background-size: auto;
  opacity: 1;
  -webkit-mask-image: none;
  mask-image: none;
}
.tpl-paper {
  position: relative;
  z-index: 2;
  width: 68%;
  height: 84%;
  padding: 11px 13px;
  border-radius: 5px;
  background: #fffdf9;
  box-shadow: 0 22px 40px -14px rgba(0, 0, 0, 0.7);
  transform: rotate(-1.4deg);
  overflow: hidden;
}
.tpl-paper__accent { height: 22px; border-radius: 3px; margin: -11px -13px 9px; background: var(--tpl-a); opacity: 0.9; }
.tpl-paper .fake-kicker { width: 32%; height: 3px; border-radius: 2px; background: #d7cfc2; margin-bottom: 4px; }
.tpl-paper .fake-line { height: 4px; border-radius: 2px; background: #e9e4dc; margin-bottom: 4px; }
.tpl-paper .fake-line.w80 { width: 80%; }
.tpl-paper .fake-line.w60 { width: 60%; }
.tpl-paper .fake-head { width: 70%; height: 8px; border-radius: 2px; background: #2a2622; margin: 5px 0 6px; }
.tpl-paper .fake-btn { width: 38%; height: 9px; border-radius: 2px; background: var(--tpl-a); margin-top: 7px; opacity: 0.85; }
.tpl-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(4, 9, 16, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: 0.18s ease;
}
.template-card:hover .tpl-overlay { opacity: 1; }
.template-card__body { padding: 14px 16px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.template-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.template-card h3 { font-size: 12.5px; font-weight: 600; }
.template-card__desc { color: var(--faint); font-size: 9.5px; line-height: 1.5; min-height: 27px; }
.template-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--faint); font-size: 8.5px; }
.template-card__actions { display: flex; gap: 4px; }

/* ---------- builder ---------- */
.builder-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: 17px; align-items: start; }
.builder-side { position: sticky; top: 92px; }
.builder-form { overflow: hidden; }
.builder-steps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.builder-step { display: inline-flex; align-items: center; gap: 5px; color: var(--faint); font-size: 9.5px; }
.builder-step.is-on { color: var(--teal); }
.builder-step .n {
  width: 17px; height: 17px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid currentColor; border-radius: 50%; font-size: 8px; font-weight: 700;
}
.builder-step-sep { color: var(--faint); opacity: 0.5; }
.preview-card { overflow: hidden; }
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 9px;
}
.preview-toolbar .dot-row { display: flex; gap: 4px; }
.preview-toolbar .dot-row i { width: 6px; height: 6px; border-radius: 50%; background: rgba(148, 163, 184, 0.35); }
.preview-meta { padding: 12px 15px; border-bottom: 1px solid var(--line); }
.preview-subject { font-family: var(--display); font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.preview-from { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: var(--faint); font-size: 9px; }
.preview-viewport { height: 500px; overflow: auto; background: #e9edf2; }
.preview-viewport.preview-viewport-auto { height: auto; max-height: 760px; }
.preview-viewport iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.code-editor {
  min-height: 245px;
  padding: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #060b13;
  color: #a7f3d0;
  font-family: "Cascadia Code", Consolas, "SF Mono", monospace;
  font-size: 10.5px;
  line-height: 1.65;
  tab-size: 2;
  outline: none;
  resize: vertical;
  width: 100%;
}
.code-editor:focus { border-color: rgba(45, 212, 191, 0.45); box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.07); }
.var-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.var-chip {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 8.5px;
  cursor: pointer;
}
.var-chip:hover { color: var(--teal); border-color: rgba(45, 212, 191, 0.25); }
.schedule-field { max-width: 250px; }
.compose-recipient {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.05), transparent 60%);
}
.compose-recipient .eyebrow { display: block; margin-bottom: 2px; }
.compose-recipient strong { display: block; font-size: 13.5px; font-weight: 600; }
.compose-recipient small { display: block; margin-top: 1px; color: var(--faint); font-size: 10px; }
.compose-recipient .pill { margin-left: auto; }
.compose-textarea { min-height: 290px; font-size: 12.5px; line-height: 1.75; }

/* ---------- single-email composer ---------- */
.compose-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 11px;
  background: rgba(45, 212, 191, 0.08);
  color: var(--teal);
}
.compose-address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compose-address-grid > .field:first-child { grid-column: 1 / -1; }
.editor-note { margin-top: 6px; line-height: 1.5; }
textarea[data-rich-editor] {
  width: 100%;
  min-height: 330px;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #0b1220;
  color: var(--text);
  font-family: var(--body, Inter, sans-serif);
  font-size: 12.5px;
  line-height: 1.7;
  outline: none;
  resize: vertical;
}
.attach-drop { position: relative; }
.attach-drop > input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.attach-drop__box {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 10.5px;
  cursor: pointer;
  transition: 0.15s;
}
.attach-drop__box .ic { color: var(--teal); }
.attach-drop__box strong { color: var(--text); font-weight: 600; }
.attach-drop__box small { display: block; margin-top: 2px; color: var(--faint); font-size: 9px; }
.attach-drop__box .file-name { color: var(--teal); }
.attach-drop__box:hover, .attach-drop.is-drag .attach-drop__box {
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.05);
}
.attach-list { display: flex; flex-direction: column; gap: 6px; margin-top: 9px; }
.attach-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 10.5px;
}
.attach-chip > .ic { color: var(--faint); flex: 0 0 auto; }
.attach-chip > span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-chip small { display: block; margin-top: 1px; color: var(--faint); font-size: 8.5px; }
.attach-chip a { color: var(--faint); display: inline-flex; }
.attach-chip a:hover { color: var(--teal); }
.attach-remove {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--faint);
  font-size: 9px;
  cursor: pointer;
  white-space: nowrap;
}
.attach-remove:hover { color: #fda4af; }
.attach-remove input { accent-color: #fb7185; }
.recipient-list { display: flex; flex-wrap: wrap; gap: 5px; }
.recipient-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 9.5px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recipient-chip .ic { color: var(--faint); flex: 0 0 auto; }

/* TinyMCE frame */
.tox-tinymce { border: 1px solid var(--line-strong) !important; border-radius: 10px !important; background: #0b1220 !important; }
.tox .tox-toolbar-overlord, .tox .tox-toolbar__primary, .tox .tox-toolbar, .tox .tox-editor-header { background: #0b1220 !important; }
.tox .tox-menubar { background: #0b1220 !important; }
.tox .tox-statusbar { background: #0b1220 !important; border-top-color: var(--line) !important; }
.tox .tox-edit-area__iframe { background: #0e1626 !important; }
.tox:not(.tox-tinymce-inline) .tox-editor-header { box-shadow: none !important; border-bottom: 1px solid var(--line) !important; }
.tox .tox-tbtn { height: 28px; }
.tox .tox-tbtn svg { fill: #a7b4c9; }
.tox .tox-tbtn:hover svg { fill: #e6edf7; }
.tox .tox-tbtn--enabled svg { fill: #2dd4bf; }
.tox .tox-tbtn--select, .tox .tox-tbtn--bespoke { background: #16222f !important; color: #b6c2d4 !important; }
.tox .tox-tbtn--select:hover, .tox .tox-tbtn--bespoke:hover { background: #1d2b3d !important; }
.tox .tox-tbtn__select-label { color: #b6c2d4 !important; }
.tox .tox-tbtn__select-chevron svg { fill: #7f8ea4; }
.tox .tox-menu, .tox .tox-collection--list { background: #0f1a26 !important; border-color: var(--line-strong) !important; }
.tox .tox-collection__item { color: #c3cede !important; }
.tox .tox-collection__item--active, .tox .tox-collection__item:hover { background: #1a2838 !important; }
.tox .tox-collection__item--selected { background: rgba(45,212,191,0.14) !important; color: #6fe3d6 !important; }
.tox .tox-dialog { background: #0f1a26 !important; border-color: var(--line-strong) !important; }
.tox .tox-dialog__header, .tox .tox-dialog__footer { background: #0c1520 !important; border-color: var(--line) !important; }
.tox .tox-dialog__title, .tox .tox-dialog__body-content { color: #dbe4ef !important; }
.tox .tox-label, .tox .tox-form__group label { color: #b6c2d4 !important; }
.tox .tox-textfield, .tox .tox-selectfield select, .tox .tox-textarea { background: #0b1220 !important; border-color: var(--line-strong) !important; color: #e6edf7 !important; }

/* ---------- detail pages ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr); gap: 17px; align-items: start; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 13px;
  color: var(--faint);
  font-size: 10.5px;
  transition: 0.15s;
}
.back-link:hover { color: var(--text); }
.detail-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.metric-box {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.metric-box strong { display: block; font-family: var(--display); font-size: 18px; letter-spacing: -0.03em; }
.metric-box span { display: block; margin-top: 2px; color: var(--faint); font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.metric-box.is-accent { border-color: rgba(45, 212, 191, 0.18); background: rgba(45, 212, 191, 0.04); }
.link-list { display: flex; flex-direction: column; gap: 11px; }
.link-row { display: flex; flex-direction: column; gap: 5px; }
.link-row__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10px; }
.link-row__url { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--muted); }
.link-row__url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-row__top strong { color: var(--text); font-family: var(--display); font-size: 10px; }
.link-row .progress { height: 3px; }
.side-note {
  display: flex;
  gap: 9px;
  padding: 12px 13px;
  border: 1px solid rgba(45, 212, 191, 0.13);
  border-radius: 11px;
  background: rgba(45, 212, 191, 0.045);
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
}
.side-note .ic { color: var(--teal); margin-top: 1px; }
.test-send { display: flex; gap: 7px; }
.test-send .input { flex: 1; }
.timeline-dot { color: var(--faint); }

/* ---------- contacts detail ---------- */
.profile-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 21px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(90% 160% at 0% 0%, rgba(45, 212, 191, 0.12), transparent 55%),
    linear-gradient(165deg, rgba(21, 30, 48, 0.65), rgba(9, 14, 24, 0.58));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.profile-hero .avatar { --av: 66px; border-radius: 22px; }
.profile-main { min-width: 0; flex: 1; }
.profile-main h1 { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 23px; letter-spacing: -0.03em; }
.profile-main p { margin-top: 4px; color: var(--muted); font-size: 11.5px; }
.profile-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.profile-actions { display: flex; gap: 7px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.info-list { display: flex; flex-direction: column; }
.info-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 10.5px; }
.info-row:first-child { border-top: 0; padding-top: 0; }
.info-row > span:first-child { color: var(--faint); }
.info-row > span:last-child { color: #d5dded; text-align: right; }
.contact-timeline { display: flex; flex-direction: column; gap: 0; }
.contact-timeline .activity-item { padding: 10px 0; }
.note-box {
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

/* ---------- lists ---------- */
.segment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.segment-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(170deg, rgba(21, 30, 48, 0.55), rgba(9, 14, 24, 0.48));
  transition: 0.18s ease;
}
.segment-card:hover { transform: translateY(-2px); border-color: rgba(45, 212, 191, 0.22); }
.segment-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 9px;
  background: rgba(45, 212, 191, 0.08);
  color: var(--teal);
  border: 1px solid rgba(45, 212, 191, 0.13);
}
.segment-icon.tone-amber { color: var(--amber); background: rgba(251, 191, 36, 0.07); border-color: rgba(251, 191, 36, 0.13); }
.segment-icon.tone-sky { color: var(--sky); background: rgba(56, 189, 248, 0.07); border-color: rgba(56, 189, 248, 0.13); }
.segment-icon.tone-rose { color: var(--rose); background: rgba(251, 113, 133, 0.07); border-color: rgba(251, 113, 133, 0.13); }
.segment-card strong { display: block; font-family: var(--display); font-size: 20px; letter-spacing: -0.03em; }
.segment-card h3 { margin-top: 4px; font-size: 11px; font-weight: 600; }
.segment-card p { margin-top: 4px; color: var(--faint); font-size: 9px; line-height: 1.5; }
.segment-card .text-link { margin-top: 10px; font-size: 9.5px; }
.list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.list-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  transition: 0.17s;
}
.list-card:hover { border-color: rgba(45, 212, 191, 0.18); background: rgba(255, 255, 255, 0.035); }
.list-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.list-card__name { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; }
.list-card__desc { margin-top: 5px; color: var(--faint); font-size: 9.5px; line-height: 1.55; min-height: 28px; }
.list-card__foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.list-card__foot .progress { flex: 1; }
.list-card__foot span { color: var(--faint); font-size: 8.5px; white-space: nowrap; }
.modal-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.color-choice { position: relative; width: 26px; height: 26px; cursor: pointer; }
.color-choice input { position: absolute; opacity: 0; }
.color-choice span { display: block; width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--line-strong); }
.color-choice input:checked + span { border-color: #fff; box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.5); }
.color-choice .teal { background: var(--teal); }
.color-choice .violet { background: var(--violet); }
.color-choice .amber { background: var(--amber); }
.color-choice .sky { background: var(--sky); }
.color-choice .rose { background: var(--rose); }
.color-choice .lime { background: var(--lime); }

/* ---------- imports ---------- */
.dropzone {
  position: relative;
  padding: 32px 20px;
  border: 1.5px dashed rgba(148, 163, 184, 0.25);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.018);
  text-align: center;
  transition: 0.18s;
  cursor: pointer;
}
.dropzone:hover, .dropzone.is-drag { border-color: rgba(45, 212, 191, 0.5); background: rgba(45, 212, 191, 0.04); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .drop-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  border-radius: 13px;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.14);
  color: var(--teal);
}
.dropzone strong { display: block; font-size: 12px; }
.dropzone p { margin-top: 4px; color: var(--faint); font-size: 9.5px; }
.dropzone .file-name { margin-top: 9px; color: var(--teal); font-size: 10px; }
.code-sample {
  padding: 12px;
  border-radius: 9px;
  background: #060b13;
  border: 1px solid var(--line);
  color: #99f6e4;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 8.5px;
  line-height: 1.8;
  overflow-x: auto;
  white-space: pre;
}
.steps-list { display: flex; flex-direction: column; gap: 14px; }
.steps-list__item { display: flex; gap: 11px; }
.steps-list__num {
  width: 22px; height: 22px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.06);
  color: var(--teal);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 600;
}
.steps-list__copy strong { display: block; font-size: 10.5px; }
.steps-list__copy p { color: var(--faint); font-size: 9.5px; line-height: 1.55; margin-top: 2px; }

/* ---------- automations ---------- */
.automation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.automation-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(170deg, rgba(21, 30, 48, 0.58), rgba(9, 14, 24, 0.52));
  box-shadow: var(--shadow-lg);
  transition: 0.18s;
}
.automation-card:hover { border-color: rgba(167, 139, 250, 0.26); transform: translateY(-2px); }
.auto-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.auto-icon {
  width: 36px; height: 36px; flex: none;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 9px;
  border: 1px solid rgba(167, 139, 250, 0.16);
  border-radius: 10px;
  background: rgba(167, 139, 250, 0.08);
  color: #c4b5fd;
}
.automation-card h3 { font-size: 14px; }
.automation-card__desc { margin-top: 4px; color: var(--faint); font-size: 9.5px; line-height: 1.55; }
.auto-flow { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.022); border: 1px solid var(--line-soft); }
.flow-node {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px;
  background: rgba(45, 212, 191, 0.08);
  color: var(--teal);
  border: 1px solid rgba(45, 212, 191, 0.13);
}
.flow-node.wait { background: rgba(148, 163, 184, 0.06); color: var(--muted); border-color: var(--line); }
.flow-connector { width: 13px; height: 1px; background: rgba(148, 163, 184, 0.2); }
.auto-stats { display: flex; gap: 18px; padding-top: 11px; border-top: 1px solid var(--line); }
.auto-stats strong { display: block; font-family: var(--display); font-size: 13px; }
.auto-stats span { display: block; margin-top: 1px; color: var(--faint); font-size: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.auto-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.auto-foot .left { display: flex; gap: 6px; align-items: center; }

.flow-canvas { position: relative; padding: 8px 0 4px 34px; }
.flow-canvas::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 26px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.7), rgba(129, 140, 248, 0.35), transparent);
}
.flow-step { position: relative; margin-bottom: 11px; display: flex; gap: 10px; align-items: flex-start; }
.flow-step::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 15px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.1), 0 0 10px rgba(45, 212, 191, 0.5);
}
.flow-step--wait::before { background: #94a3b8; box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.08); }
.flow-node-card { flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, 0.024); }
.flow-node-card h4 { font-size: 11px; font-weight: 600; }
.flow-node-card p { margin-top: 2px; color: var(--faint); font-size: 9px; line-height: 1.5; }
.flow-node-card .flow-badge { margin-left: auto; }
.trigger-card {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 12px;
  background: rgba(45, 212, 191, 0.05);
}
.trigger-card .trigger-icon {
  width: 31px; height: 31px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(45, 212, 191, 0.1);
  color: var(--teal);
}
.trigger-card strong { display: block; font-size: 10.5px; }
.trigger-card small { display: block; color: var(--faint); font-size: 8.5px; margin-top: 1px; }

.step-builder { display: flex; flex-direction: column; gap: 8px; }
.step-row {
  display: grid;
  grid-template-columns: 26px 118px 96px minmax(0, 1fr) 30px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.022);
}
.step-row__handle { display: flex; align-items: center; justify-content: center; color: var(--faint); }
.step-row .input, .step-row .select { height: 33px; font-size: 10px; border-radius: 8px; }
.step-row .step-days-wrap { display: flex; align-items: center; gap: 4px; }
.step-row .step-days-wrap input { width: 100%; }
.step-row .step-days-wrap span { color: var(--faint); font-size: 8.5px; white-space: nowrap; }
.step-row .step-remove { width: 28px; height: 28px; border-radius: 7px; }
.step-row.is-wait .step-template-wrap { opacity: 0; pointer-events: none; }
.step-row.is-email .step-days-wrap { opacity: 0; pointer-events: none; }
.step-add-row { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.step-hint { color: var(--faint); font-size: 9px; margin-top: 7px; }

/* ---------- reports ---------- */
.report-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 17px; }
.report-kpi {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(21, 30, 48, 0.5), rgba(9, 14, 24, 0.44));
}
.report-kpi strong { display: block; font-family: var(--display); font-size: 21px; letter-spacing: -0.035em; line-height: 1.1; }
.report-kpi span { display: block; margin-top: 3px; color: var(--faint); font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.report-kpi small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr); gap: 16px; align-items: start; }
.report-side-stack > * + * { margin-top: 15px; }
.range-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.03); }
.range-switch a { padding: 5px 11px; border-radius: 7px; color: var(--muted); font-size: 10px; font-weight: 500; }
.range-switch a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.08); font-weight: 600; }
.deliver-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.deliver-row:first-child { border-top: 0; }
.deliver-row span { color: var(--faint); font-size: 9.5px; width: 76px; }
.deliver-row .progress { flex: 1; height: 4px; }
.deliver-row strong { width: 38px; text-align: right; font-family: var(--display); font-size: 10px; }
.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 66px; margin-top: 8px; }
.bar-chart i {
  flex: 1;
  max-width: 40px;
  min-height: 4px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.85), rgba(129, 140, 248, 0.18));
  opacity: 0.85;
}

/* ---------- settings ---------- */
.settings-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: 18px; align-items: start; }
.settings-nav {
  position: sticky;
  top: 92px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 28, 45, 0.55), rgba(10, 15, 26, 0.5));
  box-shadow: var(--shadow-lg);
}
.settings-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 10.5px;
  transition: 0.15s;
}
.settings-nav a .ic { color: var(--faint); }
.settings-nav a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.settings-nav a.is-active { background: rgba(45, 212, 191, 0.09); color: var(--teal-soft); }
.settings-nav a.is-active .ic { color: var(--teal); }
.settings-panel { overflow: hidden; }
.settings-panel .form-section { padding: 22px 24px; }
.settings-panel .form-actions { padding: 16px 24px; }
.settings-intro { padding: 20px 24px 0; }
.settings-intro h2 { font-size: 17px; }
.settings-intro p { margin-top: 5px; color: var(--faint); font-size: 10px; line-height: 1.55; }

/* ---------- email accounts ---------- */
.account-list { display: flex; flex-direction: column; gap: 8px; }
.account-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
}
.account-row.is-default { border-color: rgba(45, 212, 191, 0.22); background: rgba(45, 212, 191, 0.035); }
.provider-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.provider-badge.provider-gmail { color: #fda4af; border-color: rgba(251, 113, 133, 0.24); background: rgba(251, 113, 133, 0.07); }
.provider-badge.provider-outlook { color: #7dd3fc; border-color: rgba(56, 189, 248, 0.24); background: rgba(56, 189, 248, 0.07); }
.provider-badge.provider-yahoo { color: #c4b5fd; border-color: rgba(167, 139, 250, 0.24); background: rgba(167, 139, 250, 0.07); }
.provider-badge.provider-company { color: #2dd4bf; border-color: rgba(45, 212, 191, 0.24); background: rgba(45, 212, 191, 0.07); }
.account-main { min-width: 0; flex: 1; }
.account-main strong { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--text); font-size: 11.5px; font-weight: 600; }
.account-main small { display: block; margin-top: 2px; color: var(--faint); font-size: 9.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-state { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.account-actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.account-actions .icon-btn { width: 29px; height: 29px; border-color: transparent; background: transparent; color: var(--faint); }
.account-actions .icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.sig-preview {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  overflow: auto;
}
.sig-preview .placeholder { padding: 22px; color: #94a3b8; font-size: 12px; text-align: center; }
.sig-preview img { max-width: 120px; height: auto; }
.danger-zone {
  padding: 17px;
  border: 1px solid rgba(251, 113, 133, 0.18);
  border-radius: 12px;
  background: rgba(251, 113, 133, 0.035);
}
.danger-zone h4 { color: #fda4af; font-size: 11px; margin-bottom: 3px; }
.danger-zone p { color: var(--faint); font-size: 9.5px; line-height: 1.55; margin-bottom: 10px; }
.info-strip { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: 10px; background: rgba(56, 189, 248, 0.05); border: 1px solid rgba(56, 189, 248, 0.13); color: var(--muted); font-size: 9.5px; line-height: 1.55; }
.info-strip .ic { color: #7dd3fc; }
.info-strip--warn { background: rgba(251, 191, 36, 0.06); border-color: rgba(251, 191, 36, 0.22); color: var(--text); }
.info-strip--warn .ic { color: #fbbf24; }

/* ---------- auth ---------- */
.auth-page { min-height: 100vh; background: var(--bg); overflow: hidden; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr); min-height: 100vh; }
.auth-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px 46px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(80% 60% at 15% 10%, rgba(13, 148, 136, 0.25), transparent 55%),
    radial-gradient(70% 60% at 90% 80%, rgba(79, 70, 229, 0.22), transparent 60%),
    linear-gradient(160deg, #071018, #060910 55%, #080b16);
}
.auth-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 25%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse at 30% 25%, #000, transparent 72%);
}
.auth-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; }
.auth-brand .brand-mark { width: 43px; height: 43px; }
.auth-art-copy { position: relative; z-index: 2; max-width: 560px; margin: 50px 0; }
.auth-art-copy .eyebrow { color: #99f6e4; }
.auth-art-copy h1 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.03; letter-spacing: -0.045em; font-weight: 700; }
.auth-art-copy h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #5eead4, #67e8f9 45%, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-art-copy p { max-width: 430px; margin-top: 20px; color: #9ca8bd; font-size: 13px; line-height: 1.75; }
.auth-points { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.auth-point { display: flex; align-items: center; gap: 9px; color: #c6d1e1; font-size: 11.5px; }
.auth-point .tick {
  width: 19px; height: 19px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.2);
  color: var(--teal);
}
.auth-art-foot { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; color: var(--faint); font-size: 9.5px; flex-wrap: wrap; }
.auth-panel-foot { margin-top: 26px; color: var(--faint); font-size: 9px; text-align: center; line-height: 1.6; }
.auth-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 34px;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(79, 70, 229, 0.08), transparent 60%),
    #070b13;
}
.auth-card { width: 100%; max-width: 388px; }
.auth-card .eyebrow { margin-bottom: 12px; }
.auth-card h2 { font-size: 27px; letter-spacing: -0.035em; }
.auth-card .auth-lead { margin-top: 8px; color: var(--faint); font-size: 11px; line-height: 1.65; }
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkbox-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; cursor: pointer; }
.checkbox-label input { accent-color: #2dd4bf; width: 13px; height: 13px; }
.auth-card .btn-primary { height: 45px; margin-top: 4px; font-size: 12.5px; }
.auth-panel-foot { margin-top: 26px; color: var(--faint); font-size: 9px; text-align: center; line-height: 1.6; }
.auth-panel-foot a { color: var(--muted); }
.auth-mobile-brand { display: none; }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 40px; }
.password-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--faint); cursor: pointer; border-radius: 7px;
}
.password-toggle:hover { color: var(--muted); background: rgba(255, 255, 255, 0.04); }

/* ---------- public ---------- */
.public-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(70% 50% at 50% -10%, rgba(13, 148, 136, 0.22), transparent 60%),
    radial-gradient(60% 50% at 95% 20%, rgba(79, 70, 229, 0.18), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.public-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 75%);
}
.public-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(20px, 5vw, 64px);
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}
.public-brand { display: flex; align-items: center; gap: 10px; }
.public-brand .brand-mark { width: 36px; height: 36px; }
.public-brand strong { font-family: var(--display); font-size: 16px; letter-spacing: -0.03em; }
.public-nav__links { display: flex; align-items: center; gap: 18px; color: var(--faint); font-size: 10px; }
.public-nav__links a:hover { color: var(--text); }
.public-main { position: relative; z-index: 2; flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 26px clamp(20px, 5vw, 64px) 50px; display: flex; align-items: center; }
.public-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; min-height: 62vh; }
.public-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid rgba(45, 212, 191, 0.18); border-radius: 99px; background: rgba(45, 212, 191, 0.05); color: #99f6e4; font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.public-hero h1 { margin-top: 20px; font-size: clamp(38px, 5vw, 62px); line-height: 0.98; letter-spacing: -0.05em; font-weight: 700; }
.public-hero h1 em { font-style: normal; background: linear-gradient(120deg, #5eead4, #67e8f9 40%, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.public-hero p { max-width: 460px; margin-top: 18px; color: #9ca8bd; font-size: 13.5px; line-height: 1.8; }
.public-perks { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.public-perk { display: flex; align-items: center; gap: 9px; color: #c6d1e1; font-size: 11.5px; }
.public-perk .tick { width: 18px; height: 18px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(45, 212, 191, 0.09); border: 1px solid rgba(45, 212, 191, 0.18); color: var(--teal); }
.public-proof { display: flex; align-items: center; gap: 12px; margin-top: 30px; color: var(--faint); font-size: 9.5px; }
.public-avatars { display: flex; }
.public-avatars .avatar { --av: 26px; margin-left: -7px; border: 2px solid #070b13; font-size: 8px; }
.public-avatars .avatar:first-child { margin-left: 0; }
.public-form-card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(19, 28, 46, 0.82), rgba(8, 13, 23, 0.9));
  box-shadow: 0 40px 110px -40px #000, inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  overflow: hidden;
}
.public-form-card::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.22), transparent 70%);
}
.public-form-card h2 { font-size: 21px; letter-spacing: -0.03em; }
.public-form-card > p { margin-top: 5px; color: var(--faint); font-size: 10.5px; line-height: 1.65; }
.public-form { position: relative; display: flex; flex-direction: column; gap: 12px; margin-top: 19px; }
.public-form .btn { height: 44px; margin-top: 3px; }
.public-fineprint { margin-top: 13px; color: var(--faint); font-size: 8.5px; line-height: 1.65; text-align: center; }
.public-fineprint a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.public-badge-strip { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 8.5px; letter-spacing: 0.06em; flex-wrap: wrap; }
.public-badge-strip span { display: flex; align-items: center; gap: 6px; }
.public-badge-strip .ic { color: var(--muted); }
.public-footer { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 1240px; width: 100%; margin: 0 auto; padding: 20px clamp(20px, 5vw, 64px) 26px; color: var(--faint); font-size: 9px; flex-wrap: wrap; }
.public-footer a:hover { color: var(--muted); }
.honeypot { position: absolute !important; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.public-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 30px 20px 60px; position: relative; z-index: 2; }
.result-card {
  position: relative;
  width: min(468px, 100%);
  padding: 34px 30px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(19, 28, 46, 0.8), rgba(8, 13, 23, 0.88));
  box-shadow: 0 40px 110px -40px #000, inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
}
.result-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: 17px;
  background: rgba(45, 212, 191, 0.09);
  color: var(--teal);
  box-shadow: 0 0 40px rgba(45, 212, 191, 0.16);
}
.result-card h1 { font-size: 27px; letter-spacing: -0.04em; }
.result-card > p { max-width: 340px; margin: 9px auto 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.result-meta { display: flex; justify-content: center; gap: 12px; margin: 22px 0; flex-wrap: wrap; }
.result-meta div { min-width: 100px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.022); }
.result-meta strong { display: block; font-family: var(--display); font-size: 14px; }
.result-meta span { display: block; margin-top: 2px; color: var(--faint); font-size: 8.5px; }
.result-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.public-email-preview { width: min(680px, 100%); margin: 0 auto; }

/* ---------- errors ---------- */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; overflow: hidden; }
.error-card {
  position: relative;
  z-index: 2;
  width: min(500px, 100%);
  padding: 38px 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(19, 28, 46, 0.82), rgba(8, 13, 23, 0.9));
  box-shadow: 0 40px 110px -40px #000;
  text-align: center;
}
.error-code {
  font-family: var(--display);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  background: linear-gradient(120deg, #5eead4, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}
.error-card h1 { margin-top: 10px; font-size: 22px; letter-spacing: -0.03em; }
.error-card p { max-width: 340px; margin: 8px auto 20px; color: var(--muted); font-size: 11px; line-height: 1.7; }

/* ---------- search ---------- */
.search-hero { max-width: 720px; margin: 10px auto 26px; text-align: center; }
.search-hero h1 { font-size: 31px; letter-spacing: -0.04em; }
.search-hero p { margin-top: 7px; color: var(--muted); font-size: 11.5px; }
.search-big {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  margin-top: 20px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--faint);
}
.search-big:focus-within { border-color: rgba(45, 212, 191, 0.45); box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.07); }
.search-big input { flex: 1; border: 0; outline: 0; background: none; color: var(--text); font-family: var(--sans); font-size: 13px; }
.search-group + .search-group { margin-top: 16px; }
.search-result { display: flex; align-items: center; gap: 11px; padding: 10px 4px; border-top: 1px solid var(--line-soft); }
.search-result:first-of-type { border-top: 0; }
.search-result__main { min-width: 0; flex: 1; }
.search-result__main strong { display: block; font-size: 11px; font-weight: 500; }
.search-result__main small { display: block; margin-top: 2px; color: var(--faint); font-size: 9px; }
.search-result__kind { color: var(--faint); font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.search-tag { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--muted); flex: none; }
.search-empty { padding: 30px; text-align: center; color: var(--faint); font-size: 11px; }

/* ---------- bulk bar ---------- */
.bulk-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px;
  padding-left: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(10, 16, 27, 0.96);
  box-shadow: 0 24px 60px -15px #000;
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  white-space: nowrap;
}
.bulk-bar.is-visible { display: flex; }
.bulk-bar__count { color: var(--text); font-size: 10.5px; font-weight: 600; margin-right: 4px; }
.bulk-bar .input { width: 120px; height: 30px; font-size: 9.5px; }
.bulk-bar .select { width: auto; min-width: 120px; height: 30px; font-size: 9.5px; }
.bulk-bar .btn { height: 30px; font-size: 9.5px; }
.bulk-bar__close { width: 26px; height: 26px; border: 0; background: transparent; color: var(--faint); border-radius: 6px; cursor: pointer; }
.bulk-bar__close:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* ---------- misc ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.w-full { width: 100%; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.ml-auto { margin-left: auto; }
.text-right { text-align: right; }
.small { font-size: 10px; }
.tiny { font-size: 9px; }
.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;
}
.flash-inline { color: var(--faint); font-size: 10px; }
.kbd {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--faint);
  font-size: 8px;
}

/* ---------- animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fade 0.35s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- theme toggle, setup & first-run ---------- */
.theme-toggle .theme-icon { display: none; align-items: center; justify-content: center; }
.theme-toggle .theme-icon .ic { display: block; }
html[data-theme="dark"] .theme-toggle .theme-icon--sun { display: flex; }
html[data-theme="light"] .theme-toggle .theme-icon--moon { display: flex; }

.auth-theme {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 5;
}
.auth-theme .icon-btn { background: rgba(255, 255, 255, 0.03); }
.auth-theme .theme-icon { display: none; }
html[data-theme="dark"] .auth-theme .theme-icon--sun,
html[data-theme="light"] .auth-theme .theme-icon--moon { display: flex; }

.auth-card--wide { max-width: 620px; }
.auth-card--wide h2 { font-size: 30px; }
.auth-panel { overflow-y: auto; }
.auth-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.form-section-label:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section-label::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }

.setup-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(45, 212, 191, 0.09), rgba(129, 140, 248, 0.05));
}
.setup-banner__icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 11px;
  background: rgba(45, 212, 191, 0.08);
  color: var(--teal);
}
.setup-banner__icon.tone-indigo { color: var(--indigo); border-color: rgba(129, 140, 248, 0.18); background: rgba(129, 140, 248, 0.08); }
.setup-banner__copy { flex: 1; min-width: 0; }
.setup-banner__copy strong { display: block; font-family: var(--display); font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; }
.setup-banner__copy p { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.55; }

@media (max-width: 620px) {
  .auth-form-grid { grid-template-columns: 1fr; }
  .setup-banner { flex-wrap: wrap; }
  .setup-banner .btn { width: 100%; }
  .auth-card--wide h2 { font-size: 25px; }
  .auth-theme { top: 12px; right: 12px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1320px) {
  .campaign-grid, .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-kpis { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .builder-grid { grid-template-columns: 1fr; }
  .builder-side { position: static; }
  .preview-viewport { height: 440px; }
  .detail-grid { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .report-kpis { grid-template-columns: repeat(3, 1fr); }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-panel { min-height: 100vh; padding: 34px 22px; }
  .auth-mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 34px; }
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 40px 0 100px rgba(0, 0, 0, 0.5);
  }
  .sidebar.is-open { transform: none; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-flex !important; }
  .scrim {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(3, 7, 14, 0.62);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
  }
  .scrim.is-visible { opacity: 1; visibility: visible; }
  .topbar { padding: 0 22px; }
  .global-search { width: min(320px, 30vw); }
  .content { padding: 24px 22px 38px; }
  .app-footer { padding: 0 22px 22px; }
  .dash-grid { grid-template-columns: 1fr; }
  .segment-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: 1fr; }
  .user-chip__text { display: none; }
  .user-chip__chev { display: none; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; display: flex; overflow-x: auto; }
  .settings-nav a { flex: none; white-space: nowrap; }
  .public-hero { grid-template-columns: 1fr; gap: 38px; min-height: 0; padding-top: 20px; }
  .public-form-card { max-width: 520px; }
  .auth-art-copy h1 { font-size: 46px; }
}

@media (max-width: 820px) {
  .topbar { gap: 10px; }
  .global-search { width: auto; flex: 1; min-width: 0; }
  .global-search kbd { display: none; }
  .mode-chip { display: none; }
  .new-campaign-btn span { display: none; }
  .new-campaign-btn { width: 36px; padding: 0; }
  .quick-grid { grid-template-columns: 1fr; }
  .campaign-grid, .template-grid, .automation-grid, .list-grid { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: repeat(2, 1fr); }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid--3 { grid-template-columns: 1fr; }
  .compose-address-grid { grid-template-columns: 1fr; }
  .compose-address-grid > .field:first-child { grid-column: auto; }
  .span-2 { grid-column: auto; }
  .report-kpis { grid-template-columns: repeat(2, 1fr); }
  .bulk-bar { width: calc(100vw - 24px); bottom: 12px; flex-wrap: wrap; justify-content: center; white-space: normal; }
  .bulk-bar .input { flex: 1; width: auto; }
  .profile-hero { flex-wrap: wrap; }
  .profile-actions { margin-left: 0; width: 100%; }
  .step-row { grid-template-columns: 24px 1fr 1fr 30px; }
  .step-row .step-template-wrap { grid-column: 2 / 4; }
  .campaign-card__subject { min-height: 0; }
  .public-nav__links { display: none; }
  .public-hero h1 { font-size: 42px; }
  .public-main { padding-bottom: 30px; }
}

@media (max-width: 620px) {
  .topbar { padding: 0 14px; height: 66px; }
  .content { padding: 20px 14px 34px; }
  .app-footer { padding: 0 14px 20px; }
  .app-footer .footer-right { display: none; }
  .global-search { max-width: none; }
  .user-chip { padding-right: 3px; }
  .page-head h1 { font-size: 26px; }
  .page-head { margin-bottom: 20px; gap: 15px; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi { min-height: 0; }
  .mini-stats { grid-template-columns: 1fr 1fr; }
  .kpi-grid { gap: 10px; }
  .mini-stat { padding: 11px 12px; }
  .modal-card { padding: 19px; }
  .step-row { grid-template-columns: 1fr 1fr 30px; }
  .step-row__handle { display: none; }
  .step-row .step-template-wrap { grid-column: 1 / 3; }
  .segment-grid { grid-template-columns: 1fr; }
  .profile-main h1 { font-size: 20px; }
  .profile-hero .avatar { --av: 54px; }
  .auth-panel { padding: 26px 18px; }
  .auth-card h2 { font-size: 24px; }
  .public-form-card { padding: 22px; }
  .public-hero h1 { font-size: 37px; }
  .public-proof { flex-wrap: wrap; }
  .toast-stack { right: 12px; bottom: 12px; }
  .settings-nav { display: flex; flex-wrap: nowrap; }
  .report-kpis { grid-template-columns: 1fr 1fr; }
  .campaign-card__top { gap: 6px; }
  .form-actions { justify-content: stretch; }
  .form-actions .btn { flex: 1; }
  .form-actions .danger-zone { width: 100%; margin: 0; }
  .settings-nav .side-note { display: none; }
  .mail-table th:nth-child(2), .mail-table td:nth-child(2),
  .mail-table th:nth-child(4), .mail-table td:nth-child(4) { display: none; }
  .mail-table th, .mail-table td { padding: 10px 9px; }
  .mail-table .cell-actions .icon-btn { width: 27px; height: 27px; }
}

@media (max-width: 420px) {
  .mini-stats { grid-template-columns: 1fr; }
  .report-kpis { grid-template-columns: 1fr; }
  .segmented { width: 100%; overflow-x: auto; }
  .auth-card { max-width: none; }
  .user-chip { display: none; }
  .topbar-right { gap: 6px; }
}