/* ContractNearMe — Contractor portal shell.
   Depends on admin.css for the design tokens (:root --cnm-*) and the shared
   .cnm-* component classes (cnm-card / cnm-btn / cnm-badge / cnm-avatar / cnm-mono / cnm-toast …).
   This file adds only the contractor portal's light sidebar shell, scoped under .cnm-cx. */

.cnm-cx { display: flex; min-height: 100vh; background: var(--cnm-slate-50); }

/* ── Sidebar (light) ───────────────────────────────────── */
.cnm-cx-sidebar { width: 244px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--cnm-slate-200); display: flex; flex-direction: column; height: 100vh; position: sticky; top: 0; overflow-y: auto; }
.cnm-cx-brand { display: flex; align-items: center; gap: 9px; padding: 18px 16px 14px; }
.cnm-cx-brand .sq { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--cnm-brand-500), var(--cnm-brand-700)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cnm-cx-brand .nm { font-weight: 700; font-size: 14px; letter-spacing: -.01em; line-height: 1.1; }
.cnm-cx-brand .sub { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--cnm-brand-600); text-transform: uppercase; }

.cnm-cx-nav { flex: 1; padding: 4px 10px 16px; }
.cnm-cx-nav .pinned { display: flex; flex-direction: column; gap: 2px; }
.cnm-cx-nav .grp { margin-top: 14px; }
.cnm-cx-nav .grp-lbl { padding: 0 10px 6px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cnm-slate-400); }

.cnm-cx-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--cnm-slate-700); position: relative; cursor: pointer; transition: background 120ms; }
.cnm-cx-link .ic { display: flex; color: var(--cnm-slate-500); }
.cnm-cx-link .lbl { flex: 1; }
.cnm-cx-link:hover { background: var(--cnm-slate-50); text-decoration: none; }
.cnm-cx-link.active { color: var(--cnm-brand-700); background: var(--cnm-brand-50); }
.cnm-cx-link.active .ic { color: var(--cnm-brand-600); }
.cnm-cx-link.active::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; background: var(--cnm-brand-600); border-radius: 0 3px 3px 0; }
.cnm-cx-link .bdg { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--cnm-emer-600); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cnm-cx-link.soon { color: var(--cnm-slate-400); cursor: default; }
.cnm-cx-link.soon .ic { color: var(--cnm-slate-300); }
.cnm-cx-link.soon:hover { background: transparent; }
.cnm-cx-link .soon-tag { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cnm-slate-300); border: 1px solid var(--cnm-slate-200); border-radius: 5px; padding: 1px 4px; }

