.crm-panel{padding:20px}.crm-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.crm-filters,.crm-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.crm-filters label,.crm-form-grid label{display:flex;flex-direction:column;gap:5px}.crm-filters{align-items:end}.crm-table-wrap{overflow-x:auto;max-width:100%;margin:16px 0}.crm-table{border-collapse:collapse;width:100%;font-size:14px}.crm-table td,.crm-table th{padding:10px 12px;text-align:left;border-bottom:1px solid #cbd2d9;vertical-align:top}.crm-table th{background:var(--panel,#f4f6f8);white-space:nowrap}.crm-table tr{color:#17212b}.crm-name{border:0;background:transparent;color:#17212b;font-weight:600;text-align:left;cursor:pointer;text-decoration:underline}.crm-dialog{max-width:960px;width:calc(100vw - 32px)}.crm-choice{display:block;margin:10px 0}.crm-error{color:#a51d26;white-space:pre-wrap}.crm-pre{white-space:pre-wrap;overflow-wrap:anywhere}.crm-import-row{padding:12px 0;border-bottom:1px solid #d9dfe5}.crm-form-grid textarea{min-height:90px}.crm-form-grid select[multiple]{min-height:110px}@media(max-width:640px){.crm-panel{padding:12px}.crm-filters,.crm-form-grid{grid-template-columns:1fr}.crm-toolbar>*{flex:1 1 140px}.crm-table td,.crm-table th{padding:8px}.crm-dialog{width:calc(100vw - 16px)}}
.crm-table{min-width:900px}.crm-table th,.crm-table td{min-width:100px;overflow-wrap:normal;word-break:normal}.crm-table th:first-child,.crm-table td:first-child{min-width:64px}.crm-table .crm-name{min-width:170px}.crm-filters label:has([name=favorites]){flex-direction:row;align-items:center;justify-content:flex-start}.crm-filters [name=favorites]{width:auto}

/* Contact workspace: quiet surfaces, clear hierarchy and shared outline icons. */
.crm-heading .panel-controls{display:none!important}
@media(max-width:640px){.crm-contact-header .crm-contact-title{flex:1 1 calc(100% - 72px)}}
.crm-dialog{--crm-ink:#203344;--crm-muted:#66788a;--crm-line:#e2e8ee;--crm-accent:#e87722}
.crm-dialog textarea{min-height:110px;resize:vertical;line-height:1.6}.crm-dialog textarea[name=body]{min-height:220px}
.crm-import-steps{display:grid;grid-template-columns:repeat(4,1fr);list-style:none;padding:0;margin:0 0 24px;gap:8px}.crm-import-steps li{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:#8291a1;padding:9px 4px;border-bottom:2px solid #e9edf1}.crm-import-steps li>span{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#eef2f5}.crm-import-steps li.is-current{border-color:#e87722;color:#ac531b}.crm-import-steps li.is-current>span{background:#fff0e4}.crm-import-steps li.is-done{color:#4a785a}.crm-import-steps .crm-icon{width:14px;height:14px}.crm-workflow-intro{display:flex;align-items:flex-start;gap:14px;padding:16px;background:#f5f8fa;border:1px solid #e2e8ee;border-radius:12px;margin-bottom:20px}.crm-workflow-intro>.crm-icon{color:#688398;margin-top:3px}.crm-workflow-intro strong{font-size:14px}.crm-workflow-intro p{font-size:13px;line-height:1.6;color:#66788a;margin:6px 0 0}.crm-upload-box{border:1px dashed #bdccda;border-radius:12px;padding:26px;margin-bottom:20px;background:#fafcfd;text-align:center}.crm-upload-box>.crm-icon{display:block;margin:0 auto 12px;width:30px;height:30px;color:#bd6f36}.crm-upload-box p{font-size:13px;color:#66788a;line-height:1.7;max-width:470px;margin:10px auto 20px}.crm-upload-box label{text-align:left}.crm-mapping-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:20px}.crm-preview-table{min-width:0}.crm-preview-table td{max-width:250px;overflow-wrap:anywhere}.crm-config-list{list-style:none;padding:0;margin:0 0 20px}.crm-config-list li{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:14px 0;border-bottom:1px solid #e9edf1}.crm-config-list li>.crm-icon{color:#7d90a3}.crm-config-list li strong{font-size:13px;flex:1;overflow-wrap:anywhere}.crm-config-list small{font-size:11px;color:#66788a;overflow-wrap:anywhere}.crm-config-list .crm-name{min-width:0!important}.crm-placeholder-bar{display:flex;gap:6px;flex-wrap:wrap;padding:14px 0}.crm-placeholder-bar>span{flex-basis:100%;font-size:12px;color:#66788a;margin-bottom:4px}.crm-placeholder-bar button{cursor:pointer;border:1px solid #dce4ec;display:inline-flex;align-items:center;gap:4px;background:#f5f8fa}.crm-placeholder-bar button:hover{background:#fff1e5;border-color:#e6b48f}.crm-import-row{padding:16px;border:1px solid #e2e8ee;border-radius:10px;margin:12px 0}.crm-import-row strong{font-size:14px}.crm-import-row p{font-size:12px;color:#66788a;line-height:1.6}.crm-choice{font-size:13px;line-height:1.6}.crm-dialog .form-label{font-size:13px}.crm-dialog input,.crm-dialog select,.crm-dialog textarea{max-width:100%;box-sizing:border-box}
@media(max-width:640px){.crm-import-steps{gap:4px}.crm-import-steps li{flex-direction:column;font-size:10px;padding:8px 0}.crm-mapping-grid{grid-template-columns:1fr}.crm-upload-box{padding:18px}.crm-config-list .crm-tag{white-space:normal}.crm-dialog .crm-table-wrap{max-width:100%}.crm-dialog textarea[name=body]{min-height:160px}}
.crm-company-header{display:flex;align-items:center;gap:16px;margin-bottom:18px}.crm-company-header>div{flex:1;min-width:0}.crm-company-header h3{font-size:23px;margin:4px 0;overflow-wrap:anywhere}.crm-company-header p{font-size:13px;color:#66788a;margin:4px 0}.crm-company-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.crm-company-metrics>div{padding:16px;background:#f5f8fa;border:1px solid #e2e8ee;border-radius:10px}.crm-company-metrics strong{display:block;color:#203344;font-size:24px}.crm-company-metrics span{font-size:12px;color:#66788a}.crm-company .crm-section{margin:16px 0}.crm-people{display:flex;flex-wrap:wrap;gap:20px;list-style:none;padding:0}.crm-people li{display:flex;align-items:center;gap:4px}.crm-people strong,.crm-people small{display:block;font-size:13px}.crm-people small{font-size:11px;color:#66788a;margin-top:5px}.crm-order{border:1px solid #e2e8ee;border-radius:10px;padding:16px;margin-top:12px}.crm-order>p{font-size:12px;line-height:1.6;color:#66788a}.crm-order-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}.crm-order-facts dt{font-size:11px;color:#66788a;margin-bottom:6px}.crm-order-facts dd{margin:0;font-size:14px;font-weight:600;color:#203344}.crm-order-source{border-top:1px solid #edf1f5;padding-top:10px;margin-bottom:0}.crm-order-source .crm-icon{width:14px;height:14px}.crm-followup-filter{display:flex;align-items:end;gap:12px;padding:14px;background:#f5f8fa;border-radius:10px}.crm-followup-filter>label{flex:1;min-width:0}.crm-followup-group h3{display:flex;align-items:center;gap:8px;font-size:14px;color:#203344}.crm-followup-group.overdue h3{color:#a44e34}.crm-followup-group ul{padding:0;list-style:none}.crm-followup-group li{display:flex;align-items:center;gap:14px;padding:16px;margin-bottom:10px;border:1px solid #e2e8ee;border-radius:10px;background:#fff}.crm-followup-group li>div{flex:1;min-width:0}.crm-followup-group li strong{display:block;margin:5px 0;font-size:14px}.crm-followup-group li p{font-size:13px;line-height:1.6;color:#66788a;margin:6px 0}.crm-followup-group.overdue li{border-left:3px solid #cb7655}.crm-followup-group.today li{border-left:3px solid #e79849}.crm-followup-group .secondary-btn{display:flex;align-items:center;gap:6px}
@media(max-width:640px){.crm-company-header{flex-wrap:wrap}.crm-company-header h3{font-size:20px}.crm-company-metrics{gap:6px}.crm-company-metrics>div{padding:10px}.crm-company-metrics strong{font-size:20px}.crm-company-metrics span{font-size:10px}.crm-followup-filter{align-items:stretch;flex-direction:column}.crm-followup-group li{align-items:stretch;flex-direction:column}.crm-order-facts{grid-template-columns:1fr 1fr}.crm-company .crm-tag{max-width:100%;overflow-wrap:anywhere}}
.crm-panel{--crm-ink:#203344;--crm-muted:#66788a;--crm-line:#e2e8ee;--crm-accent:#e87722;color:var(--crm-ink);background:#fff;border:1px solid var(--crm-line);border-radius:18px;padding:26px;box-shadow:0 6px 24px #20334408}
.crm-icon{width:19px;height:19px;flex:0 0 19px;vertical-align:middle;pointer-events:none}.crm-toolbar button,.crm-toolbar a,.crm-detail-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:8px}.crm-heading{display:grid!important;grid-template-columns:48px 1fr;column-gap:14px;align-items:center;margin-bottom:22px!important}.crm-heading-icon{grid-row:1/3;background:#fff0e5;color:#bb5515;border-radius:14px;width:48px;height:48px;display:grid;place-items:center}.crm-heading-icon .crm-icon{width:26px;height:26px}.crm-heading h2{margin:0;font-size:25px;letter-spacing:-.5px}.crm-heading .crm-subtitle{grid-column:2;margin:4px 0 0;color:var(--crm-muted);font-size:14px}.crm-heading>button{display:none!important}
.crm-summary{display:flex;flex-wrap:wrap;gap:12px 28px;padding:16px 0;margin:12px 0 18px;border-top:1px solid var(--crm-line);border-bottom:1px solid var(--crm-line);font-size:13px;color:var(--crm-muted)}.crm-summary>span{display:flex;align-items:center;gap:8px}.crm-summary strong{color:var(--crm-ink)}.crm-filters{background:#f6f8fa;border:1px solid #e9edf1;border-radius:12px;padding:16px;grid-template-columns:repeat(4,minmax(130px,1fr));gap:12px}.crm-filters label{font-size:12px;font-weight:600;color:#526577}.crm-filters .input{background:#fff;border-color:#d9e1e8;border-radius:8px;font-size:14px;min-height:40px}.crm-filters>label:first-child{grid-column:span 2}.crm-table-wrap{border:1px solid var(--crm-line);border-radius:12px}.crm-table th{background:#f4f7fa;font-size:11px;text-transform:uppercase;letter-spacing:.55px;color:#526577;border-bottom:1px solid #dce4ec;padding:14px}.crm-table td{padding:15px 14px;vertical-align:middle;border-bottom:1px solid #ffffffb0}.crm-table tr:last-child td{border-bottom:0}.crm-table tbody tr:hover{box-shadow:inset 3px 0 #e87722;filter:brightness(.98)}.crm-name{font-weight:650;text-decoration:none;min-width:120px!important;max-width:240px;overflow-wrap:anywhere}.crm-avatar{width:56px;height:56px;flex:0 0 56px;background:#e9eff5;color:#314e68;border-radius:16px;display:inline-grid;place-items:center;font-size:19px;font-weight:700}.crm-avatar-small{width:32px;height:32px;min-width:32px;border-radius:10px;font-size:11px;margin-right:10px;vertical-align:middle}.crm-table td:has(.crm-name){white-space:nowrap}
#crm-detail:empty{display:none}#crm-detail{margin-top:28px;scroll-margin-top:22px}.crm-contact-card{border:1px solid var(--crm-line);border-radius:16px;overflow:hidden;background:#f6f8fa}.crm-contact-header{display:flex;align-items:center;gap:16px;padding:25px 24px 14px;background:#fff}.crm-contact-title{flex:1;min-width:0}.crm-contact-title h3{margin:3px 0;font-size:24px;letter-spacing:-.4px;overflow-wrap:anywhere}.crm-contact-title p{margin:4px 0;color:var(--crm-muted);font-size:14px}.crm-eyebrow{font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--crm-muted)}.crm-tag{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;border-radius:6px;padding:5px 8px;background:#f1f4f7;color:#526577;line-height:1.3}.crm-tag .crm-icon{width:13px;height:13px;flex-basis:13px}.crm-status{background:#fff1e5;color:#925016}.crm-tag-done{background:#e5f2e9;color:#306542}.crm-contact-actions{background:#fff;margin:0;padding:0 24px 18px}.crm-archive-action{margin-left:auto;color:#7d5260}.crm-contact-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#fff;padding:18px 24px;gap:16px;border-top:1px solid var(--crm-line)}.crm-contact-facts>div{display:flex;gap:10px;align-items:flex-start;min-width:0}.crm-contact-facts .crm-icon{color:#8b9aab;margin-top:4px}.crm-contact-facts small{display:block;color:var(--crm-muted);font-size:11px;margin-bottom:5px}.crm-contact-facts strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}.crm-contact-note{display:flex;gap:12px;padding:14px 24px;background:#fffaee;border-top:1px solid #f3e9cd;font-size:13px}.crm-contact-note p{margin:0}.crm-contact-note .crm-icon{color:#b88834}.crm-detail-tabs{display:flex;gap:6px;background:#fff;border-top:1px solid var(--crm-line);border-bottom:1px solid var(--crm-line);padding:0 20px;overflow-x:auto}.crm-detail-tabs button{border:0;border-bottom:3px solid transparent;background:none;border-radius:0;padding:15px 14px;color:#6b7c8d;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer}.crm-detail-tabs button[aria-pressed=true]{color:#b65b1c;border-bottom-color:var(--crm-accent);background:#fffaf6}.crm-detail-grid{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:16px;padding:20px}.crm-section{border:1px solid var(--crm-line);border-radius:12px;background:#fff;padding:20px;min-width:0}.crm-section[hidden]{display:none!important}.crm-section>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:18px}.crm-section>header>span:first-child{display:flex;align-items:center;gap:9px}.crm-section h4{margin:0;font-size:14px;font-weight:650}.crm-section>header .crm-icon{color:#7a8ea1}.crm-count{font-size:11px;font-weight:600;background:#f0f3f6;color:#6a7c8e;padding:4px 7px;border-radius:5px}.crm-section-hint{font-size:12px;color:var(--crm-muted);margin:-5px 0 15px;line-height:1.6}.crm-mail-section{grid-column:2;grid-row:1}.crm-timeline{list-style:none;margin:0;padding:0}.crm-timeline-item{display:grid;grid-template-columns:30px minmax(0,1fr);gap:12px;padding-bottom:22px;position:relative}.crm-timeline-item:not(:last-child):before{content:'';position:absolute;left:14px;top:30px;bottom:0;width:1px;background:var(--crm-line)}.crm-timeline-item:last-child{padding-bottom:0}.crm-timeline-dot{position:relative;width:30px;height:30px;background:#f0f4f8;border-radius:9px;display:grid;place-items:center;color:#587189}.crm-timeline-dot .crm-icon{width:15px;height:15px}.crm-item-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:5px 12px}.crm-item-heading strong{font-size:13px;font-weight:650}.crm-item-heading time{font-size:10px;color:#8493a1}.crm-timeline-item p{font-size:13px;line-height:1.65;margin:6px 0 8px;color:#526577}.crm-empty{padding:18px 10px;text-align:center;color:#8493a1}.crm-empty>.crm-icon{display:block;margin:0 auto 12px;width:28px;height:28px;opacity:.7}.crm-empty strong{display:block;font-size:13px;color:#62778b;font-weight:500}.crm-empty p{font-size:12px;margin:7px auto 0;max-width:260px;line-height:1.7}.crm-record-list{list-style:none;padding:0;margin:0}.crm-record-list>li{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid #edf1f5}.crm-record-list>li:first-child{padding-top:0}.crm-record-list>li:last-child{border:0;padding-bottom:0}.crm-record-list>li>div{min-width:0;flex:1}.crm-record-list small{display:block;font-size:11px;color:var(--crm-muted);margin:6px 0;overflow-wrap:anywhere}.crm-record-list strong{font-size:13px}.crm-record-list button{display:flex;align-items:center;gap:6px;font-size:11px;padding:5px 0;color:#a65a24}.crm-mail-direction{background:#fff1e6;color:#b46a35;border-radius:8px;padding:8px;align-self:flex-start}.crm-mail-direction.is-incoming{background:#eaf2fa;color:#4f7ea6}.crm-source{padding:12px 0;border-top:1px solid var(--crm-line)}.crm-source summary{display:flex;gap:10px;cursor:pointer;align-items:center}.crm-source strong{font-size:12px;overflow-wrap:anywhere}.crm-source small{display:block;color:var(--crm-muted);font-size:11px;margin-top:5px}.crm-source-values{margin:12px 0;font-size:12px}.crm-source-values>div{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:7px 0;border-bottom:1px solid #edf1f5}.crm-source-values dt{color:var(--crm-muted)}.crm-source-values dd{margin:0;overflow-wrap:anywhere}.crm-detail-tabs:focus-within button:focus-visible,.crm-name:focus-visible{outline:2px solid #b65b1c;outline-offset:3px}#crm-detail[data-active-tab]:not([data-active-tab=all]) .crm-detail-grid{grid-template-columns:1fr}#crm-detail[data-active-tab]:not([data-active-tab=all]) .crm-section{grid-column:auto;grid-row:auto}
@media(max-width:1000px){.crm-detail-grid{grid-template-columns:1fr}.crm-mail-section{grid-column:auto;grid-row:auto}.crm-contact-facts{grid-template-columns:1fr 1fr}.crm-filters{grid-template-columns:repeat(2,minmax(130px,1fr))}}
@media(max-width:640px){.crm-panel{padding:14px;border-radius:12px}.crm-heading h2{font-size:21px}.crm-heading .crm-subtitle{font-size:12px}.crm-summary{gap:12px}.crm-summary>span:not(:first-child){display:none}.crm-filters{grid-template-columns:1fr}.crm-filters>label:first-child{grid-column:auto}.crm-contact-header{padding:18px 14px;flex-wrap:wrap}.crm-contact-title h3{font-size:21px}.crm-status{margin-left:72px}.crm-contact-actions{padding:0 14px 16px}.crm-archive-action{margin-left:0}.crm-contact-facts{grid-template-columns:1fr;padding:16px}.crm-detail-grid{padding:12px;gap:12px}.crm-section{padding:16px}.crm-detail-tabs{padding:0 6px}.crm-detail-tabs button{padding:13px 10px;font-size:12px}.crm-contact-note{padding:14px}.crm-timeline-item{gap:9px}.crm-table .crm-name{min-width:100px!important}}

.crm-sort-header{display:flex;align-items:center;gap:8px}.crm-sort-buttons{display:inline-flex;gap:2px}.crm-sort-arrow{display:inline-flex;align-items:center;justify-content:center;min-width:30px;min-height:30px;padding:3px;border:1px solid #cbd2d9;border-radius:5px;background:transparent;color:inherit;font-size:18px;cursor:pointer}.crm-sort-arrow[aria-pressed=true]{background:var(--orange);color:#fff;border-color:var(--orange)}.crm-sort-arrow:focus-visible{outline:2px solid var(--orange);outline-offset:2px}@media(max-width:720px){.crm-sort-arrow{min-width:36px;min-height:36px}}

.crm-table [data-favorite]{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px}

/* Compact CRM search, grouped company form and consistent local SVG actions. */
.crm-panel button:not(.crm-sort-arrow):not([data-favorite]),.crm-dialog button:not(.icon-btn){display:inline-flex;align-items:center;justify-content:center;gap:8px}
.crm-icon{display:inline-block;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7}
.crm-dialog .icon-btn .crm-icon{width:22px;height:22px}
.crm-filters{display:block}
.crm-filter-main{display:grid;grid-template-columns:minmax(220px,2fr) repeat(2,minmax(130px,1fr)) auto;align-items:end;gap:12px}
.crm-filter-more{margin-top:14px;border-top:1px solid #dce4ec;padding-top:12px}
.crm-filter-more>summary,.crm-org-source>summary{display:flex;align-items:center;gap:8px;cursor:pointer;min-height:40px;font-size:13px;font-weight:600;list-style:none}
.crm-filter-more>summary:after,.crm-org-source>summary:after{content:'+';margin-left:auto;font-size:19px}
.crm-filter-more[open]>summary:after,.crm-org-source[open]>summary:after{content:'−'}
.crm-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:14px;padding-top:12px}
.crm-filter-main .input,.crm-filter-grid .input{width:100%;min-width:0;box-sizing:border-box}
.crm-filter-grid label:has([name=favorites]){flex-direction:row;align-items:center;min-height:44px}
.crm-organization-dialog{display:flex;flex-direction:column;width:820px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
.crm-organization-dialog form{display:flex;flex-direction:column;min-height:0}
.crm-organization-dialog .sb-modal-body{overflow:auto;display:grid;gap:18px;min-height:0}
.crm-organization-dialog .sb-modal-head,.crm-organization-dialog .sb-modal-actions{flex-shrink:0}
.crm-organization-dialog .sb-modal-actions{flex-wrap:wrap;gap:12px}
.crm-organization-dialog h2{font-size:22px;font-weight:600;line-height:1.3}
.crm-org-intro{display:flex;align-items:flex-start;gap:12px;color:#526577;font-size:14px;line-height:1.55}
.crm-org-intro>.crm-icon{width:24px;height:24px;margin-top:3px;color:var(--orange)}
.crm-org-intro p{margin:0}
.crm-org-group{min-width:0;margin:0;padding:18px;border:1px solid #dfe5eb;border-radius:12px;background:#fafbfd}
.crm-org-group legend{display:inline-flex;align-items:center;gap:8px;padding:0 7px;font-weight:600;font-size:14px;color:#283c50}
.crm-org-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.crm-org-wide{grid-column:1/-1}
.crm-organization-dialog .form-label{font-size:13px;font-weight:500;line-height:1.4;min-width:0}
.crm-organization-dialog .input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;background:#fff;font-size:15px;font-weight:400}
.crm-organization-dialog button{min-height:44px;font-weight:500}
.crm-org-source .form-label{margin-top:12px}
[data-customer-browser] .customer-list-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-bottom:16px}
[data-customer-browser] .customer-list-controls label{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:500}
[data-customer-browser] select{width:auto;min-width:90px;min-height:44px}
[data-customer-browser] .customer-list-paging{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}
[data-customer-browser] .customer-list-paging>div{display:flex;gap:12px}
[data-customer-browser] .sb-command-btn{font-weight:500!important;min-height:44px;white-space:normal}
[data-customer-browser] .customer-list-range{color:#526577;font-size:13px}
@media(max-width:1000px){.crm-filter-main{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.crm-filter-main,.crm-filter-grid,.crm-org-grid{grid-template-columns:minmax(0,1fr)}.crm-organization-dialog{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.crm-organization-dialog .sb-modal-body{padding:14px}.crm-org-group{padding:14px}.crm-organization-dialog .sb-modal-actions>button{flex:1 1 140px}.crm-filter-main>button{width:100%}}

/* Current permission is separate from the original contact notes and sources. */
.crm-permission{margin:0 20px 20px;padding:18px;border:1px solid #e0e6ed;border-left:4px solid #94a3b8;border-radius:12px;background:#fafbfd;color:#31465b}
.crm-permission[data-permission-state=approved]{border-left-color:#2e7d55;background:#f5faf7}
.crm-permission[data-permission-state=blocked]{border-left-color:#b64a40;background:#fff8f7}
.crm-permission-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.crm-permission-symbol{display:grid;place-items:center;width:38px;height:38px;border:1px solid #dce5e0;border-radius:10px;background:#fff;flex-shrink:0}
.crm-permission[data-permission-state=approved] .crm-permission-symbol{color:#267249}
.crm-permission[data-permission-state=blocked] .crm-permission-symbol{color:#a53830}
.crm-permission-heading>div{flex:1;min-width:150px}
.crm-permission h4{margin:4px 0 0;font-size:17px;font-weight:600;line-height:1.4}
.crm-permission p{font-size:13px;line-height:1.65;margin:12px 0 0;overflow-wrap:anywhere}
.crm-permission small{display:block;margin-top:7px;font-size:12px;color:#526577}
.crm-permission .crm-permission-caption{font-size:12px;color:#526577}
.crm-permission .crm-permission-missing{font-weight:600}
.crm-permission-evidence{margin-top:14px;border-top:1px solid #dce4e0;padding-top:8px}
.crm-permission-evidence summary{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;font-size:13px;font-weight:500;list-style:none}
.crm-permission-evidence summary:after{content:'+';margin-left:auto;font-size:18px}
.crm-permission-evidence[open] summary:after{content:'−'}
.crm-permission-evidence dl{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:10px 0 0}
.crm-permission-evidence dt{font-size:12px;font-weight:600;margin-bottom:6px}
.crm-permission-evidence dd{margin:0;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.crm-permission button{min-height:44px;font-weight:500}
.crm-contact-note>div{min-width:0}
.crm-contact-note strong{font-size:12px;font-weight:600}
.crm-contact-dialog{display:flex;flex-direction:column;width:860px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
.crm-contact-dialog form{display:flex;flex-direction:column;min-height:0}
.crm-contact-dialog .sb-modal-body{min-height:0;overflow:auto}
.crm-contact-dialog .sb-modal-head,.crm-contact-dialog .sb-modal-actions{flex-shrink:0}
.crm-contact-dialog .sb-modal-actions{flex-wrap:wrap;gap:12px}
.crm-contact-dialog .input{width:100%;min-width:0;min-height:44px;box-sizing:border-box;font-weight:400}
.crm-contact-dialog .form-label{min-width:0;font-size:13px;font-weight:500}
.crm-consent-fields{grid-column:1/-1;min-width:0;margin:8px 0;padding:16px;border:1px solid #dfe5eb;border-radius:12px;background:#fafbfd}
.crm-consent-fields legend{display:inline-flex;align-items:center;gap:8px;padding:0 7px;font-size:14px;font-weight:600}
.crm-consent-fields>p{font-size:13px;line-height:1.6;margin:0 0 16px;color:#526577}
.crm-consent-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
.crm-consent-grid .crm-choice{display:flex;flex-direction:row;align-items:center;align-self:center;gap:10px;min-height:44px;margin:0;font-size:13px}
.crm-consent-grid .crm-choice input{flex:0 0 18px;width:18px;height:18px;margin:0;accent-color:var(--orange)}
.crm-consent-grid textarea{resize:vertical}
@media(max-width:640px){.crm-permission{margin:0 14px 16px;padding:14px}.crm-permission-heading>button{width:100%}.crm-permission-evidence dl,.crm-consent-grid{grid-template-columns:minmax(0,1fr)}.crm-contact-dialog{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.crm-contact-dialog .sb-modal-body{padding:14px}.crm-contact-dialog .sb-modal-actions>button{flex:1 1 120px}.crm-contact-dialog .crm-form-grid{grid-template-columns:minmax(0,1fr)}}
.crm-table .crm-select-column{width:44px;min-width:44px;text-align:center;padding:6px}
.crm-select-column input{width:19px;height:19px;accent-color:var(--orange);cursor:pointer}
.crm-bulk-dialog{display:flex;flex-direction:column;width:800px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
.crm-bulk-dialog form{display:flex;flex-direction:column;min-height:0}
.crm-bulk-dialog .sb-modal-body{min-height:0;overflow:auto}
.crm-bulk-dialog .sb-modal-actions,.crm-bulk-dialog .sb-modal-head{flex-shrink:0}
.crm-bulk-dialog p{font-size:13px;line-height:1.65;color:#526577}
.crm-bulk-dialog .form-label{margin-top:16px;font-size:13px;font-weight:500}
.crm-bulk-dialog textarea{width:100%;box-sizing:border-box;min-height:80px;resize:vertical;font:inherit}
.crm-bulk-scope{padding:12px 16px;border:1px solid #dce4ec;border-radius:10px}
.crm-bulk-scope legend{padding:0 6px;font-size:14px;font-weight:500}
.crm-bulk-dialog .crm-choice{display:flex;flex-direction:row;align-items:flex-start;gap:10px;font-size:13px;line-height:1.65}
.crm-bulk-dialog .crm-choice input{flex:0 0 18px;width:18px;height:18px;margin-top:3px;accent-color:var(--orange)}
.crm-bulk-dialog summary{cursor:pointer;min-height:44px;font-size:14px;font-weight:500;line-height:1.5}
.crm-bulk-list{list-style:none;margin:0 0 16px;padding:0;max-height:260px;overflow:auto;border:1px solid #e2e8ee;border-radius:10px}
.crm-bulk-list li{padding:10px 14px;border-bottom:1px solid #e2e8ee;overflow-wrap:anywhere}
.crm-bulk-list strong,.crm-bulk-list span,.crm-bulk-list small{display:block;font-size:12px;line-height:1.6}
.crm-bulk-list strong{font-weight:500}.crm-bulk-list small{color:#63778a}
.crm-bulk-count strong{font-size:25px;font-weight:600;color:#283f54}
.crm-bulk-confirm{padding:14px;border:1px solid #f0d7bf;border-radius:10px;background:#fffaf4}
@media(max-width:640px){.crm-bulk-dialog{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.crm-bulk-dialog .sb-modal-body{padding:14px}.crm-bulk-dialog .sb-modal-actions{flex-wrap:wrap}.crm-bulk-dialog .sb-modal-actions>button{flex:1 1 130px}}
.crm-toolbar>.crm-tools{position:relative;flex:0 1 auto;min-width:0;margin:0;padding:0;border:0}
.crm-tools summary{display:flex;align-items:center;gap:9px;box-sizing:border-box;min-height:44px;font-size:13px;font-weight:500;line-height:1.5;color:#34495e;cursor:pointer;list-style:none}
.crm-tools summary::-webkit-details-marker{display:none}
.crm-tools>summary{padding:10px 12px;border:1px solid #dce4ec;border-radius:8px;background:#fff}
.crm-tools summary>.crm-icon:last-child{flex:0 0 14px;width:14px;height:14px;margin-left:auto}
.crm-tools details[open]>summary>.crm-icon:last-child,.crm-tools[open]>summary>.crm-icon:last-child{transform:rotate(180deg)}
.crm-tools>summary:hover,.crm-tools-group>summary:hover{background:#f4f7fa}
.crm-tools summary:focus-visible,.crm-tools-item:focus-visible{outline:3px solid #f28a32;outline-offset:2px}
.crm-tools-selection{font-size:11px;font-weight:400;color:#657586}
.crm-tools-panel{position:absolute;z-index:40;top:calc(100% + 7px);left:0;right:auto;width:300px;max-width:calc(100vw - 76px);max-height:min(440px,60dvh);overflow:auto;box-sizing:border-box;padding:6px;border:1px solid #d8e1e9;border-radius:10px;background:#fff;box-shadow:0 10px 30px #172b3d24}
.crm-tools-group+ .crm-tools-group{border-top:1px solid #e8edf2}
.crm-tools-group>summary{padding:11px 10px;border-radius:6px}
.crm-tools-items{padding:0 0 6px 10px}
.crm-tools .crm-tools-item{display:flex;align-items:center;justify-content:flex-start!important;gap:9px;box-sizing:border-box;width:100%;min-height:44px;margin:0;padding:10px;border:0;border-radius:6px;background:transparent;font-family:inherit;font-size:13px;font-weight:400;line-height:1.5;text-align:left;text-decoration:none;white-space:normal;overflow-wrap:anywhere;cursor:pointer;color:#283f54}
.crm-tools .crm-tools-item:hover{background:#fff3e8;color:#a64b00}
.crm-tools-item>.crm-icon{flex:0 0 17px;width:17px;height:17px}
@media(max-width:640px){.crm-tools>summary{flex-wrap:wrap}.crm-tools-panel{width:280px}}

.crm-schedule-card{display:flex;flex:1 1 100%;flex-direction:column;gap:8px;min-width:0;margin-top:12px;padding:14px;border:1px solid #dfe6ed;border-radius:10px;background:#f8fafc;color:#172b3d}
.crm-schedule-card>button{align-self:flex-start;max-width:100%;white-space:normal;min-height:44px}
.crm-schedule-card p{margin:0;font-size:13px;line-height:1.5}
.crm-selected-campaign:has(.crm-schedule-card){flex-wrap:wrap}
body.theme-dark .crm-schedule-card{background:#202832;border-color:#43505e;color:#edf2f6}
@media(max-width:640px){.crm-schedule-card>button{align-self:stretch}}

/* Versandverwaltung: one column on phones, readable in both themes. */
.crm-campaign-steps{grid-template-columns:repeat(5,minmax(0,1fr))}
.crm-dispatch-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.crm-dispatch-heading h3,.crm-dispatch-item h4{margin:0 0 8px;overflow-wrap:anywhere}
.crm-dispatch-options{min-width:0;border:1px solid #b9c5d1;border-radius:10px;margin:14px 0;padding:14px}
.crm-dispatch-options legend{padding:0 6px;font-weight:600}
.crm-dispatch-options p,.crm-dispatch-note{font-size:13px;line-height:1.5}
.crm-dispatch-days{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
.crm-dispatch-days label{display:flex;align-items:center;gap:6px;min-height:44px;padding:6px 9px;border:1px solid #b9c5d1;border-radius:6px}
.crm-dispatch-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.crm-dispatch-item{min-width:0;padding:16px;background:#f8fafc;border:1px solid #cdd7e1;border-radius:10px;color:#172b3d;overflow-wrap:anywhere}
.crm-dispatch-item p{line-height:1.5;font-size:13px}
.crm-dispatch-item button{min-height:44px;white-space:normal;max-width:100%}
body.theme-dark .crm-dispatch-item{background:#202832;border-color:#43505e;color:#edf2f6}
body.theme-dark .crm-dispatch-options,body.theme-dark .crm-dispatch-days label{border-color:#68788a;color:#edf2f6}
@media(max-width:900px){.crm-campaign-steps{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.crm-campaign-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-dispatch-list{grid-template-columns:minmax(0,1fr)}.crm-dispatch-options{padding:10px}.crm-dispatch-options .crm-grid{grid-template-columns:minmax(0,1fr)}}

body.theme-dark .crm-dispatch-options input{color-scheme:dark}
