/* Data integration (DI-1a): from the design's assets/css/data-integration.css
 * (assetsUI/data-integration-06-11-2026), lines 1-2342. Selectors that don't start
 * with .di- are scoped under :where(.di-page), the page's root, so nothing reaches other pages. */
/* ============================================================================
 *  DATA INTEGRATION  (assets/css/data-integration.css)
 * ----------------------------------------------------------------------------
 *  Consistent CRM Data Integration styles.
 *  Uses system variables and theme tokens (light and dark mode).
 * ============================================================================ */
 :where(.di-page) .iconSize-48 {
  width: 48px;
  height: 48px;
 }
/* Top Card Icon Badges */
.di-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
  transition: transform var(--fast) var(--ease);
}

.di-icon-badge--brand {
  background: var(--brand-soft);
  color: var(--brand);
}

.di-icon-badge--info {
  background: var(--info-bg);
  color: var(--info);
}

.di-icon-badge--accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.di-icon-badge--indigo {
  background: var(--indigo-bg);
  color: var(--indigo);
}

:where(.di-page) .card:hover .di-icon-badge {
  transform: translateY(-2px);
}

/* Filter Button Caret & Icon Sizing (Safeguard against unconstrained SVGs) */
:where(.di-page) .wf-filter__btn .icon,
.di-filter-btn .icon {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0;
  color: var(--text-muted);
}

:where(.di-page) .wf-filter__btn:hover .icon,
:where(.di-page) .wf-filter__btn.is-active .icon {
  color: var(--brand-ink, var(--text));
}

/* Popover positioning & body styling when combined with .dropdown__menu */
:where(.di-page) .lp-pop.dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 330px;
  max-width: calc(100vw - 24px);
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow:
    0 14px 36px rgba(16, 24, 40, 0.18),
    0 2px 6px rgba(16, 24, 40, 0.08);
  opacity: 1;
  transform: none;
  z-index: 999;
}

:where(.di-page) .lp-pop.dropdown__menu .lp-pop__arrow {
  left: 28px;
}

:where(.di-page) .lp-pop.dropdown__menu .lp-pop__body {
  padding: 16px;
  overflow: hidden;
}

:where(.di-page) .lp-pop.dropdown__menu .lp-presets,
:where(.di-page) .lp-pop.dropdown__menu .lp-optlist {
  max-height: 260px;
  overflow-y: auto;
}

:where(.di-page) .lp-pop.dropdown__menu .lp-search {
  width: 100%;
}

/* Tab Panels */
.di-tab-pane {
  display: none;
}

.di-tab-pane.is-active {
  display: block;
}

/* Empty State Placeholder */
.di-empty-state {
  padding: var(--sp-12) var(--sp-4);
  text-align: center;
  color: var(--text-muted);
}

.di-empty-state .icon {
  margin: 0 auto var(--sp-3);
  color: var(--text-subtle);
}

/* Table Wrapper and Table (Matching contacts.php / companies.php .lp-tablewrap and .lp-table) */
.di-tablewrap {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 280px;
  max-height: calc(100vh - 360px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 8px);
  background: var(--surface);
}

.di-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.di-table .lp-th--name,
.di-table .lp-td--name {
  min-width: 290px;
}

.di-table .lp-th--state,
.di-table .lp-td--state {
  min-width: 110px;
}

.di-table .lp-th--num,
.di-table .lp-td--num {
  min-width: 115px;
}

.di-table .lp-th--user,
.di-table .lp-td--user {
  min-width: 175px;
}

.di-table .lp-th--date,
.di-table .lp-td--date {
  min-width: 165px;
}

/* Numeric columns & right alignment */
:where(.di-page) .lp-th__in--end {
  justify-content: flex-end;
  padding: 0 14px 0 4px;
}

:where(.di-page) .lp-th__sort--end {
  justify-content: flex-end;
  margin-left: 0;
  margin-right: -4px;
  text-align: right;
}

:where(.di-page) .lp-td--end {
  text-align: right;
}

:where(.di-page) .lp-td--num {
  font-variant-numeric: tabular-nums;
}

