/* TradeLead AI commercial V1: product-led hierarchy and compact operations. */
.ui-v6 {
  --v6-canvas: #eef2ef;
  --v6-surface: #ffffff;
  --v6-surface-soft: #f6f8f6;
  --v6-line: #d5ddd8;
  --v6-line-strong: #bcc9c2;
  --v6-ink: #13231c;
  --v6-copy: #405049;
  --v6-muted: #74817b;
  --v6-brand: #0b745b;
  --v6-brand-dark: #075441;
  --v6-brand-soft: #e3f0ea;
  --v6-blue: #356a86;
  --v6-blue-soft: #e9f1f5;
  --v6-amber: #94651f;
  --v6-amber-soft: #fff2d8;
  --v6-red: #a64e3e;
  background: var(--v6-canvas);
  color: var(--v6-ink);
}

/* Public website: the real trade scene carries the brand; the product proves it. */
.ui-v6 .marketing-nav {
  min-height: 72px;
  padding: 0 clamp(24px, 5vw, 76px);
  border-bottom: 1px solid rgba(19, 35, 28, .14);
  background: rgba(255, 255, 255, .97);
}

.ui-v6 .marketing-brand .brand-mark {
  width: 38px;
  height: 38px;
}

.ui-v6 .marketing-brand strong {
  color: var(--v6-ink);
  font-size: 14px;
}

.ui-v6 .marketing-brand small {
  color: var(--v6-muted);
  font-size: 9px;
}

.ui-v6 .marketing-nav > nav {
  gap: 30px;
}

.ui-v6 .marketing-nav > nav a {
  padding-top: 27px;
  padding-bottom: 25px;
  color: #46564e;
  font-size: 11px;
  font-weight: 720;
}

.ui-v6 .marketing-nav > nav a::after {
  bottom: 19px;
  height: 2px;
}

.ui-v6 .marketing-nav-actions {
  gap: 9px;
}

.ui-v6 .marketing-nav-actions button {
  min-height: 38px;
  padding: 8px 15px;
  border-radius: 6px;
}

.ui-v6 .marketing-hero {
  height: min(660px, calc(100dvh - 116px));
  min-height: 560px;
  isolation: isolate;
  background: #10261f;
}

.ui-v6 .marketing-hero-image {
  object-position: center 54%;
  filter: saturate(.84) contrast(.98) brightness(.76);
  transform: scale(1.006);
  animation: commercialHeroDrift 24s ease-in-out infinite alternate;
}

.ui-v6 .marketing-hero-shade {
  z-index: 1;
  background: rgba(5, 22, 17, .46);
}

.ui-v6 .marketing-hero-scene {
  display: block;
  top: 28px;
  right: clamp(22px, 3vw, 48px);
  bottom: 38px;
  left: 53%;
}

.ui-v6 .hero-workspace {
  top: 26px;
  bottom: 26px;
  border-color: #aebdb5;
  box-shadow: 0 24px 58px rgba(5, 22, 17, .3), 0 4px 14px rgba(5, 22, 17, .16);
}

.ui-v6 .marketing-hero-content {
  z-index: 4;
  width: min(540px, 41vw);
  margin-left: clamp(26px, 6vw, 96px);
  padding: 24px 0 48px;
}

.ui-v6 .marketing-eyebrow {
  color: #a8e6d2;
  font-size: 11px;
}

.ui-v6 .marketing-hero h1 {
  margin-top: 16px;
}

.ui-v6 .marketing-hero h1 strong {
  color: #fff;
  font-size: 56px;
  font-weight: 820;
  line-height: 1.02;
}

.ui-v6 .marketing-hero h1 span {
  max-width: 560px;
  margin-top: 14px;
  color: #fff;
  font-size: 38px;
  font-weight: 720;
  line-height: 1.23;
}

.ui-v6 .marketing-hero-content > p {
  max-width: 540px;
  margin-top: 20px;
  color: #d4dfda;
  font-size: 14px;
  line-height: 1.82;
}

.ui-v6 .marketing-hero-actions {
  margin-top: 26px;
}

.ui-v6 .marketing-hero-actions button {
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 6px;
}

.ui-v6 .marketing-hero-actions .primary {
  border-color: #0d8064;
  background: #0d8064;
  box-shadow: 0 10px 24px rgba(0, 37, 28, .28);
}

.ui-v6 .marketing-hero-actions button:not(.primary) {
  border-color: rgba(255, 255, 255, .58);
  color: #fff;
  background: rgba(9, 31, 24, .72);
}

.ui-v6 .marketing-trust-line {
  width: fit-content;
  max-width: 100%;
  margin-top: 28px;
  color: #d0dcd7;
}

.ui-v6 .marketing-route-rail {
  z-index: 6;
  right: clamp(24px, 5vw, 76px);
  bottom: 18px;
  left: clamp(24px, 5vw, 76px);
  border-top-color: rgba(255, 255, 255, .34);
  color: #fff;
}

