/* TradeLead AI visual reset: product-first marketing and a lighter CRM shell. */
.ui-v4 {
  --v4-bg: #f1f3f1;
  --v4-surface-soft: #f7f8f6;
  --v4-surface-muted: #eaeeeb;
  --v4-line: #d8ded9;
  --v4-line-strong: #c6cec9;
  --v4-ink: #17201c;
  --v4-copy: #3b4942;
  --v4-muted: #737f79;
  --v4-brand: #0b6b55;
  --v4-brand-dark: #075341;
  --v4-brand-soft: #e5f0eb;
  background: var(--v4-bg);
}

/* Marketing first viewport */
.ui-v4 .marketing-nav {
  min-height: 68px;
  padding: 0 clamp(22px, 4vw, 68px);
  border-bottom-color: #d7ddd8;
  background: rgba(249, 250, 248, .97);
  box-shadow: 0 1px 0 rgba(22, 32, 28, .03);
}

.ui-v4 .marketing-brand .brand-mark { width: 36px; height: 36px; }
.ui-v4 .marketing-brand strong { color: #17201c; font-size: 13px; }
.ui-v4 .marketing-brand small { color: #7b8680; }
.ui-v4 .marketing-nav > nav a { padding-top: 25px; padding-bottom: 23px; color: #53605a; font-size: 11px; }
.ui-v4 .marketing-nav > nav a::after { bottom: 17px; }
.ui-v4 .marketing-nav-actions button { min-height: 36px; }

.ui-v4 .marketing-hero {
  height: min(700px, calc(100dvh - 104px));
  min-height: 540px;
  background: #0a1d17;
}

.ui-v4 .marketing-hero::after {
  display: none;
}

.ui-v4 .marketing-hero-image {
  opacity: 1;
  filter: saturate(.78) contrast(.92) brightness(.86);
  object-position: 56% center;
  transform: scale(1.015);
  animation: heroBackgroundDrift 18s ease-in-out infinite alternate;
}

.ui-v4 .marketing-hero-shade { z-index: 1; background: rgba(5, 19, 15, .36); }

.ui-v4 .marketing-main > section[id] { scroll-margin-top: 82px; }

.ui-v4 .marketing-hero-scene {
  position: absolute;
  z-index: 3;
  top: 30px;
  right: clamp(20px, 3vw, 46px);
  bottom: 34px;
  left: 52%;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.ui-v4 .hero-workspace {
  position: absolute;
  z-index: 3;
  top: 28px;
  right: 0;
  bottom: 22px;
  left: 0;
  overflow: hidden;
  border: 1px solid #bac5bf;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(11, 29, 22, .24), 0 3px 10px rgba(11, 29, 22, .12);
  animation: heroWorkspaceIn .8s cubic-bezier(.2, .75, .22, 1) both;
}

.ui-v4 .hero-workspace-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 17px;
  border-bottom: 1px solid #dce2de;
  background: #fafbfa;
}

.ui-v4 .hero-workspace-bar > div,
.ui-v4 .hero-sync-state { display: flex; align-items: center; gap: 8px; }
.ui-v4 .hero-workspace-bar strong { color: #2a3731; font-size: 10px; }
.ui-v4 .hero-window-dot { width: 7px; height: 7px; border-radius: 50%; background: #247b64; }
.ui-v4 .hero-sync-state { color: #7d8983; font-size: 8px; font-weight: 700; }
.ui-v4 .hero-sync-state i { width: 6px; height: 6px; border-radius: 50%; background: #24916e; animation: marketingSignal 1.7s ease-in-out infinite; }

.ui-v4 .hero-workspace-body {
  display: grid;
  grid-template-columns: 48px minmax(390px, 1fr);
  height: calc(100% - 50px);
}

.ui-v4 .hero-workspace-nav {
  display: grid;
  grid-auto-rows: 38px;
  align-content: start;
  justify-items: center;
  gap: 5px;
  padding-top: 14px;
  border-right: 1px solid #dce2de;
  background: #17231e;
}

.ui-v4 .hero-workspace-nav span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 5px; color: #93a19a; }
.ui-v4 .hero-workspace-nav span.active { color: #d8f2e8; background: #294037; }
.ui-v4 .hero-workspace-nav svg { width: 14px; height: 14px; }

.ui-v4 .hero-workspace-main { min-width: 0; padding: 16px; background: #f4f6f4; }
.ui-v4 .hero-task-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ui-v4 .hero-task-heading small,
.ui-v4 .hero-task-heading strong { display: block; }
.ui-v4 .hero-task-heading small { color: #7c8882; font-size: 8px; }
.ui-v4 .hero-task-heading strong { margin-top: 4px; color: #1d2b24; font-size: 13px; }
.ui-v4 .hero-task-heading em { padding: 4px 7px; border: 1px solid #d8cda9; border-radius: 4px; color: #806120; background: #fff9e8; font-size: 8px; font-style: normal; }

.ui-v4 .hero-query-line {
  display: grid;
  grid-template-columns: 1fr 1fr 34px;
  gap: 8px;
  align-items: center;
  margin-top: 15px;
  padding: 10px;
  border: 1px solid #d5ddd8;
  border-radius: 6px;
  background: #fff;
}

.ui-v4 .hero-query-line > span { min-width: 0; padding-right: 8px; border-right: 1px solid #e4e8e5; }
.ui-v4 .hero-query-line small,
.ui-v4 .hero-query-line strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-v4 .hero-query-line small { color: #88938e; font-size: 7px; }
.ui-v4 .hero-query-line strong { margin-top: 4px; color: #34433c; font-size: 9px; }
.ui-v4 .hero-query-line > svg { width: 15px; height: 15px; justify-self: center; color: #176b55; }

.ui-v4 .hero-process-line { display: grid; grid-template-columns: auto 1fr auto 1fr auto; gap: 8px; align-items: center; min-height: 46px; }
.ui-v4 .hero-process-line span { display: flex; align-items: center; gap: 5px; color: #77847d; font-size: 8px; white-space: nowrap; }
.ui-v4 .hero-process-line span.done { color: #3b7562; }
.ui-v4 .hero-process-line span.current { color: #8b651f; }
.ui-v4 .hero-process-line svg { width: 11px; height: 11px; }
.ui-v4 .hero-process-line .current svg { animation: marketingSpin 1.4s linear infinite; }
.ui-v4 .hero-process-line b { height: 1px; background: #d4dbd7; }

.ui-v4 .hero-result-list { overflow: hidden; border: 1px solid #d6ddd9; border-radius: 6px; background: #fff; }
.ui-v4 .hero-result-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 9px; align-items: center; min-height: 68px; padding: 9px 11px; border-bottom: 1px solid #e5e9e6; }
.ui-v4 .hero-result-row:last-child { border-bottom: 0; }
.ui-v4 .hero-result-row.active { background: #edf5f1; box-shadow: inset 3px 0 0 #13715a; }
.ui-v4 .hero-company-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; color: #11624f; background: #dceee7; font-size: 8px; font-weight: 800; }
.ui-v4 .hero-company-avatar.blue { color: #315f7d; background: #e8f0f5; }
.ui-v4 .hero-company-avatar.amber { color: #88601c; background: #fff0d2; }
.ui-v4 .hero-result-row > div { min-width: 0; }
.ui-v4 .hero-result-row strong,
.ui-v4 .hero-result-row small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-v4 .hero-result-row strong { color: #24332c; font-size: 9px; }
.ui-v4 .hero-result-row small { margin-top: 4px; color: #7e8a84; font-size: 7px; }
.ui-v4 .hero-result-row > span:nth-child(3) { display: flex; gap: 5px; color: #277761; }
.ui-v4 .hero-result-row > span:nth-child(3) svg { width: 12px; height: 12px; }
.ui-v4 .hero-result-row em { padding: 4px 6px; border: 1px solid #d6ded9; border-radius: 4px; color: #607069; background: #fff; font-size: 7px; font-style: normal; }

.ui-v4 .hero-customer-peek { display: none; padding: 17px 15px; border-left: 1px solid #dce2de; background: #fff; text-align: center; }
.ui-v4 .hero-customer-peek > span { display: block; color: #87928d; font-size: 8px; text-align: left; }
.ui-v4 .hero-contact-avatar { display: grid; place-items: center; width: 44px; height: 44px; margin: 24px auto 9px; border-radius: 7px; color: #176650; background: #dfeee8; font-size: 13px; font-weight: 800; }
.ui-v4 .hero-customer-peek > strong { display: block; overflow: hidden; color: #26352e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ui-v4 .hero-customer-peek > small { display: block; margin-top: 4px; overflow: hidden; color: #84908a; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.ui-v4 .hero-customer-peek dl { margin: 21px 0 0; text-align: left; }
.ui-v4 .hero-customer-peek dl > div { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 6px; padding: 9px 0; border-top: 1px solid #e5e9e7; }
.ui-v4 .hero-customer-peek dt { color: #8a9590; font-size: 7px; }
.ui-v4 .hero-customer-peek dd { margin: 0; overflow: hidden; color: #45544d; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.ui-v4 .hero-next-action { display: flex; align-items: center; gap: 6px; margin-top: 15px; padding: 9px; border: 1px solid #cadfd6; border-radius: 6px; color: #176650; background: #edf6f2; font-size: 8px; text-align: left; }
.ui-v4 .hero-next-action svg { width: 13px; height: 13px; }

.ui-v4 .marketing-hero-content {
  z-index: 4;
  width: min(520px, 40vw);
  margin-left: clamp(24px, 6vw, 96px);
  padding-bottom: 0;
  color: #fff;
}

.ui-v4 .marketing-eyebrow { color: #98dfca; }
.ui-v4 .marketing-hero h1 { color: #fff; }
.ui-v4 .marketing-hero h1 strong { font-size: 58px; font-weight: 820; }
.ui-v4 .marketing-hero h1 span { max-width: 580px; margin-top: 12px; color: #f4f8f6; font-size: 39px; font-weight: 710; line-height: 1.24; }
.ui-v4 .marketing-hero-content > p { max-width: 540px; color: #c8d5cf; font-size: 14px; line-height: 1.85; }
.ui-v4 .marketing-hero-actions button:not(.primary) { color: #fff; border-color: rgba(255, 255, 255, .54); background: rgba(7, 25, 20, .74); }
.ui-v4 .marketing-trust-line { color: #c3d1cb; }
.ui-v4 .marketing-trust-line svg { color: #83d9bd; }
.ui-v4 .marketing-route-rail { z-index: 6; border-top-color: #bfc9c3; color: #27352e; }
.ui-v4 .marketing-route-live { color: #557067; }
.ui-v4 .marketing-route-stage span { color: #6d7a74; }
.ui-v4 .marketing-route-rail > svg { color: #83908a; }
.ui-v4 .marketing-route-track { background: #c6cfca; }
.ui-v4 .marketing-route-track span { background: #248b6e; }

.ui-v4 .marketing-operating-strip > div {
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 5px 16px;
  min-height: 96px;
  padding: 20px 24px;
}

.ui-v4 .marketing-operating-strip > div + div { padding-left: 24px; }
.ui-v4 .marketing-operating-strip span { grid-row: 1 / 3; align-self: start; padding-top: 2px; white-space: nowrap; }
.ui-v4 .marketing-operating-strip strong { min-width: 0; font-size: 12px; line-height: 1.45; }
.ui-v4 .marketing-operating-strip small { grid-column: 2; min-width: 0; text-align: left; line-height: 1.5; }

/* Industry-led visual story */
.ui-v4 .marketing-industry-showcase {
  padding: 112px clamp(24px, 7vw, 118px) 104px;
  border-bottom: 1px solid #d5ddd8;
  background: #fff;
}

.ui-v4 .marketing-industry-heading {
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(320px, .7fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: end;
  margin-bottom: 46px;
}

.ui-v4 .marketing-industry-heading h2 {
  max-width: 720px;
  margin: 12px 0 0;
  color: #14211c;
  font-size: 40px;
  line-height: 1.28;
}

.ui-v4 .marketing-industry-heading > p {
  margin: 0 0 3px;
  color: #65736c;
  font-size: 14px;
  line-height: 1.9;
}

.ui-v4 .marketing-industry-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ui-v4 .marketing-industry-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ccd5d0;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(22, 40, 33, .07);
}

.ui-v4 .marketing-industry-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dfe6e2;
}

.ui-v4 .marketing-industry-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.075);
  transition: transform 1.25s cubic-bezier(.2, .7, .2, 1);
}

.ui-v4 .marketing-industry-card.is-visible .marketing-industry-media img { transform: scale(1.01); }
.ui-v4 .marketing-industry-card.is-visible:hover .marketing-industry-media img { transform: scale(1.035); }
.ui-v4 .marketing-industry-card:nth-child(1) img { object-position: 54% center; }
.ui-v4 .marketing-industry-card:nth-child(2) img { object-position: 57% center; }
.ui-v4 .marketing-industry-card:nth-child(3) img { object-position: 50% center; }

.ui-v4 .marketing-industry-body { min-height: 202px; padding: 22px 22px 20px; }
.ui-v4 .marketing-industry-body > span { color: #1a715b; font-size: 9px; font-weight: 820; }
.ui-v4 .marketing-industry-body h3 { margin: 10px 0 0; color: #17231e; font-size: 20px; line-height: 1.4; }
.ui-v4 .marketing-industry-body p { min-height: 46px; margin: 10px 0 0; color: #6b7872; font-size: 12px; line-height: 1.75; }
.ui-v4 .marketing-industry-body > div { display: flex; flex-wrap: wrap; gap: 0; margin-top: 17px; border-top: 1px solid #e0e5e2; }
.ui-v4 .marketing-industry-body em { padding: 10px 12px 0 0; color: #4f6057; font-size: 9px; font-style: normal; }
.ui-v4 .marketing-industry-body em + em { margin-left: 12px; padding-left: 12px; border-left: 1px solid #dbe2de; }

.ui-v4 .marketing-industry-index {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid #ccd5d0;
  border-bottom: 1px solid #ccd5d0;
}

.ui-v4 .marketing-industry-index > span {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 11px;
  min-height: 94px;
  padding: 14px 15px;
  border-right: 1px solid #dbe2de;
  color: #26372f;
}

.ui-v4 .marketing-industry-index > span:last-child { border-right: 0; }
.ui-v4 .marketing-industry-index svg { width: 18px; height: 18px; color: #167159; }
.ui-v4 .marketing-industry-index b { font-size: 10px; font-weight: 720; line-height: 1.45; }

html.marketing-motion-ready .ui-v4 .marketing-reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity .72s ease, transform .82s cubic-bezier(.2, .72, .22, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

html.marketing-motion-ready .ui-v4 .marketing-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes heroBackgroundDrift {
  from { transform: scale(1.015) translate3d(0, 0, 0); }
  to { transform: scale(1.045) translate3d(-7px, -3px, 0); }
}

@keyframes heroWorkspaceIn {
  from { opacity: 0; transform: translate3d(32px, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Application shell */
.ui-v4 #appShell {
  grid-template-columns: 238px minmax(0, 1fr);
  grid-template-rows: 64px minmax(0, 1fr);
  background: #f1f3f1;
}

.ui-v4 #appShell > header {
  min-height: 64px;
  padding: 0 26px;
  border-bottom-color: #d8ddd9;
  background: #f8f9f7;
  box-shadow: none;
}

.ui-v4 #appShell > header h1 { font-size: 18px; font-weight: 760; }
.ui-v4 #appShell > header #status { margin-top: 2px; font-size: 10px; }
.ui-v4 #appShell > header .quota { min-height: 34px; border-color: #dce1de; color: #5f6d66; background: #fff; }
.ui-v4 #appShell > header .icon-button,
.ui-v4 #appShell > header #logoutBtn { border-color: #d7ddda; background: #fff; box-shadow: none; }

.ui-v4 .app-nav {
  width: 238px;
  padding: 12px 10px 12px;
  border-right: 1px solid #d5dbd7;
  background: #f8f9f7;
  color: #243029;
}

.ui-v4 .brand-lockup { min-height: 58px; margin: 0 3px 8px; padding: 4px 7px 14px; border-bottom: 1px solid #dce1de; }
.ui-v4 .brand-lockup .brand-mark { width: 35px; height: 35px; }
.ui-v4 .brand-lockup .brand-copy strong { color: #1d2923; }
.ui-v4 .brand-lockup .brand-copy span { color: #7b8680; }
.ui-v4 .nav-label { padding: 12px 10px 5px; color: #8b9590; font-size: 9px; }

.ui-v4 .app-nav .nav-item,
.ui-v4 .app-nav .nav-card-button,
.ui-v4 .app-nav .nav-more-toggle {
  min-height: 40px;
  padding: 8px 10px;
  border: 0 !important;
  border-radius: 6px;
  color: #4f5d56;
  background: transparent !important;
  box-shadow: none;
}

.ui-v4 .app-nav .nav-item svg,
.ui-v4 .app-nav .nav-card-button svg,
.ui-v4 .app-nav .nav-more-toggle svg { color: #748078; }
.ui-v4 .app-nav .nav-item:hover,
.ui-v4 .app-nav .nav-card-button:hover,
.ui-v4 .app-nav .nav-more-toggle:hover { color: #1d2b24; background: #ecefec !important; }
.ui-v4 .app-nav .nav-item.active,
.ui-v4 .app-nav .nav-card-button.active {
  color: #153c30;
  background: #e1ebe6 !important;
  box-shadow: inset 3px 0 0 #0f7058;
}
.ui-v4 .app-nav .nav-item.active svg,
.ui-v4 .app-nav .nav-card-button.active svg { color: #0c6c55; }
.ui-v4 .nav-card-state { color: #6f7d76; background: #ecefed; }
.ui-v4 .nav-card-state.ready { color: #176650; background: #dcebe5; }
.ui-v4 .nav-secondary { border-left-color: #cbd4cf; }

.ui-v4 .nav-account {
  margin-top: auto;
  padding: 9px 8px;
  border-top: 1px solid #dce1de;
  border-radius: 0;
  color: #435149;
  background: transparent;
}
.ui-v4 .nav-account:hover,
.ui-v4 .nav-account.active { color: #17251e; background: #e9eeeb; }
.ui-v4 .nav-account-avatar { color: #145c49; background: #dfece6; }
.ui-v4 .nav-account-copy strong { color: #25322c; }
.ui-v4 .nav-account-copy span { color: #7b8781; }

.ui-v4 #appShell > main { max-width: 1680px; padding: 22px 26px 36px; }
.ui-v4 .page-view > .head,
.ui-v4 [data-page="leads"] > section > .head { min-height: 54px; padding-bottom: 13px; }
.ui-v4 .page-title h2 { font-size: 20px; font-weight: 760; }
.ui-v4 .page-title > span { font-size: 10px; }

.ui-v4 .home-identity-strip,
.ui-v4 .home-actions,
.ui-v4 .home-metrics,
.ui-v4 .search-workspace,
.ui-v4 .recent-searches,
.ui-v4 [data-page="leads"] > section > .content,
.ui-v4 [data-page="email"] {
  border-color: #d6ddd8;
  background: #fff;
  box-shadow: 0 1px 2px rgba(22, 34, 28, .035), 0 12px 32px rgba(22, 34, 28, .025);
}

.ui-v4 .home-identity-strip { background: #fbfcfb; }
.ui-v4 .home-section-heading,
.ui-v4 .home-metrics-head { background: #f7f8f6; }
.ui-v4 .home-actions .quick-card:hover { background: #f3f7f5 !important; }
.ui-v4 .quick-index { border-color: #cbded6; color: #0f6b54 !important; background: #e7f1ec; }

.ui-v4 .search-workspace { grid-template-columns: 410px minmax(0, 1fr); }
.ui-v4 .search-builder { border-right-color: #d8ded9; background: #f8f9f7; }
.ui-v4 .search-builder-head { background: #fff; }
.ui-v4 .search-form-section { border-bottom-color: #dfe4e1; }
.ui-v4 .search-section-title span { color: #0f6d55; background: #e1eee8; }
.ui-v4 .search-output { background: #fff; }
.ui-v4 .search-output-head { background: #fff; }
.ui-v4 .search-progress { background: #edf1ee; }
.ui-v4 .search-results { background: #fbfcfb; }
.ui-v4 .market-preview { background: #eef5f1; }

.ui-v4 .lead-stages { background: #f7f8f6; }
.ui-v4 .lead-stage { border-right-color: #dde3df !important; }
.ui-v4 .lead-stage.active { background: #fff !important; box-shadow: inset 0 -2px 0 #0d6f57; }
.ui-v4 .lead-tools { background: #fff; }
.ui-v4 .lead-tools .search-input input { background: #f7f8f6; }
.ui-v4 [data-page="leads"] th { background: #f3f5f3; }
.ui-v4 #leadTable .lead-row:hover td { background: #f1f6f3; }
.ui-v4 #leadTable .lead-row.selected td { background: #e8f2ed; }

.ui-v4 .module-tabs { min-height: 56px; background: #f8f9f7; }
.ui-v4 .module-tab { min-height: 56px; }
.ui-v4 .comms-workspace { border-color: #d4dcd7; }
.ui-v4 .comms-inbox { background: #fbfcfb; }
.ui-v4 .comms-inbox-tools,
.ui-v4 .comms-inbox-head { background: #fff; }
.ui-v4 .comms-inbox .mail-item.active { background: #e5f0eb; box-shadow: inset 3px 0 0 #0d6e57; }
.ui-v4 .comms-workspace .mail-reader-content { background: #eef1ef; }
.ui-v4 .comms-workspace .chat-message-row.outbound .message-card { border-color: #bfd8ce; background: #dfeee8; }
.ui-v4 .comms-workspace .mail-compose-reply { background: #fff; }
.ui-v4 .comms-context { background: #fbfcfb; }
.ui-v4 .comms-module-tabs .module-tab { display: inline-flex; align-items: center; gap: 7px; }
.ui-v4 .comms-module-tabs .module-tab svg { width: 14px; height: 14px; }
.ui-v4 .conversation-channel-label { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 9px; border: 1px solid #cbd8d2; border-radius: 5px; color: #245f4e; background: #edf5f1; font-size: 9px; font-weight: 720; }
.ui-v4 .conversation-channel-label svg { width: 13px; height: 13px; }
body.ui-v4[data-app-page="email"] .reply-subject-row { display: none; }

.ui-v4 .edm-operations { display: grid; gap: 18px; }
.ui-v4 .edm-ops-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #d5ddd8; background: #fff; }
.ui-v4 .edm-ops-summary > div { min-width: 0; min-height: 104px; padding: 20px 22px; border-right: 1px solid #e0e5e2; }
.ui-v4 .edm-ops-summary > div:last-child { border-right: 0; }
.ui-v4 .edm-ops-summary span,
.ui-v4 .edm-ops-summary small { display: block; color: #6f7b76; font-size: 10px; }
.ui-v4 .edm-ops-summary strong { display: block; margin: 7px 0 5px; color: #172a24; font-size: 26px; line-height: 1; }
.ui-v4 .edm-ops-summary > div:last-child strong { color: #a24b32; }
.ui-v4 .edm-ops-section { min-width: 0; border: 1px solid #d5ddd8; background: #fff; }
.ui-v4 .edm-section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 86px; padding: 16px 18px; border-bottom: 1px solid #e0e5e2; }
.ui-v4 .edm-section-head h3 { margin: 3px 0 2px; font-size: 15px; }
.ui-v4 .edm-section-head p { margin: 0; color: #738079; font-size: 10px; }
.ui-v4 .edm-section-actions { display: flex; align-items: center; gap: 8px; }
.ui-v4 .edm-section-actions select { width: 150px; min-height: 34px; }
.ui-v4 .edm-campaign-table-wrap { max-height: 390px; border: 0; border-radius: 0; }
.ui-v4 #edmCampaignTable th { position: sticky; top: 0; z-index: 1; background: #f4f6f4; }
.ui-v4 #edmCampaignTable td { max-width: 260px; }
.ui-v4 .edm-next-action { display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-v4 .edm-ops-columns { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); gap: 18px; align-items: start; }
.ui-v4 .email-template-editor { display: grid; gap: 11px; padding: 16px 18px; border-bottom: 1px solid #e0e5e2; background: #f6f8f6; }
.ui-v4 .email-template-editor textarea { min-height: 160px; resize: vertical; }
.ui-v4 .email-template-list,
.ui-v4 .edm-issue-list { max-height: 410px; overflow: auto; }
.ui-v4 .email-template-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 78px; padding: 13px 18px; border-bottom: 1px solid #e6eae7; }
.ui-v4 .email-template-row:last-child,
.ui-v4 .edm-issue-row:last-child { border-bottom: 0; }
.ui-v4 .email-template-row > div:first-child { min-width: 0; }
.ui-v4 .email-template-row strong,
.ui-v4 .email-template-row span,
.ui-v4 .email-template-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-v4 .email-template-row strong { color: #20302b; font-size: 12px; }
.ui-v4 .email-template-row span { margin-top: 4px; color: #52615b; font-size: 10px; }
.ui-v4 .email-template-row small { margin-top: 4px; color: #89928e; font-size: 9px; }
.ui-v4 .email-template-row > div:last-child { display: flex; gap: 5px; }
.ui-v4 .edm-issue-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; align-items: start; min-height: 74px; padding: 13px 18px; border-bottom: 1px solid #e6eae7; }
.ui-v4 .edm-issue-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 5px; color: #9c492f; background: #f8e9e3; }
.ui-v4 .edm-issue-icon.suppression { color: #72551a; background: #f5edcf; }
.ui-v4 .edm-issue-icon svg { width: 15px; height: 15px; }
.ui-v4 .edm-issue-row strong,
.ui-v4 .edm-issue-row span,
.ui-v4 .edm-issue-row small { display: block; }
.ui-v4 .edm-issue-row strong { color: #25342f; font-size: 11px; }
.ui-v4 .edm-issue-row span { margin-top: 3px; color: #68756f; font-size: 10px; line-height: 1.45; }
.ui-v4 .edm-issue-row small { margin-top: 4px; color: #919a96; font-size: 9px; }
.ui-v4 .edm-issue-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ui-v4 .edm-issue-actions button { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 5px 9px; border-radius: 5px; font-size: 10px; }
.ui-v4 .edm-issue-actions button:first-child { border-color: #9ec9bb; color: #12634f; background: #eff8f4; }
.ui-v4 .edm-issue-actions button:last-child { border-color: #e1c08b; color: #7b561b; background: #fff8e8; }
.ui-v4 .edm-issue-actions svg { width: 13px; height: 13px; }
.ui-v4 .edm-empty { display: grid; justify-items: center; gap: 7px; min-height: 190px; padding: 36px 24px; text-align: center; color: #7b8681; }
.ui-v4 .edm-empty svg { width: 26px; height: 26px; }
.ui-v4 .edm-empty strong { color: #34443e; font-size: 12px; }
.ui-v4 .edm-empty span { max-width: 300px; font-size: 10px; line-height: 1.6; }
.ui-v4 .edm-empty.healthy svg { color: #14745d; }
.ui-v4 .whatsapp-account-roster { border: 1px solid #d5ddd8; background: #fff; }
.ui-v4 .whatsapp-roster-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 14px 18px; border-bottom: 1px solid #e1e6e3; }
.ui-v4 .whatsapp-roster-head strong,
.ui-v4 .whatsapp-roster-head span { display: block; }
.ui-v4 .whatsapp-roster-head strong { color: #20322c; font-size: 12px; }
.ui-v4 .whatsapp-roster-head div > span { margin-top: 3px; color: #76827d; font-size: 10px; }
.ui-v4 .whatsapp-roster-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ui-v4 .whatsapp-roster-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 68px; padding: 11px 18px; border-right: 1px solid #e4e8e5; border-bottom: 1px solid #e4e8e5; }
.ui-v4 .whatsapp-roster-row:nth-child(2n) { border-right: 0; }
.ui-v4 .whatsapp-roster-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 5px; color: #185d4b; background: #deeee7; font-size: 11px; font-weight: 800; }
.ui-v4 .whatsapp-roster-row div { min-width: 0; }
.ui-v4 .whatsapp-roster-row strong,
.ui-v4 .whatsapp-roster-row div > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-v4 .whatsapp-roster-row strong { color: #273832; font-size: 11px; }
.ui-v4 .whatsapp-roster-row div > span { margin-top: 3px; color: #7e8984; font-size: 9px; }
.ui-v4 .whatsapp-account-state { display: inline-flex; align-items: center; gap: 5px; color: #77817d; font-size: 9px; white-space: nowrap; }
.ui-v4 .whatsapp-account-state i { width: 6px; height: 6px; border-radius: 50%; background: #aab2ae; }
.ui-v4 .whatsapp-account-state.ready { color: #14715a; }
.ui-v4 .whatsapp-account-state.ready i { background: #25a179; }
.ui-v4 .whatsapp-account-state.reconnecting,
.ui-v4 .whatsapp-account-state.qr,
.ui-v4 .whatsapp-account-state.initializing,
.ui-v4 .whatsapp-account-state.authenticated { color: #806522; }
.ui-v4 .whatsapp-account-state.reconnecting i,
.ui-v4 .whatsapp-account-state.qr i,
.ui-v4 .whatsapp-account-state.initializing i,
.ui-v4 .whatsapp-account-state.authenticated i { background: #d8a52b; }
.ui-v4 .whatsapp-account-state.auth_failure,
.ui-v4 .whatsapp-account-state.unavailable { color: #a44b32; }
.ui-v4 .whatsapp-account-state.auth_failure i,
.ui-v4 .whatsapp-account-state.unavailable i { background: #c95e40; }
.ui-v4 .whatsapp-reliability-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #d5ddd8; border-top: 0; background: #f7f9f7; }
.ui-v4 .whatsapp-reliability-bar > div { display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; min-height: 64px; padding: 11px 14px; border-right: 1px solid #e0e5e2; }
.ui-v4 .whatsapp-reliability-bar > div:last-child { border-right: 0; }
.ui-v4 .whatsapp-reliability-bar svg { grid-row: 1 / 3; align-self: center; width: 16px; height: 16px; color: #23745f; }

/* Connection headings use full-size channel marks, not utility glyphs. */
.ui-v4 .connection-page-heading {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  column-gap: 14px;
}
.ui-v4 .connection-page-heading > div {
  min-height: 52px;
}
.ui-v4 .connection-page-heading > div > span {
  margin-bottom: 3px;
  line-height: 1.1;
}
.ui-v4 .connection-page-heading h2 {
  line-height: 1.22;
}
.ui-v4 .connection-page-heading p {
  line-height: 1.35;
}
.ui-v4 .connection-page-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  max-width: 52px;
  max-height: 52px;
  flex: 0 0 52px;
  align-self: start;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 7px 16px rgba(23, 44, 36, .13);
  line-height: 0;
}
.ui-v4 .connection-page-heading .connection-page-icon {
  display: grid;
  place-items: center;
}
.ui-v4 .connection-page-icon > svg,
.ui-v4 .connection-page-icon > .channel-brand-icon {
  grid-area: 1 / 1;
  margin: 0;
}
.ui-v4 .connection-page-icon.email {
  color: #fff;
  background: #28617f;
}
.ui-v4 .connection-page-icon.whatsapp {
  color: #fff;
  background: #25d366;
}
.ui-v4 .connection-page-icon.email svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.9;
}
.ui-v4 .connection-page-icon.whatsapp .channel-brand-icon {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  object-fit: contain;
}
.ui-v4 .whatsapp-reliability-bar span { color: #78837e; font-size: 9px; }
.ui-v4 .whatsapp-reliability-bar strong { color: #263a33; font-size: 10px; }
.ui-v4 .warning-text { color: #a25b2b !important; }
.ui-v4 .conversion-funnel { margin-top: 14px; border: 1px solid #d5ddd8; background: #fff; }
.ui-v4 .report-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding: 15px 18px; border-bottom: 1px solid #e0e5e2; }
.ui-v4 .report-section-head h3 { margin: 4px 0 0; font-size: 15px; }
.ui-v4 .funnel-stages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ui-v4 .funnel-stage { min-width: 0; padding: 16px 14px; border-right: 1px solid #e5e9e6; }
.ui-v4 .funnel-stage:last-child { border-right: 0; }
.ui-v4 .funnel-stage > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ui-v4 .funnel-stage span { color: #65716c; font-size: 9px; white-space: nowrap; }
.ui-v4 .funnel-stage strong { color: #1c3029; font-size: 17px; }
.ui-v4 .funnel-stage small { display: block; margin-top: 7px; overflow: hidden; color: #89938f; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.ui-v4 .funnel-track { height: 5px; margin-top: 10px; overflow: hidden; background: #e8ece9; }
.ui-v4 .funnel-track i { display: block; width: 0; height: 100%; background: #1b8066; transition: width .3s ease; }
.ui-v4 .funnel-stage:nth-child(4) .funnel-track i { background: #34779b; }
.ui-v4 .funnel-stage:nth-child(5) .funnel-track i { background: #b1832f; }
.ui-v4 .funnel-stage:nth-child(6) .funnel-track i { background: #7d5d91; }
.ui-v4 .channel-performance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #e0e5e2; background: #f7f9f7; }
.ui-v4 .channel-performance > div { display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; min-height: 68px; padding: 13px 18px; border-right: 1px solid #e0e5e2; }
.ui-v4 .channel-performance > div:last-child { border-right: 0; }
.ui-v4 .channel-performance svg { grid-row: 1 / 3; align-self: center; width: 18px; height: 18px; color: #236f5b; }
.ui-v4 .channel-performance span { color: #7a8580; font-size: 9px; }
.ui-v4 .channel-performance strong { margin-top: 3px; color: #263832; font-size: 11px; }
.ui-v4 .team-performance-report { margin-top: 14px; border: 1px solid #d5ddd8; background: #fff; }
.ui-v4 .team-performance-report .team-panel-head { min-height: 72px; padding: 14px 18px; border-bottom: 1px solid #e0e5e2; }
.ui-v4 .team-performance-report .table-wrap { border: 0; border-radius: 0; }

.ui-v4 .form-panel,
.ui-v4 .result-panel,
.ui-v4 .guide-panel,
.ui-v4 .team-panel,
.ui-v4 .account-panel { border-color: #d6ddd8; background: #fff; }
.ui-v4 .field-group { background: #f6f8f6; }

@media (max-width: 1180px) {
  .ui-v4 .edm-ops-columns { grid-template-columns: 1fr; }
  .ui-v4 .edm-ops-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ui-v4 .edm-ops-summary > div:nth-child(2) { border-right: 0; }
  .ui-v4 .edm-ops-summary > div:nth-child(-n+2) { border-bottom: 1px solid #e0e5e2; }
  .ui-v4 .funnel-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ui-v4 .funnel-stage:nth-child(3) { border-right: 0; }
  .ui-v4 .funnel-stage:nth-child(-n+3) { border-bottom: 1px solid #e5e9e6; }
  .ui-v4 .marketing-hero-scene { left: 54%; }
  .ui-v4 .hero-workspace-body { grid-template-columns: 46px minmax(360px, 1fr); }
  .ui-v4 .hero-customer-peek { display: none; }
  .ui-v4 .marketing-hero-content { width: min(480px, 43vw); }
  .ui-v4 .marketing-hero h1 strong { font-size: 52px; }
  .ui-v4 .marketing-hero h1 span { font-size: 35px; }
  .ui-v4 .marketing-industry-heading { grid-template-columns: 1fr; gap: 17px; }
  .ui-v4 .marketing-industry-heading > p { max-width: 720px; }
  .ui-v4 .marketing-industry-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ui-v4 .marketing-industry-card:nth-child(3) { display: grid; grid-template-columns: 1.1fr .9fr; grid-column: 1 / -1; }
  .ui-v4 .marketing-industry-card:nth-child(3) .marketing-industry-media { min-height: 310px; aspect-ratio: auto; }
  .ui-v4 .marketing-industry-index { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ui-v4 .marketing-industry-index > span:nth-child(4) { border-right: 0; }
  .ui-v4 .marketing-industry-index > span:nth-child(-n+4) { border-bottom: 1px solid #dbe2de; }
}

@media (max-width: 920px) {
  .ui-v4 #appShell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 64px auto minmax(0, 1fr);
  }
  .ui-v4 #appShell > header { grid-column: 1; grid-row: 1; min-height: 64px; padding: 0 17px; }
  .ui-v4 .app-nav {
    grid-row: 2;
    width: 100%;
    min-width: 0;
    padding: 6px 10px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #d6dcd8;
    background: #f8f9f7;
  }
  .ui-v4 .app-nav .brand-lockup,
  .ui-v4 .app-nav .nav-label,
  .ui-v4 .app-nav .nav-account { display: none; }
  .ui-v4 .app-nav .nav-item,
  .ui-v4 .app-nav .nav-card-button,
  .ui-v4 .app-nav .nav-more-toggle { flex: 0 0 auto; min-height: 40px; }
  .ui-v4 #appShell > main { grid-row: 3; padding: 18px 16px 30px; }
  .ui-v4 .marketing-hero::after { width: 100%; background: rgba(7, 27, 21, .86); }
  .ui-v4 .marketing-hero-image { opacity: 1; filter: saturate(.74) contrast(.9) brightness(.8); object-position: 54% center; }
  .ui-v4 .marketing-hero-shade { background: rgba(5, 19, 15, .34); }
  .ui-v4 .marketing-hero-scene { display: none; }
  .ui-v4 .marketing-hero-content { width: min(590px, calc(100% - 48px)); }
  .ui-v4 .marketing-industry-showcase { padding: 78px 30px; }
  .ui-v4 .marketing-industry-heading h2 { font-size: 34px; }
}

@media (max-width: 680px) {
  .ui-v4 .edm-ops-summary { grid-template-columns: 1fr; }
  .ui-v4 .edm-ops-summary > div { min-height: 82px; border-right: 0; border-bottom: 1px solid #e0e5e2; }
  .ui-v4 .edm-ops-summary > div:last-child { border-bottom: 0; }
  .ui-v4 .edm-section-head,
  .ui-v4 .whatsapp-roster-head,
  .ui-v4 .report-section-head { align-items: flex-start; flex-direction: column; }
  .ui-v4 .edm-section-actions { width: 100%; }
  .ui-v4 .edm-section-actions select { flex: 1; width: auto; }
  .ui-v4 .whatsapp-roster-list { grid-template-columns: 1fr; }
  .ui-v4 .whatsapp-roster-row { border-right: 0; }
  .ui-v4 .whatsapp-reliability-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ui-v4 .whatsapp-reliability-bar > div:nth-child(2n) { border-right: 0; }
  .ui-v4 .whatsapp-reliability-bar > div:nth-child(-n+2) { border-bottom: 1px solid #e0e5e2; }
  .ui-v4 .funnel-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ui-v4 .funnel-stage:nth-child(2n) { border-right: 0; }
  .ui-v4 .funnel-stage:nth-child(-n+4) { border-bottom: 1px solid #e5e9e6; }
  .ui-v4 .channel-performance { grid-template-columns: 1fr; }
  .ui-v4 .channel-performance > div { border-right: 0; border-bottom: 1px solid #e0e5e2; }
  .ui-v4 .channel-performance > div:last-child { border-bottom: 0; }
  .ui-v4 .marketing-nav { min-height: 62px; padding: 0 14px; }
  .ui-v4 .marketing-brand .brand-mark { width: 32px; height: 32px; }
  .ui-v4 .marketing-hero { height: calc(100dvh - 102px); min-height: 650px; }
  .ui-v4 .marketing-hero-image { opacity: 1; object-position: 58% center; }
  .ui-v4 .marketing-hero-shade { background: rgba(5, 19, 15, .34); }
  .ui-v4 .hero-workspace-body { grid-template-columns: 42px minmax(360px, 1fr); }
  .ui-v4 .marketing-hero-content { width: auto; margin: 0 18px; padding-bottom: 0; }
  .ui-v4 .marketing-eyebrow { font-size: 9px; }
  .ui-v4 .marketing-hero h1 strong { font-size: 39px; }
  .ui-v4 .marketing-hero h1 span { max-width: 330px; margin-top: 9px; font-size: 28px; line-height: 1.3; }
  .ui-v4 .marketing-hero-content > p { max-width: 335px; color: #d0dbd6; font-size: 12px; }
  .ui-v4 .marketing-hero-actions { flex-direction: column; align-items: stretch; }
  .ui-v4 .marketing-hero-actions button { width: 100%; }
  .ui-v4 .marketing-operating-strip { grid-template-columns: 1fr; padding: 0 20px; }
  .ui-v4 .marketing-operating-strip > div,
  .ui-v4 .marketing-operating-strip > div + div { grid-template-columns: 70px minmax(0, 1fr); min-height: 78px; padding: 16px 0; border-right: 0; border-bottom: 1px solid #d8ded9; }
  .ui-v4 .marketing-operating-strip > div:last-child { border-bottom: 0; }
  .ui-v4 .marketing-industry-showcase { padding: 62px 20px; }
  .ui-v4 .marketing-industry-heading { margin-bottom: 30px; }
  .ui-v4 .marketing-industry-heading h2 { font-size: 29px; }
  .ui-v4 .marketing-industry-heading > p { font-size: 12px; }
  .ui-v4 .marketing-industry-gallery { grid-template-columns: 1fr; }
  .ui-v4 .marketing-industry-card:nth-child(3) { display: block; grid-column: auto; }
  .ui-v4 .marketing-industry-card:nth-child(3) .marketing-industry-media { min-height: 0; aspect-ratio: 4 / 3; }
  .ui-v4 .marketing-industry-body { min-height: 0; }
  .ui-v4 .marketing-industry-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ui-v4 .marketing-industry-index > span:nth-child(2n) { border-right: 0; }
  .ui-v4 .marketing-industry-index > span:nth-child(-n+6) { border-bottom: 1px solid #dbe2de; }
  .ui-v4 .marketing-industry-index > span { min-height: 78px; }
  .ui-v4 #appShell > header h1 { font-size: 17px; }
  .ui-v4 #appShell > header #status,
  .ui-v4 #appShell > header #userInfo,
  .ui-v4 #appShell > header #helpCenter,
  .ui-v4 #appShell > header #refresh { display: none; }
  .ui-v4 #appShell > main { padding: 14px 10px 28px; }
  .ui-v4 .search-workspace { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html.marketing-motion-ready .ui-v4 .marketing-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ui-v4 .marketing-hero-image,
  .ui-v4 .hero-workspace,
  .ui-v4 .hero-sync-state i,
  .ui-v4 .hero-process-line .current svg { animation: none; }
  .ui-v4 .marketing-industry-media img { transition: none; }
}
