/* CRM V2 channel workspace. Every rule is opt-in and belongs to its screen root. */
html[data-crm-ui="v2"] #channels-center { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 28px; max-width: 1360px; font-size: 14px; line-height: 1.45; }
html[data-crm-ui="v2"] #channels-center .crm-v2-channel-main { min-width: 0; max-width: 960px; }
html[data-crm-ui="v2"] #channels-center .crm-v2-channel-nav { display: flex; flex-direction: column; gap: 4px; min-width: 0; position: sticky; top: calc(var(--header-height, 60px) + 24px); }
html[data-crm-ui="v2"] #channels-center .crm-v2-channel-nav h2 { font-size: 18px; font-weight: 650; margin: 0 10px 14px; }
html[data-crm-ui="v2"] #channels-center .crm-v2-channel-nav a { display: flex; align-items: center; min-height: 40px; padding: 10px 12px; border-radius: 9px; color: var(--text-secondary); font-size: 13px; font-weight: 500; }
html[data-crm-ui="v2"] #channels-center .crm-v2-channel-nav a:hover { background: var(--bg-hover); color: var(--text-primary); text-decoration: none; }
html[data-crm-ui="v2"] #channels-center .crm-v2-channel-nav a[aria-current="page"] { color: var(--brand-link); background: var(--bg-hover); font-weight: 650; }
html[data-crm-ui="v2"] #channels-center .channels-heading { align-items: flex-end; gap: 12px; margin-bottom: 18px; }
html[data-crm-ui="v2"] #channels-center .channels-heading h1 { margin: 0 0 6px; font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
html[data-crm-ui="v2"] #channels-center .channels-heading p { font-size: 13px; line-height: 1.5; max-width: 580px; }
html[data-crm-ui="v2"] #channels-center .channels-grid { display: flex; flex-direction: column; gap: 16px; }
html[data-crm-ui="v2"] #channels-center .channels-card.card { min-height: 0; padding: 0; border-radius: 12px; overflow: hidden; background: var(--bg-card); box-shadow: none; }
html[data-crm-ui="v2"] #channels-center .channels-card.card:hover { border-color: var(--border-color); transform: none; box-shadow: none; }
html[data-crm-ui="v2"] #channels-center .channels-v2-card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 18px; }
html[data-crm-ui="v2"] #channels-center .channels-icon { width: 40px; height: 40px; border-radius: 11px; font-size: 20px; }
html[data-crm-ui="v2"] #channels-center .channels-v2-card-copy { flex: 1 1 200px; min-width: 0; }
html[data-crm-ui="v2"] #channels-center .channels-v2-card-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
html[data-crm-ui="v2"] #channels-center .channels-v2-card-title h3 { font-size: 15px; font-weight: 650; margin: 0; }
html[data-crm-ui="v2"] #channels-center .channels-status { min-height: 22px; padding: 3px 8px; font-size: 11.5px; font-weight: 600; }
html[data-crm-ui="v2"] #channels-center .channels-description { font-size: 12.5px; margin: 4px 0 0; line-height: 1.5; }
html[data-crm-ui="v2"] #channels-center .channels-v2-card-controls { display: flex; flex-wrap: wrap; gap: 8px; }
html[data-crm-ui="v2"] #channels-center .channels-accounts { padding: 0 18px; }
html[data-crm-ui="v2"] #channels-center .channels-account { border-top: 1px solid var(--border-color); padding: 14px 0; }
html[data-crm-ui="v2"] #channels-center .channels-account h4 { font-size: 13px; font-weight: 600; }
html[data-crm-ui="v2"] #channels-center .channels-account-feedback { margin: 12px 0 0; font-size: 13px; overflow-wrap: anywhere; color: var(--brand-link); }
html[data-crm-ui="v2"] #channels-center .channels-account-feedback[role="alert"] { color: var(--danger); padding: 10px 12px; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 9px; }
html[data-crm-ui="v2"] #channels-center .channels-empty { margin: 0 0 16px; font-size: 13px; }
html[data-crm-ui="v2"] #channels-center .channels-v2-card-footer { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--border-color); background: var(--bg-tertiary); }
html[data-crm-ui="v2"] #channels-center .channels-v2-card-footer .channels-details { margin: 0; padding: 0; flex: 1 1 180px; }
html[data-crm-ui="v2"] #channels-center .channels-details > summary { min-height: 36px; display: flex; align-items: center; font-size: 12.5px; }
html[data-crm-ui="v2"] #channels-center .channels-ai { background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 9px; padding: 0; }
html[data-crm-ui="v2"] #channels-center .channels-ai > summary { padding: 12px 14px; font-size: 12.5px; }
html[data-crm-ui="v2"] #channels-center .channels-ai-status { display: inline-block; margin: 0 0 0 12px; font-size: 11.5px; }
html[data-crm-ui="v2"] #channels-center .channels-ai-form { padding: 0 14px 14px; margin: 0; }
html[data-crm-ui="v2"] #channels-center .channels-note { font-size: 12px; line-height: 1.5; }
html[data-crm-ui="v2"] #channels-center .channels-pending { margin: 0 18px 16px; padding: 12px 14px; font-size: 12.5px; }
html[data-crm-ui="v2"] #channels-center .channels-workspace, html[data-crm-ui="v2"] #channels-center .channels-overview { margin-top: 18px; border-radius: 12px; }
html[data-crm-ui="v2"] #channels-center .channels-workspace > summary, html[data-crm-ui="v2"] #channels-center .channels-overview > summary { padding: 16px 18px; }
html[data-crm-ui="v2"] #channels-center .channels-disclosure-copy strong { font-size: 14px; }
html[data-crm-ui="v2"] #channels-center .channels-disclosure-copy small { font-size: 12px; }
html[data-crm-ui="v2"] #channels-center #website-setup { padding: 18px; }
html[data-crm-ui="v2"] #channels-center .channels-readiness { padding: 18px; }
html[data-crm-ui="v2"] #channels-center .channels-readiness-heading h3 { font-size: 15px; }
html[data-crm-ui="v2"] #channels-center .channels-steps, html[data-crm-ui="v2"] #channels-center .channels-usage { gap: 12px; }
html[data-crm-ui="v2"] #channels-center .channels-steps li, html[data-crm-ui="v2"] #channels-center .channels-usage-item { border-radius: 9px; }
html[data-crm-ui="v2"] #channels-center .channels-queue dd, html[data-crm-ui="v2"] #channels-center .channels-usage-item strong { font-variant-numeric: tabular-nums; }
html[data-crm-ui="v2"] #channels-center .btn { min-height: 36px; border-radius: 9px; padding: 8px 12px; font-size: 12.5px; font-weight: 600; box-shadow: none; }
html[data-crm-ui="v2"] #channels-center .btn-primary { background: var(--brand-link); color: var(--text-inverse, #fff); }
html[data-crm-ui="v2"] #channels-center .btn-primary:hover { background: var(--brand-link-hover); transform: none; }
html[data-crm-ui="v2"] #channels-center .form-control { border-radius: 9px; background: var(--bg-card); font-size: 13px; }
html[data-crm-ui="v2"] #channels-center .channels-page-selection { padding: 0 18px; }
/* Settings-WhatsApp keeps its existing account/onboarding callbacks and live fields. */
html[data-crm-ui="v2"] #settings-tab-content #whatsapp-channel-section { border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; padding: 0; background: var(--bg-card); }
html[data-crm-ui="v2"] #settings-tab-content #whatsapp-channel-section .settings-card-header { padding: 16px 18px; border-bottom: 1px solid var(--border-color); margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
html[data-crm-ui="v2"] #settings-tab-content #whatsapp-channel-section .settings-card-header h3 { font-size: 15px; font-weight: 650; }
html[data-crm-ui="v2"] #settings-tab-content #whatsapp-channel-section .wa-account-row { padding: 18px; margin: 0; border: 0; border-bottom: 1px solid var(--border-color); background: transparent; border-radius: 0; align-items: start; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
html[data-crm-ui="v2"] #settings-tab-content #whatsapp-channel-section .wa-account-row:last-child { border-bottom: 0; }
html[data-crm-ui="v2"] #settings-tab-content #whatsapp-channel-section .wa-account-info { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
html[data-crm-ui="v2"] #settings-tab-content #whatsapp-channel-section .wa-account-phone { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; margin: 10px 0 4px; }
html[data-crm-ui="v2"] #settings-tab-content #whatsapp-channel-section .wa-account-name { font-size: 13px; color: var(--text-secondary); }
html[data-crm-ui="v2"] #settings-tab-content #whatsapp-channel-section .wa-account-meta { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-secondary); margin-top: 12px; }
html[data-crm-ui="v2"] #settings-tab-content #whatsapp-channel-section .wa-account-actions { flex-wrap: wrap; }
html[data-crm-ui="v2"] #settings-tab-content #whatsapp-channel-section .btn { min-height: 38px; border-radius: 9px; font-size: 12.5px; }
html[data-crm-ui="v2"] #settings-tab-content #whatsapp-channel-section .wa-connect-hero { padding: 32px 18px; }
@media (max-width: 1024px) {
    html[data-crm-ui="v2"] #channels-center { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
    html[data-crm-ui="v2"] #channels-center .crm-v2-channel-nav { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
    html[data-crm-ui="v2"] #channels-center .crm-v2-channel-nav h2 { display: none; }
    html[data-crm-ui="v2"] #channels-center .crm-v2-channel-nav a { flex: 0 0 auto; white-space: nowrap; }
}
@media (max-width: 768px) {
    html[data-crm-ui="v2"] #channels-center { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    html[data-crm-ui="v2"] #settings-tab-content #whatsapp-channel-section .btn { min-height: 44px; }
    html[data-crm-ui="v2"] #channels-center .btn, html[data-crm-ui="v2"] #channels-center .crm-v2-channel-nav a, html[data-crm-ui="v2"] #channels-center .channels-details > summary { min-height: 44px; }
    html[data-crm-ui="v2"] #channels-center .channels-steps, html[data-crm-ui="v2"] #channels-center .channels-usage { grid-template-columns: minmax(0, 1fr); }
    html[data-crm-ui="v2"] #channels-center .channels-v2-card-top { padding: 16px; }
    html[data-crm-ui="v2"] #channels-center .channels-v2-card-controls { flex-basis: 100%; }
    html[data-crm-ui="v2"] #channels-center .channels-v2-card-controls > .btn { width: 100%; justify-content: center; }
    html[data-crm-ui="v2"] #channels-center .channels-accounts { padding: 0 16px; }
    html[data-crm-ui="v2"] #channels-center .channels-v2-card-footer { padding: 12px 16px; align-items: stretch; }
    html[data-crm-ui="v2"] #channels-center .channels-ai-status { display: block; margin: 4px 0 0; }
    html[data-crm-ui="v2"] #channels-center .channels-heading { align-items: start; }
    html[data-crm-ui="v2"] #channels-center #website-setup { padding: 16px; }
}

