:root {
    --syson-teal: #008a94;
    --syson-green: #0b9b55;
    --syson-lime: #17c95f;
    --syson-ink: #18242b;
    --syson-muted: #64777b;
    --syson-bg: #f6f8f8;
    --syson-line: #dfe7e5;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--syson-ink);
    background: var(--syson-bg);
    line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar { background: #fff; border-bottom: 1px solid var(--syson-line); }
.topbar-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-weight: 750; text-decoration: none; letter-spacing: -.02em; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.tenant-name { color: var(--syson-muted); font-size: 14px; }
.page { padding-top: 36px; padding-bottom: 64px; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
h1, h2 { margin-top: 0; letter-spacing: -.025em; }
h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 6px; }
h2 { font-size: 20px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 750; margin: 0 0 8px; color: var(--syson-teal); }
.muted { color: var(--syson-muted); }
.card, .stat-card { background: #fff; border: 1px solid var(--syson-line); border-radius: 14px; box-shadow: 0 10px 28px rgba(20, 55, 50, .05); }
.card { padding: 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 20px; display: grid; gap: 7px; }
.stat-card span, .stat-card small { color: #68778a; }
.stat-card strong { font-size: 28px; }
.auth-shell { min-height: calc(100vh - 164px); display: grid; place-items: center; }
.auth-card { width: min(430px, 100%); }
.form-stack { display: grid; gap: 18px; margin-top: 24px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 650; }
input { width: 100%; border: 1px solid #cfd6e1; border-radius: 9px; padding: 11px 12px; font: inherit; background: #fff; }
input:focus { outline: 2px solid rgba(0, 138, 148, .18); border-color: var(--syson-teal); }
.check-row { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.check-row input { width: auto; }
.button { border: 0; border-radius: 9px; padding: 10px 15px; background: var(--syson-green); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 6px 14px rgba(11, 155, 85, .12); }
.button-secondary { background: #eef7f5; color: #28585b; box-shadow: none; }
.button:hover { filter: brightness(.97); }
.button:focus-visible, a:focus-visible { outline: 3px solid rgba(0, 138, 148, .28); outline-offset: 2px; }
.error { color: #b42318; font-weight: 500; }
.alert { padding: 12px 14px; border-radius: 9px; margin-bottom: 18px; }
.success { background: #ecf8f1; color: #087a46; }
select, textarea { width: 100%; border: 1px solid #cfd6e1; border-radius: 9px; padding: 11px 12px; font: inherit; background: #fff; }
select:focus, textarea:focus { outline: 2px solid rgba(0, 138, 148, .18); border-color: var(--syson-teal); }
textarea { resize: vertical; }
.link-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.heading-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.filters { display: grid; grid-template-columns: minmax(240px, 1fr) 210px auto auto; gap: 12px; align-items: end; }
.table-card { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid #edf0f4; vertical-align: top; }
th { color: #607083; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; background: #fafbfc; }
td { font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; align-items: center; width: fit-content; padding: 4px 8px; border-radius: 999px; background: #eef7f5; color: #2f6264; font-size: 12px; font-weight: 700; }
.badge-soft { background: #f6f8fa; color: #68778a; font-weight: 600; }
.sub-link { display: block; margin-top: 4px; color: var(--syson-teal); text-decoration: none; font-size: 13px; font-weight: 650; }
.sub-link:hover { text-decoration: underline; }
.table-note { display: block; max-width: 260px; margin-top: 4px; color: #718096; }
.empty-cell, .empty-state { text-align: center; padding: 36px; }
.campaign-list { display: grid; }
.campaign-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid #edf0f4; text-decoration: none; }
.campaign-row:first-child { padding-top: 0; }
.campaign-row:last-child { border-bottom: 0; padding-bottom: 0; }
.campaign-row > div { display: grid; gap: 4px; }
.campaign-row span { color: #68778a; font-size: 13px; }
.campaign-row-meta { display: flex !important; grid-auto-flow: column; align-items: center; gap: 12px !important; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 16px; border-top: 1px solid #edf0f4; color: #68778a; font-size: 13px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 20px; margin-bottom: 20px; }
.details { margin: 0; display: grid; gap: 16px; }
.details div { display: grid; gap: 3px; }
.details dt { color: #68778a; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.details dd { margin: 0; }
.timeline { display: grid; gap: 0; }
.timeline-item { padding: 18px 0; border-bottom: 1px solid #edf0f4; }
.timeline-item:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: #718096; font-size: 12px; margin-bottom: 8px; }
.timeline-item p { white-space: pre-wrap; margin-bottom: 0; }
.outreach-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.tracking-summary { display: grid; gap: 8px; margin-top: 18px; }
.tracking-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid #edf0f4; font-size: 13px; color: #68778a; }
.main-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; margin-right: 24px; }
.main-nav a { text-decoration: none; color: #52666a; font-size: 14px; font-weight: 650; position:relative; padding:20px 2px 18px; }
.main-nav a:hover { color: var(--syson-teal); }
.main-nav a.is-active { color: var(--syson-ink); font-weight:800; }
.main-nav a.is-active::after { content:""; position:absolute; left:0; right:0; bottom:10px; height:2px; border-radius:999px; background:linear-gradient(90deg,var(--syson-teal),var(--syson-green)); }
.import-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.file-field { padding: 16px; border: 1px solid var(--syson-line); border-radius: 12px; background: #f9fbfb; }
.file-field small { color: #68778a; font-weight: 500; }
.file-field input[type="file"] { padding: 10px; background: #fff; }
.import-warning { display: grid; gap: 4px; padding: 14px; border-radius: 10px; background: #fff7ed; color: #9a3412; font-size: 14px; }
.import-results { margin-bottom: 20px; }
.error-alert { background: #fef3f2; color: #b42318; }
.separator { border: 0; border-top: 1px solid #edf0f4; margin: 22px 0; }
.campaign-builder { display: grid; gap: 20px; }
.preview-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.preview-heading h2 { margin-bottom: 0; }
.filters-extended { grid-template-columns: minmax(220px, 1.2fr) 170px 190px 170px auto auto; }
.stat-link { text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.stat-link:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(25, 33, 47, .08); border-color: #b7d8d4; }
.badge-link { text-decoration: none; }
.badge-link:hover { text-decoration: underline; }
.message-history-card { margin-bottom: 20px; }
.conversation-list { display: grid; gap: 12px; margin-top: 18px; }
.conversation-message { max-width: 82%; padding: 14px 16px; border: 1px solid var(--syson-line); border-radius: 12px; background: #f9fbfb; }
.conversation-message.is-outbound { margin-left: auto; }
.conversation-message.is-inbound { margin-right: auto; }
.conversation-message p { white-space: pre-wrap; margin: 0; }
.form-grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-card { max-width: 780px; }
.organization-filters { grid-template-columns: minmax(240px, 1fr) auto auto; }
.card-section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:24px 24px 0; }
.card-section-heading h2 { margin-bottom: 0; }
.duplicate-warning { padding: 14px; border: 1px solid #f1c46a; border-radius: 10px; background: #fff9e8; color: #704600; }
.duplicate-warning p { margin: 6px 0; }
.duplicate-warning ul { margin: 8px 0 0; padding-left: 18px; }
.duplicate-warning a { color: inherit; font-weight: 700; }
.opportunity-filters { grid-template-columns: minmax(180px,.6fr) minmax(240px,1fr) auto auto; }
.pipeline-switcher { width:min(320px,100%); margin:0 0 18px; }
.stage-pill { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:750; color:#334155; }
.stage-pill::before { content:""; width:9px; height:9px; border-radius:99px; background:var(--stage-color); }
.kanban { display:flex; align-items:stretch; gap:14px; overflow-x:auto; padding-bottom:12px; }
.kanban-column { flex:0 0 275px; background:#eef4f3; border:1px solid var(--syson-line); border-radius:14px; overflow:hidden; }
.kanban-column header { display:flex; justify-content:space-between; align-items:center; border-top:4px solid; padding:13px 14px; background:#fff; }
.kanban-column header span { display:grid; place-items:center; min-width:24px; height:24px; border-radius:99px; background:#eef7f5; font-size:12px; font-weight:800; }
.kanban-cards { display:grid; gap:10px; padding:10px; min-height:160px; }
.kanban-card { display:grid; gap:8px; padding:13px; background:#fff; border:1px solid var(--syson-line); border-radius:10px; box-shadow:0 3px 10px rgba(20,55,50,.05); }
.kanban-card a { text-decoration:none; }.kanban-card span { color:var(--syson-muted); font-size:13px; }.kanban-card b { font-size:13px; }.kanban-card select { padding:7px 8px; font-size:12px; }.kanban-empty { padding:24px 8px; text-align:center; color:var(--syson-muted); font-size:13px; }
.pipeline-new,.pipeline-editor { margin-bottom:20px; }.inline-form { display:flex; align-items:end; flex-wrap:wrap; gap:12px; }.inline-form label { min-width:180px; flex:1; }.inline-form .check-row { flex:0 1 auto; min-width:auto; padding-bottom:10px; }.stage-editor-list { display:grid; gap:8px; }.stage-editor-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 0; border-top:1px solid var(--syson-line); }.stage-editor-row form,.stage-row-actions { display:flex; gap:8px; align-items:center; }.stage-editor-row input[type=color] { width:38px; height:38px; padding:3px; }.stage-edit-form input[name=name] { min-width:190px; }.stage-editor-row select { width:210px; padding:8px; font-size:13px; }.stage-order-form { margin-top:12px; }.stage-add-form { margin-top:16px; padding-top:16px; border-top:1px solid var(--syson-line); }.button-danger { background:#b42318; }
.publisher-followup-segments { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.table-signal { display: block; max-width: 220px; margin-top: 5px; color: #718096; font-size: 12px; line-height: 1.35; }
.message-guidance, .followup-recommendation { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--syson-line); border-radius: 10px; background: #f9fbfb; color: #566579; font-size: 13px; line-height: 1.5; }
.followup-recommendation { display: grid; gap: 8px; margin-bottom: 18px; }
.followup-recommendation .muted { margin: 0; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; color: var(--syson-ink); text-decoration: none; }
.brand-logo { display: block; width: auto; height: 36px; object-fit: contain; }
.brand-context { padding-left: 12px; border-left: 1px solid var(--syson-line); color: #53676b; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.commercial-heading{ align-items:center; margin-bottom:30px; }
.commercial-heading .muted{ max-width:720px; margin-bottom:0; }
.dashboard-priority{ margin-bottom:24px; }
.section-heading{ display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:14px; }
.section-heading h2{ margin-bottom:0; }
.campaign-context{ color:var(--syson-muted); font-size:12px; text-align:right; }
.action-stats-grid{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; }
.action-stat-card{ min-height:178px; display:flex; flex-direction:column; gap:8px; padding:19px; border:1px solid var(--syson-line); border-radius:14px; background:#fff; color:var(--syson-ink); text-decoration:none; box-shadow:0 10px 28px rgba(20,55,50,.045); transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease; }
.action-stat-card:hover{ transform:translateY(-2px); border-color:#b7d8d4; box-shadow:0 14px 34px rgba(20,55,50,.08); }
.action-stat-card>span{ color:#53676b; font-size:13px; font-weight:750; }
.action-stat-card>strong{ margin-top:2px; font-size:34px; line-height:1; letter-spacing:-.035em; }
.action-stat-card>small{ min-height:44px; color:#758589; font-size:11px; line-height:1.4; }
.action-stat-card>b{ margin-top:auto; color:var(--syson-teal); font-size:12px; }
.action-stat-contact_requested{ border-color:#b9dfcc; background:linear-gradient(180deg,#fff,#f5fbf7); }
.action-stat-contact_requested>strong, .action-stat-interested>strong{ color:var(--syson-green); }
.action-stat-card.is-disabled{ opacity:.65; }
.dashboard-base-card{ margin-top:0; }
.base-metrics{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); border-top:1px solid var(--syson-line); }
.base-metrics>div{ display:grid; gap:3px; padding:17px 18px 4px; border-right:1px solid var(--syson-line); }
.base-metrics>div:first-child{padding-left:0}
.base-metrics>div:last-child{border-right:0}
.base-metrics span, .base-metrics small{ color:var(--syson-muted); font-size:12px; }
.base-metrics strong{ font-size:22px; letter-spacing:-.025em; }
.dashboard-tasks-card{margin-bottom:24px}.dashboard-task-summary{display:flex;gap:22px;padding-bottom:14px;border-bottom:1px solid var(--syson-line);color:var(--syson-muted);font-size:13px}.dashboard-task-summary strong{color:var(--syson-ink);font-size:18px}.dashboard-task-list{display:grid}.dashboard-task-list article{display:flex;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid #edf0f4}.dashboard-task-list article:last-child{border-bottom:0;padding-bottom:0}.dashboard-task-list article>div{display:grid;gap:3px}.dashboard-task-list span,.dashboard-task-list small{color:var(--syson-muted);font-size:13px}.dashboard-task-list article>div:last-child{text-align:right}.task-filters{grid-template-columns:minmax(220px,300px) auto;margin-bottom:20px}.task-actions{display:flex;align-items:center;gap:10px}.task-actions form{margin:0}.tasks-table .is-overdue{background:#fffaf8}.due-overdue{color:#b42318;font-weight:750}.task-priority{font-size:12px;font-weight:750}.priority-low{color:#64748b}.priority-normal{color:#2563eb}.priority-high{color:#b42318}

/* Member commercial workspace */
.member-hero { display:flex; justify-content:space-between; gap:24px; align-items:flex-start; margin-bottom:20px; padding:26px; background:linear-gradient(135deg,#fff,#f7fbfa); }
.member-hero h1 { margin-bottom:4px; }
.member-hero .muted { margin:0 0 14px; }
.member-hero-actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; max-width:420px; }
.member-signal-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.member-workspace-grid { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(310px,.8fr); gap:20px; align-items:start; }
.member-main-column, .member-side-column { display:grid; gap:20px; }
.sidebar-card { padding:20px; }
.member-summary-card { border-color:#cfe8e5; }
.member-insight-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0; }
.member-insight-grid>div { display:grid; gap:4px; padding:14px; border:1px solid var(--syson-line); border-radius:12px; background:#fafcfc; }
.member-insight-grid span { color:var(--syson-muted); font-size:12px; }
.member-insight-grid strong { font-size:15px; }
.member-message-card textarea { min-height:220px; line-height:1.5; }
.compact-form-stack { gap:12px; margin-top:16px; }
.publisher-actions { margin-top:12px; }
.compact-tracking-summary { margin-top:16px; padding-top:14px; border-top:1px solid var(--syson-line); }
.compact-conversation-list { display:grid; gap:10px; margin-top:18px; }
.compact-message { padding:14px 16px; border:1px solid var(--syson-line); border-radius:12px; background:#fafcfc; }
.compact-message.is-outbound { border-left:4px solid #cbe6e2; }
.compact-message.is-inbound { border-left:4px solid #b9dfcc; }
.compact-message p { margin:0; white-space:pre-wrap; }
.history-details { margin-top:16px; border-top:1px solid var(--syson-line); padding-top:14px; }
.history-details summary { cursor:pointer; color:var(--syson-teal); font-weight:800; }
.compact-details { gap:12px; }
.compact-timeline { margin-top:12px; }
.compact-timeline .timeline-item { padding:12px 0; }
.compact-timeline p { color:#53676b; font-size:13px; }
.publisher-qualification-summary { margin-top:18px; padding-top:16px; border-top:1px solid var(--syson-line); }

@media (max-width: 1050px) {
    .filters-extended { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .publisher-followup-segments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .action-stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    .base-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
    .member-workspace-grid { grid-template-columns:1fr; }
    .member-side-column { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .topbar-inner { flex-wrap: wrap; padding: 12px 0; }
    .main-nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
    .import-layout { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
    .page-heading { align-items: stretch; flex-direction: column; }
    .filters { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .campaign-row { align-items: flex-start; flex-direction: column; }
    .outreach-grid { grid-template-columns: 1fr; }
    .preview-heading { flex-direction: column; }
    .commercial-heading{align-items:stretch}
    .section-heading{align-items:flex-start;flex-direction:column}
    .campaign-context{text-align:left}
    .action-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .base-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
    .base-metrics>div{padding-left:0;border-right:0;border-bottom:1px solid var(--syson-line)}
    .main-nav a{padding:7px 2px 10px}
    .main-nav a.is-active::after{bottom:3px}
    .member-hero { flex-direction:column; }
    .member-hero-actions { justify-content:flex-start; max-width:none; }
    .member-insight-grid { grid-template-columns:1fr; }
    .member-side-column { grid-template-columns:1fr; }
    .dashboard-task-list article{align-items:flex-start;flex-direction:column}.dashboard-task-list article>div:last-child{text-align:left}.task-actions{align-items:flex-start;flex-direction:column}
}
@media (max-width: 650px) {
    .brand-logo { height: 31px; }
    .brand-context { padding-left: 8px; font-size: 10px; }
    .form-grid-two { grid-template-columns: 1fr; }
    .opportunity-filters { grid-template-columns:1fr; }.stage-editor-row { align-items:stretch; flex-direction:column; }.stage-editor-row form { flex-wrap:wrap; }.stage-editor-row select { width:100%; }
    .filters-extended { grid-template-columns: 1fr; }
    .conversation-message { max-width: 100%; }
}
@media (max-width: 520px) {
    .action-stats-grid,.base-metrics{grid-template-columns:1fr}
    .action-stat-card{min-height:0}
}
/* Daily Publisher execution: a single action, with explicit human confirmation. */
.daily-execution { max-width: 860px; margin: 0 auto; }
.daily-summary { position: sticky; top: 0; z-index: 5; background: #fff; }
.daily-summary h1 { font-size: 1.4rem; }
.daily-progress-label, .daily-navigation, .daily-deferred-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.daily-navigation { margin-top: 12px; }
.daily-execution progress { width: 100%; height: 12px; accent-color: #15803d; }
.daily-execution textarea { width: 100%; min-height: 320px; line-height: 1.6; }
.daily-main { width: 100%; min-height: 50px; font-size: 1rem; }
.daily-action-bar { position: sticky; bottom: 0; z-index: 6; background: #fff; padding: 12px 0; border-top: 1px solid var(--syson-line); }
.daily-action-bar [role="status"] { margin: 0 0 10px; }
.daily-main.is-opened, .daily-warning { color: #713f12; background: #fef3c7; border-color: #d97706; }
.daily-warning { padding: 12px; border-radius: 8px; }
.daily-main.is-sent, .daily-complete { color: #14532d; background: #dcfce7; border-color: #16a34a; }
.daily-postpone { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.daily-deferred-row { padding: 12px 0; }
.daily-execution details summary { cursor: pointer; }
.daily-execution details[open] summary { margin-bottom: 16px; }
.daily-main:disabled { cursor: wait; opacity: .65; }
.daily-secondary-actions { display:grid; grid-template-columns:auto auto; gap:10px; align-items:center; margin-top:14px; justify-content:start; }
.daily-secondary-help { display:block; margin-top:8px; }
.daily-disqualify-button { color:#8a3f12; }
.daily-disqualify-dialog { width:min(560px,calc(100% - 32px)); max-height:calc(100vh - 32px); border:0; border-radius:16px; padding:0; box-shadow:0 24px 80px rgba(24,36,43,.24); }
.daily-disqualify-dialog::backdrop { background:rgba(24,36,43,.46); backdrop-filter:blur(2px); }
.daily-disqualify-dialog form { padding:24px; max-height:calc(100vh - 32px); overflow:auto; }
.daily-disqualify-reasons { display:grid; gap:8px; margin:0; padding:0; border:0; }
.daily-disqualify-reason { display:flex; align-items:center; gap:10px; min-height:46px; padding:10px 12px; border:1px solid var(--syson-line); border-radius:10px; background:#fff; cursor:pointer; }
.daily-disqualify-reason input { width:auto; margin:0; }
.daily-dialog-actions { display:grid; grid-template-columns:1fr auto; gap:10px; }
.daily-disqualify-confirm { width:100%; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }

@media (max-width: 780px) {
    .daily-execution { max-width:none; }
    .daily-execution > .card,
    .daily-execution > section.card { padding:16px; border-radius:12px; }
    .daily-summary { position:static; padding:14px 16px!important; }
    .daily-summary .preview-heading { gap:4px; }
    .daily-summary .eyebrow { margin-bottom:4px; }
    .daily-summary h1 { margin-bottom:2px; font-size:1.15rem; }
    .daily-commercial-goal { display:none; }
    .daily-progress-label { gap:8px; font-size:13px; }
    .daily-execution progress { height:9px; }
    .daily-navigation { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
    .daily-navigation a { text-align:center; font-size:12px; padding:8px 4px; border:1px solid var(--syson-line); border-radius:8px; text-decoration:none; }
    .daily-navigation a:first-child { text-align:left; }
    .daily-navigation a:last-child { text-align:right; }
    .daily-execution textarea { min-height:190px; font-size:16px; line-height:1.48; }
    .daily-action-bar { margin:0 -16px -16px; padding:10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow:0 -12px 28px rgba(24,36,43,.08); }
    .daily-action-bar [role="status"] { font-size:13px; line-height:1.35; }
    .daily-main { min-height:54px; font-size:16px; }
    .daily-secondary-actions { grid-template-columns:1fr 1fr; width:100%; }
    .daily-secondary-actions .button { width:100%; min-height:44px; padding-left:10px; padding-right:10px; }
    .daily-secondary-help { font-size:11px; line-height:1.35; }
    .daily-disqualify-dialog { width:100%; max-width:none; max-height:82vh; margin:auto 0 0; border-radius:18px 18px 0 0; }
    .daily-disqualify-dialog form { padding:20px 16px calc(16px + env(safe-area-inset-bottom)); max-height:82vh; }
    .daily-dialog-actions { grid-template-columns:1fr; }
    .daily-dialog-actions .button { min-height:48px; }
}

/* Settings home */
.settings-home-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:stretch; }
.settings-integration-card { display:flex; flex-direction:column; gap:14px; color:inherit; text-decoration:none; transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease; }
.settings-integration-card:hover { transform:translateY(-2px); border-color:#b7d8d4; box-shadow:0 14px 34px rgba(20,55,50,.08); }
.settings-integration-card .muted { margin:0; }
.settings-integration-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.settings-integration-heading h2 { margin-bottom:0; }
.settings-integration-details { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:auto; padding-top:4px; }
.settings-integration-details div { padding-top:12px; border-top:1px solid var(--syson-line); }
@media (max-width:780px) {
    .settings-home-grid { grid-template-columns:1fr; }
    .settings-integration-details { grid-template-columns:1fr; }
}

/* Integrations settings */
.settings-grid { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(320px,.8fr); gap:20px; align-items:start; }
.integration-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
.integration-actions form { margin:0; }
.integration-event { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--syson-line); font-size:13px; }
.integration-event:last-child { border-bottom:0; padding-bottom:0; }
.integration-event time { color:var(--syson-muted); font-size:12px; white-space:nowrap; }
@media (max-width: 900px) {
    .settings-grid { grid-template-columns:1fr; }
}


/* LinkedIn synchronization UI */
.linkedin-name-line { display:flex; align-items:flex-start; gap:8px; flex-wrap:nowrap; min-width:0; }
.linkedin-name-line .contact-name-link,
.linkedin-name-line > strong,
.linkedin-name-line > a:not(.linkedin-sync-mark) { min-width:0; overflow-wrap:anywhere; }
.linkedin-name-line .linkedin-sync-mark { flex:0 0 auto; margin-top:1px; }
.linkedin-contact-title { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.linkedin-contact-title h1 { margin-bottom:0; }

.linkedin-sync-mark {
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:7px;
    width:fit-content;
    color:inherit;
    text-decoration:none;
    vertical-align:middle;
}
.linkedin-sync-logo {
    display:inline-grid;
    place-items:center;
    width:22px;
    height:22px;
    border-radius:5px;
    background:#0a66c2;
    color:#fff;
    font-size:13px;
    font-weight:850;
    letter-spacing:-.05em;
    line-height:1;
}
.linkedin-sync-dot {
    position:absolute;
    right:-2px;
    bottom:-2px;
    width:8px;
    height:8px;
    border:2px solid #fff;
    border-radius:50%;
    background:#9aa8ae;
}
.linkedin-sync-mark.is-synced .linkedin-sync-dot { background:#0b9b55; }
.linkedin-sync-mark.is-conflict .linkedin-sync-dot { background:#c2410c; }
.linkedin-sync-mark.is-attention .linkedin-sync-dot,
.linkedin-sync-mark.is-linked .linkedin-sync-dot { background:#d97706; }
.linkedin-sync-label {
    color:#53676b;
    font-size:12px;
    font-weight:750;
    white-space:nowrap;
}
.linkedin-sync-mark.is-conflict .linkedin-sync-label { color:#9a3412; }
.linkedin-table-warning { color:#9a3412; font-weight:700; }

.linkedin-contact-card { border-color:#cfe8e5; background:linear-gradient(180deg,#fff,#fbfdfd); }
.linkedin-sync-state {
    display:grid;
    gap:3px;
    margin:0 0 18px;
    padding:12px 14px;
    border:1px solid #cfe8e5;
    border-radius:10px;
    background:#f7fbfa;
}
.linkedin-sync-state strong { font-size:14px; }
.linkedin-sync-state span { color:#64777b; font-size:12px; }
.linkedin-sync-state.is-conflict { border-color:#fed7aa; background:#fff7ed; color:#9a3412; }
.linkedin-sync-state.is-attention,
.linkedin-sync-state.is-linked { border-color:#fde68a; background:#fffbeb; color:#92400e; }
.linkedin-sync-state.is-unlinked { border-color:#e5e7eb; background:#f8fafc; color:#64748b; }
.linkedin-conflict-box {
    display:grid;
    gap:3px;
    margin-top:16px;
    padding:12px 14px;
    border:1px solid #fed7aa;
    border-radius:10px;
    background:#fff7ed;
    color:#9a3412;
}
.linkedin-conflict-box span,
.linkedin-conflict-box small { font-size:12px; }

.linkedin-sync-heading .muted { max-width:760px; }
.linkedin-sync-stats { grid-template-columns:repeat(4,minmax(0,1fr)); }
.linkedin-stat-warning { border-color:#fed7aa; background:linear-gradient(180deg,#fff,#fffaf4); }
.linkedin-stat-warning strong { color:#9a3412; }
.linkedin-sync-grid {
    display:grid;
    grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr);
    gap:20px;
    align-items:start;
}
.linkedin-sync-main,
.linkedin-sync-side { display:grid; gap:20px; }
.linkedin-data-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin-top:18px;
}
.linkedin-data-grid > div {
    display:grid;
    gap:4px;
    padding:14px;
    border:1px solid var(--syson-line);
    border-radius:12px;
    background:#fafcfc;
}
.linkedin-data-grid span { color:var(--syson-muted); font-size:12px; }
.linkedin-data-grid strong { font-size:22px; letter-spacing:-.025em; }
.linkedin-health-row {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin-top:16px;
}
.linkedin-health-row > div {
    display:grid;
    gap:4px;
    padding:14px;
    border-top:1px solid var(--syson-line);
}
.linkedin-health-label,
.linkedin-health-row small { color:var(--syson-muted); font-size:12px; }
.linkedin-health-row strong { font-size:18px; }
.linkedin-review-badge { background:#fff7ed; color:#9a3412; }
.linkedin-review-row {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    padding:14px 0;
    border-bottom:1px solid var(--syson-line);
}
.linkedin-review-row:last-child { border-bottom:0; padding-bottom:0; }
.linkedin-review-main { display:grid; gap:3px; }
.linkedin-review-main > span,
.linkedin-review-main > small { color:var(--syson-muted); font-size:12px; }
.linkedin-review-main a { text-decoration:none; }
.linkedin-review-main a:hover { color:var(--syson-teal); }
.linkedin-clean-state { padding:24px; }
.linkedin-automation-item {
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:11px 0;
    border-bottom:1px solid var(--syson-line);
}
.linkedin-automation-item > div { display:grid; gap:2px; }
.linkedin-automation-item small { color:var(--syson-muted); }
.linkedin-automation-dot {
    width:9px;
    height:9px;
    margin-top:6px;
    border-radius:50%;
    background:#9aa8ae;
    flex:0 0 auto;
}
.linkedin-automation-dot.is-ok { background:#0b9b55; }
.linkedin-sync-details { margin-top:16px; }

@media (max-width: 1050px) {
    .linkedin-sync-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .linkedin-sync-grid { grid-template-columns:1fr; }
    .linkedin-sync-side { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 780px) {
    .linkedin-data-grid,
    .linkedin-health-row,
    .linkedin-sync-stats,
    .linkedin-sync-side { grid-template-columns:1fr; }
    .linkedin-review-row { flex-direction:column; }
}


/* Commercial context + AI campaign foundation */
.commercial-context-card,
.commercial-context-summary {
    border-color: #cfe8e5;
    background: linear-gradient(180deg, #fff, #fbfdfd);
}
.commercial-context-summary { margin-bottom: 24px; }
.commercial-context-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 18px;
}
.commercial-context-overview > div {
    display: grid;
    gap: 5px;
    padding: 15px;
    border: 1px solid var(--syson-line);
    border-radius: 12px;
    background: #fafcfc;
}
.commercial-context-overview span {
    color: var(--syson-muted);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.commercial-context-overview strong {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 650;
}
.commercial-context-details {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--syson-line);
}
.commercial-context-details > summary {
    cursor: pointer;
    color: var(--syson-teal);
    font-size: 14px;
    font-weight: 800;
}
.commercial-context-details[open] > summary { margin-bottom: 18px; }
.commercial-context-form { margin-top: 0; }
.commercial-channel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 780px) {
    .commercial-context-overview,
    .commercial-channel-grid {
        grid-template-columns: 1fr;
    }
}

.member-commercial-context {
    display: grid;
    gap: 2px;
    max-width: 760px;
    margin: 10px 0 0;
    padding: 10px 12px;
    border: 1px solid var(--syson-line);
    border-radius: 10px;
    background: #f8fbfb;
}
.member-commercial-context strong { font-size: 12px; color: #315f62; }
.member-commercial-context span { font-size: 12px; color: var(--syson-muted); line-height: 1.45; }


.sales-watch-card { margin-bottom: 20px; }
.sales-watch-empty { display: grid; gap: 5px; padding: 16px; border: 1px dashed var(--syson-line); border-radius: 12px; background: #fbfcfc; }
.sales-signal-list { display: grid; gap: 14px; }
.sales-signal-item { padding: 18px; border: 1px solid var(--syson-line); border-radius: 12px; background: #fbfcfc; }
.sales-signal-item h3 { margin: 0 0 8px; font-size: 17px; }
.sales-signal-item > p { white-space: pre-wrap; }
.sales-ai-panel { margin-top: 14px; padding: 16px; border-radius: 11px; background: #f4f8f7; border: 1px solid #dce9e6; }
.sales-ai-panel .preview-heading { margin-bottom: 10px; }
.sales-ai-panel .preview-heading strong { display: block; }
.signal-ai-instruction { margin-top: 14px; }
.signal-status-form { display: grid; grid-template-columns: minmax(180px, 260px) auto; gap: 10px; align-items: end; margin-top: 14px; }
.signal-status-form .button { margin-bottom: 0; }
@media (max-width: 680px) {
    .signal-status-form { grid-template-columns: 1fr; }
}


/* Campaign contacts table: preserve scanability on dense commercial lists. */
.table-card .table-wrap {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
}
.campaign-members-table {
    width: 100%;
    min-width: 1640px;
    table-layout: fixed;
}
.campaign-members-table th,
.campaign-members-table td {
    padding: 15px 14px;
}
.campaign-members-table th {
    white-space: nowrap;
}
.campaign-members-table th:nth-child(1),
.campaign-members-table td:nth-child(1) { width: 190px; }
.campaign-members-table th:nth-child(2),
.campaign-members-table td:nth-child(2) { width: 170px; }
.campaign-members-table th:nth-child(3),
.campaign-members-table td:nth-child(3) { width: 170px; }
.campaign-members-table th:nth-child(4),
.campaign-members-table td:nth-child(4) { width: 130px; }

.campaign-members-table.is-publisher th:nth-child(5),
.campaign-members-table.is-publisher td:nth-child(5) { width: 112px; }
.campaign-members-table.is-publisher th:nth-child(6),
.campaign-members-table.is-publisher td:nth-child(6) { width: 132px; }
.campaign-members-table.is-publisher th:nth-child(7),
.campaign-members-table.is-publisher td:nth-child(7) { width: 138px; }
.campaign-members-table.is-publisher th:nth-child(8),
.campaign-members-table.is-publisher td:nth-child(8) { width: 118px; }
.campaign-members-table.is-publisher th:nth-child(9),
.campaign-members-table.is-publisher td:nth-child(9) { width: 145px; }
.campaign-members-table.is-publisher th:nth-child(10),
.campaign-members-table.is-publisher td:nth-child(10) { width: 220px; }
.campaign-members-table.is-publisher th:nth-child(11),
.campaign-members-table.is-publisher td:nth-child(11) { width: 145px; }
.campaign-members-table.is-publisher th:nth-child(12),
.campaign-members-table.is-publisher td:nth-child(12) { width: 72px; }

.campaign-members-table.is-utio {
    min-width: 1500px;
}
.campaign-members-table.is-utio th:nth-child(5),
.campaign-members-table.is-utio td:nth-child(5) { width: 125px; }
.campaign-members-table.is-utio th:nth-child(6),
.campaign-members-table.is-utio td:nth-child(6) { width: 112px; }
.campaign-members-table.is-utio th:nth-child(7),
.campaign-members-table.is-utio td:nth-child(7) { width: 132px; }
.campaign-members-table.is-utio th:nth-child(8),
.campaign-members-table.is-utio td:nth-child(8) { width: 145px; }
.campaign-members-table.is-utio th:nth-child(9),
.campaign-members-table.is-utio td:nth-child(9) { width: 220px; }
.campaign-members-table.is-utio th:nth-child(10),
.campaign-members-table.is-utio td:nth-child(10) { width: 145px; }
.campaign-members-table.is-utio th:nth-child(11),
.campaign-members-table.is-utio td:nth-child(11) { width: 72px; }

.campaign-members-table .linkedin-name-line {
    align-items: flex-start;
    flex-wrap: nowrap;
}
.campaign-members-table .linkedin-name-line > strong {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    line-height: 1.35;
}
.campaign-members-table td:nth-child(2),
.campaign-members-table td:nth-child(3) {
    overflow-wrap: break-word;
    word-break: normal;
}
.campaign-members-table .table-signal {
    max-width: none;
}
.campaign-members-table td:nth-last-child(2) {
    white-space: nowrap;
}
.campaign-members-table tbody tr:hover td {
    background: #fbfdfd;
}

/* Keep the contact visible while horizontally scanning a wide campaign table. */
.campaign-members-table th:first-child,
.campaign-members-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 1px 0 0 #edf0f4;
}
.campaign-members-table th:first-child {
    z-index: 3;
    background: #fafbfc;
}
.campaign-members-table tbody tr:hover td:first-child {
    background: #fbfdfd;
}

@media (max-width: 780px) {
    .campaign-members-table {
        min-width: 1540px;
    }
    .campaign-members-table.is-utio {
        min-width: 1420px;
    }
    .campaign-members-table th,
    .campaign-members-table td {
        padding: 13px 12px;
    }
}


/* Publisher compact contact list: operational view without horizontal overload. */
.campaign-members-table.is-publisher {
    min-width: 1080px;
    table-layout: fixed;
}
.campaign-members-table.is-publisher th:nth-child(1),
.campaign-members-table.is-publisher td:nth-child(1) { width: 190px; }
.campaign-members-table.is-publisher th:nth-child(2),
.campaign-members-table.is-publisher td:nth-child(2) { width: 210px; }
.campaign-members-table.is-publisher th:nth-child(3),
.campaign-members-table.is-publisher td:nth-child(3) { width: 145px; }
.campaign-members-table.is-publisher th:nth-child(4),
.campaign-members-table.is-publisher td:nth-child(4) { width: 220px; }
.campaign-members-table.is-publisher th:nth-child(5),
.campaign-members-table.is-publisher td:nth-child(5) { width: 245px; }
.campaign-members-table.is-publisher th:nth-child(6),
.campaign-members-table.is-publisher td:nth-child(6) { width: 135px; }
.campaign-members-table.is-publisher th:nth-child(7),
.campaign-members-table.is-publisher td:nth-child(7) { width: 70px; }

.campaign-members-table.is-publisher td {
    white-space: normal;
}
.campaign-members-table.is-publisher .publisher-company {
    display: block;
    line-height: 1.35;
}
.campaign-members-table.is-publisher .publisher-status-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.campaign-members-table.is-publisher .publisher-contact-origin {
    margin-top: 6px;
}
.campaign-members-table.is-publisher .publisher-ai-cost {
    margin-top: 8px;
    color: #607083;
}
.campaign-members-table.is-publisher td:nth-child(5) strong {
    display: block;
    margin-bottom: 4px;
}
.campaign-members-table.is-publisher td:nth-child(6) {
    white-space: nowrap;
}
.campaign-members-table.is-publisher td:last-child .sub-link {
    margin-top: 0;
    font-weight: 750;
}
@media (max-width: 1180px) {
    .campaign-members-table.is-publisher {
        min-width: 1040px;
    }
}


/* Publisher contact list visual hierarchy v2. */
.campaign-members-table.is-publisher {
    min-width: 1000px;
}
.campaign-members-table.is-publisher th {
    padding-top: 13px;
    padding-bottom: 13px;
    color: #6b7c8d;
    font-size: 11px;
    letter-spacing: .075em;
    background: #f8fafb;
}
.campaign-members-table.is-publisher td {
    padding-top: 16px;
    padding-bottom: 16px;
    border-bottom-color: #e8efed;
}
.campaign-members-table.is-publisher th:nth-child(1),
.campaign-members-table.is-publisher td:nth-child(1) { width: 175px; }
.campaign-members-table.is-publisher th:nth-child(2),
.campaign-members-table.is-publisher td:nth-child(2) { width: 200px; }
.campaign-members-table.is-publisher th:nth-child(3),
.campaign-members-table.is-publisher td:nth-child(3) { width: 135px; }
.campaign-members-table.is-publisher th:nth-child(4),
.campaign-members-table.is-publisher td:nth-child(4) { width: 205px; }
.campaign-members-table.is-publisher th:nth-child(5),
.campaign-members-table.is-publisher td:nth-child(5) { width: 220px; }
.campaign-members-table.is-publisher th:nth-child(6),
.campaign-members-table.is-publisher td:nth-child(6) { width: 120px; }
.campaign-members-table.is-publisher th:nth-child(7),
.campaign-members-table.is-publisher td:nth-child(7) { width: 56px; text-align:right; }

.campaign-members-table.is-publisher .contact-name-link {
    color: var(--syson-ink);
    text-decoration: none;
    font-weight: 800;
    line-height: 1.3;
}
.campaign-members-table.is-publisher .contact-name-link:hover {
    color: var(--syson-teal);
}
.publisher-contact-name {
    align-items: center !important;
}
.publisher-contact-links {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 7px;
}
.publisher-meta-link {
    color: var(--syson-teal);
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}
.publisher-meta-link:hover { text-decoration: underline; }
.publisher-source-pill {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 7px;
    border: 1px solid #e1e8e6;
    border-radius: 999px;
    background: #f7f9f9;
    color: #718186;
    font-size: 10px;
    font-weight: 700;
}
.publisher-company {
    font-size: 13px;
    font-weight: 750;
}
.publisher-secondary {
    display: block;
    margin-top: 6px;
    color: #7b8a8e;
    font-size: 11px;
    line-height: 1.35;
}
.publisher-conversation-summary {
    display: grid;
    gap: 7px;
    justify-items: start;
}
.publisher-message-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #235b5e;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}
.publisher-message-count:hover { color: var(--syson-teal); }
.publisher-message-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--syson-teal);
    box-shadow: 0 0 0 3px rgba(0,138,148,.10);
}
.publisher-conversation-empty {
    color: #89979a;
    font-size: 12px;
}
.publisher-attention-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff3e8;
    color: #a3450d;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}
.publisher-attention-pill:hover { background: #ffe7d1; }
.publisher-attention-pill.is-reply {
    background: #fde9df;
    color: #9b3412;
    box-shadow: inset 0 0 0 1px rgba(163,69,13,.08);
}

.publisher-status-stack {
    display: flex !important;
    flex-wrap: wrap;
    gap: 5px !important;
    align-items: center;
}
.publisher-state-pill {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 3px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f1f5f4;
    color: #576b70;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}
.publisher-state-pill.state-new,
.publisher-state-pill.demo-ready {
    background: #eef5f7;
    color: #45656b;
}
.publisher-state-pill.state-sent,
.publisher-state-pill.state-responded,
.publisher-state-pill.demo-opened,
.publisher-state-pill.demo-started {
    background: #eaf7f6;
    color: #14656a;
}
.publisher-state-pill.state-interested,
.publisher-state-pill.commercial-interested,
.publisher-state-pill.demo-completed {
    background: #eaf8f0;
    color: #157347;
}
.publisher-state-pill.state-follow_up,
.publisher-state-pill.commercial-warm {
    background: #fff6df;
    color: #8a5a00;
}
.publisher-state-pill.state-not_interested,
.publisher-state-pill.state-closed,
.publisher-state-pill.commercial-not_interested,
.publisher-state-pill.commercial-do_not_contact,
.publisher-state-pill.demo-revoked {
    background: #f4f5f6;
    color: #6c7378;
}
.publisher-state-pill.commercial-personal {
    background: #f4effb;
    color: #6b4c8f;
}
.publisher-signal-label {
    margin-top: 7px;
    font-weight: 700;
}
.publisher-next-action {
    display: grid;
    gap: 4px;
}
.publisher-next-action strong {
    font-size: 12px;
    color: #26363c;
}
.publisher-next-action span {
    color: #708087;
    font-size: 11px;
    line-height: 1.4;
}
.publisher-next-action.is-overdue strong {
    color: #a3450d;
}
.publisher-next-action.is-overdue::before {
    content: "Pendiente";
    width: fit-content;
    padding: 2px 6px;
    border-radius: 999px;
    background: #fff3e8;
    color: #a3450d;
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.publisher-last-contact {
    color: #52656b;
    font-size: 12px;
    white-space: nowrap;
}
.publisher-open-button {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-left: auto;
    border: 1px solid #d9e6e3;
    border-radius: 9px;
    background: #f7fbfa;
    color: var(--syson-teal);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.publisher-open-button:hover {
    transform: translateX(2px);
    background: #edf8f6;
    border-color: #b7d8d4;
}
.campaign-members-table.is-publisher .campaign-contact-row td:first-child {
    border-left: 3px solid transparent;
}
.campaign-members-table.is-publisher .campaign-contact-row.is-attention td:first-child {
    border-left-color: #e58b43;
}
.campaign-members-table.is-publisher .campaign-contact-row.is-opportunity td:first-child {
    border-left-color: #39a96b;
}
.campaign-members-table.is-publisher .campaign-contact-row.is-followup td:first-child {
    border-left-color: #d6a62d;
}
.campaign-members-table.is-publisher .campaign-contact-row.is-closed {
    opacity: .78;
}
.campaign-members-table.is-publisher .campaign-contact-row:hover td {
    background: #f9fcfb;
}
.campaign-members-table.is-publisher .campaign-contact-row:hover td:first-child {
    background: #f9fcfb;
}
@media (max-width: 1180px) {
    .campaign-members-table.is-publisher {
        min-width: 980px;
    }
}


/* Omnichannel commercial inbox and contact chats. */
.nav-inbox-link {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}
.nav-inbox-count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
}
.nav-inbox-count.is-attention {
    background: #fff0e5;
    color: #a3450d;
}
.nav-inbox-count.is-unread {
    background: #eaf3fb;
    color: #1769aa;
}

.inbox-page-heading { margin-bottom: 18px; }
.inbox-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.inbox-summary-card {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--syson-line);
    border-radius: 12px;
    background: #fff;
    color: var(--syson-ink);
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(20,55,50,.035);
}
.inbox-summary-card span {
    color: #687a7f;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.inbox-summary-card strong {
    font-size: 24px;
    letter-spacing: -.03em;
}
.inbox-summary-card:hover,
.inbox-summary-card.is-active {
    border-color: #abd4cf;
    background: #f8fcfb;
}
.inbox-summary-card.is-attention strong { color: #a3450d; }
.inbox-summary-card.is-unread strong { color: #1769aa; }

.inbox-filter-card {
    padding: 16px;
    margin-bottom: 16px;
}
.inbox-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 180px auto auto;
    gap: 10px;
    align-items: end;
}
.inbox-list-card { padding: 0; overflow: hidden; }
.inbox-list { display: grid; }
.inbox-conversation-row {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 86px 30px;
    gap: 14px;
    align-items: center;
    padding: 15px 18px;
    border-bottom: 1px solid #edf2f1;
    color: inherit;
    text-decoration: none;
    transition: background .12s ease, transform .12s ease;
}
.inbox-conversation-row:last-child { border-bottom: 0; }
.inbox-conversation-row:hover { background: #f9fcfb; }
.inbox-conversation-row.needs-reply { box-shadow: inset 3px 0 0 #e58b43; }
.inbox-conversation-row.is-unread .inbox-conversation-heading > strong { font-weight: 850; }
.inbox-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #eef5f4;
    color: #315f62;
    font-size: 15px;
    font-weight: 850;
}
.inbox-avatar.channel-linkedin { background: #e9f2fb; color: #0a66c2; }
.inbox-avatar.channel-whatsapp { background: #eaf8ef; color: #157347; }
.inbox-conversation-main { min-width: 0; }
.inbox-conversation-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}
.inbox-conversation-heading > strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}
.inbox-conversation-badges {
    display: flex;
    gap: 5px;
    flex: 0 0 auto;
}
.inbox-conversation-main > p {
    margin: 3px 0 5px;
    color: #52656b;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.inbox-conversation-meta {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    color: #8a989c;
    font-size: 10px;
}
.inbox-conversation-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 7px;
}
.inbox-channel-pill,
.inbox-attention-pill,
.inbox-unread-pill {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
}
.inbox-channel-pill { background: #f1f5f4; color: #5a6e72; }
.inbox-channel-pill.channel-linkedin { background: #eaf3fb; color: #0a66c2; }
.inbox-channel-pill.channel-whatsapp { background: #eaf8ef; color: #157347; }
.inbox-attention-pill { background: #fff0e5; color: #a3450d; }
.inbox-unread-pill { background: #eaf3fb; color: #1769aa; }
.inbox-conversation-time {
    color: #7d8c90;
    font-size: 10px;
    white-space: nowrap;
    text-align: right;
}
.inbox-row-arrow {
    color: var(--syson-teal);
    font-size: 18px;
    font-weight: 800;
    text-align: right;
}

.chat-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, .65fr);
    gap: 18px;
    align-items: start;
}
.chat-card {
    padding: 0;
    overflow: hidden;
}
.chat-thread {
    display: grid;
    gap: 10px;
    max-height: 66vh;
    min-height: 420px;
    padding: 22px;
    overflow-y: auto;
    background:
        radial-gradient(circle at 12% 18%, rgba(0,138,148,.035), transparent 28%),
        #f8fbfa;
}
.chat-message { display: flex; }
.chat-message.is-outbound { justify-content: flex-end; }
.chat-message.is-inbound { justify-content: flex-start; }
.chat-message-bubble {
    width: fit-content;
    max-width: min(76%, 680px);
    padding: 10px 12px 8px;
    border: 1px solid #dfe9e7;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(20,55,50,.035);
}
.chat-message.is-outbound .chat-message-bubble {
    background: #eaf8f0;
    border-color: #cfe9da;
}
.chat-message-bubble p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.45;
}
.chat-message-meta {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 5px;
    color: #849397;
    font-size: 9px;
}
.chat-composer {
    border-top: 1px solid var(--syson-line);
    background: #fff;
    padding: 16px;
}
.chat-composer-form { display: grid; gap: 10px; }
.chat-composer-form label { gap: 6px; }
.chat-composer-form textarea {
    min-height: 96px;
    max-height: 230px;
}
.chat-composer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.chat-ai-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-top: 1px solid var(--syson-line);
    background: #fff;
}
.chat-ai-panel .preview-heading { margin-bottom: 0; }
.chat-ai-panel h2 { margin-bottom: 0; }
.chat-ai-context {
    display: grid;
    gap: 3px;
    padding: 12px 14px;
    border: 1px solid #cfe8e5;
    border-radius: 11px;
    background: #f7fbfa;
}
.chat-ai-context span {
    color: var(--syson-muted);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.chat-ai-context strong { font-size: 13px; }
.chat-ai-context small { color: var(--syson-muted); line-height: 1.45; }
.chat-ai-signals { margin-top: 2px; }
.chat-ai-reading {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #465b60;
}
.chat-ai-reply { margin-top: 2px; }
.chat-ai-reply textarea {
    min-height: 126px;
    line-height: 1.5;
}
.chat-ai-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.chat-ai-form {
    margin-top: 2px;
    padding-top: 14px;
    border-top: 1px solid var(--syson-line);
}
.chat-ai-form textarea { min-height: 72px; }

.chat-channel-notice {
    display: grid;
    gap: 4px;
    margin: 16px;
    padding: 13px 14px;
    border: 1px solid var(--syson-line);
    border-radius: 11px;
    background: #f8fbfb;
}
.chat-channel-notice strong { font-size: 12px; }
.chat-channel-notice span { font-size: 11px; }
.chat-context-card { position: sticky; top: 18px; }
.chat-context-card h2 { margin-bottom: 18px; }

.contact-chats-card { margin-bottom: 20px; }
.contact-chat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}
.contact-chat-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--syson-line);
    border-radius: 12px;
    background: #fbfdfd;
    color: inherit;
    text-decoration: none;
}
.contact-chat-card:hover {
    border-color: #b7d8d4;
    background: #f7fbfa;
}
.contact-chat-card.needs-reply { box-shadow: inset 3px 0 0 #e58b43; }
.contact-chat-card-heading {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.contact-chat-card > strong {
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.contact-chat-card > small { color: #7f8f93; }

@media (max-width: 1050px) {
    .inbox-summary { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
    .inbox-filters { grid-template-columns: minmax(220px, 1fr) 160px 160px auto; }
    .inbox-filters .button-secondary { grid-column: auto; }
    .chat-workspace { grid-template-columns: 1fr; }
    .chat-context-card { position: static; }
}
@media (max-width: 780px) {
    .inbox-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .inbox-filters { grid-template-columns: 1fr; }
    .inbox-conversation-row {
        grid-template-columns: 38px minmax(0, 1fr) 26px;
        gap: 10px;
        padding: 13px 14px;
    }
    .inbox-conversation-time { display: none; }
    .inbox-avatar { width: 36px; height: 36px; border-radius: 10px; }
    .inbox-conversation-heading { align-items: flex-start; }
    .inbox-conversation-badges { flex-wrap: wrap; justify-content: flex-end; }
    .chat-message-bubble { max-width: 88%; }
    .chat-composer-actions { align-items: stretch; flex-direction: column; }
    .chat-composer-actions .button { width: 100%; }
}
