.crm-toolbar{flex-wrap:wrap;gap:10px}.crm-list-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:8px 0 20px}.crm-list-controls .search{width:min(440px,100%);max-width:none}.crm-sort{display:flex;align-items:center;gap:10px;color:#77758a;font-size:13px}.crm-sort select,.crm-list-controls input{font:inherit}.crm-sort select{padding:10px;border:1px solid #e6e4ef;border-radius:8px;background:#fff;color:#484457}.crm-table{min-width:1700px}.crm-table td{max-width:220px}.crm-preview{display:block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-status{display:inline-flex;padding:5px 9px;border-radius:30px;font-size:11px;line-height:1.4;background:#fff3df;color:#955700;white-space:nowrap}.crm-status.crm-good{background:#eaf7ee;color:#247443}.crm-status.crm-bad{background:#ffeded;color:#aa3943}.crm-status.crm-review{background:#eee9ff;color:#6546c7}.crm-details dd{white-space:pre-wrap;overflow-wrap:anywhere}.crm-details .link-btn{white-space:normal;text-align:left}.crm-relation{gap:10px}.crm-relation label{display:flex;flex-direction:column;gap:6px}.crm-relation small{color:#77758a;min-height:16px}.crm-collection{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:20px}.crm-creator-card,.crm-panel,.crm-kpi{border:1px solid #e8e5f0;border-radius:16px;background:#fff;padding:24px}.crm-creator-card p{font-size:13px;color:#77758a;min-height:36px}.crm-creator-heading{display:flex;align-items:center;gap:12px}.crm-creator-heading>div{min-width:0;overflow-wrap:anywhere}.crm-creator-heading small{display:block;color:#8b879b;margin-top:5px}.crm-creator-card>.btn{margin-top:20px;width:100%}.crm-creator-card .card-data{display:grid;grid-template-columns:1fr 1fr;gap:16px}.crm-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}.crm-kpi{text-align:left;cursor:pointer;transition:border-color .15s}.crm-kpi:hover{border-color:#6650ee}.crm-kpi span{display:block;color:#77758a;font-size:13px}.crm-kpi strong{display:block;font-size:30px;color:#2f2c39;margin-top:14px}.crm-dashboard-panels{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.crm-panel{min-width:0}.crm-panel h2{font-size:17px;margin:0 0 24px}.crm-chart{height:235px;display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding-top:20px}.crm-chart>div{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:10px;flex:1;min-width:0}.crm-chart span{display:block;width:65%;max-width:50px;border-radius:6px 6px 0 0;background:#6650ee}.crm-chart strong{font-size:13px;color:#4a415e}.crm-chart small{font-size:10px;color:#817b94}.crm-dashboard-panels .details-grid{margin:0}.crm-table .link-btn{text-align:left}.crm-table-shell .table-scroll:focus-visible{outline:2px solid #6650ee;outline-offset:2px}
@media(max-width:1100px){.crm-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-dashboard-panels{grid-template-columns:1fr}}
@media(max-width:700px){.crm-list-controls{align-items:stretch;flex-direction:column;gap:12px}.crm-list-controls .search{width:100%;display:flex}.crm-sort{justify-content:space-between}.crm-toolbar .toolbar-spacer{display:none}.crm-toolbar>.btn.primary{flex:1}.crm-toolbar .result-count{order:4;width:100%;margin-top:4px}.crm-table-shell{display:none}.crm-collection{grid-template-columns:1fr}.crm-kpis{gap:10px}.crm-kpi{padding:16px}.crm-kpi strong{font-size:26px}.crm-panel{padding:18px}.crm-chart{gap:5px}.crm-chart small{font-size:9px}.crm-details{grid-template-columns:1fr}.crm-sort select{max-width:65%}.crm-toolbar{margin-bottom:12px}}

/* Compact creation forms and row actions from the supplied Figma frames. */
.figma-dialog{width:min(700px,calc(100vw - 32px));border:0;border-radius:16px;padding:32px 36px;box-shadow:0 16px 64px #241b4220}
.figma-dialog::backdrop{background:#5c587126;backdrop-filter:blur(5px)}
.figma-dialog .dialog-header{padding:0;border:0;display:block;margin:0 0 24px}.figma-dialog .dialog-body{padding:0}.figma-dialog .dialog-heading h2{font-size:20px;font-weight:500;line-height:1.4}.figma-dialog .dialog-heading p{font-size:12px;line-height:1.5;margin:8px 0 0;color:#6f697c}
.figma-dialog .form-grid{grid-template-columns:1fr 1fr;gap:16px 32px}.figma-dialog .field{font-size:0;gap:0;min-width:0}.figma-dialog .field input,.figma-dialog .field textarea{font:inherit;font-size:14px;min-height:44px;border:1px solid #e6e3ed;border-radius:6px;background:#fff;padding:10px 14px}.figma-dialog .field input::placeholder{color:#a6a1af}.figma-dialog .crm-relation{font-size:11px;gap:7px}.figma-dialog .crm-relation small:empty{display:none}.figma-dialog .crm-relation small{font-size:11px;min-height:0}.figma-dialog .form-actions{justify-content:flex-start;gap:12px;margin:26px 0 0;padding:0;border:0}.figma-dialog .form-actions .btn{min-height:38px;padding:8px 18px;font-size:12px;border-radius:28px}.figma-dialog .form-actions svg{width:16px;height:16px}
.crm-table .actions-row,.live-mode .actions-row{display:flex;gap:2px;white-space:nowrap}.actions-row .icon-btn{width:28px;height:32px;color:#aaa5bd;flex-shrink:0}.actions-row .icon-btn:hover{color:#6650ee;background:#f1edff}.actions-row .icon-btn:disabled{opacity:.35;cursor:default}.actions-row .icon-btn svg{width:18px;height:18px}.crm-status{background:#fff!important;border-radius:4px;padding:3px 9px;font-size:12px}.crm-status:before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor;margin-right:8px;align-self:center}.crm-status.crm-good{color:#00b81a}.crm-status.crm-review{color:#6550ff}.crm-status.crm-bad{color:#b3000c}.crm-table td{white-space:nowrap!important}.link-btn svg{width:13px;height:13px;vertical-align:middle}.crm-table .actions-row{justify-content:flex-start}
@media(max-width:700px){.figma-dialog{padding:24px}.figma-dialog .form-grid{gap:12px;grid-template-columns:1fr}.figma-dialog .field input,.figma-dialog .field textarea{font-size:16px}.figma-dialog .form-actions .btn{min-height:44px}.actions-row .icon-btn{width:36px;height:40px}}

.crm-visit-flags,.crm-visit-flags>span{display:inline-flex;align-items:center;gap:2px}.crm-visit-flags{gap:18px;vertical-align:middle}.crm-visit-check{display:inline-flex;align-items:center;justify-content:center;width:30px;height:34px;padding:4px;border:0;border-radius:6px;background:transparent;color:#aaa5bd;cursor:pointer}.crm-visit-check svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.crm-visit-check[aria-pressed=true]{color:#3970f6}.crm-visit-check:hover{background:#f0f3ff}.crm-visit-check:focus-visible{outline:2px solid #3970f6;outline-offset:2px}.crm-visit-check:disabled{cursor:wait;opacity:.55}.crm-visit-flags>span.crm-visit-followup{gap:2px}
@media(max-width:700px){.crm-visit-check{width:32px;height:40px}.card-data:has(.crm-visit-flags)>div:has(.crm-visit-flags){grid-column:1/-1}.crm-visit-flags{gap:20px}}
@media(max-width:700px){.live-mode .crm-toolbar{display:flex;flex-wrap:wrap}.crm-toolbar>.btn{flex:0 1 auto;min-width:0;white-space:normal}.crm-toolbar>.btn.primary{flex:1 0 100%}.crm-toolbar .result-count{display:block}.crm-list-controls .search{min-width:0}}

/* Keep long relation names inside their table cells; full text remains in title. */
.crm-table td{overflow:hidden;text-overflow:ellipsis}.crm-table td>.link-btn{display:inline-block;max-width:192px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
