/* Makro Analyst - analyst.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ma-bg: #f8fafc;
  --ma-sidebar: #ffffff;
  --ma-surface: #ffffff;
  --ma-surface2: #f1f5f9;
  --ma-border: #e2e8f0;
  --ma-text: #0f172a;
  --ma-muted: #64748b;
  --ma-soft: #94a3b8;
  --ma-accent: #155eef;
  --ma-green: #0f9f5f;
  --ma-yellow: #b7791f;
  --ma-red: #dc2626;
  --ma-orange: #ea580c;
  --ma-radius: 18px;
  --ma-shadow: 0 12px 28px rgba(15, 23, 42, .055);
  --ma-shadow-strong: 0 20px 50px rgba(15, 23, 42, .085);
  --ma-font: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

body {
  background: var(--ma-bg);
  color: var(--ma-text);
  font-family: var(--ma-font);
}

.ma-app {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: var(--ma-bg);
  color: var(--ma-text);
  letter-spacing: 0;
}

.ma-access-shell {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--ma-bg);
}

.ma-access-card {
  width: min(420px, 100%);
  background: var(--ma-surface);
  border: 1px solid var(--ma-border);
  border-radius: 16px;
  box-shadow: var(--ma-shadow);
  padding: 24px;
}

.ma-access-card .ma-mark {
  margin-bottom: 14px;
}

.ma-access-card h2 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
  color: var(--ma-text);
}

.ma-access-card p {
  margin: 0 0 16px;
  color: var(--ma-muted);
  font-size: 14px;
  line-height: 1.55;
}

.ma-access-error {
  color: var(--ma-red) !important;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 12px;
}

.ma-app button,
.ma-app input {
  font: inherit;
  letter-spacing: 0;
}

.ma-email-buddy {
  width: min(1180px, calc(100vw - 32px));
  margin: 24px auto;
  color: var(--ma-text);
  font-family: var(--ma-font);
}

.ma-eb-hero,
.ma-eb-panel,
.ma-eb-company-card,
.ma-eb-card {
  background: var(--ma-surface);
  border: 1px solid var(--ma-border);
  border-radius: 16px;
  box-shadow: var(--ma-shadow);
}

.ma-eb-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 22px 26px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff, #eef6ff);
}

.ma-eb-hero h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
}

.ma-eb-hero p {
  color: var(--ma-muted);
  line-height: 1.55;
  max-width: 700px;
}

.ma-eb-mode {
  padding: 10px 14px;
  border-radius: 999px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.ma-eb-panel {
  padding: 18px;
  margin-bottom: 18px;
}

.ma-eb-dashboard {
  background: #fff;
  border: 1px solid var(--ma-border);
  border-radius: 16px;
  box-shadow: var(--ma-shadow);
  margin-bottom: 18px;
  overflow: hidden;
}

.ma-eb-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--ma-border);
}

.ma-eb-tabs button {
  appearance: none;
  border: 0;
  border-right: 1px solid var(--ma-border);
  background: transparent;
  color: #334155;
  min-height: 58px;
  padding: 12px 10px;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}

.ma-eb-tabs button:last-child {
  border-right: 0;
}

.ma-eb-tabs button.active {
  background: #0f4a8a;
  color: #fff;
}

.ma-eb-tabs button span {
  float: right;
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e0edff;
  color: #155eef;
  text-align: center;
}

.ma-eb-tabs button.active span {
  background: rgba(255,255,255,.16);
  color: #fff;
}

.ma-eb-tab-panels {
  padding: 14px;
}

.ma-eb-tab-panel {
  display: none;
}

.ma-eb-tab-panel.active {
  display: block;
}

.ma-eb-tab-panel > strong {
  display: block;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 10px;
}

.ma-eb-tab-panel > p,
.ma-eb-tab-list p {
  color: var(--ma-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 10px;
}

.ma-eb-tab-list {
  display: block;
}

.ma-eb-tab-row {
  border: 1px solid #c7ddff;
  background: #f8fbff;
  border-radius: 12px;
  padding: 12px;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}

.ma-eb-tab-row.static {
  cursor: default;
}

.ma-eb-tab-row strong,
.ma-eb-tab-row span {
  display: block;
}

.ma-eb-tab-row strong {
  font-size: 14px;
  font-weight: 900;
}

.ma-eb-tab-row span {
  color: #64748b;
  font-size: 12px;
  margin-top: 4px;
}

.ma-eb-panel-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
}

.ma-eb-panel-tools select,
.ma-eb-panel-tools input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  color: #0f172a;
  font-size: 13px;
}

.ma-eb-compact-table,
.ma-eb-ops-table {
  display: grid;
  gap: 6px;
}

.ma-eb-compact-row,
.ma-eb-ops-row {
  width: 100%;
  display: grid;
  grid-template-columns: 120px minmax(180px, 1.2fr) minmax(220px, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #d7e6ff;
  background: #f8fbff;
  border-radius: 8px;
  padding: 9px 11px;
  color: #0f172a;
  text-align: left;
}

.ma-eb-compact-row {
  cursor: pointer;
}

.ma-eb-compact-row span,
.ma-eb-ops-row span,
.ma-eb-ops-row b {
  color: #155eef;
  font-size: 12px;
  font-weight: 900;
}

.ma-eb-compact-row strong,
.ma-eb-ops-row strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.ma-eb-compact-row em,
.ma-eb-ops-row em {
  min-width: 0;
  color: #475569;
  font-size: 12px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ma-eb-ops-row {
  grid-template-columns: 90px 130px minmax(130px, 1fr) minmax(130px, 1fr) minmax(160px, 1fr) 110px;
  cursor: default;
}

.ma-eb-sent-row {
  grid-template-columns: 120px 110px minmax(150px, 1fr) minmax(150px, 1fr) 90px 120px;
}

.ma-eb-sent-head {
  grid-template-columns: 120px 110px minmax(150px, 1fr) minmax(150px, 1fr) 90px 120px !important;
}

.ma-eb-sent-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.ma-eb-sent-summary article {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  background: #f8fbff;
}

.ma-eb-sent-summary span,
.ma-eb-sent-summary em {
  display: block;
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ma-eb-sent-summary strong {
  display: block;
  margin: 3px 0;
  color: #0f172a;
  font-size: 21px;
  line-height: 1;
}

.ma-eb-outcome {
  color: #155eef !important;
  font-weight: 800;
}

.ma-eb-day-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 10px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
}

.ma-eb-day-heading strong {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
}

.ma-eb-day-heading span {
  font-size: 12px;
  font-weight: 900;
  color: #1d4ed8;
}

.ma-eb-ops-head,
.ma-eb-record-head {
  display: grid;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  color: #475569;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ma-eb-ops-head {
  grid-template-columns: 90px 130px minmax(130px, 1fr) minmax(130px, 1fr) minmax(160px, 1fr) 110px;
}

.ma-eb-date-group .ma-eb-ops-head {
  grid-template-columns: 120px 130px minmax(130px, 1fr) minmax(160px, 1fr) 110px;
}

.ma-eb-step-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
}

.ma-eb-record-table {
  display: grid;
  gap: 6px;
}

.ma-eb-record-head,
.ma-eb-record-row { grid-template-columns: 92px minmax(180px, 1.4fr) minmax(175px, 1fr) minmax(140px, .9fr); }

.ma-eb-record-row {
  display: grid;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px 12px;
  text-align: left;
  color: #0f172a;
}

.ma-eb-record-row strong,
.ma-eb-record-row span,
.ma-eb-record-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ma-eb-company-record { border: 1px solid #bfdbfe; border-radius: 10px; background: #f8fbff; overflow: hidden; }
.ma-eb-company-record summary { list-style: none; cursor: pointer; }
.ma-eb-company-record summary::-webkit-details-marker { display: none; }
.ma-eb-company-record summary::after { content: '▾'; color: #1d4ed8; font-size: 12px; }
.ma-eb-company-record:not([open]) summary::after { content: '▸'; }
.ma-eb-contact-record { padding: 6px 10px 10px; border-top: 1px solid #dbeafe; background: #fff; }
.ma-eb-contact-record > div { display: grid; grid-template-columns: minmax(100px, .8fr) minmax(160px, 1.25fr) minmax(120px, 1fr) minmax(155px, 1.15fr) minmax(130px, .9fr); gap: 8px; align-items: center; padding: 6px 4px; border-bottom: 1px solid #eef5ff; color: #475569; font-size: 11px; }
.ma-eb-contact-record > div:first-child { color: #64748b; font-size: 9px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.ma-eb-contact-record > div:last-child { border-bottom: 0; }
.ma-eb-contact-record strong { color: #0f172a; font-size: 11px; }
.ma-eb-contact-record em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ma-eb-record-row span {
  color: #1d4ed8;
  font-weight: 900;
}

.ma-eb-record-row strong {
  font-size: 13px;
  font-weight: 900;
}

.ma-eb-record-row em {
  color: #475569;
  font-size: 12px;
  font-style: normal;
}

.ma-eb-date-group {
  margin-bottom: 12px;
  border: 1px solid #d7e6ff;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.ma-eb-date-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  background: #17213a;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ma-eb-date-group summary::-webkit-details-marker {
  display: none;
}

.ma-eb-date-group summary span {
  flex: 1;
}

.ma-eb-date-group summary em {
  color: #93c5fd;
  font-style: normal;
}

.ma-eb-date-group summary b {
  color: #fff;
  font-size: 12px;
  transition: transform .15s ease;
}

.ma-eb-date-group:not([open]) summary b {
  transform: rotate(-90deg);
}

.ma-eb-date-group .ma-eb-ops-table {
  padding: 6px;
}

.ma-eb-toolbar {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.ma-eb-search {
  flex: 1;
}

.ma-eb-status {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ma-muted);
}

.ma-eb-status.done { color: var(--ma-green); }
.ma-eb-status.warn { color: var(--ma-yellow); }
.ma-eb-status.error { color: var(--ma-red); }
.ma-eb-status.running { color: var(--ma-accent); }

.ma-email-buddy button:disabled,
.ma-eb-card button:disabled {
  cursor: not-allowed;
  opacity: .55;
  box-shadow: none;
}

#eb-send-local-status.done { color: var(--ma-green); }
#eb-send-local-status.warn { color: #b45309; }
#eb-send-local-status.error { color: var(--ma-red); }
#eb-send-local-status.running { color: var(--ma-accent); }

.ma-eb-warmup-panel,
.ma-eb-deliverability {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 12px;
  padding: 14px;
  margin: 0;
}

.ma-eb-warmup-panel p,
.ma-eb-deliverability strong {
  color: #1e293b;
  font-size: 14px;
  line-height: 1.55;
}

.ma-eb-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 8px;
}

.ma-eb-check input {
  width: 18px;
  height: 18px;
}

.ma-eb-send-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: 14px;
  margin: 14px 0;
}

.ma-eb-history-block {
  border: 1px solid #dbeafe;
  background: #f8fafc;
  border-radius: 14px;
  padding: 14px;
  margin-top: 14px;
}

.ma-eb-history-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
}

.ma-eb-history-head strong {
  font-size: 16px;
  font-weight: 900;
}

.ma-eb-history-head span {
  color: var(--ma-muted);
  font-size: 12px;
}

.ma-eb-workspace {
  display: grid;
  gap: 18px;
}

.ma-eb-workspace[hidden],
.ma-eb-workspace.ma-eb-workspace-hidden {
  display: none !important;
}

.ma-eb-company-card {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.ma-eb-company-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: 22px;
  align-items: start;
}

.ma-eb-company-card h3 {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
}

.ma-eb-company-card a {
  color: var(--ma-accent);
  font-weight: 700;
}

.ma-eb-score-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ma-eb-score-strip div,
.ma-eb-rulebox,
.ma-eb-selected,
.ma-eb-template,
.ma-eb-sequence-status,
.ma-eb-empty {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 12px;
  padding: 14px;
}

.ma-eb-score-strip span {
  display: block;
  color: #475569;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .04em;
}

.ma-eb-score-strip strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  font-weight: 900;
}

.ma-eb-summary,
.ma-eb-help,
.ma-eb-rulebox p {
  color: #334155;
  line-height: 1.6;
  font-size: 14px;
}

.ma-eb-step-card {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.ma-eb-signal-grid {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) repeat(2, minmax(200px, 1fr));
  gap: 12px;
  align-items: stretch;
  margin: 10px 0 14px;
}

.ma-eb-mini-card {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 12px;
  padding: 13px 14px;
}

.ma-eb-mini-card span,
.ma-eb-subject span {
  display: block;
  font-size: 10px;
  color: #475569;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.ma-eb-mini-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  color: #0f172a;
  font-weight: 900;
}

.ma-eb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 18px;
}

.ma-eb-card {
  padding: 20px;
}

.ma-eb-card h3 {
  margin: 4px 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.ma-eb-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.ma-eb-contact-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.ma-eb-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr .7fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--ma-border);
  border-radius: 12px;
  background: #f8fafc;
}

.ma-eb-contact-row.ma-eb-contact-lane {
  grid-template-columns: 98px repeat(4, minmax(0, 1fr));
  align-items: end;
}

.ma-eb-lane-check {
  min-height: 64px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 10px;
  padding: 10px;
  align-content: center;
}

.ma-eb-lane-check input {
  width: 18px;
  height: 18px;
}

.ma-eb-contact-row label {
  display: grid;
  gap: 5px;
}

.ma-eb-contact-row span {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  color: #475569;
}

.ma-eb-contact-row input,
.ma-eb-toolbar select,
.ma-email-buddy select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: var(--ma-text);
  padding: 9px 11px;
  font-size: 13px;
}

.ma-eb-selected strong,
.ma-eb-selected span {
  display: block;
}

.ma-eb-selected span {
  font-size: 10px;
  color: #475569;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.ma-eb-selected p {
  margin: 7px 0 0;
  color: #334155;
  line-height: 1.5;
}

.ma-eb-subject {
  border: 1px solid #dbeafe;
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

.ma-eb-subject strong {
  font-size: 16px;
  color: #0f172a;
}

.ma-eb-template pre {
  white-space: pre-wrap;
  margin-top: 10px;
  color: #334155;
  font-family: inherit;
  line-height: 1.55;
}

.ma-eb-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.ma-eb-timeline div {
  border: 1px solid var(--ma-border);
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
}

.ma-eb-timeline strong,
.ma-eb-timeline span {
  display: block;
}

.ma-eb-timeline span {
  color: var(--ma-muted);
  margin-top: 4px;
}

.ma-eb-sequence-status ul {
  margin: 0;
  padding: 0;
  color: #475569;
  line-height: 1.55;
  list-style: none;
}

.ma-eb-sequence-status li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 100px;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #e2e8f0;
  align-items: center;
}

.ma-eb-sequence-status li:first-child {
  border-top: 0;
}

.ma-eb-sequence-status li span {
  color: #64748b;
  font-size: 12px;
}

.ma-eb-sequence-status li strong {
  color: #0f172a;
  font-size: 13px;
}

.ma-eb-sequence-status li em {
  justify-self: end;
  border: 1px solid #bfdbfe;
  background: #fff;
  border-radius: 999px;
  padding: 3px 9px;
  color: #1d4ed8;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: capitalize;
}

.ma-eb-sequence-status li.sent_sequence em,
.ma-eb-sequence-status li.sent em {
  border-color: #bbf7d0;
  color: #047857;
}

.ma-eb-sequence-status li.blocked em,
.ma-eb-sequence-status li.error em {
  border-color: #fecaca;
  color: #b91c1c;
}

.ma-eb-sequence-status p {
  margin: 0;
  color: var(--ma-muted);
}

.ma-eb-contact-sequences {
  display: grid;
  gap: 12px;
}

.ma-eb-contact-sequence {
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  overflow: hidden;
}

.ma-eb-contact-sequence-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(140px, .55fr);
  gap: 10px;
  align-items: center;
  background: #eef6ff;
  border-bottom: 1px solid #bfdbfe;
  padding: 12px 14px;
}

.ma-eb-contact-sequence-head span {
  width: fit-content;
  border: 1px solid #93c5fd;
  background: #dbeafe;
  color: #155eef;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}

.ma-eb-contact-sequence-head strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.ma-eb-contact-sequence-head em {
  color: #475569;
  font-size: 12px;
  font-style: normal;
  text-align: right;
}

.ma-eb-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.ma-eb-seq-step {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  min-height: 92px;
}

.ma-eb-seq-step span,
.ma-eb-seq-step strong,
.ma-eb-seq-step em {
  display: block;
}

.ma-eb-seq-step span {
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ma-eb-seq-step strong {
  margin-top: 8px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.ma-eb-seq-step em {
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

.ma-eb-seq-step.scheduled {
  border-color: #facc15;
  background: #fffbeb;
}

.ma-eb-seq-step.sent {
  border-color: #86efac;
  background: #f0fdf4;
}

.ma-eb-seq-step.sent strong {
  color: #047857;
}

.ma-eb-seq-step.blocked {
  border-color: #fecaca;
  background: #fff1f2;
}

.ma-eb-seq-step.blocked strong {
  color: #be123c;
}

.ma-eb-seq-step.waiting {
  border-style: dashed;
  color: #64748b;
}

.ma-eb-recent-activity {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .ma-eb-tabs,
  .ma-eb-step-grid {
    grid-template-columns: 1fr;
  }

  .ma-eb-compact-row,
  .ma-eb-ops-row {
    grid-template-columns: 1fr;
  }

  .ma-eb-company-top,
  .ma-eb-grid,
  .ma-eb-signal-grid,
  .ma-eb-send-grid {
    grid-template-columns: 1fr;
  }

  .ma-eb-contact-row {
    grid-template-columns: 1fr;
  }

  .ma-eb-contact-row.ma-eb-contact-lane {
    grid-template-columns: 1fr;
  }

  .ma-eb-sequence-status li {
    grid-template-columns: 1fr;
  }

  .ma-eb-sequence-status li em {
    justify-self: start;
  }

  .ma-eb-contact-sequence-head {
    grid-template-columns: 1fr;
  }

  .ma-eb-contact-sequence-head em {
    text-align: left;
  }

  .ma-eb-sent-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ma-sidebar {
  width: 326px;
  min-width: 296px;
  background: var(--ma-sidebar);
  border-right: 1px solid var(--ma-border);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 8px 0 30px rgba(15, 23, 42, .04);
}

.ma-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 4px 22px;
  border-bottom: 1px solid var(--ma-border);
}

.ma-mark {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #155eef, #1d4ed8);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 12px 26px rgba(21, 94, 239, .24);
}

.ma-brand h1 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
}

.ma-brand p {
  font-size: 12px;
  color: var(--ma-muted);
  margin-top: 3px;
}

.ma-form-wrap,
.ma-status-wrap,
.ma-history {
  background: var(--ma-surface);
  border: 1px solid var(--ma-border);
  border-radius: 16px;
  box-shadow: var(--ma-shadow);
}

.ma-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 18px;
}

.ma-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ma-field span,
.ma-history h4,
.ma-eyebrow,
.ma-action-label,
.ma-opinion-item strong,
.ma-hyp strong,
.ma-outreach-item strong,
.ma-challenge-item strong {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ma-field em {
  color: var(--ma-red);
  font-style: normal;
}

.ma-field input {
  width: 100%;
  min-height: 47px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--ma-text);
  font-size: 13.5px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.ma-field input::placeholder { color: #94a3b8; }

.ma-field input:focus {
  outline: no…9783 tokens truncated…}

.ma-closeout-section .ma-save-btn,
.ma-closeout-section .ma-skip-btn,
.ma-closeout-section .ma-reset-btn,
.ma-closeout-section .ma-feedback-submit {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
}

@media (max-width: 900px) {
  .ma-closeout-grid {
    grid-template-columns: 1fr;
  }
}

/* V1.15.3 - compact closeout + stronger drawer */
.ma-target-title-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.ma-read-more {
  background: #0f2f6b;
  border-color: #0f2f6b;
  box-shadow: 0 10px 24px rgba(15, 47, 107, .16);
}

