:root {
  --bg: #f1efec;
  --surface: #fbfaf8;
  --surface-2: #ffffff;
  --ink: #0d1020;
  --muted: #8b8a88;
  --line: #e6e1db;
  --nav: #0c1122;
  --accent: #ff755f;
  --accent-2: #ec4b9a;
  --rose: #ffd6d3;
  --soft: #f7f4f0;
  --shadow: 0 24px 70px rgba(21, 20, 18, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@keyframes pressPulse {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(0.985);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }

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

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

button {
  border: 0;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.66;
}

.clickPulse {
  animation: pressPulse 220ms ease;
}

button,
a,
.prospect,
.folderButton,
.metricCard,
.panel {
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  padding: 30px 18px 24px;
  background: var(--nav);
  color: #fff;
}

.sidebarTop {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  position: relative;
  width: 36px;
  height: 36px;
}

.logo span {
  position: absolute;
  display: block;
  width: 27px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb24a, #ff5c7c);
}

.logo span:nth-child(1) {
  top: 5px;
  left: 5px;
  transform: rotate(28deg);
}

.logo span:nth-child(2) {
  top: 15px;
  left: 3px;
  transform: rotate(-28deg);
}

.logo span:nth-child(3) {
  top: 24px;
  left: 9px;
  width: 20px;
  background: #fff;
  opacity: 0.9;
  transform: rotate(28deg);
}

.brandBlock h1 {
  margin: 0;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0;
}

.brandBlock p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 760;
}

.sidebar nav {
  display: grid;
  gap: 8px;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.sidebar a span {
  display: grid;
  place-items: center;
  width: 24px;
  color: #fff;
  font-size: 18px;
}

.sidebar a b {
  font-size: 14px;
  font-weight: 820;
}

.sidebar a.active,
.sidebar a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  background: linear-gradient(135deg, #ff765f, #f24fa1);
  font-size: 13px;
  font-weight: 900;
}

main {
  padding: 36px 38px 40px;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.topbar h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
}

.topcopy {
  max-width: 620px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.topActions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.globalSearch {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 300px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.globalSearch input {
  border: 0;
  padding: 0;
  background: transparent;
}

.darkButton {
  min-width: 132px;
  color: #fff;
  background: var(--nav);
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: viewIn 280ms ease both;
}

.overviewGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 24px;
}

.overviewGrid .gradientMetric {
  grid-row: span 2;
}

.singleGrid {
  display: grid;
  max-width: 920px;
}

.finderPanel {
  min-height: 420px;
}

.pipelinePanel {
  width: 100%;
  max-width: none;
  overflow: hidden;
}

.settingsPanel {
  max-width: 900px;
}

.outputPanel {
  width: 100%;
  max-width: none;
}

.metricCard {
  min-height: 128px;
  padding: 22px;
  border-radius: 28px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.gradientMetric {
  min-height: 278px;
  color: #fff;
  background: linear-gradient(135deg, #ff765e 0%, #ec4b9a 100%);
}

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

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

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

.workflowSteps,
.testSteps,
.helpBlocks {
  display: grid;
  gap: 12px;
}

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

.workflowSteps article,
.testSteps article,
.helpBlocks article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.workflowSteps article,
.testSteps article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px 12px;
  align-items: start;
}

.workflowSteps b,
.testSteps b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  background: var(--nav);
  font-size: 13px;
}

.workflowSteps strong,
.testSteps span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.workflowSteps article > span {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.helpGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.helpBlocks article strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.helpBlocks article p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.testSteps article {
  align-items: center;
}

.quickActions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.quickActions a {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  font-weight: 850;
}

.quickActions a:hover {
  color: #fff;
  border-color: var(--nav);
  background: var(--nav);
}

.offerGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.serviceStats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.serviceStat {
  display: grid;
  gap: 8px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.serviceStat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.serviceStat strong {
  font-size: 28px;
  line-height: 1;
}

.offerGrid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.offerGrid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.offerGrid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.serviceCatalog dl {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 7px 10px;
  margin: 14px 0 0;
  font-size: 12px;
}

.serviceCatalog dt {
  color: var(--muted);
  font-weight: 900;
}

.serviceCatalog dd {
  margin: 0;
  color: var(--ink);
  font-weight: 760;
}

.offerGrid em {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff755f, #ec4b9a);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.ruleBox {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #fff;
  background: var(--nav);
  font-size: 14px;
  font-weight: 850;
}

.emptyState {
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  color: var(--muted);
}

.emptyState h4 {
  margin: 0 0 8px;
  color: var(--ink);
}

.metricTop {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 750;
}

.metricCard strong {
  display: block;
  margin-top: 12px;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
}

.metricCard p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.sparkline {
  position: relative;
  height: 60px;
  margin: 20px 0 16px;
  overflow: hidden;
}

.sparkline i {
  position: absolute;
  left: 0;
  right: 0;
  top: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
}

.sparkline i:nth-child(2) {
  top: 34px;
  background: #2432cc;
  transform: skewY(-9deg);
}

.sparkline i:nth-child(3) {
  top: 24px;
  background: #fff;
  transform: skewY(7deg);
}

.metricSplit {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 750;
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0ede9;
}

.progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff755f, #ec4b9a);
}

.progress.dark span {
  width: 24%;
  background: var(--nav);
}

.progress.sent span {
  width: 0;
  background: linear-gradient(90deg, #20b26b, #67d98e);
}

.panel {
  padding: 24px;
  border: 1px solid rgba(230, 225, 219, 0.8);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panelHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.panelActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #6d6a67;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}

.panelPill {
  padding: 9px 13px;
  border-radius: 999px;
  color: #6d6964;
  background: #f4f0ec;
  font-size: 12px;
  font-weight: 850;
}

.searchGrid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.manualAdd {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  margin-top: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.nativeSelect {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.miniSelect {
  width: auto;
  min-width: 104px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #ffc7c1;
  box-shadow: 0 0 0 4px rgba(255, 117, 95, 0.12);
}

.accentButton {
  color: #fff;
  background: linear-gradient(135deg, #ff755f, #ec4b9a);
}

.softButton,
.iconButton,
.filter {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.filter.active,
.filter:hover {
  color: #fff;
  border-color: var(--nav);
  background: var(--nav);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.folderList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 22px;
}

.folderButton {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
}

.folderButton::before {
  content: "";
  width: 16px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ffb39f, #ec4b9a);
}

.folderButton.active {
  color: #fff;
  border-color: var(--nav);
  background: var(--nav);
}

.folderButton small {
  color: inherit;
  opacity: 0.7;
}

.pipelineToolbar {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto 180px auto auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px;
  border-radius: 18px;
  background: #f7f3ee;
}

.selectionCount {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #7b5148;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

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

.selectAll {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.selectAll input,
.selectProspect {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.dangerButton {
  color: #fff;
  background: #c5443d;
}

.tableHead {
  display: grid;
  grid-template-columns: 20px 32px minmax(170px, 1fr) 52px 112px 112px 172px;
  gap: 8px;
  padding: 0 14px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.prospectList {
  display: grid;
  gap: 10px;
}

.prospect {
  display: grid;
  grid-template-columns: 20px 32px minmax(170px, 1fr) 52px 112px 112px 172px;
  align-items: center;
  gap: 8px;
  min-height: 66px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #fff;
}

.prospectLogo {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffd9d4, #ff755f);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.prospect h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.prospect a {
  font-size: 12px;
}

.miniNumber {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.miniNumber input {
  width: 64px;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 13px;
  text-align: center;
}

.signals {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.signals li {
  max-width: 185px;
  overflow: hidden;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f7f3ee;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compactFolders {
  margin-top: 0;
  margin-bottom: 16px;
}

.prospect h4 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.2;
}

.prospect a {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signals {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0;
  margin: 6px 0 0;
  list-style: none;
}

.signals li {
  max-width: 170px;
  overflow: hidden;
  padding: 4px 8px;
  border-radius: 999px;
  color: #6b625b;
  background: #f5f1ed;
  font-size: 11px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scoreCell {
  display: flex;
  justify-content: center;
}

.scoreRing {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: conic-gradient(#ff755f calc(var(--score) * 1%), #eee9e3 0);
}

.scoreRing span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.statusMenu {
  position: relative;
}

.statusButton {
  width: 100%;
  min-width: 112px;
  min-height: 34px;
  padding: 7px 10px;
  justify-content: space-between;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  font-size: 12px;
}

.statusButton::after {
  content: "⌄";
  margin-left: 10px;
  color: var(--muted);
}

.statusMenu.open .statusButton {
  box-shadow: 0 0 0 4px rgba(255, 117, 95, 0.12);
}

.statusOptions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 12;
  display: none;
  min-width: 180px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(12, 17, 34, 0.14);
}

.statusMenu.open .statusOptions {
  display: grid;
  gap: 4px;
  animation: menuIn 160ms ease both;
}

.statusOptions button {
  justify-content: flex-start;
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 12px;
  background: transparent;
  font-size: 12px;
  text-align: left;
}

.statusOptions button:hover {
  color: #fff;
  background: var(--nav);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 5px;
}

.buttons button {
  min-height: 30px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  font-size: 11px;
}

.buttons button:hover,
.softButton:hover,
.iconButton:hover {
  color: #fff;
  border-color: var(--nav);
  background: var(--nav);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  display: none;
  max-width: min(560px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--nav);
  box-shadow: 0 18px 50px rgba(12, 17, 34, 0.24);
  font-size: 14px;
  font-weight: 800;
}

.toast.show {
  display: block;
  animation: toastIn 260ms ease both;
}

#aiOutput {
  min-height: 180px;
  resize: vertical;
  border-radius: 18px;
  line-height: 1.55;
}

.outputPanel .rawOutput {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0 !important;
  padding: 0;
  border: 0;
  opacity: 0;
  appearance: none;
  pointer-events: none;
}

.campaignIntro {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f7f3ee;
  color: var(--muted);
}

#generator {
  margin-left: -6px;
  margin-right: -6px;
}

.campaignIntro strong {
  color: var(--ink);
}

.draftList {
  margin-top: 18px;
}

.campaignSheet {
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.draftHeader,
.draftRow {
  display: grid;
  grid-template-columns: 54px minmax(210px, 1.05fr) minmax(148px, 0.7fr) minmax(190px, 0.95fr) minmax(310px, 1.35fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
}

.draftHeader {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--muted);
  background: #f7f3ee;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.draftRow {
  border-top: 1px solid #f1ece6;
  animation: viewIn 220ms ease both;
}

.draftRow.approved {
  background: #f4fff8;
}

.draftCompany {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.draftRow a {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draftTo {
  margin-top: 8px;
  padding: 9px 10px;
  font-size: 12px;
}

.draftScore {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f7f3ee;
  color: var(--ink);
  font-weight: 900;
}

.draftTextArea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.45;
  font-size: 13px;
}

.approveCell {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.approveCell input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.categoryCell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #823d31;
  background: #fff1ed;
  font-size: 12px;
  font-weight: 900;
}

.settingsGrid {
  display: grid;
  gap: 12px;
}

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

.statusDot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff755f;
  box-shadow: 0 0 0 7px rgba(255, 117, 95, 0.16);
}

.statusDot.connected {
  background: #20b26b;
  box-shadow: 0 0 0 7px rgba(32, 178, 107, 0.15);
}

.mailToggle {
  margin: 16px 0;
}

.campaignActions {
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.mailGrid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 18px;
}

.manualPortalForm {
  display: grid;
  gap: 12px;
}

.mailStatControls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sentSummary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f7f3ee;
}

.sentSummary strong {
  font-size: 34px;
  line-height: 1;
}

.sentSummary span {
  color: var(--muted);
  font-weight: 850;
}

.sentTableWrap {
  margin-bottom: 14px;
}

.sentTable {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.sentTableHead,
.sentTableRow {
  display: grid;
  grid-template-columns: 88px minmax(140px, 1.1fr) minmax(150px, 1fr) 90px 126px 78px 112px;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  font-size: 12px;
}

.sentTableHead {
  color: var(--muted);
  background: #f7f3ee;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sentTableRow {
  border-top: 1px solid #f1ece6;
}

.sentTableRow strong,
.sentTableRow span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sentTableRow button {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 11px;
}

.mailList {
  display: grid;
  gap: 10px;
}

.mailItem {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  animation: viewIn 220ms ease both;
}

.mailItem strong {
  font-size: 14px;
}

.mailItem span,
.mailItem small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hint {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.searchStatus {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #716b66;
  background: #f7f3ee;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
}

.searchStatus strong {
  color: var(--ink);
}

@media (max-width: 1180px) {
  .overviewGrid {
    grid-template-columns: 1fr;
  }

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

  .workflowSteps,
  .helpGrid {
    grid-template-columns: 1fr;
  }

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

  .serviceStats {
    grid-template-columns: repeat(2, 1fr);
  }

  .mailGrid,
  .mailSettingsGrid {
    grid-template-columns: 1fr;
  }

  .sentTableHead,
  .sentTableRow {
    grid-template-columns: 86px minmax(160px, 1fr) minmax(150px, 1fr);
  }

  .sentTableHead span:nth-child(n+4),
  .sentTableRow span:nth-child(n+4) {
    display: none;
  }

  .draftHeader {
    display: none;
  }

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

  .tableHead,
  .prospect {
    grid-template-columns: 24px 42px minmax(260px, 1fr) 80px 140px;
  }

  .tableHead span:last-child,
  .buttons {
    grid-column: 3 / -1;
    justify-content: flex-start;
  }

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

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

  .sidebar {
    position: sticky;
    z-index: 20;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    overflow: hidden;
  }

  .sidebar nav {
    display: flex;
    flex: 1;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar a {
    width: auto;
    min-width: max-content;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 13px;
    gap: 8px;
  }

  .sidebar a span {
    width: 18px;
    font-size: 14px;
  }

  .sidebar a b {
    font-size: 12px;
  }

  .brandBlock {
    display: none;
  }

  .avatar {
    display: none;
  }

  main {
    padding: 24px 16px;
  }

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

  .topbar h2 {
    font-size: 32px;
  }

  .globalSearch,
  .searchGrid,
  .manualAdd {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .panelHead {
    align-items: stretch;
    flex-direction: column;
  }

  .tableHead {
    display: none;
  }

  .prospect {
    grid-template-columns: 24px 38px 1fr;
  }

  .scoreCell,
  .statusMenu,
  .buttons {
    grid-column: 3;
    justify-content: flex-start;
  }

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

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