.ui-v6 .marketing-route-live,
.ui-v6 .marketing-route-stage span,
.ui-v6 .marketing-route-rail > svg {
  color: #d0dcd7;
}

.ui-v6 .marketing-route-track {
  background: rgba(255, 255, 255, .3);
}

.ui-v6 .marketing-route-track span {
  background: #65d1ae;
}

.ui-v6 .marketing-operating-strip {
  border-bottom: 1px solid var(--v6-line);
  background: #fff;
}

.ui-v6 .marketing-operating-strip > div {
  min-height: 94px;
}

.ui-v6 .marketing-operating-strip span,
.ui-v6 .marketing-industry-body > span,
.ui-v6 .marketing-story-index {
  color: var(--v6-brand);
}

.ui-v6 .marketing-operating-strip strong {
  color: var(--v6-ink);
  font-size: 13px;
}

.ui-v6 .marketing-operating-strip small {
  color: var(--v6-muted);
}

.ui-v6 .marketing-industry-showcase {
  padding-top: 96px;
  background: #f4f6f4;
}

.ui-v6 .marketing-industry-heading h2,
.ui-v6 .marketing-story-copy h2,
.ui-v6 .marketing-team-copy h2,
.ui-v6 .marketing-final-cta h2 {
  color: var(--v6-ink);
}

.ui-v6 .marketing-industry-card {
  border-color: var(--v6-line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(22, 39, 31, .08);
}

.ui-v6 .marketing-industry-index {
  margin-top: 48px;
  background: rgba(255, 255, 255, .52);
}

.ui-v6 .marketing-story {
  border-bottom-color: var(--v6-line);
}

.ui-v6 .marketing-story:nth-of-type(even) {
  background: #f3f6f4;
}

.ui-v6 .marketing-product-frame {
  border-color: var(--v6-line-strong);
  border-radius: 8px;
  box-shadow: 0 22px 56px rgba(18, 38, 30, .1);
}

.ui-v6 .marketing-screen .marketing-final-cta {
  border-top: 1px solid var(--v6-line);
  background: #12261f;
}

.ui-v6 .marketing-final-cta h2,
.ui-v6 .marketing-final-cta > span {
  color: #fff;
}

.ui-v6 .marketing-final-cta button {
  border-color: #fff;
  color: var(--v6-ink);
  background: #fff;
}

.ui-v6 .marketing-footer {
  background: #0d1c17;
}

@keyframes commercialHeroDrift {
  from { transform: scale(1.006) translate3d(0, 0, 0); }
  to { transform: scale(1.026) translate3d(-5px, -2px, 0); }
}

/* Product shell */
.ui-v6 #appShell {
  grid-template-columns: 224px minmax(0, 1fr);
  grid-template-rows: 64px minmax(0, 1fr);
  background: var(--v6-canvas);
}

.ui-v6 #appShell > header {
  min-height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid var(--v6-line);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 0 rgba(18, 35, 28, .025);
}

.ui-v6 #appShell > header h1 {
  color: var(--v6-ink);
  font-size: 18px;
  font-weight: 780;
}

.ui-v6 #appShell > header #status {
  color: var(--v6-muted);
  font-size: 10px;
}

.ui-v6 #appShell > header .quota,
.ui-v6 #appShell > header .icon-button,
.ui-v6 #appShell > header #logoutBtn {
  min-height: 36px;
  border-color: var(--v6-line);
  color: #43534b;
  background: #fff;
}

.ui-v6 .app-nav {
  width: 224px;
  padding: 11px 10px;
  border-right: 0;
  color: #d8e2dd;
  background: #14231d;
  box-shadow: 7px 0 24px rgba(14, 33, 25, .07);
}

.ui-v6 .brand-lockup {
  min-height: 58px;
  margin: 0 3px 5px;
  padding: 4px 7px 13px;
  border-bottom: 1px solid rgba(222, 238, 230, .13);
}

.ui-v6 .brand-lockup .brand-mark {
  width: 36px;
  height: 36px;
  border-color: rgba(255, 255, 255, .42);
  background: #fff;
}

.ui-v6 .brand-lockup .brand-copy strong {
  color: #fff;
}

.ui-v6 .brand-lockup .brand-copy span {
  color: #9fb0a7;
}

.ui-v6 .nav-label {
  padding: 11px 10px 5px;
  color: #81958b;
  font-size: 9px;
}

.ui-v6 .app-nav .nav-item,
.ui-v6 .app-nav .nav-card-button,
.ui-v6 .app-nav .nav-more-toggle {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #c7d2cc;
}

.ui-v6 .app-nav .nav-item svg,
.ui-v6 .app-nav .nav-card-button svg,
.ui-v6 .app-nav .nav-more-toggle svg {
  width: 17px;
  height: 17px;
  color: #8fa399;
}

.ui-v6 .app-nav .nav-item:hover,
.ui-v6 .app-nav .nav-card-button:hover,
.ui-v6 .app-nav .nav-more-toggle:hover {
  color: #fff;
  background: #20352c !important;
}