.cnm-cx-acct { display: flex; align-items: center; gap: 10px; margin: 10px; padding: 8px; border-radius: 10px; background: var(--cnm-slate-50); }
.cnm-cx-acct:hover { background: var(--cnm-slate-100); text-decoration: none; }
.cnm-cx-acct .meta { flex: 1; min-width: 0; }
.cnm-cx-acct .meta .nm { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cnm-cx-acct .meta .st { font-size: 11px; color: var(--cnm-trust-700); display: flex; align-items: center; gap: 4px; }
.cnm-cx-acct .meta .st .bdot { width: 6px; height: 6px; border-radius: 50%; background: var(--cnm-trust-500); }
/* V3 shared-shell: account chip → upward menu (chip was a bare link with no log out). */
.cnm-cx-acctwrap { position: relative; margin: 10px; }
.cnm-cx-acctwrap > .cnm-cx-acct { margin: 0; width: 100%; border: none; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.cnm-cx-acctmenu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: #fff; border: 1px solid var(--cnm-slate-200); border-radius: 12px; box-shadow: 0 12px 32px rgba(2,6,23,.16); padding: 6px; display: none; z-index: 60; }
.cnm-cx-acctwrap.open .cnm-cx-acctmenu { display: block; }
.cnm-cx-acctmenu a, .cnm-cx-acctmenu .out { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--cnm-slate-700); background: none; border: none; cursor: pointer; text-align: left; }
.cnm-cx-acctmenu a:hover, .cnm-cx-acctmenu .out:hover { background: var(--cnm-slate-50); text-decoration: none; }
.cnm-cx-acctmenu .out { color: var(--cnm-emer-600); }
.cnm-cx-acctmenu .sep { height: 1px; background: var(--cnm-slate-200); margin: 5px 4px; }
.cnm-cx-acctmenu form { margin: 0; }

/* ── Main / topbar ─────────────────────────────────────── */
.cnm-cx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cnm-cx-topbar { padding: 18px 28px; border-bottom: 1px solid var(--cnm-slate-200); background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 10; }
.cnm-cx-topbar h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.cnm-cx-topbar .sub { font-size: 13px; color: var(--cnm-slate-500); margin-top: 2px; }
.cnm-cx-page { padding: 28px; }

/* ── Notification bell ─────────────────────────────────── */
.cnm-cx-bell { position: relative; }
.cnm-cx-bell .btn { width: 36px; height: 36px; border-radius: 8px; border: 0; background: var(--cnm-slate-100); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cnm-cx-bell .btn:hover { background: var(--cnm-brand-50); }
.cnm-cx-bell .menu { display: none; position: absolute; top: 46px; right: 0; width: 320px; background: #fff; border: 1px solid var(--cnm-slate-200); border-radius: 14px; box-shadow: var(--cnm-shadow-modal); z-index: 50; overflow: hidden; }
.cnm-cx-bell .menu .hd { font-size: 15px; font-weight: 700; padding: 14px 18px; border-bottom: 1px solid var(--cnm-slate-100); }
.cnm-cx-bell .menu .empty { padding: 28px; text-align: center; color: var(--cnm-slate-400); font-size: 13px; }
.cnm-cx-bell .menu .ft { padding: 12px 18px; text-align: center; font-size: 11.5px; color: var(--cnm-slate-400); display: flex; align-items: center; justify-content: center; gap: 6px; border-top: 1px solid var(--cnm-slate-100); }
.cnm-cx-bell .menu .ft .bdot { width: 6px; height: 6px; border-radius: 50%; background: var(--cnm-trust-500); }

/* ── Leads inbox (master / detail) ─────────────────────── */
.lead-inbox { display: grid; grid-template-columns: 372px 1fr; background: #fff; border: 1px solid var(--cnm-slate-200); border-radius: 14px; overflow: hidden; height: calc(100vh - 150px); min-height: 540px; box-shadow: var(--cnm-shadow-card); }
.lead-inbox .ld-list { border-right: 1px solid var(--cnm-slate-200); overflow-y: auto; }
.lead-inbox .ld-item { padding: 16px 20px 16px 17px; border-bottom: 1px solid var(--cnm-slate-100); border-left: 3px solid var(--cnm-trust-500); cursor: pointer; transition: background 120ms; }
.lead-inbox .ld-item:hover { background: var(--cnm-slate-50); }
.lead-inbox .ld-item.is-active { background: var(--cnm-brand-50); border-left-color: var(--cnm-brand-600); }
.lead-inbox .ld-item:focus-visible { outline: 2px solid var(--cnm-brand-500); outline-offset: -2px; }
.lead-inbox .ld-detailwrap { overflow-y: auto; background: var(--cnm-slate-50); padding: 28px; }
.lead-inbox .ld-detail { max-width: 720px; }
.lead-inbox .ld-detail[hidden] { display: none; }

/* ── Virtual Terminal ──────────────────────────────────── */
.vt-page .vt-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; max-width: 900px; }
.vt-page .vt-field { margin-bottom: 16px; }
.vt-page .vt-label { display: block; font-size: 13px; font-weight: 600; color: var(--cnm-slate-700); margin-bottom: 6px; }
.vt-page .vt-label .req { color: var(--cnm-emer-600); }
.vt-page .vt-amount { display: flex; align-items: center; height: 56px; padding: 0 16px; background: #fff; border: 2px solid var(--cnm-slate-300); border-radius: 12px; }
.vt-page .vt-amount .cur { font-size: 28px; font-weight: 700; color: var(--cnm-slate-400); }
.vt-page .vt-amount input { flex: 1; border: 0; outline: none; font-size: 28px; font-weight: 700; margin-left: 6px; width: 100%; font-family: var(--cnm-font-mono); font-variant-numeric: tabular-nums; background: transparent; }
.vt-page .vt-input { display: flex; align-items: center; height: 46px; padding: 0 14px; background: #fff; border: 1px solid var(--cnm-slate-300); border-radius: 10px; font-size: 14px; width: 100%; outline: none; color: inherit; }
.vt-page input.vt-input:focus { border-color: var(--cnm-brand-500); box-shadow: 0 0 0 3px var(--cnm-brand-100); }
.vt-page .vt-cjs { padding: 0 10px; } /* Collect.js mounts a hosted iframe inside */
.vt-page .vt-cjs iframe { width: 100%; height: 44px; border: 0; }
.vt-page .vt-check { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--cnm-slate-700); cursor: pointer; }
.vt-page .vt-check input { accent-color: var(--cnm-brand-600); width: 16px; height: 16px; }
.vt-page .vt-simnote { display: flex; gap: 8px; margin-top: 14px; padding: 10px 12px; background: var(--cnm-brand-50); border: 1px solid var(--cnm-brand-100); border-radius: 9px; font-size: 12px; color: var(--cnm-slate-600); line-height: 1.5; }
.vt-page .vt-summary-wrap { position: sticky; top: 92px; }
.vt-page .vt-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; color: var(--cnm-slate-600); }
.vt-page .vt-declined { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--cnm-emer-50); border: 1px solid var(--cnm-emer-200); display: flex; gap: 10px; font-size: 12.5px; color: var(--cnm-emer-700); line-height: 1.5; }
.vt-page .vt-pci { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: var(--cnm-slate-500); }

/* ── Dashboard ─────────────────────────────────────────── */
.dash-page .dash-kpi { display: block; padding: 18px; }
.dash-page a.dash-kpi.link { cursor: pointer; transition: box-shadow 150ms, transform 150ms; }
.dash-page a.dash-kpi.link:hover { box-shadow: var(--cnm-shadow-modal); text-decoration: none; transform: translateY(-1px); }
.dash-page .dash-kpi-ic { width: 32px; height: 32px; border-radius: 8px; background: var(--cnm-brand-50); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── CRM kanban ────────────────────────────────────────── */
.crm-page .crm-board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.crm-page .crm-col { width: 270px; flex-shrink: 0; display: flex; flex-direction: column; }
.crm-page .crm-col-hd { display: flex; align-items: center; gap: 8px; padding: 0 4px 12px; }
.crm-page .crm-col-hd .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.crm-page .crm-cards { display: flex; flex-direction: column; gap: 8px; }
.crm-page .crm-card { background: #fff; border: 1px solid var(--cnm-slate-200); border-radius: 10px; padding: 12px; box-shadow: var(--cnm-shadow-card); }
.crm-page .crm-move { width: 100%; height: 28px; border-radius: 6px; border: 0; background: var(--cnm-slate-100); color: var(--cnm-slate-700); font-size: 11px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 8px; }
.crm-page .crm-move:hover { background: var(--cnm-slate-200); }
.crm-page .crm-empty { padding: 20px 12px; text-align: center; color: var(--cnm-slate-400); font-size: 12px; border: 1px dashed var(--cnm-slate-300); border-radius: 8px; }

/* ── Discount codes ────────────────────────────────────── */
.dc-page .dc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dc-page .dc-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--cnm-brand-50); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dc-page .dc-switch { width: 42px; height: 24px; border-radius: 12px; border: 0; position: relative; cursor: pointer; flex-shrink: 0; padding: 0; transition: background 200ms; }
.dc-page .dc-switch .knob { position: absolute; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); transition: left 200ms; }
.dc-page .dc-switch.on { background: var(--cnm-trust-500); } .dc-page .dc-switch.on .knob { left: 21px; }
.dc-page .dc-switch.off { background: var(--cnm-slate-300); } .dc-page .dc-switch.off .knob { left: 3px; }
.dc-page .dc-bar { height: 5px; border-radius: 3px; background: var(--cnm-slate-100); overflow: hidden; }

/* ── Pay Links ─────────────────────────────────────────── */
.pl-page .pl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pl-page .pl-url { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--cnm-slate-50); border: 1px solid var(--cnm-slate-200); border-radius: 8px; margin-bottom: 12px; }
.pl-page .pl-url .u { flex: 1; font-size: 12.5px; font-family: var(--cnm-font-mono); color: var(--cnm-slate-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-page .pl-url .cp { border: 0; background: transparent; cursor: pointer; color: var(--cnm-brand-600); display: flex; padding: 2px; }

/* ── Invoice builder ───────────────────────────────────── */
.inv-page .inv-line { display: grid; grid-template-columns: 1fr 70px 110px 32px; gap: 8px; align-items: center; margin-bottom: 8px; }
.inv-page .inv-line.head { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cnm-slate-500); margin-bottom: 8px; }
.inv-page .inv-line input { height: 38px; padding: 0 10px; border: 1px solid var(--cnm-slate-200); border-radius: 8px; font-size: 13px; outline: none; background: #fff; color: inherit; }
.inv-page .inv-line input:focus { border-color: var(--cnm-brand-500); }
.inv-page .inv-line .il-qty { text-align: center; }
.inv-page .inv-line .il-price { text-align: right; }
.inv-page .inv-line .il-rm { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.inv-page .inv-line .il-rm:hover { background: var(--cnm-emer-50); }
.inv-page .vt-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--cnm-slate-700); cursor: pointer; }
.inv-page .vt-check input { accent-color: var(--cnm-brand-600); width: 16px; height: 16px; }

/* ── Support tickets (master / detail) ─────────────────── */
.tkt-page .tkt-inbox { display: grid; grid-template-columns: 340px 1fr; background: #fff; border: 1px solid var(--cnm-slate-200); border-radius: 14px; overflow: hidden; height: calc(100vh - 150px); min-height: 540px; box-shadow: var(--cnm-shadow-card); }
.tkt-page .tkt-list { border-right: 1px solid var(--cnm-slate-200); overflow-y: auto; }
.tkt-page .tkt-item { display: block; padding: 16px 20px 16px 17px; border-bottom: 1px solid var(--cnm-slate-100); border-left: 3px solid transparent; cursor: pointer; }
.tkt-page .tkt-item:hover { background: var(--cnm-slate-50); text-decoration: none; }
.tkt-page .tkt-item.is-active { background: var(--cnm-brand-50); border-left-color: var(--cnm-brand-600); }
.tkt-page .tkt-thread { overflow-y: auto; padding: 28px; background: var(--cnm-slate-50); }
.tkt-page .tkt-bubble { max-width: 460px; padding: 12px 16px; font-size: 13.5px; line-height: 1.55; }
.tkt-page .tkt-bubble.them { border-radius: 12px 12px 12px 4px; background: #fff; color: var(--cnm-slate-800); border: 1px solid var(--cnm-slate-200); }
.tkt-page .tkt-bubble.me { border-radius: 12px 12px 4px 12px; background: var(--cnm-brand-600); color: #fff; }
.tkt-page .tkt-reply textarea { width: 100%; min-height: 70px; border: 1px solid var(--cnm-slate-200); border-radius: 10px; padding: 12px; font-size: 13.5px; font-family: inherit; outline: none; resize: none; line-height: 1.5; box-sizing: border-box; }
.tkt-page .tkt-reply textarea:focus { border-color: var(--cnm-brand-500); }

/* New-ticket modal (scoped under .tkt-page; explicit display props so nothing inherits a framework .modal) */
.tkt-page .tkt-modal { display: none; position: fixed; inset: 0; z-index: 200; align-items: flex-start; justify-content: center; background: rgba(15, 23, 42, .5); padding: 7vh 16px 16px; }
.tkt-page .tkt-modal.is-open { display: flex; }
.tkt-page .tkt-modal-card { background: #fff; width: 100%; max-width: 520px; border-radius: 16px; box-shadow: var(--cnm-shadow-modal); overflow: hidden; }
.tkt-page .tkt-modal-head { display: flex; align-items: center; gap: 10px; padding: 17px 20px; border-bottom: 1px solid var(--cnm-slate-200); }
.tkt-page .tkt-modal-head h2 { margin: 0; font-size: 16px; font-weight: 700; flex: 1; color: var(--cnm-slate-900); }
.tkt-page .tkt-modal-x { background: none; border: none; cursor: pointer; padding: 4px; border-radius: 8px; line-height: 0; }
.tkt-page .tkt-modal-x:hover { background: var(--cnm-slate-100); }
.tkt-page .tkt-modal-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.tkt-page .tkt-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--cnm-slate-700); margin-bottom: 5px; }
.tkt-page .tkt-field input, .tkt-page .tkt-field select, .tkt-page .tkt-field textarea { width: 100%; border: 1px solid var(--cnm-slate-200); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; font-family: inherit; color: var(--cnm-slate-900); background: #fff; outline: none; box-sizing: border-box; }
.tkt-page .tkt-field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.tkt-page .tkt-field input:focus, .tkt-page .tkt-field select:focus, .tkt-page .tkt-field textarea:focus { border-color: var(--cnm-brand-500); box-shadow: 0 0 0 3px var(--cnm-brand-50); }
.tkt-page .tkt-field .err { color: var(--cnm-emer-600); font-size: 11.5px; margin-top: 5px; }
.tkt-page .tkt-modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--cnm-slate-200); background: var(--cnm-slate-50); }

/* ── Taxes & Sync ──────────────────────────────────────── */
.tax-page { max-width: 880px; }
.tax-page .tax-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--cnm-slate-100); }
.tax-page .tax-row .ico { width: 36px; height: 36px; border-radius: 9px; background: var(--cnm-brand-50); color: var(--cnm-brand-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tax-page .tax-row .ico.muted { background: var(--cnm-slate-100); }
.tax-page .tax-row .acct-logo { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; font-weight: 800; flex-shrink: 0; }
.tax-page .tax-row .doc { font-size: 14px; font-weight: 600; color: var(--cnm-slate-900); }
.tax-page .tax-row .desc { font-size: 12px; color: var(--cnm-slate-500); margin-top: 1px; }
.tax-page .tax-empty { padding: 22px 14px; text-align: center; font-size: 13px; color: var(--cnm-slate-500); background: var(--cnm-slate-50); border: 1px dashed var(--cnm-slate-200); border-radius: 12px; margin-top: 8px; }

/* ── Transactions (filter bar) ─────────────────────────── */
.tx-page .tx-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--cnm-slate-100); }
.tx-page .tx-tab { padding: 6px 12px; border-radius: 8px; border: 0; background: transparent; color: var(--cnm-slate-600); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.tx-page .tx-tab:hover { background: var(--cnm-slate-50); }
.tx-page .tx-tab.is-active { background: var(--cnm-slate-900); color: #fff; }
.tx-page .tx-search { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; background: var(--cnm-slate-50); border: 1px solid var(--cnm-slate-200); border-radius: 8px; width: 240px; }
.tx-page .tx-search input { flex: 1; border: 0; outline: none; font-size: 13px; background: transparent; color: inherit; }

/* ── Schedule (week calendar + crew dispatch) ──────────── */
.sch-page .sch-legend { display: flex; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.sch-page .sch-legend .it { display: flex; align-items: center; gap: 8px; }
.sch-page .sch-legend .sq { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.sch-page .sch-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.sch-page .sch-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.sch-page .sch-col { border-right: 1px solid var(--cnm-slate-100); min-height: 360px; }
.sch-page .sch-col:last-child { border-right: 0; }
.sch-page .sch-col-hd { padding: 12px 10px 10px; border-bottom: 1px solid var(--cnm-slate-100); text-align: center; background: #fff; }
.sch-page .sch-col.today .sch-col-hd { background: var(--cnm-brand-50); }
.sch-page .sch-dow { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cnm-slate-500); }
.sch-page .sch-col.today .sch-dow { color: var(--cnm-brand-700); }
.sch-page .sch-dnum { font-size: 18px; font-weight: 800; color: var(--cnm-slate-900); line-height: 1.2; }
.sch-page .sch-col.today .sch-dnum { color: var(--cnm-brand-700); }
.sch-page .sch-cells { padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.sch-page .sch-appt { border-radius: 9px; border: 1px solid var(--cnm-slate-200); padding: 8px 9px; background: #fff; }
.sch-page .sch-t { font-size: 10.5px; font-weight: 700; color: var(--cnm-slate-500); font-family: var(--cnm-font-mono); }
.sch-page .sch-job { font-size: 12px; font-weight: 600; line-height: 1.3; margin: 2px 0 3px; }
.sch-page .sch-who { font-size: 10.5px; color: var(--cnm-slate-500); margin-bottom: 6px; }
.sch-page .sch-crew { width: 100%; height: 26px; padding: 0 6px; border: 1px solid var(--cnm-slate-200); border-radius: 6px; font-size: 11px; background: #fff; cursor: pointer; font-family: inherit; font-weight: 600; color: inherit; }
.sch-page .sch-empty { padding: 18px 6px; text-align: center; font-size: 11px; color: var(--cnm-slate-300); }
.sch-page .sch-new { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.sch-page .sch-new .cx-field { margin: 0; }
.sch-page .sch-new select, .sch-page .sch-new input[type=time] { height: 42px; padding: 0 10px; border: 1px solid var(--cnm-slate-300); border-radius: 9px; font-size: 14px; background: #fff; color: inherit; font-family: inherit; }

/* ── Unified inbox (filter + master/detail) ────────────── */
.inbox-page .inbox-shell { overflow: hidden; }
.inbox-page .ibx-filters { display: flex; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--cnm-slate-200); flex-wrap: wrap; align-items: center; }
.inbox-page .ibx-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 9999px; border: 0; cursor: pointer; background: var(--cnm-slate-100); color: var(--cnm-slate-600); font-size: 12.5px; font-weight: 600; }
.inbox-page .ibx-pill:hover { background: var(--cnm-slate-200); }
.inbox-page .ibx-pill.is-active { background: var(--cnm-slate-900); color: #fff; }
.inbox-page .ibx-pill .dot { width: 7px; height: 7px; border-radius: 50%; }
.inbox-page .ibx-pill .ct { opacity: .6; }
.inbox-page .ibx-grid { display: grid; grid-template-columns: 400px 1fr; height: calc(100vh - 232px); min-height: 460px; }
.inbox-page .ibx-list { border-right: 1px solid var(--cnm-slate-200); overflow-y: auto; }
.inbox-page .ibx-item { display: flex; gap: 12px; padding: 14px 18px 14px 15px; border-bottom: 1px solid var(--cnm-slate-100); border-left: 3px solid transparent; cursor: pointer; }
.inbox-page .ibx-item:hover { background: var(--cnm-slate-50); }
.inbox-page .ibx-item.is-active { background: var(--cnm-brand-50); border-left-color: var(--cnm-brand-600); }
.inbox-page .ibx-item:focus-visible { outline: 2px solid var(--cnm-brand-500); outline-offset: -2px; }
.inbox-page .ibx-badge { position: absolute; bottom: -3px; right: -3px; width: 18px; height: 18px; border-radius: 5px; color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.inbox-page .ibx-detailwrap { overflow-y: auto; background: var(--cnm-slate-50); padding: 28px; }
.inbox-page .ibx-empty { padding: 32px; text-align: center; font-size: 13px; color: var(--cnm-slate-500); }

/* ── Branding (editor + live pay-page preview) ─────────── */
.brand-page .bp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.brand-page .swatches { display: flex; gap: 8px; }
.brand-page .swatch { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--cnm-slate-200); cursor: pointer; padding: 0; }
.brand-page .swatch.is-sel { border: 3px solid var(--cnm-slate-900); }
.brand-page .dropzone { padding: 20px; border: 2px dashed var(--cnm-slate-300); border-radius: 10px; text-align: center; background: var(--cnm-slate-50); cursor: default; }
.brand-page .preview-wrap { position: sticky; top: 92px; }
.brand-page .pay-card { border-radius: 14px; overflow: hidden; border: 1px solid var(--cnm-slate-200); box-shadow: var(--cnm-shadow-card); }
.brand-page .pay-bar { height: 8px; }
.brand-page .pay-body { padding: 24px; background: #fff; }
.brand-page .pay-logo { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; flex-shrink: 0; }
.brand-page .pay-fakeinput { height: 44px; border-radius: 9px; border: 1px solid var(--cnm-slate-300); display: flex; align-items: center; padding: 0 14px; font-size: 13px; color: var(--cnm-slate-400); }
.brand-page .pay-btn { height: 48px; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
@media (max-width: 900px) { .brand-page .bp-grid { grid-template-columns: 1fr; } }

/* ── Processing fees (surcharge toggle) ────────────────── */
.pf-page .pf-toggle { display: inline-block; cursor: pointer; flex-shrink: 0; }
.pf-page .pf-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.pf-page .pf-toggle .track { display: block; position: relative; width: 48px; height: 28px; border-radius: 14px; background: var(--cnm-slate-300); transition: background 200ms; }
.pf-page .pf-toggle .knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.2); transition: left 200ms; }
.pf-page .pf-toggle input:checked + .track { background: var(--cnm-brand-600); }
.pf-page .pf-toggle input:checked + .track .knob { left: 23px; }

/* contractor form helpers (reused on settings) */
.cx-field { margin-bottom: 14px; }
.cx-field > .l { font-size: 13px; font-weight: 600; color: var(--cnm-slate-700); margin-bottom: 6px; }
.cx-input { display: flex; align-items: center; height: 42px; padding: 0 12px; background: #fff; border: 1px solid var(--cnm-slate-300); border-radius: 9px; }
.cx-input input { flex: 1; border: 0; outline: none; font-size: 14px; background: transparent; width: 100%; color: inherit; }
.cx-input.ro { background: var(--cnm-slate-50); }
/* Textarea-in-field: the base .cx-input is a fixed 42px single-line row; a textarea
   needs the box to grow and top-align, or it clips with no top padding + an
   overlapping resize handle. One :has() rule fixes every textarea-in-field. */
.cx-input:has(textarea) { height: auto; align-items: stretch; padding: 10px 12px; }
.cx-input textarea { flex: 1; width: 100%; border: 0; outline: none; font: inherit; font-size: 14px; line-height: 1.5; background: transparent; color: inherit; resize: vertical; display: block; }
.cx-field .hint { font-size: 11px; color: var(--cnm-slate-500); margin-top: 4px; }

/* ── Contractor registration funnel (K1): onboard shell + landing + wizard ── */

.cnm-btn.lg { height: 46px; padding: 0 22px; font-size: 15px; }

/* Light marketing shell */
.cnm-ob { min-height: 100vh; background: var(--cnm-slate-50); font-family: var(--cnm-font-sans); color: var(--cnm-slate-900); margin: 0; }
.cnm-ob .ob-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--cnm-slate-200); }
.cnm-ob .ob-header-in { max-width: 1000px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 14px; }
.cnm-ob .ob-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.cnm-ob .ob-brand .sq { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--cnm-brand-500), var(--cnm-brand-700)); display: flex; align-items: center; justify-content: center; }
.cnm-ob .ob-brand .nm { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.cnm-ob .ob-brand .for { font-size: 12px; font-weight: 700; color: var(--cnm-brand-600); background: var(--cnm-brand-50); padding: 2px 8px; border-radius: 999px; }
.cnm-ob .ob-login { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--cnm-slate-700); text-decoration: none; }
.cnm-ob .ob-login:hover { color: var(--cnm-brand-700); }
.cnm-ob .ob-main { max-width: 1000px; margin: 0 auto; padding: 32px 20px 56px; }

/* Landing */
.cnm-forpros .fp-hero { text-align: center; padding: 24px 0 36px; }
.cnm-forpros .fp-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--cnm-brand-700); background: var(--cnm-brand-50); border: 1px solid var(--cnm-brand-100); padding: 5px 12px; border-radius: 999px; }
.cnm-forpros .fp-hero h1 { font-size: 42px; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 16px 0 0; }
.cnm-forpros .fp-hero p { font-size: 16.5px; color: var(--cnm-slate-600); max-width: 580px; margin: 14px auto 0; line-height: 1.55; }
.cnm-forpros .fp-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; }
.cnm-forpros .fp-signin { font-size: 13.5px; font-weight: 600; color: var(--cnm-brand-700); text-decoration: none; }
.cnm-forpros .fp-sec-h { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cnm-slate-400); margin: 0 0 14px; }
.cnm-forpros .fp-how { margin-top: 18px; }
.cnm-forpros .fp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cnm-forpros .fp-step { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--cnm-slate-200); border-radius: 14px; padding: 18px; }
.cnm-forpros .fp-num { width: 28px; height: 28px; border-radius: 999px; background: var(--cnm-brand-600); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cnm-forpros .fp-step-t { font-size: 14.5px; font-weight: 700; }
.cnm-forpros .fp-step-d { font-size: 12.5px; color: var(--cnm-slate-500); line-height: 1.5; margin-top: 3px; }
.cnm-forpros .fp-plans { margin-top: 32px; }
.cnm-forpros .fp-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cnm-forpros .fp-plan { position: relative; background: #fff; border: 1px solid var(--cnm-slate-200); border-radius: 16px; padding: 22px; }
.cnm-forpros .fp-plan.best { border: 2px solid var(--cnm-brand-600); box-shadow: 0 0 0 4px var(--cnm-brand-50); }
.cnm-forpros .fp-plan-badge { position: absolute; top: -10px; left: 22px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--cnm-brand-600); padding: 3px 10px; border-radius: 999px; }
.cnm-forpros .fp-plan-name { font-size: 16px; font-weight: 800; }
.cnm-forpros .fp-plan-price { margin: 6px 0 2px; }
.cnm-forpros .fp-plan-price .amt { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.cnm-forpros .fp-plan-price .per { font-size: 13px; color: var(--cnm-slate-500); }
.cnm-forpros .fp-plan-blurb { font-size: 12.5px; color: var(--cnm-slate-600); line-height: 1.5; margin-top: 6px; }
.cnm-forpros .fp-fine { font-size: 12px; color: var(--cnm-slate-500); text-align: center; margin-top: 16px; line-height: 1.5; }

/* Registration wizard */
.cnm-creg { max-width: 460px; margin: 0 auto; }
.cnm-creg .creg-card { background: #fff; border: 1px solid var(--cnm-slate-200); border-radius: 18px; padding: 26px; box-shadow: var(--cnm-shadow-card); }
.cnm-creg .creg-progress { margin-bottom: 18px; }
.cnm-creg .creg-step-lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--cnm-slate-500); margin-bottom: 8px; }
.cnm-creg .creg-bar { height: 6px; border-radius: 999px; background: var(--cnm-slate-100); overflow: hidden; }
.cnm-creg .creg-fill { height: 100%; background: var(--cnm-brand-600); transition: width .3s; }
.cnm-creg .creg-h { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.2; }
.cnm-creg .creg-sub { font-size: 13.5px; color: var(--cnm-slate-600); line-height: 1.5; margin: 7px 0 16px; }
.cnm-creg .creg-lbl { display: block; font-size: 13px; font-weight: 600; color: var(--cnm-slate-700); margin: 14px 0 6px; }
.cnm-creg .creg-input { width: 100%; height: 44px; padding: 0 13px; border: 1.5px solid var(--cnm-slate-300); border-radius: 10px; font-size: 14.5px; background: #fff; outline: none; color: inherit; font-family: inherit; }
.cnm-creg select.creg-input { padding-right: 8px; }
.cnm-creg .creg-input:focus { border-color: var(--cnm-brand-500); box-shadow: 0 0 0 3px var(--cnm-brand-100); }
.cnm-creg .creg-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cnm-creg .creg-err { font-size: 12.5px; font-weight: 600; color: var(--cnm-emer-600); margin-top: 6px; }
.cnm-creg .creg-code { width: 100%; max-width: 260px; height: 58px; margin: 4px auto 0; display: block; text-align: center; font-family: var(--cnm-font-mono); font-size: 26px; font-weight: 800; letter-spacing: 10px; padding-left: 10px; border: 2px solid var(--cnm-slate-300); border-radius: 12px; outline: none; background: #fff; color: inherit; }
.cnm-creg .creg-code:focus { border-color: var(--cnm-brand-500); }
.cnm-creg .creg-dev { margin: 14px auto 0; max-width: 320px; font-size: 12px; color: var(--cnm-warn-700); background: var(--cnm-warn-50); border: 1px solid var(--cnm-warn-200); border-radius: 9px; padding: 9px 12px; text-align: center; }
.cnm-creg .creg-resend { margin-top: 14px; text-align: center; }
.cnm-creg .creg-resend button { background: none; border: 0; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--cnm-brand-700); }
.cnm-creg .creg-foot { text-align: center; font-size: 13px; color: var(--cnm-slate-500); margin-top: 16px; }
.cnm-creg .creg-foot a { color: var(--cnm-brand-700); font-weight: 600; text-decoration: none; }

/* Plan radio cards */
.cnm-creg .creg-plans { display: flex; flex-direction: column; gap: 10px; }
.cnm-creg .creg-plan { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1.5px solid var(--cnm-slate-200); border-radius: 13px; cursor: pointer; }
.cnm-creg .creg-plan:has(input:checked) { border: 2px solid var(--cnm-brand-600); background: var(--cnm-brand-50); }
.cnm-creg .creg-plan input { position: absolute; opacity: 0; width: 0; height: 0; }
.cnm-creg .creg-plan-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--cnm-slate-300); flex-shrink: 0; margin-top: 1px; }
.cnm-creg .creg-plan input:checked ~ .creg-plan-dot { border: 5.5px solid var(--cnm-brand-600); }
.cnm-creg .creg-plan-body { flex: 1; }
.cnm-creg .creg-plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cnm-creg .creg-plan-name { font-size: 14.5px; font-weight: 800; }
.cnm-creg .creg-plan-price { font-size: 13px; font-weight: 700; color: var(--cnm-brand-700); }
.cnm-creg .creg-plan-blurb { font-size: 12px; color: var(--cnm-slate-500); line-height: 1.45; margin-top: 3px; }

/* Confirmation */
.cnm-creg .creg-done { text-align: center; }
.cnm-creg .creg-done-ic { width: 60px; height: 60px; border-radius: 16px; background: var(--cnm-trust-50); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.cnm-creg .creg-done .creg-sub { margin: 8px 0 0; }
.cnm-creg .creg-done-meta { text-align: left; margin: 18px 0 0; border: 1px solid var(--cnm-slate-200); border-radius: 12px; overflow: hidden; }
.cnm-creg .creg-done-meta > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--cnm-slate-100); }
.cnm-creg .creg-done-meta > div:last-child { border-bottom: 0; }
.cnm-creg .creg-done-meta .k { font-size: 12.5px; color: var(--cnm-slate-500); }
.cnm-creg .creg-done-meta .v { font-size: 13.5px; font-weight: 700; }
.cnm-creg .creg-done-next { display: flex; gap: 8px; align-items: flex-start; text-align: left; margin-top: 14px; padding: 12px 14px; border-radius: 11px; background: var(--cnm-brand-50); font-size: 12.5px; color: var(--cnm-brand-700); line-height: 1.5; }