/* Settings-Website: real website state, progressive settings and safe visual preview. */
html[data-crm-ui="v2"] #website-setup .website-v2 { margin: 0; padding: 0; color: var(--text-primary); background: transparent; border: 0; }
html[data-crm-ui="v2"] #website-setup .website-v2 [hidden] { display: none !important; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-heading { gap: 12px; align-items: start; margin: 0 0 18px; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-heading h3 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-heading .website-actions { margin: 0; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-picker { margin: 0 0 18px; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-picker > div { max-width: 420px; min-width: 0; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-v2-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; background: var(--bg-card, var(--bg-primary)); border: 1px solid var(--border-color); border-radius: 12px; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-v2-overview > section { min-width: 0; padding: 16px 18px; border: 0; border-radius: 0; overflow-wrap: anywhere; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-v2-overview > section + section { border-left: 1px solid var(--border-color); }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-v2-site-status > strong { display: block; font-size: 18px; margin: 6px 0; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-v2-site-status[data-website-live-status="active"] > strong { color: var(--success, #0e6b40); }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-v2-domain-status { display: flex; flex-direction: column; align-items: start; gap: 8px; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-v2-domain-status strong { font-size: 13px; padding: 4px 8px; border-radius: 999px; background: var(--bg-tertiary); }
html[data-crm-ui="v2"] #website-setup .website-v2 [data-website-overview-verification="verified"] { color: var(--success, #0e6b40); }
html[data-crm-ui="v2"][data-theme="dark"] #website-setup .website-v2 .website-v2-site-status[data-website-live-status="active"] > strong,
html[data-crm-ui="v2"][data-theme="dark"] #website-setup .website-v2 [data-website-overview-verification="verified"] { color: #8ce5b0; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-entitlements { margin: 14px 0 0; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-allowance { padding: 14px 18px; border-radius: 12px; background: var(--bg-card, var(--bg-primary)); }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-allowance > strong { font-size: 18px; font-variant-numeric: tabular-nums; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-feedback:empty { min-height: 0; margin: 12px 0; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-v2-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--border-color); margin: 18px 0; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-v2-tabs > button { flex-shrink: 0; min-height: 44px; padding: 0 14px; color: var(--text-secondary); background: transparent; border: 0; border-bottom: 2px solid transparent; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-v2-tabs > button[aria-selected="true"] { color: var(--text-primary); border-bottom-color: var(--brand-primary, var(--primary-color, #00707f)); }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-v2-tabs > button:focus-visible { outline: 2px solid var(--brand-primary, var(--primary-color, #00707f)); outline-offset: -3px; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-v2-form-card { min-width: 0; padding: 18px; background: var(--bg-card, var(--bg-primary)); border: 1px solid var(--border-color); border-radius: 12px; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-v2-form-card h4 { margin: 0 0 16px; font-size: 15px; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-workspace { grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr); gap: 20px; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-form-grid { gap: 12px 16px; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-limits { margin-top: 16px; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-v2-ai-note { padding: 12px 14px; border: 1px solid var(--border-color); border-radius: 9px; background: var(--bg-tertiary); margin-bottom: 16px; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-v2-ai-note p { margin: 0 0 8px; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-v2-save { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; padding: 18px 0 0; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-v2-save p { flex: 1; min-width: 180px; margin: 0; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-preview { padding: 0; background: transparent; top: 16px; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-preview > h4 { font-size: 13px; font-weight: 600; }
html[data-crm-ui="v2"] #website-setup .website-v2 [data-website-preview] { padding: 24px 16px; min-height: 380px; align-items: end; border: 1px solid var(--border-color); border-radius: 14px; background: repeating-linear-gradient(0deg, var(--bg-tertiary) 0, var(--bg-tertiary) 1px, var(--bg-secondary) 1px, var(--bg-secondary) 28px); }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-preview-chat { box-shadow: 0 12px 32px rgba(5,35,48,.12); padding-bottom: 0; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-preview-chat p.website-preview-visitor { background: var(--website-color); color: #fff; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-v2-preview-footer { border-top: 1px solid var(--border-color); padding: 12px; margin-top: 12px; }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-v2-preview-footer span { display: block; padding: 9px 10px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 12px; color: var(--text-secondary); }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-install { padding: 18px; margin: 0; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-card, var(--bg-primary)); }
html[data-crm-ui="v2"] #website-setup .website-v2 #website-embed { margin-top: 14px; background: var(--bg-tertiary); }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-status-list > div { grid-template-columns: minmax(140px, .7fr) minmax(0, 1.5fr); }
html[data-crm-ui="v2"] #website-setup .website-v2 .website-verification-file { background: var(--bg-tertiary); border-radius: 10px; }
html[data-crm-ui="v2"] #website-setup .website-v2 button, html[data-crm-ui="v2"] #website-setup .website-v2 .btn { min-height: 38px; }
@media (max-width: 1000px) {
    html[data-crm-ui="v2"] #website-setup .website-v2 .website-workspace { grid-template-columns: 1fr; }
    html[data-crm-ui="v2"] #website-setup .website-v2 .website-preview { position: static; max-width: 500px; width: 100%; }
}
@media (max-width: 600px) {
    html[data-crm-ui="v2"] #website-setup .website-v2 .website-v2-overview { grid-template-columns: 1fr; }
    html[data-crm-ui="v2"] #website-setup .website-v2 .website-v2-overview > section + section { border-left: 0; border-top: 1px solid var(--border-color); }
    html[data-crm-ui="v2"] #website-setup .website-v2 .website-form-grid, html[data-crm-ui="v2"] #website-setup .website-v2 .website-limits, html[data-crm-ui="v2"] #website-setup .website-v2 .website-status-list > div { grid-template-columns: 1fr; }
    html[data-crm-ui="v2"] #website-setup .website-v2 .website-v2-form-card, html[data-crm-ui="v2"] #website-setup .website-v2 .website-install { padding: 16px; }
    html[data-crm-ui="v2"] #website-setup .website-v2 button, html[data-crm-ui="v2"] #website-setup .website-v2 .btn, html[data-crm-ui="v2"] #website-setup .website-v2 .form-control { min-height: 44px; }
    html[data-crm-ui="v2"] #website-setup .website-v2 .website-v2-save > button { width: 100%; }
}