/* Sort arrow toggle states */
:where(.di-page) .lp-th .sort-icon-default {
  display: inline-flex;
}

:where(.di-page) .lp-th .sort-icon-asc,
:where(.di-page) .lp-th .sort-icon-desc {
  display: none;
}

:where(.di-page) .lp-th.is-sorted[data-sort-dir="asc"] .sort-icon-default {
  display: none;
}

:where(.di-page) .lp-th.is-sorted[data-sort-dir="asc"] .sort-icon-asc {
  display: inline-flex;
}

:where(.di-page) .lp-th.is-sorted[data-sort-dir="desc"] .sort-icon-default {
  display: none;
}

:where(.di-page) .lp-th.is-sorted[data-sort-dir="desc"] .sort-icon-desc {
  display: inline-flex;
}

:where(.di-page) .lp-th__arrow svg,
:where(.di-page) .lp-th__arrow .icon {
  width: 14px;
  height: 14px;
}

/* First Column: Name cell & More button on hover */
.di-name-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.di-name-link {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.di-name-link:hover {
  text-decoration: underline;
}

.di-more-wrap {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.di-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill, 999px);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
  user-select: none;
}

.di-more-btn:hover,
.di-more-btn[aria-expanded="true"] {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

:where(.di-page) .lp-tr:hover .di-more-btn,
.di-more-btn:focus-visible,
.di-more-btn[aria-expanded="true"],
:where(.di-page) .lp-tr.is-menu-open .di-more-btn {
  opacity: 1;
}

.di-more-caret {
  width: 11px;
  height: 11px;
  transition: transform 0.15s ease;
}

.di-more-btn[aria-expanded="true"] .di-more-caret {
  transform: rotate(180deg);
}

/* Status Column (● Done) */
.di-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}

.di-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success, #12b76a);
  flex-shrink: 0;
}

/* Floating More Dropdown Menu */
.di-floating-menu {
  position: fixed;
  z-index: 10080;
  display: flex;
  flex-direction: column;
  min-width: 255px;
  max-width: 320px;
  padding: 6px 0;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow:
    0 16px 40px rgba(16, 24, 40, 0.18),
    0 2px 6px rgba(16, 24, 40, 0.08);
  animation: diPop 0.15s ease;
}

.di-floating-menu[hidden] {
  display: none !important;
}

