/* LGMC 2: compact controls, generous working space, visible asynchronous states. */
[hidden]{display:none!important}
:root{--ink:#163b34;--muted:#758780;--line:#e3eae6;--accent:#21664f}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid #83b9a6;outline-offset:3px}main{max-width:2200px}.toolbar .spacer{flex:1}.muted{color:var(--muted);font-size:12px}.pill{display:inline-flex;gap:5px;align-items:center;border-radius:20px;background:#edf4f0;color:#426659;padding:5px 9px;font-size:11px;white-space:nowrap}.pill.stage{background:#eaf0ff;color:#526792}.crm-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}.crm-toolbar input,.crm-toolbar select{margin:0;width:auto;max-width:250px}.crm-toolbar .search{flex:1;min-width:180px;max-width:340px}.crm-toolbar button{padding:10px 14px}.view-toggle{display:flex;background:#e7ede9;padding:3px;border-radius:8px}.view-toggle button{background:transparent;color:#63786c;padding:8px 14px}.view-toggle button.selected{background:white;color:var(--ink);box-shadow:0 1px 4px #163b3414}.crm-surface{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.crm-surface th{background:#fafcfb;font-size:10px;white-space:nowrap;position:relative;min-width:90px}.crm-surface td{padding:16px 14px;max-width:none;min-width:90px}.crm-surface tbody tr:hover{background:#f9fcfa}.crm-surface button.link{background:none;color:#214e40;font-size:13px;padding:0;text-align:left}.crm-surface .avatar,.crm-card .avatar,.contact-hero .avatar{display:inline-flex;width:32px;height:32px;align-items:center;justify-content:center;background:#edf2ee;color:#557567;border-radius:9px;font-weight:600;margin-right:10px;flex-shrink:0}.cell-person{display:flex;align-items:center;min-width:190px}.cell-person small{font-size:11px;color:#87958e;margin-top:4px}.crm-foot{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-top:1px solid var(--line);gap:10px}.crm-foot button{padding:7px 12px}.crm-selection{background:#e7f1ec;border:1px solid #c7ddcf;border-radius:9px;padding:10px 14px;display:flex;align-items:center;gap:12px;margin-bottom:12px}.crm-selection button{padding:7px 10px}.crm-board{display:flex;gap:18px;overflow:auto;padding:2px 0 18px;min-height:420px}.crm-column{flex:0 0 290px;background:#edf1ee;border:1px solid #e1e8e3;border-radius:12px;padding:12px}.crm-column.drag-over{outline:2px solid #398269;background:#e0eee6}.crm-column>header{margin:3px 4px 16px;gap:10px;font-weight:600;color:#3d554a;font-size:13px}.crm-column>header:before{content:'';height:8px;width:8px;background:#74a68e;border-radius:50%}.crm-column>header span:first-of-type{flex:1}.crm-card{background:white;border:1px solid #dde6df;box-shadow:0 2px 3px #173c2810;border-radius:9px;padding:16px;margin-bottom:10px;cursor:grab}.crm-card h3{font-size:13px;margin:0 0 5px;color:#244c3c}.crm-card p{font-size:12px;color:#728478;overflow-wrap:anywhere;line-height:1.4;margin:8px 0}.crm-card footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #f0f3f1;padding-top:9px;margin-top:12px}.crm-card button{padding:5px 8px;font-size:11px}.crm-card.dragging{opacity:.45}.filter-chips{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:14px}.filter-group{border:1px solid var(--line);border-radius:8px;padding:12px;margin:10px 0}.filter-head{display:flex;align-items:center;gap:8px}.filter-head select{width:110px;margin:0}.filter-rule{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:8px;align-items:center;margin-top:8px}.filter-rule select,.filter-rule input{margin:0}.filter-rule button{padding:9px}.filter-extra{grid-column:1 / -1;display:flex;gap:8px}.checklist{border:1px solid var(--line);border-radius:8px;padding:14px;max-height:280px;overflow:auto}.checklist label{display:flex;align-items:center;padding:7px;font-size:13px;font-weight:400}.checklist .group-label{font-size:10px;letter-spacing:1px;color:#829589;margin:10px 7px 4px;text-transform:uppercase}.checklist-search{margin:0 0 10px}.checklist-controls{display:flex;gap:8px;margin-bottom:8px}.checklist-controls button{padding:6px 10px;font-size:11px}.column-row{display:flex;align-items:center;gap:8px;padding:7px;border-bottom:1px solid var(--line)}.column-row label{flex:1}.column-row button{padding:5px 9px}.column-resizer{position:absolute;right:0;top:0;width:7px;height:100%;cursor:col-resize}.crm-detail{width:min(1000px,95vw)}.contact-hero{display:flex;align-items:center;padding:4px 0 20px;border-bottom:1px solid var(--line);margin-bottom:18px}.contact-hero .avatar{width:52px;height:52px;font-size:20px}.contact-hero h3{margin:0 0 5px}.timeline-entry{border-left:2px solid #dfe8e2;padding:2px 0 18px 16px;margin-left:8px}.timeline-entry p{margin:6px 0;font-size:13px}.timeline-entry small{color:#8b9b91;font-size:11px}.composer-dialog{width:min(1120px,96vw)}.compose-tools{display:flex;gap:5px;flex-wrap:wrap;padding:9px;background:#f6f8f6;border:1px solid #dce5de;border-bottom:0;border-radius:7px 7px 0 0}.compose-tools button{background:white;color:#446152;padding:7px 11px;min-width:34px}.rich-editor{background:white;min-height:280px;max-height:500px;overflow:auto;padding:22px;border:1px solid #dce5de;border-radius:0 0 7px 7px;line-height:1.7;color:#273e32;outline:none}.rich-editor:focus{border-color:#659c81}.rich-editor a{color:#286eaf}.rich-editor:empty:before{content:'Write your message…';color:#98a99e}.source-editor{font-family:Consolas,monospace;min-height:300px}.compose-status{font-size:11px;color:#6d8776;margin-left:auto}.compose-preview{background:#edf1ee;padding:15px}.compose-preview iframe{background:white;border:0;height:440px;margin:auto;display:block}.compose-preview.mobile iframe{max-width:375px}.job-card{padding:20px;background:#fff;border:1px solid var(--line);border-radius:10px;margin-bottom:12px}.job-card header{margin:0 0 12px}.job-card h3{margin:0;font-size:14px}.job-card progress{width:100%;height:8px;accent-color:#337c5c}.job-card .toolbar{margin:12px 0 0}.job-card button{padding:7px 11px;font-size:12px}#activity-bar{position:fixed;bottom:22px;right:26px;z-index:5000;background:#183f32;color:white;border-radius:9px;padding:12px 18px;box-shadow:0 5px 20px #173b3330;display:flex;align-items:center;gap:10px;font-size:12px}#activity-bar[hidden]{display:none}#activity-bar.busy:before{content:'';width:13px;height:13px;border:2px solid #ffffff50;border-top-color:white;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){#activity-bar.busy:before{animation:none}}.inline-edit{min-width:130px;margin:0;padding:7px}.crm-empty{text-align:center;padding:65px 20px;color:#82958b}.crm-empty h3{color:#476456;font-weight:500}.compact-title{font-size:12px;color:#73867b;margin:15px 0 9px}.email-history{max-height:320px;overflow:auto}.tag-editor{display:flex;gap:6px;flex-wrap:wrap}.tag-editor input{flex:1;min-width:130px}.tag-editor button{padding:5px 9px}.danger-text{color:#a34736}.access-section{margin:22px 0}.access-section h3{font-size:14px}.mini-stats{display:flex;gap:30px;flex-wrap:wrap;margin:16px 0}.mini-stats strong{font-size:24px;display:block}.mini-stats span{font-size:11px;color:#839387}@media(max-width:1000px){main{padding:24px}.crm-column{flex-basis:260px}.filter-rule{grid-template-columns:1fr 1fr}.crm-toolbar{gap:7px}.crm-toolbar .search{max-width:none}}@media(max-width:620px){.crm-toolbar>*{flex:1}.crm-toolbar .search{flex-basis:100%}.crm-foot{flex-wrap:wrap}.filter-rule{grid-template-columns:1fr}.crm-column{flex-basis:85vw}}