/* Editor tools belong to the opt-in social root, including its dialogs. */
html[data-crm-ui="v2"] #social-workspace .social-editor-tool-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
html[data-crm-ui="v2"] #social-workspace .social-cover-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px; border: 1px solid var(--border-color); border-radius: 9px; background: var(--bg-tertiary); }
html[data-crm-ui="v2"] #social-workspace .social-cover-summary img { width: 54px; height: 72px; object-fit: cover; border-radius: 6px; }
html[data-crm-ui="v2"] #social-workspace .social-cover-summary .social-note { flex-basis: 100%; margin: 0; }
html[data-crm-ui="v2"] #social-workspace .social-tool-overlay { position: fixed; inset: 0; z-index: 1100; background: rgba(5,35,48,.56); display: flex; align-items: center; justify-content: center; padding: 20px; }
html[data-crm-ui="v2"] #social-workspace .social-tool-dialog { display: flex; flex-direction: column; gap: 12px; width: min(680px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; min-width: 0; padding: 20px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-card, var(--bg-secondary)); color: var(--text-primary); box-shadow: 0 16px 48px rgba(0,0,0,.2); }
html[data-crm-ui="v2"] #social-workspace .social-tool-dialog h3 { margin: 0; font-size: 16px; }
html[data-crm-ui="v2"] #social-workspace .social-tool-dialog label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
html[data-crm-ui="v2"] #social-workspace .social-tool-dialog .form-control { width: 100%; min-width: 0; box-sizing: border-box; }
html[data-crm-ui="v2"] #social-workspace .social-tool-dialog textarea { resize: vertical; min-height: 110px; }
html[data-crm-ui="v2"] #social-workspace .social-catalog-choices { display: flex; flex-direction: column; gap: 4px; max-height: 300px; overflow-y: auto; }
html[data-crm-ui="v2"] #social-workspace label.social-catalog-choice { flex-direction: row; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid var(--border-color); border-radius: 9px; overflow-wrap: anywhere; }
html[data-crm-ui="v2"] #social-workspace .social-catalog-choice span { display: flex; flex-direction: column; gap: 4px; }
html[data-crm-ui="v2"] #social-workspace .social-catalog-choice small { color: var(--text-secondary); font-weight: 400; }
html[data-crm-ui="v2"] #social-workspace [data-cover-canvas], html[data-crm-ui="v2"] #social-workspace .social-cover-current, html[data-crm-ui="v2"] #social-workspace [data-cover-video] { display: block; max-width: 100%; max-height: 360px; margin-inline: auto; object-fit: contain; border-radius: 9px; background: var(--bg-tertiary); }
html[data-crm-ui="v2"] #social-workspace .social-cover-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 600px) {
    html[data-crm-ui="v2"] #social-workspace .social-tool-overlay { padding: 8px; }
    html[data-crm-ui="v2"] #social-workspace .social-tool-dialog { padding: 16px; max-height: calc(100dvh - 16px); }
    html[data-crm-ui="v2"] #social-workspace .social-tool-dialog .btn, html[data-crm-ui="v2"] #social-workspace .social-tool-dialog .form-control, html[data-crm-ui="v2"] #social-workspace .social-catalog-choice { min-height: 44px; }
    html[data-crm-ui="v2"] #social-workspace .social-cover-controls { grid-template-columns: minmax(0, 1fr); }
}
/* n8n tenant connections; admin mounts never receive crm-v2-n8n. */
html[data-crm-ui="v2"] .crm-v2-n8n { min-width: 0; margin-top: 20px; }
html[data-crm-ui="v2"] .crm-v2-n8n > .card { padding: 20px; border: 1px solid var(--border-color, #e1e6e9); border-radius: 12px; background: var(--bg-secondary, #fff); box-shadow: none; }
html[data-crm-ui="v2"] .crm-v2-n8n .n8n-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
html[data-crm-ui="v2"] .crm-v2-n8n h3 { margin: 0; font-size: 15px; font-weight: 650; }
html[data-crm-ui="v2"] .crm-v2-n8n .n8n-connections-list { padding: 0; margin: 16px 0; list-style: none; }
html[data-crm-ui="v2"] .crm-v2-n8n .n8n-connection-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(0, 2fr) auto; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border-color, #e1e6e9); }
html[data-crm-ui="v2"] .crm-v2-n8n .n8n-connection-account,
html[data-crm-ui="v2"] .crm-v2-n8n .n8n-connection-status { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
html[data-crm-ui="v2"] .crm-v2-n8n .n8n-connection-account strong { color: var(--text-primary, #0b1f2a); font-size: 14px; }
html[data-crm-ui="v2"] .crm-v2-n8n .n8n-connection-account > span,
html[data-crm-ui="v2"] .crm-v2-n8n .n8n-connection-status > span:not(.n8n-binding-status) { color: var(--text-secondary, #3e525c); font-size: 12px; }
html[data-crm-ui="v2"] .crm-v2-n8n .n8n-binding-status { padding: 3px 8px; border-radius: 999px; background: var(--bg-tertiary, #eef1f3); color: var(--text-primary, #45575f); font-size: 12px; font-weight: 600; }
html[data-crm-ui="v2"] .crm-v2-n8n .n8n-connection-row[data-n8n-binding-state="enabled"] .n8n-binding-status { color: var(--brand-link, #00707f); background: var(--brand-light, var(--bg-tertiary, #e3f6f8)); }
html[data-crm-ui="v2"] .crm-v2-n8n .n8n-editor-disclosure { border: 1px solid var(--border-color, #e1e6e9); border-radius: 9px; background: var(--bg-primary, #f8fafa); }
html[data-crm-ui="v2"] .crm-v2-n8n .n8n-editor-disclosure > summary { padding: 14px 16px; cursor: pointer; color: var(--text-primary, #0b1f2a); font-size: 13px; font-weight: 600; }
html[data-crm-ui="v2"] .crm-v2-n8n .n8n-editor-body { padding: 0 16px 16px; }
html[data-crm-ui="v2"] .crm-v2-n8n [data-n8n-editor] { display: flex; flex-direction: column; gap: 8px; max-width: 720px; }
html[data-crm-ui="v2"] .crm-v2-n8n [data-n8n-editor] > label { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; color: var(--text-primary, #0b1f2a); font-size: 13px; font-weight: 600; }
html[data-crm-ui="v2"] .crm-v2-n8n [data-n8n-editor] > .channels-toggle { flex-direction: row; align-items: center; justify-content: space-between; }
html[data-crm-ui="v2"] .crm-v2-n8n [data-n8n-editor] .form-control { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
html[data-crm-ui="v2"] .crm-v2-n8n [data-n8n-editor] > button { align-self: flex-start; margin-top: 8px; }
html[data-crm-ui="v2"] .crm-v2-n8n [data-n8n-status]:empty { display: none; }
html[data-crm-ui="v2"] .crm-v2-n8n [data-n8n-status] { padding: 10px 12px; border-radius: 9px; color: var(--brand-link, #00707f); background: var(--bg-tertiary, #eef1f3); font-size: 13px; overflow-wrap: anywhere; }
html[data-crm-ui="v2"] .crm-v2-n8n [data-n8n-status][role="alert"] { color: var(--danger, #a8200f); border: 1px solid currentColor; }
html[data-crm-ui="v2"] .crm-v2-n8n .n8n-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
html[data-crm-ui="v2"] .crm-v2-n8n :focus-visible { outline: 2px solid var(--brand-link, #00707f); outline-offset: 3px; }
@media (max-width: 600px) {
    html[data-crm-ui="v2"] .crm-v2-n8n > .card { padding: 16px; }
    html[data-crm-ui="v2"] .crm-v2-n8n .n8n-connection-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
    html[data-crm-ui="v2"] .crm-v2-n8n .n8n-connection-status { grid-column: 1; }
    html[data-crm-ui="v2"] .crm-v2-n8n .n8n-connection-row > button { grid-column: 2; grid-row: 1 / span 2; }
    html[data-crm-ui="v2"] .crm-v2-n8n .btn,
    html[data-crm-ui="v2"] .crm-v2-n8n .form-control,
    html[data-crm-ui="v2"] .crm-v2-n8n summary,
    html[data-crm-ui="v2"] .crm-v2-n8n .channels-toggle { min-height: 44px; }
    html[data-crm-ui="v2"] .crm-v2-n8n .n8n-editor-body { padding-inline: 12px; }
}

/* Social-Calendar, Social-Editor, Social-Comments, Social-Consent. */
html[data-crm-ui="v2"] .crm-v2-social{--social-border:var(--border-color,#E1E6E9);--social-muted:var(--text-secondary,#5B6D76);max-width:1360px;width:100%;padding:24px;min-width:0;color:var(--text-primary,#0B1F2A);font-size:14px;line-height:1.45}
html[data-crm-ui="v2"] .crm-v2-social *,html[data-crm-ui="v2"] .crm-v2-social *::before,html[data-crm-ui="v2"] .crm-v2-social *::after{box-sizing:border-box}
html[data-crm-ui="v2"] .crm-v2-social :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--brand-link,#00707F);outline-offset:3px}
html[data-crm-ui="v2"] .crm-v2-social .social-header{gap:16px;margin-bottom:18px;align-items:flex-end}
html[data-crm-ui="v2"] .crm-v2-social .social-header :is(h1,h2){font-size:22px;line-height:1.25;letter-spacing:-.01em;font-weight:650;margin:0 0 4px}
html[data-crm-ui="v2"] .crm-v2-social .social-header p{font-size:13.5px;line-height:1.5;max-width:760px}
html[data-crm-ui="v2"] .crm-v2-social .btn{border-radius:9px;min-height:38px;font:inherit;font-size:13px;font-weight:600;padding:9px 13px;line-height:1.25}
html[data-crm-ui="v2"] .crm-v2-social .btn-secondary{background:var(--bg-card,#fff);border:1px solid var(--social-border);color:var(--text-primary,#0B1F2A)}
html[data-crm-ui="v2"] .crm-v2-social .btn-primary{background:var(--brand-link,#00707F);border:1px solid var(--brand-link,#00707F);color:var(--brand-on-primary,#fff)}
html[data-crm-ui="v2"] .crm-v2-social .social-tabs{gap:0;margin-bottom:18px}
html[data-crm-ui="v2"] .crm-v2-social .social-tab{font-size:13.5px;border-bottom-width:2px;padding:12px 14px;min-height:44px}
html[data-crm-ui="v2"] .crm-v2-social .social-tab[aria-selected="true"]{color:var(--text-primary,#0B1F2A);border-bottom-color:var(--brand-link,#00707F)}
html[data-crm-ui="v2"] .crm-v2-social .social-v2-toolbar{gap:12px;margin-bottom:16px}
html[data-crm-ui="v2"] .crm-v2-social .social-v2-toolbar .social-toolbar-group{gap:8px;min-width:0;flex-wrap:wrap}
html[data-crm-ui="v2"] .crm-v2-social .form-control{background:var(--bg-card,#fff);color:var(--text-primary,#0B1F2A);border:1px solid var(--social-border);border-radius:9px;min-height:38px;font:inherit;font-size:13px}
html[data-crm-ui="v2"] .crm-v2-social .social-toolbar-group>select{width:auto;flex:0 1 210px;max-width:230px;min-width:140px}
html[data-crm-ui="v2"] .crm-v2-social .social-view-switch{display:inline-flex;gap:2px;padding:3px;background:var(--bg-tertiary,#EAEFF1);border-radius:10px}
html[data-crm-ui="v2"] .crm-v2-social .social-view-switch .btn{border:0;background:transparent;min-height:30px;padding:6px 11px}
html[data-crm-ui="v2"] .crm-v2-social .social-view-switch [aria-pressed="true"]{background:var(--bg-card,#fff);box-shadow:0 1px 3px #0B1F2A1A}
html[data-crm-ui="v2"] .crm-v2-social .social-panel{border-radius:12px;min-width:0;background:var(--bg-card,#fff);border-color:var(--social-border)}
html[data-crm-ui="v2"] .crm-v2-social .social-v2-content{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:16px;align-items:start}
html[data-crm-ui="v2"] .crm-v2-social .social-v2-overview{display:grid;gap:16px;min-width:0}
html[data-crm-ui="v2"] .crm-v2-social :is(.social-card-heading,.social-section-intro){padding:14px 16px;border-bottom:1px solid var(--social-border)}
html[data-crm-ui="v2"] .crm-v2-social .social-card-heading{display:flex;gap:10px;align-items:center;justify-content:space-between}
html[data-crm-ui="v2"] .crm-v2-social :is(.social-card-heading h3,.social-section-intro h3,.social-legend h3){font-size:14px;font-weight:650;margin:0}
html[data-crm-ui="v2"] .crm-v2-social .social-card-note{padding:12px 16px;margin:0}
html[data-crm-ui="v2"] .crm-v2-social .social-attention-item{display:grid;gap:7px;padding:14px 16px;border-top:1px solid var(--social-border);min-width:0;overflow-wrap:anywhere}
html[data-crm-ui="v2"] .crm-v2-social .social-attention-item strong{font-size:13px}
html[data-crm-ui="v2"] .crm-v2-social .social-attention-item .btn{justify-self:start}
html[data-crm-ui="v2"] .crm-v2-social .social-channel-identity{display:inline-flex;align-items:center;gap:6px;font-size:12px;min-width:0;max-width:100%;overflow-wrap:anywhere}
html[data-crm-ui="v2"] .crm-v2-social .social-channel-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:21px;height:21px;background:#2F5FB3;color:#fff;border-radius:5px;font-size:10px;font-weight:700}
html[data-crm-ui="v2"] .crm-v2-social .social-channel-icon[data-channel="ig"]{background:#A52E6C}
html[data-crm-ui="v2"] .crm-v2-social .social-legend{padding:16px;display:grid;gap:12px}
html[data-crm-ui="v2"] .crm-v2-social .social-legend>div{display:flex;flex-wrap:wrap;gap:6px}
html[data-crm-ui="v2"] .crm-v2-social .social-badge{font-size:11px;padding:3px 8px;min-height:21px;line-height:1.3;white-space:normal}
html[data-crm-ui="v2"] .crm-v2-social .social-calendar-scroll,html[data-crm-ui="v2"] .crm-v2-social .social-table-scroll{min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
html[data-crm-ui="v2"] .crm-v2-social .social-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:720px;border:0;border-radius:0;gap:1px;background:var(--social-border)}
html[data-crm-ui="v2"] .crm-v2-social .social-calendar-day{display:block;min-height:118px;padding:7px;border:0;border-radius:0;opacity:1;background:var(--bg-card,#fff)}
html[data-crm-ui="v2"] .crm-v2-social .social-calendar-day[data-outside="true"]{background:var(--bg-tertiary,#F8FAFA)}
html[data-crm-ui="v2"] .crm-v2-social .social-calendar-day>time{font-size:11px;margin:0 0 7px}
html[data-crm-ui="v2"] .crm-v2-social .social-calendar-day[data-today="true"]>time{font-weight:700;color:var(--brand-link,#00707F)}
html[data-crm-ui="v2"] .crm-v2-social .social-calendar-weekday{display:block;background:var(--bg-tertiary,#F8FAFA);font-size:11.5px;padding:9px 6px;text-align:left}
html[data-crm-ui="v2"] .crm-v2-social .social-calendar-item{display:grid;gap:5px;border:1px solid var(--social-border);border-radius:7px;background:var(--bg-card,#fff);padding:6px;margin-bottom:5px;font:inherit;font-size:12px;line-height:1.35}
html[data-crm-ui="v2"] .crm-v2-social .social-calendar-text{overflow-wrap:anywhere}
html[data-crm-ui="v2"] .crm-v2-social .social-calendar-meta{display:grid;gap:4px;color:var(--social-muted);font-size:10px}
html[data-crm-ui="v2"] .crm-v2-social .social-calendar-meta .social-channel-identity>span:last-child{display:none}
html[data-crm-ui="v2"] .crm-v2-social .social-panel>.social-note{padding:12px 16px}
html[data-crm-ui="v2"] .crm-v2-social .social-v2-table{border-collapse:collapse;width:100%;min-width:680px;font-size:13px}
html[data-crm-ui="v2"] .crm-v2-social .social-v2-table th{padding:11px 14px;text-align:left;background:var(--bg-tertiary,#F8FAFA);border-bottom:1px solid var(--social-border);font-size:12px;font-weight:600;color:var(--social-muted)}
html[data-crm-ui="v2"] .crm-v2-social .social-v2-table .social-row{display:table-row}
html[data-crm-ui="v2"] .crm-v2-social .social-v2-table td{padding:13px 14px;border-bottom:1px solid var(--social-border);vertical-align:middle;max-width:340px;overflow-wrap:anywhere}
html[data-crm-ui="v2"] .crm-v2-social .social-v2-table td:first-child{min-width:180px}
html[data-crm-ui="v2"] .crm-v2-social .social-v2-table tr:last-child td{border-bottom:0}
html[data-crm-ui="v2"] .crm-v2-social .social-v2-table time{font-size:12px;font-variant-numeric:tabular-nums}
html[data-crm-ui="v2"] .crm-v2-social .social-v2-editor-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:16px 0 0}
html[data-crm-ui="v2"] .crm-v2-social .social-v2-editor-head>div{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
html[data-crm-ui="v2"] .crm-v2-social .social-v2-editor-head h3{font-size:20px;margin:0}
html[data-crm-ui="v2"] .crm-v2-social .social-editor-progress{display:flex;flex-wrap:wrap;gap:10px 16px;list-style:none;margin:0;padding:0;font-size:12px;color:var(--social-muted)}
html[data-crm-ui="v2"] .crm-v2-social .social-editor-progress li{display:flex;align-items:center;gap:6px}
html[data-crm-ui="v2"] .crm-v2-social .social-editor-progress span{width:23px;height:23px;border:1px solid var(--social-border);border-radius:50%;display:inline-flex;align-items:center;justify-content:center}
html[data-crm-ui="v2"] .crm-v2-social .social-editor-progress :is([aria-current="step"],[data-complete="true"]){color:var(--brand-link,#00707F);font-weight:600}
html[data-crm-ui="v2"] .crm-v2-social .social-detail{grid-template-columns:minmax(0,1fr) 310px;gap:16px;margin-top:16px;align-items:start}
html[data-crm-ui="v2"] .crm-v2-social .social-editor{padding:0}
html[data-crm-ui="v2"] .crm-v2-social .social-form{padding:18px;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
html[data-crm-ui="v2"] .crm-v2-social .social-form>*{grid-column:1/-1;min-width:0}
html[data-crm-ui="v2"] .crm-v2-social .social-form :is(.social-field-account_id,.social-field-kind,.social-field-source,.social-field-observed_at){grid-column:auto}
html[data-crm-ui="v2"] .crm-v2-social .social-field>label,html[data-crm-ui="v2"] .crm-v2-social .social-field>span{font-size:12.5px;font-weight:600}
html[data-crm-ui="v2"] .crm-v2-social .social-field textarea{min-height:150px;font-size:14px;line-height:1.6;padding:12px}
html[data-crm-ui="v2"] .crm-v2-social .social-aside{padding:18px;display:grid;gap:14px;position:sticky;top:16px}
html[data-crm-ui="v2"] .crm-v2-social .social-aside h3{font-size:14px;margin:0}
html[data-crm-ui="v2"] .crm-v2-social .social-preview-account{display:flex;align-items:center;gap:8px;overflow-wrap:anywhere;min-width:0}
html[data-crm-ui="v2"] .crm-v2-social .social-preview{border:1px solid var(--social-border);padding:16px;border-radius:10px;min-height:120px;font-size:13px;line-height:1.7}
html[data-crm-ui="v2"] .crm-v2-social .social-preview+.social-note{margin:0}
html[data-crm-ui="v2"] .crm-v2-social .social-review-note{display:grid;gap:7px;border-top:1px solid var(--social-border);padding-top:14px}
html[data-crm-ui="v2"] .crm-v2-social .social-disclosure{border:1px solid var(--social-border);border-radius:10px;overflow:hidden;min-width:0}
html[data-crm-ui="v2"] .crm-v2-social .social-disclosure>summary{padding:12px 14px;cursor:pointer;font-size:13px;font-weight:600;min-height:44px;background:var(--bg-tertiary,#F8FAFA)}
html[data-crm-ui="v2"] .crm-v2-social .social-disclosure>.social-field{padding:14px}
html[data-crm-ui="v2"] .crm-v2-social .social-media-list{gap:8px}
html[data-crm-ui="v2"] .crm-v2-social .social-media-input{display:grid;gap:10px;max-width:100%;padding:16px;border:1px dashed var(--social-border);border-radius:9px;min-height:86px;background:var(--bg-tertiary,#F8FAFA)}
html[data-crm-ui="v2"] .crm-v2-social .social-media-input input{max-width:100%;width:100%;font-size:12px}
html[data-crm-ui="v2"] .crm-v2-social .social-actions{padding-top:14px;margin-top:0;border-top:1px solid var(--social-border)}
html[data-crm-ui="v2"] .crm-v2-social .social-comment{padding:20px;border-bottom:1px solid var(--social-border)}
html[data-crm-ui="v2"] .crm-v2-social .social-comment .social-title-row>strong{display:flex;align-items:center;gap:9px;overflow-wrap:anywhere;min-width:0}
html[data-crm-ui="v2"] .crm-v2-social .social-avatar{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;flex:none;border-radius:50%;background:var(--bg-tertiary,#EAEFF1);color:var(--text-primary,#0B1F2A);font-size:12px}
html[data-crm-ui="v2"] .crm-v2-social .social-comment blockquote{padding:14px;margin:14px 0;background:var(--bg-tertiary,#F8FAFA);border-radius:9px;border:0;font-size:14px}
html[data-crm-ui="v2"] .crm-v2-social .social-comment form{margin-top:14px}
html[data-crm-ui="v2"] .crm-v2-social .social-comment textarea{padding:12px;min-height:78px}
html[data-crm-ui="v2"] .crm-v2-social .social-comment .social-actions{margin-top:12px;padding-top:0;border:0}
html[data-crm-ui="v2"] .crm-v2-social .social-audience-option{align-items:flex-start;font-size:13px}
html[data-crm-ui="v2"] .crm-v2-social .social-note{font-size:12px;line-height:1.55}
html[data-crm-ui="v2"] .crm-v2-social .social-section-intro .social-note{margin-top:5px}
html[data-crm-ui="v2"] .crm-v2-social .social-alert{font-size:13px;padding:12px 16px;border:1px solid var(--social-border);border-radius:10px}
html[data-crm-ui="v2"] .crm-v2-social .social-empty{padding:48px 20px;background:var(--bg-card,#fff);border:1px dashed var(--social-border);border-radius:12px}
@media(max-width:1150px){html[data-crm-ui="v2"] .crm-v2-social .social-v2-content{grid-template-columns:minmax(0,1fr)}html[data-crm-ui="v2"] .crm-v2-social .social-v2-overview{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-crm-ui="v2"] .crm-v2-social .social-detail{grid-template-columns:minmax(0,1fr)}html[data-crm-ui="v2"] .crm-v2-social .social-aside{position:static}}
@media(max-width:600px){html[data-crm-ui="v2"] .crm-v2-social{padding:16px}html[data-crm-ui="v2"] .crm-v2-social .social-header{align-items:flex-start}html[data-crm-ui="v2"] .crm-v2-social .social-header :is(h1,h2){font-size:22px}html[data-crm-ui="v2"] .crm-v2-social .social-header>.btn{width:100%}html[data-crm-ui="v2"] .crm-v2-social .social-toolbar-group{width:100%}html[data-crm-ui="v2"] .crm-v2-social .social-toolbar-group>select{width:100%;flex:1 1 100%;max-width:none}html[data-crm-ui="v2"] .crm-v2-social .social-v2-toolbar>.social-toolbar-group:last-child{justify-content:space-between}html[data-crm-ui="v2"] .crm-v2-social .social-v2-overview{grid-template-columns:minmax(0,1fr)}html[data-crm-ui="v2"] .crm-v2-social .social-form{grid-template-columns:minmax(0,1fr);padding:16px}html[data-crm-ui="v2"] .crm-v2-social .social-editor-progress{gap:8px;font-size:11px}html[data-crm-ui="v2"] .crm-v2-social .social-comment{padding:16px}html[data-crm-ui="v2"] .crm-v2-social :is(.btn,.social-tab,.form-control,.social-media-item button){min-height:44px}html[data-crm-ui="v2"] .crm-v2-social .social-media-item button{min-width:44px}html[data-crm-ui="v2"] .crm-v2-social .social-view-switch .btn{min-height:44px}html[data-crm-ui="v2"] .crm-v2-social .social-calendar-day:has(>time:only-child){display:block}}
@media(max-width:600px){html[data-crm-ui="v2"] .crm-v2-social .social-row-button{min-height:44px;min-width:44px}}
/* The selected real account owns its preview; tools never change post payloads. */
html[data-crm-ui="v2"] .crm-v2-social [data-social-preview-media]>[hidden]{display:none}
html[data-crm-ui="v2"] .crm-v2-social [data-layout="grid"] [data-social-preview-media]>[hidden]{display:block}
html[data-crm-ui="v2"] .crm-v2-social [data-layout="post"][data-kind="reel"] [data-social-preview-media]>:is(img,video),html[data-crm-ui="v2"] .crm-v2-social [data-layout="post"][data-kind="story"] [data-social-preview-media]>:is(img,video){aspect-ratio:9/16;max-height:460px}
html[data-crm-ui="v2"] .crm-v2-social [data-caption-expanded="false"] .social-platform-card .social-preview{max-height:8em;overflow:hidden}
html[data-crm-ui="v2"] .crm-v2-social .social-preview-carousel{display:flex;align-items:center;justify-content:center;gap:10px;padding:8px;font-size:12px;font-variant-numeric:tabular-nums}
html[data-crm-ui="v2"] .crm-v2-social .social-preview-expand{margin:0 10px 10px}
html[data-crm-ui="v2"] .crm-v2-social [data-social-platform-preview]{min-width:0;display:grid;gap:12px}
html[data-crm-ui="v2"] .crm-v2-social .social-preview-tools{display:grid;gap:8px}
html[data-crm-ui="v2"] .crm-v2-social .social-preview-tools [role="group"]{display:flex;flex-wrap:wrap;gap:5px}
html[data-crm-ui="v2"] .crm-v2-social .social-preview-tools .btn{padding:7px 9px;font-size:12px;min-height:38px}
html[data-crm-ui="v2"] .crm-v2-social .social-preview-tools [aria-pressed="true"]{border-color:var(--brand-link,#00707F);color:var(--brand-link,#00707F);font-weight:700}
html[data-crm-ui="v2"] .crm-v2-social .social-platform-card{border:1px solid var(--social-border);border-radius:12px;overflow:hidden;background:var(--bg-card,#fff);width:100%;min-width:0}
html[data-crm-ui="v2"] .crm-v2-social [data-viewport="mobile"] .social-platform-card{max-width:260px;margin-inline:auto}
html[data-crm-ui="v2"] .crm-v2-social .social-platform-card .social-preview-account{padding:12px;font-size:12px;border-bottom:1px solid var(--social-border)}
html[data-crm-ui="v2"] .crm-v2-social .social-platform-card .social-preview{border:0;border-radius:0;background:transparent;min-height:0;padding:12px;font-size:13px;line-height:1.6;margin:0}
html[data-crm-ui="v2"] .crm-v2-social .social-platform-card .social-preview:empty::before{content:attr(data-empty-label);color:var(--social-muted);font-style:italic}
html[data-crm-ui="v2"] .crm-v2-social [data-social-preview-media]{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;min-width:0}
html[data-crm-ui="v2"] .crm-v2-social [data-social-preview-media]>:is(img,video){display:block;width:100%;flex:0 0 100%;min-width:0;max-height:420px;aspect-ratio:1;object-fit:contain;background:var(--bg-tertiary,#F8FAFA);scroll-snap-align:start}
html[data-crm-ui="v2"] .crm-v2-social .social-preview-media-unavailable{padding:24px 14px;background:var(--bg-tertiary,#F8FAFA);display:grid;gap:8px;text-align:center;flex:0 0 100%;font-size:12px;min-width:0;overflow-wrap:anywhere;scroll-snap-align:start}
html[data-crm-ui="v2"] .crm-v2-social .social-preview-media-unavailable small{color:var(--social-muted)}
html[data-crm-ui="v2"] .crm-v2-social [data-layout="grid"] [data-social-preview-media]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}
html[data-crm-ui="v2"] .crm-v2-social [data-layout="grid"] [data-social-preview-media]>:is(img,video){width:100%;aspect-ratio:1;object-fit:cover;max-height:130px}
html[data-crm-ui="v2"] .crm-v2-social [data-layout="grid"] .social-preview-media-unavailable{padding:10px 5px;font-size:10px;aspect-ratio:1}
html[data-crm-ui="v2"] .crm-v2-social [data-layout="grid"] .social-preview-media-unavailable small{display:none}
html[data-crm-ui="v2"] .crm-v2-social [data-layout="grid"] .social-platform-card .social-preview{display:none}
@media(max-width:600px){html[data-crm-ui="v2"] .crm-v2-social .social-preview-tools .btn{min-height:44px;min-width:44px}html[data-crm-ui="v2"] .crm-v2-social .social-aside{padding:14px}html[data-crm-ui="v2"] .crm-v2-social [data-viewport="mobile"] .social-platform-card{max-width:100%}}
html[data-crm-ui="v2"] .crm-v2-social [data-social-tool="cover"] [data-action="cover-apply"]{background:var(--primary,#00707F);border-color:var(--primary,#00707F);color:var(--brand-on-accent,#fff)}