@keyframes diPop {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.di-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.di-menu-item:hover,
.di-menu-item:focus-visible {
  background: var(--surface-hover);
  color: var(--text);
  outline: none;
}

/* BL1: an item this person can't use (not their import): muted, no hover. Import details'
   Actions menus too, as the workflows page does (`workflows.css`). */
.di-menu-item:disabled,
.di-menu-item:disabled:hover,
.di-page .dropdown__item:disabled,
.di-page .dropdown__item:disabled:hover {
  background: transparent;
  color: var(--text-muted);
  cursor: not-allowed;
}

.di-menu-item .icon {
  color: var(--text-muted);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.di-menu-sep {
  height: 1px;
  margin: 6px 0;
  background: var(--border);
}

/* Edit Columns Modal (matching CRM modal system & screenshot) */
.di-cols-modal {
  max-width: 440px;
  width: 100%;
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 20px 48px rgba(16, 24, 40, 0.24);
}

.di-cols-modal__body {
  padding: 20px 24px;
  max-height: calc(85vh - 140px);
  overflow-y: auto;
}

.di-cols-search-wrap {
  border-radius: var(--radius-pill, 999px);
  overflow: hidden;
  border: 1px solid var(--border-strong);
}

.di-cols-search-wrap .input {
  border: none;
  height: 38px;
  font-size: 13.5px;
  padding-left: 16px;
  padding-right: 36px;
}

.di-cols-search-wrap .input:focus {
  box-shadow: none;
}

.di-cols-list {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.di-col-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.di-col-item.is-disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.di-col-item.is-disabled input,
.di-col-item.is-disabled .check__box {
  cursor: not-allowed;
}

/* Add Imported Contacts to Segment Modal */
.di-add-segment-modal {
  max-width: 460px;
  width: 100%;
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 20px 48px rgba(16, 24, 40, 0.24);
}

.di-add-segment-modal .modal__body {
  padding: 24px;
  overflow: visible;
}

.di-add-segment-modal .custom-select-wrapper {
  display: block;
  width: 100%;
}

.di-add-segment-modal .custom-select__trigger {
  width: 100%;
  min-height: 40px;
}

.di-add-segment-modal .custom-select__dropdown {
  width: 100%;
  min-width: 100%;
}

/* ============================================================================
 *  APP SYNCS TAB STYLES (Consistent with CRM theme variables & sequences datepicker)
 * ============================================================================ */

/* Date Range Picker Component (Matching Sequences page screenshot 2) */
.di-date-range-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.di-date-picker-wrap {
  position: relative;
  display: inline-block;
}

.di-date-picker-wrap .seq-dp {
  position: relative;
}

.di-date-picker-wrap .seq-dp__inputs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  padding: 0;
  border: none;
}

.di-date-picker-wrap .seq-dp__input {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition:
    border-color var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
}

.di-date-picker-wrap .seq-dp__input.is-active,
.di-date-picker-wrap .seq-dp__input:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.di-date-picker-wrap .seq-dp__input .icon,
.di-date-picker-wrap .seq-dp__input svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.di-date-picker-wrap .seq-dp__input input {
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  width: 90px;
  padding: 0 !important;
  height: auto !important;
  line-height: 1;
  box-shadow: none !important;
  cursor: pointer;
}

.di-date-picker-wrap .cad-date-sep {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.di-date-picker-wrap .seq-dp__body {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1050;
  display: grid;
  grid-template-columns: 180px 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 460px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
}

.di-date-picker-wrap .seq-dp__body[hidden] {
  display: none !important;
}

.di-date-picker-wrap .seq-dp__presets {
  display: flex;
  flex-direction: column;
  max-height: 330px;
  overflow-y: auto;
  padding: 6px 0;
  border-right: 1px solid var(--border);
}

.di-date-picker-wrap .seq-dp__preset {
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  font-size: 13.5px;
  color: var(--text);
  padding: 9px 18px;
  cursor: pointer;
  transition:
    background var(--fast) var(--ease),
    color var(--fast) var(--ease);
}

.di-date-picker-wrap .seq-dp__preset:hover,
.di-date-picker-wrap .seq-dp__preset:focus-visible,
.di-date-picker-wrap .seq-dp__preset.is-active {
  background: var(--surface-hover);
  outline: none;
}

.di-date-picker-wrap .seq-dp__preset.is-active {
  color: var(--brand);
  font-weight: 600;
}

.di-date-picker-wrap .seq-dp__cal {
  padding: var(--sp-3);
  box-sizing: border-box;
  min-width: 0;
}

.di-date-picker-wrap .seq-dp__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
  font-size: 14.5px;
  color: var(--text);
  font-weight: 700;
}

.di-date-picker-wrap .seq-dp__nav {
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.di-date-picker-wrap .seq-dp__nav:hover,
.di-date-picker-wrap .seq-dp__nav:focus-visible {
  background: var(--surface-hover);
  outline: none;
}

.di-date-picker-wrap .seq-dp__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.di-date-picker-wrap .seq-dp__wd {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 4px 0;
}

.di-date-picker-wrap .seq-dp__day {
  position: relative;
  height: 30px;
  border: 0;
  background: none;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  padding: 0;
}

.di-date-picker-wrap .seq-dp__day:hover,
.di-date-picker-wrap .seq-dp__day:focus-visible {
  background: var(--surface-hover);
  outline: none;
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.di-date-picker-wrap .seq-dp__day.is-out {
  color: var(--text-subtle);
  font-weight: 500;
}

.di-date-picker-wrap .seq-dp__day.is-range {
  background: var(--brand-soft);
  border-radius: 0;
}

.di-date-picker-wrap .seq-dp__day.is-sel {
  background: var(--text);
  color: var(--surface);
}

.di-date-picker-wrap .seq-dp__day.is-today:not(.is-sel) {
  color: var(--danger);
}

.di-date-picker-wrap .seq-dp__day.is-today::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}

.di-date-picker-wrap .seq-dp__clear {
  display: block;
  width: 100%;
  margin-top: var(--sp-2);
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
  box-sizing: border-box;
}

.di-date-picker-wrap .seq-dp__clear:hover {
  background: var(--surface-hover);
}

/* App Sync Dropdown Filter Buttons */
.di-app-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background var(--fast) var(--ease),
    color var(--fast) var(--ease);
}

.di-app-filter-btn:hover,
.di-app-filter-btn[aria-expanded="true"] {
  background: var(--surface-hover);
  color: var(--text);
}

.di-app-filter-btn .icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

/* Dropdown Menu Popups for App Syncs */
.di-app-status-menu,
.di-app-object-menu {
  min-width: 160px;
  padding: 6px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.di-app-status-menu .dropdown__item,
.di-app-object-menu .dropdown__item {
  padding: 7px 12px;
  font-size: 13.5px;
  border-radius: var(--radius-sm);
}

.di-app-status-menu .dropdown__item.is-selected,
.di-app-object-menu .dropdown__item.is-selected {
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
}

/* Table Column Widths for App Syncs */
.di-app-table .lp-th--app-source,
.di-app-table .lp-td--app-source {
  min-width: 280px;
}

.di-app-table .lp-th--app-dest,
.di-app-table .lp-td--app-dest {
  min-width: 180px;
}

.di-app-table .lp-th--app-status,
.di-app-table .lp-td--app-status {
  min-width: 120px;
}

.di-app-table .lp-th--app-updated,
.di-app-table .lp-td--app-updated {
  min-width: 150px;
}

/* Source Cell with App Badge (Using theme variables) */

:where(.di-page) .lp-av--purple {
  background: var(--pink);
  color: var(--brand-contrast);
}
:where(.di-page) .lp-av--indigo {
  background: var(--indigo);
  color: var(--brand-contrast);
}
:where(.di-page) .lp-av--dark {
  background: var(--panel);
  color: var(--panel-text);
}
:where(.di-page) .lp-av--blue {
  background: var(--brand);
  color: var(--brand-contrast);
}
:where(.di-page) .lp-av--teal {
  background: var(--teal);
  color: var(--brand-contrast);
}
:where(.di-page) .lp-av--green {
  background: var(--success);
  color: var(--brand-contrast);
}
:where(.di-page) .lp-av--cyan {
  background: var(--cyan);
  color: var(--brand-contrast);
}

.di-source-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.di-source-cell--link {
  cursor: pointer;
}

.di-source-cell--link:hover .di-source-name {
  color: var(--brand);
  text-decoration: underline;
}

.di-source-name {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text);
  transition: color var(--fast, 0.15s) ease;
}

/* Destination Cell: CRM bold + Object subtitle */
.di-dest-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.di-connector-icon {
  width: 20px;
  height: 20px;
}

.di-dest-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.di-dest-crm {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text);
}

.di-dest-object {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Status: Synced (green dot) / Idle (gray dot + info icon) */
.di-sync-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}

.di-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.di-status-dot--synced {
  background: var(--success);
  box-shadow: 0 0 0 2px var(--success-bg);
}

.di-status-dot--idle {
  background: var(--text-subtle);
}

.di-status-info {
  display: inline-flex;
  align-items: center;
  color: var(--text-subtle);
  cursor: help;
  margin-left: 2px;
}

.di-status-info:hover {
  color: var(--text);
}

/* Date and Time Cell */
.di-time-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}

