/*
 * LITREVO R57 — conservative component repair layer.
 *
 * This file intentionally avoids universal control/card/button styling.
 * Compound controls and floating panels keep ownership of their own geometry.
 */

/* Typography applies only to text-bearing elements. Never target `*` or `i`:
   Font Awesome and other icon fonts require their own font-family. */
html body.public-body.ui-v10[data-ui-version],
html body.auth-body.ui-v10,
html body.app-body.ui-reference-light[data-ui-version][data-page-key],
html body.public-body.ui-v10[data-ui-version] :where(h1,h2,h3,h4,h5,h6,p,a,span,strong,b,small,label,button,input,select,textarea,table,thead,tbody,tfoot,tr,th,td,dl,dt,dd,option,time),
html body.auth-body.ui-v10 :where(h1,h2,h3,h4,h5,h6,p,a,span,strong,b,small,label,button,input,select,textarea,table,thead,tbody,tfoot,tr,th,td,dl,dt,dd,option,time),
html body.app-body.ui-reference-light[data-ui-version][data-page-key] :where(h1,h2,h3,h4,h5,h6,p,a,span,strong,b,small,label,button,input,select,textarea,table,thead,tbody,tfoot,tr,th,td,dl,dt,dd,option,time) {
  font-family: "Poppins", "Inter", Arial, sans-serif !important;
}

html body.app-body.ui-reference-light[data-ui-version][data-page-key] {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html body.app-body.ui-reference-light[data-ui-version][data-page-key] *,
html body.auth-body.ui-v10 * {
  box-sizing: border-box;
}

/* Compound search controls own the only visible rectangle. Their inner inputs
   must never receive a second border, radius, background or shadow. */
html body.app-body.ui-reference-light[data-ui-version][data-page-key] .page-content :is(
  .lcp-search,
  .tpl-search,
  .chub-search,
  .tagm-search,
  .command-search,
  .r15-directory-search,
  .r16-invoice-search,
  .ltb-language-search,
  .lcp-picker-tools label
) > input {
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  flex: 1 1 auto;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  color: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
  appearance: auto;
}

html body.app-body.ui-reference-light[data-ui-version][data-page-key] :is(
  .lcp-search,
  .tpl-search,
  .chub-search,
  .tagm-search,
  .r15-directory-search,
  .r16-invoice-search,
  .lcp-picker-tools label
) > :is(svg,.icon) {
  flex: 0 0 auto !important;
  display: block !important;
}

html body.app-body.ui-reference-light[data-ui-version][data-page-key] :is(
  .lcp-search,.tpl-search,.chub-search,.tagm-search,.r15-directory-search,.r16-invoice-search
):focus-within {
  border-color: #155eef !important;
  outline: 0 !important;
  box-shadow: 0 0 0 4px rgba(21,94,239,.1) !important;
}

/* Input-owned searches keep their own single outline. Restore their reserved
   icon inset after the shared glass form rule, which otherwise pushes text
   under the search glyph. */
html body.app-body.ui-reference-light.page-inbox[data-page-key="inbox"] .page-content .ci-search-field > input {
  width: 100% !important;
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 11px 0 35px !important;
  border: 1px solid #c7d1df !important;
  border-radius: 19px !important;
  background: #fff !important;
  box-shadow: none !important;
}

html body.app-body.ui-reference-light.page-inbox[data-page-key="inbox"] .page-content :is(
  .ci-modal-search,
  .ci-catalog-toolbar label,
  .ci-template-picker > aside > label
) > input {
  width: 100% !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 11px 0 36px !important;
  border: 1px solid #cbd8e8 !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: none !important;
}

html body.app-body.ui-reference-light.page-inbox[data-page-key="inbox"] .page-content .ci-tag-search > input {
  width: 100% !important;
  min-height: 42px !important;
  height: 42px !important;
  padding: 0 12px 0 38px !important;
  border: 1px solid #c6d2e2 !important;
  border-radius: 4px !important;
  background: #fff !important;
  box-shadow: none !important;
}

html body.app-body.ui-reference-light[data-ui-version][data-page-key] .page-content .search-field > input {
  padding-left: 38px !important;
}

/* Business Profile inputs use an absolutely positioned icon and therefore
   require a dedicated text inset. */
html body.app-body.ui-reference-light[data-ui-version][data-page-key] .cs-input-shell {
  position: relative !important;
  isolation: isolate;
  display: block !important;
  min-width: 0;
}

html body.app-body.ui-reference-light[data-ui-version][data-page-key] .cs-input-shell > span {
  position: absolute !important;
  z-index: 2 !important;
  top: 50% !important;
  left: 15px !important;
  width: 20px !important;
  height: 20px !important;
  display: grid !important;
  place-items: center;
  margin: 0 !important;
  padding: 0 !important;
  color: #6681a1 !important;
  background: transparent !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
}

html body.app-body.ui-reference-light[data-ui-version][data-page-key] .cs-input-shell > span > :is(svg,.icon) {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
}

html body.app-body.ui-reference-light[data-ui-version][data-page-key] .page-content .cs-input-shell > input {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 50px !important;
  height: 50px !important;
  padding: 0 14px 0 48px !important;
}

/* Keep SVG and brand assets visible and geometrically stable. */
html body.app-body.ui-reference-light[data-ui-version][data-page-key] :where(button,a,label) > :is(svg,.icon,img.brand-icon) {
  flex: 0 0 auto;
}

html body.app-body.ui-reference-light[data-ui-version][data-page-key] :where(svg.icon) {
  display: inline-block;
  overflow: visible;
}

/* Campaign toolbar: fixed popovers must use the viewport as their containing
   block. Backdrop filters on an ancestor would otherwise shift them. */
html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] :is(
  .lcp-shell,.lcp-toolbar,.lcp-filters,.lcp-filter
) {
  transform: none !important;
  filter: none !important;
  contain: none !important;
}

html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] .lcp-toolbar {
  position: relative !important;
  z-index: 500 !important;
  overflow: visible !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] .lcp-filters {
  overflow: visible !important;
}

html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] .lcp-filter.is-open {
  z-index: 600 !important;
}