.ui-v6 .app-nav .nav-item.active,
.ui-v6 .app-nav .nav-card-button.active {
  color: #fff;
  background: #29443a !important;
  box-shadow: inset 3px 0 0 #54c49e;
}

.ui-v6 .app-nav .nav-item.active svg,
.ui-v6 .app-nav .nav-card-button.active svg {
  color: #7ad7b8;
}

.ui-v6 .nav-card-state {
  color: #b7c5be;
  background: rgba(255, 255, 255, .1);
}

.ui-v6 .nav-card-state.ready {
  color: #baf0dd;
  background: rgba(80, 187, 149, .2);
}

.ui-v6 .nav-secondary {
  gap: 1px;
  margin: 2px 0 4px 17px;
  padding-left: 8px;
  border-left: 1px solid rgba(220, 236, 228, .18);
}

.ui-v6 .nav-secondary .nav-item,
.ui-v6 .nav-secondary .nav-card-button {
  min-height: 34px;
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: 11px;
}

.ui-v6 .nav-account {
  margin-top: auto;
  border-top-color: rgba(222, 238, 230, .13);
  color: #d4dfd9;
}

.ui-v6 .nav-account:hover,
.ui-v6 .nav-account.active {
  color: #fff;
  background: #20352c;
}

.ui-v6 .nav-account-avatar {
  color: #17392d;
  background: #84d9bb;
}

.ui-v6 .nav-account-copy strong {
  color: #f4f7f5;
}

.ui-v6 .nav-account-copy span {
  color: #8fa39a;
}

.ui-v6 #appShell > main {
  width: 100%;
  max-width: 1680px;
  padding: 20px 24px 36px;
}

.ui-v6 .page-view > .head,
.ui-v6 [data-page="leads"] > section > .head {
  min-height: 54px;
  padding-bottom: 13px;
}

.ui-v6 .page-title h2 {
  color: var(--v6-ink);
  font-size: 22px;
  font-weight: 790;
}

.ui-v6 .page-title > span {
  margin-top: 4px;
  color: var(--v6-muted);
  font-size: 11px;
}

.ui-v6 .home-live-state {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #c9dad2;
  border-radius: 5px;
  color: #3f6557;
  background: #edf5f1;
}

.ui-v6 .home-live-state i {
  background: #23a277;
}

/* Workbench stays task-oriented and compact. */
.ui-v6 .home-command-layout {
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, .72fr);
  gap: 16px;
}

.ui-v6 .home-command-main {
  gap: 14px;
}

.ui-v6 .home-identity-strip,
.ui-v6 .home-actions,
.ui-v6 .home-metrics {
  border: 1px solid var(--v6-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(20, 39, 31, .04);
}

.ui-v6 .home-identity-strip {
  min-height: 72px;
  padding: 12px 15px;
}

.ui-v6 .home-identity-icon {
  border-color: #cbded5;
  color: var(--v6-brand);
  background: var(--v6-brand-soft);
}

.ui-v6 .home-identity-copy strong {
  color: var(--v6-ink);
}

.ui-v6 .home-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  padding: 0;
}

.ui-v6 .home-section-heading,
.ui-v6 .home-metrics-head {
  min-height: 64px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--v6-line);
  background: var(--v6-surface-soft);
}

.ui-v6 .home-section-heading {
  grid-column: 1 / -1;
}

.ui-v6 .home-section-heading > i {
  color: var(--v6-brand);
}

.ui-v6 .home-actions .quick-card {
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  grid-template-rows: auto auto;
  gap: 3px 11px;
  min-height: 96px;
  padding: 16px !important;
  border-right: 1px solid var(--v6-line) !important;
  border-bottom: 1px solid var(--v6-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
}

.ui-v6 .home-actions .quick-card:nth-of-type(2n) {
  border-right: 0 !important;
}

.ui-v6 .home-actions .quick-card:nth-last-child(-n+2) {
  border-bottom: 0 !important;
}

.ui-v6 .home-actions .quick-card:hover {
  background: #f2f7f4 !important;
  transform: none;
}

.ui-v6 .home-actions .quick-card .quick-index {
  grid-row: 1 / 3;
  align-self: center;
  width: 36px;
  height: 36px;
  border-color: #c9ddd4;
  color: var(--v6-brand) !important;
  background: var(--v6-brand-soft);
}

.ui-v6 .home-actions .quick-card:nth-of-type(3) .quick-index {
  border-color: #ccdce5;
  color: var(--v6-blue) !important;
  background: var(--v6-blue-soft);
}

.ui-v6 .home-actions .quick-card:nth-of-type(4) .quick-index {
  border-color: #ead4a9;
  color: var(--v6-amber) !important;
  background: var(--v6-amber-soft);
}

.ui-v6 .home-actions .quick-card strong {
  align-self: end;
  color: var(--v6-ink);
  font-size: 13px;
}

.ui-v6 .home-actions .quick-card > span:not(.quick-index):not(.quick-plan-badge) {
  align-self: start;
  color: var(--v6-muted);
  font-size: 10px;
}

.ui-v6 .home-actions .quick-card .quick-arrow {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  color: #86938d;
}

.ui-v6 .home-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  overflow: hidden;
}