@media (max-width: 760px) {
    .cnm-forpros .fp-steps, .cnm-forpros .fp-plan-grid { grid-template-columns: 1fr; }
    .cnm-forpros .fp-hero h1 { font-size: 32px; }
}

/* ── Contractor onboarding wizard (K2) ─────────────────────────────────── */

.cnm-obz { min-height: 100vh; background: var(--cnm-slate-50); font-family: var(--cnm-font-sans); color: var(--cnm-slate-900); margin: 0; }
.cnm-obz .obz { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }

/* Sidebar */
.cnm-obz .obz-side { background: #fff; border-right: 1px solid var(--cnm-slate-200); padding: 26px 22px; display: flex; flex-direction: column; }
.cnm-obz .obz-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-bottom: 26px; }
.cnm-obz .obz-brand .sq { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--cnm-brand-500), var(--cnm-brand-700)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cnm-obz .obz-brand-t { font-size: 12px; color: var(--cnm-slate-500); line-height: 1.3; }
.cnm-obz .obz-brand-t strong { font-size: 14px; color: var(--cnm-slate-900); }
.cnm-obz .obz-stepn { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cnm-slate-500); margin-bottom: 10px; }
.cnm-obz .obz-bar { height: 6px; border-radius: 999px; background: var(--cnm-slate-100); overflow: hidden; margin-bottom: 20px; }
.cnm-obz .obz-fill { height: 100%; background: var(--cnm-brand-600); transition: width .3s; }
.cnm-obz .obz-steps { display: flex; flex-direction: column; gap: 2px; }
.cnm-obz .obz-step { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 7px; text-decoration: none; color: var(--cnm-slate-700); font-size: 13px; font-weight: 500; }
.cnm-obz .obz-step:hover { background: var(--cnm-slate-50); }
.cnm-obz .obz-step.cur { background: var(--cnm-brand-50); color: var(--cnm-brand-700); font-weight: 600; }
.cnm-obz .obz-step.done { color: var(--cnm-slate-500); }
.cnm-obz .obz-node { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: #fff; border: 1.5px solid var(--cnm-slate-300); color: var(--cnm-slate-400); }
.cnm-obz .obz-step.cur .obz-node { background: var(--cnm-brand-600); border-color: var(--cnm-brand-600); color: #fff; }
.cnm-obz .obz-step.done .obz-node { background: var(--cnm-trust-500); border-color: var(--cnm-trust-500); color: #fff; }
.cnm-obz .obz-exit { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--cnm-slate-500); text-decoration: none; padding-top: 18px; }
.cnm-obz .obz-exit:hover { color: var(--cnm-brand-700); }

/* Main */
.cnm-obz .obz-main { padding: 48px 56px; overflow-y: auto; }
.cnm-obz .obz-page { max-width: 640px; }
.cnm-obz .obz-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cnm-brand-600); margin-bottom: 8px; }
.cnm-obz .obz-h1 { font-size: 30px; font-weight: 800; letter-spacing: -.025em; margin: 0; line-height: 1.15; }
.cnm-obz .obz-desc { font-size: 15px; color: var(--cnm-slate-600); line-height: 1.55; margin: 8px 0 26px; max-width: 560px; }
.cnm-obz .obz-card { background: #fff; border: 1px solid var(--cnm-slate-200); border-radius: 16px; padding: 26px; box-shadow: var(--cnm-shadow-card); }

/* Fields */
.cnm-obz .obz-lbl { display: block; font-size: 13px; font-weight: 600; color: var(--cnm-slate-700); margin: 16px 0 6px; }
.cnm-obz .obz-lbl:first-child { margin-top: 0; }
.cnm-obz .obz-input { width: 100%; min-height: 44px; padding: 11px 14px; border: 1px solid var(--cnm-slate-300); border-radius: 10px; font-size: 14px; background: #fff; outline: none; color: inherit; font-family: inherit; }
.cnm-obz textarea.obz-input { line-height: 1.55; resize: vertical; }
.cnm-obz .obz-input:focus { border-color: var(--cnm-brand-500); box-shadow: 0 0 0 3px var(--cnm-brand-100); }
.cnm-obz .obz-input:disabled { background: var(--cnm-slate-50); color: var(--cnm-slate-500); }
.cnm-obz .obz-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cnm-obz .obz-err { font-size: 12.5px; font-weight: 600; color: var(--cnm-emer-600); margin-top: 6px; }

/* Upload dropzones (gated) */
.cnm-obz .obz-photo { display: flex; align-items: center; gap: 16px; }
.cnm-obz .obz-drop { flex: 1; display: flex; gap: 12px; align-items: center; padding: 18px; border: 2px dashed var(--cnm-slate-300); border-radius: 12px; background: var(--cnm-slate-50); }
.cnm-obz .obz-drop.sm { margin-top: 16px; padding: 14px; }
.cnm-obz .obz-drop strong { font-size: 13.5px; }
.cnm-obz .obz-drop-sub { font-size: 12px; color: var(--cnm-slate-500); margin-top: 2px; line-height: 1.45; }

/* Chips (multi-select) */
.cnm-obz .obz-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.cnm-obz .obz-chip { cursor: pointer; }
.cnm-obz .obz-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.cnm-obz .obz-chip span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--cnm-slate-300); font-size: 13.5px; font-weight: 600; color: var(--cnm-slate-700); }
.cnm-obz .obz-chip:has(input:checked) span { border-color: var(--cnm-brand-600); background: var(--cnm-brand-50); color: var(--cnm-brand-700); }

