:root{font-family:Arial,Helvetica,sans-serif;color:#142443;background:#edf3f9;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}a{color:inherit}button,input,select{font:inherit}.app{display:flex;min-height:100vh}.sidebar{width:266px;flex:0 0 266px;background:#101d3d;color:#d6e4f8;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:27px 17px 22px;border-right:1px solid #223a60}.brand{display:flex;align-items:center;gap:12px;padding:0 8px 32px}.brand strong{color:#fff;display:block;font-size:17px;letter-spacing:-.5px}.brand em,.login-brand em{color:#8bbaff;font-style:normal}.brand small{display:block;color:#93a7c6;font-size:10px;letter-spacing:1.5px;margin-top:6px}.brand-mark{width:41px;height:41px;background:#1753b8;color:#fff;border:1px solid #457bd6;border-radius:12px;display:grid;place-items:center;font-size:14px;font-weight:800;flex-shrink:0}.main-nav{display:flex;flex-direction:column;gap:8px}.nav-link{display:flex;align-items:center;gap:12px;width:100%;padding:13px 12px;color:#bdcde4;text-decoration:none;border-radius:11px;font-size:13px;font-weight:700;cursor:pointer;list-style:none;min-height:44px}.nav-link::-webkit-details-marker{display:none}.nav-link:hover{background:#1c3155;color:#fff}.nav-link.active{background:#1753b8;color:#fff}.nav-icon{font-size:19px;width:24px;text-align:center;font-weight:400}.chev{margin-left:auto}.tiny-status{margin-left:auto;font-size:8px;color:#b6c8e7;background:#293d61;padding:5px 6px;border-radius:6px;letter-spacing:.5px}.subnav{padding:4px 0 6px 47px;display:flex;flex-direction:column;gap:3px}.subnav a{text-decoration:none;color:#a9bfdf;padding:8px 8px;border-left:2px solid #364b70;font-size:12px}.subnav a:hover,.subnav a.selected{color:#fff;border-color:#7facff;background:#243c64;border-radius:0 6px 6px 0}.sidebar-foot{margin-top:auto;border-top:1px solid #334a6b;padding:20px 12px 0;color:#8298bb;font-size:10px;letter-spacing:.8px;line-height:1.8}.workspace{flex:1;min-width:0;background:#f5f8fc}.topbar{height:74px;background:white;border-bottom:1px solid #e3eaf3;display:flex;align-items:center;justify-content:space-between;padding:0 40px}.topbar-caption{font-size:11px;color:#7082a0}.logout{background:#f5f8fc;border:1px solid #e3eaf3;color:#142443;border-radius:9px;padding:10px 16px;font-size:12px;font-weight:700;cursor:pointer}.logout:hover{background:#e5edf7}.content{max-width:1420px;margin:auto;padding:40px}.eyebrow{color:#1753b8;letter-spacing:1.3px;font-size:10px;font-weight:800}.heading-row{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:27px}.heading-row h1,.content h1{color:#101d3d;font-size:30px;letter-spacing:-.7px;margin:9px 0 8px}.muted{font-size:13px;color:#60728d;line-height:1.65}.lab-badge,.pending-badge{font-size:10px;font-weight:800;letter-spacing:.7px;white-space:nowrap;background:#e7efff;color:#1753b8;border-radius:20px;padding:10px 14px}.pending-badge{color:#60728d;background:#e5edf7}.surface{background:#fff;border:1px solid #e3eaf3;box-shadow:0 7px 27px #1324430b;border-radius:17px;margin-bottom:22px;overflow:hidden}.filter-box{padding:26px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:21px}.section-head h2{font-size:17px;color:#101d3d;margin:0}.section-head .muted{font-size:11px}.filter-form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:13px}.filter-form>div{min-width:140px;flex:1}.filter-form label,.login-form label{display:block;margin-bottom:9px;font-size:11px;color:#60728d;font-weight:800}.filter-form input,.filter-form select,.login-form input{display:block;width:100%;height:43px;padding:10px 12px;border:1px solid #dce5f0;border-radius:9px;color:#142443;background:#f9fbff;font-size:12px}.filter-form input:focus,.login-form input:focus,.filter-form select:focus{outline:2px solid #1753b8;outline-offset:1px}.primary{min-height:43px;display:inline-flex;align-items:center;justify-content:center;background:#1753b8;border:1px solid #1753b8;color:white;text-decoration:none;border-radius:9px;font-weight:800;padding:12px 19px;cursor:pointer;font-size:12px}.primary:hover{background:#11458f}.reset{padding:12px 5px;font-size:12px;color:#60728d;text-decoration:none}.reports-box{padding:23px 26px}.count-pill{background:#e5edf7;border-radius:20px;color:#1753b8;font-size:11px;font-weight:700;padding:6px 11px}.report-row{display:flex;align-items:center;text-decoration:none;gap:16px;padding:17px 3px;border-top:1px solid #e9eff7;transition:background .12s}.report-row:hover{background:#f5f8fc}.report-glyph{width:46px;height:46px;background:#e5edf7;color:#1753b8;border-radius:12px;display:grid;place-items:center;font-size:22px;flex-shrink:0}.report-description{flex:1;min-width:0}.report-description strong{font-size:13px;color:#101d3d}.report-meta{display:flex;align-items:center;flex-wrap:wrap;gap:12px;color:#60728d;font-size:11px;margin-top:9px}.type-pill{background:#e7efff;color:#1753b8;padding:5px 10px;border-radius:20px;font-weight:800;font-size:10px}.report-end{text-align:right}.report-date{font-size:11px;color:#60728d}.report-open{display:block;margin-top:8px;color:#1753b8;font-size:11px;font-weight:800}.empty{text-align:center;padding:50px 20px;border-top:1px solid #e9eff7}.empty h3{color:#101d3d;font-size:17px}.empty-icon{font-size:29px;color:#1753b8}.secondary-action{display:inline-flex;text-decoration:none;color:#1753b8;border:1px solid #bed0ec;border-radius:9px;font-size:12px;font-weight:800;padding:11px 15px;margin-top:12px}.secondary-action:hover{background:#e7efff}.back{display:inline-block;color:#1753b8;text-decoration:none;font-size:12px;font-weight:700;margin-bottom:24px}.detail-heading{margin-bottom:22px}.preview-surface{padding:19px}.preview-surface iframe{width:100%;min-height:760px;border:1px solid #e3eaf3;border-radius:12px;background:white;display:block}.placeholder{text-align:center;padding:70px 25px}.placeholder-icon{width:66px;height:66px;border-radius:17px;background:#e5edf7;color:#1753b8;font-size:32px;display:grid;place-items:center;margin:0 auto 21px}.placeholder h2{font-size:21px;color:#101d3d}.placeholder p{max-width:530px;margin:10px auto}.future-options{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin:27px auto 10px}.future-options span{border:1px solid #e3eaf3;background:#f5f8fc;border-radius:8px;padding:11px 14px;color:#60728d;font-size:12px}.small-note{font-size:11px}.overview-banner{background:#101d3d;border:1px solid #273f68;border-radius:17px;padding:34px;display:flex;justify-content:space-between;gap:20px;overflow:hidden;margin-bottom:22px;color:white}.overview-banner .eyebrow{color:#93bafb}.overview-banner h2{font-size:25px;color:#fff;margin:14px 0}.overview-banner p{font-size:13px;color:#c3d1e5;margin:0 0 22px}.inline-action{display:inline-flex}.overview-illustration{width:240px;min-height:130px;background:#20365b;border:1px solid #41618f;border-radius:13px;padding:20px;display:flex;flex-direction:column;gap:14px}.mini-line{display:flex;align-items:end;gap:8px;height:40px}.mini-line i{display:block;flex:1;height:12px;border-top:3px solid #7facff;transform:skewY(-10deg)}.mini-line i:nth-child(2){height:24px}.mini-line i:nth-child(3){height:16px}.mini-line i:nth-child(4){height:33px}.mini-bars{display:flex;align-items:end;gap:12px;height:55px}.mini-bars span{display:block;flex:1;height:40%;background:#477eda;border-radius:3px 3px 0 0}.mini-bars span:nth-child(2){height:75%}.mini-bars span:nth-child(3){height:55%}.mini-bars span:nth-child(4){height:90%}.section-link{color:#1753b8;text-decoration:none;font-size:12px;font-weight:800}.mobile-nav{display:none}.login-layout{min-height:100vh;background:#edf3f9;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px}.login-brand{display:flex;align-items:center;gap:12px;margin-bottom:26px;color:#101d3d}.login-brand strong{font-size:23px}.login-brand span{color:#60728d;font-size:10px;letter-spacing:1px}.login-card{width:min(100%,460px);padding:40px;background:white;border:1px solid #e3eaf3;border-radius:17px;box-shadow:0 16px 44px #14244315}.login-card h1{font-size:29px;color:#101d3d;margin:10px 0}.login-form{margin-top:26px}.login-form label{margin-top:18px}.login-form .primary{width:100%;margin-top:25px}.login-error{background:#ffe9ed;color:#c92341;border-radius:9px;padding:12px;font-size:12px;margin-top:18px}.footer-note{margin-top:22px;text-align:center;font-size:11px}@media(max-width:1080px){.sidebar{width:220px;flex-basis:220px;padding-left:10px;padding-right:10px}.brand strong{font-size:14px}.nav-link{font-size:12px}.tiny-status{font-size:7px}.content{padding:28px}.topbar{padding:0 28px}.overview-illustration{width:150px}}@media(max-width:760px){.app{display:block}.sidebar{height:auto;position:relative;width:100%;padding:13px 16px;display:block}.brand{padding:0;justify-content:flex-start}.brand strong{font-size:16px}.brand small{font-size:9px}.desktop-nav,.sidebar-foot{display:none}.mobile-nav{display:block;margin-top:10px}.mobile-nav>summary{list-style:none;background:#1c3155;color:#fff;border-radius:9px;padding:12px;font-size:12px;cursor:pointer}.mobile-nav>summary::-webkit-details-marker{display:none}.nav-content{padding-top:8px}.nav-link{font-size:12px}.topbar{height:58px;padding:0 17px}.content{padding:22px 15px}.heading-row{align-items:start;gap:12px}.heading-row h1{font-size:24px}.lab-badge,.pending-badge{font-size:8px;padding:8px}.filter-box,.reports-box{padding:18px}.filter-form{gap:12px}.filter-form>div{min-width:calc(50% - 7px)}.report-row{gap:10px}.report-glyph{width:38px;height:38px;font-size:18px}.report-date{display:none}.report-description strong{font-size:12px}.report-meta{font-size:10px;gap:7px}.preview-surface{padding:8px}.preview-surface iframe{min-height:670px}.overview-banner{padding:24px}.overview-illustration{display:none}.login-brand{flex-wrap:wrap;justify-content:center}.login-brand span{width:100%;text-align:center}.login-card{padding:28px}.topbar-caption{display:none}}@media(max-width:420px){.filter-form>div{min-width:100%}.filter-form .primary{width:100%}.report-end{min-width:51px}.report-open{font-size:10px}.report-glyph{display:none}.heading-row{flex-wrap:wrap}}

/* HUB-002/UX-QA: neutral document illustration, never invented analytics. */
.doc-illustration{width:100%;min-height:132px;background:#f5f8fc;border:1px solid #dce5f0;border-radius:10px;padding:17px 18px;display:flex;flex-direction:column;gap:12px;box-shadow:0 6px 16px #101d3d12}
.doc-label{font-size:10px;font-weight:800;letter-spacing:1px;color:#1753b8}
.doc-illustration i{height:7px;background:#dce5f0;border-radius:5px;display:block;width:95%}
.doc-illustration i:nth-of-type(2){width:77%}.doc-illustration i:nth-of-type(3){width:91%}.doc-illustration i:nth-of-type(4){width:65%}
@media(max-width:760px){.preview-surface iframe{min-height:900px}}

/* HUB-002/UX-PREVIEW: email-like reading surface.
   This styles only the portal shell, never the archived HTML document. */
.mail-preview-layout {
  max-width: 1040px;
  margin: 0 auto;
}
.mail-preview-back {
  display: block;
  max-width: 920px;
  margin: 0 auto 24px;
}
.mail-preview-header {
  max-width: 920px;
  margin: 0 auto 26px;
}
.mail-preview-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mail-preview-title-row h1 {
  margin: 10px 0 0;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #101d3d;
  font-size: 26px;
  line-height: 1.17;
}
.mail-preview-meta {
  margin-top: 12px;
  gap: 12px;
}
.mail-preview-content {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.mail-preview-content iframe {
  display: block;
  width: 100%;
  height: 840px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #edf3f9;
  box-shadow: none;
}
@media (max-width: 760px) {
  .mail-preview-back {
    margin-bottom: 22px;
  }
  .mail-preview-header {
    margin-bottom: 22px;
  }
  .mail-preview-title-row {
    align-items: flex-start;
  }
  .mail-preview-title-row h1 {
    font-size: 23px;
    line-height: 1.2;
  }
  .mail-preview-title-row .lab-badge {
    flex-shrink: 0;
    margin-top: 8px;
  }
  .mail-preview-content {
    width: calc(100% + 30px);
    max-width: none;
    margin-left: -15px;
    margin-right: -15px;
  }
  .mail-preview-content iframe {
    height: 980px;
  }
}
@media (max-width: 420px) {
  .mail-preview-title-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .mail-preview-title-row .lab-badge {
    margin-top: 0;
  }
}

/* HUB-LEADS-001/S: isolated, synthetic lead list + detail. Reuse Ads Analytics 2.0 palette. */
.lead-page-header {margin-bottom:25px}
.lead-name-filter {flex:1.5!important}
.lead-filters input[type="search"] {height:43px;padding:10px 12px;border:1px solid #dce5f0;border-radius:9px;color:#142443;background:#f9fbff;width:100%;font-size:12px}
.lead-filters input[type="search"]:focus {outline:2px solid #1753b8;outline-offset:1px}
.lead-list-surface {padding:22px 25px}
.lead-list-head {margin-bottom:16px}
.lead-table-wrap {width:100%;overflow-x:auto}
.lead-table {width:100%;border-collapse:collapse;table-layout:auto;font-size:12px;color:#142443}
.lead-table th {background:#f5f8fc;color:#60728d;font-size:10px;font-weight:800;text-align:left;white-space:nowrap;padding:13px 10px;letter-spacing:.3px}
.lead-table td {padding:14px 10px;border-bottom:1px solid #e3eaf3;vertical-align:middle;line-height:1.45}
.lead-table tbody tr:hover {background:#f9fbff}
.lead-name-link {color:#101d3d;text-decoration:none;font-weight:800}
.lead-name-link:hover,.lead-detail-link:hover {color:#1753b8;text-decoration:underline}
.lead-campaign strong {display:block;font-size:11px;line-height:1.4}
.lead-campaign small {display:block;font-size:10px;color:#60728d;margin-top:3px}
.source-pill {font-weight:700;color:#1753b8;font-size:10px;border-radius:16px;background:#e7efff;padding:6px 9px;white-space:nowrap}
.lead-status {display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:800;padding:6px 9px;border-radius:16px;background:#e5edf7;color:#142443;white-space:nowrap}
.lead-status-new {background:#e7efff;color:#1753b8}
.lead-status-contact {background:#e5edf7;color:#354a69}
.lead-status-appointment {background:#e9f3ff;color:#1753b8}
.lead-status-customer {background:#e5edf7;color:#101d3d}
.lead-status-lost,.lead-status-no-response {background:#fff0f2;color:#c92341}
.lead-detail-link {font-weight:800;font-size:11px;color:#1753b8;text-decoration:none;white-space:nowrap}
.lead-detail-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,0.9fr);gap:20px;align-items:start}
.lead-information,.lead-editor {padding:25px;margin:0;min-width:0}
.lead-information h2,.lead-editor h2 {font-size:18px;color:#101d3d;margin:0 0 18px}
.lead-fields {display:grid;grid-template-columns:1fr 1fr;gap:18px 16px;margin:0}
.lead-fields div {min-width:0}
.lead-fields dt {font-size:10px;font-weight:800;color:#60728d;margin-bottom:8px}
.lead-fields dd {font-size:12px;line-height:1.5;color:#142443;font-weight:700;overflow-wrap:anywhere;margin:0}
.lead-edit-form {display:flex;flex-direction:column;gap:9px;margin-top:20px}
.lead-edit-form label {font-size:11px;font-weight:800;color:#60728d}
.lead-select,.lead-notes {width:100%;background:#f9fbff;border:1px solid #dce5f0;border-radius:9px;padding:12px;color:#142443;line-height:1.5}
.lead-notes {min-height:148px;resize:vertical}
.lead-select:focus,.lead-notes:focus {outline:2px solid #1753b8;outline-offset:1px}
.lead-editor-hint {font-size:11px;margin:3px 0 7px}
.lead-edit-form .primary {align-self:flex-start}
.lead-notice {padding:14px 17px;font-size:12px;line-height:1.5;border-radius:10px;margin:0 0 17px}
.lead-notice-success {background:#e5edf7;border:1px solid #dce5f0;color:#1753b8}
.lead-notice-error {background:#fff0f2;border:1px solid #f0c2cb;color:#c92341}
.lead-field-error {color:#c92341;font-size:11px}
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1180px) {
  .lead-detail-layout {grid-template-columns:1fr}
}
@media(max-width:760px) {
  .lead-list-surface {padding:17px}
  .lead-table-wrap {overflow:visible}
  .lead-table,.lead-table tbody,.lead-table tr,.lead-table td {display:block;width:100%}
  .lead-table thead {display:none}
  .lead-table tr {padding:14px 0;border-bottom:1px solid #e3eaf3}
  .lead-table td {display:flex;gap:12px;justify-content:space-between;align-items:flex-start;text-align:right;min-width:0;padding:8px 2px;border-bottom:0;font-size:12px;overflow-wrap:anywhere}
  .lead-table td::before {content:attr(data-label);flex:0 0 35%;color:#60728d;font-size:10px;text-align:left;font-weight:700}
  .lead-table td.lead-open-cell::before {content:""}
  .lead-table .lead-campaign strong,.lead-table .lead-campaign small {text-align:right;overflow-wrap:anywhere}
  .lead-information,.lead-editor {padding:18px}
  .lead-fields {grid-template-columns:1fr 1fr}
  .lead-page-header h1 {font-size:25px}
}
@media(max-width:440px) {
  .lead-fields {grid-template-columns:1fr}
  .lead-page-header {gap:12px}
  .lead-status {white-space:normal;text-align:right}
}


/* HUB-LEADS-005A/S — quiet platform accents, local vector icons. */
.source-pill{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:800;line-height:1.25;white-space:nowrap;padding:5px 9px;border:1px solid #d9e3ef;background:#f0f4f9;color:#60728d;border-radius:16px;vertical-align:middle}
a.lead-source-link{display:inline-flex;text-decoration:none;border-radius:16px}
a.lead-source-link:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.source-pill img{display:block;flex:none;width:15px;height:15px}
.source-pill--messenger{background:#eaf2ff;color:#1753b8;border-color:#d6e4ff}
.source-pill--instagram{background:#f8ecf8;color:#a03e8c;border-color:#f0dced}
.source-pill--whatsapp{background:#eaf8f0;color:#1f8f5f;border-color:#d5efe0}
.source-pill--meta{background:#eef1fb;color:#4c5fa8;border-color:#dce2f6}
.source-pill--neutral{background:#f0f4f9;color:#60728d;border-color:#dce5ee}
.lead-conversation-actions{margin-top:22px;padding-top:18px;border-top:1px solid #e9eff7}
.lead-conversation-action{display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:10px 14px;border:1px solid #c8d8ee;border-radius:9px;background:#f2f7fe;color:#142443;font-size:12px;font-weight:800;text-decoration:none;transition:background .15s,border-color .15s}
.lead-conversation-action:hover{background:#e5edf9;border-color:#afc7e9;color:#1753b8}
.lead-conversation-action:focus-visible{outline:2px solid #1753b8;outline-offset:2px}
.lead-conversation-action svg{width:15px;height:15px;flex:none}
@media(max-width:440px){.lead-conversation-action{width:100%;justify-content:center}.lead-table td .source-pill{max-width:100%;white-space:normal;text-align:left}}

/* HUB-LEADS-005A/S B: accurate shortcut disclosure. */
.lead-conversation-hint{font-size:11px;line-height:1.55;margin:10px 0 0;max-width:410px}


/* HUB-LEADS-005A/S-DEMO: clearly non-interactive, no fake destination. */
.lead-conversation-action--disabled{
  background:#f3f5f8;
  border-color:#d8e0eb;
  color:#69788d;
  cursor:not-allowed;
  user-select:none;
}
.lead-conversation-action--disabled:hover{
  background:#f3f5f8;
  border-color:#d8e0eb;
  color:#69788d;
}

/* HUB-ADS-DEMO-002/S — preferences-only UI, isolated from existing HUB surfaces */
.pref-heading{margin-bottom:23px}
.pref-warning{display:flex;gap:15px;align-items:flex-start;background:#eaf2ff;border:1px solid #c4d8f8;color:#143d79;border-radius:13px;padding:18px 21px;margin:0 0 23px;line-height:1.5}
.pref-warning strong{font-size:13px}
.pref-warning p{font-size:12px;margin:6px 0 0;color:#406185}
.pref-warning-icon{display:grid;place-items:center;flex:none;width:25px;height:25px;border-radius:50%;background:#1753b8;color:#fff;font-weight:800;font-size:14px}
.pref-layout{display:grid;grid-template-columns:minmax(0,1.48fr) minmax(290px,.9fr);gap:23px;align-items:start}
.pref-config-surface,.pref-summary-surface{padding:27px 29px;min-width:0}
.pref-surface-head h2{font-size:19px;color:#101d3d;margin:0 0 8px}
.pref-surface-head .muted{font-size:12px;margin:0}
.pref-fieldset{margin:24px 0 0;padding:0;border:0;min-width:0}
.pref-legend{font-size:11px;letter-spacing:.5px;text-transform:uppercase;color:#61748e;font-weight:800;margin-bottom:14px;padding:0}
.pref-choice-list{display:flex;flex-direction:column;gap:11px}
.pref-choice{display:flex;align-items:center;gap:14px;padding:15px 16px;border:1px solid #dbe6f4;border-radius:12px;background:#f9fbfe;cursor:pointer;min-height:75px;transition:border-color .15s,background .15s}
.pref-choice:hover{border-color:#a5bde1}
.pref-choice:focus-within{outline:2px solid #1753b8;outline-offset:2px}
.pref-choice-icon{display:grid;place-items:center;border-radius:10px;background:#e4edfa;color:#1753b8;font-size:14px;font-weight:900;flex:none;width:43px;height:43px}
.pref-choice-copy{flex:1;min-width:0}
.pref-choice-copy strong{display:block;color:#102044;font-size:13px}
.pref-choice-copy small{display:block;color:#657993;font-size:11px;margin-top:5px;line-height:1.5}
.pref-choice input[type=checkbox]{appearance:none;flex:0 0 42px;width:42px;height:24px;border:1px solid #a7b9d0;border-radius:20px;background:#d5deea;position:relative;cursor:pointer;transition:background .15s}
.pref-choice input[type=checkbox]:before{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;background:white;border-radius:50%;box-shadow:0 1px 2px #0d284726;transition:transform .15s}
.pref-choice input[type=checkbox]:checked{background:#1753b8;border-color:#1753b8}
.pref-choice input[type=checkbox]:checked:before{transform:translateX(18px)}
.pref-choice-off{background:#f7f8fa}
.pref-choice-off .pref-choice-icon{background:#e9edf2;color:#8391a3}
.pref-choice-off .pref-choice-copy strong{color:#667992}
.pref-spacing{margin-top:30px}
.pref-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:17px}
.pref-field{min-width:0}
.pref-field-wide{grid-column:1/-1}
.pref-field label{display:block;font-size:12px;font-weight:800;color:#1d3153;margin-bottom:9px}
.pref-field input,.pref-field select{display:block;width:100%;max-width:100%;height:46px;border:1px solid #cfdbeb;border-radius:10px;background:#fbfcff;color:#1b3153;padding:10px 13px;font-size:13px;outline-offset:2px}
.pref-field input:focus-visible,.pref-field select:focus-visible{outline:2px solid #1753b8}
.pref-field input:disabled,.pref-field select:disabled{color:#8897ad;background:#f0f3f7;cursor:not-allowed}
.pref-field small{display:block;font-size:10px;color:#718199;line-height:1.6;margin-top:7px}
.pref-controls{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:25px;border-top:1px solid #e3eaf3;padding-top:20px}
.pref-reset{background:#fff;margin:0;cursor:pointer}
.pref-controls-hint{color:#8290a2;font-size:10px}
.pref-summary-surface{border-top:4px solid #1753b8;position:sticky;top:20px}
.pref-summary-badge{display:inline-block;font-size:10px;letter-spacing:.5px;font-weight:800;color:#1753b8;background:#e7efff;border-radius:15px;padding:7px 10px;margin-bottom:14px}
.pref-summary-list{margin-top:23px;display:flex;flex-direction:column;gap:0}
.pref-summary-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;border-bottom:1px solid #eef2f6;padding:13px 0}
.pref-summary-row span{color:#667991;font-size:12px}
.pref-summary-row strong{font-size:12px;color:#1d3153;text-align:right;overflow-wrap:anywhere}
.pref-summary-row strong.pref-off{color:#909fb1}
.pref-summary-divider{margin:5px 0;border:0}
.pref-summary-foot{margin-top:24px;background:#f0f5fb;border-radius:10px;padding:16px;color:#406185}
.pref-summary-foot strong{font-size:12px}
.pref-summary-foot p{font-size:11px;line-height:1.6;margin:7px 0 0}
@media(max-width:1160px){.pref-layout{grid-template-columns:1fr}.pref-summary-surface{position:static}}
@media(max-width:740px){.pref-config-surface,.pref-summary-surface{padding:19px}.pref-fields{grid-template-columns:1fr}.pref-field-wide{grid-column:auto}.pref-choice{padding:13px 11px;gap:10px}.pref-choice-icon{width:37px;height:37px}.pref-choice input[type=checkbox]{flex-basis:42px}.pref-warning{padding:15px}.pref-heading h1{font-size:25px}}

/* HUB-ADS-DEMO-002/S - CRM overview: tenant-scoped server-side counters */
.crm-overview{margin:0 0 25px}
.crm-overview-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px}
.crm-overview-head h2{color:#101d3d;font-size:23px;letter-spacing:-.5px;margin:8px 0 8px}
.crm-overview-head .crm-reference{font-size:12px;line-height:1.6;color:#657892;margin:0}
.crm-demo-indicator{display:inline-flex;align-items:center;font-size:9px;font-weight:800;letter-spacing:.4px;padding:5px 8px;border-radius:20px;color:#1753b8;background:#e7efff;margin-right:5px}
.crm-leads-link{margin:0;white-space:nowrap}
.crm-total-card{background:#101d3d;color:#fff;border:1px solid #203a63;border-radius:15px;display:flex;justify-content:space-between;align-items:center;padding:22px 26px;gap:15px}
.crm-total-eyebrow{color:#92b5ea;font-size:10px;letter-spacing:1px;font-weight:800}
.crm-total-value{font-size:47px;font-weight:850;line-height:1.25;letter-spacing:-1.5px;margin:6px 0 3px}
.crm-total-card p{font-size:11px;color:#c1d1e6;margin:0}
.crm-total-visual{display:grid;place-items:center;width:73px;height:73px;flex:none;border-radius:18px;background:#244c91;color:#d9eaff;font-size:37px}
.crm-channels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-top:13px}
.crm-channel-card{background:#fff;border:1px solid #e0e8f3;border-radius:13px;padding:18px 19px;min-width:0}
.crm-channel-label{font-size:11px;color:#637792;display:block;font-weight:700;line-height:1.45}
.crm-channel-card strong{display:block;color:#172b52;font-size:26px;font-weight:800;margin-top:7px}
.crm-channel-card small{font-size:10px;color:#8796ab}
.crm-period-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin:24px 0 13px}
.crm-period-heading h3{font-size:18px;color:#101d3d;margin:0}
.crm-period-heading .muted{font-size:11px;margin:0}
.crm-periods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.crm-period-card{background:#fff;border:1px solid #e0e8f3;border-radius:13px;padding:19px;min-width:0;display:flex;flex-direction:column;gap:5px}
.crm-period-kicker{font-size:12px;color:#1d3153;font-weight:800}
.crm-period-date,.crm-period-note{font-size:10px;color:#798da6}
.crm-period-number{font-size:31px;letter-spacing:-.6px;color:#132c56;margin:4px 0 0}
.crm-period-secondary{font-size:11px;color:#637792}
.crm-period-secondary b{color:#1d3153}
.crm-period-change{display:flex;justify-content:space-between;gap:7px;align-items:center;flex-wrap:wrap;margin-top:9px}
.crm-period-delta{font-size:11px;color:#1753b8;font-weight:800}
.crm-period-percent{padding:6px 9px;border-radius:10px;background:#e7efff;color:#1753b8;font-size:11px;font-weight:800}
.crm-period-note{margin-top:8px}
.crm-source-note{font-size:11px;color:#637792;line-height:1.6;margin:13px 1px 0}
.crm-unavailable{background:#fff;border:1px solid #dbe6f3;border-radius:13px;padding:26px;color:#2e4669}
.crm-unavailable strong{font-size:14px}
.crm-unavailable p{font-size:12px;color:#627791;line-height:1.6;margin:7px 0 0}
@media(max-width:1120px){.crm-channels{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:880px){.crm-periods{grid-template-columns:1fr}.crm-period-heading{display:block}.crm-period-heading .muted{margin-top:7px}}
@media(max-width:600px){.crm-overview-head{flex-direction:column;gap:13px}.crm-overview-head h2{font-size:21px}.crm-leads-link{align-self:flex-start}.crm-total-card{padding:19px}.crm-total-value{font-size:41px}.crm-total-visual{width:60px;height:60px;font-size:31px}.crm-channel-card{padding:15px}.crm-channels{gap:9px}.crm-period-card{padding:16px}.crm-period-heading{margin-top:22px}}


/* HUB-ADS-DEMO-003/S — source cards link to the existing platform filter.
   Icons and source-pill accent colors are shared with the Leads view. */
a.crm-channel-card{
  position:relative;display:flex;flex-direction:column;align-items:flex-start;
  gap:7px;min-height:126px;text-decoration:none;color:#142443;
  border-top-width:3px;transition:background-color .15s,border-color .15s,box-shadow .15s,transform .15s;
}
a.crm-channel-card:hover{transform:translateY(-1px);box-shadow:0 6px 17px #14244315}
a.crm-channel-card:focus-visible{outline:2px solid #1753b8;outline-offset:3px}
.crm-channel-card .source-pill{max-width:100%;white-space:normal;text-align:left}
.crm-channel-result{display:flex;align-items:baseline;gap:7px;margin-top:auto}
.crm-channel-card .crm-channel-result strong{display:inline;color:inherit;font-size:30px;font-weight:800;margin:0;line-height:1.1}
.crm-channel-card .crm-channel-result small{display:inline;color:inherit;opacity:.73;font-size:11px}
.crm-channel-arrow{position:absolute;right:17px;bottom:19px;font-size:17px;opacity:.72}
a.crm-channel-card--instagram{border-top-color:#a03e8c;background:linear-gradient(175deg,#fcf5fc 0%,#fff 74%);color:#833573}
a.crm-channel-card--messenger{border-top-color:#1753b8;background:linear-gradient(175deg,#f1f6ff 0%,#fff 74%);color:#1753b8}
a.crm-channel-card--whatsapp{border-top-color:#1f8f5f;background:linear-gradient(175deg,#effaf3 0%,#fff 74%);color:#1f8054}
a.crm-channel-card--meta_lead_form{border-top-color:#4c5fa8;background:linear-gradient(175deg,#f2f3fd 0%,#fff 74%);color:#4c5fa8}
@media(max-width:600px){
 a.crm-channel-card{min-height:120px;padding:13px;gap:8px}
 .crm-channel-card .crm-channel-result strong{font-size:27px}
 .crm-channel-arrow{right:12px;bottom:14px}
}

/* HUB-ADS-DEMO-003/S — contact pencils immediately after visible values.
   Native disclosure keeps the editor beside its value without AJAX. */
.lead-contact-inline-edit{min-width:0}
.lead-contact-inline-edit>summary{
 display:inline-flex;align-items:center;gap:7px;max-width:100%;
 cursor:pointer;list-style:none;border-radius:7px;color:#142443;
}
.lead-contact-inline-edit>summary::-webkit-details-marker{display:none}
.lead-contact-inline-edit>summary::marker{content:""}
.lead-contact-current{overflow-wrap:anywhere;min-width:0}
.lead-pencil{display:inline-grid;place-items:center;flex:none;width:27px;height:27px;
 border-radius:8px;background:#edf3fb;border:1px solid #dbe6f4;color:#1753b8}
.lead-contact-inline-edit>summary:hover .lead-pencil,.lead-contact-inline-edit[open]>summary .lead-pencil{
 background:#dceafe;border-color:#bfd4f4
}
.lead-contact-inline-edit>summary:focus-visible{outline:2px solid #1753b8;outline-offset:3px}
.lead-inline-edit-panel{margin-top:11px;padding:13px;background:#f8fbff;border:1px solid #dbe6f4;
 border-radius:10px;max-width:100%;box-sizing:border-box}
.lead-inline-edit-panel>label:not(.lead-inline-restore){display:block;font-size:11px;font-weight:800;
 color:#5a6f8c;margin-bottom:7px}
.lead-inline-edit-panel input[type=text],
.lead-inline-edit-panel input[type=email]{
 width:100%;box-sizing:border-box;min-height:41px;border:1px solid #cbdcf1;border-radius:8px;
 padding:8px 10px;background:#fff;color:#182c50;font-size:12px}
.lead-inline-edit-panel input:focus-visible{outline:2px solid #1753b8}
.lead-inline-source-note{font-size:11px;line-height:1.5;font-weight:400;color:#60728d;margin:9px 0 6px}
.lead-inline-restore{display:flex;gap:8px;align-items:flex-start;font-size:11px;color:#35527a;
 font-weight:600;line-height:1.4;margin-top:8px}
.lead-inline-restore input{margin-top:2px;flex:none}
.lead-inline-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:12px}
.lead-inline-save{border:1px solid #1753b8;background:#1753b8;color:#fff;border-radius:8px;
 font-size:12px;font-weight:800;padding:9px 16px;min-height:40px;cursor:pointer}
.lead-inline-save:hover{background:#103e8c;border-color:#103e8c}
.lead-inline-save:focus-visible{outline:2px solid #1753b8;outline-offset:3px}
.lead-inline-cancel{border:1px solid #cbdcf1;background:#fff;border-radius:8px;
 font-size:11px;font-weight:700;color:#536b8a;padding:9px 13px;min-height:40px;cursor:pointer}
.lead-inline-cancel:hover{background:#e8f0fc}
.lead-inline-cancel:focus-visible{outline:2px solid #1753b8}
@media(max-width:760px){
 .lead-contact-inline-edit>summary{gap:6px}
 .lead-pencil{width:31px;height:31px}
 .lead-inline-edit-panel{padding:12px}
}

/* HUB-ADS-DEMO-004/S — UI polish only; existing analytics, CRM and report HTML intact. */
.ads004-page{min-width:0}
.ads004-heading{margin-bottom:23px}
.ads004-heading-copy{min-width:0;max-width:690px}
.ads004-heading h1{letter-spacing:-.8px}
.ads004-heading .muted{max-width:610px;margin:0}
.ads004-demo-mark{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;
  align-self:flex-start;border:1px solid #cedbef;background:#eef4fe;color:#3a5d91;
  border-radius:22px;padding:10px 13px;font-size:10px;font-weight:800;letter-spacing:.35px}
.ads004-demo-dot{width:7px;height:7px;border-radius:50%;background:#5b8edb}
.ads004-filter-panel{padding:24px 27px;margin-bottom:17px}
.ads004-filter-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:17px}
.ads004-filter-head h2{font-size:17px;margin:6px 0 0;color:#101d3d}
.ads004-available-range{font-size:11px;color:#7890aa;font-weight:700;white-space:nowrap}
.ads004-filter-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.ads004-period-field{flex:1 1 260px;max-width:380px;min-width:0}
.ads004-filter-form label,.ads004-mobile-sort label{display:block;color:#536b88;
  font-weight:800;font-size:11px;margin-bottom:8px}
.ads004-filter-form select,.ads004-filter-form input,.ads004-mobile-sort select{
  width:100%;min-height:44px;border:1px solid #d4e1f0;background:#f9fbff;
  border-radius:10px;padding:9px 12px;color:#142443;font-size:12px}
.ads004-filter-form :is(select,input):focus-visible,.ads004-mobile-sort select:focus-visible{
  outline:2px solid #1753b8;outline-offset:2px}
.ads004-custom-range{display:flex;flex:1 1 300px;gap:10px;min-width:0}
.ads004-custom-range[hidden]{display:none}
.ads004-custom-range>div{flex:1 1 140px;min-width:0}
.ads004-submit{min-width:112px;padding-left:17px;padding-right:17px}
.ads004-filter-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;
  color:#72839a;font-size:10px;border-top:1px solid #edf1f7;margin-top:18px;padding-top:14px;line-height:1.65}
.ads004-filter-foot strong{color:#25446f}
.ads004-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:25px}
.ads004-kpi{position:relative;min-width:0;background:white;border:1px solid #e1e9f4;
  border-radius:13px;padding:19px 19px 17px;display:flex;flex-direction:column;gap:8px}
.ads004-kpi::before{content:"";position:absolute;left:19px;top:0;width:35px;height:3px;
  border-radius:0 0 4px 4px;background:#8eafe1}
.ads004-kpi:nth-child(2)::before{background:#53a8a8}
.ads004-kpi:nth-child(3)::before{background:#7c9ed7}
.ads004-kpi:nth-child(4)::before{background:#9e95ca}
.ads004-kpi-label{font-size:11px;color:#667992;font-weight:750}
.ads004-kpi>strong{font-size:clamp(22px,2vw,30px);font-weight:850;letter-spacing:-.8px;
  line-height:1.25;color:#172e54;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.ads004-kpi>strong small{font-size:11px;font-weight:800;letter-spacing:0;color:#657893}
.ads004-kpi-foot{font-size:10px;line-height:1.45;color:#8899af}
.ads004-section-heading{display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:14px;margin-bottom:18px}
.ads004-section-heading .eyebrow{letter-spacing:.9px;font-size:9px}
.ads004-section-heading h2{font-size:19px;letter-spacing:-.35px;margin:7px 0 5px;color:#13274b}
.ads004-section-heading .muted{margin:0;font-size:11px}
.ads004-rank-panel{padding:24px 25px 18px;min-width:0;margin-bottom:21px}
.ads004-rank-panel .count-pill{white-space:nowrap}
.ads004-table-wrap{width:100%;min-width:0;overflow:hidden}
.ads004-rank-table{width:100%;border-spacing:0;border-collapse:separate;
  font-size:11px;color:#1b3256;font-variant-numeric:tabular-nums}
.ads004-rank-table th{background:#f2f6fc;color:#5e728f;padding:0;
  text-align:right;font-size:10px;font-weight:800;border-bottom:1px solid #e1eaf5}
.ads004-rank-table th:first-child{border-radius:10px 0 0 0;text-align:center}
.ads004-rank-table th:nth-child(2){text-align:left}
.ads004-rank-table th:last-child{border-radius:0 10px 0 0}
.ads004-sort-button{display:inline-flex;align-items:center;justify-content:flex-end;gap:5px;
  padding:13px 9px;width:100%;border:0;color:inherit;background:transparent;
  font-weight:inherit;font-size:10px;cursor:pointer;white-space:nowrap}
.ads004-rank-table th:first-child .ads004-sort-button{justify-content:center}
.ads004-rank-table th:nth-child(2) .ads004-sort-button{justify-content:flex-start}
.ads004-sort-button:hover{color:#1753b8;background:#ebf2fc}
.ads004-sort-button:focus-visible{outline:2px solid #1753b8;outline-offset:-2px}
.ads004-sort-arrow{font-size:12px;color:#7a95b9;font-weight:800}
.ads004-rank-table th[aria-sort]:not([aria-sort="none"]) .ads004-sort-button{color:#1753b8}
.ads004-rank-table td{padding:14px 9px;text-align:right;border-bottom:1px solid #edf1f7;white-space:nowrap}
.ads004-rank-table td:first-child{text-align:center}
.ads004-rank-table td:nth-child(2){text-align:left;white-space:normal;min-width:115px;max-width:245px}
.ads004-rank-table tbody tr:hover{background:#f8fbff}
.ads004-rank-row--top{background:#f6fafc}
.ads004-rank-row--last{background:#fcfcfe}
.ads004-position{display:inline-grid;place-items:center;width:27px;height:27px;
  border-radius:8px;background:#ebf1f9;color:#486385;font-size:12px;font-weight:850}
.ads004-rank-row--top .ads004-position{background:#dcefeb;color:#196e68}
.ads004-rank-row--last .ads004-position{background:#f0edf6;color:#7a7291}
.ads004-ranking-name strong{display:block;color:#14294e;font-size:11px;font-weight:800;line-height:1.4;overflow-wrap:anywhere}
.ads004-ranking-name span{display:block;color:#8594a9;font-size:9px;margin-top:4px;line-height:1.5}
.ads004-value{font-size:11px;font-weight:750;white-space:nowrap}
.ads004-value small{font-size:9px;color:#8495aa}
.ads004-value--em{display:inline-flex;align-items:center;justify-content:center;
  background:#e8f0fb;color:#1753b8;border-radius:7px;min-width:30px;padding:6px;font-weight:850}
.ads004-empty{text-align:center!important;color:#697c94;padding:22px!important}
.ads004-mobile-sort{display:none}
.ads004-data-note{max-width:1020px;margin:10px 0 24px;color:#7587a0;font-size:11px;line-height:1.6}
.ads004-risk-legend{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:-4px 0 18px}
.ads004-risk-pill{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border-radius:20px;
  padding:7px 10px;font-size:10px;font-weight:800;border:1px solid transparent;line-height:1.2}
.ads004-risk-pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.ads004-risk-pill--low{color:#27735c;background:#eaf6f0;border-color:#d0e8db}
.ads004-risk-pill--watch{color:#94631e;background:#fcf5e8;border-color:#eddcb8}
.ads004-risk-pill--high{color:#a34352;background:#fdf0f2;border-color:#f1d2d8}
.ads004-risk-pill--insufficient_data{color:#6b7486;background:#eff2f7;border-color:#dce3ec}
.ads004-fatigue-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.ads004-fatigue-card{min-width:0;padding:21px 22px 19px;display:flex;flex-direction:column;
  gap:15px;margin-bottom:0;border-top:3px solid #b9c7da}
.ads004-fatigue-card--low{border-top-color:#5aa98c}
.ads004-fatigue-card--watch{border-top-color:#d8a554}
.ads004-fatigue-card--high{border-top-color:#dc7f90}
.ads004-fatigue-card--insufficient_data{border-top-color:#a1aebf}
.ads004-fatigue-card-head{display:flex;justify-content:space-between;gap:13px;align-items:flex-start}
.ads004-fatigue-identity{flex:1;min-width:0}
.ads004-card-kicker{font-size:9px;color:#788aa3;font-weight:800;letter-spacing:.8px}
.ads004-fatigue-identity h3{font-size:15px;line-height:1.35;color:#10254a;margin:7px 0;overflow-wrap:anywhere}
.ads004-card-sub{font-size:10px;color:#8293a9}
.ads004-fatigue-card .ads004-risk-pill{flex-shrink:0}
.ads004-change-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ads004-change{min-width:0;background:#f6f9fd;border:1px solid #e5edf6;border-radius:11px;
  padding:13px 14px;display:flex;flex-direction:column;gap:5px}
.ads004-change>span{font-size:10px;font-weight:800;color:#536b8a}
.ads004-change>strong{font-size:23px;line-height:1.2;letter-spacing:-.5px;
  color:#1a3967;font-weight:850;font-variant-numeric:tabular-nums}
.ads004-change>strong small{font-size:11px;letter-spacing:0}
.ads004-change>small{font-size:9px;color:#8797ad;line-height:1.4}
.ads004-change--negative>strong{color:#b34d5b}
.ads004-change--positive>strong{color:#27856d}
.ads004-change--neutral>strong{color:#63758a}
.ads004-fatigue-reason{min-height:65px}
.ads004-fatigue-reason h4{font-size:11px;color:#304c70;margin:0 0 8px}
.ads004-fatigue-reason p,.ads004-fatigue-reason li{font-size:11px;color:#566e8d;line-height:1.65}
.ads004-fatigue-reason p{margin:0}
.ads004-fatigue-reason ul{padding:0 0 0 17px;margin:0}
.ads004-fatigue-action{background:#f3f7fc;border:1px solid #e2ebf5;border-radius:10px;
  padding:13px 15px;margin-top:auto;min-width:0}
.ads004-action-label{font-size:9px;letter-spacing:.6px;font-weight:850;color:#40709f}
.ads004-fatigue-action p{margin:7px 0 0;font-size:11px;font-weight:700;line-height:1.6;color:#2c486b}
.ads004-no-results{grid-column:1/-1;padding:24px;color:#61728d}
.ads004-error{padding:28px;color:#1c365f}
.ads004-error p{font-size:12px;margin-bottom:16px}

/* Report type accents shared by archive, report detail and the overview. */
.report-kind-pill{display:inline-flex;align-items:center;gap:6px;border:1px solid transparent;
  border-radius:18px;padding:6px 10px;white-space:nowrap}
.report-kind-pill::before{content:"";height:6px;width:6px;border-radius:50%;background:currentColor}
.report-kind-pill--day{color:#137d82;background:#e8f7f7;border-color:#d0eded}
.report-kind-pill--week{color:#205ca8;background:#ebf3ff;border-color:#d9e7fa}
.report-kind-pill--month{color:#7355a4;background:#f2edfb;border-color:#e6dcf5}
.report-kind--day .report-glyph{color:#188c90;background:#e8f7f7}
.report-kind--week .report-glyph{color:#205ca8;background:#ebf3ff}
.report-kind--month .report-glyph{color:#7355a4;background:#f2edfb}
.report-kind--day:hover.report-row{background:#f5fbfb}
.report-kind--week:hover.report-row{background:#f5f9ff}
.report-kind--month:hover.report-row{background:#faf7ff}
.mail-preview-header.report-kind--day{border-left:3px solid #78c5c5;padding-left:18px}
.mail-preview-header.report-kind--week{border-left:3px solid #87afe6;padding-left:18px}
.mail-preview-header.report-kind--month{border-left:3px solid #b6a0d9;padding-left:18px}

@media(max-width:1160px){
  .ads004-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ads004-rank-table td{padding:12px 7px}
  .ads004-sort-button{padding:12px 7px}
}
@media(max-width:960px){
  .ads004-fatigue-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  .ads004-heading{flex-wrap:wrap;gap:12px}
  .ads004-demo-mark{padding:8px 11px;font-size:9px}
  .ads004-filter-panel{padding:18px}
  .ads004-filter-head{align-items:flex-start;flex-wrap:wrap;margin-bottom:14px}
  .ads004-period-field{max-width:none}
  .ads004-custom-range{flex-basis:100%}
  .ads004-submit{width:100%}
  .ads004-kpi-grid{gap:10px;margin-bottom:21px}
  .ads004-kpi{padding:16px;min-height:125px}
  .ads004-kpi::before{left:16px}
  .ads004-kpi>strong{font-size:23px}
  .ads004-kpi-foot{font-size:9px}
  .ads004-rank-panel{padding:19px 0 8px}
  .ads004-rank-panel>.ads004-section-heading{padding:0 18px}
  .ads004-section-heading h2{font-size:17px}
  .ads004-mobile-sort{display:flex;align-items:center;gap:10px;padding:0 18px;margin:0 0 12px}
  .ads004-mobile-sort label{margin:0;min-width:94px}
  .ads004-mobile-sort select{flex:1;min-width:0}
  .ads004-rank-table,.ads004-rank-table tbody,.ads004-rank-table tr,.ads004-rank-table td{
    display:block;width:100%}
  .ads004-rank-table thead{display:none}
  .ads004-rank-table tbody{padding:0 12px 7px}
  .ads004-rank-table tr.ads004-rank-row{
    border:1px solid #e2eaf4;border-radius:12px;margin:9px 0;padding:14px 14px 11px}
  .ads004-rank-table tr.ads004-rank-row--top{border-color:#cce6dd}
  .ads004-rank-table tr.ads004-rank-row--last{border-color:#e9e4f1}
  .ads004-rank-table td,.ads004-rank-table td:first-child,.ads004-rank-table td:nth-child(2){
    display:flex;justify-content:space-between;align-items:baseline;gap:10px;min-width:0;max-width:none;
    text-align:right;white-space:normal;padding:7px 0;border:0;font-size:11px}
  .ads004-rank-table td::before{content:attr(data-label);flex:0 0 40%;
    font-size:10px;font-weight:700;color:#7b8da6;text-align:left}
  .ads004-rank-table td:nth-child(2){display:block;text-align:left;
    margin:3px 0 5px;padding:9px 0 12px;border-bottom:1px solid #e6edf6}
  .ads004-rank-table td:nth-child(2)::before{content:none}
  .ads004-ranking-name strong{font-size:13px}
  .ads004-ranking-name span{font-size:10px}
  .ads004-rank-table .ads004-position{width:26px;height:26px}
  .ads004-rank-table .ads004-value{font-size:12px}
  .ads004-fatigue-grid{gap:13px}
  .ads004-fatigue-card{padding:18px;gap:13px}
  .ads004-change>strong{font-size:22px}
  .ads004-risk-legend{gap:6px}
  .ads004-risk-legend .ads004-risk-pill{font-size:9px}
  .mail-preview-header.report-kind--day,
  .mail-preview-header.report-kind--week,
  .mail-preview-header.report-kind--month{padding-left:12px}
}
@media(max-width:400px){
  .ads004-kpi-grid{grid-template-columns:1fr 1fr}
  .ads004-kpi{padding:13px;min-height:115px}
  .ads004-kpi>strong{font-size:21px}
  .ads004-fatigue-card-head{flex-wrap:wrap;gap:10px}
  .ads004-fatigue-card .ads004-risk-pill{flex-shrink:1}
  .ads004-change{padding:11px}
  .ads004-change>strong{font-size:20px}
}

/* HUB-ADS-DEMO-005/S — independent appointment preview, deliberately without POST. */
.meeting-demo{margin-top:22px;padding:27px 29px 25px;min-width:0}
.meeting-demo-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;
  padding-bottom:21px;border-bottom:1px solid #e6edf6;margin-bottom:23px}
.meeting-demo-head h2{margin:8px 0 7px;color:#101d3d;font-size:23px;letter-spacing:-.5px}
.meeting-demo-head .muted{margin:0;max-width:700px;font-size:12px}
.meeting-demo-badge{color:#3e669a;background:#edf4ff;border:1px solid #d9e5f7;
  border-radius:20px;padding:8px 11px;font-size:9px;letter-spacing:.3px;font-weight:800;white-space:nowrap}
.meeting-demo-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(260px,.78fr);gap:24px}
.meeting-demo-fields,.meeting-demo-preview-area{min-width:0}
.meeting-demo-fieldset{border:0;margin:0 0 23px;padding:0;min-width:0}
.meeting-demo-fieldset:last-child{margin-bottom:0}
.meeting-demo-fieldset legend{font-size:13px;font-weight:800;color:#142b52;
  margin-bottom:12px;padding:0}
.meeting-demo-term{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.meeting-demo-field{min-width:0}
.meeting-demo-field label{display:block;font-size:11px;font-weight:800;color:#536b8a;margin:0 0 8px}
.meeting-demo-field input,.meeting-demo-field select{display:block;width:100%;max-width:100%;min-height:43px;
  padding:10px 12px;border:1px solid #d5e1f0;border-radius:10px;background:#f9fbff;
  color:#142443;font-size:12px;min-width:0}
.meeting-demo-field :is(input,select):focus-visible{outline:2px solid #1753b8;outline-offset:2px}
.meeting-demo-field :is(input,select)[aria-invalid="true"]{border-color:#be5364;background:#fff7f8}
.meeting-demo-field small{display:block;color:#7a8ba3;font-size:10px;line-height:1.55;margin-top:6px}
.meeting-demo-field :is(select,input):disabled{background:#edf2f8;color:#8a9aae;cursor:not-allowed}
.meeting-demo-options{border-top:1px solid #edf1f7;padding-top:19px}
.meeting-demo-option{display:flex;align-items:flex-start;gap:12px;cursor:pointer;
  padding:12px 13px;margin:0 0 8px;border:1px solid #e1eaf5;border-radius:11px;background:#f9fbfe}
.meeting-demo-option:hover{border-color:#c4d6f0;background:#f5f9ff}
.meeting-demo-option:focus-within{outline:2px solid #1753b8;outline-offset:2px}
.meeting-demo-option input[type="checkbox"]{width:18px;height:18px;flex:none;margin:1px 0 0;accent-color:#1753b8;cursor:pointer}
.meeting-demo-option-text{min-width:0}
.meeting-demo-option-text strong{display:block;font-size:12px;color:#243f68}
.meeting-demo-option-text small{display:block;font-size:10px;color:#788aa3;line-height:1.5;margin-top:4px}
.meeting-demo-email-wrap{margin:15px 0 17px;max-width:420px}
.meeting-demo-email-wrap[hidden]{display:none}
.meeting-demo-remind-time{margin-top:17px;max-width:420px}
.meeting-demo-aside{border:1px solid #dfe8f4;border-radius:13px;padding:20px 21px;
  background:#f7faff;min-width:0}
.meeting-demo-aside h3{font-size:18px;color:#142b53;letter-spacing:-.35px;margin:8px 0}
.meeting-demo-aside>p{font-size:11px;color:#677d9b;line-height:1.65;margin:0 0 17px}
.meeting-demo-preview-button{width:100%}
.meeting-demo-error{padding:10px 12px;background:#fff1f2;border:1px solid #f1cbd4;
  color:#ac3d50;border-radius:9px;font-weight:700;font-size:11px;line-height:1.5;margin:13px 0 0}
.meeting-demo-summary{margin-top:18px;padding:16px;background:white;border:1px solid #dfe8f4;border-radius:11px}
.meeting-demo-summary h4{font-size:13px;color:#172f58;margin:0 0 13px}
.meeting-demo-summary dl{margin:0}
.meeting-demo-summary dl>div{display:flex;justify-content:space-between;gap:10px;
  padding:9px 0;border-top:1px solid #edf2f7;align-items:start}
.meeting-demo-summary dt{flex:0 0 39%;color:#7789a1;font-size:10px;line-height:1.5}
.meeting-demo-summary dd{flex:1;text-align:right;font-size:11px;font-weight:750;
  color:#263d61;line-height:1.5;margin:0;overflow-wrap:anywhere}
.meeting-demo-preview-disclaimer{margin:12px 0 0;border-top:1px solid #e5ecf5;
  padding-top:12px;color:#6c7f98;font-size:10px;line-height:1.6}
.meeting-demo-warning{margin-top:13px;padding:12px 14px;border:1px solid #e1e9f3;
  color:#677b97;background:#f7f9fc;border-radius:11px;font-size:11px;line-height:1.55}
[hidden].meeting-demo-error,[hidden].meeting-demo-summary{display:none}

@media(max-width:1150px){
  .meeting-demo-grid{grid-template-columns:1fr}
  .meeting-demo-aside{max-width:none}
}
@media(max-width:760px){
  .meeting-demo{padding:19px 17px;margin-top:17px}
  .meeting-demo-head{flex-wrap:wrap;gap:10px;margin-bottom:19px}
  .meeting-demo-head h2{font-size:21px}
  .meeting-demo-term{grid-template-columns:repeat(2,minmax(0,1fr))}
  .meeting-demo-term>.meeting-demo-field:last-child{grid-column:1/-1}
  .meeting-demo-aside{padding:17px}
}
@media(max-width:390px){
  .meeting-demo-term{grid-template-columns:1fr}
  .meeting-demo-term>.meeting-demo-field:last-child{grid-column:auto}
}

/* HUB-LEADS-007/S — single lead information + edit card, unchanged CRM form/backend. */
.lead-detail-layout--unified{display:block;min-width:0}
.lead-information--unified{padding:27px 29px;margin:0;min-width:0}
.lead-information--unified>h2{font-size:19px;letter-spacing:-.3px;margin:0 0 22px}
.lead-edit-form--unified{display:block;margin:0;min-width:0}
.lead-unified-contact{min-width:0}
.lead-fields--unified{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:25px;row-gap:21px}
.lead-fields--unified>div{min-width:0}
.lead-fields--unified dt{font-size:11px;line-height:1.35;margin-bottom:7px}
.lead-fields--unified dd{font-size:13px;line-height:1.55}
.lead-fields--unified .lead-inline-edit-panel{max-width:540px}
.lead-unified-divider{height:1px;background:#e2eaf5;margin:25px 0 23px}
.lead-unified-edit-head{margin-bottom:18px}
.lead-unified-edit-head h3{margin:0 0 7px;color:#172f54;font-size:16px;font-weight:800}
.lead-unified-edit-head p{margin:0;font-size:11px;line-height:1.6}
.lead-unified-status{max-width:390px;margin:0 0 20px;min-width:0}
.lead-unified-notes{min-width:0}
.lead-unified-status>label,.lead-unified-notes>label{display:block;color:#506882;
  font-size:11px;font-weight:800;margin-bottom:9px}
.lead-unified-status .lead-select{max-width:390px;min-height:46px;font-size:12px}
.lead-unified-notes .lead-notes{display:block;min-height:126px;max-height:440px;
  width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.lead-unified-notes .lead-editor-hint{margin:9px 0 0;color:#70829b;font-size:11px;line-height:1.6}
.lead-unified-save-actions{display:flex;align-items:center;justify-content:flex-start;
  border-top:1px solid #ecf1f7;padding-top:20px;margin-top:22px}
.lead-unified-save-actions .primary{min-width:155px}
@media(max-width:760px){
 .lead-information--unified{padding:19px 18px}
 .lead-fields--unified{grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 14px}
 .lead-unified-divider{margin:23px 0 20px}
}
@media(max-width:520px){
 .lead-fields--unified{grid-template-columns:1fr;gap:16px}
 .lead-unified-status{max-width:none}
 .lead-unified-status .lead-select{max-width:none}
 .lead-unified-save-actions .primary{width:100%}
}

/* HUB-LEADS-007/S refinement — editor-style status on left, notes to the right. */
.lead-unified-columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(290px,.9fr);
  gap:30px;align-items:start;min-width:0}
.lead-unified-columns>.lead-unified-contact{min-width:0}
.lead-unified-columns>.lead-unified-notes{min-width:0;padding-left:28px;
  border-left:1px solid #e4eaf4;align-self:stretch}
.lead-unified-columns>.lead-unified-notes h3{font-size:16px;line-height:1.4;
  margin:0 0 14px;color:#172f54;font-weight:800}
.lead-unified-columns>.lead-unified-notes .lead-notes{min-height:215px}
.lead-unified-columns>.lead-unified-notes .lead-editor-hint{font-size:10px;margin:8px 0 0}
.lead-unified-columns .lead-fields--unified{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}
.lead-status-inline-edit .lead-contact-current{color:#172f54;font-size:13px;font-weight:800}
.lead-status-inline-edit .lead-inline-edit-panel .lead-select{width:100%;max-width:100%;min-height:42px}
.lead-status-inline-edit .lead-inline-edit-panel>label{display:block;color:#5a6f8c;font-size:11px;font-weight:800;margin-bottom:7px}
.lead-status-inline-edit .lead-inline-edit-panel{max-width:420px}
.lead-unified-columns .lead-unified-save-actions{padding-top:17px;margin-top:22px}
.lead-unified-columns .lead-unified-save-actions .primary{min-height:43px}
@media(max-width:1030px){
 .lead-unified-columns{grid-template-columns:1fr;gap:0}
 .lead-unified-columns>.lead-unified-notes{padding:24px 0 0;margin-top:24px;border:0;border-top:1px solid #e4eaf4}
 .lead-unified-columns>.lead-unified-notes .lead-notes{min-height:150px}
}
@media(max-width:520px){
 .lead-unified-columns .lead-fields--unified{grid-template-columns:1fr;gap:17px}
 .lead-unified-columns>.lead-unified-notes{padding-top:20px;margin-top:22px}
}


/* HUB-LEADS-006/S: local platform icons in already validated action links. */
.lead-conversation-action{max-width:100%;box-sizing:border-box}
.lead-conversation-platform-icon{display:block;width:17px;height:17px;flex:0 0 17px;object-fit:contain}
.lead-conversation-label{min-width:0;overflow-wrap:anywhere;line-height:1.4}

/* HUB-OVERVIEW-001/S — compact CRM counters and scoped action queues. */
.crm-overview-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:25px}
.crm-kpi-card{display:flex;flex-direction:column;justify-content:center;min-width:0;min-height:106px;
  padding:16px 20px 15px;border:1px solid #dfe8f4;border-radius:13px;background:#fff;
  color:#132a50;text-decoration:none;position:relative;box-shadow:0 4px 16px #13244308}
.crm-kpi-card::before{content:"";position:absolute;left:0;top:15px;bottom:15px;width:3px;border-radius:0 4px 4px 0;background:#658bc6}
.crm-kpi-card--new::before{background:#38a8a7}
.crm-kpi-card--no-response::before{background:#d9a56c}
.crm-kpi-card:hover{border-color:#b7ccea;background:#fafcff}
.crm-kpi-card:focus-visible{outline:2px solid #1753b8;outline-offset:3px}
.crm-kpi-title{font-size:12px;font-weight:800;line-height:1.3;color:#3a5578}
.crm-kpi-number{font-variant-numeric:tabular-nums;font-size:30px;line-height:1.12;
  letter-spacing:-.8px;margin:7px 0 5px;color:#152d54;font-weight:850}
.crm-kpi-foot{color:#7c8fa6;font-size:10px;line-height:1.35}
.crm-action-section{margin:8px 0 25px;min-width:0}
.crm-action-heading{display:flex;justify-content:space-between;align-items:end;
  flex-wrap:wrap;gap:12px;margin-bottom:14px}
.crm-action-heading h3{font-size:19px;letter-spacing:-.3px;color:#13284a;margin:7px 0 5px}
.crm-action-heading .muted{margin:0;font-size:11px}
.crm-action-heading .crm-demo-indicator{font-size:9px;margin:0 0 1px}
.crm-action-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:15px;align-items:start}
.crm-action-panel{background:#fff;min-width:0;border:1px solid #e1e9f4;border-radius:14px;
  padding:21px 21px 17px;box-shadow:0 4px 18px #13244307}
.crm-action-panel--new{border-top:3px solid #50a9b2}
.crm-action-panel--no-response{border-top:3px solid #d5a673}
.crm-action-panel-heading{display:flex;justify-content:space-between;align-items:start;
  flex-wrap:wrap;gap:12px;padding-bottom:13px}
.crm-action-panel-heading h4{margin:0 0 6px;color:#182e51;font-size:15px;line-height:1.35}
.crm-action-subcount{font-size:10px;color:#7286a2}
.crm-action-all{display:inline-flex;align-items:center;flex:none;text-decoration:none;font-size:11px;
  font-weight:800;color:#1753b8;border:1px solid #cbdaf0;border-radius:8px;padding:8px 10px}
.crm-action-all:hover{background:#eaf2ff}
.crm-action-all:focus-visible{outline:2px solid #1753b8;outline-offset:2px}
.crm-action-description{font-size:10px;color:#7488a2;line-height:1.6;margin:0 0 13px;max-width:580px}
.crm-action-list{border-top:1px solid #e6edf6}
.crm-action-item{padding:13px 2px 14px;border-bottom:1px solid #e9eff7;min-width:0}
.crm-action-item:last-child{border-bottom:0}
.crm-action-item-head{display:flex;justify-content:space-between;align-items:center;gap:10px;min-width:0}
.crm-action-name{color:#193459;font-size:12px;font-weight:800;text-decoration:none;
  min-width:0;overflow-wrap:anywhere}
.crm-action-name:hover{text-decoration:underline;color:#1753b8}
.crm-action-name:focus-visible{outline:2px solid #1753b8;outline-offset:3px;border-radius:3px}
.crm-action-item .lead-status{flex:none;font-size:9px;padding:5px 8px}
.crm-action-item-meta{display:flex;align-items:center;flex-wrap:wrap;gap:5px 11px;
  color:#687d99;margin-top:8px;font-size:10px;line-height:1.6}
.crm-action-platform{font-size:10px;font-weight:750;color:#375b86;background:#eef4fc;
  border-radius:6px;padding:3px 7px}
.crm-action-item-meta time{font-variant-numeric:tabular-nums}
.crm-action-elapsed{color:#6b7f9a}
.crm-action-elapsed strong{color:#294665;font-weight:800}
.crm-action-elapsed small{margin-left:3px;color:#1753b8;font-size:8px;font-weight:850;letter-spacing:.35px}
.crm-action-summary{border-top:1px solid #edf1f7;padding-top:12px;margin:11px 0 0;
  font-size:10px;color:#8494a9}
.crm-action-empty{font-size:12px;color:#657a96;line-height:1.6;padding:14px 2px;margin:0}
@media(max-width:1210px){
 .crm-action-grid{grid-template-columns:1fr}
 .crm-action-panel{padding:19px 20px}
}
@media(max-width:650px){
 .crm-overview-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:22px}
 .crm-kpi-card{padding:13px 13px 12px;min-height:100px}
 .crm-kpi-card--total{grid-column:1/-1;min-height:91px}
 .crm-kpi-title{font-size:11px}
 .crm-kpi-number{font-size:27px}
 .crm-action-heading h3{font-size:18px}
 .crm-action-panel{padding:16px 15px}
 .crm-action-item-head{gap:8px}
 .crm-action-item .lead-status{font-size:9px}
}
@media(max-width:350px){
 .crm-overview-kpis{grid-template-columns:1fr}
 .crm-kpi-card--total{grid-column:auto}
 .crm-kpi-card{min-height:78px}
 .crm-action-panel-heading{display:block}
 .crm-action-all{margin-top:10px}
}

/* HUB-OVERVIEW-001/S UX refinement: CRM cards grouped, uniformly compact. */
.crm-overview-kpis{
  gap:10px;
  margin-bottom:10px;
}
.crm-kpi-card{
  min-height:81px;
  padding:11px 16px 10px;
  border-radius:12px;
}
.crm-kpi-card::before{top:12px;bottom:12px}
.crm-kpi-title{font-size:11px}
.crm-kpi-number{font-size:25px;margin:4px 0 2px;line-height:1.08}
.crm-kpi-foot{font-size:10px}
.crm-channels{
  gap:10px;
  margin-top:0;
  margin-bottom:23px;
}
a.crm-channel-card{
  min-height:86px;
  padding:11px 14px 10px;
  gap:5px;
  border-radius:12px;
}
.crm-channel-card .source-pill{padding:4px 7px;font-size:10px}
.crm-channel-card .source-pill img{width:15px;height:15px}
.crm-channel-card .crm-channel-result strong{font-size:23px}
.crm-channel-card .crm-channel-result small{font-size:10px}
.crm-channel-arrow{right:13px;bottom:11px;font-size:15px}
.crm-periods{gap:10px}
.crm-period-card{padding:14px;gap:3px;border-radius:12px}
.crm-period-number{font-size:25px;margin-top:3px}
.crm-period-change{margin-top:6px}
.crm-period-note{margin-top:4px}
.crm-action-heading-aside{display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;justify-content:flex-end}
.crm-action-settings{color:#1753b8;text-decoration:none;font-size:11px;font-weight:800;white-space:nowrap}
.crm-action-settings:hover{text-decoration:underline}
.crm-action-settings:focus-visible{outline:2px solid #1753b8;outline-offset:3px;border-radius:3px}
/* Queue sources reuse exactly the shared icon+color badge from the Leads tab. */
.crm-action-item-meta .source-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  max-width:100%;
  white-space:normal;
}
.crm-action-item-meta .source-pill img{width:15px;height:15px}
@media(max-width:600px){
 .crm-overview-kpis{gap:8px;margin-bottom:8px}
 .crm-kpi-card,.crm-kpi-card--total{min-height:76px;padding:11px 12px 10px}
 .crm-kpi-number{font-size:24px}
 .crm-channels{gap:8px;margin-top:0;margin-bottom:20px}
 a.crm-channel-card{min-height:82px;padding:10px 11px;gap:5px}
 .crm-channel-card .crm-channel-result strong{font-size:22px}
 .crm-channel-arrow{right:10px;bottom:9px}
 .crm-action-heading-aside{justify-content:flex-start}
 .crm-period-card{padding:12px}
}
@media(max-width:350px){
 .crm-overview-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .crm-kpi-card--total{grid-column:1/-1}
 .crm-kpi-card{min-height:76px}
 .crm-channel-card .source-pill{padding:4px 5px}
}

/* Preferences: separate working CRM display setting from report-only DEMO. */
.pref-crm-display{margin-bottom:20px}
.pref-crm-display .pref-surface-head h2{margin-top:8px}
.pref-crm-display-form{display:flex;align-items:end;flex-wrap:wrap;gap:13px;margin-top:22px}
.pref-crm-display-field{flex:1 1 235px;max-width:340px}
.pref-crm-display-form .primary{min-height:46px;white-space:nowrap}
.pref-crm-explanation{font-size:11px;line-height:1.6;color:#657993;margin:16px 0 0}
.pref-crm-saved{font-size:12px;color:#256c50;background:#eef8f1;padding:11px 13px;
  border-radius:8px;border:1px solid #cee7d6;margin:15px 0 0;font-weight:750}
@media(max-width:600px){
 .pref-crm-display-form{align-items:stretch}
 .pref-crm-display-field{max-width:none;flex-basis:100%}
 .pref-crm-display-form .primary{width:100%}
}


/* HUB-OVERVIEW-001/S — compact overview.
   Queue counters live inside their corresponding panel headings; the central
   2x2 group contains source cards only. No change to CRM or report logic. */
.crm-overview-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.crm-overview-title h1{margin:9px 0 8px}
.crm-total-inline{
 display:inline-flex;align-items:center;gap:6px;min-height:29px;
 padding:5px 10px;border:1px solid #d5e3f4;background:#ebf2fc;
 border-radius:18px;color:#335981;text-decoration:none;font-size:11px;font-weight:750;
}
.crm-total-inline strong{font-size:16px;line-height:1;color:#1753b8;font-variant-numeric:tabular-nums}
.crm-total-inline:hover{background:#e1edff;border-color:#bacfec}
.crm-total-inline:focus-visible{outline:2px solid #1753b8;outline-offset:3px}
.crm-board-grid{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 grid-template-areas:"new-queue summary no-response-queue";
 gap:14px;align-items:start;min-width:0;
}
.crm-board-grid>.crm-action-grid{display:contents}
.crm-board-grid .crm-action-panel--new{grid-area:new-queue}
.crm-board-grid .crm-action-panel--no-response{grid-area:no-response-queue}
.crm-board-center{grid-area:summary;min-width:0}
.crm-board-tiles{
 width:100%;max-width:300px;margin:0 auto;
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 align-items:start;gap:9px;min-width:0;
}
.crm-board-tiles>.crm-channels{display:contents}
.crm-board-tiles a.crm-channel-card{
 grid-column:auto;aspect-ratio:1;width:100%;
 min-height:0;min-width:0;align-items:center;
 justify-content:space-between;text-align:center;
 padding:10px 8px 9px;gap:5px;
}
.crm-board-tiles .crm-channel-card .source-pill{
 display:inline-flex;justify-content:center;align-items:center;
 gap:4px;max-width:100%;white-space:normal;
 padding:4px 5px;font-size:9px;line-height:1.15;
}
.crm-board-tiles .crm-channel-card .source-pill img{width:14px;height:14px}
.crm-board-tiles .crm-channel-result{
 display:flex;width:100%;justify-content:center;align-items:baseline;
 gap:4px;margin:2px 0 0;
}
.crm-board-tiles .crm-channel-card .crm-channel-result strong{font-size:25px}
.crm-board-tiles .crm-channel-card .crm-channel-result small{font-size:9px}
.crm-board-tiles .crm-channel-arrow{display:none}
.crm-board-influx{
 border-top:1px solid #dde7f3;
 padding-top:14px;margin-top:17px;min-width:0;
}
.crm-board-influx .crm-period-heading{display:block;margin:0 0 10px}
.crm-board-influx .crm-period-heading h3{font-size:15px}
.crm-board-influx .crm-period-heading .muted{font-size:10px;line-height:1.45;margin:3px 0 0}
.crm-board-influx .crm-periods{display:grid;grid-template-columns:minmax(0,1fr);gap:7px}
.crm-board-influx .crm-period-card{
 min-width:0;min-height:78px;display:grid;
 grid-template-columns:minmax(0,1fr) auto;
 grid-template-areas:"label value" "date value" "previous delta" "prior prior";
 gap:3px 8px;align-items:center;padding:9px 11px;border-radius:10px;
}
.crm-board-influx .crm-period-kicker{grid-area:label;font-size:10px}
.crm-board-influx .crm-period-date{grid-area:date;font-size:9px}
.crm-board-influx .crm-period-number{grid-area:value;font-size:25px;margin:0;text-align:right;line-height:1}
.crm-board-influx .crm-period-secondary{grid-area:previous;font-size:9px}
.crm-board-influx .crm-period-change{
 grid-area:delta;display:flex;align-items:center;justify-content:flex-end;
 flex-wrap:wrap;gap:3px 5px;margin:0;
}
.crm-board-influx .crm-period-delta{font-size:9px}
.crm-board-influx .crm-period-percent{font-size:9px;padding:3px 6px;border-radius:7px}
.crm-board-influx .crm-period-note{grid-area:prior;font-size:9px;margin:0;line-height:1.35}
.crm-action-panel-heading{
 display:grid;grid-template-columns:minmax(0,1fr) auto;
 align-items:start;gap:10px;min-height:71px;
}
.crm-action-panel-heading>div{min-width:0}
.crm-action-panel-heading h4{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.crm-action-counter{
 display:flex;position:relative;flex-direction:column;
 justify-content:center;align-items:flex-start;
 gap:3px;min-width:99px;min-height:58px;
 padding:7px 24px 7px 9px;
 border:1px solid #cee4e9;border-left:3px solid #50a9b2;
 border-radius:9px;background:#f0fafb;color:#196f7c;
 text-decoration:none;
}
.crm-action-counter--no-response{
 border-color:#eedcc9;border-left-color:#d5a673;
 background:#fff8f1;color:#915c25;
}
.crm-action-counter-label{font-size:9px;font-weight:800;line-height:1.3;white-space:nowrap}
.crm-action-counter strong{font-size:21px;line-height:1;font-weight:850;font-variant-numeric:tabular-nums}
.crm-action-counter-arrow{position:absolute;right:9px;bottom:11px;font-size:13px;opacity:.75}
.crm-action-counter:hover{filter:brightness(.97)}
.crm-action-counter:focus-visible{outline:2px solid #1753b8;outline-offset:2px}
@media(max-width:1340px){
 .crm-board-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-areas:"summary summary" "new-queue no-response-queue";
 }
 .crm-board-center{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;gap:20px;
 }
 .crm-board-tiles{max-width:300px}
 .crm-board-influx{border-top:0;margin:0;padding-top:0}
}
@media(max-width:1050px){
 .crm-board-grid{
  grid-template-areas:"summary summary" "new-queue new-queue" "no-response-queue no-response-queue";
 }
 .crm-board-center{display:block}
 .crm-board-influx{max-width:440px;margin:17px auto 0;padding-top:13px;border-top:1px solid #dde7f3}
}
@media(max-width:760px){
 .crm-board-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-areas:"channels channels" "new-queue new-queue"
                      "no-response-queue no-response-queue" "influx influx";
  column-gap:9px;row-gap:12px;
 }
 .crm-board-center,.crm-board-tiles{display:contents}
 .crm-board-tiles>.crm-channels{
  grid-area:channels;display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;width:100%;max-width:378px;
  justify-self:center;margin:0 auto;
 }
 .crm-board-tiles a.crm-channel-card{
  grid-column:auto;aspect-ratio:1;min-height:0;padding:10px 11px;
 }
 .crm-board-tiles .crm-channel-card .source-pill{font-size:10px;padding:5px 6px}
 .crm-board-tiles .crm-channel-card .crm-channel-result strong{font-size:25px}
 .crm-board-influx{
  grid-area:influx;max-width:none;margin:6px 0 0;padding-top:15px;
 }
}
@media(max-width:350px){
 .crm-board-tiles a.crm-channel-card{padding:9px 6px}
 .crm-board-tiles .crm-channel-card .source-pill{font-size:9px;padding:4px 5px}
 .crm-action-counter{min-width:89px;padding:7px 20px 7px 7px}
 .crm-action-counter-label{font-size:8px}
 .crm-action-panel-heading{gap:7px}
 .crm-action-panel-heading h4{font-size:13px}
}

/* HUB-OVERVIEW report table + compact mobile acquisition indicators. */
.recent-reports-surface{
  width:min(100%,1160px);
  margin:24px auto 22px;
  padding:20px 22px 23px;
}
.recent-reports-heading{margin-bottom:16px}
.recent-reports-heading .muted{font-size:11px;margin:6px 0 0}
.recent-reports-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;align-items:start;
}
.recent-report-group{
  min-width:0;
  border:1px solid #e0e8f3;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.recent-report-group-head{
  display:flex;justify-content:space-between;align-items:center;
  gap:8px;min-height:51px;padding:11px 12px;
  background:#f9fbfe;border-bottom:1px solid #e7edf6;
}
.recent-report-group-head h3{font-size:11px;font-weight:800;margin:0;min-width:0}
.recent-report-group-head h3 a{text-decoration:none;font-size:10px}
.recent-report-group-head h3 a:hover{text-decoration:underline}
.recent-report-group-head h3 a:focus-visible{outline:2px solid #1753b8;outline-offset:3px}
.recent-report-count{font-size:10px;color:#7688a1;white-space:nowrap}
.recent-report-table{
  width:100%;border-collapse:collapse;table-layout:fixed;
  font-size:11px;color:#182f55;
}
.recent-report-table thead th{
  padding:8px 12px;text-align:left;font-size:9px;
  letter-spacing:.4px;font-weight:800;color:#7889a1;
  background:#fcfdff;border-bottom:1px solid #e7edf6;
}
.recent-report-table td{
  padding:0;border-bottom:1px solid #e9eff6;vertical-align:middle;
}
.recent-report-table tbody tr:last-child td{border-bottom:0}
.recent-report-link{
  display:flex;align-items:center;justify-content:space-between;
  gap:8px;padding:13px 12px;text-decoration:none;
  color:#152b50;min-width:0;min-height:44px;
}
.recent-report-link:hover{background:#f1f6fe;color:#1753b8}
.recent-report-link:focus-visible{outline:2px solid #1753b8;outline-offset:-2px}
.recent-report-name{
  display:block;min-width:0;overflow-wrap:anywhere;
  font-size:11px;line-height:1.45;font-weight:750;
}
.recent-report-arrow{flex:none;color:#1753b8;font-size:15px}
.recent-reports-empty{padding:18px 12px!important;color:#7c8ba1;font-size:11px}
.pref-report-display{margin-bottom:20px}
@media(max-width:1220px){
  .recent-reports-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  /* Compact horizontal indicators instead of large mobile squares. */
  .crm-board-tiles>.crm-channels{max-width:310px;gap:7px}
  .crm-board-tiles a.crm-channel-card{
    aspect-ratio:auto;
    width:100%;height:50px;min-height:50px;
    display:flex;flex-direction:row;
    align-items:center;justify-content:space-between;
    padding:6px 7px;gap:4px;text-align:left;
  }
  .crm-board-tiles .crm-channel-card .source-pill{
    padding:3px 5px;gap:4px;font-size:9px;line-height:1.1;
    white-space:normal;overflow-wrap:anywhere;min-width:0;
  }
  .crm-board-tiles .crm-channel-card .source-pill img{width:13px;height:13px}
  .crm-board-tiles .crm-channel-card .crm-channel-result{
    width:auto;flex:none;display:inline-flex;
    align-items:center;gap:0;margin:0;
  }
  .crm-board-tiles .crm-channel-card .crm-channel-result strong{font-size:18px}
  .crm-board-tiles .crm-channel-card .crm-channel-result small{display:none}
  .recent-reports-surface{padding:17px 15px;margin-top:22px}
  .recent-reports-grid{grid-template-columns:1fr;gap:10px}
  .recent-reports-heading{align-items:flex-start;flex-wrap:wrap}
}
@media(max-width:350px){
  .crm-board-tiles>.crm-channels{gap:6px}
  .crm-board-tiles a.crm-channel-card{height:51px;min-height:51px;padding:5px 6px}
  .crm-board-tiles .crm-channel-card .source-pill{font-size:8.5px;padding:3px 4px}
  .crm-board-tiles .crm-channel-card .crm-channel-result strong{font-size:17px}
}

/* Match both operational counters and keep explanations visually aligned
   with their headings; applies to all responsive layouts. */
.crm-action-panel-heading .crm-action-counter{
  width:132px;
  min-width:132px;
  height:64px;
  min-height:64px;
  flex-shrink:0;
}
.crm-action-panel-heading h4{
  max-width:220px;
  text-wrap:balance;
}
.crm-action-panel .crm-action-description{
  max-width:220px;
  text-wrap:pretty;
  line-height:1.5;
}
@media(max-width:350px){
  .crm-action-panel-heading .crm-action-counter{width:132px;min-width:132px}
  .crm-action-panel .crm-action-description{max-width:210px}
}

/* Align queue explanations directly below each title, beside the counters. */
.crm-action-panel-heading{min-height:0;padding-bottom:10px;align-items:start}
.crm-action-panel-heading>div{max-width:220px;min-width:0}
.crm-action-panel-heading h4{margin:0 0 5px;max-width:100%}
.crm-action-panel-heading .crm-action-description{
  max-width:100%;margin:0;font-size:10px;line-height:1.4;
  color:#7488a2;text-wrap:pretty;overflow-wrap:break-word;
}
@media(max-width:350px){
  .crm-action-panel-heading .crm-action-description{font-size:9px;line-height:1.35}
}

/* Equal-height queue headers on wide desktop: same first-row alignment. */
@media(min-width:1341px){
  .crm-action-panel-heading{min-height:90px}
}


/* Queue item metadata: platform/date first, acquisition age on its own row. */
.crm-action-item-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
}
.crm-action-source-line{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px 11px;
  min-width:0;
  max-width:100%;
}
.crm-action-item-meta .crm-action-elapsed{
  display:block;
  margin:0;
  line-height:1.45;
}



/* HUB overview: center acquisition, four platform cards immediately below. */
.crm-overview{display:block;min-width:0}
.crm-overview-lab-label{margin:0 0 12px}
.crm-board-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-areas:"new-queue summary no-response-queue";
  column-gap:14px;row-gap:14px;align-items:start;min-width:0;
}
.crm-board-grid>.crm-action-grid{display:contents}
.crm-board-grid .crm-action-panel--new{grid-area:new-queue}
.crm-board-grid .crm-action-panel--no-response{grid-area:no-response-queue}
.crm-board-grid .crm-board-center{
  grid-area:summary;
  display:flex;flex-direction:column;
  align-items:center;gap:13px;min-width:0;
}
.crm-board-center .crm-board-influx--center{
  display:block;
  width:min(100%,300px);min-width:0;
  margin:0;padding:13px 12px;
  background:#fff;border:1px solid #dce6f3;
  border-radius:13px;box-shadow:0 4px 16px #1324430a;
}
.crm-board-center .crm-influx-header{
  display:flex;align-items:center;justify-content:space-between;
  gap:9px;margin:0 0 10px;
}
.crm-board-center .crm-influx-header .crm-period-heading{
  display:block;margin:0;min-width:0;
}
.crm-board-center .crm-influx-header .crm-period-heading h3{
  font-size:14px;line-height:1.25;margin:0 0 4px;
}
.crm-board-center .crm-influx-header .crm-period-heading .muted{
  font-size:9px;line-height:1.35;margin:0;color:#7185a0;
}
.crm-board-center .crm-influx-header .crm-total-inline{
  display:flex;flex:none;align-items:center;justify-content:center;
  flex-direction:column;gap:3px;
  width:107px;min-width:107px;min-height:55px;
  padding:7px 5px;margin:0;border-radius:10px;
}
.crm-influx-header .crm-total-inline span{
  font-size:9px;font-weight:750;line-height:1.2;text-align:center;
}
.crm-influx-header .crm-total-inline strong{
  font-size:22px;font-weight:850;line-height:1;
}
.crm-board-center .crm-board-influx--center .crm-periods{
  display:grid;grid-template-columns:minmax(0,1fr);
  gap:6px;margin:0;
}
.crm-board-center .crm-board-influx--center .crm-period-card{
  min-height:69px;display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"label value" "date value" "previous delta" "prior prior";
  gap:3px 8px;align-items:center;padding:8px 10px;border-radius:9px;
}
.crm-board-center .crm-board-influx--center .crm-period-kicker{grid-area:label;font-size:10px}
.crm-board-center .crm-board-influx--center .crm-period-date{grid-area:date;font-size:9px}
.crm-board-center .crm-board-influx--center .crm-period-number{grid-area:value;font-size:24px;margin:0;text-align:right}
.crm-board-center .crm-board-influx--center .crm-period-secondary{grid-area:previous;font-size:9px}
.crm-board-center .crm-board-influx--center .crm-period-change{
  grid-area:delta;display:flex;align-items:center;justify-content:flex-end;
  flex-wrap:wrap;gap:3px 5px;margin:0;
}
.crm-board-center .crm-board-influx--center .crm-period-delta{font-size:9px}
.crm-board-center .crm-board-influx--center .crm-period-percent{font-size:9px;padding:3px 6px}
.crm-board-center .crm-board-influx--center .crm-period-note{grid-area:prior;font-size:9px;margin:0}
.crm-board-grid .crm-board-tiles{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  width:min(100%,300px);max-width:300px;
  gap:9px;align-items:start;margin:0 auto;
}
.crm-board-grid .crm-board-tiles>.crm-channels{display:contents}
.crm-board-tiles a.crm-channel-card{width:100%;max-width:100%;min-width:0;aspect-ratio:1}
@media(min-width:761px){
  .crm-action-panel-heading{
    display:grid;
    grid-template-columns:minmax(0,1fr) 142px;
    grid-template-areas:"queue-title queue-title" "queue-description queue-counter";
    grid-template-rows:auto minmax(64px,auto);
    gap:6px 10px;align-items:start;min-height:0;padding-bottom:12px;
  }
  .crm-action-panel-heading>div{display:contents}
  .crm-action-panel-heading h4{
    grid-area:queue-title;width:100%;max-width:none;margin:0;
    font-size:clamp(12px,.94vw,14px);line-height:1.35;
    white-space:nowrap;text-wrap:nowrap;letter-spacing:-.2px;
  }
  .crm-action-panel-heading .crm-action-description{
    grid-area:queue-description;width:100%;max-width:none;
    margin:10px 0 0;font-size:10px;line-height:1.45;align-self:start;
  }
  .crm-action-panel-heading .crm-action-counter{
    grid-area:queue-counter;justify-self:center;align-self:center;
    width:132px;min-width:132px;height:64px;min-height:64px;
  }
}
@media(max-width:1220px){
  .crm-board-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-areas:"summary summary" "new-queue no-response-queue";
  }
  .crm-board-grid .crm-board-center{
    flex-direction:column;justify-content:center;align-items:center;gap:13px;
  }
}
@media(max-width:1050px){
  .crm-board-grid{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"summary" "new-queue" "no-response-queue";
  }
}
@media(max-width:760px){
  .crm-board-grid{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"summary" "new-queue" "no-response-queue";
    row-gap:13px;
  }
  .crm-board-grid .crm-board-center{
    display:flex;flex-direction:column;align-items:center;gap:12px;
  }
  .crm-board-center .crm-board-influx--center{
    width:min(100%,340px);padding:12px;
  }
  .crm-board-grid .crm-board-tiles{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    width:min(100%,310px);max-width:310px;gap:7px;margin:0 auto;
  }
  .crm-board-grid .crm-board-tiles>.crm-channels{display:contents}
  .crm-board-tiles a.crm-channel-card{
    aspect-ratio:auto;height:50px;min-height:50px;padding:6px 7px;
  }
  .crm-action-panel-heading .crm-action-counter{
    justify-self:center;align-self:center;
    width:132px;min-width:132px;min-height:64px;
  }
}
@media(max-width:350px){
  .crm-board-center .crm-influx-header{gap:5px}
  .crm-board-center .crm-influx-header .crm-total-inline{
    width:101px;min-width:101px;
  }
}

/* Mobile CRM: urgent queues first; influx and sources together last. */
@media (max-width:760px){
  .crm-board-grid{
    grid-template-areas:"new-queue" "no-response-queue" "summary";
  }
}

/* Global section heading and explicit, CSRF-protected theme toggle. */
.topbar-section{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.topbar-section-title{font-size:17px;font-weight:850;line-height:1.15;color:#11234a}
.topbar-section-description{font-size:11px;line-height:1.4;color:#637998;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar-actions{display:flex;align-items:center;gap:12px;flex:none}
.topbar-actions form{margin:0}
.theme-toggle{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:1px solid #d3dfef;border-radius:20px;
  background:#f4f7fc;color:#284771;min-height:36px;
  padding:6px 10px;font-size:11px;font-weight:800;
  cursor:pointer;white-space:nowrap;
}
.theme-toggle:hover{background:#e8f1fd}
.theme-toggle:focus-visible{outline:2px solid #1753b8;outline-offset:3px}
.theme-toggle-symbol{font-size:15px;line-height:1;width:15px;text-align:center}
.theme-toggle-track{
  display:inline-flex;align-items:center;width:28px;height:16px;
  border:1px solid #afbed1;border-radius:14px;
  padding:2px;background:#cbd6e5;
}
.theme-toggle-thumb{display:block;width:10px;height:10px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0e1b3435}
@media(max-width:760px){
  .topbar{gap:9px}
  .topbar-section-title{font-size:14px}
  .topbar-section-description{font-size:9px}
  .topbar-actions{gap:6px}
  .theme-toggle{gap:5px;min-height:34px;padding:6px 8px;font-size:10px}
  .theme-toggle-text{display:none}
  .theme-toggle-symbol{font-size:17px}
  .theme-toggle-track{width:26px}
  .topbar .logout{min-height:34px;padding:7px 9px;font-size:10px}
}
/* Dark theme is a display preference only; iframe contents remain isolated. */
body.hub-theme-dark{
  color-scheme:dark;
  background:#0d172a;
  color:#e4edf9;
}
.hub-theme-dark .workspace{background:#101b30;color:#e4edf9}
.hub-theme-dark .sidebar{background:#091426;border-right-color:#293d59}
.hub-theme-dark .topbar{background:#16233a;border-bottom-color:#33445e}
.hub-theme-dark .topbar-section-title{color:#edf4ff}
.hub-theme-dark .topbar-section-description{color:#a4b5d0}
.hub-theme-dark .theme-toggle{
  background:#283a58;border-color:#587299;color:#e1edff;
}
.hub-theme-dark .theme-toggle:hover{background:#344c70}
.hub-theme-dark .theme-toggle-track{background:#4985df;border-color:#67a0f0;justify-content:flex-end}
.hub-theme-dark .logout{background:#21324e;border-color:#3a506d;color:#e6effb}
.hub-theme-dark .logout:hover{background:#304765}
.hub-theme-dark .surface,
.hub-theme-dark .crm-action-panel,
.hub-theme-dark .crm-board-influx--center,
.hub-theme-dark .crm-period-card,
.hub-theme-dark .crm-channel-card,
.hub-theme-dark .crm-kpi-card,
.hub-theme-dark .crm-unavailable,
.hub-theme-dark .recent-report-group,
.hub-theme-dark .ads004-kpi,
.hub-theme-dark .meeting-demo-option,
.hub-theme-dark .meeting-demo-summary{
  background:#192841;border-color:#334861;color:#dfebf9;
  box-shadow:0 4px 16px #050d1826;
}
.hub-theme-dark .recent-report-group-head,
.hub-theme-dark .recent-report-table thead th,
.hub-theme-dark .lead-table th,
.hub-theme-dark .ads004-rank-table th,
.hub-theme-dark .crm-action-list,
.hub-theme-dark .ads004-rank-row--top,
.hub-theme-dark .ads004-rank-row--last{
  background:#22334e;color:#afc2df;
}
.hub-theme-dark .recent-report-table tr td,
.hub-theme-dark .recent-report-group-head,
.hub-theme-dark .lead-table td,
.hub-theme-dark .pref-summary-row,
.hub-theme-dark .ads004-rank-table td,
.hub-theme-dark .crm-action-item,
.hub-theme-dark .crm-action-panel-heading,
.hub-theme-dark .lead-unified-divider{
  border-color:#34475f;
}
.hub-theme-dark .crm-action-list{background:transparent}
.hub-theme-dark :is(
  .heading-row h1,.content h1,
  .section-head h2,.pref-surface-head h2,
  .pref-choice-copy strong,.pref-summary-row strong,
  .lead-name-link,.lead-information h2,.lead-fields dd,
  .lead-status-inline-edit .lead-contact-current,
  .lead-unified-edit-head h3,.lead-unified-notes h3,
  .crm-action-heading h3,.crm-action-panel-heading h4,
  .crm-period-heading h3,.crm-period-kicker,.crm-period-number,
  .crm-period-secondary b,.crm-channel-result strong,
  .ads004-filter-head h2,.ads004-section-heading h2,
  .ads004-ranking-name strong,.ads004-fatigue-identity h3,
  .ads004-fatigue-reason h4,.ads004-fatigue-action p,
  .meeting-demo-head h2,.meeting-demo-aside h3,
  .meeting-demo-summary h4,.meeting-demo-option-text strong,
  .meeting-demo-fieldset legend,.meeting-demo-summary dd,
  .recent-report-name,.recent-report-group-head h3,
  .recent-report-link,.report-description strong,
  .mail-preview-title-row h1,.crm-action-item-title a
){color:#e6effc}
.hub-theme-dark :is(
  .muted,.crm-period-date,.crm-period-note,.crm-period-secondary,
  .crm-action-description,.crm-action-item-meta,.crm-action-elapsed,
  .crm-action-panel .crm-action-description,
  .lead-fields dt,.lead-campaign small,.lead-editor-hint,
  .lead-inline-source-note,.lead-unified-notes .lead-editor-hint,
  .pref-choice-copy small,.pref-field small,.pref-summary-row span,
  .recent-report-count,.recent-report-table thead th,
  .ads004-value small,.ads004-ranking-name span,.ads004-data-note,
  .ads004-filter-foot,.ads004-fatigue-reason p,.ads004-fatigue-reason li,
  .meeting-demo-aside>p,.meeting-demo-summary dt,
  .meeting-demo-option-text small,.meeting-demo-field small,
  .report-date,.report-meta,.topbar-caption,.crm-action-item-meta time
){color:#afc0d8}
.hub-theme-dark :is(
  .filter-box,.lead-list-surface,.pref-config-surface,
  .pref-summary-surface,.ads004-filter-panel,.ads004-fatigue-card,
  .ads004-rank-panel,.lead-information,.meeting-demo
){border-color:#334861}
.hub-theme-dark :is(
  .pref-choice,.pref-choice-off,
  .pref-summary-foot,.pref-warning,
  .ads004-change,.ads004-fatigue-action,
  .meeting-demo-option,.meeting-demo-aside,
  .meeting-demo-warning,.lead-inline-edit-panel,
  .lead-conversation-action,.crm-total-inline,
  .crm-demo-indicator,.recent-reports-empty,
  .count-pill,.type-pill
){
  background:#233650;border-color:#3b506d;color:#d3e5fc;
}
.hub-theme-dark :is(
  .filter-form input,.filter-form select,.lead-filters input[type=search],
  .lead-select,.lead-notes,.lead-inline-edit-panel input,
  .pref-field input,.pref-field select,
  .ads004-filter-form select,.ads004-filter-form input,
  .ads004-mobile-sort select,.meeting-demo-field input,
  .meeting-demo-field select,.lead-contact-inline-edit input,
  .meeting-demo-field textarea
){
  background:#101d32;border:1px solid #47607d;color:#e8f0fc;
  color-scheme:dark;
}
.hub-theme-dark :is(input,textarea)::placeholder{color:#9fb0c9}
.hub-theme-dark :is(input,select,textarea):disabled{
  background:#202e42;color:#99aac2;
}
.hub-theme-dark .reset,
.hub-theme-dark .section-link,
.hub-theme-dark .back,
.hub-theme-dark .lead-detail-link,
.hub-theme-dark .recent-report-arrow,
.hub-theme-dark .crm-period-delta,
.hub-theme-dark .crm-action-settings{
  color:#94bfff;
}
.hub-theme-dark .primary,.hub-theme-dark .lead-inline-save{
  background:#2867cb;border-color:#2867cb;color:white;
}
.hub-theme-dark .primary:hover,.hub-theme-dark .lead-inline-save:hover{background:#3477e4}
.hub-theme-dark :is(.secondary-action,.lead-inline-cancel,.pref-reset){
  background:#223750;color:#daebff;border-color:#48648a;
}
.hub-theme-dark .secondary-action:hover,
.hub-theme-dark .lead-inline-cancel:hover{background:#314a6c}
.hub-theme-dark .lead-table tbody tr:hover,
.hub-theme-dark .ads004-rank-table tbody tr:hover,
.hub-theme-dark .recent-report-link:hover{
  background:#263c5b;color:#f1f7ff;
}
.hub-theme-dark .crm-channel-card--instagram{background:#30243a;border-color:#81547e;color:#e5a7d8}
.hub-theme-dark .crm-channel-card--messenger{background:#1c2d4d;border-color:#395f9b;color:#9ac1ff}
.hub-theme-dark .crm-channel-card--whatsapp{background:#1b3734;border-color:#3b7962;color:#9adabb}
.hub-theme-dark .crm-channel-card--meta_lead_form{background:#252b4b;border-color:#5765a0;color:#a9bdf4}
.hub-theme-dark .source-pill--instagram{background:#39283a;color:#f3b5e2;border-color:#795176}
.hub-theme-dark .source-pill--messenger{background:#213756;color:#b2d1ff;border-color:#476d9f}
.hub-theme-dark .source-pill--whatsapp{background:#1c4236;color:#ace9ca;border-color:#3c795e}
.hub-theme-dark .source-pill--meta{background:#273456;color:#c1cdf9;border-color:#56689d}
.hub-theme-dark .source-pill--neutral{background:#24364f;color:#bdcfe5;border-color:#415873}
.hub-theme-dark .lead-status-new,
.hub-theme-dark .lead-status-appointment{background:#203e6a;color:#b9d6ff}
.hub-theme-dark .lead-status-no-response,.hub-theme-dark .lead-status-lost{background:#4b2637;color:#ffb6c7}
.hub-theme-dark .lead-status-contact,.hub-theme-dark .lead-status-customer{background:#314158;color:#d5e4f7}
.hub-theme-dark .crm-action-counter--new{background:#183b46;border-color:#386d76;color:#a6e3e8}
.hub-theme-dark .crm-action-counter--no-response{background:#453428;border-color:#8a6542;color:#f6d2a8}
.hub-theme-dark .crm-period-percent,.hub-theme-dark .crm-demo-indicator{
  background:#253e67;color:#c2daff;border-color:#395981;
}
.hub-theme-dark .ads004-value--em,
.hub-theme-dark .ads004-position,
.hub-theme-dark .pref-summary-badge,
.hub-theme-dark .meeting-demo-badge{
  background:#2c4568;color:#cbdefc;
}
.hub-theme-dark .ads004-risk-pill--high{background:#452736;color:#ffc1cf;border-color:#865063}
.hub-theme-dark .ads004-risk-pill--watch{background:#433923;color:#f4dda9;border-color:#746443}
.hub-theme-dark .ads004-risk-pill--low{background:#1d4035;color:#a0e4c1;border-color:#376f58}
.hub-theme-dark .ads004-risk-pill--insufficient_data{background:#2a3447;color:#c0cde0;border-color:#445571}
.hub-theme-dark .ads004-change--negative>strong{color:#f3a1b4}
.hub-theme-dark .ads004-change--positive>strong{color:#91e0ba}
.hub-theme-dark .pref-warning p,
.hub-theme-dark .pref-summary-foot,
.hub-theme-dark .meeting-demo-option-text,
.hub-theme-dark .meeting-demo-summary{color:#c6d7ec}
.hub-theme-dark .pref-choice-icon,
.hub-theme-dark .meeting-demo-preview-disclaimer,
.hub-theme-dark .lead-pencil{background:#304763;color:#cfe1fc}
.hub-theme-dark .pref-crm-saved,.hub-theme-dark .lead-notice-success{
  background:#1d4036;border-color:#447e64;color:#a0e2c1;
}
.hub-theme-dark .lead-notice-error,.hub-theme-dark .meeting-demo-error{
  background:#482a38;border-color:#915165;color:#ffc0ce;
}
.hub-theme-dark .mail-preview-header{
  background:#192841;color:#e6eefc;
}
.hub-theme-dark .mail-preview-content iframe{background:#f5f8fc}
/* The report iframe HTML is intentionally NOT themed. */

/* HUB UI polish — section headings, symmetric overview and operational counts. */
.lead-page-lab-label,.report-page-lab-label{margin:0 0 14px}
.ads004-demo-strip{display:flex;justify-content:flex-end;align-items:center;margin:0 0 15px;min-height:24px}
@media(min-width:1221px){
  .crm-board-center .crm-board-influx--center{width:min(100%,390px);padding:11px}
  .crm-board-center .crm-influx-header{margin-bottom:8px}
  .crm-board-center .crm-influx-header .crm-period-heading h3{font-size:15px}
  .crm-board-center .crm-board-influx--center .crm-period-card{
    min-height:60px;padding:5px 10px;gap:2px 8px
  }
  .crm-board-center .crm-board-influx--center .crm-period-number{font-size:24px}
  .crm-board-center .crm-board-influx--center .crm-period-kicker{font-size:10px}
  .crm-board-center .crm-board-influx--center .crm-period-date,
  .crm-board-center .crm-board-influx--center .crm-period-secondary,
  .crm-board-center .crm-board-influx--center .crm-period-note,
  .crm-board-center .crm-board-influx--center .crm-period-delta,
  .crm-board-center .crm-board-influx--center .crm-period-percent{font-size:9px}
  .crm-board-grid .crm-board-center{gap:7px}
  .crm-board-grid .crm-board-tiles{width:min(100%,268px);max-width:268px;gap:8px}
  .crm-board-tiles a.crm-channel-card{padding:9px 7px;gap:4px}
  .crm-board-tiles .crm-channel-card .source-pill{font-size:9px;padding:4px 5px}
  .crm-board-tiles .crm-channel-card .source-pill img{width:13px;height:13px}
  .crm-board-tiles .crm-channel-card .crm-channel-result strong{font-size:25px}
  .crm-board-tiles .crm-channel-card .crm-channel-result small{font-size:9px}
}
.crm-action-panel-heading .crm-action-counter{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;gap:4px;padding:6px 14px 6px;
}
.crm-action-panel-heading .crm-action-counter-label,
.crm-action-panel-heading .crm-action-counter strong{
  display:block;text-align:center;width:100%;line-height:1.2;
}
.crm-action-panel-heading .crm-action-counter strong{line-height:1;font-variant-numeric:tabular-nums}
.crm-action-panel-heading .crm-action-counter-arrow{
  right:5px;bottom:23px;font-size:11px;line-height:1;
}
@media(max-width:760px){
 .crm-action-panel-heading .crm-action-counter{padding:6px 14px}
}
/* Report document remains sandboxed and unchanged; only the frame corners. */
.mail-preview-content{border-radius:14px;overflow:hidden}
.mail-preview-content iframe{border-radius:14px}
.mail-preview-header{border-radius:12px}

/* HUB dark theme readability fixes. Scoped exclusively to portal chrome:
   no change to archived HTML, CSP, tenant scope or CRM values. */
.hub-theme-dark .eyebrow{color:#97baff}
.hub-theme-dark .crm-action-name,
.hub-theme-dark .crm-action-name:visited{color:#e9f2ff}
.hub-theme-dark .crm-action-name:hover{color:#a9cbff}
.hub-theme-dark .crm-action-elapsed{color:#bbcee5}
.hub-theme-dark .crm-action-elapsed strong{color:#e4f2ff}
.hub-theme-dark .crm-action-item-meta{color:#bfd0e6}
.hub-theme-dark .crm-action-item-meta time{color:#c4d5e9}
.hub-theme-dark .crm-action-summary,
.hub-theme-dark .crm-action-empty{color:#b3c5de}
.hub-theme-dark .crm-action-heading h3{color:#eff6ff}
.hub-theme-dark .crm-period-secondary b{color:#e7f0ff}
.hub-theme-dark .crm-period-delta{color:#b6d6ff}
.hub-theme-dark .crm-influx-header .crm-total-inline strong{color:#f0f7ff}
.hub-theme-dark .crm-influx-header .crm-total-inline span{color:#c6d8f2}
.hub-theme-dark .crm-board-influx--center .crm-period-card{background:#20324e;color:#e5f0ff}
.hub-theme-dark .crm-board-influx--center .crm-period-kicker{color:#d9eaff}
.hub-theme-dark .crm-board-influx--center .crm-period-number{color:#f4f8ff}
.hub-theme-dark .crm-board-influx--center .crm-period-note{color:#b4c7dd}
.hub-theme-dark .crm-action-panel-heading .crm-action-counter strong{color:inherit}
.hub-theme-dark .crm-action-panel-heading .crm-action-counter-label{color:inherit}

/* Lead tables and contact detail values. */
.hub-theme-dark .lead-table{color:#e1ebf9}
.hub-theme-dark .lead-table td{color:#d9e5f6}
.hub-theme-dark .lead-table .lead-campaign strong{color:#ecf3ff}
.hub-theme-dark .lead-table .lead-campaign small{color:#b8c8df}
.hub-theme-dark .lead-table th{background:#22334e;color:#b8cce6}
.hub-theme-dark .lead-table tbody tr:hover{background:#273d5b}
.hub-theme-dark .lead-name-link:hover,.hub-theme-dark .lead-detail-link:hover{color:#b5d5ff}
.hub-theme-dark .lead-fields dd,
.hub-theme-dark .lead-contact-inline-edit>summary,
.hub-theme-dark .lead-contact-inline-edit>summary .lead-contact-current,
.hub-theme-dark .lead-status-inline-edit .lead-contact-current{
  color:#edf5ff;
}
.hub-theme-dark .lead-fields dt,
.hub-theme-dark .lead-unified-status>label,
.hub-theme-dark .lead-unified-notes>label{color:#bdcde5}
.hub-theme-dark .lead-contact-inline-edit>summary:hover .lead-pencil,
.hub-theme-dark .lead-contact-inline-edit[open]>summary .lead-pencil{
  background:#33587f;border-color:#5979a2;color:#eaf4ff;
}
.hub-theme-dark .lead-inline-edit-panel>label:not(.lead-inline-restore),
.hub-theme-dark .lead-status-inline-edit .lead-inline-edit-panel>label,
.hub-theme-dark .lead-inline-restore{color:#c4d8f0}
.hub-theme-dark .lead-unified-notes textarea{color:#eaf3ff}
.hub-theme-dark .lead-unified-notes .lead-editor-hint{color:#bed0e8}
.hub-theme-dark .lead-unified-notes h3{color:#e5f1ff}
.hub-theme-dark .lead-conversation-action--disabled,
.hub-theme-dark .lead-conversation-action--disabled:hover{
  background:#2a3b54;border-color:#4a6080;color:#c8d7eb;
}

/* Archive rows: report type hover must not revert to a light background. */
.hub-theme-dark .reports-box .report-row,
.hub-theme-dark .reports-box .report-description strong{color:#eaf2ff}
.hub-theme-dark .reports-box .report-meta,
.hub-theme-dark .reports-box .report-date{color:#b7c9df}
.hub-theme-dark .reports-box .report-open{color:#9bc4ff}
.hub-theme-dark .reports-box .report-glyph{
  background:#2c455e;color:#b3e4e6;
}
.hub-theme-dark .reports-box .report-kind--week .report-glyph{color:#b7d5ff;background:#263d61}
.hub-theme-dark .reports-box .report-kind--month .report-glyph{color:#ddc5ff;background:#3a315c}
.hub-theme-dark .reports-box .report-row:hover,
.hub-theme-dark .reports-box .report-kind--day:hover.report-row,
.hub-theme-dark .reports-box .report-kind--week:hover.report-row,
.hub-theme-dark .reports-box .report-kind--month:hover.report-row{
  background:#2c4363;
}
.hub-theme-dark .reports-box .report-row:hover .report-description strong,
.hub-theme-dark .reports-box .report-row:hover .report-date{color:#ffffff}
.hub-theme-dark .reports-box .report-row:hover .report-meta{color:#c6d8ef}
.hub-theme-dark .reports-box .report-row:hover .report-open{color:#b8d8ff}
.hub-theme-dark .mail-preview-content,
.hub-theme-dark .mail-preview-content iframe{
  border-radius:14px;
}
.hub-theme-dark .mail-preview-content{overflow:hidden}

/* Ads ranking: tables, headline KPIs and secondary data. */
.hub-theme-dark .ads004-kpi>strong{color:#f0f6ff}
.hub-theme-dark .ads004-kpi>strong small{color:#c8d8eb}
.hub-theme-dark .ads004-kpi-label{color:#c0d1e8}
.hub-theme-dark .ads004-kpi-foot{color:#b7c9e0}
.hub-theme-dark .ads004-rank-table{color:#e3edf9}
.hub-theme-dark .ads004-rank-table td{color:#dde9f7;border-bottom-color:#34485f}
.hub-theme-dark .ads004-ranking-name strong{color:#f0f6ff}
.hub-theme-dark .ads004-ranking-name span{color:#b7cae2}
.hub-theme-dark .ads004-value{color:#e8f1ff}
.hub-theme-dark .ads004-value small{color:#bfd1e8}
.hub-theme-dark .ads004-value--em{color:#e0f0ff}
.hub-theme-dark .ads004-sort-button:hover{
  background:#375478;color:#e1efff;
}
.hub-theme-dark .ads004-rank-table th[aria-sort]:not([aria-sort="none"]) .ads004-sort-button{color:#e1eeff}
.hub-theme-dark .ads004-sort-arrow{color:#a6c8f1}
.hub-theme-dark .ads004-empty{color:#b6c9df}
.hub-theme-dark .ads004-filter-foot strong{color:#e7f2ff}
.hub-theme-dark .ads004-available-range{color:#b7cce7}
.hub-theme-dark .ads004-filter-form label{color:#c0d2e9}
.hub-theme-dark .ads004-period-current{color:#d2e1f2}
.hub-theme-dark .ads004-change>span{color:#bfcee5}
.hub-theme-dark .ads004-change>small{color:#abbdd6}
.hub-theme-dark .ads004-change--neutral>strong{color:#e0ebfa}
.hub-theme-dark .ads004-card-kicker,
.hub-theme-dark .ads004-card-sub{color:#b9c9e0}
.hub-theme-dark .ads004-action-label{color:#a2caff}
.hub-theme-dark .ads004-fatigue-action p{color:#e5eefb}
.hub-theme-dark .ads004-fatigue-reason h4{color:#eaf3ff}

/* Preferences: all text in cards/selects/summary has readable contrast. */
.hub-theme-dark .pref-field label,
.hub-theme-dark .pref-legend{color:#d0def0}
.hub-theme-dark .pref-surface-head h2{color:#eff6ff}
.hub-theme-dark .pref-surface-head .muted{color:#b9cbe3}
.hub-theme-dark .pref-crm-explanation{color:#b8cce5}
.hub-theme-dark .pref-choice-copy strong,
.hub-theme-dark .pref-choice-off .pref-choice-copy strong{color:#edf5ff}
.hub-theme-dark .pref-choice-copy small,
.hub-theme-dark .pref-choice-off .pref-choice-copy small{color:#c0cfe2}
.hub-theme-dark .pref-choice:hover{background:#2a4062;border-color:#58769a}
.hub-theme-dark .pref-summary-row strong,
.hub-theme-dark .pref-summary-row strong.pref-off{color:#e6effd}
.hub-theme-dark .pref-summary-row span{color:#bfd0e4}
.hub-theme-dark .pref-controls-hint{color:#bbcee6}
.hub-theme-dark .pref-field input:disabled,
.hub-theme-dark .pref-field select:disabled{color:#adbfd9}
.hub-theme-dark .pref-summary-foot strong{color:#eaf2ff}
.hub-theme-dark .pref-summary-foot p{color:#c1d2e8}
.hub-theme-dark .pref-warning strong{color:#e7f1ff}
.hub-theme-dark .pref-warning p{color:#bfd5ee}

/* Matching system UI controls without covering platform-specific pill colors. */
.hub-theme-dark .report-kind-pill--day{background:#22434d;color:#bbf2ea;border-color:#3c7979}
.hub-theme-dark .report-kind-pill--week{background:#263f66;color:#c1dbff;border-color:#476da1}
.hub-theme-dark .report-kind-pill--month{background:#3b315a;color:#e1caff;border-color:#75649c}
.hub-theme-dark .section-link:hover,
.hub-theme-dark .report-open:hover{color:#d9ebff}

/* Ad Fatigue color system: same values for positive and negative changes. */
.crm-board-influx .crm-period-percent--positive{
 color:#27856d;background:#eaf6f0;border:1px solid #d0e8db;
}
.crm-board-influx .crm-period-percent--negative{
 color:#b34d5b;background:#fdf0f2;border:1px solid #f1d2d8;
}
.crm-board-influx .crm-period-percent--neutral{
 color:#63758a;background:#eff2f7;border:1px solid #dce3ec;
}
.hub-theme-dark .crm-board-influx .crm-period-percent--positive{
 color:#91e0ba;background:#1d4035;border-color:#376f58;
}
.hub-theme-dark .crm-board-influx .crm-period-percent--negative{
 color:#f3a1b4;background:#452736;border-color:#865063;
}
.hub-theme-dark .crm-board-influx .crm-period-percent--neutral{
 color:#c0cde0;background:#2a3447;border-color:#445571;
}

/* Exact middle-column fit. Previously the platform grid was capped at 268px
   even when the adjacent grid track was wider than 400px. Preserve the
   vertical rhythm by keeping two 130px rows rather than making tall squares. */
@media (min-width:1221px){
  .crm-board-grid .crm-board-center{
    width:100%;
    align-items:stretch;
  }
  .crm-board-center .crm-board-influx--center{
    width:100%;
    max-width:none;
  }
  .crm-board-grid .crm-board-tiles{
    width:min(100%,340px);
    max-width:340px;
    margin:0 auto;
  }
  .crm-board-tiles a.crm-channel-card{
    aspect-ratio:auto;
    height:74px;
    min-height:74px;
    justify-content:center;
    padding:7px 9px;
    gap:4px;
  }
  .crm-board-tiles .crm-channel-card .source-pill{
    font-size:10.5px;
    line-height:1.15;
    padding:3px 6px;
    gap:5px;
  }
  .crm-board-tiles .crm-channel-card .source-pill img{
    width:16px;
    height:16px;
  }
  .crm-board-tiles .crm-channel-result{
    margin:1px 0 0;
    gap:5px;
  }
  .crm-board-tiles .crm-channel-card .crm-channel-result strong{
    font-size:29px;
  }
  .crm-board-tiles .crm-channel-card .crm-channel-result small{
    font-size:10px;
  }
}
/* Operational queues use their natural content height. The counter is
   mathematically centered in the space after the heading's visible title.
   Title and description share a single grid cell to prevent the description
   from shifting the counter off-center. No transforms or fixed queue height. */
@media (min-width:1221px){
  .crm-board-grid{align-items:start}
  .crm-board-grid .crm-action-panel{
    display:block;
    min-height:0;
  }
  .crm-board-grid .crm-action-list{flex:initial}
  .crm-board-grid .crm-action-summary{margin-top:9px}
  .crm-action-panel-heading{
    display:grid;
    margin-right:-21px;
    grid-template-columns:max-content minmax(0,1fr);
    grid-template-rows:auto;
    grid-template-areas:"queue-intro queue-counter";
    column-gap:0;
    align-items:center;
    min-height:0;
  }
  .crm-action-panel-heading>div{
    grid-area:queue-intro;
    display:block;
    width:max-content;
    max-width:100%;
    min-width:0;
  }
  .crm-action-panel-heading h4{
    width:max-content;
    max-width:100%;
    white-space:nowrap;
    font-size:14px;
    line-height:1.4;
    margin:0 0 5px;
    text-wrap:nowrap;
  }
  .crm-action-panel-heading .crm-action-description{
    width:175px;
    max-width:100%;
    margin:0;
    line-height:1.4;
  }
  .crm-action-panel-heading .crm-action-counter{
    grid-area:queue-counter;
    justify-self:center;
    align-self:center;
    width:min(100%,132px);
    min-width:0;
    max-width:132px;
    min-height:64px;
    height:64px;
    padding:5px 3px;
    transform:none;
  }
}
@media (min-width:1600px) and (max-width:1799px){
  .crm-action-panel-heading .crm-action-counter{width:min(100%,116px)}
}
@media (min-width:1400px) and (max-width:1599px){
  .crm-action-panel-heading h4{font-size:12.5px}
  .crm-action-panel-heading .crm-action-counter{width:min(100%,96px)}
  .crm-action-panel-heading .crm-action-counter-label{font-size:8px}
}
@media (min-width:1221px) and (max-width:1399px){
  .crm-action-panel-heading h4{
    font-size:10.5px;
    letter-spacing:-.25px;
  }
  .crm-action-panel-heading .crm-action-description{width:140px;font-size:9px}
  .crm-action-panel-heading .crm-action-counter{
    width:min(100%,78px);
  }
  .crm-action-panel-heading .crm-action-counter-label{font-size:8px}
}

/* More readable acquisition KPIs in the space reclaimed from platform tiles. */
@media (min-width:1221px){
  .crm-board-center .crm-influx-header{
    min-height:65px;
    margin-bottom:12px;
  }
  .crm-board-center .crm-influx-header .crm-period-heading h3{
    font-size:17px;
    line-height:1.3;
  }
  .crm-board-center .crm-influx-header .crm-period-heading .muted{
    font-size:11px;
    line-height:1.45;
  }
  .crm-board-center .crm-board-influx--center .crm-period-card{
    min-height:88px;
    padding:10px 12px;
    gap:4px 8px;
  }
  .crm-board-center .crm-board-influx--center .crm-period-kicker{font-size:12px}
  .crm-board-center .crm-board-influx--center .crm-period-date{font-size:11px}
  .crm-board-center .crm-board-influx--center .crm-period-number{font-size:28px}
  .crm-board-center .crm-board-influx--center .crm-period-secondary{font-size:11px}
  .crm-board-center .crm-board-influx--center .crm-period-note{font-size:10px}
  .crm-board-center .crm-board-influx--center .crm-period-delta,
  .crm-board-center .crm-board-influx--center .crm-period-percent{font-size:10px}
}

/* Compact, accessible mobile navigation — native details/summary, no JavaScript.
   The centered brand remains visible when the menu is open. */
@media (max-width:760px){
  .sidebar{
    min-height:68px;
    height:auto;
    padding:12px 16px;
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
    z-index:20;
    overflow:visible;
  }
  .sidebar .brand{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin:0 auto;
    padding:0;
    width:max-content;
    max-width:calc(100% - 104px);
    min-height:44px;
  }
  .sidebar .brand .brand-mark{
    width:40px;
    height:40px;
    flex:none;
  }
  .sidebar .brand strong{font-size:15px;line-height:1.15}
  .sidebar .brand small{font-size:8px;letter-spacing:1px;margin-top:4px}
  .sidebar .mobile-nav{
    position:absolute;
    top:12px;
    left:16px;
    right:auto;
    margin:0;
    padding:0;
    width:44px;
    height:44px;
    display:block;
    z-index:30;
  }
  .sidebar .mobile-nav>summary{
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    min-width:44px;
    min-height:44px;
    padding:0;
    margin:0;
    border:1px solid #4d6992;
    border-radius:10px;
    background:#1c3155;
    color:#f2f7ff;
    cursor:pointer;
    list-style:none;
    -webkit-tap-highlight-color:transparent;
  }
  .sidebar .mobile-nav>summary::-webkit-details-marker{display:none}
  .sidebar .mobile-nav>summary::marker{content:""}
  .sidebar .mobile-nav>summary:hover,
  .sidebar .mobile-nav[open]>summary{
    background:#245097;
    border-color:#608bd1;
  }
  .sidebar .mobile-nav>summary:focus-visible{
    outline:2px solid #a6c9ff;
    outline-offset:3px;
  }
  .sidebar .mobile-nav-bars{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    width:20px;
    height:20px;
  }
  .sidebar .mobile-nav-bars span{
    display:block;
    width:20px;
    height:2px;
    flex:none;
    border-radius:2px;
    background:currentColor;
  }
  .sidebar .mobile-nav[open] .mobile-nav-bars span:first-child{
    transform:translateY(6px) rotate(45deg);
  }
  .sidebar .mobile-nav[open] .mobile-nav-bars span:nth-child(2){opacity:0}
  .sidebar .mobile-nav[open] .mobile-nav-bars span:last-child{
    transform:translateY(-6px) rotate(-45deg);
  }
  .sidebar .mobile-nav .nav-content{
    position:absolute;
    top:52px;
    left:0;
    right:auto;
    width:min(304px,calc(100vw - 32px));
    padding:10px;
    border-radius:12px;
    border:1px solid #3a5377;
    background:#101d3d;
    box-shadow:0 14px 35px #07132770;
    z-index:31;
  }
  .sidebar .mobile-nav .nav-link{min-height:44px}
  .sidebar .mobile-nav .subnav{padding-left:42px}
}

/* 1221-1279px: allow a two-line counter caption in the narrowest 3-column
   layout instead of clipping the "Brak odpowiedzi" label. */
@media (min-width:1221px) and (max-width:1279px){
  .crm-action-panel-heading .crm-action-counter-label{
    white-space:normal;
    overflow-wrap:normal;
    line-height:1.2;
  }
}


/* SYNQ HUB overview / unified acquisition desktop card */
/* Hidden outside desktop: the approved phone/tablet layout is unchanged. */
.crm-sources-heading{display:none}
@media (min-width:1221px){
  .crm-board-grid .crm-board-center{
    background:#fff;
    border:1px solid #dce6f3;
    border-radius:14px;
    box-shadow:0 4px 16px #1324430a;
    padding:10px;
    gap:0;
    align-items:stretch;
    min-width:0;
  }
  .crm-board-center .crm-board-influx--center{
    width:100%;
    max-width:none;
    padding:0;
    margin:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  .crm-board-center .crm-influx-header{
    min-height:56px;
    margin-bottom:8px;
  }
  .crm-board-center .crm-board-influx--center .crm-period-card{
    min-height:72px;
    padding:7px 10px;
    gap:3px 8px;
  }
  .crm-board-grid .crm-board-tiles{
    width:100%;
    max-width:none;
    margin:8px 0 0;
    padding:9px 0 0;
    gap:8px;
    border-top:1px solid #dce6f3;
  }
  .crm-board-tiles .crm-sources-heading{
    display:block;
    grid-column:1/-1;
    margin:0 0 1px;
    font-size:12px;
    font-weight:800;
    line-height:1.15;
    letter-spacing:.05px;
    color:#273f60;
  }
  .crm-board-tiles a.crm-channel-card{
    height:79px;
    min-height:79px;
    aspect-ratio:auto;
    padding:9px 7px;
    justify-content:center;
    align-items:center;
    text-align:center;
    gap:8px;
  }
  .crm-board-tiles .crm-channel-card .source-pill{
    max-width:100%;
    padding:4px 6px;
    gap:5px;
    font-size:11px;
    line-height:1.15;
  }
  .crm-board-tiles .crm-channel-card .source-pill img{
    width:17px;
    height:17px;
  }
  .crm-board-tiles .crm-channel-card .crm-channel-result{
    margin:0;
    gap:6px;
  }
  .crm-board-tiles .crm-channel-card .crm-channel-result strong{
    font-size:30px;
    line-height:1;
  }
  .crm-board-tiles .crm-channel-card .crm-channel-result small{
    font-size:10px;
  }
  .hub-theme-dark .crm-board-grid .crm-board-center{
    background:#192841;
    border-color:#334861;
    box-shadow:0 4px 16px #050d1826;
  }
  .hub-theme-dark .crm-board-center .crm-board-influx--center{
    background:transparent;
    box-shadow:none;
    border:0;
  }
  .hub-theme-dark .crm-board-grid .crm-board-tiles{
    border-top-color:#334861;
  }
  .hub-theme-dark .crm-board-tiles .crm-sources-heading{
    color:#e6effc;
  }
}

/* Mobile: show the already existing acquisition-source heading above the
   approved 2 x 2 platform cards; do not rearrange the queues or influx. */
@media (max-width:760px){
  .crm-board-tiles .crm-sources-heading{
    display:block;
    grid-column:1/-1;
    margin:0;
    padding:0 1px 2px;
    width:100%;
    font-size:13px;
    line-height:1.35;
    font-weight:800;
    text-align:left;
    color:#273f60;
  }
  .hub-theme-dark .crm-board-tiles .crm-sources-heading{
    color:#e6effc;
  }
}


/* Mobile overview: keep acquisition periods and all four platform tiles
   inside one card, matching desktop. Only geometry changes; existing
   values, interactions, queue order, and approved source tile styling stay. */
@media (max-width:760px){
  .crm-board-grid .crm-board-center{
    width:min(100%,340px);
    margin:0 auto;
    padding:12px;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:0;
    background:#fff;
    border:1px solid #dce6f3;
    border-radius:13px;
    box-shadow:0 4px 16px #1324430a;
  }
  .crm-board-center .crm-board-influx--center{
    width:100%;
    max-width:none;
    margin:0;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  .crm-board-grid .crm-board-tiles{
    width:min(100%,310px);
    max-width:310px;
    margin:10px auto 0;
    padding:10px 0 0;
    border-top:1px solid #dce6f3;
    gap:7px;
  }
  .hub-theme-dark .crm-board-grid .crm-board-center{
    background:#192841;
    border-color:#334861;
    box-shadow:0 4px 16px #050d1826;
  }
  .hub-theme-dark .crm-board-center .crm-board-influx--center{
    background:transparent;
    border:0;
    box-shadow:none;
  }
  .hub-theme-dark .crm-board-grid .crm-board-tiles{
    border-top-color:#334861;
  }
}

/* ADS-UX-019: do not embed a scrollable fallback iframe before measurement. */
.ads019-preview-pending{border:1px solid #dce7f4;border-radius:13px;padding:30px 20px;margin:15px auto;max-width:920px;text-align:center;background:#fff;color:#536c8a;font-size:13px;line-height:1.6}


/* ADS-UX-020 theme sync: CSS only, same signed HUB preference.
   The iframe stays sandboxed, CSP-restricted and script-free. */
.mail-preview-content iframe{color-scheme:light}
.hub-theme-dark .mail-preview-content iframe{
  color-scheme:dark;
  background:#101b30;
}

/* HUB-UX-020/S: Kanban view of the existing leads; no second scroll area. */
.lead-list-head{flex-wrap:wrap}
.lead-view-head-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.lead-view-toggle{display:inline-flex;gap:3px;padding:4px;background:#eef3fa;border:1px solid #dce5f0;border-radius:11px}
.lead-view-option{display:inline-flex;align-items:center;justify-content:center;min-width:73px;min-height:34px;padding:7px 12px;text-decoration:none;color:#60728d;font-size:12px;font-weight:800;border-radius:8px}
.lead-view-option:hover{color:#1753b8}
.lead-view-option.is-active{background:#fff;color:#1753b8;box-shadow:0 2px 7px #14244314}
.kanban-hint,.kanban-limited-note{font-size:12px;line-height:1.5;color:#60728d;margin:0 0 14px}
.kanban-limited-note{padding:11px 13px;background:#fff9ec;border:1px solid #f4dfb7;color:#85601c;border-radius:9px}
.kanban-notice{margin:0 0 14px;padding:12px 14px;border:1px solid #bcdac5;border-radius:10px;color:#176b43;background:#edf8f1;font-size:12px;font-weight:700}
.kanban-notice.is-error{color:#b5293a;background:#fff0f2;border-color:#eec4cb}
.kanban-board{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;align-items:start;width:100%;min-width:0}
.kanban-column{min-width:0;padding:10px;border:1px solid #dfe7f2;border-top:3px solid #7ca8e9;border-radius:12px;background:#f6f8fc}
.kanban-column-contact{border-top-color:#7b92b1}
.kanban-column-appointment{border-top-color:#5176d9}
.kanban-column-customer{border-top-color:#45a083}
.kanban-column-no-response{border-top-color:#d6a259}
.kanban-column-lost{border-top-color:#c77b88}
.kanban-column.is-drop-target{border-color:#1753b8;background:#eaf2ff;box-shadow:inset 0 0 0 1px #1753b8}
.kanban-column-header{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:32px;margin-bottom:10px}
.kanban-column-title{font-size:12px;font-weight:800;color:#1c3458;line-height:1.3}
.kanban-column-count{min-width:25px;height:25px;display:grid;place-items:center;padding:0 6px;border-radius:18px;background:#e3ebf6;color:#345273;font-size:11px;font-weight:800}
.kanban-cards{display:flex;flex-direction:column;gap:9px;min-width:0;min-height:100px}
.kanban-card{min-width:0;background:#fff;border:1px solid #e0e7f1;border-radius:10px;padding:12px 11px;box-shadow:0 4px 10px #10294b0c;cursor:grab;transition:border-color .12s,box-shadow .12s}
.kanban-card:hover{border-color:#a6bcdf;box-shadow:0 5px 13px #10294b15}
.kanban-card:focus-within{outline:2px solid #739dec;outline-offset:2px}
.kanban-card.is-dragging{opacity:.47}
.kanban-card.is-saving{opacity:.7;cursor:progress}
.kanban-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;min-width:0}
.kanban-card-name{font-size:12px;line-height:1.45;color:#142b50;text-decoration:none;font-weight:800;overflow-wrap:anywhere}
.kanban-card-name:hover{text-decoration:underline;color:#1753b8}
.kanban-drag-indicator{color:#9aacc5;font-size:15px;line-height:1;user-select:none;letter-spacing:-4px;padding:0 5px 3px 0;flex-shrink:0}
.kanban-card-source{margin:9px 0 7px;overflow-wrap:anywhere}
.kanban-card-source .source-pill{white-space:normal;max-width:100%;font-size:10px}
.kanban-card-campaign{font-size:11px;color:#425673;line-height:1.4;margin:5px 0 7px;overflow-wrap:anywhere}
.kanban-card-campaign small{display:block;font-size:10px;color:#7486a1;margin-top:4px}
.kanban-card-date{display:block;font-size:10px;line-height:1.5;color:#7486a1;margin:6px 0 10px}
.kanban-status-label{display:block;color:#60728d;font-size:10px;font-weight:800;margin-top:9px;margin-bottom:5px}
.kanban-status-select{display:block;width:100%;min-width:0;height:35px;padding:5px 22px 5px 8px;border:1px solid #d9e3f0;border-radius:7px;background:#f8fbff;color:#172f54;font-size:11px;cursor:pointer}
.kanban-status-select:focus{outline:2px solid #1753b8;outline-offset:1px}
.kanban-column-empty{margin:14px 0;text-align:center;color:#91a0b5;font-size:11px;font-style:italic}
.kanban-column-empty[hidden],.kanban-notice[hidden]{display:none}
@media(max-width:1500px){.kanban-board{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:980px){.kanban-board{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .lead-view-head-actions{width:100%;justify-content:space-between}
  .lead-view-toggle{flex-shrink:0}
  .kanban-board{grid-template-columns:minmax(0,1fr);gap:14px}
  .kanban-column{padding:12px}
  .kanban-cards{min-height:68px}
  .kanban-card{cursor:default}
  .kanban-drag-indicator{display:none}
  .kanban-hint{font-size:11px}
}
.hub-theme-dark .lead-view-toggle{background:#243550;border-color:#39506f}
.hub-theme-dark .lead-view-option{color:#adbeda}
.hub-theme-dark .lead-view-option.is-active{background:#1a3962;color:#fff}
.hub-theme-dark .kanban-column{background:#182842;border-color:#3b4c64}
.hub-theme-dark .kanban-column.is-drop-target{background:#20416a;border-color:#73a6ff}
.hub-theme-dark .kanban-column-title,.hub-theme-dark .kanban-card-name{color:#e7f0ff}
.hub-theme-dark .kanban-column-count{background:#2d4260;color:#dceaff}
.hub-theme-dark .kanban-card{background:#22344e;border-color:#40526b}
.hub-theme-dark .kanban-card:hover{border-color:#7098cb}
.hub-theme-dark .kanban-card-campaign{color:#cfddf0}
.hub-theme-dark .kanban-status-label,.hub-theme-dark .kanban-card-date,.hub-theme-dark .kanban-hint{color:#b5c6df}
.hub-theme-dark .kanban-status-select{background:#162b47;border-color:#4b6080;color:#e8f2ff}
.hub-theme-dark .kanban-limited-note{background:#483a27;border-color:#786343;color:#f7d99f}
.hub-theme-dark .kanban-notice{background:#173f38;border-color:#398573;color:#bce7d5}
.hub-theme-dark .kanban-notice.is-error{background:#4a2634;border-color:#814455;color:#ffcad2}

/* HUB-UX-021/K-DESKTOP-STICKY: six aligned sticky headers, one page scroll.
   Never use a vertical scrolling sub-container for the board. */
.lead-list-surface--kanban{overflow:visible}
.kanban-board{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;align-items:stretch}
.kanban-column-header{
  position:sticky;
  top:12px;
  z-index:3;
  background:#f6f8fc;
  border:1px solid #dfe7f2;
  border-radius:9px;
  box-shadow:0 4px 10px #10294b12;
  padding:8px 6px;
  margin-bottom:10px;
}
.hub-theme-dark .kanban-column-header{
  background:#182842;
  border-color:#3b4c64;
  box-shadow:0 4px 10px #050d183d;
}
/* Six columns must remain a SINGLE row: otherwise all six headers
   cannot remain aligned and sticky at the same time. Compact laptop cards. */
@media (min-width:1221px) and (max-width:1500px){
  .kanban-board{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
  .kanban-column{padding:7px}
  .kanban-column-header{padding:7px 5px;gap:3px}
  .kanban-column-title{font-size:11px;overflow-wrap:anywhere}
  .kanban-column-count{min-width:22px;height:22px;padding:0 4px;font-size:10px}
  .kanban-card{padding:9px 7px}
  .kanban-drag-indicator{font-size:12px;padding:0 3px 2px 0}
}
/* Width-only desktop gate shared with lead-kanban.js (1220px cutoff). */
@media (max-width:1220px){
  .lead-view-option-kanban{display:none}
  .lead-list-surface--kanban .kanban-board,
  .lead-list-surface--kanban .kanban-hint,
  .lead-list-surface--kanban .kanban-notice{display:none}
}
