.crm{--crm-line:#dad9d1;--crm-muted:#565950;margin:1.5rem 0 4rem;min-width:0}
.crm h2{font-size:clamp(1.8rem,4vw,2.8rem);margin:.25rem 0 1rem}.crm h3{font-size:1.3rem}
.crm-header,.crm-actions,.crm-nav,.crm-card-head{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap;justify-content:space-between}
.crm-header p{margin:.25rem 0;color:var(--crm-muted)}.crm-header label{min-width:130px}
.crm-nav{justify-content:flex-start;margin:1.5rem 0;border-bottom:1px solid var(--crm-line);padding-bottom:1rem}
.crm-nav button{padding:.7rem 1rem;border:1px solid var(--crm-line);background:transparent;cursor:pointer;min-height:44px}
.crm-nav button[aria-pressed=true]{background:#191b16;color:#fff;border-color:#191b16}
.crm :is(input,select,textarea){box-sizing:border-box;width:100%;max-width:100%;min-width:0;font:inherit;padding:.7rem;border:1px solid #92968c;border-radius:2px;background:#fff;color:#191b16;min-height:44px}
.crm input[type=checkbox]{width:1.15rem;min-height:1.15rem;flex:none}.crm label{display:grid;gap:.35rem;font-size:.92rem;font-weight:600;min-width:0}
.crm .crm-check{display:flex;align-items:center;font-weight:400}.crm button{min-height:44px;cursor:pointer}
.crm :is(button,a,input,select,textarea):focus-visible{outline:3px solid #ce3b00;outline-offset:3px}
.crm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.crm-grid .full{grid-column:1/-1}.crm-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;padding:1rem;background:#efefe9;margin:1rem 0}
.crm-card,.crm-form{padding:1.35rem;border:1px solid var(--crm-line);background:#fff;margin:1rem 0;min-width:0}
.crm-card :is(p,h3){overflow-wrap:anywhere}.crm-records{display:grid;gap:.75rem}.crm-records .crm-card{margin:0}
.crm-meta{font-size:.82rem;color:var(--crm-muted)}.crm-pre{white-space:pre-wrap;overflow-wrap:anywhere}
.crm-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin:1.3rem 0}
.crm-metric{padding:1rem;border:1px solid var(--crm-line);border-top:3px solid #ff5b19;background:#fff}
.crm-metric strong{display:block;font-size:clamp(1.3rem,3vw,2rem);overflow-wrap:anywhere}.crm-metric span{font-size:.85rem;color:var(--crm-muted)}
.crm-badge{display:inline-block;padding:.25rem .6rem;background:#eceee7;font-size:.85rem;border-radius:3px}
.crm-overdue{border-left:4px solid #b52519}.crm-overdue .crm-badge{background:#ffe5df;color:#872014}
.crm-table-wrap{overflow:auto}.crm table{width:100%;border-collapse:collapse}.crm th,.crm td{padding:.8rem;text-align:left;border-bottom:1px solid var(--crm-line)}
.crm td:first-child{overflow-wrap:anywhere;max-width:250px}.crm meter{width:100%;min-width:60px;display:block;margin-top:.3rem}
.crm-note{padding:1rem;background:#f5f1e8;border-left:3px solid #c59956;font-size:.9rem}.crm-feedback{color:#8e2412;white-space:pre-wrap}
.crm-timeline{list-style:none;padding:0}.crm-timeline li{border-left:2px solid var(--crm-line);padding:.3rem 0 1rem 1rem;margin-left:.25rem}
.crm details>summary{cursor:pointer;font-weight:600;padding:.8rem 0;min-height:44px}.crm button:disabled{opacity:.5;cursor:wait}
.crm-empty{padding:2rem;text-align:center;background:#f4f4ee}.crm-small{font-size:.9rem}
.crm [hidden]{display:none!important}
@media(max-width:850px){.crm-filters,.crm-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.crm-grid{grid-template-columns:1fr}.crm-filters{grid-template-columns:1fr 1fr;padding:.75rem}.crm-card,.crm-form{padding:1rem}.crm-nav{gap:.4rem}.crm-nav button{flex:1 0 30%;padding:.6rem}.crm-actions .button{flex:1}.crm h2{font-size:1.9rem}}