/* Consent + notes */
.cnm-obz .obz-checkrow { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--cnm-slate-700); cursor: pointer; }
.cnm-obz .obz-checkrow input { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; }
.cnm-obz .obz-note { display: flex; gap: 9px; align-items: flex-start; margin-top: 16px; padding: 13px 14px; border-radius: 10px; background: var(--cnm-brand-50); font-size: 12.5px; line-height: 1.5; color: var(--cnm-brand-700); }
.cnm-obz .obz-note.warn { background: var(--cnm-warn-50); color: var(--cnm-warn-700); }
.cnm-obz .obz-note > svg { flex-shrink: 0; margin-top: 1px; }

/* Plan radios */
.cnm-obz .obz-plans { display: flex; flex-direction: column; gap: 10px; }
.cnm-obz .obz-plan { display: flex; align-items: flex-start; gap: 11px; padding: 15px; border: 1.5px solid var(--cnm-slate-200); border-radius: 13px; cursor: pointer; }
.cnm-obz .obz-plan:has(input:checked) { border: 2px solid var(--cnm-brand-600); background: var(--cnm-brand-50); }
.cnm-obz .obz-plan input { position: absolute; opacity: 0; width: 0; height: 0; }
.cnm-obz .obz-plan-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--cnm-slate-300); flex-shrink: 0; margin-top: 1px; }
.cnm-obz .obz-plan input:checked ~ .obz-plan-dot { border: 5.5px solid var(--cnm-brand-600); }
.cnm-obz .obz-plan-body { flex: 1; }
.cnm-obz .obz-plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cnm-obz .obz-plan-name { font-size: 14.5px; font-weight: 800; }
.cnm-obz .obz-plan-price { font-size: 13px; font-weight: 700; color: var(--cnm-brand-700); }
.cnm-obz .obz-plan-blurb { display: block; font-size: 12px; color: var(--cnm-slate-500); line-height: 1.45; margin-top: 3px; }

/* Footer */
.cnm-obz .obz-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.cnm-obz .obz-foot-r { display: flex; gap: 10px; }