.di-time-cell__date {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}

.di-time-cell__time {
  font-size: 12px;
  color: var(--text-muted);
}

/* Numeric Record Counts */
.di-record-num {
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}

.di-issues-link--has-errors {
  color: var(--danger);
  font-weight: 600;
  text-decoration: underline;
}

/* App Syncs Edit Columns Modal (2-column layout matching contacts.php & screenshot) */
.di-app-cols-modal {
  max-width: 760px;
  width: 95%;
}

.di-app-cols-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  min-height: 380px;
}

.di-app-cols-divider {
  border-right: 1px solid var(--border);
  padding-right: 24px;
}

.di-app-cols-opts {
  max-height: 360px;
  overflow-y: auto;
}

.di-app-cols-sel {
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.di-app-cols-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13.5px;
  color: var(--text);
  user-select: none;
  transition:
    border-color var(--fast) var(--ease),
    background var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
}

.di-app-cols-item[draggable="true"] {
  cursor: grab;
}

.di-app-cols-item[draggable="true"]:active {
  cursor: grabbing;
}

.di-app-cols-item.is-locked {
  background: var(--surface-2, var(--surface-hover));
  border-color: var(--border);
  color: var(--text-muted);
  cursor: default;
}

.di-app-cols-item.is-dragging {
  opacity: 0.4;
  border-style: dashed;
}

