/* =========================================================================
   Contacts HubSpot parity (HUB-611): list table (sortable headers, expand row,
   association cells), bulk action bar, advanced filters, view tabs, record page
   overview / sidebar cards / drawers, recycle bin and data quality pages.
   Tokens come from base.css; record-page bits follow the design's record-page.css.
   ========================================================================= */

/* ---- record page: association card gear (28 Oct design record-tabs.css:268-275) ---- */
.crm-card-acts { display: inline-flex; align-items: center; gap: 4px; flex: none; margin-left: auto; }
.crm-card-gear { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: var(--text-muted); border: 1px solid var(--border-strong); border-radius: 50%; }
.crm-card-gear:hover { color: var(--text); background: var(--surface-hover); }
.crm-card-gear svg { width: 15px; height: 15px; }
/* a saved property of an associated record (design record-tabs.js:282, `.rt-aline`) */
.crm-assoc-line { display: block; margin-top: 2px; font-size: 13px; color: var(--text-muted); overflow-wrap: anywhere; }
.crm-assoc-line strong { font-weight: 600; color: var(--text); }

/* ---- list: sortable headers (HUB-612) ---- */
.crm-th-sort { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; cursor: pointer; white-space: nowrap; }
.crm-th-sort:hover .crm-th-draggable__label { text-decoration: underline; }
.crm-th-sort:focus-visible { outline: 0; box-shadow: var(--focus-ring); border-radius: 4px; }
.crm-th-sort__icon { width: 14px; height: 14px; flex: 0 0 14px; opacity: .45; }
.crm-th-sortable.is-sorted .crm-th-sort__icon { opacity: 1; color: var(--brand); }