.ui-v6 .home-metrics-head {
  grid-column: 1 / -1;
}

.ui-v6 .home-metrics .metric {
  min-height: 112px;
  padding: 16px;
  border-color: var(--v6-line);
  background: #fff;
}

.ui-v6 .home-metrics .metric::after {
  top: 17px;
  right: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.ui-v6 .home-metrics .metric strong {
  color: var(--v6-ink);
  font-size: 28px;
}

/* Search: conditions, progress and evidence-led delivery. */
.ui-v6 [data-page="search"] > .content {
  padding: 0;
}

.ui-v6 .search-workspace {
  grid-template-columns: 370px minmax(0, 1fr);
  height: calc(100dvh - 104px);
  min-height: 500px;
  max-height: 780px;
  overflow: hidden;
  border: 1px solid var(--v6-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(20, 39, 31, .04);
}

.ui-v6 .search-builder {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  padding: 0;
  border-right: 1px solid var(--v6-line);
  background: #fff;
}

.ui-v6 .search-builder-body {
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.ui-v6 .search-builder-head {
  min-height: 82px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--v6-line);
  background: #f7f9f7;
}

.ui-v6 .search-builder-head h3,
.ui-v6 .search-output-head h3 {
  color: var(--v6-ink);
  font-size: 16px;
}

.ui-v6 .search-quota {
  border-color: #cadbd3;
  color: #3f6859;
  background: #edf5f1;
}

.ui-v6 .search-form-section {
  padding: 15px 18px;
  border-bottom: 1px solid #e2e7e4;
}

.ui-v6 .search-section-title {
  margin-bottom: 11px;
  color: #3f5149;
  font-size: 11px;
}

.ui-v6 .search-section-title span {
  width: 24px;
  height: 24px;
  color: #fff;
  background: var(--v6-brand);
}

.ui-v6 .search-builder input,
.ui-v6 .search-builder select {
  background: #fbfcfb;
}

.ui-v6 .country-picker-field {
  position: relative;
  display: grid;
  gap: 7px;
}

.ui-v6 .country-picker-field > label {
  color: #52635c;
  font-size: 12px;
  font-weight: 650;
}

.ui-v6 .country-picker-trigger {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 7px 12px;
  border: 1px solid #cbd5d0;
  border-radius: 6px;
  background: #fff;
  color: var(--v6-ink);
  text-align: left;
}

.ui-v6 .country-picker-trigger:hover,
.ui-v6 .country-picker-trigger[aria-expanded="true"] {
  border-color: var(--v6-green);
  box-shadow: 0 0 0 3px rgba(13, 112, 84, .1);
}

.ui-v6 .country-picker-trigger > svg {
  width: 17px;
  color: #718079;
}

.ui-v6 .country-picker-flag {
  display: block;
  width: 28px;
  height: 21px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(18, 37, 30, .12);
  object-fit: cover;
}

.ui-v6 .country-picker-value {
  display: grid;
  min-width: 0;
}

.ui-v6 .country-picker-value strong {
  overflow: hidden;
  color: var(--v6-ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-v6 .country-picker-value span {
  overflow: hidden;
  margin-top: 2px;
  color: #73827b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-v6 .country-picker-panel {
  position: fixed;
  z-index: 240;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 12px;
  border: 1px solid #c8d2cd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(18, 37, 30, .22);
}

.ui-v6 .country-picker-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.ui-v6 .country-picker-search > svg {
  position: absolute;
  left: 13px;
  z-index: 1;
  width: 17px;
  color: #66776f;
  pointer-events: none;
}

.ui-v6 .country-picker-search input {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px 9px 40px;
  border: 1px solid #c8d2cd;
  border-radius: 6px;
  background: #f8faf9;
  font-size: 14px;
}

.ui-v6 .country-picker-options {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.ui-v6 .country-picker-group + .country-picker-group {
  margin-top: 14px;
}

.ui-v6 .country-picker-group h4 {
  margin: 0 0 7px;
  color: #64746d;
  font-size: 11px;
  font-weight: 750;
}

.ui-v6 .country-picker-group > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.ui-v6 .country-picker-option {
  display: grid;
  grid-template-columns: 28px minmax(72px, auto) minmax(0, 1fr) 28px 16px;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--v6-ink);
  text-align: left;
}

.ui-v6 .country-picker-option:hover {
  background: #f0f5f2;
}

.ui-v6 .country-picker-option.selected {
  border-color: #b9d5ca;
  background: #e8f3ee;
}

.ui-v6 .country-picker-option > img {
  display: block;
  width: 25px;
  height: 19px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(18, 37, 30, .1);
  object-fit: cover;
}

.ui-v6 .country-picker-option strong,
.ui-v6 .country-picker-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-v6 .country-picker-option strong {
  font-size: 13px;
}

.ui-v6 .country-picker-option small {
  color: #718079;
  font-size: 11px;
}

.ui-v6 .country-picker-option em {
  color: #718079;
  font-size: 10px;
  font-style: normal;
}

.ui-v6 .country-picker-option > svg {
  width: 15px;
  opacity: 0;
  color: var(--v6-green);
}

.ui-v6 .country-picker-option.selected > svg {
  opacity: 1;
}

.ui-v6 .country-picker-empty {
  padding: 40px 16px;
  color: #718079;
  text-align: center;
}

.ui-v6 .search-market-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 10px 0 0;
  color: #61736a;
  font-size: 11px;
  line-height: 1.55;
}

.ui-v6 .search-market-note svg {
  flex: 0 0 auto;
  width: 14px;
  margin-top: 1px;
  color: var(--v6-green);
}

.ui-v6 .optional-field {
  color: #7b8982;
  font-size: 11px;
  font-weight: 500;
}

@media (max-width: 700px) {
  .ui-v6 .country-picker-group > div {
    grid-template-columns: 1fr;
  }

  .ui-v6 .country-picker-option {
    grid-template-columns: 28px minmax(72px, auto) minmax(0, 1fr) 26px 16px;
  }
}

.ui-v6 .search-submit-zone {
  padding: 12px 18px 14px;
  border-top: 1px solid var(--v6-line);
  background: #f7f9f7;
}

.ui-v6 .search-submit-zone .primary {
  width: 100%;
  min-height: 42px;
  margin: 0;
}

.ui-v6 .search-output {
  min-width: 0;
  min-height: 0;
  background: #f4f6f4;
}

.ui-v6 .search-output-head {
  min-height: 82px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--v6-line);
  background: #fff;
}

.ui-v6 .search-progress {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 15px 18px 0;
  padding: 12px 15px;
  border: 1px solid var(--v6-line);
  border-radius: 7px;
  background: #fff;
}

.ui-v6 .progress-step {
  min-width: 0;
  font-size: 10px;
  white-space: nowrap;
}

.ui-v6 .search-results {
  min-width: 0;
  min-height: 0;
  margin: 14px 18px 18px;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--v6-line);
  border-radius: 7px;
  background: #fff;
}

.ui-v6 .search-results > .result-summary,
.ui-v6 .search-results > .skip-summary,
.ui-v6 .search-results > .stream-result-head,
.ui-v6 .search-results > .search-running,
.ui-v6 .search-results > .toolbar,
.ui-v6 .search-results > .empty-state {
  margin-right: 16px;
  margin-left: 16px;
}

.ui-v6 .search-results > .result-summary,
.ui-v6 .search-results > .stream-result-head {
  margin-top: 16px;
}

.ui-v6 .search-result-table-wrap {
  width: 100%;
  margin-top: 14px;
  overflow: auto;
  border-top: 1px solid var(--v6-line);
  border-bottom: 1px solid var(--v6-line);
  background: #fff;
}

.ui-v6 .google-maps-attribution {
  min-height: 30px;
  padding: 7px 12px;
  border-top: 1px solid #e4e9e6;
  color: #5e5e5e;
  background: #fff;
  font-family: Roboto, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 16px;
  text-align: right;
}

.ui-v6 .search-result-table {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
  border-collapse: collapse;
}

.ui-v6 .search-result-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 38px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--v6-line);
  color: #617068;
  background: #f3f6f4;
  font-size: 10px;
  font-weight: 720;
  text-align: left;
}