.di-app-cols-item.is-over {
  border-color: var(--brand);
  box-shadow: 0 -2px 0 var(--brand);
}

.di-app-cols-drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  padding: 2px;
  flex-shrink: 0;
}

.di-app-cols-lbl {
  flex: 1;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.di-app-cols-rm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 2px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--fast) var(--ease);
  flex-shrink: 0;
}

.di-app-cols-rm:hover {
  color: var(--text);
}

.di-app-cols-reset-btn {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  transition: color var(--fast) var(--ease);
}

.di-app-cols-reset-btn:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .di-app-cols-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
  }

  .di-app-cols-divider {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 20px;
  }
}

/* Data Studio Syncs Tab (Hero layout matching reference image) */
.di-studio-hero {
  padding: 48px 36px;
  max-width: 1080px;
  margin: 0 auto;
  gap: 48px;
}

.di-studio-content {
  flex: 1;
  max-width: 560px;
}

.di-studio-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 28px 0;
  line-height: 1.25;
}

.di-studio-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 1px;
}

.di-studio-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.di-studio-desc strong {
  font-weight: 700;
  color: var(--text);
}

.di-studio-art {
  flex-shrink: 0;
  width: 440px;
  max-width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.di-studio-illustration {
  width: 100%;
  height: auto;
  max-height: 340px;
  display: block;
}

@media (max-width: 900px) {
  .di-studio-hero {
    flex-direction: column-reverse;
    align-items: flex-start;
    padding: 28px 16px;
    gap: 32px;
  }

  .di-studio-content {
    max-width: 100%;
  }

  .di-studio-art {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
}

/* --------------------------------------------------------------------------
   Restore CRM Changes Side Drawer (embedded directly in Data Integration)
   -------------------------------------------------------------------------- */
.di-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10085;
  background: rgba(16, 24, 40, .45);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.di-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* QA #553: the app's toasts (style.css .toast-region, z-index 2000) stay above this drawer while
   it is open, so "N changes restored" and errors show (as merge-design.css does for its window). */
body:has(.di-drawer-backdrop.is-open) .toast-region { z-index: 10300; }

.di-restore-drawer {
  width: 480px;
  max-width: 100%;
  height: 100%;
  background: #fff;
  color: #101828;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 32px rgba(16, 24, 40, .18);
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}

.di-drawer-backdrop.is-open .di-restore-drawer {
  transform: translateX(0);
}

.di-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #e4e7ec;
  background: #fff;
}

.di-drawer__title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #101828;
}

.di-drawer__close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: 8px;
  color: #475467;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.di-drawer__close:hover {
  background: #f2f4f7;
  color: #101828;
}

.di-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.di-restore-desc {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #344054;
}

.di-drawer-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  position: relative;
}

.di-drawer-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.di-drawer-info {
  display: inline-flex;
  color: var(--text-muted);
  cursor: help;
}

/* Custom Dropdowns inside Side Drawer */
.di-drawer-field .custom-select-wrapper {
  width: 100%;
  display: block;
  min-width: 0;
}

