@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Roboto+Flex:wght@400;500;600;650;700&display=swap');

:root {
  --canvas: #f7f9ff;
  --surface: #fff;
  --ink: #172335;
  --muted: #788397;
  --border: #e6eaf1;
  --blue: #165dff;
  --cyan: #49f5f5;
  --sidebar: 236px;
  font-family: 'DM Sans', 'PingFang SC', sans-serif;
  color: var(--ink);
  font-size: 13px;
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #165dff;
  outline-offset: 3px;
}
button {
  color: inherit;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 26px 16px 0;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -1px;
  padding: 0 8px;
}
.brand-mark {
  font-family: Georgia, serif;
  font-weight: 400;
  border: 1.5px solid #172335;
  width: 27px;
  height: 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 27px;
}
.brand > span:last-child {
  font-size: 8px;
  color: #8590a4;
  letter-spacing: 1.5px;
  margin: 6px 0 0 1px;
  font-weight: 600;
}
.workspace {
  margin: 31px 0 28px;
  padding: 13px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
}
.workspace-icon {
  background: #edf3ff;
  color: var(--blue);
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 17px;
}
.workspace small,
.operator small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 10px;
  margin-top: 5px;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #12b991;
  border-radius: 50%;
  flex-shrink: 0;
}
.workspace > .live-dot {
  margin-left: auto;
}
.nav-caption {
  font-size: 9px;
  color: #96a0b1;
  letter-spacing: 1.4px;
  font-weight: 600;
  padding: 0 12px;
  margin: 0 0 12px;
}
nav {
  display: grid;
  gap: 5px;
}
nav a {
  height: 43px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  gap: 12px;
  color: #667185;
  border-radius: 4px;
  transition: background 0.15s;
}
nav a:hover {
  background: #f6f8fc;
}
nav a.active {
  background: #edf3ff;
  color: var(--blue);
  font-weight: 600;
}
nav a > span {
  width: 19px;
  font-size: 21px;
  line-height: 1;
}
nav b {
  margin-left: auto;
  background: #dfeaff;
  border-radius: 3px;
  padding: 3px 6px;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
}
.beta-card {
  margin: 40px 0 22px;
  background: #f7f9fd;
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 4px;
  font-size: 8px;
  color: #788397;
  letter-spacing: 1px;
}
.beta-card > .live-dot {
  margin-right: 6px;
  width: 5px;
  height: 5px;
}
.beta-card strong {
  display: block;
  color: #27364c;
  font-size: 12px;
  letter-spacing: -0.2px;
  margin-top: 12px;
}
.beta-card p {
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0;
}
.beta-card a {
  display: block;
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0;
  margin-top: 14px;
}
.operator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 0;
  border-top: 1px solid var(--border);
  font-size: 11px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: #59677d;
  background: #eef0f6;
  font-weight: 600;
  font-size: 10px;
  flex-shrink: 0;
}
.avatar.small {
  width: 29px;
  height: 29px;
}
.app-shell {
  margin-left: var(--sidebar);
}
.topbar {
  height: 69px;
  background: #ffffffde;
  border-bottom: 1px solid var(--border);
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.topbar > div {
  display: flex;
  align-items: center;
}
.muted {
  color: var(--muted);
}
.crumb-divider {
  margin: 0 14px;
  color: #c0c7d2;
}
.topbar strong {
  font-weight: 500;
}
.header-right {
  gap: 19px;
}
.environment {
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: #6c798d;
  font-size: 10px;
}
.environment .live-dot {
  width: 5px;
  height: 5px;
  margin-right: 6px;
}
.icon-button {
  border: 0;
  background: transparent;
  font-size: 20px;
  padding: 4px 7px;
  color: #7c899b;
}
main {
  padding: 32px 34px 40px;
  min-height: calc(100vh - 120px);
  max-width: 1700px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.eyebrow {
  color: #8290a4;
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 600;
  margin: 0 0 9px;
}
h1 {
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: -0.9px;
  font-weight: 600;
  margin: 0 0 9px;
}
.page-heading p {
  color: #8290a4;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}
.heading-actions {
  display: flex;
  gap: 9px;
  padding-top: 8px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #dce2ed;
  background: #fff;
  padding: 0 13px;
  height: 34px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button:hover {
  background: #f5f8ff;
  border-color: #b9c8e6;
}
.button.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.button.primary:hover {
  background: #0047cf;
}
.button.danger {
  color: #ba3d45;
  background: #fff7f8;
  border-color: #f0ccd0;
}
.button.small {
  height: 28px;
  padding: 0 9px;
  font-size: 10px;
}
.button.cyan {
  background: #172335;
  color: var(--cyan);
  border-color: #172335;
}
.text-button {
  border: 0;
  background: none;
  color: var(--blue);
  padding: 0;
  font-size: inherit;
}
.text-button:hover {
  text-decoration: underline;
}
.period-control {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px;
  display: inline-flex;
  gap: 3px;
}
.period-control button {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  border-radius: 3px;
  color: #788397;
  font-size: 10px;
}
.period-control button.active {
  background: #edf3ff;
  color: var(--blue);
}
.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
  font-size: 12px;
  font-weight: 600;
}
.section-label > span {
  font-size: 10px;
  color: #8a96a8;
  font-weight: 400;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.metric-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
}
.metric-top {
  display: flex;
  justify-content: space-between;
  color: #788397;
  font-size: 10px;
}
.metric-icon {
  color: #94a3b9;
  font-size: 15px;
}
.metric-value {
  font:
    600 28px/1.4 'Roboto Flex',
    sans-serif;
  letter-spacing: -0.8px;
  margin: 10px 0 5px;
}
.metric-foot {
  font-size: 9px;
  color: #929caf;
}
.metric-foot .delta {
  color: #159276;
  margin-right: 6px;
}
.sparkline {
  position: absolute;
  right: 13px;
  bottom: 17px;
  width: 65px;
  height: 22px;
  opacity: 0.75;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.62fr 1fr;
  gap: 18px;
  margin-bottom: 26px;
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 21px;
  border-bottom: 1px solid #eff2f7;
  gap: 14px;
}
.panel-head h2,
.panel-head h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}
.panel-head p {
  color: #95a0b1;
  font-size: 10px;
  margin: 6px 0 0;
}
.panel-body {
  padding: 21px;
}
.chart-area {
  height: 185px;
  position: relative;
  margin-top: 7px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  border-bottom: 1px solid #e8edf6;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 44px,
    #f0f3f8 44px,
    #f0f3f8 45px
  );
  padding: 0 7px;
}
.chart-column {
  flex: 1;
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 100%;
  position: relative;
}
.chart-column i {
  width: 48%;
  border-radius: 3px 3px 0 0;
  background: #165dff;
  min-height: 2px;
}
.chart-column i + i {
  background: #a8dcff;
}
.chart-column span {
  position: absolute;
  bottom: -23px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 9px;
  color: #8b96a8;
}
.chart-legend {
  display: flex;
  gap: 19px;
  align-items: center;
  font-size: 9px;
  color: #8b96a8;
  margin-bottom: 20px;
}
.chart-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #165dff;
  border-radius: 1px;
  margin-right: 5px;
}
.chart-legend i.pale {
  background: #a8dcff;
}
.funnel-row {
  margin-bottom: 18px;
}
.funnel-row:last-child {
  margin-bottom: 0;
}
.funnel-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-bottom: 7px;
  color: #758298;
}
.funnel-label strong {
  color: #263951;
  font-weight: 500;
}
.bar {
  height: 7px;
  background: #f0f4fa;
  border-radius: 2px;
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  background: #165dff;
  border-radius: 2px;
}
.bar.cyan > span {
  background: #49d6df;
}
.tabs {
  display: flex;
  gap: 25px;
  padding: 0 21px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 16px 0 13px;
  color: #8290a4;
  font-size: 11px;
  white-space: nowrap;
}
.tabs button.active {
  color: var(--blue);
  border-color: var(--blue);
  font-weight: 600;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  font-size: 11px;
}
th {
  text-align: left;
  background: #fafbfd;
  color: #8995a7;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  font-weight: 500;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 16px 18px;
  border-bottom: 1px solid #eef1f6;
  color: #526179;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fbfcff;
}
td strong {
  color: #28394f;
  font-weight: 500;
}
td small {
  display: block;
  font-size: 9px;
  color: #98a2b1;
  margin-top: 5px;
}
.source-dot {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: #f0f4fb;
  border-radius: 4px;
  color: #516682;
  margin-right: 9px;
  vertical-align: middle;
  font-size: 10px;
}
.cell-name {
  display: inline-block;
  vertical-align: middle;
}
.conversion {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.conversion .bar {
  width: 55px;
  height: 4px;
}
.table-footer {
  border-top: 1px solid var(--border);
  padding: 13px 20px;
  color: #929caf;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
  background: #f0f3f8;
  color: #758298;
}
.badge.Priority {
  color: #054c62;
  background: #ddfafd;
  border: 1px solid #b4ecee;
}
.badge.Invited,
.badge.Unused,
.badge.Delivered,
.badge.Active,
.badge.Activated {
  color: #118c6e;
  background: #ebf8f3;
}
.badge.Standard {
  color: #6a7890;
  background: #f0f3f8;
}
.badge.Used,
.badge.Pending,
.badge.PendingVerification,
.badge.Scheduled {
  color: #a97516;
  background: #fff6e3;
}
.badge.Disabled,
.badge.Failed,
.badge.Expired,
.badge.Suppressed {
  color: #bc5260;
  background: #fff0f1;
}
.credit-badge {
  color: #49f5f5;
  background: #172335;
  font-size: 9px;
  border-radius: 3px;
  padding: 4px 7px;
  display: inline-block;
}
.filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
}
input,
select,
textarea {
  border: 1px solid #dfe5ef;
  border-radius: 4px;
  color: #3f4e65;
  background: white;
  padding: 9px 10px;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #a1aabb;
}
input[type='checkbox'] {
  accent-color: var(--blue);
  width: 13px;
  height: 13px;
  margin: 0;
  vertical-align: middle;
}
.filters input {
  width: 225px;
  height: 33px;
  font-size: 10px;
}
.filters select {
  height: 33px;
  font-size: 10px;
  padding: 0 23px 0 10px;
  max-width: 160px;
}
.filter-end {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.user-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}
.user-cell .avatar {
  background: #edf3fd;
  color: #5474a4;
  width: 29px;
  height: 29px;
  font-size: 9px;
}
.row-actions {
  display: flex;
  gap: 10px;
  font-size: 10px;
}
.bulk-bar {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 20px;
  background: #edf3ff;
  color: #3165c5;
  font-size: 11px;
  border-bottom: 1px solid #dae5ff;
}
.empty {
  padding: 48px 20px;
  text-align: center;
  color: #8e9aae;
  line-height: 1.8;
}
.empty strong {
  display: block;
  color: #526179;
  font-size: 15px;
}
.credit-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border: 1px solid #dce6fa;
  border-radius: 4px;
  background: #eff5ff;
  margin-bottom: 23px;
  font-size: 11px;
}
.credit-summary strong {
  color: #28528a;
  font-weight: 500;
}
.credit-summary .text-button {
  margin-left: auto;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stack {
  display: grid;
  gap: 18px;
}
.section-space {
  margin-top: 24px;
}
.info-note {
  color: #76869d;
  background: #f4f7fc;
  border: 1px solid #e4eaf5;
  padding: 13px 15px;
  font-size: 11px;
  line-height: 1.8;
  border-radius: 4px;
}
.info-note.blue {
  color: #37649c;
  background: #edf5ff;
  border-color: #dce9fc;
}
.app-footer {
  border-top: 1px solid var(--border);
  padding: 18px 34px;
  display: flex;
  justify-content: space-between;
  color: #99a4b5;
  font-size: 9px;
  gap: 15px;
}
.separator {
  margin: 0 10px;
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #17233550;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(2px);
}
.modal {
  width: 640px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: white;
  border-radius: 6px;
  border: 1px solid #dae1ec;
  box-shadow: 0 20px 80px #17233529;
}
.modal.wide {
  width: 900px;
}
.modal-head {
  position: sticky;
  top: 0;
  background: white;
  padding: 21px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  z-index: 2;
}
.modal-head h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.3px;
  font-weight: 600;
}
.modal-head p {
  color: #8e9aae;
  font-size: 11px;
  margin: 7px 0 0;
}
.modal-body {
  padding: 24px;
}
.modal-foot {
  padding: 17px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: #fbfcff;
}
.drawer-overlay {
  justify-content: flex-end;
  padding: 0;
}
.drawer {
  width: 760px;
  max-width: 95vw;
  height: 100vh;
  max-height: none;
  border-radius: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 18px;
}
.field label {
  font-weight: 500;
  color: #42526b;
}
.field small {
  color: #8a96a8;
  font-size: 10px;
  line-height: 1.6;
}
.field input,
.field select {
  width: 100%;
  min-height: 37px;
}
.field textarea {
  resize: vertical;
  width: 100%;
  line-height: 1.8;
  min-height: 180px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-error {
  color: #b0394c;
  padding: 10px 0;
  font-size: 11px;
  line-height: 1.6;
}
.field-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #5b6c85;
  margin: 13px 0;
}
.check-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.definition-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 15px;
  font-size: 11px;
}
.definition-grid dt {
  color: #8d99ab;
}
.definition-grid dd {
  margin: 0;
  color: #445872;
  overflow-wrap: anywhere;
}
.drawer h3 {
  font-size: 12px;
  margin: 25px 0 17px;
}
.drawer h3:first-child {
  margin-top: 0;
}
.user-profile {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
}
.user-profile .avatar {
  width: 46px;
  height: 46px;
  font-size: 15px;
  background: #e8f0ff;
  color: #4671b8;
}
.user-profile strong {
  font-size: 16px;
  font-weight: 500;
}
.user-profile p {
  margin: 6px 0 0;
  color: #8a96a8;
  font-size: 11px;
}
.email-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
}
.email-preview {
  background: #f1f4f9;
  padding: 24px 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.email-paper {
  background: white;
  border: 1px solid #e2e8f1;
}
.email-brand {
  padding: 23px;
  border-bottom: 1px solid #eef1f7;
  font-family: Georgia, serif;
  font-size: 29px;
  letter-spacing: -1px;
  color: #153b43;
}
.email-content {
  padding: 25px;
  font-size: 12px;
  line-height: 1.9;
  color: #607087;
}
.email-content h3 {
  color: #263b56;
  font-size: 19px;
  letter-spacing: -0.4px;
  font-weight: 500;
  line-height: 1.5;
}
.email-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.email-footer {
  padding: 20px 24px;
  font-size: 8px;
  line-height: 1.8;
  color: #9ba5b4;
  border-top: 1px solid #eef1f7;
}
.email-cta {
  display: block;
  background: #165dff;
  color: white;
  padding: 11px 12px;
  margin: 23px 0;
  text-align: center;
  font-size: 11px;
  border-radius: 3px;
}
.variable-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.variable-list button {
  padding: 5px 7px;
  border: 1px solid #dce5f4;
  color: #4e6d9b;
  background: #f5f8ff;
  border-radius: 3px;
  font: 10px monospace;
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 21px;
  font-size: 11px;
}
.switch {
  display: inline-block;
  position: relative;
  width: 31px;
  height: 18px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: #d4ddeb;
  cursor: pointer;
}
.switch span:after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}
.switch input:checked + span {
  background: var(--blue);
}
.switch input:checked + span:after {
  transform: translateX(13px);
}
.switch input:focus-visible + span {
  outline: 2px solid #165dff;
  outline-offset: 3px;
}
.preview-heading {
  display: flex;
  justify-content: space-between;
  color: #8a96a8;
  margin-bottom: 13px;
  font-size: 10px;
}
.test-email {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.test-email input {
  width: 100%;
  font-size: 10px;
}
.milestone {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 11px;
}
.milestone > span:first-child {
  width: 120px;
  color: #788397;
}
.milestone .bar {
  flex: 1;
}
.milestone strong {
  width: 34px;
  text-align: right;
  font-size: 12px;
  font-weight: 500;
}
.cost-input {
  width: 90px;
  height: 27px;
  padding: 4px 7px;
  font-size: 10px;
}
.activity-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.activity-row small {
  color: #8e9aae;
  font-size: 9px;
  display: block;
  margin-top: 6px;
}
.activity-row .badge {
  margin-left: auto;
}
.copy-text {
  font-family: monospace;
  font-size: 10px;
  color: #4e6d9b;
  max-width: 230px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 22px;
}
.mini-stats div {
  background: #f5f8ff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 13px;
  font-size: 9px;
  color: #8996a8;
}
.mini-stats strong {
  display: block;
  color: #345274;
  font-size: 20px;
  margin-bottom: 5px;
  font-weight: 500;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 100px);
  transform: translate(-50%, 20px);
  background: #172335;
  color: white;
  padding: 13px 20px;
  border-radius: 5px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  font-size: 12px;
  box-shadow: 0 4px 16px #17233524;
  max-width: 80vw;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #9c3646;
}
.skip-link {
  position: fixed;
  left: 10px;
  top: -50px;
  z-index: 300;
  background: white;
  color: #165dff;
  padding: 10px;
}
.skip-link:focus {
  top: 10px;
}
.mobile-only {
  display: none;
}
@media (min-width: 1550px) {
  :root {
    --sidebar: 260px;
  }
  main {
    padding: 40px 44px;
  }
}
@media (max-width: 1150px) {
  :root {
    --sidebar: 210px;
  }
  main {
    padding: 26px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .metric-grid {
    gap: 10px;
  }
  .metric-card {
    padding: 15px 13px;
  }
  .sparkline {
    width: 45px;
    opacity: 0.45;
  }
  .overview-grid {
    grid-template-columns: 1.3fr 1fr;
  }
}
@media (max-width: 900px) {
  :root {
    --sidebar: 190px;
  }
  .brand {
    font-size: 21px;
  }
  .brand > span:last-child {
    display: none;
  }
  .workspace {
    padding: 10px 6px;
    font-size: 10px;
  }
  .workspace-icon {
    display: none;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .overview-grid .panel:last-child .panel-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 22px;
  }
  .funnel-row {
    margin: 0;
  }
  .page-heading {
    flex-direction: column;
    gap: 8px;
  }
  .heading-actions {
    padding-top: 0;
  }
  .email-layout {
    grid-template-columns: 1fr;
  }
  .app-footer {
    padding: 18px 24px;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 236px;
    transition: transform 0.2s;
    box-shadow: 0 0 40px #17233512;
  }
  body.menu-open .sidebar {
    transform: translateX(0);
  }
  .mobile-only {
    display: inline-block;
    margin: 0 10px 0 -8px;
  }
  .topbar {
    height: 59px;
    padding: 0 18px;
  }
  .header-right {
    gap: 10px;
  }
  .environment {
    display: none;
  }
  main {
    padding: 24px 16px;
  }
  h1 {
    font-size: 25px;
  }
  .metric-grid {
    gap: 9px;
  }
  .metric-value {
    font-size: 25px;
  }
  .metric-foot {
    font-size: 8px;
  }
  .metric-top {
    font-size: 9px;
  }
  .sparkline {
    display: none;
  }
  .heading-actions {
    width: 100%;
  }
  .credit-summary {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .credit-summary .text-button {
    margin-left: 0;
  }
  .filters {
    padding: 13px;
    gap: 8px;
  }
  .filters input {
    width: 100%;
  }
  .filters select {
    flex: 1;
    max-width: 50%;
  }
  .filter-end {
    margin: 0;
  }
  .panel-head {
    padding: 16px;
  }
  .panel-body {
    padding: 17px;
  }
  .tabs {
    padding: 0 16px;
    gap: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .overlay {
    padding: 12px;
  }
  .modal {
    max-height: calc(100vh - 24px);
  }
  .modal-head {
    padding: 17px;
  }
  .modal-body {
    padding: 18px;
  }
  .modal-head h2 {
    font-size: 16px;
  }
  .modal-foot {
    padding: 14px 17px;
    flex-wrap: wrap;
  }
  .drawer-overlay {
    padding: 0;
  }
  .drawer {
    max-width: 100vw;
    max-height: none;
  }
  .mini-stats {
    grid-template-columns: 1fr 1fr;
  }
  .email-layout {
    padding: 16px;
  }
  .email-preview {
    padding: 14px 10px;
  }
  .definition-grid {
    grid-template-columns: 115px 1fr;
    gap: 13px;
  }
  .app-footer {
    padding: 16px;
    flex-direction: column;
    gap: 8px;
  }
  #toast {
    left: 50%;
  }
  .bulk-bar {
    flex-wrap: wrap;
    gap: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.analytics-guide { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 15px 24px; font-size: 10px; color: #566981; background: #f7f9fe; border-bottom: 1px solid #edf0f7; }
.analytics-guide > span { color: #a8b6ce; }
.analytics-guide small { margin-left: auto; color: #8b99ae; }
.acquisition-group { background: #f8faff; }
.acquisition-child { display: inline-block; padding-left: 20px; color: #63768f; }
.table-link { padding: 0; font: inherit; font-weight: 600; color: #2456a5; background: none; border: 0; cursor: pointer; }
.table-link:hover { text-decoration: underline; }
.analytics-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 24px; border-top: 1px solid #edf0f7; }
.analytics-note { margin: 0; padding: 14px 24px; color: #7c8ca2; font-size: 11px; line-height: 1.8; background: #fafbfe; border-top: 1px solid #edf0f7; }