.ui-v6 .search-result-table th:nth-child(1) { width: 24%; }
.ui-v6 .search-result-table th:nth-child(2) { width: 38%; }
.ui-v6 .search-result-table th:nth-child(3) { width: 25%; }
.ui-v6 .search-result-table th:nth-child(4) { width: 13%; }

.ui-v6 .search-result-table td {
  height: 94px;
  padding: 11px 12px;
  border-bottom: 1px solid #e4e9e6;
  vertical-align: middle;
}

.ui-v6 .search-result-table tbody tr:last-child td {
  border-bottom: 0;
}

.ui-v6 .search-result-table tbody tr:hover td {
  background: #f7faf8;
}

.ui-v6 .search-result-table tbody tr.streaming td:first-child {
  box-shadow: inset 3px 0 0 #4b9a7d;
}

.ui-v6 .search-company-cell,
.ui-v6 .search-buyer-cell,
.ui-v6 .search-contact-cell {
  min-width: 0;
}

.ui-v6 .search-company-cell strong,
.ui-v6 .search-company-cell a,
.ui-v6 .search-company-cell small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-v6 .search-company-cell strong {
  color: var(--v6-ink);
  font-size: 12px;
}

.ui-v6 .search-company-cell a {
  margin-top: 5px;
  color: var(--v6-blue);
  font-size: 10px;
}

.ui-v6 .search-company-cell small,
.ui-v6 .search-buyer-cell > small {
  margin-top: 5px;
  color: var(--v6-muted);
  font-size: 9px;
}