.di-drawer-field .custom-select__trigger {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.di-drawer-field .custom-select-wrapper.is-open .custom-select__trigger {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(36, 86, 230, 0.15);
}

.di-drawer-field .custom-select__value {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.di-drawer-field .custom-select__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  width: 100%;
  min-width: 100%;
  max-height: 240px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(16, 24, 40, 0.12);
  z-index: 10090;
}

.di-drawer-field .custom-select__option {
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  transition: background-color .15s ease;
}

.di-drawer-field .custom-select__option:hover {
  background: var(--surface-hover);
}

.di-drawer-field .custom-select__option.is-selected {
  background: var(--surface-3);
  color: var(--brand);
  font-weight: 600;
}

.di-drawer-field .custom-select-wrapper.is-dropup .custom-select__dropdown {
  top: auto;
  bottom: calc(100% + 4px);
  box-shadow: 0 -10px 25px rgba(16, 24, 40, 0.12);
}

.di-restore-props-anchor {
  position: relative;
  width: 100%;
}

.di-restore-props-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.di-restore-props-box:hover {
  border-color: var(--text-muted);
}

.di-restore-props-box:focus-visible,
.di-restore-props-box.is-active {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(36, 86, 230, .15);
}

.di-restore-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.di-rc-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.di-rc-placeholder {
  color: var(--text-subtle);
  padding: 4px 0;
  font-size: 14px;
}

.di-restore-more-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.di-restore-more-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.di-restore-more-caret {
  color: var(--text-muted);
  display: inline-flex;
}

.di-restore-more-caret svg {
  transition: transform .2s ease;
}

.di-restore-props-box.is-active .di-restore-more-caret svg {
  transform: rotate(180deg);
}

.di-restore-clear-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 6px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s ease;
}

.di-restore-clear-link:hover {
  color: var(--brand-hover);
  text-decoration: underline;
}

.di-restore-clear-link[disabled] {
  opacity: .4;
  cursor: not-allowed;
  text-decoration: none;
}

.di-restore-trash-icon {
  width: 14px;
  height: 14px;
}

.di-props-popover {
  position: absolute;
  z-index: 10095;
  top: calc(100% + 4px);
  bottom: auto;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(16, 24, 40, .16);
  padding: 8px;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.di-props-popover[hidden] {
  display: none !important;
}

.di-props-popover.is-open-above {
  top: auto;
  bottom: calc(100% + 4px);
  box-shadow: 0 -12px 32px rgba(16, 24, 40, .16);
}

.di-props-search-wrap {
  position: sticky;
  top: 0;
  background: var(--surface);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  z-index: 2;
}

.di-props-search {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  outline: none;
}

.di-props-search:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(36, 86, 230, .15);
}

.di-props-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  font-size: 13.5px;
  color: var(--text);
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
}

.di-props-item:hover,
.di-props-item:focus-visible {
  background: var(--surface-hover);
  outline: none;
}

.di-props-item.is-selected {
  font-weight: 600;
  color: var(--brand);
}

.di-props-item.is-selected::after {
  content: "✓";
  font-weight: 700;
  color: var(--brand);
}

.di-drawer__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.di-restore-preview-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.di-restore-wait {
  padding: 40px 12px;
  text-align: center;
}

.di-restore-spinner {
  display: inline-block;
  width: 34px;
  height: 34px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: di-rc-spin .8s linear infinite;
}

@keyframes di-rc-spin {
  to { transform: rotate(360deg); }
}

.di-restore-wait-title {
  display: block;
  margin: 14px 0 6px;
  font-size: 16px;
  color: var(--text);
}

.di-restore-wait-msg {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.di-restore-info-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.5;
}

.di-restore-info-banner svg {
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}

.di-restore-preview-sub {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text);
}

.di-restore-all-wrap {
  margin-bottom: 10px;
}

.di-restore-all-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.di-restore-changes-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.di-restore-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  transition: background-color .15s ease;
  cursor: pointer;
}

.di-restore-card:first-child {
  border-top: 0;
}

.di-restore-card.is-selected {
  background: var(--surface-hover);
}

.di-restore-card input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
  flex: none;
}

.di-restore-card-content {
  flex: 1;
  min-width: 0;
}

.di-restore-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.di-restore-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.di-restore-card-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-3);
  border-radius: 4px;
}

.di-restore-card-prop {
  font-size: 13.5px;
  color: var(--text);
  margin-bottom: 4px;
}