.ma-read-more > summary {
  min-height: 42px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 13px;
}

.ma-read-more > summary::after {
  background: rgba(255,255,255,.16);
  color: #ffffff;
  border-color: rgba(255,255,255,.22);
}

.ma-read-more[open] {
  background: #ffffff;
  border-color: #93c5fd;
}

.ma-read-more[open] > summary {
  color: #1d4ed8;
  border-bottom: 1px solid #dbeafe;
}

.ma-read-more[open] > summary::after {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.ma-save-section {
  max-width: 760px;
  padding: 16px;
}

.ma-save-section .ma-section-kicker {
  min-height: 20px;
  padding: 2px 8px;
  margin-bottom: 6px;
  font-size: 10px;
}

.ma-save-section .ma-section-title {
  font-size: 15px;
  margin-bottom: 10px;
}

.ma-review-save {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.ma-review-grid {
  gap: 8px;
}

.ma-review-grid label span,
.ma-review-note span {
  font-size: 10px;
}

.ma-review-grid select,
.ma-review-note textarea,
.ma-skip-row input[type="text"] {
  min-height: 34px;
  border-radius: 6px;
  font-size: 12px;
}

.ma-review-note textarea {
  min-height: 60px;
}

.ma-skip-row {
  gap: 8px;
  padding: 8px;
  border-radius: 7px;
  margin-top: 8px;
}

.ma-skip-row label {
  font-size: 11px;
}

.ma-review-actions {
  margin-top: 10px;
  gap: 8px;
}

.ma-save-btn,
.ma-skip-btn,
.ma-reset-btn {
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 6px;
  font-size: 11px;
}

/* V1.15.4 final override - must remain last */
.ma-read-more,
.ma-read-more:not([open]) {
  background: #0b3a78 !important;
  border: 1px solid #0b3a78 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 24px rgba(11, 58, 120, .18) !important;
}

.ma-read-more > summary,
.ma-read-more:not([open]) > summary,
.ma-read-more[open] > summary {
  min-height: 40px !important;
  padding: 10px 14px !important;
  color: #ffffff !important;
  background: #0b3a78 !important;
  opacity: 1 !important;
  border: 0 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.ma-read-more > summary::after,
.ma-read-more:not([open]) > summary::after,
.ma-read-more[open] > summary::after {
  background: rgba(255,255,255,.16) !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,.24) !important;
}

.ma-read-more[open] {
  background: #ffffff !important;
  border-color: #93c5fd !important;
}

.ma-closeout-section {
  background: #ffffff !important;
  border: 1px solid #dbeafe !important;
  border-radius: 10px !important;
  padding: 16px !important;
}

.ma-closeout-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) !important;
  gap: 16px !important;
  align-items: start !important;
}