.ui-v6 .search-buyer-head,
.ui-v6 .search-buyer-scores {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.ui-v6 .search-buyer-head strong {
  overflow: hidden;
  color: #35483f;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-v6 .search-buyer-scores {
  margin-top: 5px;
  color: #52645b;
  font-size: 9px;
}

.ui-v6 .search-buyer-scores span + span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 9px;
  margin-right: 7px;
  background: #cbd4cf;
  vertical-align: -1px;
}

.ui-v6 .search-buyer-cell p {
  display: -webkit-box;
  max-width: 100%;
  margin: 6px 0 0;
  overflow: hidden;
  color: #596a62;
  font-size: 9px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ui-v6 .search-buyer-cell p b {
  color: #40534a;
}

.ui-v6 .search-evidence-link {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-top: 5px;
  color: var(--v6-blue);
  font-size: 9px;
}

.ui-v6 .search-evidence-link svg {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
}

.ui-v6 .search-evidence-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-v6 .search-contact-cell {
  display: grid;
  gap: 7px;
}

.ui-v6 .search-contact-cell > span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  color: #45574f;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-v6 .search-contact-cell svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  color: var(--v6-brand);
}

.ui-v6 .search-data-empty {
  color: #87928d !important;
  font-size: 9px !important;
}

.ui-v6 .search-result-action {
  text-align: right;
}

.ui-v6 .search-result-action .badge {
  display: inline-flex;
  margin-bottom: 8px;
}

.ui-v6 .search-result-action .icon-button {
  width: 34px;
  min-height: 34px;
  margin-left: auto;
}

.ui-v6 .recent-searches {
  margin-top: 16px;
  border-color: var(--v6-line);
  border-radius: 8px;
  box-shadow: 0 7px 22px rgba(20, 39, 31, .03);
}

/* Customer library: a dense table with a bounded detail drawer. */
.ui-v6 [data-page="leads"] > section > .content {
  overflow: hidden;
  border: 1px solid var(--v6-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(20, 39, 31, .035);
}

.ui-v6 .lead-workbench {
  gap: 0;
  margin: 0;
}

.ui-v6 .lead-stages {
  border: 0;
  border-bottom: 1px solid var(--v6-line);
  border-radius: 0;
  background: #f5f7f5;
}

.ui-v6 .lead-stage {
  min-height: 58px;
  padding: 9px 13px;
  border-right-color: var(--v6-line) !important;
  background: transparent !important;
}

.ui-v6 .lead-stage strong {
  color: var(--v6-ink);
  font-size: 17px;
}

.ui-v6 .lead-stage.active {
  color: var(--v6-brand) !important;
  background: #fff !important;
  box-shadow: inset 0 -3px 0 var(--v6-brand);
}

.ui-v6 .lead-tools {
  min-height: 60px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--v6-line);
  background: #fff;
}

.ui-v6 .lead-tools .search-input input {
  background: #f5f7f5;
}

.ui-v6 [data-page="leads"] .table-wrap {
  min-height: 360px;
  max-height: calc(100dvh - 306px);
  overflow: auto;
}

.ui-v6 #leadTable thead {
  position: sticky;
  top: 0;
  z-index: 3;
}

.ui-v6 #leadTable th {
  height: 40px;
  color: #5f6e67;
  background: #f2f5f3;
}

.ui-v6 #leadTable .lead-row {
  height: 68px;
}

.ui-v6 #leadTable td {
  height: 68px;
  max-height: 68px;
  overflow: hidden;
}

.ui-v6 #leadTable .lead-cell-main,
.ui-v6 #leadTable .lead-cell-sub,
.ui-v6 #leadTable .truncate-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-v6 #leadTable .lead-row:hover td {
  background: #f2f7f4;
}

.ui-v6 #leadTable .lead-row.selected td {
  background: #e6f1ec;
}

.ui-v6 .lead-pagination {
  min-height: 54px;
  padding: 9px 13px;
  border-top: 1px solid var(--v6-line);
  background: #fafbfa;
}