.di-restore-card-prop s {
  color: var(--text-subtle);
}

.di-restore-card-prop b {
  color: var(--text);
}

.di-restore-card-meta {
  font-size: 12.5px;
  color: var(--text-muted);
}

.di-restore-empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
}

.di-restore-empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Connect App Flow Modals (Explore & App Details)
   -------------------------------------------------------------------------- */
:where(.di-page) .ca-rec-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border, #d0d5dd);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: var(--text, #101828);
  cursor: pointer;
  transition: all 0.15s ease;
}

:where(.di-page) .ca-rec-back-btn:hover {
  background: var(--surface-hover, #f2f4f7);
  border-color: var(--border-hover, #98a2b3);
}

:where(.di-page) .ca-rec-certified-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

:where(.di-page) .ca-rec-modal__certified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--brand);
}

.di-gallery-play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.22);
  color: var(--brand, #2456e6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

:where(.di-page) .ca-rec-modal__gallery-frame:hover .di-gallery-play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.28);
}

.di-app-bullets-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.di-app-bullets-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text, #344054);
}

.di-app-bullets-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand, #2456e6);
}

:where(.di-page) .ca-all-rec-modal[open],
:where(.di-page) .ca-rec-modal[open],
:where(.di-page) .ca-action-modal[open] {
  animation: caModalFadeIn 0.2s ease-out;
}

:where(.di-page) .ca-action-modal__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border, #e4e7ec);
  background: var(--surface, #fff);
  flex: none;
}

@keyframes caModalFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* App Details Modal Sections & Layout */
:where(.di-page) .ca-rec-modal {
  width: min(1040px, calc(100vw - 32px)) !important;
  max-height: min(90vh, 920px) !important;
}

@media (min-width: 768px) {
  :where(.di-page) .ca-rec-modal__side {
    position: sticky;
    top: 0;
    align-self: flex-start;
  }
}

.di-detail-section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border, #e4e7ec);
}

.di-detail-section--first {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.di-req-block {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle, #f2f4f7);
}

.di-req-block:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

/* Feature Cards */
.di-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.di-feature-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border, #e4e7ec);
  background: var(--surface-2, #fafafa);
}

@media (max-width: 600px) {
  .di-feature-card {
    flex-direction: column;
  }
}

.di-feature-thumb {
  width: 130px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #d0d5dd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand, #2456e6);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
}

.di-compatible-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
  margin-bottom: 6px;
}