/* Review */
.cnm-obz .obz-review-list { display: flex; flex-direction: column; }
.cnm-obz .obz-review-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--cnm-slate-100); }
.cnm-obz .obz-review-row:last-child { border-bottom: 0; }
.cnm-obz .obz-review-node { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #fff; border: 1.5px solid var(--cnm-slate-300); }
.cnm-obz .obz-review-node.done { background: var(--cnm-trust-500); border-color: var(--cnm-trust-500); }
.cnm-obz .obz-review-l { flex: 1; font-size: 14px; font-weight: 600; }
.cnm-obz .obz-review-edit { font-size: 12.5px; font-weight: 600; color: var(--cnm-slate-500); text-decoration: none; }
.cnm-obz .obz-review-add { font-size: 12.5px; font-weight: 700; color: var(--cnm-brand-600); text-decoration: none; }
.cnm-obz .obz-submitted { display: flex; gap: 16px; align-items: flex-start; }
.cnm-obz .obz-sub-ic { width: 54px; height: 54px; border-radius: 14px; background: var(--cnm-trust-50); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cnm-obz .obz-sub-t { font-size: 17px; font-weight: 800; }
.cnm-obz .obz-submitted p { font-size: 13.5px; color: var(--cnm-slate-600); line-height: 1.55; margin: 6px 0 0; }

/* Dashboard onboarding banner (rendered inside the portal shell) */
.cnm-onb-banner { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, var(--cnm-brand-600), var(--cnm-brand-700)); color: #fff; margin-bottom: 18px; }
.cnm-onb-banner .ob-pct { width: 46px; height: 46px; border-radius: 50%; background: rgb(255 255 255 / .15); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.cnm-onb-banner .ob-t { font-size: 14.5px; font-weight: 700; }
.cnm-onb-banner .ob-d { font-size: 12.5px; opacity: .9; margin-top: 1px; }
.cnm-onb-banner .ob-cta { margin-left: auto; background: #fff; color: var(--cnm-brand-700); font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: 9px; text-decoration: none; white-space: nowrap; }

@media (max-width: 860px) {
    .cnm-obz .obz { grid-template-columns: 1fr; }
    .cnm-obz .obz-side { flex-direction: column; border-right: 0; border-bottom: 1px solid var(--cnm-slate-200); }
    .cnm-obz .obz-steps { flex-direction: row; overflow-x: auto; gap: 4px; }
    .cnm-obz .obz-step-l { white-space: nowrap; }
    .cnm-obz .obz-exit { margin-top: 14px; }
    .cnm-obz .obz-main { padding: 28px 20px; }
    .cnm-obz .obz-row2 { grid-template-columns: 1fr; }
}

/* ── Notification bell count + items ───────────────────────────────────── */
.cnm-cx-bell .btn { position: relative; }
.cnm-cx-bell .bell-count { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--cnm-emer-500); color: #fff; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; border: 2px solid #fff; }
.cnm-cx-bell .menu .ntf { display: flex; gap: 11px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--cnm-slate-100); text-decoration: none; color: inherit; }
.cnm-cx-bell .menu .ntf:hover { background: var(--cnm-brand-50); }
.cnm-cx-bell .menu .ntf-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--cnm-brand-50); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cnm-cx-bell .menu .ntf-t { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--cnm-slate-800); }

/* V3 alerting — bell drawer (Today/Earlier feed) + Alerts page */
.cx-adrawer .hd { display: flex; align-items: center; justify-content: space-between; }
.cx-adrawer .hd strong { font-size: 15px; font-weight: 700; }
.cx-adrawer .hd button { background: none; border: 0; color: var(--cnm-brand-600); font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; }
.cx-adrawer .cx-alist { max-height: 420px; overflow-y: auto; }
.cx-adrawer .grp { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cnm-slate-400); padding: 10px 16px 4px; }
.cx-arow { display: flex; gap: 11px; align-items: flex-start; padding: 11px 16px; border-bottom: 1px solid var(--cnm-slate-100); text-decoration: none; color: inherit; }
.cx-arow:hover { background: var(--cnm-brand-50); }
.cx-arow .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--cnm-brand-50); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cx-arow.sev-warning .ic { background: var(--cnm-warn-50); }
.cx-arow.sev-critical .ic { background: var(--cnm-emer-50); }
.cx-arow .tx { display: flex; flex-direction: column; min-width: 0; }
.cx-arow .tx .t { font-size: 13px; font-weight: 700; color: var(--cnm-slate-900); }
.cx-arow .tx .m { font-size: 12px; color: var(--cnm-slate-500); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; }
.cx-arow .tx .w { font-size: 11px; color: var(--cnm-slate-400); margin-top: 2px; }
.cx-adrawer .empty span { display: block; font-size: 11.5px; margin-top: 4px; color: var(--cnm-slate-400); }
.cnm-cx-notif-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.cnm-cx-notif-kpis .k { background: #fff; border: 1px solid var(--cnm-slate-200); border-radius: 12px; padding: 16px 18px; }
.cnm-cx-notif-kpis .k .n { font-size: 26px; font-weight: 800; color: var(--cnm-slate-900); }
.cnm-cx-notif-kpis .k .l { font-size: 12px; color: var(--cnm-slate-500); margin-top: 2px; }
.cnm-cx-notif-kpis .k.crit .n { color: var(--cnm-emer-600); }
.cnm-cx-notif-list { padding: 6px 0; }
.cnm-cx-notif-list .grp { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cnm-slate-400); padding: 12px 18px 4px; }
.cnm-cx-notif-list .cx-arow { padding: 13px 18px; }
.cnm-cx-notif-empty { text-align: center; padding: 46px 24px; }
.cnm-cx-notif-empty h3 { font-size: 16px; margin: 12px 0 6px; }
.cnm-cx-notif-empty p { font-size: 13px; color: var(--cnm-slate-500); max-width: 380px; margin: 0 auto; }