.ui-v6 .lead-detail-drawer {
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: min(660px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  border-left-color: var(--v6-line);
  box-shadow: -18px 0 42px rgba(16, 35, 27, .13);
}

.ui-v6 [data-page="leads"] > .lead-detail-drawer > .content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Chat and EDM keep their own task-specific structures. */
.ui-v6 .module-tabs {
  min-height: 54px;
  border-color: var(--v6-line);
  background: #f7f9f7;
}

.ui-v6 .module-tab {
  min-height: 54px;
}

.ui-v6 .comms-workspace {
  grid-template-columns: 280px minmax(0, 1fr);
  height: calc(100dvh - 176px);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--v6-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(20, 39, 31, .035);
}

.ui-v6 .comms-inbox {
  border-right-color: var(--v6-line);
  background: #f8faf8;
}

.ui-v6 .comms-inbox-head,
.ui-v6 .comms-inbox-tools {
  background: #fff;
}

.ui-v6 .comms-inbox .mail-item {
  min-height: 76px;
}

.ui-v6 .comms-inbox .mail-item.active {
  background: #e3f0ea;
  box-shadow: inset 3px 0 0 var(--v6-brand);
}

.ui-v6 .comms-workspace .mail-reader-content {
  background: #eef2ef;
}

.ui-v6 .comms-workspace .chat-message-row.outbound .message-card {
  border-color: #bad6ca;
  background: #dfeee8;
}

.ui-v6 .comms-context {
  width: 288px;
  border-left-color: var(--v6-line);
  background: #f8faf8;
}

.ui-v6 .comms-workspace .mail-compose-reply {
  border-top-color: var(--v6-line);
  background: #fff;
}

.ui-v6 .comms-workspace .chat-compose-box textarea {
  min-height: 96px;
  border-color: #c7d3cd;
  background: #fff;
}

.ui-v6 .edm-compose-workspace,
.ui-v6 .edm-ops-summary,
.ui-v6 .edm-ops-section {
  border-color: var(--v6-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20, 39, 31, .035);
}

.ui-v6 .edm-compose-head {
  min-height: 124px;
  padding: 21px 23px;
  background: #fff;
}

.ui-v6 .edm-compose-flow {
  border-color: var(--v6-line);
  background: #f5f7f5;
}

.ui-v6 .edm-ops-summary {
  overflow: hidden;
}

.ui-v6 .edm-section-head {
  background: #f8faf8;
}

.ui-v6 .connection-page-header,
.ui-v6 .team-identity,
.ui-v6 .account-identity {
  border-color: var(--v6-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(20, 39, 31, .03);
}

.ui-v6 .team-payment-lock > button {
  min-height: 36px;
}

/* Shared controls */
.ui-v6 button,
.ui-v6 input,
.ui-v6 select,
.ui-v6 textarea {
  border-radius: 6px;
}

.ui-v6 button.primary {
  border-color: var(--v6-brand);
  background: var(--v6-brand);
}

.ui-v6 button.primary:hover {
  border-color: var(--v6-brand-dark);
  background: var(--v6-brand-dark);
}

.ui-v6 input:focus,
.ui-v6 select:focus,
.ui-v6 textarea:focus {
  border-color: #5c9c86;
  box-shadow: 0 0 0 3px rgba(24, 120, 90, .11);
}

@media (min-width: 1280px) {
  .ui-v6 .comms-workspace.context-open {
    grid-template-columns: 280px minmax(0, 1fr) 288px;
  }

  .ui-v6 .comms-workspace.context-open .comms-context {
    position: static;
    z-index: auto;
    grid-column: 3;
    width: auto;
    min-width: 0;
    box-shadow: none;
  }
}

@media (max-width: 1260px) {
  .ui-v6 .marketing-hero-scene {
    left: 55%;
  }

  .ui-v6 .hero-workspace-body {
    grid-template-columns: 44px minmax(350px, 1fr);
  }

  .ui-v6 .home-command-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .ui-v6 .search-workspace {
    grid-template-columns: 340px minmax(0, 1fr);
  }
}

@media (max-width: 1080px) {
  .ui-v6 .marketing-hero-scene {
    left: 58%;
  }

  .ui-v6 .marketing-hero-content {
    width: min(470px, 44vw);
  }

  .ui-v6 .marketing-hero h1 strong {
    font-size: 50px;
  }

  .ui-v6 .marketing-hero h1 span {
    font-size: 33px;
  }

  .ui-v6 .home-command-layout {
    grid-template-columns: 1fr;
  }

  .ui-v6 .home-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ui-v6 .home-metrics-head {
    grid-column: 1 / -1;
  }

  .ui-v6 .home-metrics .metric {
    min-height: 100px;
    border-bottom: 0;
  }

  .ui-v6 .search-workspace {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .ui-v6 .search-result-table {
    min-width: 720px;
  }
}

@media (max-width: 920px) {
  .ui-v6 #appShell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 64px auto minmax(0, 1fr);
  }

  .ui-v6 #appShell > header {
    min-height: 64px;
    padding: 0 16px;
  }

  .ui-v6 .app-nav {
    grid-row: 2;
    width: 100%;
    min-width: 0;
    padding: 7px 9px;
    overflow-x: auto;
    border-bottom: 1px solid #294138;
    background: #14231d;
  }

  .ui-v6 .app-nav .brand-lockup,
  .ui-v6 .app-nav .nav-label,
  .ui-v6 .app-nav .nav-account {
    display: none;
  }

  .ui-v6 .app-nav .nav-item,
  .ui-v6 .app-nav .nav-card-button,
  .ui-v6 .app-nav .nav-more-toggle {
    flex: 0 0 auto;
  }

  .ui-v6 .app-nav .nav-secondary {
    display: flex;
    flex: 0 0 auto;
    gap: 3px;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .ui-v6 .app-nav .nav-secondary.hidden {
    display: none;
  }

  .ui-v6 #appShell > main {
    grid-row: 3;
    padding: 17px 15px 28px;
  }

  .ui-v6 .marketing-nav > nav {
    display: none;
  }

  .ui-v6 .marketing-hero {
    height: calc(100dvh - 104px);
    min-height: 600px;
  }

  .ui-v6 .marketing-hero-image {
    object-position: 62% center;
  }

  .ui-v6 .marketing-hero-shade {
    background: rgba(5, 22, 17, .62);
  }

  .ui-v6 .marketing-hero-scene {
    display: none;
  }

  .ui-v6 .marketing-hero-content {
    width: min(620px, calc(100% - 44px));
    margin-left: 24px;
  }

  .ui-v6 .search-workspace {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }

  .ui-v6 .search-builder {
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: auto;
    min-height: 360px;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--v6-line);
  }

  .ui-v6 .search-builder-body {
    overflow-y: visible;
    scrollbar-gutter: auto;
  }

  .ui-v6 .comms-workspace {
    grid-template-columns: minmax(0, 1fr);
    height: calc(100dvh - 198px);
  }

  .ui-v6 .comms-workspace .comms-inbox {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .ui-v6 .team-payment-lock {
    flex-wrap: wrap;
  }

  .ui-v6 .team-payment-lock > button {
    width: calc(100% - 31px);
    margin-left: 31px;
  }

  .ui-v6 .marketing-nav {
    min-height: 62px;
    padding: 0 14px;
  }

  .ui-v6 .marketing-nav-actions button:first-child {
    display: none;
  }

  .ui-v6 .marketing-hero {
    height: calc(100dvh - 92px);
    min-height: 650px;
  }

  .ui-v6 .marketing-hero-image {
    object-position: 68% center;
  }

  .ui-v6 .marketing-hero-content {
    width: auto;
    margin: 0 18px;
    padding-bottom: 68px;
  }

  .ui-v6 .marketing-hero h1 strong {
    font-size: 40px;
  }

  .ui-v6 .marketing-hero h1 span {
    max-width: 340px;
    font-size: 29px;
  }

  .ui-v6 .marketing-hero-content > p {
    max-width: 345px;
    font-size: 12px;
  }

  .ui-v6 .marketing-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ui-v6 .marketing-hero-actions button {
    width: 100%;
  }

  .ui-v6 .marketing-trust-line {
    display: none;
  }

  .ui-v6 .marketing-route-rail {
    right: 18px;
    left: 18px;
  }

  .ui-v6 #appShell > main {
    padding: 13px 10px 26px;
  }

  .ui-v6 .page-title h2 {
    font-size: 19px;
  }

  .ui-v6 .home-actions {
    grid-template-columns: 1fr;
  }

  .ui-v6 .home-actions .quick-card,
  .ui-v6 .home-actions .quick-card:nth-of-type(2n) {
    border-right: 0 !important;
    border-bottom: 1px solid var(--v6-line) !important;
  }

  .ui-v6 .home-actions .quick-card:last-child {
    border-bottom: 0 !important;
  }

  .ui-v6 .home-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ui-v6 .home-metrics .metric {
    min-height: 98px;
    border-bottom: 1px solid var(--v6-line);
  }

  .ui-v6 .search-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 10px;
    margin-right: 12px;
    margin-left: 12px;
  }

  .ui-v6 .search-results {
    margin-right: 12px;
    margin-left: 12px;
  }

  .ui-v6 .lead-detail-drawer {
    inset: 0;
    width: 100%;
    max-height: 100dvh;
  }
}