html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] .lcp-filter-panel {
  position: absolute !important;
  z-index: 12000 !important;
  right: auto !important;
  bottom: auto !important;
  max-width: calc(100vw - 24px) !important;
  max-height: calc(100dvh - 24px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 1px solid #cad6e4 !important;
  border-radius: 12px !important;
  background: #fff !important;
  opacity: 1 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 18px 46px rgba(28,51,84,.18) !important;
  overscroll-behavior: contain;
}

html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] .lcp-filter-panel[hidden] {
  display: none !important;
}

html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] .lcp-filter-trigger > :is(svg,.icon,img.brand-icon) {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  flex: 0 0 18px !important;
  object-fit: contain;
}

html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] .lcp-channel .lcp-filter-trigger > img.brand-icon-whatsapp {
  width: 24px !important;
  height: 24px !important;
  flex-basis: 24px !important;
}

html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] .lcp-search {
  overflow: hidden;
}

html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] .lcp-search > input {
  width: 0 !important;
}

html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] :is(.lcp-tabs,.lcp-table-card) {
  position: relative;
  z-index: 1;
}

/* Template filters use the same viewport coordinate system. */
html body.app-body.ui-reference-light.page-templates[data-page-key="templates"] :is(
  .tpl-toolbar,.tpl-toolbar-left,.tpl-filter
) {
  transform: none !important;
  filter: none !important;
  contain: none !important;
}

html body.app-body.ui-reference-light.page-templates[data-page-key="templates"] .tpl-toolbar {
  position: relative;
  z-index: 500;
  overflow: visible !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body.app-body.ui-reference-light.page-templates[data-page-key="templates"] .tpl-filter-panel {
  position: absolute !important;
  z-index: 12000 !important;
  right: auto !important;
  bottom: auto !important;
  max-width: calc(100vw - 24px) !important;
  max-height: calc(100dvh - 24px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border-radius: 12px !important;
  background: #fff !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 18px 46px rgba(28,51,84,.18) !important;
  overscroll-behavior: contain;
}

/* Shared overlays remain inside the visible viewport without restyling their
   internal buttons, fields or cards. */
html body.app-body.ui-reference-light[data-ui-version][data-page-key] :is(
  dialog,.dialog-card,.ci-modal-dialog,.lcb-library-dialog,.lcb-template-dialog,.lcb-test-dialog,
  .lcp-launch-dialog,.lcp-picker-dialog,.lcp-rcs-dialog,.tpl-action-dialog
) {
  max-width: calc(100vw - 24px) !important;
  max-height: calc(100dvh - 24px) !important;
  overscroll-behavior: contain;
}

html body.app-body.ui-reference-light[data-ui-version][data-page-key] :is(
  .dialog-body,.ci-modal-body,.tpl-action-dialog-body,.lcp-rcs-dialog-body,.lcb-library-body
) {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width:720px) {
  html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] .lcp-filter-panel,
  html body.app-body.ui-reference-light.page-templates[data-page-key="templates"] .tpl-filter-panel {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }

  html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] .lcp-filters {
    flex-wrap: wrap !important;
  }

  html body.app-body.ui-reference-light[data-ui-version][data-page-key] .page-content .cs-input-shell > input {
    padding-left: 48px !important;
  }
}

/* Campaign commercial palette: navy controls and framing, with WhatsApp
   retaining its official green brand treatment. */
html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] {
  --campaign-navy: #062b5f;
  --campaign-navy-hover: #0a417f;
  --campaign-gold: #f2bd22;
}

html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] :is(
  .lcp-toolbar,.lcp-tabs,.lcp-table-card
) {
  border-color: #cbd8e7 !important;
  border-top: 3px solid var(--campaign-navy) !important;
  box-shadow: 0 14px 34px rgba(6,43,95,.09) !important;
}

html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] .lcp-filter-panel {
  border: 1px solid #c5d3e3 !important;
  border-top: 3px solid var(--campaign-navy) !important;
  box-shadow: 0 18px 44px rgba(6,43,95,.2) !important;
}

html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] .lcp-filter-trigger {
  border-color: #c7d5e5 !important;
  color: var(--campaign-navy) !important;
  background: #fff !important;
}

html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] .lcp-filter:not(.lcp-channel).is-open .lcp-filter-trigger,
html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] .lcp-filter:not(.lcp-channel) .lcp-filter-trigger:hover {
  border-color: var(--campaign-navy) !important;
  color: #fff !important;
  background: var(--campaign-navy) !important;
}

html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] .lcp-channel .lcp-filter-trigger {
  border-color: rgba(37,211,102,.42) !important;
  color: #113a2a !important;
  background: #f3fff7 !important;
}

html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] .lcp-channel.is-open .lcp-filter-trigger,
html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] .lcp-channel .lcp-filter-trigger:hover {
  border-color: #25d366 !important;
  background: #eafff1 !important;
}

html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] .lcp-filter-option input {
  accent-color: var(--campaign-navy) !important;
}

html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] .lcp-filter-done {
  border-color: var(--campaign-navy) !important;
  color: #fff !important;
  background: var(--campaign-navy) !important;
}

html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] .lcp-filter-done:hover {
  background: var(--campaign-navy-hover) !important;
}