/* ── ContractNearMe ↔ contractor chat ──────────────────────────────────── */
.msg-page .msg-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--cnm-slate-200); background: #fff; }
.msg-page .msg-head-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--cnm-brand-50); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.msg-page .msg-head-t { font-size: 15px; font-weight: 700; }
.msg-page .msg-head-s { font-size: 12px; color: var(--cnm-slate-500); margin-top: 1px; }
.msg-page .msg-thread { padding: 20px; display: flex; flex-direction: column; gap: 14px; background: var(--cnm-slate-50); min-height: 280px; max-height: 56vh; overflow-y: auto; }
.msg-page .msg-row { display: flex; }
.msg-page .msg-row.me { justify-content: flex-end; }
.msg-page .msg-bubble { max-width: 76%; background: #fff; border: 1px solid var(--cnm-slate-200); border-radius: 14px; border-top-left-radius: 4px; padding: 11px 14px; }
.msg-page .msg-row.me .msg-bubble { background: var(--cnm-brand-600); border-color: var(--cnm-brand-600); color: #fff; border-radius: 14px; border-top-right-radius: 4px; }
.msg-page .msg-meta { font-size: 11px; font-weight: 600; color: var(--cnm-slate-400); margin-bottom: 3px; }
.msg-page .msg-row.me .msg-meta { color: rgb(255 255 255 / .75); }
.msg-page .msg-text { font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; }
.msg-page .msg-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--cnm-slate-500); font-size: 13px; line-height: 1.5; padding: 40px 30px; margin: auto; max-width: 420px; }
.msg-page .msg-compose { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--cnm-slate-200); background: #fff; }
.msg-page .msg-compose input { flex: 1; height: 42px; padding: 0 14px; border: 1px solid var(--cnm-slate-300); border-radius: 10px; font-size: 14px; outline: none; background: #fff; color: inherit; }
.msg-page .msg-compose input:focus { border-color: var(--cnm-brand-500); box-shadow: 0 0 0 3px var(--cnm-brand-100); }
.msg-page .msg-compose input:disabled { background: var(--cnm-slate-50); }

/* ── Homeowner conversations list (contractor side) ────────────────────── */
.cvx-page { max-width: 760px; display: flex; flex-direction: column; gap: 10px; }
.cvx-page .cvx-row { display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--cnm-slate-200); border-radius: 13px; padding: 14px 16px; text-decoration: none; color: inherit; transition: border-color .12s, box-shadow .12s; }
.cvx-page .cvx-row:hover { border-color: var(--cnm-brand-300); box-shadow: 0 2px 10px rgb(15 23 42 / .05); }
.cvx-page .cvx-av { width: 42px; height: 42px; border-radius: 50%; background: var(--cnm-trust-50); color: var(--cnm-trust-700); font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cvx-page .cvx-main { flex: 1; min-width: 0; }
.cvx-page .cvx-top { display: flex; align-items: baseline; gap: 8px; }
.cvx-page .cvx-name { font-size: 14.5px; font-weight: 700; }
.cvx-page .cvx-time { margin-left: auto; font-size: 11.5px; color: var(--cnm-slate-400); white-space: nowrap; flex-shrink: 0; }
.cvx-page .cvx-proj { font-size: 12px; color: var(--cnm-brand-700); font-weight: 600; margin-top: 1px; }
.cvx-page .cvx-snip { font-size: 12.5px; color: var(--cnm-slate-500); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cvx-page .cvx-unread { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--cnm-emer-500); color: #fff; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.cvx-page .cvx-empty { padding: 44px 30px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.cvx-page .cvx-empty-t { font-size: 16px; font-weight: 700; }
.cvx-page .cvx-empty-d { font-size: 13.5px; color: var(--cnm-slate-600); line-height: 1.5; max-width: 400px; }

/* ── Back link above a single conversation ─────────────────────────────── */
.msg-page .cvx-back { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--cnm-slate-500); text-decoration: none; margin-bottom: 12px; }
.msg-page .cvx-back:hover { color: var(--cnm-brand-700); }

/* ── Payment-page gate (contractor not boarded) ────────────────────────── */
.cnm-cx-main { position: relative; }
.cnm-cx-page.is-paygated { filter: blur(6px); pointer-events: none; user-select: none; }
.cx-paygate { position: absolute; inset: 0; z-index: 40; display: flex; align-items: flex-start; justify-content: center; padding: clamp(48px, 14vh, 150px) 24px 24px; background: rgba(248,250,252,.55); }
.cx-paygate-card { background: #fff; border: 1px solid var(--cnm-slate-200); border-radius: 16px; box-shadow: var(--cnm-shadow-modal); max-width: 460px; width: 100%; padding: 32px; text-align: center; }
.cx-paygate-ic { width: 60px; height: 60px; border-radius: 16px; background: var(--cnm-warn-100); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.cx-paygate-t { font-size: 18px; font-weight: 800; }
.cx-paygate-d { font-size: 13.5px; color: var(--cnm-slate-600); line-height: 1.6; margin: 8px 0 20px; }
.cx-paygate-x { display: flex; flex-direction: column; gap: 9px; align-items: center; }
.cx-paygate-x .cnm-btn { width: 100%; max-width: 290px; justify-content: center; }

/* ════════════════════════════════════════════════════════════════════════
   Shared interaction + component layer (ported from the design bundle).
   Drives the shell extras (C4 search, X2 create, C5 responsive drawer) and
   the reusable primitives every portal page composes from: toolbars/tabs,
   modals, drawers, row-menus, the client toast, and the dashboard widgets.
   ════════════════════════════════════════════════════════════════════════ */
.cnm-cx-topbar .row { flex-shrink: 0; }
.cnm-cx-topbar { flex-wrap: wrap; }
@media (max-width: 1080px) {
  .cnm-cx-topbar .cx-omni { flex-basis: 200px; }
}

/* ── C4: global search / command palette (topbar) ──────────────────────── */
.cnm-cx-topbar .cx-omni { position: relative; margin-left: auto; margin-right: 4px; flex: 0 1 320px; min-width: 150px; }
.cx-omni { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px; background: var(--cnm-slate-50); border: 1px solid var(--cnm-slate-200); border-radius: 10px; color: var(--cnm-slate-400); }
.cx-omni.is-open { border-color: var(--cnm-brand-400); box-shadow: 0 0 0 3px var(--cnm-brand-50); background: #fff; }
.cx-omni .cx-omni-ic { display: flex; color: var(--cnm-slate-400); }
.cx-omni input { flex: 1; border: 0; outline: none; background: transparent; font-size: 13.5px; color: var(--cnm-slate-800); font-family: inherit; min-width: 0; }
.cx-omni .cx-omni-kbd { font-size: 11px; font-weight: 700; color: var(--cnm-slate-400); border: 1px solid var(--cnm-slate-200); border-radius: 5px; padding: 1px 6px; background: #fff; }
.cx-omni.is-open .cx-omni-kbd { display: none; }
.cx-omni-pop { display: none; position: absolute; top: 46px; left: 0; right: 0; background: #fff; border: 1px solid var(--cnm-slate-200); border-radius: 12px; box-shadow: var(--cnm-shadow-modal); overflow: hidden; max-height: 360px; overflow-y: auto; z-index: 60; }
.cx-omni.is-open .cx-omni-pop { display: block; }
.cx-omni-h { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cnm-slate-400); padding: 11px 14px 6px; }
.cx-omni-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; text-decoration: none; color: inherit; }
.cx-omni-row:hover, .cx-omni-row.is-active { background: var(--cnm-brand-50); }
.cx-omni-row-ic { width: 26px; height: 26px; border-radius: 7px; background: var(--cnm-slate-100); color: var(--cnm-slate-500); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cx-omni-row:hover .cx-omni-row-ic, .cx-omni-row.is-active .cx-omni-row-ic { background: #fff; color: var(--cnm-brand-600); }
.cx-omni-row-t { font-size: 13.5px; font-weight: 600; color: var(--cnm-slate-900); }
.cx-omni-row-d { font-size: 12px; color: var(--cnm-slate-500); margin-left: auto; text-align: right; }
.cx-omni-empty { padding: 20px 14px; text-align: center; font-size: 13px; color: var(--cnm-slate-500); }

/* ── X2: quick-create menu (topbar) ────────────────────────────────────── */
.cx-create { position: relative; }
.cx-create-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 11px; background: var(--cnm-brand-600); color: #fff; border: 0; border-radius: 10px; font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.cx-create-btn:hover { background: var(--cnm-brand-700); }
.cx-create-pop { display: none; position: absolute; top: 46px; right: 0; width: 260px; background: #fff; border: 1px solid var(--cnm-slate-200); border-radius: 12px; box-shadow: var(--cnm-shadow-modal); overflow: hidden; padding: 6px; z-index: 60; }
.cx-create.is-open .cx-create-pop { display: block; }
.cx-create-pop a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; text-decoration: none; color: var(--cnm-slate-500); border-radius: 8px; }
.cx-create-pop a:hover { background: var(--cnm-brand-50); color: var(--cnm-brand-600); }
.cx-create-pop a .ct { font-size: 13.5px; font-weight: 600; color: var(--cnm-slate-900); }
.cx-create-pop a .cd { font-size: 11.5px; color: var(--cnm-slate-500); }

/* ── C5: responsive off-canvas sidebar ─────────────────────────────────── */
.cnm-cx-hamburger { display: none; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--cnm-slate-200); background: #fff; color: var(--cnm-slate-700); cursor: pointer; align-items: center; justify-content: center; flex-shrink: 0; margin-right: 4px; }
.cnm-cx-scrim { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.42); z-index: 44; }
.cnm-cx-scrim.show { display: block; }

@media (max-width: 900px) {
  .cnm-cx-sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 45; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--cnm-shadow-modal); }
  .cnm-cx-sidebar.is-open { transform: translateX(0); }
  .cnm-cx-hamburger { display: flex; }
  .cnm-cx-topbar { padding: 14px 16px; }
  .cnm-cx-topbar h1 { font-size: 18px; }
  .cnm-cx-topbar .cx-omni { width: 200px; }
  .cnm-cx-page { padding: 18px 16px; }
  /* keep wide tables usable */
  .cnm-cx-page .cnm-table { min-width: 720px; }
  .cnm-cx-page .cnm-card:has(> .cnm-table), .cnm-cx-page .cnm-card.p0 { overflow-x: auto; }
}
@media (max-width: 560px) {
  .cnm-cx-topbar .cx-omni { display: none; }
  .cnm-cx-page > div[style*="grid-template-columns:repeat(4"], .cnm-cx-page > div[style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr 1fr !important; }
}

/* ── Dashboard: next-actions (P1), range control (P2), chart tooltip (P3) ─ */
.dash-page .dash-next { padding: 0; overflow: hidden; margin-bottom: 20px; }
.dash-page .dash-next-hd { display: flex; align-items: center; gap: 10px; padding: 15px 18px 13px; border-bottom: 1px solid var(--cnm-slate-100); }
.dash-page .dash-next-hd .t { font-size: 14.5px; font-weight: 700; }
.dash-page .dash-next-hd .ct { margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--cnm-brand-700); background: var(--cnm-brand-50); padding: 3px 9px; border-radius: 999px; }
.dash-page .dna { display: flex; align-items: center; gap: 13px; padding: 13px 18px; border-bottom: 1px solid var(--cnm-slate-100); text-decoration: none; color: inherit; transition: background .12s; }
.dash-page .dna:last-child { border-bottom: 0; }
.dash-page .dna:hover { background: var(--cnm-slate-50); text-decoration: none; }
.dash-page .dna-ic { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-page .dna-ic.warn { background: var(--cnm-warn-50); color: var(--cnm-warn-700); }
.dash-page .dna-ic.emer { background: var(--cnm-emer-50); color: var(--cnm-emer-700); }
.dash-page .dna-ic.brand { background: var(--cnm-brand-50); color: var(--cnm-brand-600); }
.dash-page .dna-t { font-size: 13.5px; font-weight: 600; color: var(--cnm-slate-900); }
.dash-page .dna-d { font-size: 12px; color: var(--cnm-slate-500); margin-top: 1px; }
.dash-page .dna-cta { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--cnm-brand-700); white-space: nowrap; }
.dash-page .dna-done { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--cnm-trust-700); display: flex; align-items: center; gap: 5px; }
.dash-page .dash-next-empty { padding: 26px 18px; text-align: center; font-size: 13px; color: var(--cnm-slate-500); }

.dash-page .dash-range { display: inline-flex; background: var(--cnm-slate-100); border-radius: 8px; padding: 2px; gap: 2px; }
.dash-page .dash-range button { border: 0; background: none; font-size: 12px; font-weight: 700; color: var(--cnm-slate-600); padding: 5px 11px; border-radius: 6px; cursor: pointer; font-family: inherit; }
.dash-page .dash-range button.on { background: #fff; color: var(--cnm-brand-700); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }

.dash-page .dash-chart { display: flex; align-items: flex-end; gap: 5px; height: 140px; position: relative; }
.dash-page .dash-chart .bar { flex: 1; background: var(--cnm-brand-200); border-radius: 4px 4px 0 0; cursor: pointer; transition: background .12s; min-height: 3px; }
.dash-page .dash-chart .bar:hover { background: var(--cnm-brand-500); }
.dash-page .dash-chart .bar.last { background: var(--cnm-brand-600); }
.dash-page .dash-tip { position: absolute; transform: translate(-50%, -100%); background: var(--cnm-slate-900); color: #fff; font-size: 11.5px; font-weight: 600; padding: 5px 9px; border-radius: 7px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .1s; z-index: 5; }
.dash-page .dash-tip .d { font-size: 10px; opacity: .7; font-weight: 500; }
.dash-page .dash-tip.show { opacity: 1; }

/* ── Money-in-motion strip (CR1/CR2) ───────────────────────────────────── */
.dash-page .dash-mim { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.dash-page .mim { display: flex; align-items: center; gap: 13px; padding: 16px 18px; background: #fff; border: 1px solid var(--cnm-slate-200); border-radius: 14px; text-decoration: none; color: inherit; transition: box-shadow .12s, border-color .12s; }
.dash-page .mim:hover { border-color: var(--cnm-brand-300); box-shadow: 0 3px 12px rgb(15 23 42 / .07); text-decoration: none; }
.dash-page .mim-ic { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-page .mim-ic.transit { background: var(--cnm-brand-50); color: var(--cnm-brand-600); }
.dash-page .mim-ic.sched { background: var(--cnm-warn-50); color: var(--cnm-warn-700); }
.dash-page .mim-ic.over { background: var(--cnm-warn-50); color: var(--cnm-warn-700); }
.dash-page .mim-v { font-size: 19px; font-weight: 800; font-family: var(--cnm-font-mono); letter-spacing: -.01em; }
.dash-page .mim-l { font-size: 12px; color: var(--cnm-slate-500); margin-top: 1px; }
.dash-page .mim-eta { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--cnm-slate-400); text-align: right; white-space: nowrap; }
@media (max-width: 760px) { .dash-page .dash-mim { grid-template-columns: 1fr; } }

/* ── Leads: toolbar (G2), countdown (G3), accept/decline states (G1) ────── */
.lead-inbox .ld-toolbar { position: sticky; top: 0; z-index: 3; display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--cnm-slate-200); align-items: center; }
.lead-inbox .ld-toolbar select { height: 32px; border: 1px solid var(--cnm-slate-200); border-radius: 8px; font-size: 12px; font-weight: 600; font-family: inherit; color: var(--cnm-slate-700); background: #fff; padding: 0 6px; cursor: pointer; }
.lead-inbox .ld-search { flex: 1; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; background: var(--cnm-slate-50); border: 1px solid var(--cnm-slate-200); border-radius: 8px; }
.lead-inbox .ld-search input { flex: 1; border: 0; outline: none; background: transparent; font-size: 12.5px; color: inherit; min-width: 0; }
.lead-inbox .ld-item.is-accepted { border-left-color: var(--cnm-trust-500); }
.lead-inbox .ld-item.is-hidden { display: none; }
.lead-inbox .ld-chip-accepted { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--cnm-trust-700); background: var(--cnm-trust-50); padding: 2px 8px; border-radius: 999px; }
.lead-inbox .ld-exp.soon { color: var(--cnm-emer-600) !important; }
.lead-inbox .ld-listempty { padding: 40px 24px; text-align: center; font-size: 13px; color: var(--cnm-slate-500); }
.lead-inbox .ld-accepted-box { display: flex; gap: 12px; align-items: flex-start; padding: 18px; background: var(--cnm-trust-50); border: 1px solid var(--cnm-trust-200); border-radius: 12px; }
.lead-inbox .ld-accepted-box .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--cnm-trust-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── Schedule interactive (G5) ─────────────────────────────────────────── */
.sch-page .sch-appt { cursor: pointer; }
.sch-page .sch-appt:hover { box-shadow: 0 2px 10px rgb(15 23 42 / .08); }
.sch-page .sch-newbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: #fff; border: 1px solid var(--cnm-slate-200); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.sch-page .sch-newbar .f { display: flex; flex-direction: column; gap: 4px; }
.sch-page .sch-newbar label { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--cnm-slate-500); }
.sch-page .sch-newbar input, .sch-page .sch-newbar select { height: 38px; padding: 0 10px; border: 1px solid var(--cnm-slate-300); border-radius: 8px; font-size: 13px; font-family: inherit; background: #fff; color: inherit; }
.sch-modal { display: none; position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center; background: rgba(15,23,42,.5); padding: 16px; }
.sch-modal.is-open { display: flex; }
.sch-modal-card { background: #fff; width: 100%; max-width: 420px; border-radius: 16px; box-shadow: var(--cnm-shadow-modal); overflow: hidden; }
.sch-modal-hd { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--cnm-slate-100); }
.sch-modal-hd h2 { margin: 0; font-size: 16px; font-weight: 700; flex: 1; }
.sch-modal-x { border: 0; background: none; cursor: pointer; padding: 4px; color: var(--cnm-slate-400); }
.sch-modal-bd { padding: 18px; }
.sch-modal-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--cnm-slate-100); font-size: 13.5px; }
.sch-modal-row:last-child { border-bottom: 0; }
.sch-modal-row .k { color: var(--cnm-slate-500); width: 80px; flex-shrink: 0; }
.sch-modal-row .v { font-weight: 600; }

/* ── CRM customer profile drawer (G6) ──────────────────────────────────── */
.crm-page .crm-card { cursor: pointer; transition: box-shadow .12s, border-color .12s; }
.crm-page .crm-card:hover { border-color: var(--cnm-brand-300); box-shadow: 0 3px 12px rgb(15 23 42 / .08); }
.crm-drawer-scrim { display: none; position: fixed; inset: 0; z-index: 210; background: rgba(15,23,42,.5); }
.crm-drawer-scrim.is-open { display: block; }
.crm-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 92vw; background: #fff; z-index: 211; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: var(--cnm-shadow-modal); }
.crm-drawer.is-open { transform: translateX(0); }
.crm-drawer-hd { display: flex; align-items: center; gap: 12px; padding: 20px; border-bottom: 1px solid var(--cnm-slate-200); }
.crm-drawer-hd .x { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--cnm-slate-400); padding: 4px; }
.crm-drawer-bd { flex: 1; overflow-y: auto; padding: 20px; }
.crm-drawer .sec-h { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--cnm-slate-500); margin: 20px 0 10px; }
.crm-drawer .sec-h:first-child { margin-top: 0; }
.crm-drawer .kpi3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.crm-drawer .kpi3 .k { background: var(--cnm-slate-50); border: 1px solid var(--cnm-slate-200); border-radius: 11px; padding: 12px; }
.crm-drawer .kpi3 .kv { font-size: 17px; font-weight: 800; font-family: var(--cnm-font-mono); letter-spacing: -.01em; }
.crm-drawer .kpi3 .kl { font-size: 10.5px; color: var(--cnm-slate-500); margin-top: 2px; }
.crm-drawer .row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--cnm-slate-100); font-size: 13px; }
.crm-drawer .row:last-child { border-bottom: 0; }
.crm-drawer .row .rk { color: var(--cnm-slate-500); width: 74px; flex-shrink: 0; }
.crm-drawer .tl { position: relative; padding-left: 20px; }
.crm-drawer .tl .ev { position: relative; padding: 0 0 14px 0; }
.crm-drawer .tl .ev::before { content: ""; position: absolute; left: -14px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--cnm-brand-500); }
.crm-drawer .tl .ev::after { content: ""; position: absolute; left: -11px; top: 12px; bottom: -2px; width: 2px; background: var(--cnm-slate-200); }
.crm-drawer .tl .ev:last-child::after { display: none; }
.crm-drawer .tl .et { font-size: 13px; font-weight: 600; }
.crm-drawer .tl .ed { font-size: 11.5px; color: var(--cnm-slate-500); margin-top: 1px; }
.crm-drawer .inv { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--cnm-slate-100); font-size: 13px; }
.crm-drawer .inv:last-child { border-bottom: 0; }
.crm-drawer-ft { padding: 14px 20px; border-top: 1px solid var(--cnm-slate-200); display: flex; gap: 8px; }

