.crm-share, .crm-followup, .crm-sales-tracking, .crm-sales-switch {
    --feature-ink:#112521;
    --feature-muted:#46535a;
    --feature-line:#cdd9d9;
    --feature-mint:#caf0df;
    color:var(--feature-ink);
}
.crm-share [hidden], #chat-sidebar [hidden], #sales-page [hidden] { display:none!important; }
body#crm-app.crm-v2 main.crm-share { max-width:680px!important; }
.crm-share h1, .crm-sales-switch h1 { margin:0 0 10px; }
.crm-share a:not(.v2-button) { text-decoration:none; }
.crm-share-back { display:inline-flex; gap:10px; align-items:center; min-height:44px; margin-bottom:12px; font-weight:650; color:inherit; text-decoration:none; }
.crm-share-back svg, .crm-feature-action svg { width:20px; height:20px; flex:none; }
.crm-feature-muted { color:var(--feature-muted); margin:0 0 14px; line-height:1.5; }
.crm-feature-muted:empty { display:none; }
.crm-feature-card { background:#fff; border:1px solid var(--feature-line); border-radius:13px; padding:14px; }
.crm-share-picker { display:flex; align-items:center; gap:12px; margin:14px 0; }
.crm-share-picker svg { width:23px; height:23px; flex:none; }
.crm-share-picker label { flex:1; min-width:0; font-size:.87rem; color:var(--feature-muted); }
.crm-share-picker select { width:100%; display:block; font-weight:650; border:0; padding:4px 6px 4px 0; }
.crm-share-code { display:grid; justify-items:center; text-align:center; gap:7px; padding:20px 12px; }
.crm-share-code canvas { display:block; width:min(55%,220px); height:auto; image-rendering:pixelated; }
.crm-share-code span { margin:0; }
.crm-share-code a { font-size:clamp(.94rem,4vw,1.18rem); font-weight:750; color:inherit; overflow-wrap:anywhere; }
.crm-feature-action { width:100%; text-decoration:none; min-height:44px; border-radius:9px; }
.crm-share .crm-feature-action { margin-top:9px; }
.crm-share-message { margin-top:16px; }
.crm-share-message label, .crm-tracking-form > label { display:block; color:var(--feature-muted); font-weight:650; }
.crm-share-message textarea { width:100%; display:block; resize:vertical; border:0; margin-top:5px; padding:4px 0; color:inherit; }
.dashboard-share-link { margin-bottom:12px; text-decoration:none; }

.crm-feature-tabs, .crm-feature-filters { display:flex; min-width:0; }
.crm-feature-tabs { border:1px solid #cdd9d9; border-radius:10px; overflow:hidden; margin:0 0 12px; }
.crm-feature-tabs button, .crm-feature-filters button { color:inherit; min-height:44px; padding:6px 11px; min-width:0; font-weight:650; border:0; }
.crm-feature-tabs button { flex:1; background:transparent; }
.crm-feature-tabs button[aria-pressed=true], .crm-feature-filters button[aria-pressed=true] { background:#caf0df; color:#094936; }
.crm-feature-tabs button:focus-visible { outline-offset:-3px!important; }
.crm-feature-filters { gap:8px; margin:0 0 12px; }
.crm-feature-filters button { background:#fff; border:1px solid var(--feature-line); border-radius:9px; }
.crm-followup { overflow:auto; flex:1 1 auto; min-height:0; padding:0 14px 16px; }
body[data-followup-mode] .chat-compose-fab { display:none!important; }
body[data-followup-mode] .chat-list-header .crm-feature-tabs { margin-top:10px; }
.crm-tracking-rows { display:grid; gap:7px; }
.crm-followup .crm-tracking-rows:not(:empty) { overflow:hidden; gap:0; border:1px solid var(--feature-line); border-radius:13px; }
.crm-followup .crm-track-row { border:0; border-radius:0; }
.crm-followup .crm-track-row + .crm-track-row { border-top:1px solid var(--feature-line); }
.crm-followup .crm-track-row[aria-pressed=true] { background:#e2f6ed; }
.crm-track-row { display:flex; width:100%; align-items:center; gap:9px; min-height:57px; padding:10px 12px; text-align:left; border:1px solid var(--feature-line); border-radius:11px; background:#fff; color:inherit; }
.crm-track-row[aria-pressed=true] { border-color:#087354; box-shadow:inset 0 0 0 1px #087354; }
.crm-track-avatar { border-radius:50%; flex:0 0 38px; width:38px; height:38px; display:grid; place-items:center; background:#e2eeed; color:#124c3c; font-weight:750; }
.crm-track-text { display:grid; flex:1; min-width:0; gap:1px; }
.crm-track-text strong, .crm-track-text small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.crm-track-text strong { font-size:clamp(.93rem,3.7vw,1.08rem); }
.crm-track-text small { color:var(--feature-muted); font-size:.86rem; }
.crm-track-badge { flex:0 1 auto; max-width:46%; text-align:center; border-radius:7px; padding:4px 7px; font-weight:620; font-size:.76rem; }
.crm-track-new { background:#e4ebee; }
.crm-track-quoted { background:#dceeff; color:#154575; }
.crm-track-payment { background:#fff0c7; color:#684012; }
.crm-track-sold { background:#d1f4e3; color:#08513b; }
.crm-tracking-form, .crm-followup #followup-status, #stage-status { margin-top:12px; }
.crm-tracking-form h2 { margin:0 0 8px; font-size:1.18rem; }
.crm-tracking-form input, .crm-tracking-form select, #stage-filter, #stage-business { width:100%; border:1px solid var(--feature-line); color:inherit; padding:8px; }
.crm-tracking-form input, .crm-tracking-form select, .crm-tracking-form .crm-feature-action { margin:5px 0 10px; }
.crm-tracking-links { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.crm-tracking-links button { flex:1 1 130px; text-align:center; }

.crm-sales-switch { grid-column:1/-1; padding:17px clamp(15px,1.55vw,26px) 0; }
body#crm-app.crm-v2.sales-workspace #sales-page { grid-template-rows:auto 1fr; }
.crm-sales-switch .crm-feature-tabs { max-width:520px; margin-bottom:0; }
.crm-sales-tracking { grid-column:1/-1; width:min(100%,780px); padding:17px clamp(15px,1.55vw,26px) 24px; }
.crm-sales-stage-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
.crm-sales-stage-heading h2 { margin:0; font-size:clamp(1.17rem,4vw,1.5rem); font-weight:750; }
#stage-business { width:auto; max-width:100%; }
.crm-sales-stage-heading .ry-select { width:fit-content!important; min-width:0; max-width:100%; }
.crm-sales-stage-heading .ry-select button { width:auto; max-width:100%; }
#stage-filter { margin-bottom:10px; }
#sales-page[data-tracking-view] #sales-detail { display:none!important; }
@media(max-width:767px) {
    #sales-page[data-detail-open]:not([data-tracking-view]) .crm-sales-switch { display:none; }
    body#crm-app.crm-v2.sales-workspace:has(#sales-page[data-tracking-view][data-detail-open]) { overflow:visible; }
    .sales-workspace:has(#sales-page[data-tracking-view][data-detail-open]) :is(.v2-mobile-header,.v2-mobile-nav,.v2-more) { visibility:visible; }
}