/* ---- list: expand row (HUB-612) ---- */
.contacts-expand-cell { width: 36px; padding-left: 4px !important; padding-right: 4px !important; }
.contacts-expand-btn { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-muted); cursor: pointer; }
.contacts-expand-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.contacts-expand-btn.is-open svg { transform: rotate(90deg); }
.contacts-expand-btn:hover, .contacts-expand-btn:focus-visible { background: var(--surface-hover); color: var(--text); outline: 0; }
.contacts-expand-row > td { background: var(--surface-2, #f9fafb); padding: 12px 16px !important; }
.contacts-assoc-cell { display: inline; }

/* ---- bulk action bar (HUB-372) ---- */
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bulk-bar__progress { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: 13.5px; }
.bulk-bar__meter { flex: 1 1 auto; height: 6px; border-radius: 999px; background: var(--surface-3, #eef0f3); overflow: hidden; }
.bulk-bar__meter > span { display: block; height: 100%; background: var(--brand); transition: width .3s; }
.bulk-result__list { margin: 8px 0 0; padding: 0; list-style: none; max-height: 280px; overflow-y: auto; font-size: 13px; }
.bulk-result__list li { padding: 6px 0; border-bottom: 1px solid var(--border); }

/* ---- advanced filters (HUB-613) ---- */
.fb-group { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.fb-group + .fb-or { display: flex; align-items: center; gap: 8px; margin: 10px 0; color: var(--text-muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; }
.fb-or::before, .fb-or::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--border); }
.fb-group__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.fb-group__acts { display: flex; gap: 4px; }
.fb-cond { display: grid; gap: 6px; padding: 10px; border-radius: 8px; background: var(--surface-2, #f9fafb); }
.fb-cond + .fb-and { margin: 6px 0; color: var(--text-muted); font-size: 12px; font-weight: 600; text-align: center; }
.fb-cond__head { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; font-weight: 600; }
.fb-cond__row { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-cond__row > * { flex: 1 1 160px; min-width: 0; }
.fb-picker { display: flex; flex-direction: column; gap: 8px; }
.fb-picker__list { max-height: 320px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; }
.fb-picker__group { padding: 8px 12px 4px; color: var(--text-muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.fb-picker__item { display: block; width: 100%; padding: 8px 12px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.fb-picker__item:hover, .fb-picker__item:focus-visible { background: var(--surface-hover); outline: 0; }
.fb-tabs { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.fb-tab { padding: 8px 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text-muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.fb-tab.is-active { border-bottom-color: var(--brand); color: var(--text); }
.fb-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.fb-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 360px; padding: 4px 6px 4px 10px; border: 1px solid var(--brand); border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink, var(--text)); font-size: 12.5px; }
.fb-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-chip button { display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.fb-chip button:hover { background: rgba(0, 0, 0, .08); }
.fb-quick { display: inline-flex; align-items: center; gap: 4px; }
.fb-quick__add, .fb-quick__edit { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer; }
.fb-quick__edit.is-on { border-color: var(--brand); color: var(--brand); }
.fb-quick__remove { margin-left: -4px; }

/* ---- view tabs: open tabs, unsaved marker, All views (HUB-614) ---- */
.vt-tab { display: inline-flex; align-items: center; gap: 2px; }
.vt-tab__close { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-muted); cursor: pointer; }
.vt-tab__close:hover { background: var(--surface-hover); color: var(--text); }
.vt-dirty { display: inline-block; width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: var(--warning, #d97706); vertical-align: middle; }
.vt-all { overflow-x: auto; }
.vt-all table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.vt-all th, .vt-all td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.vt-all th { color: var(--text-muted); font-size: 12.5px; font-weight: 600; }
.list-view-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 10px; }

/* ---- record page: overview tab (HUB-616) ---- */
.rp-overview { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 16px; }
.rp-ov__title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-size: 16px; font-weight: 600; }
.rp-ov__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px 20px; margin: 0; padding: 16px; border: 1px solid var(--border); border-radius: 10px; }
.rp-ov__grid dt { color: var(--text-muted); font-size: 12.5px; }
.rp-ov__grid dd { margin: 4px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.rp-ov__acts { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: 10px; }
.rp-ov__acts li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.rp-ov__acts li:last-child { border-bottom: 0; }
.rp-ov__acts span { color: var(--text-muted); font-size: 13px; white-space: nowrap; }
.rp-ov__links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.rp-ov__link { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; }
.rp-ov__link h3 { margin: 0 0 6px; font-size: 13px; color: var(--text-muted); font-weight: 600; }
.rp-ov__link ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13.5px; }
.rp-link--btn { padding: 0; border: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--brand); cursor: pointer; text-align: left; }
.rp-link--btn:hover { text-decoration: underline; }
.rp-customize { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 0 12px; color: var(--text); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.rp-customize:hover { color: var(--brand); }

/* ---- record page: sidebar cards (HUB-617, HUB-466) ---- */
.rp-assoc { display: flex; align-items: center; gap: 10px; padding: 8px; margin: 0 -8px; border-radius: 8px; color: var(--text); text-decoration: none; }
.rp-assoc:hover { background: var(--surface-hover); }
.rp-assoc__copy { min-width: 0; display: flex; flex-direction: column; }
.rp-assoc__copy strong { font-size: 14px; color: var(--brand); }
.rp-assoc__copy small { font-size: 12.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink, var(--brand)); font-size: 12.5px; font-weight: 700; }
.rp-empty { margin: 0; color: var(--text-muted); font-size: 13.5px; }
.rp-note { margin: 0 0 8px; color: var(--text); font-size: 13.5px; line-height: 1.5; }
.rp-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.rp-stats dt { color: var(--text-muted); font-size: 12px; }
.rp-stats dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; }
.rp-pages { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; }
.rp-pages li { display: flex; justify-content: space-between; gap: 8px; }
.rp-pages li span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-pages li span:last-child { color: var(--text-muted); white-space: nowrap; }
/* Sequences QA BUG-04: the Sequences card keeps the card's width. A native select is as wide as
   its longest option and the button's label doesn't wrap, so both widened the column and cut off
   the note; the select now fills the card and the button ends in an ellipsis. */
.rp-seq-enroll, .rp-seq-enroll .field { grid-template-columns: minmax(0, 1fr); }
.rp-seq-enroll .select { width: 100%; }

/* ---- record page: name popover, follow, quick action order (HUB-615, HUB-382, HUB-572) ---- */
.rp-namedit { display: inline-grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-muted); cursor: pointer; }
.rp-namedit:hover, .rp-namedit[aria-expanded="true"] { background: var(--surface-hover); color: var(--text); }
.rp-namedit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rp-np { display: grid; gap: 10px; }
.rp-np__err { color: var(--danger); font-size: 12.5px; }
.field .field__error { margin-top: 4px; color: var(--danger); font-size: 12.5px; }
.field.is-invalid .input, .field.is-invalid .custom-select__trigger { border-color: var(--danger); }
.rp-follow { display: inline-flex; align-items: center; gap: 6px; }
.rp-follow.is-on { color: var(--brand); border-color: var(--brand); }
/* R2: Opt out of email, the design's "I understand" box and its left-aligned footer
   (record-popups-hs.js:953-955, `hx-modal--foot-left`). */
.rp-agree { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 13px; line-height: 1.45; cursor: pointer; }
.rp-agree input { margin-top: 2px; flex: none; }
.rp-agree__foot { justify-content: flex-start; }

/* R2: Reorder activity buttons, one select per slot (record-popups-hs.js:921-945). */
.rp-slots { display: grid; gap: 12px; }
.rp-slots .field { margin: 0; }
.rp-order { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.rp-order li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.rp-order li span { flex: 1 1 auto; font-size: 14px; }
.rp-order button { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-muted); cursor: pointer; }
.rp-order button:hover:not(:disabled) { background: var(--surface-hover); color: var(--text); }
.rp-order button:disabled { opacity: .3; cursor: default; }
.rp-checks { display: grid; gap: 8px; }
.rp-checks label { display: flex; align-items: center; gap: 8px; font-size: 14px; }

/* ---- timeline: readable entries (HUB-618) ---- */
.crm-activity-card__sentence { margin: 6px 0 0; color: var(--text); font-size: 13.5px; line-height: 1.5; }
.crm-activity-card__sentence strong { font-weight: 600; }
.crm-activity-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; color: var(--text-muted); font-size: 12.5px; }

/* ---- drawers: tables and lists inside (HUB-571, HUB-617) ---- */
.rd-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rd-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; }
.rd-list li > div { min-width: 0; }
.rd-list strong { display: block; font-size: 14px; }
.rd-list small { display: block; color: var(--text-muted); font-size: 12.5px; }
.rd-list .rd-acts { display: flex; flex: 0 0 auto; gap: 6px; }
.rd-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rd-table th, .rd-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.rd-table th { color: var(--text-muted); font-size: 12.5px; font-weight: 600; }
.rd-props { margin: 0; display: grid; grid-template-columns: minmax(140px, 40%) 1fr; gap: 8px 14px; font-size: 13.5px; }
.rd-props dt { color: var(--text-muted); }
.rd-props dd { margin: 0; overflow-wrap: anywhere; }

/* ---- pages: recycle bin and data quality (HUB-379, HUB-519) ---- */
.tools-page { display: flex; flex-direction: column; gap: 14px; }
.tools-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); }
.tools-tab { padding: 9px 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tools-tab.is-active { border-bottom-color: var(--brand); color: var(--text); }
.dq-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.dq-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-align: left; font: inherit; cursor: pointer; }
.dq-card.is-active { border-color: var(--brand); box-shadow: var(--focus-ring); }
.dq-card strong { font-size: 22px; }
.dq-card span { color: var(--text-muted); font-size: 13px; }
.dq-bar { height: 6px; border-radius: 999px; background: var(--surface-3, #eef0f3); overflow: hidden; min-width: 80px; }
.dq-bar > span { display: block; height: 100%; background: var(--brand); }

/* ---- settings: record customization and create form editors (HUB-381, HUB-593) ---- */
.rc-editor { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1024px) { .rc-editor { grid-template-columns: 1fr; } }
.rc-col { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.rc-col h3 { margin: 0; font-size: 14px; font-weight: 700; }
.rc-item { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2, #f9fafb); font-size: 13.5px; }
.rc-item.is-off { opacity: .55; }
.rc-item > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-item button { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-muted); cursor: pointer; }
.rc-item button:hover:not(:disabled) { background: var(--surface-hover); color: var(--text); }
.rc-item button:disabled { opacity: .3; cursor: default; }
.rc-tab { padding: 8px; border: 1px dashed var(--border-strong); border-radius: 10px; display: grid; gap: 6px; }
.rc-tab__head { display: flex; align-items: center; gap: 6px; }
.rc-tab__head input { flex: 1 1 auto; }

/* =========================================================================
   Contacts list, 28 Oct design (list-page.css): the parts the React page adds
   around the design's .lp markup.
   ========================================================================= */
/* the view's own and the Advanced filters, warnings and errors: in line with the toolbar */
.lp-applied, .lp-notes { padding: 0 24px 10px; }
.lp-applied > * { margin: 0; }
.lp-applied > * + * { margin-top: 6px; }
/* selection bar + bulk actions in the design's bulk bar style (.lp-bulk) */
.lp-bulkwrap:empty { display: none; }
.lp-bulkwrap .list-selection-bar { gap: 12px; margin: 0 24px 10px; padding: 6px 10px; border: 0; border-radius: 8px; background: var(--brand-soft); box-shadow: none; }
.lp-bulkwrap .list-selection-bar__section { padding: 0; }
.lp-bulkwrap .list-selection-bar__section + .list-selection-bar__section { border-left: 0; }
.lp-bulkwrap .list-selection-bar__select-all { color: var(--brand); font-weight: 600; }
.lp-bulkwrap .bulk-bar { gap: 2px; }
.lp-bulkwrap .bulk-bar .btn-crm { height: 32px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font-size: 13.5px; font-weight: 600; box-shadow: none; }
.lp-bulkwrap .bulk-bar .btn-crm:hover { background: rgba(255, 255, 255, .75); }
.lp-bulkwrap .bulk-bar .btn-crm.crm-text-danger { color: var(--danger); }
/* the expand row holds the shared linked-records block */
.lp-exp__in > * { margin: 0; }
/* Export in the bottom bar: the button keeps the pill look, its spinner only while busy */
.vs-foot .vs-pill .btn-crm__spinner { display: none; }
.vs-foot .vs-pill.is-loading .btn-crm__spinner { display: inline-block; }
.vs-split button:disabled { color: var(--text-subtle, var(--text-muted)); cursor: default; background: var(--surface); }
/* the design's table has no row striping or hover from the older .crm-table rules */
.lp-table th, .lp-table td { vertical-align: middle; }
@media (max-width: 899px) {
  .lp-applied, .lp-notes { padding-left: 16px; padding-right: 16px; }
  .lp-bulkwrap .list-selection-bar { margin: 0 16px 10px; }
}
/* tables without the expand column: the pinned Name column sits right after the checkbox */
.lp-table.lp-table--noexp.is-pinned .lp-th--name, .lp-table.lp-table--noexp.is-pinned .lp-td--name { left: 48px; }
@media (max-width: 639px) { .lp-table--noexp .lp-th--name, .lp-table--noexp .lp-td--name { left: 40px; } }
/* GLX (go-live M4, HUB-70): while a list loads, its only row is the "Loading…" cell, so the checkbox
   and expand columns shrank (min-width 0, list-page.css) while the pinned name kept left: 48px /
   80px: the next header slid 30px under it ("al stage" behind Deal name, Owner behind Lead Name). Keep both
   columns at the widths the pins assume (all pinned lists; after loading they are that wide anyway). */
.lp-table.is-pinned .lp-th--check { min-width: 48px; }
.lp-table.is-pinned .lp-th--exp { min-width: 32px; }
@media (max-width: 639px) {
  .lp-table.is-pinned .lp-th--check { min-width: 40px; }
  .lp-table.is-pinned .lp-th--exp { min-width: 28px; }
}

/* ---- 28 Oct design pages without a backend: the design page in a frame (DesignFrame) ---- */
body.crm-design-host .app__main { padding: 0; }
.crm-design-frame { display: block; width: 100%; height: calc(100vh - var(--header-h, 64px)); border: 0; background: var(--bg, #f7f8fa); }
.crm-design-frame--settings { height: calc(100vh - var(--header-h, 64px) - 48px); border-radius: var(--radius-lg, 12px); }
.crm-design-frame--full { position: fixed; inset: 0; z-index: 900; height: 100vh; }
body.crm-design-host .settings__main:has(> .crm-design-frame) { padding: 0; }

/* ---------------------------------------------------------------------------
 * Record pages (28 Oct design record.php): middle tabs with More ▾ and
 * Customize, coming-soon app cards, sample AI cards, the Playbooks card.
 * ------------------------------------------------------------------------- */
.crm-center-tabs.rp-tabs { flex: 0 0 52px; }
.rp-tabs .crm-center-tab {
  flex: 0 0 auto;
  min-width: 0;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  text-decoration: none;
}
.rp-tabs .rp-tabs__more svg,
.rp-tabs .rp-tabs__customize svg { width: 14px; height: 14px; }
.rp-tabs .rp-tabs__customize { margin-left: auto; border-right: 0; border-left: 1px solid var(--border); color: var(--text); }
.rp-tabs .rp-tabs__customize:hover { color: var(--brand); }
/* R8a: tabs that don't fit (28 Oct design record-tabs.css:200-203), on master's classes. Only
   what makes the row narrower: master's tabs already pad 13px (below), under the design's 14px. */
.rp-tabs.rp-tabs--tight .crm-center-tab { font-size: 14px; }
.rp-tabs.rp-tabs--tight .rp-tabs__customize { padding-left: 12px; padding-right: 12px; }
.rp-tabs--icon .rp-tabs__customize span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.crm-contact-profile__identity .lp-av { flex: 0 0 auto; }

.rp-soon { padding: 24px; }
.rp-soon__card {
  max-width: 520px;
  margin: 24px auto;
  padding: 28px 24px;
  border: 1px dashed var(--border-strong, var(--border));
  border-radius: 12px;
  text-align: center;
  background: var(--surface);
}
.rp-soon__card h3 { margin: 10px 0 6px; font-size: 18px; color: var(--text); }
.rp-soon__card p { margin: 0 0 16px; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.rp-soon__badge,
.rp-sample__tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink, var(--brand));
  font-size: 12px;
  font-weight: 600;
}

.rp-samples { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.rp-samples__note { margin: 0; color: var(--text-muted); font-size: 13px; }
.rp-samples__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.rp-sample-sec { margin: 8px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.rp-sample { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.rp-sample__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.rp-sample__head h3 { margin: 0; font-size: 15px; color: var(--text); }
.rp-sample__body { padding: 12px 14px; color: var(--text); font-size: 14px; line-height: 1.5; }
.rp-sample__body p { margin: 0; }
.rp-sample__body ul { margin: 0; padding-left: 18px; }

.rp-card-link { color: var(--brand); font-weight: 600; font-size: 14px; text-decoration: none; }
.rp-playbooks { display: flex; flex-direction: column; gap: 10px; }
.rp-playbooks__search { position: relative; display: block; }
.rp-playbooks__search .input { width: 100%; padding-right: 32px; }
.rp-playbooks__search svg { position: absolute; right: 10px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); color: var(--text-muted); }
.rp-playbook {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
}
.rp-playbook strong { color: var(--brand); font-size: 15px; }
.rp-playbook span { color: var(--text-muted); font-size: 13px; }
.rp-playbook:hover { background: var(--surface-hover); }
.rp-muted { color: var(--text-muted); font-size: 13px; margin: 0; }

/* Activity month headings as in the design ("SEPTEMBER 2026"). */
.crm-activity-month,
.crm-activity-group__title { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.rp-tabs .crm-center-tab { padding: 0 13px; font-size: 14.5px; }
.crm-contact-profile__quick-actions { gap: 4px; }
.crm-contact-profile__quick-actions > button { flex: 1 1 0; min-width: 0; }
.crm-contact-profile__quick-actions > button > span:last-child {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.rp-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 0; padding: 14px; }
.rp-highlights dt { color: var(--text-muted); font-size: 13px; }
.rp-highlights dd { margin: 2px 0 0; color: var(--text); font-size: 15px; font-weight: 600; }
.company-record-main-card .crm-center-tabs.rp-tabs { border-radius: 12px 12px 0 0; }
.crm-center-tabs.rp-tabs { height: 52px; min-height: 52px; }
.rp-tabs .crm-center-tab { height: 100%; }
/* CQS2: the contact record's tabs, all in the row (RecordTabBar `allTabs`, no More). They share
   the row's width, labels centred, Customize at the end; tight when the row is narrow. */
.rp-tabs--all .crm-center-tab:not(.rp-tabs__customize) { flex: 1 0 auto; justify-content: center; }
.rp-tabs--all.rp-tabs--tight .crm-center-tab:not(.rp-tabs__customize) { padding: 0 10px; }
.rp-tabs--all .rp-tabs__customize { flex: 0 0 auto; border-left: 0; }
.rp-sample__tag { white-space: nowrap; flex: 0 0 auto; }

/* QA #366: deal stage bar (design record-page.css .rp-stages); stages passed are done. */
.rp-stages { display: flex; gap: 4px; padding: 12px 14px 0; overflow-x: auto; scrollbar-width: none; flex: 0 0 auto; }
.rp-stages::-webkit-scrollbar { display: none; }
.rp-stage { position: relative; flex: 1 0 auto; height: 36px; padding: 0 16px; border: 0; background: var(--surface-3); color: var(--text-muted); font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); }
.rp-stage:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); border-radius: 8px 0 0 8px; }
.rp-stage:hover { color: var(--text); background: var(--surface-hover); }
.rp-stage.is-done { background: var(--brand-soft); color: var(--brand-ink, var(--brand)); }
.rp-stage.is-active { background: var(--brand); color: var(--brand-contrast); }
.rp-stage[aria-disabled='true'] { cursor: default; }
.rp-stage[aria-disabled='true']:not(.is-active):not(.is-done):hover { color: var(--text-muted); background: var(--surface-3); }
.rp-stage.is-done[aria-disabled='true']:hover { background: var(--brand-soft); color: var(--brand-ink, var(--brand)); }
.rp-stage:focus-visible { outline: 0; box-shadow: inset var(--focus-ring); }
@media (max-width: 767px) { .rp-stages { padding: 10px 10px 0; } }

/* Export view dialog: the shared .vs-x styles (list-design-extras.css) in a list page modal. */
.lp-modal.lp-export { width: min(640px, 100%); }
@media (min-width: 640px) {
  .lp-export .lp-modal__head { padding: 20px 24px; }
  .lp-export .lp-modal__body { padding: 20px 24px; }
  .lp-export .lp-modal__foot { padding: 16px 24px 20px; }
}
.lp-export .lp-modal__head h2 { font-size: 22px; }
.lp-export .lp-modal__head .lp-icon-btn { width: 36px; height: 36px; color: var(--text); }
.lp-export .lp-modal__head .lp-i { width: 20px; height: 20px; }
.lp-export .lp-modal__body { display: block; }
.lp-export .lp-modal__acts { gap: 10px; }
.lp-export .field { margin-bottom: 14px; }
.lp-export .vs-help { margin-top: 6px; }
.lp-export .vs-help--dark { line-height: 1.6; }
.lp-export .vs-x__summary { margin-bottom: 12px; }
.lp-export .vs-x__more summary { margin: 0; }
.lp-export .vs-x__more summary .lp-i { width: 18px; height: 18px; }
/* B5: the design's dialog body inherits `body { font-size: 15px }` (base.css), not the list
   modal's 14px; rules with their own size (headings, radios, help text) keep it. */
.lp-export--design .lp-modal__body { font-size: 15px; }

/* Calendar, Gantt, Report and the client board (AltViews.tsx). */
.lp-calv__bar0 { flex-wrap: wrap; gap: 8px; }
.lp-calv__title { white-space: nowrap; }
.lp-calv__bar0 .lp-input,
.lp-vbar__r .lp-input { width: auto; max-width: 220px; }
.lp-vbar__r { flex-wrap: wrap; gap: 10px; }
.lp-alt-bar { padding: 0 0 8px; justify-content: flex-end; }
.lp-alt-note { margin: 0 0 8px; color: var(--text-muted); font-size: 13px; }
.lp-alt-pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 0; }
.lp-alt-pager button { border: 0; background: none; color: var(--brand); font-weight: 600; cursor: pointer; }
.lp-alt-pager button:disabled { color: var(--text-muted); cursor: default; }
.lp-rep { position: relative; }
.lp-rep-settings { width: 300px; border-left: 1px solid var(--border); padding: 14px; background: var(--surface); }
.lp-rep-settings .lp-rep__ph { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.lp-rep-settings .lp-rep__ph h3 { margin: 0; font-size: 16px; }
.lp-rep-settings .lp-rep__types { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.lp-rep-settings .lp-rep__type { padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; font-size: 13px; }
.lp-rep-settings .lp-rep__type.is-on { border-color: var(--brand); color: var(--brand); font-weight: 600; }
.lp-rep-settings .lp-vbar__f { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-bottom: 12px; }
.lp-rep-settings .lp-vbar__f .lp-input { max-width: none; width: 100%; }
.lp-rep-settings {
  position: absolute;
  top: 0;
  right: 56px;
  bottom: 0;
  z-index: 5;
  overflow: auto;
  box-shadow: -8px 0 24px rgb(0 0 0 / 0.08);
}
.lp-rep-settings .lp-rep__type { height: auto; min-height: 0; padding: 8px 10px; }
.lp-calv__undated { color: var(--text-muted); font-size: 13px; white-space: nowrap; }
/* record page association card quick filters (batch 2: no design, HubSpot-style dropdown buttons) */
.crm-card-qf { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.crm-card-qf__item { position: relative; }
.crm-card-qf__btn { padding: 3px 8px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 4px; cursor: pointer; }
.crm-card-qf__btn:hover, .crm-card-qf__btn.is-on { border-color: var(--brand); color: var(--brand); }
.crm-card-qf__menu { position: absolute; left: 0; top: calc(100% + 4px); z-index: 20; display: grid; min-width: 200px; max-height: 260px; overflow-y: auto; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 12px 32px rgba(16, 24, 40, .16); }
.crm-card-qf__opt { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-size: 13px; border-radius: 6px; cursor: pointer; }
.crm-card-qf__opt:hover { background: var(--surface-hover); }
.crm-card-qf__note { padding: 6px 8px; font-size: 13px; color: var(--text-muted); }
.crm-card-qf__clear { justify-self: start; padding: 6px 8px; font: inherit; font-size: 13px; font-weight: 600; color: var(--brand); background: none; border: 0; cursor: pointer; }
.crm-card-qf__error { margin: 6px 0 0; font-size: 13px; color: var(--danger, #d92d20); }

/* R8b: the contact Overview's cards, as the 28 Oct design (record-tabs.css:12-116, the rules
   of the classes it uses), scoped to the Overview: company Catch-up has its own .rt-card. */
.rp-overview.rt-panel { display: flex; flex-direction: column; gap: 16px; padding: 16px 0 24px; }
.rp-overview .rt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rp-overview .rt-card { background: var(--surface, #fff); border: 1px solid var(--border, #e4e7ec); border-radius: var(--radius-lg, 12px); min-width: 0; }
.rp-overview .rt-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px 0; }
.rp-overview .rt-card__head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.rp-overview .rt-card__head h3:empty { display: none; }
.rp-overview .rt-card__acts { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.rp-overview .rt-card__body { padding: 14px 22px 20px; font-size: 14px; line-height: 1.5; min-width: 0; }
.rp-overview .rt-card p { margin: 0 0 10px; }
.rp-overview .rt-gear { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: var(--text-muted, #475467); background: var(--surface, #fff); border: 1px solid var(--border-strong, #d0d5dd); border-radius: var(--radius-sm, 8px); cursor: pointer; }
.rp-overview .rt-gear svg { width: 15px; height: 15px; }
.rp-overview .rt-gear:hover { color: var(--text, #101828); background: var(--surface-hover, #f2f4f7); }
.rp-overview .rt-linkbtn { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--brand, #2456e6); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.rp-overview .rt-linkbtn svg { width: 14px; height: 14px; }
.rp-overview .rt-linkbtn:hover { text-decoration: underline; }
.rp-overview .rt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; font: inherit; font-size: 14px; font-weight: 600; color: var(--text, #101828); background: var(--surface, #fff); border: 1px solid var(--border-strong, #d0d5dd); border-radius: var(--radius-sm, 8px); cursor: pointer; text-decoration: none; white-space: nowrap; }
.rp-overview .rt-btn:hover { background: var(--surface-hover, #f2f4f7); }
.rp-overview .rt-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.rp-overview .rt-btn svg { width: 14px; height: 14px; }
.rp-overview .rt-plain { display: inline-flex; align-items: center; gap: 4px; padding: 4px 2px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text, #101828); background: none; border: 0; cursor: pointer; }
.rp-overview .rt-plain svg, .rp-overview .rt-chip svg { width: 10px; height: 10px; }
.rp-overview .rt-btn:focus-visible, .rp-overview .rt-plain:focus-visible, .rp-overview .rt-gear:focus-visible, .rp-overview .rt-linkbtn:focus-visible { outline: 2px solid var(--brand, #2456e6); outline-offset: 2px; }
.rp-overview .rt-link { color: var(--brand, #2456e6); font-weight: 600; text-decoration: none; }
.rp-overview .rt-link:hover { text-decoration: underline; }
.rp-overview .rt-link svg { width: 13px; height: 13px; vertical-align: -2px; }
.rp-overview .rt-muted { color: var(--text-muted, #475467); }
.rp-overview .rt-grow { flex: 1; }
.rp-overview .rt-search { position: relative; display: inline-flex; min-width: 0; }
.rp-overview .rt-search input { width: 200px; max-width: 100%; height: 36px; padding: 0 34px 0 12px; font: inherit; font-size: 14px; color: var(--text, #101828); background: var(--surface, #fff); border: 1px solid var(--border-strong, #d0d5dd); border-radius: var(--radius-sm, 8px); }
.rp-overview .rt-search svg { position: absolute; right: 10px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; color: var(--text-muted, #475467); pointer-events: none; }
.rp-overview .rt-search input:focus { outline: none; border-color: var(--brand, #2456e6); box-shadow: 0 0 0 3px rgba(36, 86, 230, .15); }
.rp-overview .rt-acttools, .rp-overview .rt-tabletools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.rp-overview .rt-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.rp-overview .rt-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 6px 0 12px; font-size: 13.5px; font-weight: 600; background: var(--surface-3, #eef1f5); border-radius: var(--radius-sm, 8px); }
.rp-overview .rt-chip button { display: inline-flex; padding: 4px; color: var(--text-muted, #475467); background: none; border: 0; cursor: pointer; }
.rp-overview .rt-chips--plain { gap: 14px; }
.rp-overview .rt-month { margin: 6px 0 8px !important; font-size: 15px; font-weight: 600; }
.rp-overview .rt-tl { margin: 0 0 8px; padding: 0 0 0 26px; list-style: none; position: relative; }
.rp-overview .rt-tl::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 1px; background: var(--border, #e4e7ec); }
.rp-overview .rt-tl__item { position: relative; margin-bottom: 10px; }
.rp-overview .rt-tl__dot { position: absolute; left: -24px; top: 12px; width: 14px; height: 14px; background: var(--surface, #fff); border: 2px solid var(--border-strong, #98a2b3); border-radius: 50%; }
.rp-overview .rt-tl__dot--email { border-color: #2456e6; }
.rp-overview .rt-tl__dot--call { border-color: #12b76a; }
.rp-overview .rt-tl__dot--meeting { border-color: #7a5af8; }
.rp-overview .rt-tl__dot--note { border-color: #f79009; }
.rp-overview .rt-tl__dot--task { border-color: #0ba5ec; }
.rp-overview .rt-tl__card { padding: 10px 14px; border: 1px solid var(--border, #e4e7ec); border-radius: var(--radius-sm, 8px); background: var(--surface, #fff); }
.rp-overview .rt-tl__card summary { display: flex; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.rp-overview .rt-tl__card summary::-webkit-details-marker { display: none; }
.rp-overview .rt-tl__card time { font-size: 12.5px; color: var(--text-muted, #475467); white-space: nowrap; }
.rp-overview .rt-tl__card p { margin: 8px 0 0 !important; }
.rp-overview .rt-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; text-align: center; color: var(--text-muted, #475467); }
.rp-overview .rt-empty strong { color: var(--text, #101828); font-size: 15px; }
.rp-overview .rt-emptyart { width: 110px; height: 80px; }
.rp-overview .rt-tablewrap { overflow-x: auto; border: 1px solid var(--border, #e4e7ec); border-radius: var(--radius-sm, 8px); }
.rp-overview .rt-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13.5px; }
.rp-overview .rt-table th { padding: 10px 12px; font-size: 12.5px; font-weight: 700; text-align: left; text-transform: none; background: var(--surface-2, #f9fafb); border-bottom: 1px solid var(--border, #e4e7ec); white-space: nowrap; }
.rp-overview .rt-table td { padding: 10px 12px; border-bottom: 1px solid var(--border, #e4e7ec); white-space: nowrap; text-transform: none; }
.rp-overview .rt-table tr:last-child td { border-bottom: 0; }
.rp-overview .rt-av { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 8px; font-size: 11px; font-weight: 700; color: var(--text, #101828); background: var(--surface-3, #eef1f5); border-radius: 50%; vertical-align: middle; }
.rp-overview .rt-tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; font-size: 12.5px; font-weight: 600; color: var(--text, #101828); background: var(--surface-3, #eef1f5); border: 1px solid var(--border-strong, #d0d5dd); border-radius: 6px; white-space: nowrap; }
.rp-overview .rt-pager { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.rp-overview .rt-pager button { min-width: 32px; height: 32px; padding: 0 8px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text, #101828); background: none; border: 1px solid transparent; border-radius: var(--radius-sm, 8px); cursor: pointer; }
.rp-overview .rt-pager button[aria-current="page"] { border-color: var(--text, #101828); }
.rp-overview .rt-pager button[disabled] { color: var(--text-subtle, #98a2b3); cursor: default; }
.rp-overview .rt-hl, .rp-overview .rt-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; margin: 0; text-align: center; }
.rp-overview .rt-hl dt, .rp-overview .rt-totals dt { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--text, #101828); }
.rp-overview .rt-hl dd { margin: 6px 0 0; }
.rp-overview .rt-totals dd { margin: 4px 0 0; font-size: 26px; font-weight: 700; }

/* LD3: the record name's popover, as the 28 Oct design (record-page.css:151-175). The pencil's
   own rules (.rp-namedit) were already above; the name is an h1 here, not .rp-name. */
.rp-namerow { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rp-namerow > h1 { min-width: 0; }
.rp-namedit:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.rp-np { position: fixed; z-index: 1100; display: flex; flex-direction: column; gap: 4px; max-width: calc(100vw - 16px); max-height: calc(100vh - 24px); overflow-y: auto; padding: 18px 22px 20px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: 0 16px 40px rgba(16, 24, 40, .18); }
.rp-np__arrow { position: absolute; top: -8px; width: 14px; height: 14px; margin-left: -7px; border-top: 1px solid var(--border-strong); border-left: 1px solid var(--border-strong); background: var(--surface); transform: rotate(45deg); }
.rp-np.is-up .rp-np__arrow { top: auto; bottom: -8px; transform: rotate(225deg); }
.rp-np { overflow: visible; }
.rp-np__field { display: flex; flex-direction: column; padding: 6px 0; }
.rp-np__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rp-np__head label { color: var(--text-muted); font-size: 13.5px; }
.rp-np__details { padding: 0; border: 0; background: transparent; color: var(--brand); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; opacity: 0; }
.rp-np__field:hover .rp-np__details, .rp-np__field:focus-within .rp-np__details, .rp-np__details:focus-visible { opacity: 1; }
.rp-np__input { width: 100%; height: 36px; padding: 0; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; text-overflow: ellipsis; }
.rp-np__input:hover { border-bottom-color: var(--border-strong); }
.rp-np__input:focus { outline: 0; border-bottom: 2px solid var(--brand); }
.rp-np__input[aria-invalid="true"] { border-bottom-color: var(--danger); }
.rp-np__err { color: var(--danger); font-size: 12.5px; }
.rp-np__err:empty { display: none; }
@media (max-width: 480px) {
  .rp-np { padding: 14px 16px 16px; }
}

/* ---- SQ1: record "Enroll in a sequence" dialog, as the design's record-popups-hs.css
   (.hx-modal--lg :104, .hx-seq :313-325, .hx-bar :18, .hx-searchbox :34-40, .hx-filter :45-49,
   .hx-table :84-89, .hx-linkbtn :14-15, .hx-sub :23, .hx-lead :9) ---- */
#enrollSequenceModal .modal { width: min(940px, 100%); max-width: none; }
#enrollSequenceModal .modal__header { gap: 12px; }
#enrollSequenceModal .modal__title { flex: 1; }
.crm-seqpick__back { margin-left: -6px; }
.crm-seqpick { display: flex; flex-direction: column; gap: 20px; min-height: 360px; max-height: calc(100vh - 220px); overflow-y: auto; }
.crm-seqpick__bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.crm-seqpick__search { position: relative; display: inline-flex; align-items: center; width: 240px; max-width: 100%; }
.crm-seqpick__search input { width: 100%; height: 40px; padding: 0 40px 0 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; font-size: 14.5px; }
.crm-seqpick__search input:focus { outline: 0; border-color: var(--brand); box-shadow: var(--focus-ring); }
.crm-seqpick__search input::-webkit-search-cancel-button { display: none; }
.crm-seqpick__search svg { position: absolute; right: 13px; color: var(--text-muted); pointer-events: none; }
.crm-seqpick__filter { display: inline-flex; align-items: center; gap: 14px; }
.crm-seqpick__filter-l { font-size: 15px; font-weight: 500; }
.crm-seqpick__filter-b { display: inline-flex; align-items: center; gap: 2px; padding: 4px 6px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.crm-seqpick__filter-b:hover { background: var(--surface-hover); }
.crm-seqpick__filter-b[aria-expanded="true"] { border-color: var(--brand); }
.crm-seqpick__tablewrap { overflow-x: auto; }
.crm-seqpick__table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.crm-seqpick__table th { padding: 14px 16px; border-bottom: 1px solid var(--text-muted); color: var(--text-muted); font-weight: 500; text-align: left; white-space: nowrap; }
.crm-seqpick__table td { padding: 18px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; line-height: 1.45; }
.crm-seqpick__table tbody tr:hover { background: var(--surface-hover); }
.crm-seqpick__sort { display: inline-flex; align-items: center; gap: 8px; padding: 2px; border: 0; border-radius: 4px; background: none; color: inherit; font: inherit; cursor: pointer; }
.crm-seqpick__name { display: inline-flex; padding: 0; border: 0; background: none; color: var(--brand); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
.crm-seqpick__name:hover { text-decoration: underline; }
.crm-seqpick__filter-b:focus-visible, .crm-seqpick__sort:focus-visible, .crm-seqpick__name:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.crm-seqpick__sub { display: block; margin-top: 4px; color: var(--text-muted); font-size: 13.5px; }
.crm-seqpick__empty { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 40px; }
.crm-seqpick__empty h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
.crm-seqpick__empty p { margin: 0 0 12px; color: var(--text-muted); }
.crm-seqpick__empty svg { width: 180px; flex: none; }
.crm-seqpick__lead { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); }
.crm-seqpick__steps { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.crm-seqpick__step { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; }
.crm-seqpick__step-n { display: inline-grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); font-size: 13px; font-weight: 700; }
.crm-seqpick__step div { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.crm-seqpick__step small { color: var(--text-muted); }
.crm-seqpick__foot { flex-wrap: wrap; justify-content: flex-start; gap: 12px; border-top: 1px solid var(--border); }