/* ── Generic table toolbar / tabs / modal / empty (M1, M2, M3…) ─────────── */
.cx-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.cx-tabs { display: inline-flex; gap: 2px; background: var(--cnm-slate-100); border-radius: 9px; padding: 3px; }
.cx-tabs button { border: 0; background: none; font-size: 12.5px; font-weight: 600; color: var(--cnm-slate-600); padding: 6px 12px; border-radius: 7px; cursor: pointer; font-family: inherit; white-space: nowrap; }
.cx-tabs button.on { background: #fff; color: var(--cnm-brand-700); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.cx-tsearch { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; background: #fff; border: 1px solid var(--cnm-slate-200); border-radius: 9px; min-width: 220px; }
.cx-tsearch input { flex: 1; border: 0; outline: none; background: transparent; font-size: 13px; color: inherit; min-width: 0; }
.cx-tselect { height: 36px; padding: 0 10px; border: 1px solid var(--cnm-slate-200); border-radius: 9px; font-size: 12.5px; font-weight: 600; font-family: inherit; color: var(--cnm-slate-700); background: #fff; cursor: pointer; }
.cnm-card.p18.is-filter { cursor: pointer; transition: box-shadow .12s, border-color .12s; }
.cnm-card.p18.is-filter:hover { border-color: var(--cnm-brand-300); box-shadow: 0 2px 10px rgb(15 23 42 / .06); }
.cnm-card.p18.is-active-filter { border-color: var(--cnm-brand-500); box-shadow: 0 0 0 2px var(--cnm-brand-100); }
.cx-tableempty td { padding: 40px 24px !important; text-align: center; color: var(--cnm-slate-500); font-size: 13px; }

.cx-modal { display: none; position: fixed; inset: 0; z-index: 200; align-items: flex-start; justify-content: center; background: rgba(15,23,42,.5); padding: 7vh 16px 16px; }
.cx-modal.is-open { display: flex; }
.cx-modal-card { background: #fff; width: 100%; max-width: 520px; border-radius: 16px; box-shadow: var(--cnm-shadow-modal); overflow: hidden; max-height: 84vh; display: flex; flex-direction: column; }
.cx-modal-hd { display: flex; align-items: center; gap: 10px; padding: 17px 20px; border-bottom: 1px solid var(--cnm-slate-200); }
.cx-modal-hd h2 { margin: 0; font-size: 16px; font-weight: 700; flex: 1; }
.cx-modal-x { border: 0; background: none; cursor: pointer; padding: 4px; color: var(--cnm-slate-400); }
.cx-modal-bd { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 13px; }
.cx-modal-ft { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--cnm-slate-200); background: var(--cnm-slate-50); }
.cx-fld label { display: block; font-size: 12.5px; font-weight: 600; color: var(--cnm-slate-700); margin-bottom: 5px; }
.cx-fld input, .cx-fld select, .cx-fld textarea { width: 100%; border: 1px solid var(--cnm-slate-300); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; font-family: inherit; color: inherit; background: #fff; outline: none; box-sizing: border-box; }
.cx-fld input:focus, .cx-fld select:focus, .cx-fld textarea:focus { border-color: var(--cnm-brand-500); box-shadow: 0 0 0 3px var(--cnm-brand-50); }
.cx-fld .err { color: var(--cnm-emer-600); font-size: 11.5px; margin-top: 5px; display: none; }
.cx-fld .err.show { display: block; }
.cx-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Row action menu (M2 refund etc.) ──────────────────────────────────── */
.cx-rowmenu { position: relative; display: inline-block; }
.cx-rowmenu-btn { width: 28px; height: 28px; border-radius: 7px; border: 0; background: transparent; cursor: pointer; color: var(--cnm-slate-400); display: flex; align-items: center; justify-content: center; }
.cx-rowmenu-btn:hover { background: var(--cnm-slate-100); color: var(--cnm-slate-700); }
.cx-rowmenu-pop { display: none; position: absolute; right: 0; top: 32px; z-index: 30; background: #fff; border: 1px solid var(--cnm-slate-200); border-radius: 10px; box-shadow: var(--cnm-shadow-modal); overflow: hidden; min-width: 168px; }
.cx-rowmenu.is-open .cx-rowmenu-pop { display: block; }
.cx-rowmenu-pop button { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: none; text-align: left; padding: 10px 13px; font-size: 13px; font-weight: 500; color: var(--cnm-slate-700); cursor: pointer; font-family: inherit; }
.cx-rowmenu-pop button:hover { background: var(--cnm-slate-50); }
.cx-rowmenu-pop button.danger { color: var(--cnm-emer-700); }
.cx-rowmenu-pop button:disabled { color: var(--cnm-slate-300); cursor: default; }

/* ── Shared client toast (window.cnmToast) ─────────────────────────────── */
.cx-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(16px); background: var(--cnm-slate-900); color: #fff; padding: 11px 18px; border-radius: 11px; font-size: 13px; font-weight: 600; box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 250; display: flex; align-items: center; gap: 9px; }
.cx-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Estimates module (v3 port): KPIs, tabs, table, detail drawer, editor, accept ── */
.est-kpis { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin-bottom:16px; }
.est-kpi { background:#fff; border:1px solid var(--cnm-slate-200); border-radius:12px; padding:14px 16px; }
.est-kpi .l { font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--cnm-slate-500); }
.est-kpi .v { font-size:24px; font-weight:800; letter-spacing:-.02em; color:var(--cnm-slate-900); margin-top:5px; line-height:1.1; }
.est-kpi .d { font-size:12px; color:var(--cnm-slate-500); margin-top:3px; }
.est-bar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:14px; }
.est-tabs { display:flex; flex-wrap:wrap; gap:4px; background:var(--cnm-slate-100); border-radius:10px; padding:4px; }
.est-tabs button { border:0; background:transparent; padding:7px 12px; border-radius:7px; font-size:13px; font-weight:600; color:var(--cnm-slate-600); cursor:pointer; white-space:nowrap; }
.est-tabs button:hover { color:var(--cnm-slate-900); }
.est-tabs button.on { background:#fff; color:var(--cnm-slate-900); box-shadow:var(--cnm-shadow-card); }
.est-tabs button .n { margin-left:6px; font-size:11px; color:var(--cnm-slate-400); font-weight:700; }
.est-tabs button.on .n { color:var(--cnm-brand-600); }
.est-badge { display:inline-flex; align-items:center; height:22px; padding:0 9px; border-radius:999px; font-size:11.5px; font-weight:700; white-space:nowrap; }
.est-row { cursor:pointer; }
.est-row:hover { background:var(--cnm-slate-50); }
.est-exp { font-size:11.5px; font-weight:700; }
.est-exp.warn { color:var(--cnm-warn-700); }
.est-exp.bad { color:var(--cnm-emer-700); }
.est-pager { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-top:1px solid var(--cnm-slate-200); font-size:13px; color:var(--cnm-slate-600); }
.est-pager .pg { display:flex; gap:6px; }
.est-pager button { height:30px; min-width:30px; padding:0 9px; border:1px solid var(--cnm-slate-300); background:#fff; border-radius:7px; font-size:12.5px; font-weight:600; color:var(--cnm-slate-700); cursor:pointer; }
.est-pager button.on { background:var(--cnm-slate-900); border-color:var(--cnm-slate-900); color:#fff; }
.est-pager button:disabled { opacity:.4; cursor:default; }
.est-dr { position:fixed; inset:0; z-index:250; display:none; }
.est-dr.is-open { display:block; }
.est-dr .scrim { position:absolute; inset:0; background:rgba(15,23,42,.42); }
.est-dr .panel { position:absolute; top:0; right:0; bottom:0; width:min(760px,94vw); background:var(--cnm-slate-50); display:flex; flex-direction:column; box-shadow:var(--cnm-shadow-modal); }
.est-dr .hd { background:#fff; border-bottom:1px solid var(--cnm-slate-200); padding:16px 20px; }
.est-dr .hd .top { display:flex; align-items:flex-start; gap:12px; }
.est-dr .hd h2 { margin:0; font-size:17px; font-weight:800; letter-spacing:-.015em; color:var(--cnm-slate-900); }
.est-dr .hd .meta { font-size:12.5px; color:var(--cnm-slate-500); margin-top:3px; }
.est-dr .x { margin-left:auto; width:30px; height:30px; border:0; background:var(--cnm-slate-100); border-radius:8px; font-size:17px; line-height:1; color:var(--cnm-slate-600); cursor:pointer; flex-shrink:0; }
.est-dr .x:hover { background:var(--cnm-slate-200); }
.est-dtabs { display:flex; gap:2px; margin-top:14px; border-bottom:1px solid var(--cnm-slate-200); margin-bottom:-17px; }
.est-dtabs button { border:0; background:transparent; padding:9px 13px; font-size:13px; font-weight:600; color:var(--cnm-slate-500); cursor:pointer; border-bottom:2px solid transparent; }
.est-dtabs button:hover { color:var(--cnm-slate-800); }
.est-dtabs button.on { color:var(--cnm-brand-700); border-bottom-color:var(--cnm-brand-600); }
.est-dr .bd { flex:1; overflow:auto; padding:18px 20px; }
.est-dr .ft { background:#fff; border-top:1px solid var(--cnm-slate-200); padding:12px 20px; display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.est-sec { background:#fff; border:1px solid var(--cnm-slate-200); border-radius:12px; padding:16px 18px; margin-bottom:14px; }
.est-sec h3 { margin:0 0 12px; font-size:13px; font-weight:800; letter-spacing:.03em; text-transform:uppercase; color:var(--cnm-slate-500); }
.est-grid2 { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px 20px; }
.est-fld .k { font-size:11.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--cnm-slate-400); }
.est-fld .v { font-size:14px; font-weight:600; color:var(--cnm-slate-900); margin-top:2px; }
.est-tot { display:flex; justify-content:space-between; padding:6px 0; font-size:14px; color:var(--cnm-slate-600); }
.est-tot.big { border-top:1px solid var(--cnm-slate-200); margin-top:6px; padding-top:12px; font-size:17px; font-weight:800; color:var(--cnm-slate-900); }
.est-tot .a { font-variant-numeric:tabular-nums; font-weight:700; color:var(--cnm-slate-800); }
.est-tl { position:relative; padding-left:20px; }
.est-tl:before { content:''; position:absolute; left:5px; top:6px; bottom:6px; width:2px; background:var(--cnm-slate-200); }
.est-tl .e { position:relative; padding:7px 0; }
.est-tl .e:before { content:''; position:absolute; left:-18px; top:12px; width:8px; height:8px; border-radius:50%; background:var(--cnm-brand-500); box-shadow:0 0 0 3px #fff; }
.est-tl .w { font-size:13.5px; color:var(--cnm-slate-800); font-weight:500; }
.est-tl .m { font-size:11.5px; color:var(--cnm-slate-400); margin-top:1px; }
.est-ver { display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--cnm-slate-100); font-size:13px; }
.est-ver:last-child { border-bottom:0; }
.est-opt { display:flex; align-items:center; gap:8px; font-size:12px; font-weight:700; color:var(--cnm-brand-700); background:var(--cnm-brand-50); border-radius:6px; padding:2px 8px; }
/* editor */
.est-lines { width:100%; border-collapse:collapse; }
.est-lines th { text-align:left; font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--cnm-slate-500); padding:0 8px 8px; }
.est-lines th.n, .est-lines td.n { text-align:right; }
.est-lines td { padding:6px 8px; border-top:1px solid var(--cnm-slate-100); vertical-align:middle; }
.est-lines input[type=text], .est-lines input[type=number] { width:100%; height:34px; padding:0 9px; border:1px solid var(--cnm-slate-300); border-radius:7px; font:inherit; font-size:13.5px; background:#fff; }
.est-lines input.n { text-align:right; font-variant-numeric:tabular-nums; }
.est-lines .rm { border:0; background:transparent; color:var(--cnm-slate-400); cursor:pointer; font-size:17px; line-height:1; padding:4px 6px; }
.est-lines .rm:hover { color:var(--cnm-emer-600); }
.est-lt { font-variant-numeric:tabular-nums; font-weight:700; font-size:13.5px; color:var(--cnm-slate-900); white-space:nowrap; }
.est-pick { position:relative; }
.est-pop { position:absolute; z-index:40; left:0; right:0; top:calc(100% + 4px); background:#fff; border:1px solid var(--cnm-slate-200); border-radius:10px; box-shadow:var(--cnm-shadow-modal); max-height:280px; overflow:auto; display:none; }
.est-pop.on { display:block; }
.est-pop button { display:flex; width:100%; gap:10px; align-items:center; text-align:left; border:0; background:transparent; padding:9px 12px; cursor:pointer; font:inherit; }
.est-pop button:hover, .est-pop button.hl { background:var(--cnm-brand-50); }
.est-pop .sku { font-family:var(--cnm-font-mono); font-size:11px; color:var(--cnm-slate-400); flex-shrink:0; width:88px; }
.est-pop .nm2 { flex:1; font-size:13.5px; color:var(--cnm-slate-800); }
.est-pop .pr { font-size:13px; font-weight:700; color:var(--cnm-slate-900); font-variant-numeric:tabular-nums; }
.est-pop .empty { padding:14px; font-size:13px; color:var(--cnm-slate-500); }
/* accept page */
.est-accept { max-width:820px; margin:0 auto; padding:28px 20px 80px; }
.est-doc { background:#fff; border:1px solid var(--cnm-slate-200); border-radius:14px; overflow:hidden; box-shadow:var(--cnm-shadow-card); }
.est-doc .band { height:6px; }
.est-doc .body { padding:26px 30px; }
.est-sig { border:2px dashed var(--cnm-slate-300); border-radius:12px; padding:18px; background:var(--cnm-slate-50); }
.est-edit-grid { display:grid; grid-template-columns:minmax(420px,1fr) 330px; gap:18px; align-items:start; }
.est-sigline { font-family:'Segoe Script','Brush Script MT',cursive; font-size:26px; color:var(--cnm-slate-900); border-bottom:1px solid var(--cnm-slate-400); padding:4px 2px; min-height:40px; }
@media (max-width: 1100px) {
.est-kpis { grid-template-columns:repeat(2,1fr); }
.est-edit-grid { grid-template-columns:minmax(0,1fr); }
}
@media (max-width: 700px) {
.est-kpis { grid-template-columns:1fr; }
.est-grid2 { grid-template-columns:1fr; }
}

/* Estimates — shared notices & toggles across the module pages */
.cnm-cx-estimates .es-notice { border-radius: 10px; padding: 11px 14px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.cnm-cx-estimates .es-notice.err { background: var(--cnm-emer-50); color: var(--cnm-emer-700); border: 1px solid var(--cnm-emer-200); }
.cnm-cx-estimates .es-notice.sim { background: var(--cnm-warn-50); color: var(--cnm-warn-700); border: 1px solid var(--cnm-warn-200); }
.cnm-cx-estimates .es-toggle { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--cnm-slate-700); padding: 7px 0; cursor: pointer; }

/* Dashboard anomaly strip (V3 — last 7 days vs 30-day baseline) */
.dash-anom-banner { display: flex; align-items: center; gap: 13px; background: linear-gradient(135deg, var(--cnm-emer-600), var(--cnm-emer-700)); color: #fff; border-radius: 13px; padding: 14px 18px; margin-bottom: 16px; }
.dash-anom-banner .ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.dash-anom-banner .t { font-size: 14px; font-weight: 800; }
.dash-anom-banner .d { font-size: 12.5px; opacity: .9; margin-top: 1px; }
.dash-anom { padding: 16px 18px; margin-bottom: 16px; }
.dash-anom-hd { font-size: 13px; font-weight: 800; color: var(--cnm-slate-900); margin-bottom: 12px; }
.dash-anom-sub { font-size: 11.5px; font-weight: 600; color: var(--cnm-slate-400); margin-left: 6px; }
.dash-anom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.dash-anom-item { border: 1px solid var(--cnm-slate-200); border-radius: 10px; padding: 11px 13px; }
.dash-anom-top { display: flex; align-items: center; justify-content: space-between; }
.dash-anom-top .lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--cnm-slate-500); }
.dash-anom-top .pct { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dash-anom-vals { font-size: 16px; font-weight: 800; color: var(--cnm-slate-900); margin-top: 5px; }
.dash-anom-vals span { font-size: 11.5px; font-weight: 600; color: var(--cnm-slate-400); }