html body.app-body.ui-reference-light.page-campaigns[data-page-key="campaigns"] .lcp-tab.active {
  border-bottom-color: var(--campaign-navy) !important;
  color: var(--campaign-navy) !important;
  background: linear-gradient(100deg,#fff6ce,#fff) !important;
  box-shadow: inset 0 -3px var(--campaign-navy) !important;
}

/* Campaign actions stay visually stable in every interactive state. The RCS
   upgrade explanation is intentionally not rendered as a floating surface. */
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .page-titlebar-actions .btn.lcp-create-button.lcp-create-rcs,
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .page-titlebar-actions .btn.lcp-create-button.lcp-create-rcs:hover,
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .page-titlebar-actions .btn.lcp-create-button.lcp-create-rcs:focus,
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .page-titlebar-actions .btn.lcp-create-button.lcp-create-rcs:focus-visible,
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .page-titlebar-actions .btn.lcp-create-button.lcp-create-rcs:active {
  border-color: #062b5f !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #062b5f !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .page-titlebar-actions .btn.lcp-create-button.lcp-create-whatsapp,
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .page-titlebar-actions .btn.lcp-create-button.lcp-create-whatsapp:hover,
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .page-titlebar-actions .btn.lcp-create-button.lcp-create-whatsapp:focus,
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .page-titlebar-actions .btn.lcp-create-button.lcp-create-whatsapp:focus-visible,
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .page-titlebar-actions .btn.lcp-create-button.lcp-create-whatsapp:active {
  border-color: #25d366 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #25d366 !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .page-titlebar-actions .lcp-whatsapp-brand-icon,
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .page-titlebar-actions .lcp-whatsapp-brand-icon img {
  opacity: 1 !important;
  filter: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .page-titlebar-actions .lcp-plan-tooltip,
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .page-titlebar-actions .lcp-upgrade-wrap:hover .lcp-plan-tooltip,
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .page-titlebar-actions .lcp-upgrade-wrap:focus-within .lcp-plan-tooltip,
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .page-titlebar-actions .lcp-upgrade-wrap.show-tooltip .lcp-plan-tooltip {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  box-shadow: none !important;
}

/* R61 — wide, non-hover template library. Category sections use the page
   width and every card action remains directly available without hover. */
html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library {
  width: 100% !important;
  max-width: none !important;
  gap: 20px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library .tpl-library-scroll-actions {
  display: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library .tpl-library-tools {
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 4px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library .tpl-library-tools p {
  color: #526987 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library .tpl-library-grid {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 0 22px !important;
  overflow: visible !important;
  scrollbar-width: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library .tpl-library-grid::-webkit-scrollbar {
  display: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library .tpl-library-col {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: hidden !important;
  border: 1px solid #cbd8e7 !important;
  border-top: 3px solid #062b5f !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(6,43,95,.08) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library .tpl-library-head {
  min-height: 62px !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 13px 18px !important;
  border-bottom: 1px solid #dbe3ec !important;
  background: #f4f7fa !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library .tpl-library-head h3 {
  min-width: 0 !important;
  margin: 0 !important;
  color: #062b5f !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  overflow-wrap: anywhere !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library .tpl-library-head span {
  position: static !important;
  margin: 0 !important;
  color: #60738d !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library .tpl-library-body {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  align-items: stretch !important;
  gap: 14px !important;
  padding: 16px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library .tpl-card,
html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library .tpl-card:hover {
  width: 100% !important;
  height: 100% !important;
  display: grid !important;
  grid-template-rows: minmax(230px,auto) auto auto !important;
  border: 1px solid #d2dce8 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library .tpl-card-preview {
  min-height: 230px !important;
  max-height: 230px !important;
  padding: 18px !important;
  overflow: hidden !important;
  background: linear-gradient(145deg,#fffdf4,#f4f8fb) !important;
  transition: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library .tpl-card-preview::after {
  display: block !important;
  height: 54px !important;
  background: linear-gradient(transparent,#f4f8fb) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library .tpl-card.is-expanded .tpl-card-preview {
  min-height: 230px !important;
  max-height: none !important;
  overflow: visible !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library .tpl-card.is-expanded .tpl-card-preview::after {
  display: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library .tpl-card-actions,
html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library .tpl-card:hover .tpl-card-actions {
  position: static !important;
  inset: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: stretch !important;
  gap: 8px !important;
  padding: 11px 12px !important;
  border-top: 1px solid #dbe3ec !important;
  background: #fff !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transition: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library :is(.tpl-card-use,.tpl-card-expand) {
  min-width: 0 !important;
  min-height: 38px !important;
  flex: 1 1 0 !important;
  border: 1px solid #062b5f !important;
  border-radius: 7px !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #062b5f !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library .tpl-card-expand {
  color: #062b5f !important;
  -webkit-text-fill-color: #062b5f !important;
  background: #fff !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .page-titlebar-actions .btn.btn-primary,
html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .page-titlebar-actions .btn.btn-primary:hover,
html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .page-titlebar-actions .btn.btn-primary:focus,
html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .page-titlebar-actions .btn.btn-primary:focus-visible,
html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .page-titlebar-actions .btn.btn-primary:active {
  border-color: #062b5f !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #062b5f !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Template creation uses one stable navy system and no hover/motion states. */
html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder {
  --builder-navy: #062b5f;
  --builder-gold: #f2bd22;
  max-width: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder,
html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder *,
html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder *::before,
html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder *::after {
  animation: none !important;
  scroll-behavior: auto !important;
  transition: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder .ltb-step {
  border-color: #c7d4e3 !important;
  border-top: 3px solid var(--builder-navy) !important;
  box-shadow: 0 8px 22px rgba(6,43,95,.06) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder .ltb-step-toggle {
  color: #fff !important;
  background: var(--builder-navy) !important;
  transform: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder .ltb-step-number {
  color: var(--builder-navy) !important;
  background: #fff !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder :is(.ltb-step-summary,.ltb-step-heading) {
  color: #fff !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder .ltb-step-summary strong {
  color: #ffe07a !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder :is(.ltb-step-check,.ltb-step-save button,.ltb-preview-head>strong) {
  border-color: var(--builder-navy) !important;
  color: #fff !important;
  background: var(--builder-navy) !important;
  box-shadow: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder :is(.ltb-category input:checked+span,.ltb-type input:checked+.ltb-type-card,.ltb-language-chip,.ltb-note) {
  border-color: #9bb2ca !important;
  color: var(--builder-navy) !important;
  background: #eef3f8 !important;
  box-shadow: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder :is(
  .ltb-radio-row input,.ltb-check-title input,.ltb-language-option input
) {
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  flex: 0 0 18px !important;
  accent-color: var(--builder-navy) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder .ltb-type input:checked+.ltb-type-card .ltb-type-radio {
  border-color: var(--builder-navy) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder :is(.ltb-input,.ltb-select,.ltb-textarea,.ltb-rich-textarea):focus {
  border-color: var(--builder-navy) !important;
  box-shadow: 0 0 0 3px rgba(6,43,95,.08) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder .ltb-card {
  border-color: #ccd7e3 !important;
  border-top: 2px solid var(--builder-navy) !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder .ltb-buttons-box {
  padding: 14px !important;
  border: 1px solid #d4dee9 !important;
  border-radius: 9px !important;
  background: #f5f7fa !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder .ltb-button-limit {
  border: 1px solid #c9d5e2 !important;
  border-top: 3px solid var(--builder-navy) !important;
  border-radius: 7px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder .ltb-button-items {
  gap: 9px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder .ltb-button-item {
  padding: 13px 14px !important;
  border: 1px solid #d6dfe9 !important;
  border-radius: 7px !important;
  background: #fff !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder .ltb-check-title {
  color: var(--builder-navy) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder :is(
  .ltb-format-tools button:hover,.ltb-language-chip [data-remove-language]:hover
) {
  border-color: transparent !important;
  color: #55729c !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder .ltb-remove-row:hover {
  border-color: #f0445e !important;
  color: #e51e3b !important;
  background: #fff !important;
}

/* Campaign creation uses the same navy and remains visually static in every
   hover/focus state. Expanding steps is instant and keeps the workflow intact. */
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder].lcb-page {
  --brand: #062b5f !important;
  --brand-dark: #062b5f !important;
}

html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder],
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder] *,
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder] *::before,
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder] *::after {
  animation: none !important;
  scroll-behavior: auto !important;
  transition: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder] .lcb-topbar {
  border-bottom: 3px solid #062b5f !important;
}

html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder] .lcb-step {
  border-color: #cbd6e3 !important;
  border-top: 2px solid #062b5f !important;
  box-shadow: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder] :is(
  .lcb-live,.lcb-step-actions button,.lcb-empty-state button,.lcb-preview-action:not(:disabled)
),
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder] :is(
  .lcb-live,.lcb-step-actions button,.lcb-empty-state button,.lcb-preview-action:not(:disabled)
):hover {
  border-color: #062b5f !important;
  color: #fff !important;
  background: #062b5f !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder] .lcb-draft:not(:disabled),
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder] .lcb-draft:not(:disabled):hover {
  border-color: #062b5f !important;
  color: #062b5f !important;
  background: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder] .lcb-back:hover {
  border-color: transparent !important;
  color: #425575 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder] .lcb-template-grid>button:hover {
  border-color: #cad6e6 !important;
  background: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder] .lcb-library-list [data-template-card]:not(.is-pending):hover {
  background: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}

@media (max-width: 1280px) {
  html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library .tpl-library-body {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
}

@media (max-width: 700px) {
  html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library .tpl-library-body {
    grid-template-columns: minmax(0,1fr) !important;
    padding: 12px !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .tpl-page.is-library .tpl-library-head {
    min-height: 58px !important;
    padding: 12px 14px !important;
  }
}

/* R63 — Campaign test-message action is clear, stable and template-save gated. */
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder] .lcb-preview>header>.lcb-preview-action {
  width: auto !important;
  min-width: 158px !important;
  height: 36px !important;
  min-height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 16px !important;
  border: 1px solid #062b5f !important;
  border-radius: 6px !important;
  color: #fff !important;
  background: #062b5f !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder] .lcb-preview>header>.lcb-preview-action i {
  flex: 0 0 auto !important;
  font-size: 15px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder] .lcb-preview>header>.lcb-preview-action:disabled {
  display: inline-flex !important;
  border-color: #c8d2df !important;
  color: #6d7d92 !important;
  background: #e9eef4 !important;
  cursor: not-allowed !important;
}

html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder] .lcb-preview>header>.lcb-preview-action:not(:disabled):hover {
  border-color: #062b5f !important;
  color: #fff !important;
  background: #062b5f !important;
  box-shadow: none !important;
  transform: none !important;
}

@media (max-width: 680px) {
  html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder] .lcb-preview>header>.lcb-preview-action:disabled {
    display: inline-flex !important;
  }
}

/* R64 — Preview stays active; test messaging unlocks after steps one and two are saved. */
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder] .lcb-form-fields {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder] .lcb-preview>header>.lcb-preview-action[data-test-state="preview"] {
  border-color: #062b5f !important;
  color: #fff !important;
  background: #062b5f !important;
  cursor: default !important;
}

html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder] .lcb-preview>header>.lcb-preview-action[data-test-state="ready"],
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder] .lcb-preview>header>.lcb-preview-action[data-test-state="ready"]:hover {
  border-color: #008069 !important;
  color: #fff !important;
  background: #008069 !important;
  box-shadow: none !important;
  transform: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder] .lcb-preview>header>div>button {
  pointer-events: auto !important;
  opacity: 1 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] [data-campaign-builder] .lcb-preview>header>div>button.is-active {
  border-color: #062b5f !important;
  color: #fff !important;
  background: #062b5f !important;
  box-shadow: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .lcb-phone:not(.is-ios) .lcb-wa-head strong {
  color: #fff !important;
}

html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .lcb-phone:not(.is-ios) .lcb-wa-head small {
  color: rgba(255,255,255,.8) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .lcb-phone.is-ios .lcb-wa-head strong {
  color: #111b21 !important;
}

/* R62 — Template readiness is earned by validation and an explicit save. */
html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] .builder-context-submit:disabled {
  border-color: #b8c4d4 !important;
  color: #718098 !important;
  background: #e2e8f0 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder .ltb-step-check[hidden] {
  display: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder .ltb-step-save-final {
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding-top: 16px !important;
  border-top: 1px solid #d8e2ee !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder .ltb-ready-note {
  color: #526681 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder :is(.ltb-input,.ltb-select,.ltb-rich-textarea,.ltb-language-trigger,.ltb-upload-panel).is-invalid {
  border-color: #d92d4f !important;
  box-shadow: 0 0 0 3px rgba(217,45,79,.1) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #ltb-phone:not(.is-ios) .ltb-wa-copy strong {
  color: #fff !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #ltb-phone:not(.is-ios) .ltb-wa-copy small {
  color: rgba(255,255,255,.78) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #ltb-phone.is-ios .ltb-wa-copy strong {
  color: #111b21 !important;
}

@media (max-width: 700px) {
  html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder .ltb-step-save-final {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-templates[data-ui-version][data-page-key="templates"] #litrevo-template-builder .ltb-step-save-final button {
    width: 100% !important;
  }
}

/* R67 — Sales CRM: compact commercial summary and purposeful pipeline board. */
html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"],
html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] * {
  font-family: "Poppins", "Inter", Arial, sans-serif !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] :is(
  .page-titlebar,.page-titlebar *,.crm-head-grid,.crm-head-grid *,.crm-pipeline-panel,.crm-pipeline-panel *
) {
  animation: none !important;
  transition: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .page-content {
  gap: 0 !important;
  padding-top: 24px !important;
  padding-bottom: 38px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .page-titlebar {
  min-height: 116px !important;
  margin: 0 0 18px !important;
  padding: 20px 26px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.96) !important;
  border-top: 3px solid #062b5f !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 91% 0,rgba(151,220,255,.22),transparent 30%),
    linear-gradient(112deg,rgba(255,255,255,.97),rgba(255,252,240,.9) 52%,rgba(240,249,255,.92)) !important;
  box-shadow: 0 16px 34px rgba(6,43,95,.08) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .page-titlebar::before {
  width: 160px !important;
  height: 160px !important;
  top: -85px !important;
  right: 28px !important;
  border: 1px solid rgba(6,43,95,.08) !important;
  border-radius: 50% !important;
  background: transparent !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .page-titlebar::after {
  top: 20px !important;
  bottom: 20px !important;
  left: 0 !important;
  width: 5px !important;
  border-radius: 0 999px 999px 0 !important;
  background: linear-gradient(180deg,#062b5f 0 72%,#f8c900 72%) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .page-titlebar-copy {
  gap: 16px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .page-titlebar-icon {
  width: 58px !important;
  height: 58px !important;
  flex: 0 0 58px !important;
  border: 0 !important;
  border-bottom: 3px solid #f8c900 !important;
  border-radius: 17px !important;
  color: #fff !important;
  background: #07366d !important;
  box-shadow: 0 9px 18px rgba(6,43,95,.16) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .page-titlebar-icon>.icon {
  width: 27px !important;
  height: 27px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .page-titlebar-copy h1 {
  color: #061f48 !important;
  font-size: clamp(30px,2vw,38px) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -.045em !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .page-titlebar-copy p {
  margin-top: 7px !important;
  color: #607493 !important;
  font-size: 13px !important;
  font-weight: 550 !important;
  line-height: 1.45 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .page-titlebar-actions .btn,
html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .page-titlebar-actions .btn:is(:hover,:focus,:active) {
  min-width: 142px !important;
  min-height: 48px !important;
  justify-content: center !important;
  border: 1px solid #062b5f !important;
  border-radius: 12px !important;
  color: #fff !important;
  background: #062b5f !important;
  box-shadow: 0 8px 18px rgba(6,43,95,.14) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  filter: none !important;
  transform: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-head-grid {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 14px !important;
  margin: 0 0 18px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-head-grid .stat-card {
  min-height: 112px !important;
  display: grid !important;
  grid-template-columns: 52px minmax(0,1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  column-gap: 15px !important;
  row-gap: 2px !important;
  margin: 0 !important;
  padding: 17px 19px !important;
  overflow: hidden !important;
  border: 1px solid #d9e3ef !important;
  border-top: 3px solid #062b5f !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 12px 26px rgba(6,43,95,.065) !important;
  transform: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-head-grid .stat-card::after {
  display: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-head-grid .stat-top {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  display: block !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-head-grid .stat-icon {
  width: 52px !important;
  height: 52px !important;
  border: 1px solid #cfe0f4 !important;
  border-radius: 15px !important;
  color: #0a61c8 !important;
  background: #edf5ff !important;
  box-shadow: none !important;
  transform: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-head-grid .stat-card:nth-child(2) .stat-icon {
  color: #008069 !important;
  background: #e9f8f4 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-head-grid .stat-card:nth-child(3) .stat-icon {
  color: #73540a !important;
  background: #fff6d8 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-head-grid .stat-icon>.icon {
  width: 23px !important;
  height: 23px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-head-grid .stat-value {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: end !important;
  margin: 0 !important;
  color: #061f48 !important;
  font-size: clamp(24px,1.7vw,31px) !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: -.035em !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-head-grid .stat-card>p {
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: start !important;
  margin: 5px 0 0 !important;
  color: #607493 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-pipeline-panel {
  overflow: hidden !important;
  border: 1px solid #d7e2ef !important;
  border-top: 3px solid #062b5f !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.86) !important;
  box-shadow: 0 18px 38px rgba(6,43,95,.08) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-pipeline-toolbar {
  min-height: 80px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid #dce5f0 !important;
  background: linear-gradient(105deg,#fffdf4,#fff 58%,#f0f8ff) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-section-kicker {
  display: block !important;
  margin-bottom: 3px !important;
  color: #0a61c8 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-pipeline-toolbar h2 {
  color: #061f48 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -.025em !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-pipeline-toolbar p {
  margin-top: 3px !important;
  color: #71829a !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-pipeline-total {
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 0 13px !important;
  border: 1px solid #cbd9e9 !important;
  border-radius: 10px !important;
  color: #5d6f89 !important;
  background: #fff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-pipeline-total>.icon {
  width: 17px !important;
  height: 17px !important;
  color: #0a61c8 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-pipeline-total strong {
  color: #062b5f !important;
  font-weight: 800 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-board {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(5,minmax(180px,1fr)) !important;
  gap: 12px !important;
  padding: 16px !important;
  overflow-x: auto !important;
  background: linear-gradient(180deg,#f7f9fc,#f2f6fa) !important;
  scrollbar-color: #b8c9dd transparent !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-column {
  min-width: 0 !important;
  min-height: 360px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #d8e2ee !important;
  border-top: 4px solid var(--crm-stage,#0a61c8) !important;
  border-radius: 16px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-column[data-crm-stage="new"] { --crm-stage:#0a61c8; --crm-tint:#edf5ff; }
html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-column[data-crm-stage="qualified"] { --crm-stage:#4c63d2; --crm-tint:#f0f2ff; }
html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-column[data-crm-stage="proposal"] { --crm-stage:#c58900; --crm-tint:#fff7dd; }
html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-column[data-crm-stage="won"] { --crm-stage:#008069; --crm-tint:#e9f8f4; }
html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-column[data-crm-stage="lost"] { --crm-stage:#7a8799; --crm-tint:#eff2f5; }

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-column-head {
  min-height: 58px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  border-bottom: 1px solid #dfe7f0 !important;
  background: #fff !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-column-title {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-width: 0 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-column-title>span {
  width: 9px !important;
  height: 9px !important;
  flex: 0 0 9px !important;
  border-radius: 50% !important;
  background: var(--crm-stage) !important;
  box-shadow: 0 0 0 4px var(--crm-tint) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-column-title strong {
  overflow: hidden !important;
  color: #112c52 !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-column-count {
  min-width: 27px !important;
  height: 27px !important;
  display: inline-grid !important;
  place-items: center !important;
  padding: 0 7px !important;
  border: 1px solid color-mix(in srgb,var(--crm-stage) 18%,#dce5ef) !important;
  border-radius: 8px !important;
  color: var(--crm-stage) !important;
  background: var(--crm-tint) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-column-body {
  min-height: 298px !important;
  display: grid !important;
  align-content: start !important;
  gap: 10px !important;
  padding: 11px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-column-empty {
  min-height: 274px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  padding: 24px 14px !important;
  border: 1px dashed #ced9e6 !important;
  border-radius: 13px !important;
  color: #607493 !important;
  background: rgba(255,255,255,.76) !important;
  text-align: center !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-empty-icon {
  width: 42px !important;
  height: 42px !important;
  display: grid !important;
  place-items: center !important;
  margin-bottom: 12px !important;
  border: 1px solid color-mix(in srgb,var(--crm-stage) 22%,#d8e3ef) !important;
  border-radius: 13px !important;
  color: var(--crm-stage) !important;
  background: var(--crm-tint) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-empty-icon>.icon {
  width: 20px !important;
  height: 20px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-column-empty>strong {
  color: #173150 !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  line-height: 1.4 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-column-empty>p {
  max-width: 180px !important;
  margin: 7px 0 0 !important;
  color: #71829a !important;
  font-size: 9px !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-empty-action,
html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-empty-action:is(:hover,:focus,:active) {
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin-top: 14px !important;
  padding: 0 11px !important;
  border: 1px solid #062b5f !important;
  border-radius: 9px !important;
  color: #fff !important;
  background: #062b5f !important;
  box-shadow: none !important;
  font-size: 9px !important;
  font-weight: 750 !important;
  cursor: pointer !important;
  transform: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-empty-action>.icon {
  width: 13px !important;
  height: 13px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-card {
  margin: 0 !important;
  padding: 13px !important;
  border: 1px solid #d9e3ee !important;
  border-radius: 13px !important;
  background: #fff !important;
  box-shadow: 0 6px 14px rgba(6,43,95,.055) !important;
  cursor: default !important;
  transform: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-card:is(:hover,:focus-within) {
  border-color: #d9e3ee !important;
  background: #fff !important;
  box-shadow: 0 6px 14px rgba(6,43,95,.055) !important;
  transform: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-card-top {
  align-items: center !important;
  gap: 8px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-card-top>strong {
  color: #062b5f !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-card-source {
  padding: 4px 7px !important;
  border-radius: 7px !important;
  color: #0a61c8 !important;
  background: #edf5ff !important;
  font-size: 8px !important;
  font-weight: 750 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-card h3 {
  margin-top: 12px !important;
  color: #112c52 !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.4 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-card>p {
  margin: 4px 0 11px !important;
  color: #6d7f98 !important;
  font-size: 9px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-card-meta {
  display: grid !important;
  gap: 7px !important;
  padding: 10px 0 !important;
  border-top: 1px solid #e5ebf2 !important;
  color: #607493 !important;
  font-size: 8px !important;
  line-height: 1.3 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-card-meta>span {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-card-meta .icon {
  width: 13px !important;
  height: 13px !important;
  color: #0a61c8 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-stage-form {
  display: block !important;
  margin: 0 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-stage-form label {
  display: grid !important;
  grid-template-columns: auto minmax(0,1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  color: #607493 !important;
  font-size: 8px !important;
  font-weight: 650 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-stage-form select {
  width: 100% !important;
  min-width: 0 !important;
  height: 32px !important;
  padding: 0 27px 0 9px !important;
  border: 1px solid #ccd8e7 !important;
  border-radius: 8px !important;
  color: #173150 !important;
  background-color: #fff !important;
  box-shadow: none !important;
  font-size: 9px !important;
  font-weight: 650 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] #new-lead {
  width: min(680px,calc(100vw - 28px)) !important;
  max-height: min(760px,calc(100dvh - 28px)) !important;
  padding: 0 !important;
  overflow: auto !important;
  border: 1px solid #cfdbe8 !important;
  border-top: 4px solid #062b5f !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 24px 70px rgba(6,31,72,.22) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] #new-lead .dialog-head {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  padding: 17px 20px !important;
  color: #fff !important;
  background: #062b5f !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] #new-lead .dialog-head h2 {
  color: #fff !important;
  font-size: 18px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] #new-lead .dialog-close,
html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] #new-lead .dialog-close:hover {
  color: #fff !important;
  background: rgba(255,255,255,.1) !important;
  box-shadow: none !important;
  transform: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] #new-lead .dialog-body {
  padding: 20px !important;
  background: #fff !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] #new-lead .dialog-foot {
  position: sticky !important;
  bottom: 0 !important;
  padding: 14px 20px !important;
  background: #f8fafc !important;
}

html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] #new-lead .dialog-foot .btn,
html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] #new-lead .dialog-foot .btn:hover {
  min-height: 42px !important;
  border-color: #062b5f !important;
  color: #fff !important;
  background: #062b5f !important;
  box-shadow: none !important;
  transform: none !important;
}

@media (max-width: 1180px) {
  html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-board {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-column {
    min-height: 310px !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-column-body {
    min-height: 248px !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-column-empty {
    min-height: 224px !important;
  }
}

@media (min-width: 761px) and (max-width: 840px) {
  html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-board {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
}

@media (max-width: 760px) {
  html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .page-content {
    padding-top: 12px !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .page-titlebar {
    min-height: 0 !important;
    align-items: stretch !important;
    gap: 16px !important;
    padding: 17px 15px !important;
    border-radius: 18px !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .page-titlebar-copy {
    gap: 12px !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .page-titlebar-icon {
    width: 46px !important;
    height: 46px !important;
    flex-basis: 46px !important;
    border-radius: 14px !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .page-titlebar-copy h1 {
    font-size: 23px !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .page-titlebar-copy p {
    font-size: 11px !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .page-titlebar-actions,
  html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .page-titlebar-actions .btn {
    width: 100% !important;
    max-width: none !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-head-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-head-grid .stat-card {
    min-height: 94px !important;
    padding: 13px 15px !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-pipeline-toolbar {
    align-items: flex-start !important;
    flex-direction: column !important;
    padding: 15px !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-pipeline-total {
    width: 100% !important;
    justify-content: center !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-board {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 10px !important;
    overflow: visible !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-column {
    min-height: 250px !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-column-body {
    min-height: 188px !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] .crm-column-empty {
    min-height: 164px !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-crm[data-ui-version][data-page-key="crm"] #new-lead .form-row {
    grid-template-columns: 1fr !important;
  }
}

/* R68 — Contact Hub: rectangular controls and correctly layered toolbar menus. */
html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .page-content {
  padding: 24px 28px 40px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] :is(
  .page-titlebar,.page-titlebar *,.chub-page,.chub-page *
) {
  animation: none !important;
  transition: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .page-titlebar {
  min-height: 112px !important;
  margin: 0 0 18px !important;
  padding: 20px 24px !important;
  overflow: hidden !important;
  border: 1px solid #d5e0ec !important;
  border-top: 3px solid #062b5f !important;
  border-radius: 8px !important;
  background: linear-gradient(110deg,#fff,#fffcf1 54%,#eef8ff) !important;
  box-shadow: 0 12px 26px rgba(6,43,95,.07) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .page-titlebar::after {
  top: 18px !important;
  bottom: 18px !important;
  left: 0 !important;
  width: 4px !important;
  border-radius: 0 3px 3px 0 !important;
  background: linear-gradient(180deg,#062b5f 0 74%,#f8c900 74%) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .page-titlebar::before {
  display: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .page-titlebar-copy {
  gap: 15px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .page-titlebar-icon {
  width: 56px !important;
  height: 56px !important;
  flex: 0 0 56px !important;
  border: 0 !important;
  border-bottom: 3px solid #f8c900 !important;
  border-radius: 9px !important;
  color: #fff !important;
  background: #07366d !important;
  box-shadow: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .page-titlebar-icon>.icon {
  width: 25px !important;
  height: 25px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .page-titlebar-copy h1 {
  color: #061f48 !important;
  font-size: clamp(29px,2vw,37px) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -.04em !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .page-titlebar-copy p {
  margin-top: 7px !important;
  color: #607493 !important;
  font-size: 12px !important;
  font-weight: 550 !important;
  line-height: 1.45 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-create-button,
html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-create-button:is(:hover,:focus,:active) {
  min-height: 46px !important;
  padding: 0 18px !important;
  border: 1px solid #062b5f !important;
  border-radius: 6px !important;
  color: #fff !important;
  background: #062b5f !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  filter: none !important;
  transform: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-page {
  position: relative !important;
  display: grid !important;
  gap: 14px !important;
  padding: 0 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-toolbar {
  position: relative !important;
  z-index: 300 !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px !important;
  overflow: visible !important;
  border: 1px solid #d2deeb !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 10px 22px rgba(6,43,95,.055) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-toolbar-form {
  position: relative !important;
  z-index: 2 !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(260px,1fr) 180px 165px auto auto !important;
  align-items: center !important;
  gap: 10px !important;
  overflow: visible !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] :is(
  .chub-search,.chub-chip-button,.chub-filter-menu>summary,.chub-more>summary
) {
  width: 100% !important;
  min-width: 0 !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  border: 1px solid #c9d6e5 !important;
  border-radius: 6px !important;
  color: #263d61 !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  transform: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-search {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 13px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-search:focus-within {
  border-color: #0a61c8 !important;
  box-shadow: 0 0 0 3px rgba(10,97,200,.09) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-search>.icon {
  width: 17px !important;
  height: 17px !important;
  color: #31547f !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-search>input {
  font-size: 12px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-chip-button,
html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] :is(.chub-filter-menu,.chub-more)>summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 0 12px !important;
  list-style: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-chip-button {
  justify-content: center !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] :is(.chub-filter-menu,.chub-more)>summary::-webkit-details-marker {
  display: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] :is(.chub-filter-menu,.chub-more)>summary>.icon,
html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-chip-button>.icon {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
  color: #31547f !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] :is(.chub-filter-menu,.chub-more) {
  position: relative !important;
  z-index: 20 !important;
  min-width: 0 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] :is(.chub-filter-menu,.chub-more)[open] {
  z-index: 500 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] :is(.chub-filter-menu,.chub-more)[open]>summary,
html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] #contact-columns-trigger[aria-expanded="true"] {
  border-color: #0a61c8 !important;
  color: #062b5f !important;
  background: #f4f8fd !important;
  box-shadow: 0 0 0 3px rgba(10,97,200,.08) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-filter-options,
html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-more-menu {
  position: absolute !important;
  z-index: 20000 !important;
  top: calc(100% + 7px) !important;
  left: 0 !important;
  width: 230px !important;
  max-width: min(330px,calc(100vw - 28px)) !important;
  max-height: 340px !important;
  display: grid !important;
  gap: 3px !important;
  padding: 7px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 1px solid #bfcee0 !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: 0 16px 36px rgba(6,43,95,.16) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-more-menu {
  right: 0 !important;
  left: auto !important;
  width: 240px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-filter-options>a,
html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-more-menu :is(a,button) {
  width: 100% !important;
  min-height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 4px !important;
  color: #294367 !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-align: left !important;
  text-decoration: none !important;
  transform: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-filter-options>a>span {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-filter-options>a>small {
  min-width: 25px !important;
  height: 22px !important;
  display: inline-grid !important;
  place-items: center !important;
  padding: 0 6px !important;
  border: 1px solid #d3deea !important;
  border-radius: 4px !important;
  color: #64758e !important;
  background: #f7f9fc !important;
  font-size: 9px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-filter-options>a>.icon {
  width: 14px !important;
  height: 14px !important;
  color: #0a61c8 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-filter-options>a.is-active {
  color: #062b5f !important;
  background: #edf4fd !important;
  font-weight: 750 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-filter-options>a:is(:hover,:focus),
html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-more-menu :is(a,button):is(:hover,:focus) {
  color: #062b5f !important;
  background: #f3f7fc !important;
  box-shadow: none !important;
  transform: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-filter-empty {
  display: block !important;
  padding: 13px 10px !important;
  color: #7b8ba0 !important;
  font-size: 10px !important;
  text-align: center !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-action-note {
  margin: 5px 4px 2px !important;
  padding: 9px 7px 3px !important;
  border-top: 1px solid #e2e9f1 !important;
  color: #72839a !important;
  font-size: 9px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-filters-right {
  position: relative !important;
  z-index: 400 !important;
  display: flex !important;
  align-items: center !important;
  overflow: visible !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] #contact-columns-trigger {
  min-width: 195px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-columns-menu {
  position: absolute !important;
  z-index: 22000 !important;
  top: calc(100% + 7px) !important;
  right: 0 !important;
  width: 330px !important;
  max-width: min(330px,calc(100vw - 28px)) !important;
  height: auto !important;
  max-height: min(420px,calc(100dvh - 180px)) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #bfcee0 !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: 0 16px 36px rgba(6,43,95,.16) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-columns-menu[hidden] {
  display: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-columns-scroll {
  height: auto !important;
  max-height: min(340px,calc(100dvh - 238px)) !important;
  padding: 7px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: #fff !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-column-option {
  min-height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  padding: 0 9px !important;
  border-radius: 4px !important;
  color: #294367 !important;
  background: #fff !important;
  font-size: 11px !important;
  font-weight: 550 !important;
  text-align: left !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-column-option>span {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
  text-align: left !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-column-option:hover {
  background: #f3f7fc !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-column-save,
html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-column-save:is(:hover,:focus,:active) {
  width: 100% !important;
  height: 43px !important;
  min-height: 43px !important;
  border: 0 !important;
  border-top: 1px solid #d5e0ec !important;
  border-radius: 0 !important;
  color: #fff !important;
  background: #062b5f !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  transform: none !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-table-card {
  position: relative !important;
  z-index: 1 !important;
  overflow: hidden !important;
  border: 1px solid #c9d7e5 !important;
  border-top: 3px solid #062b5f !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 12px 28px rgba(6,43,95,.06) !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-table-wrap {
  overflow: auto !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-table th {
  height: 50px !important;
  color: #274466 !important;
  background: linear-gradient(90deg,#fffdf1,#f2f8fc) !important;
  font-size: 11px !important;
  font-weight: 750 !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-table td {
  height: 56px !important;
  color: #2f496c !important;
  background: #fff !important;
  font-size: 11px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-table tbody tr:hover td {
  background: #fff !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-tag-pill {
  padding: 5px 9px !important;
  border-color: #d1dce9 !important;
  border-radius: 5px !important;
  color: #31547f !important;
  background: #f7f9fc !important;
  font-size: 10px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-message-action {
  width: 32px !important;
  height: 32px !important;
  border: 1px solid #d1dce9 !important;
  border-radius: 5px !important;
  color: #062b5f !important;
  background: #fff !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-message-action:hover {
  color: #062b5f !important;
  background: #fff !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-table-foot {
  min-height: 56px !important;
  padding: 9px 14px !important;
  background: #f6f9fc !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-pagination :is(a,span) {
  min-width: 32px !important;
  height: 32px !important;
  border-radius: 5px !important;
  font-size: 10px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-pagination .active {
  border-color: #062b5f !important;
  color: #fff !important;
  background: #062b5f !important;
}

@media (max-width: 1350px) {
  html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-toolbar {
    grid-template-columns: 1fr !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-toolbar-form {
    grid-template-columns: minmax(240px,1fr) 175px 160px auto auto !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-filters-right {
    justify-content: flex-end !important;
    justify-self: end !important;
    width: auto !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] #contact-columns-trigger {
    width: auto !important;
  }
}

@media (max-width: 980px) {
  html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .page-content {
    padding: 18px 18px 34px !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-toolbar-form {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-search {
    grid-column: 1 / -1 !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-filters-right,
  html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] #contact-columns-trigger {
    width: 100% !important;
    justify-self: stretch !important;
  }
}

@media (max-width: 620px) {
  html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .page-content {
    padding: 12px 10px 28px !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .page-titlebar {
    min-height: 0 !important;
    align-items: stretch !important;
    gap: 15px !important;
    padding: 16px 14px !important;
    border-radius: 7px !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .page-titlebar-icon {
    width: 46px !important;
    height: 46px !important;
    flex-basis: 46px !important;
    border-radius: 7px !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .page-titlebar-copy h1 {
    font-size: 22px !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .page-titlebar-copy p {
    font-size: 10px !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .page-titlebar-actions,
  html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-create-button {
    width: 100% !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-toolbar {
    padding: 9px !important;
    border-radius: 7px !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-toolbar-form {
    grid-template-columns: 1fr !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-search {
    grid-column: auto !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-filter-options,
  html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-more-menu,
  html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-columns-menu {
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }

  html body.app-body.ui-reference-light.business-colorful.page-contacts[data-ui-version][data-page-key="contacts"] .chub-table-card {
    border-radius: 7px !important;
  }
}

/* R69 — Campaigns index: rectangular cards only; all behaviour and styling stay intact. */
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .page-titlebar,
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .lcp-toolbar,
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .lcp-tabs,
html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .lcp-table-card {
  border-radius: 8px !important;
}

html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .lcp-filter-panel {
  border-radius: 6px !important;
}

@media (max-width: 720px) {
  html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .page-titlebar,
  html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .lcp-toolbar,
  html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .lcp-tabs,
  html body.app-body.ui-reference-light.business-colorful.page-campaigns[data-ui-version][data-page-key="campaigns"] .lcp-table-card {
    border-radius: 7px !important;
  }
}
