/* CRM shell v2; scoped to named existing surfaces. Inventory map fills unchanged. */
:root:root[data-crm-project]{--brand-primary:#315c2b;--brand-hover:#274029;--brand-accent:#315c2b;--brand-paper:#f4f6f1;--brand-soft:#e8eedb;--brand-line:#d7dfd0;--brand-muted:#53614e;--brand-swatch:#60712f;--project-action:#315c2b;--project-action-ink:#fff;--ui-ink:#181f1c;--ui-muted:#53614e;--ui-line:#d7dfd0;--ui-paper:#f4f6f1;--broker-v2-radius:8px;--broker-v2-shadow:none}
#root{font-family:Manrope,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:15px;line-height:1.6}body:has(#root){font-family:Manrope,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:#f4f6f1;color:#181f1c}#root button,#root input,#root select,#root textarea{font-family:inherit}#root .crm-header{min-height:76px;padding-block:12px;gap:24px;border-top:0;border-bottom:1px solid var(--ui-line);background:#fff}#root .crm-header nav{gap:12px;font-size:13px}#root .crm-header nav a{padding:10px 12px;border-radius:6px}#root .crm-header nav a:hover{background:var(--brand-soft)}#root .crm-header nav a[href*='/revision/']{background:#315c2b;color:#fff;font-weight:800}#root .crm-header nav button{font-size:13px;min-height:42px;border-radius:6px}#root .central-project{margin-top:20px;padding:16px 20px;background:var(--brand-soft);border:1px solid var(--brand-line);border-radius:8px}#root .central-project small{font-size:12px;letter-spacing:0;text-transform:none}#root .central-project strong{font-size:20px;font-weight:800}#root .central-project label{font-size:13px}#root .central-project select{border-radius:6px;font-size:14px}
#root .admin-card,#root .admin-table-card,#root .brokers-card,#root .brokers-v2-card,#root .brokers-dashboard-card,#root .brokers-stat-card,#root .crm-resource-card,#root .auth-card,#root .brokers-helper-card{border-radius:8px;box-shadow:none;border-color:var(--ui-line)}#root h1,#root h2,#root h3{font-family:inherit;font-weight:800;letter-spacing:-.02em;line-height:1.35}#root h1{font-size:28px}#root h2{font-size:22px}#root h3{font-size:18px}#root .admin-field label,#root .brokers-field label,#root .admin-control-label{font-size:13px;font-weight:700}#root .admin-field input,#root .admin-field select,#root .brokers-field input,#root .brokers-field select,#root .brokers-field textarea,#root .auth-card input{font-size:15px;border-radius:6px;min-height:44px;color:var(--ui-ink);border-color:#7a8971;background:#fff}#root .admin-note,#root .admin-muted,#root .brokers-helper-text,#root .crm-resource-meta{font-size:13px;color:var(--ui-muted)}#root .admin-table{font-size:14px}#root .admin-table th{font-size:12px;font-weight:800;background:#edf1e7;color:#53614e}#root .admin-table td{padding-block:15px}#root .admin-action,#root .brokers-inline-btn,#root .brokers-submit,#root .auth-primary,#root .crm-advisor-tools a{border-radius:6px;font-size:14px;min-height:42px;box-shadow:none}#root .crm-resource-file{border-radius:6px;box-shadow:none}#root .crm-library-tabs button{font-size:14px;border-radius:6px;min-height:44px}#root .brokers-card>div:first-child{background:#e8eedb}#root .brokers-card>div:first-child:before{display:none}#root button:focus-visible,#root a:focus-visible,#root input:focus-visible,#root select:focus-visible{outline:2px solid #60712f;outline-offset:3px}
:root[data-color-mode=dark] #root{--ui-paper:#181f1c;--ui-ink:#f2f5ed;--ui-muted:#bbc8b9;--ui-line:#405044;--brand-paper:#181f1c;--brand-soft:#2c3d2c;--brand-line:#405044;--brand-muted:#bbc8b9;--brand-primary:#c4d17c;--brand-accent:#c4d17c;--brand-swatch:#9ea93f;--project-action:#9ea93f;--project-action-ink:#181f1c;--broker-v2-bg:#181f1c;--broker-v2-card-bg:#202b24;--broker-v2-text:#f2f5ed;--broker-v2-text-muted:#bbc8b9;--broker-v2-border:#405044}
[data-color-mode=dark] body:has(#root){background:#181f1c;color:#f2f5ed}[data-color-mode=dark] #root .crm-header,[data-color-mode=dark] #root .admin-card,[data-color-mode=dark] #root .admin-table-card,[data-color-mode=dark] #root .brokers-card,[data-color-mode=dark] #root .brokers-v2-card,[data-color-mode=dark] #root .brokers-dashboard-card,[data-color-mode=dark] #root .brokers-stat-card,[data-color-mode=dark] #root .crm-resource-card,[data-color-mode=dark] #root .crm-resource-file,[data-color-mode=dark] #root .auth-card,[data-color-mode=dark] #root .crm-advisor-onboarding,[data-color-mode=dark] #root .admin-table-wrapper,[data-color-mode=dark] #root .admin-note,[data-color-mode=dark] #root .brokers-helper-card,[data-color-mode=dark] #root .admin-modal,[data-color-mode=dark] #root .admin-modal-content{background:#202b24;color:#f2f5ed;border-color:#405044}[data-color-mode=dark] #root input,[data-color-mode=dark] #root select,[data-color-mode=dark] #root textarea,[data-color-mode=dark] #root #keter-theme-toggle{background:#2b392e;color:#f2f5ed;border-color:#788c77}[data-color-mode=dark] #root .admin-table td{color:#f2f5ed;border-color:#405044}[data-color-mode=dark] #root .admin-table th,[data-color-mode=dark] #root .admin-table tbody tr:hover,[data-color-mode=dark] #root .brokers-card>div:first-child{background:#2c3d2c;color:#bbc8b9}[data-color-mode=dark] #root .crm-header nav a[href*='/revision/']{background:#9ea93f;color:#181f1c}[data-color-mode=dark] #root .crm-header nav a{color:#e5eddf}[data-color-mode=dark] #root h1,[data-color-mode=dark] #root h2,[data-color-mode=dark] #root h3,[data-color-mode=dark] #root h4{color:#f2f5ed}[data-color-mode=dark] #root .central-project{background:#274029;color:#f2f5ed;border-color:#60712f}[data-color-mode=dark] #root .central-project small,[data-color-mode=dark] #root .central-project label{color:#c4d1bf}
@media(max-width:760px){#root .crm-header{padding:14px 18px;gap:14px}#root .crm-header nav{gap:6px;flex-wrap:wrap}#root .crm-header nav a{padding:8px;font-size:12px}#root .central-project{margin:14px 18px 0;padding:14px}#root .central-project strong{font-size:18px}#root h1{font-size:25px}#root h2{font-size:21px}#root .admin-card,#root .admin-table-card{padding:20px 16px}}
@media(prefers-reduced-motion:no-preference){#root button,#root a{transition:background-color .15s ease,color .15s ease}}
#root .crm-file-date,#root .crm-file-date time{color:var(--ui-muted)}
html[data-color-mode=light] #root .admin-badge.warning{color:#79500d;background:#f4ece1}
html[data-color-mode=light] #root .admin-badge.lead-warning{color:#79500d;background:#f4ece1}