/* Pricing Cards */
.di-pricing-card {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--border, #e4e7ec);
  background: var(--surface, #ffffff);
  transition: border-color 0.15s ease;
}

.di-pricing-card--popular {
  border-color: var(--brand, #2456e6);
  background: var(--surface, #ffffff);
  box-shadow: 0 4px 14px rgba(36, 86, 230, 0.08);
}

/* Review Card */
.di-review-card {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--border, #e4e7ec);
  background: var(--surface, #ffffff);
}

.di-review-stars {
  color: #f59e0b;
  font-size: 15px;
  letter-spacing: 2px;
}

/* More Info Tabs */
.di-more-tabs {
  border-bottom: 1px solid var(--border, #e4e7ec);
}

.di-more-tab {
  background: none;
  border: none;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted, #667085);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.di-more-tab:hover {
  color: var(--text, #101828);
}

.di-more-tab.is-active {
  color: var(--brand, #2456e6);
  border-bottom-color: var(--brand, #2456e6);
}

/* App Functionality Section */
.di-shared-data-table-wrap {
  border: 1px solid var(--border, #e4e7ec);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface, #ffffff);
}

.di-shared-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.di-shared-data-table thead th {
  background: var(--surface-2, #fafafa);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #667085);
  text-align: left;
  border-bottom: 1px solid var(--border, #e4e7ec);
}

.di-shared-data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle, #f2f4f7);
  color: var(--text, #101828);
  vertical-align: middle;
}

.di-shared-data-table tbody tr:last-child td {
  border-bottom: none;
}

.di-sync-cell {
  text-align: center;
  font-size: 18px;
  color: var(--text-muted, #667085);
  font-weight: 600;
  width: 120px;
}

.di-crm-dot-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand, #2456e6);
  display: inline-block;
  flex-shrink: 0;
}

.di-shared-data-info {
  border-radius: 8px;
  background: var(--surface-2, #fafafa);
  border: 1px solid var(--border, #e4e7ec);
  padding: 12px 16px;
}

/* App Functionality Tabs (Slack) */
.di-func-tabs {
  border-bottom: 1px solid var(--border, #e4e7ec);
}

.di-func-tab {
  background: none;
  border: none;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted, #667085);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.di-func-tab:hover {
  color: var(--text, #101828);
}

.di-func-tab.is-active {
  color: var(--brand, #2456e6);
  border-bottom-color: var(--brand, #2456e6);
}

.di-workflow-action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--border, #e4e7ec);
  background: var(--surface, #ffffff);
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #101828);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

/* Multi-tier Pricing */
.di-pricing-multi-container {
  display: flex;
  gap: 20px;
}

@media (max-width: 768px) {
  .di-pricing-multi-container {
    flex-direction: column;
  }
}

.di-pricing-tiers-list {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.di-pricing-tier-card {
  padding: 14px 16px;
  border: 1px solid var(--border, #e4e7ec);
  border-radius: 10px;
  background: var(--surface, #ffffff);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}

.di-pricing-tier-card:hover {
  border-color: var(--brand-subtle, #93b3fd);
}

.di-pricing-tier-card.is-selected {
  border: 2px solid var(--brand, #2456e6);
  background: var(--surface-2, #fafafa);
  box-shadow: 0 2px 8px rgba(36, 86, 230, 0.08);
}

.di-pricing-detail-card {
  flex: 1;
  padding: 20px 24px;
  border: 1px solid var(--border, #e4e7ec);
  border-radius: 12px;
  background: var(--surface, #ffffff);
}

.di-pricing-cycle-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-muted, #667085);
}

.di-pricing-cycle-toggle label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* Reviews Summary & AI Summary */
.di-reviews-summary-card {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px 24px;
  border-radius: 12px;
  border: 1px solid var(--border, #e4e7ec);
  background: var(--surface-2, #fafafa);
}

@media (max-width: 768px) {
  .di-reviews-summary-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.di-rev-score-col,
.di-rev-total-col {
  border-right: 1px solid var(--border, #e4e7ec);
  padding-right: 24px;
}

@media (max-width: 768px) {
  .di-rev-score-col,
.di-rev-total-col {
    border-right: none;
    border-bottom: 1px solid var(--border, #e4e7ec);
    padding-right: 0;
    padding-bottom: 12px;
  }
}

.di-rev-big-score,
.di-rev-big-total {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text, #101828);
  margin: 4px 0;
}

.di-rev-stars-row {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.di-rev-bars-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.di-rev-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted, #667085);
}

.di-rev-bar-label {
  width: 28px;
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
}

.di-rev-bar-track {
  flex: 1;
  height: 8px;
  background: var(--border, #e4e7ec);
  border-radius: 4px;
  overflow: hidden;
}

.di-rev-bar-fill {
  height: 100%;
  background: #475467;
  border-radius: 4px;
}

.di-rev-bar-pct {
  width: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* AI Summary Box */
.di-ai-summary-card {
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.di-ai-summary-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #d97706;
}

.di-ai-thumb-btn {
  background: none;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 6px;
  padding: 3px 6px;
  cursor: pointer;
  color: var(--text-muted, #9ca3af);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.di-ai-thumb-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  color: var(--text, #ffffff);
}

.di-ai-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 16px;
  border: 1px solid var(--border, #d0d5dd);
  background: var(--surface, #ffffff);
  font-size: 12px;
  font-weight: 500;
  color: var(--text, #344054);
  cursor: pointer;
  transition: all 0.15s ease;
}

.di-ai-tag:hover {
  border-color: var(--brand, #2456e6);
  color: var(--brand, #2456e6);
}

.di-connected-indicator {
  color: #16a34a;
}

.di-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.di-status-dot--connected {
  background-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}