.ui-v6 .billing-plan {
  min-height: 458px;
}

.ui-v6 .billing-plan-service {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid var(--v6-line);
  border-radius: 6px;
  color: var(--v6-ink);
  background: var(--v6-surface-soft);
  font-size: 10px;
  font-weight: 740;
  line-height: 1.45;
}

.ui-v6 .billing-plan-service svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--v6-brand);
}

.ui-v6 .billing-plan-inclusion {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  border-radius: 6px;
}

.ui-v6 .billing-plan-inclusion strong {
  color: var(--ink);
  font-size: 14px;
}

.ui-v6 .billing-plan-inclusion span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.ui-v6 .billing-plan-divider {
  margin-top: 13px;
}

.ui-v6 .system-email-action-grid {
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
}

.ui-v6 .system-email-domain-grid {
  margin-top: 12px;
}

.ui-v6 .system-email-action-grid > button {
  min-width: 148px;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .ui-v6 .system-email-action-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ui-v6 .system-email-action-grid > button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-height: 760px) and (min-width: 921px) {
  .ui-v6 #appShell {
    grid-template-rows: 60px minmax(0, 1fr);
  }

  .ui-v6 #appShell > header {
    min-height: 60px;
  }

  .ui-v6 #appShell > main {
    padding-top: 16px;
    padding-bottom: 24px;
  }

  .ui-v6 .home-actions .quick-card {
    min-height: 88px;
  }

  .ui-v6 .home-metrics .metric {
    min-height: 98px;
  }

  .ui-v6 .comms-workspace {
    height: calc(100dvh - 164px);
    min-height: 500px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ui-v6 .marketing-hero-image {
    animation: none;
  }
}