.ma-closeout-section .ma-review-save,
.ma-closeout-section .ma-feedback-block {
  padding: 12px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

.ma-closeout-section .ma-review-grid {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

.ma-closeout-section textarea {
  min-height: 58px !important;
}

@media (max-width: 900px) {
  .ma-closeout-grid {
    grid-template-columns: 1fr !important;
  }
}

/* V1.15.5 - simplify junior action areas */
.ma-persona-rule-table {
  padding: 16px !important;
}

.ma-persona-rule-table strong {
  font-size: 13px !important;
}

.ma-persona-rule-table .ma-small-note {
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.ma-persona-rule-table table {
  font-size: 14px !important;
}

.ma-persona-rule-table th,
.ma-persona-rule-table td {
  padding: 12px 14px !important;
  line-height: 1.45 !important;
}

.ma-persona-known {
  padding: 14px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.7;
}

.ma-contact-plan:empty {
  display: none !important;
}

.compact-empty,
.ma-contact-empty {
  padding: 14px 16px !important;
  border: 1px solid #dbeafe !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
}

.compact-empty strong,
.ma-contact-empty strong {
  font-size: 14px !important;
  color: #0f172a !important;
}

.compact-empty p,
.ma-contact-empty p {
  margin-top: 5px !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: #475569 !important;
}

.ma-read-more:not([open]) {
  width: fit-content !important;
  max-width: 100% !important;
}

.ma-read-more:not([open]) > summary {
  border-radius: 8px !important;
  padding: 9px 13px !important;
  min-height: 38px !important;
}

.ma-read-more[open] {
  width: 100% !important;
}

.ma-closeout-section .ma-review-grid {
  grid-template-columns: 1fr 1fr !important;
}

.ma-radio-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ma-radio-field > span {
  width: 100%;
  font-size: 10px;
  font-weight: 900;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.ma-radio-field label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .ma-closeout-section .ma-review-grid {
    grid-template-columns: 1fr !important;
  }
}

/* V1.15.6 - unified read-more and closeout layout */
.ma-read-more {
  margin: 22px 0 16px !important;
}

.ma-read-more:not([open]) {
  display: inline-block !important;
  width: auto !important;
}

.ma-read-more:not([open]) > summary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 42px !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
}

.ma-read-more[open] {
  display: block !important;
  width: 100% !important;
  margin-bottom: 18px !important;
}

.ma-closeout-section {
  margin-top: 0 !important;
  padding: 18px !important;
  background: #ffffff !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .045) !important;
}

.ma-closeout-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.ma-closeout-header .ma-section-kicker {
  margin-bottom: 6px;
}

.ma-closeout-header .ma-section-title {
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
}

.ma-closeout-header p {
  margin: 0;
  max-width: 430px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.ma-closeout-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
  align-items: stretch !important;
}

.ma-closeout-card {
  display: flex;
  flex-direction: column;
  min-height: 276px;
  padding: 14px !important;
  border: 1px solid #dbeafe !important;
  border-radius: 9px !important;
  background: #f8fafc !important;
}

.ma-closeout-card h4 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.ma-closeout-card .ma-review-save,
.ma-closeout-card .ma-feedback-block {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ma-closeout-card .ma-review-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

.ma-closeout-card .ma-feedback-options,
.ma-closeout-card .ma-feedback-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.ma-closeout-card .ma-radio-field,
.ma-closeout-card .ma-feedback-question,
.ma-closeout-card .ma-feedback-choice {
  margin: 0;
}

.ma-closeout-card .ma-radio-field > span,
.ma-closeout-card .ma-review-note span,
.ma-closeout-card .ma-feedback-question strong,
.ma-closeout-card .ma-feedback-choice p,
.ma-closeout-card .ma-feedback-cats strong {
  display: block;
  width: 100%;
  margin-bottom: 7px;
  color: #475569;
  font-size: 10.5px !important;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.ma-closeout-card .ma-radio-field label,
.ma-closeout-card .ma-feedback-options label,
.ma-closeout-card .ma-feedback-choice label,
.ma-closeout-card .ma-feedback-details label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
}

.ma-closeout-card .ma-feedback-details {
  margin-top: 12px;
}

.ma-closeout-card .ma-feedback-details p {
  margin: 0 0 7px;
  color: #475569;
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.ma-closeout-card textarea,
.ma-closeout-card input[type="text"],
.ma-closeout-card select {
  width: 100%;
  border: 1px solid #cbd5e1 !important;
  border-radius: 7px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}

.ma-closeout-card textarea {
  min-height: 74px !important;
  padding: 10px !important;
}

.ma-closeout-card .ma-review-note,
.ma-closeout-card .ma-feedback-comment {
  margin-top: 13px !important;
}

.ma-closeout-card .ma-skip-row {
  margin-top: 12px !important;
  padding: 8px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

.ma-closeout-card .ma-review-actions,
.ma-closeout-card .ma-feedback-actions {
  margin-top: auto !important;
  padding-top: 13px !important;
}

.ma-closeout-card .ma-save-btn,
.ma-closeout-card .ma-skip-btn,
.ma-closeout-card .ma-reset-btn,
.ma-closeout-card .ma-feedback-submit {
  min-height: 32px !important;
  padding: 7px 11px !important;
  border-radius: 7px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

@media (max-width: 920px) {
  .ma-closeout-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .ma-closeout-grid,
  .ma-closeout-card .ma-review-grid {
    grid-template-columns: 1fr !important;
  }
  .ma-closeout-card {
    min-height: 0;
  }
}

/* V1.15.6 final closeout polish - keep the bottom review area calm and unified. */
.ma-read-more {
  margin: 26px 0 18px !important;
}

.ma-read-more:not([open]) {
  display: block !important;
  width: fit-content !important;
  max-width: 100% !important;
}

.ma-read-more > summary,
.ma-read-more:not([open]) > summary,
.ma-read-more[open] > summary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-width: 224px !important;
  min-height: 40px !important;
  padding: 10px 12px 10px 14px !important;
  border: 1px solid #0f4a8a !important;
  border-radius: 8px !important;
  background: #0f4a8a !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(15, 74, 138, .16) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

.ma-read-more > summary::after,
.ma-read-more:not([open]) > summary::after,
.ma-read-more[open] > summary::after {
  content: "+" !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .18) !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.ma-read-more[open] {
  display: block !important;
  width: 100% !important;
  margin-bottom: 22px !important;
}

.ma-read-more[open] > summary::after {
  content: "-" !important;
}

.ma-closeout-section {
  margin-top: 0 !important;
  padding: 18px !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .055) !important;
}

.ma-closeout-header {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin: 0 0 16px !important;
  padding: 0 0 14px !important;
  border-bottom: 1px solid #dbeafe !important;
}

.ma-closeout-header .ma-section-title {
  margin: 0 !important;
  color: #0f172a !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
}

.ma-closeout-header p {
  margin: 0 !important;
  max-width: 420px !important;
  color: #64748b !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}

.ma-closeout-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

.ma-closeout-card {
  display: flex !important;
  flex-direction: column !important;
  min-height: 302px !important;
  padding: 14px !important;
  border: 1px solid #dbeafe !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7) !important;
}

.ma-closeout-card h4 {
  margin: 0 0 13px !important;
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  line-height: 1.25 !important;
}

.ma-closeout-card .ma-review-save,
.ma-closeout-card .ma-feedback-block {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  gap: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ma-closeout-card .ma-review-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

.ma-closeout-card .ma-radio-field,
.ma-closeout-card .ma-feedback-choice {
  display: flex !important;
  align-items: flex-start !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
}

.ma-closeout-card .ma-radio-field > span,
.ma-closeout-card .ma-review-note span,
.ma-closeout-card .ma-feedback-choice p,
.ma-closeout-card .ma-feedback-details p,
.ma-closeout-card .ma-feedback-comment span {
  display: block !important;
  width: 100% !important;
  margin: 0 0 7px !important;
  color: #475569 !important;
  font-size: 10.5px !important;
  font-weight: 950 !important;
  line-height: 1.25 !important;
  letter-spacing: .035em !important;
  text-transform: uppercase !important;
}

.ma-closeout-card .ma-radio-field label,
.ma-closeout-card .ma-feedback-choice label,
.ma-closeout-card .ma-feedback-details label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 32px !important;
  padding: 6px 11px !important;
  border: 1px solid #dbeafe !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
}

.ma-closeout-card .ma-review-note,
.ma-closeout-card .ma-feedback-comment {
  display: block !important;
  margin: 14px 0 0 !important;
}

.ma-closeout-card textarea {
  display: block !important;
  width: 100% !important;
  min-height: 88px !important;
  height: 88px !important;
  padding: 10px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}

.ma-closeout-card .ma-skip-row {
  display: grid !important;
  grid-template-columns: auto auto minmax(140px, 1fr) !important;
  align-items: center !important;
  gap: 9px !important;
  margin-top: 12px !important;
  padding: 9px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
}

.ma-closeout-card .ma-skip-row label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.ma-closeout-card .ma-skip-row input[type="text"] {
  width: 100% !important;
  min-height: 32px !important;
  padding: 7px 9px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 7px !important;
  color: #0f172a !important;
  font-size: 12px !important;
}

.ma-closeout-card .ma-feedback-details {
  margin-top: 12px !important;
}

.ma-closeout-card .ma-review-actions,
.ma-closeout-card .ma-feedback-submit {
  margin-top: auto !important;
}

.ma-closeout-card .ma-review-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding-top: 14px !important;
}

.ma-closeout-card .ma-feedback-submit {
  align-self: flex-start !important;
  margin-top: auto !important;
}

.ma-closeout-card .ma-save-btn,
.ma-closeout-card .ma-skip-btn,
.ma-closeout-card .ma-reset-btn,
.ma-closeout-card .ma-feedback-submit {
  min-height: 32px !important;
  padding: 7px 12px !important;
  border-radius: 7px !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
}

.ma-closeout-card .ma-review-status,
.ma-closeout-card .ma-feedback-status {
  min-height: 18px !important;
  margin: 8px 0 0 !important;
  color: #475569 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.ma-warm-route {
  margin: 10px 0 14px !important;
  padding: 10px 12px !important;
  border: 1px solid #bae6fd !important;
  border-radius: 8px !important;
  background: #eff6ff !important;
  color: #0f4a8a !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
}

@media (max-width: 920px) {
  .ma-closeout-header,
  .ma-closeout-grid {
    display: block !important;
  }

  .ma-closeout-header p {
    margin-top: 8px !important;
  }

  .ma-closeout-card {
    min-height: 0 !important;
  }

  .ma-closeout-card + .ma-closeout-card {
    margin-top: 14px !important;
  }

  .ma-closeout-card .ma-review-grid,
  .ma-closeout-card .ma-skip-row {
    grid-template-columns: 1fr !important;
  }
}

.ma-extension-status {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.ma-extension-status.running {
  color: #2563eb;
}

.ma-extension-status.done {
  color: #047857;
}

.ma-extension-status.warn {
  color: #b45309;
}

.ma-extension-card {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.ma-extension-card h4 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.ma-extension-card > p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}

.ma-extension-source {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
}

.ma-extension-source strong {
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}

.ma-extension-source a {
  color: #075985;
  font-size: 12px;
  font-weight: 800;
}

.ma-extension-source p {
  margin: 8px 0 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
}

/* Compact email ledger controls. */
.ma-email-buddy .ma-eb-page-title {
  margin: 0 0 10px;
  padding: 3px 2px;
}

.ma-email-buddy .ma-eb-page-title h2 {
  margin: 0;
  color: #17213a;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.01em;
}

.ma-email-buddy .ma-eb-sent-summary .ma-eb-sent-stat {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #f8fbff;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
}

.ma-email-buddy .ma-eb-sent-summary .ma-eb-sent-stat:hover,
.ma-email-buddy .ma-eb-sent-summary .ma-eb-sent-stat.active {
  border-color: #155eef;
  background: #eef6ff;
}

.ma-email-buddy .ma-eb-sent-summary .ma-eb-sent-stat:focus-visible,
.ma-email-buddy .ma-eb-ledger-tools input:focus-visible,
.ma-email-buddy .ma-eb-ledger-tools select:focus-visible {
  outline: 2px solid #155eef;
  outline-offset: 1px;
}

.ma-email-buddy .ma-eb-ledger-tools {
  display: grid;
  grid-template-columns: minmax(180px, 25%) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
}

.ma-email-buddy .ma-eb-ledger-tools select,
.ma-email-buddy .ma-eb-ledger-tools input {
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 12px;
}

.ma-email-buddy .ma-eb-ledger-empty {
  margin: 0;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 7px;
  color: #64748b;
  font-size: 12px;
}

/* Email Buddy operator density: calm, compact, and comfortable for long sessions. */
.ma-email-buddy {
  width: min(1180px, calc(100vw - 28px));
  margin: 14px auto 20px;
  font-size: 13px;
  line-height: 1.4;
}

.ma-email-buddy .ma-eb-hero,
.ma-email-buddy .ma-eb-panel,
.ma-email-buddy .ma-eb-company-card,
.ma-email-buddy .ma-eb-card,
.ma-email-buddy .ma-eb-dashboard {
  border-radius: 10px;
  box-shadow: none;
}

.ma-email-buddy .ma-eb-hero {
  padding: 14px 18px;
  margin-bottom: 10px;
  background: #f7fbff;
}

.ma-email-buddy .ma-eb-hero h2 {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -.01em;
}

.ma-email-buddy .ma-eb-dashboard {
  margin-bottom: 10px;
}

.ma-email-buddy .ma-eb-tabs button {
  min-height: 46px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 750;
}

.ma-email-buddy .ma-eb-tabs button span {
  min-width: 20px;
  padding: 1px 6px;
  font-size: 10px;
}

.ma-email-buddy .ma-eb-tab-panels {
  padding: 10px 12px;
}

.ma-email-buddy .ma-eb-tab-panel > strong {
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 750;
}

.ma-email-buddy .ma-eb-panel-tools {
  margin-bottom: 8px;
}

.ma-email-buddy .ma-eb-panel-tools select,
.ma-email-buddy .ma-eb-panel-tools input,
.ma-email-buddy .ma-eb-contact-row input,
.ma-email-buddy .ma-eb-toolbar select,
.ma-email-buddy select,
.ma-email-buddy .ma-field input {
  min-height: 34px;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 12px;
}

.ma-email-buddy .ma-eb-sent-summary {
  gap: 6px;
  margin-bottom: 8px;
}

.ma-email-buddy .ma-eb-sent-summary article {
  padding: 8px 10px;
  border-radius: 7px;
}

.ma-email-buddy .ma-eb-sent-summary strong {
  margin: 2px 0;
  font-size: 18px;
  font-weight: 750;
}

.ma-email-buddy .ma-eb-date-group {
  margin-bottom: 7px;
  border-radius: 7px;
}

.ma-email-buddy .ma-eb-date-group summary {
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 750;
}

.ma-email-buddy .ma-eb-date-group .ma-eb-ops-table {
  padding: 4px;
}

.ma-email-buddy .ma-eb-ops-table,
.ma-email-buddy .ma-eb-compact-table {
  gap: 4px;
  font-weight: 600;
}

.ma-email-buddy .ma-eb-ops-head,
.ma-email-buddy .ma-eb-record-head {
  padding: 6px 9px;
  font-size: 9px;
}

.ma-email-buddy .ma-eb-ops-row,
.ma-email-buddy .ma-eb-compact-row,
.ma-email-buddy .ma-eb-record-row {
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 6px;
}

.ma-email-buddy .ma-eb-ops-row span,
.ma-email-buddy .ma-eb-ops-row b,
.ma-email-buddy .ma-eb-compact-row span,
.ma-email-buddy .ma-eb-ops-row em,
.ma-email-buddy .ma-eb-compact-row em,
.ma-email-buddy .ma-eb-record-row em {
  font-size: 11px;
}

.ma-email-buddy .ma-eb-ops-row strong,
.ma-email-buddy .ma-eb-compact-row strong,
.ma-email-buddy .ma-eb-record-row strong {
  font-size: 12px;
  font-weight: 750;
}

.ma-email-buddy .ma-eb-workspace {
  gap: 10px;
}

.ma-email-buddy .ma-eb-company-card,
.ma-email-buddy .ma-eb-card {
  padding: 14px;
}

.ma-email-buddy .ma-eb-company-top {
  gap: 14px;
}

.ma-email-buddy .ma-eb-company-card h3 {
  margin: 2px 0;
  font-size: 21px;
  font-weight: 750;
}

.ma-email-buddy .ma-eb-score-strip,
.ma-email-buddy .ma-eb-signal-grid,
.ma-email-buddy .ma-eb-grid,
.ma-email-buddy .ma-eb-send-grid {
  gap: 10px;
}

.ma-email-buddy .ma-eb-score-strip div,
.ma-email-buddy .ma-eb-rulebox,
.ma-email-buddy .ma-eb-selected,
.ma-email-buddy .ma-eb-template,
.ma-email-buddy .ma-eb-sequence-status,
.ma-email-buddy .ma-eb-empty,
.ma-email-buddy .ma-eb-mini-card,
.ma-email-buddy .ma-eb-warmup-panel,
.ma-email-buddy .ma-eb-deliverability {
  border-radius: 7px;
  padding: 10px;
}

.ma-email-buddy .ma-eb-score-strip strong {
  margin-top: 3px;
  font-size: 17px;
  font-weight: 750;
}

.ma-email-buddy .ma-eb-card h3 {
  margin: 2px 0 6px;
  font-size: 18px;
  font-weight: 750;
}

.ma-email-buddy .ma-eb-card-head {
  margin-bottom: 8px;
}

.ma-email-buddy .ma-eb-help,
.ma-email-buddy .ma-eb-summary,
.ma-email-buddy .ma-eb-rulebox p,
.ma-email-buddy .ma-eb-template pre,
.ma-email-buddy .ma-eb-warmup-panel p,
.ma-email-buddy .ma-eb-deliverability p {
  font-size: 12px;
  line-height: 1.45;
}

.ma-email-buddy .ma-eb-contact-list {
  gap: 6px;
  margin: 9px 0;
}

.ma-email-buddy .ma-eb-contact-row {
  gap: 7px;
  padding: 8px;
  border-radius: 7px;
}

.ma-email-buddy .ma-eb-lane-check {
  min-height: 48px;
  padding: 7px;
  border-radius: 7px;
}

.ma-email-buddy .ma-eb-contact-row label {
  gap: 3px;
}

.ma-email-buddy .ma-eb-contact-row span,
.ma-email-buddy .ma-field span,
.ma-email-buddy .ma-eyebrow,
.ma-email-buddy .ma-section-kicker {
  font-size: 9px;
  font-weight: 750;
}

.ma-email-buddy .ma-eb-contact-sequences {
  gap: 7px;
}

.ma-email-buddy .ma-eb-contact-sequence {
  border-radius: 8px;
}

.ma-email-buddy .ma-eb-contact-sequence-head {
  padding: 8px 10px;
}

.ma-email-buddy .ma-eb-contact-sequence-head strong {
  font-size: 13px;
  font-weight: 750;
}

.ma-email-buddy .ma-eb-seq-step {
  padding: 8px;
  border-radius: 7px;
}

.ma-email-buddy .ma-eb-seq-step strong {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 750;
}

.ma-email-buddy .ma-eb-seq-step em,
.ma-email-buddy .ma-eb-seq-step span {
  font-size: 10px;
}

.ma-email-buddy .ma-save-btn,
.ma-email-buddy .ma-btn-sm {
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .ma-email-buddy .ma-eb-hero h2 { font-size: 20px; }
  .ma-email-buddy .ma-eb-tabs button { min-height: 40px; }
  .ma-email-buddy .ma-eb-ledger-tools { grid-template-columns: 1fr; }
}

/* Compact review surface for Gmail outcomes. */
.ma-email-buddy button.ma-eb-sent-row {
  appearance: none;
  border: 1px solid #dbe7f7;
  text-align: left;
  font: inherit;
  background: #fff;
}
.ma-email-buddy button.ma-eb-sent-row:hover,
.ma-email-buddy button.ma-eb-sent-row:focus-visible {
  border-color: #155eef;
  box-shadow: 0 0 0 2px rgba(21, 94, 239, .12);
  outline: 0;
}
.ma-eb-review-modal { position: fixed; z-index: 100000; inset: 0; display: flex; align-items: center; justify-content: center; padding: 4vh 4vw; background: rgba(15, 23, 42, .56); }
.ma-eb-review-modal[hidden] { display: none; }
.ma-eb-review-drawer { width: min(760px, 56vw); max-height: 88vh; overflow: auto; margin: 0; padding: 16px; border: 1px solid #bfd7ff; border-radius: 10px; background: #f8fbff; box-shadow: 0 20px 70px rgba(15, 23, 42, .38); }
.ma-eb-review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 9px; }
.ma-eb-review-head h3 { margin: 0; font-size: 15px; }
.ma-eb-review-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 8px 0; }
.ma-eb-review-meta span { padding: 7px; border: 1px solid #dbe7f7; border-radius: 6px; background: #fff; font-size: 12px; }
.ma-eb-review-meta b { display: block; color: #64748b; font-size: 10px; text-transform: uppercase; }
.ma-eb-review-subject { margin: 10px 0 6px; font-size: 13px; }
.ma-eb-review-body { max-height: 260px; overflow: auto; margin: 0; padding: 10px; border: 1px solid #dbe7f7; border-radius: 6px; background: #fff; color: #334155; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.ma-email-buddy .ma-eb-sent-summary { grid-template-columns:repeat(6,minmax(0,1fr)); gap:6px; margin-bottom:8px; }
.ma-email-buddy .ma-eb-sent-summary .ma-eb-sent-stat { padding:6px 8px; border-radius:6px; }
.ma-email-buddy .ma-eb-sent-summary strong { margin:2px 0; font-size:17px; }
.ma-email-buddy .ma-eb-sent-summary span, .ma-email-buddy .ma-eb-sent-summary em { font-size:9px; }
.ma-eb-performance { border:1px solid #d7e3f4; border-radius:7px; padding:8px 9px; background:#fbfdff; margin:8px 0; }
.ma-eb-performance h4 { margin:0; font-size:12px; color:#17345f; }
.ma-eb-performance-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:6px; }
.ma-eb-performance-head > div { display:flex; align-items:center; gap:6px; }
.ma-eb-performance-head label { color:#62728a; font-size:10px; font-weight:700; text-transform:uppercase; }
.ma-eb-performance-head select { min-height:28px; padding:3px 7px; border:1px solid #cbd5e1; border-radius:5px; background:#fff; color:#334155; font-size:11px; }
.ma-eb-performance-table > div { display:grid; grid-template-columns:42px minmax(115px,1fr) minmax(145px,1.25fr) minmax(150px,1.3fr) 44px 54px 62px; gap:6px; align-items:center; padding:5px 2px; border-top:1px solid #e5edf8; font-size:11px; }
.ma-eb-performance-table > div:first-child { border-top:0; color:#62728a; font-weight:700; text-transform:uppercase; font-size:9px; }
.ma-eb-performance-table strong, .ma-eb-performance-table span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ma-eb-performance-table em { font-style:normal; color:#167247; font-weight:700; }
.ma-eb-thread { margin-top:12px; }
.ma-eb-thread-message { margin:8px 0; padding:8px; border-left:3px solid #c8d9ef; background:#f8fbff; }
.ma-eb-thread-message.inbound { border-left-color:#1b9b62; background:#f2fff8; }
.ma-eb-thread-message p { margin:0 0 6px; font-size:11px; }
@media (max-width: 800px) { .ma-email-buddy .ma-eb-sent-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } .ma-eb-performance-head { align-items:flex-start; flex-direction:column; } .ma-eb-performance-table { overflow-x:auto; } .ma-eb-performance-table > div { min-width:720px; grid-template-columns:34px 100px 125px 135px 36px 52px 50px; font-size:10px; } }
.ma-eb-review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; }
.ma-eb-review-actions > div { display: flex; flex-wrap: wrap; align-items: end; gap: 7px; }
.ma-eb-review-actions a.ma-btn-sm { display: inline-flex; align-items: center; text-decoration: none; }
.ma-eb-review-actions input { min-height: 32px; padding: 4px 7px; border: 1px solid #bfd7ff; border-radius: 5px; }
.ma-eb-review-actions .button { margin: 0; }
.ma-eb-action-positive { background: #15803d !important; border-color: #15803d !important; }
.ma-eb-action-later { background: #b45309 !important; border-color: #b45309 !important; }
.ma-eb-action-stop { background: #b42318 !important; border-color: #b42318 !important; }
.ma-email-buddy .ma-eb-tabs button span.has-review { background: #b42318; color: #fff; }
.ma-email-buddy .ma-eb-tabs button span.is-zero { background: #dcfce7; color: #166534; }
.ma-eb-review-filters { display: flex; gap: 7px; flex-wrap: wrap; margin: 0 0 9px; }
.ma-eb-review-filters .ma-eb-sent-stat { min-width: 112px; }
.ma-eb-inbound-reply { margin-top: 12px; padding-top: 10px; border-top: 1px solid #d7e5fb; }
.ma-eb-inbound-reply h4 { margin: 0 0 5px; font-size: 15px; }
.ma-eb-inbound-reply p { margin: 0 0 7px; font-size: 12px; }
.ma-eb-portal-reply { display: grid; grid-template-columns: minmax(220px, 1fr) 180px auto; gap: 7px; width: 100%; align-items: end; }
.ma-eb-portal-reply textarea { min-height: 88px; padding: 7px; border: 1px solid #bfd7ff; border-radius: 5px; resize: vertical; }
@media (max-width: 760px) { .ma-eb-portal-reply { grid-template-columns: 1fr; } }
.ma-eb-review-status { margin: 8px 0 0; color: #0f766e; font-size: 12px; font-weight: 700; }
@media (max-width: 700px) { .ma-eb-review-modal { padding: 2vh 2vw; } .ma-eb-review-drawer { width: 100%; max-height: 94vh; } .ma-eb-review-meta { grid-template-columns: 1fr; } }
