.crm{min-width:0}.crm-toolbar{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:18px 0}.crm-search{flex:1 1 300px}.crm-search input{width:100%}.crm-table-wrap{width:100%;max-width:100%;overflow:auto;border:1px solid #dce3ee;border-radius:12px;max-height:68vh;background:white}.crm-table{border-collapse:separate;border-spacing:0;min-width:100%;font-size:13px}.crm-table th{position:sticky;top:0;background:#edf2f8;z-index:2;text-align:left;white-space:nowrap;padding:10px 12px}.crm-table th button{padding:0;background:transparent;border:0;text-align:left;font-weight:600;font-size:inherit}.crm-table td{border-top:1px solid #e5e9ef;vertical-align:top;padding:10px 12px}.crm-table tbody tr:hover{background:#f4f7fb}.crm-table .crm-cell{min-width:145px;max-width:320px;max-height:80px;overflow:hidden;overflow-wrap:anywhere;line-height:1.45}.crm-cell small{display:block;margin-top:5px;color:#667085}.crm-table input[type=checkbox],.crm-dialog input[type=checkbox],.crm-dialog input[type=radio],.crm-card input[type=checkbox]{width:17px;height:17px;padding:0;accent-color:#315de1;margin:0 7px 0 0;flex:none}.crm-pager{margin-top:18px}.crm-chip{background:#edf3ff;border-radius:20px;font-size:12px;padding:6px 12px}.crm-dialog{width:min(650px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:90vh;overflow:auto;padding:24px;border:1px solid #d5deed;border-radius:16px}.crm-dialog::backdrop{background:#15264170}.crm-dialog label,.crm-form label{display:block;margin:12px 0 6px}.crm-dialog input:not([type=checkbox]):not([type=radio]),.crm-dialog select,.crm-dialog textarea,.crm-form input,.crm-form select,.crm-form textarea{display:block;width:100%;margin-top:6px;max-width:100%}.crm-dialog [role=alert],.crm-form [role=alert]{color:#a63131}.crm-facet{border-bottom:1px solid #e2e7ef;padding:12px 0}.crm-facet summary{font-weight:600;cursor:pointer}.crm-facet [data-options]{max-height:240px;overflow:auto;margin-top:12px}.crm-check{display:flex!important;align-items:center;gap:4px;font-weight:400!important;line-height:1.4;padding:5px}.crm-check input{display:inline-block!important}.crm-sticky{position:sticky;bottom:-24px;background:white;padding:15px 0;border-top:1px solid #e5e9ef}.crm-advanced{margin:20px 0}.crm-column-row{display:flex;gap:8px;align-items:center;margin:8px 0}.crm-column-row label,.crm-column-row>button:first-child{flex:1}.crm-column-row button{padding:5px 9px}.crm-card>.card,.crm-card #crm-card-body>.card{margin-top:16px}.crm-tabs{margin:18px 0}.crm-material{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:14px;line-height:1.65;max-height:65vh;overflow:auto;background:#f8fafc;padding:16px;border:1px solid #e3e8ef;border-radius:10px}.crm-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.crm-card details{margin:15px 0}.crm-card h2{overflow-wrap:anywhere}.crm-card textarea{resize:vertical}.crm-form .card{margin:16px 0}.crm-add{padding:10px 0}.crm-dialog .row label{flex:1;min-width:130px}@media(max-width:700px){.crm-grid{grid-template-columns:1fr}.crm-toolbar button{flex:1 1 40%}.crm-dialog{padding:16px}.crm-sticky{bottom:-16px}.crm-table-wrap{max-height:65vh}.crm-tabs button{flex:1 1 40%}.crm-card h2{font-size:20px}.crm-card .row{flex-wrap:wrap}}
/* CRM workspace: compact columns, persistent table and detail drawer. */
.crm-layout .main{max-width:none;padding:30px 24px;min-width:0}.crm-layout.crm-menu-collapsed{grid-template-columns:1fr}.crm-menu-collapsed>.sidebar{display:none}.crm-toolbar{gap:7px}.crm-toolbar>button{font-size:13px;padding:8px 10px}.crm-search{flex-basis:240px}.crm-table{table-layout:fixed;min-width:100%;font-size:13px}.crm-table th,.crm-table td{padding:8px}.crm-table th{white-space:normal;vertical-align:middle;line-height:1.25;height:48px}.crm-table th button{white-space:normal;width:100%;line-height:1.25;overflow-wrap:normal}.crm-table .crm-cell{min-width:0;max-width:none;max-height:none;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.crm-table td[data-column=status] .crm-cell{display:block;overflow:visible}.crm-table [data-column=id]{position:sticky;left:36px;z-index:1;background:#fff;white-space:nowrap}.crm-table .crm-checkbox-col{position:sticky;left:0;z-index:1;background:#fff;padding-left:9px}.crm-table th[data-column=id],.crm-table th.crm-checkbox-col{z-index:4;background:#edf2f8}.crm-table tr[data-publication]{cursor:pointer}.crm-table tr.crm-selected,.crm-table tr.crm-selected>[data-column=id],.crm-table tr.crm-selected>.crm-checkbox-col{background:#eef4ee}.crm-table tr:hover>[data-column=id],.crm-table tr:hover>.crm-checkbox-col{background:#f4f7fb}.crm-table tr:focus-visible{outline:2px solid #587c68;outline-offset:-2px}.crm-table [data-column=id]{box-shadow:3px 0 4px -4px #425746}.crm-table [data-column=published],.crm-table [data-column=actionDate],.crm-table [data-column=sentDate],.crm-table [data-column=changeDate]{font-variant-numeric:tabular-nums;white-space:nowrap}.crm-cell small{margin-top:4px;line-height:1.35}.crm-status{display:inline-flex;padding:3px 6px;border-radius:5px;font-size:12px;font-weight:500;line-height:1.3;white-space:normal;background:#edf1ed;color:#546659}.crm-status-progress{background:#e6edf4;color:#365572}.crm-status-comment{background:#ddf1ed;color:#236155}.crm-status-success{background:#e6f2e8;color:#306242}.crm-status-muted{background:#ededed;color:#626262}.crm-cell .crm-stage-warning,.crm-stage-warning{color:#80570f;background:#fff4d6;padding:3px 5px;border-radius:4px}.crm-cell .crm-stage-error,.crm-stage-error{color:#9c342d;background:#ffebe7;padding:3px 5px;border-radius:4px}.crm-stage{display:block;font-size:12px;color:#667085;margin-top:4px}.crm-card-status{margin:0 0 16px;font-size:13px}.crm-card-status .crm-stage{display:inline-block;margin:0 6px}.crm-batch-active{padding:10px 12px;background:#eaf0e7;border:1px solid #d8e3d8;border-radius:8px;gap:8px}.crm-batch-active button{padding:7px 10px;font-size:13px}.crm-danger{color:#973c32;border-color:#d6ada8}.crm-batch-active .crm-danger{margin-left:auto}.crm-coming-soon{cursor:not-allowed!important}.crm-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(880px,74vw);max-width:100vw;height:100dvh;max-height:100dvh;border-radius:14px 0 0 14px;padding:0 22px 24px;overflow:auto}.crm-drawer-heading{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:14px;background:white;padding:12px 0;margin-bottom:12px;border-bottom:1px solid #dce4dc}.crm-drawer-heading button{padding:6px 10px}.crm-drawer .crm-card .card{padding:18px}.crm-drawer .crm-tabs{gap:6px}.crm-drawer .crm-tabs button{font-size:13px;padding:8px 10px}.crm-drawer .crm-card h2{font-size:21px}.crm-layout .page-heading{margin-bottom:8px}@media(max-width:800px){.crm-layout .main{padding:22px 14px}.crm-drawer{width:100vw;border-radius:0;padding:0 16px 20px}.crm-layout .crm-search{flex-basis:100%}.crm-layout .crm-toolbar>button{flex:0 1 auto}.crm-layout #crm-menu{display:none}.crm-layout.crm-menu-collapsed>.sidebar{display:flex}.crm-batch-active .crm-danger{margin-left:0}.crm-drawer .crm-tabs button{flex:1 1 auto}.crm-table-wrap{max-height:65vh}}

.crm-autofill-progress{background:#eef4f8;border-radius:8px;padding:8px 12px;margin:10px 0;font-size:14px}.crm-autofill-progress[hidden]{display:none}.crm-analysis-jobs{padding:0;list-style:none}.crm-analysis-jobs li{display:grid;gap:4px;padding:10px 0;border-bottom:1px solid #dce3e8}.crm-analysis-jobs li span,.crm-analysis-jobs small{font-size:13px}.crm-analysis-field{padding:14px 0;border-bottom:1px solid #dce3e8}.crm-analysis-field p,.crm-analysis-field blockquote{white-space:pre-wrap;overflow-wrap:anywhere}.crm-analysis-field blockquote{margin:0 0 10px;padding-left:12px;border-left:3px solid #7c9a91}.crm-analysis-field button{margin-top:8px}.crm-analysis-meta{margin:16px 0}.crm-analysis-link{font-size:14px;margin:8px 0}.crm-analysis-link button{font-size:inherit;padding:4px}.crm-dialog details>summary{cursor:pointer}.crm-dialog [data-model]{margin:12px 0}

.crm-table td[data-column=tags] .crm-cell{display:block;overflow:visible}.crm-table-tags{display:flex;flex-wrap:wrap;gap:3px;font-size:11px;line-height:1.25}.crm-table-tags>span{padding:2px 4px;border-radius:4px;background:#edf2ec;color:#385544;max-width:100%;overflow-wrap:anywhere}.crm-table-tags .crm-tags-more{background:none;color:#687369;white-space:nowrap}.crm-publication-tags{margin:12px 0 18px}.crm-publication-tags h3{font-size:15px;margin-bottom:8px}.crm-publication-tags [data-publication-tags]{display:flex;flex-wrap:wrap;gap:6px}.crm-publication-tags .crm-chip{font-size:12px;line-height:1.35;padding:6px 9px;white-space:normal;text-align:left;overflow-wrap:anywhere;max-width:100%}.crm-publication-tags .crm-chip:focus-visible{outline:2px solid #587c68;outline-offset:2px}
/* Article reading shares the site's typography and uses only saved local media. */
.crm-reader{width:min(1500px,96vw);max-width:96vw;height:92dvh;max-height:94dvh;display:flex;flex-direction:column;gap:8px;overflow:hidden}.crm-reader h2{margin:0}.crm-reader-columns{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(0,1.4fr) minmax(0,1.4fr);min-height:0;flex:1;gap:12px}.crm-reader-columns>[data-panel]{overflow:auto;min-width:0;padding:14px;background:#fff;border:1px solid #dce4e8;border-radius:8px;overscroll-behavior:contain;line-height:1.65;overflow-wrap:anywhere}.crm-reader-columns img{max-width:100%;height:auto;display:block}.crm-reader-columns figure{margin:16px 0}.crm-reader-caption{color:#596963;font-size:.9em}.crm-reader-quote{text-align:left;display:block;width:100%;margin:0 0 12px;font-size:13px;line-height:1.5;white-space:normal}.crm-reader-quote small{display:block;color:#52675f;margin-top:8px}.crm-reader-quote.selected{border-color:#245f48;background:#eef7f1}.crm-reader .reader-hit{background:#fff0b6;border-radius:2px}.crm-reader .reader-mention{color:#8b1e24;font-weight:600}.crm-reader-no-quotes .crm-reader-columns{grid-template-columns:1fr 1fr}.crm-reader-no-quotes [data-panel=quotes]{display:none}.crm-reader-tabs [data-pane]{display:none}.crm-removed-blocks{font-size:13px;color:#65746f;margin-top:24px}.crm-match{display:block;font-size:12px;line-height:1.4;white-space:normal;color:#52675f;margin-top:8px}.crm-match mark{background:#fff0b6}.crm-url-review{max-height:55vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.crm-url-review img{max-width:100%;max-height:500px;object-fit:contain}#article-url{width:100%}
@media(max-width:850px){.crm-reader{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:12px;border-radius:0}.crm-reader-columns,.crm-reader-no-quotes .crm-reader-columns{display:block}.crm-reader-columns>[data-panel]{display:none;height:100%;box-sizing:border-box}.crm-reader[data-pane=original] [data-panel=original],.crm-reader[data-pane=translation] [data-panel=translation],.crm-reader[data-pane=quotes] [data-panel=quotes]{display:block}.crm-reader-tabs [data-pane]{display:inline-block}.crm-reader-tabs [data-toggle-quotes]{display:none}.crm-reader-tabs{gap:4px;flex-wrap:wrap}.crm-reader-tabs button{font-size:12px;padding:8px}.crm-reader h2{font-size:18px}}

.article-export-items{max-height:50vh;overflow:auto}.article-edition-review{max-height:55vh;overflow:auto}.article-edition-review img{display:block;max-width:100%;max-height:420px;object-fit:contain;margin:1rem auto}.article-export-items select{max-width:100%}

.article-export-review{width:min(1250px,96vw);max-width:96vw}.article-export-compare{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.article-export-compare section{min-width:0;max-height:64vh;overflow:auto;padding:.5rem}.article-export-compare p{white-space:pre-wrap}.article-export-compare img{max-width:100%;height:auto}@media(max-width:700px){.article-export-compare{grid-template-columns:1fr}.article-export-compare section{max-height:40vh}}

/* CRM reading layout, 11 October 2026. */
.crm-layout .crm-toolbar{align-items:center;column-gap:12px;row-gap:10px}
.crm-layout .crm-search{flex:1 0 100%}
.crm-quick-row,.crm-table-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.crm-table-actions{margin-left:auto}
.crm-toolbar button{font-size:13px;padding:8px 10px}
.crm-filter-active{background:#e8f1ed;border-color:#92b5a5}
#crm-chips{margin-bottom:8px;gap:6px}
#crm-chips .crm-chip{max-width:420px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.crm-table{font-size:14px}
.crm-table th,.crm-table td{padding:10px 9px}
.crm-table th{padding-right:14px}
.crm-table th[data-column=title],.crm-table th[data-column=titleRu]{padding-right:20px}
.crm-table td[data-column=title] .crm-cell,.crm-table td[data-column=titleRu] .crm-cell{display:block;overflow:visible;line-height:1.45}
.crm-table td[data-column=title] a,.crm-table td[data-column=titleRu] a{font-weight:600;color:#263c33}
.crm-table td[data-column=title] small,.crm-table td[data-column=titleRu] small{font-size:12px;font-weight:400}
.crm-table tbody tr{background:#fff}
.crm-table tbody tr:hover,.crm-table tbody tr:hover>[data-column=id],.crm-table tbody tr:hover>.crm-checkbox-col{background:#f2f6f3}
.crm-table tbody tr.crm-selected,.crm-table tbody tr.crm-selected>[data-column=id],.crm-table tbody tr.crm-selected>.crm-checkbox-col{background:#e1eee6}
.crm-table tbody tr.crm-selected:hover,.crm-table tbody tr.crm-selected:hover>[data-column=id],.crm-table tbody tr.crm-selected:hover>.crm-checkbox-col{background:#d7e9df}
.crm-table [data-column=createdAt]{font-variant-numeric:tabular-nums;white-space:nowrap}
.crm-table .crm-cell small,.crm-stage{font-size:12px}
.crm-table-tags{font-size:12px;gap:4px;line-height:1.3;max-height:86px;overflow:hidden}
.crm-table-tags.crm-tags-expanded{max-height:none}
.crm-table-tags>span{background:#eef1ef;color:#34493f;padding:3px 5px}
.crm-tags-expand[hidden]{display:none}.crm-tags-expand{display:block;padding:3px 0!important;margin-top:4px;border:0;background:transparent;font-size:12px;color:#406b58}
.crm-status{border-radius:12px;padding:3px 8px;background:#eef0ef;color:#526059}
.crm-column-resize{position:absolute;right:0;top:0;width:10px;height:100%;cursor:col-resize;touch-action:none;border-right:2px solid transparent}
.crm-column-resize:hover,.crm-column-resize:focus-visible{border-color:#789c88;outline:0}
.crm-quick-dialog{width:min(400px,calc(100vw - 24px));max-height:min(560px,85vh);padding:16px}
.crm-quick-dialog [data-quick-options]{max-height:330px;overflow:auto;margin:10px 0}
.crm-quick-dialog details{padding:6px 0}
.crm-quick-dialog summary{cursor:pointer;font-weight:600}
.crm-quick-dialog .crm-check{font-size:14px;min-height:34px}
.crm-quick-footer{position:sticky;bottom:-16px;background:white;border-top:1px solid #e1e7e2;padding:12px 0 0}
.crm-filter-dot{width:9px;height:9px;border-radius:50%;background:#b4bcb8;flex:none;margin:0 4px}
.crm-dot-progress{background:#7da4d1}.crm-dot-comment{background:#73b7ab}.crm-dot-success{background:#78ad86}
.crm-table-wrap{padding-bottom:22px}
.crm-horizontal-bar{position:fixed;height:22px;z-index:4;background:#f4f6f4;border:1px solid #dbe2dd;border-radius:5px;padding:2px 5px;box-sizing:border-box}
.crm-horizontal-bar[hidden]{display:none}
.crm-horizontal-bar input{appearance:none;-webkit-appearance:none;display:block;width:100%;height:14px;padding:0;margin:0;border:0;background:#dce4de;border-radius:8px;cursor:ew-resize;min-width:0}
.crm-horizontal-bar input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:var(--crm-thumb,60px);height:12px;border-radius:6px;background:#7d9385}
.crm-horizontal-bar input::-moz-range-thumb{width:var(--crm-thumb,60px);height:12px;border:0;border-radius:6px;background:#7d9385}
.crm-horizontal-bar input:focus-visible{outline:2px solid #38634d;outline-offset:1px}
@media(max-width:1100px){.crm-quick-row [data-quick=legal]{display:none}.crm-table-actions{margin-left:0}}
@media(max-width:700px){.crm-quick-row,.crm-table-actions{width:100%;gap:5px}.crm-quick-dialog{margin:auto!important;left:auto!important;top:auto!important}.crm-quick-dialog [data-quick-options]{max-height:50vh}.crm-layout .crm-toolbar button{flex:0 1 auto}.crm-table{font-size:14px}}

.crm-table-tags:not(.crm-tags-expanded)>span.crm-tag-overflow{visibility:hidden}

/* Continuous CRM viewport. Scope every override to this screen. */
html.crm-screen,html.crm-screen body{height:100%;overflow:hidden}
.crm-layout{height:100dvh;min-height:0;overflow:hidden}
.crm-layout .main{display:flex;flex-direction:column;min-height:0;height:100%;padding:18px 22px 12px;overflow:hidden}
.crm-layout>.sidebar{min-height:0;overflow:auto}
.crm-layout .page-heading{flex:none}.crm-layout .page-heading h1{font-size:26px}
.crm-layout .crm{display:flex;flex-direction:column;flex:1;min-height:0}
.crm-layout .crm>div:not(.crm-table-wrap){flex-shrink:0}
.crm-layout .crm-toolbar{margin:10px 0;position:relative}
.crm-layout #crm-count{margin:5px 0 8px;font-size:13px;flex:none}
.crm-layout .crm-table-wrap{flex:1 1 0;min-height:70px;max-height:none;padding-bottom:0;overflow-anchor:none;overscroll-behavior:contain}
.crm-layout .crm-horizontal-bar{position:relative;left:auto!important;top:auto!important;width:100%!important;flex:0 0 22px;border-radius:0 0 5px 5px}
.crm-layout .crm-table .crm-virtual-spacer>td{border:0;padding:0;line-height:0}
.crm-layout .crm-row-loading>td{color:#6a7870;vertical-align:middle;font-size:13px;background:#fafcfb}
.crm-layout .crm-row-loading button{position:sticky;left:145px}
.crm-layout .crm-table{overflow-anchor:none}
.crm-layout #crm-chips{flex-wrap:nowrap;overflow:auto;max-height:40px;margin:0 0 5px;flex:none}
.crm-layout #crm-chips:empty{display:none}.crm-layout #crm-chips>*{flex-shrink:0}
.crm-layout #crm-selection{flex-wrap:nowrap;overflow:auto;max-height:58px;flex:none}
.crm-layout #crm-selection>*{flex-shrink:0;white-space:nowrap}
.crm-actions-toggle{display:none}
@media(max-width:1100px),(max-height:750px){
 .crm-layout .crm-toolbar{gap:6px}
 .crm-layout .crm-quick-row{flex:1;min-width:0;flex-wrap:nowrap;overflow:auto;width:auto}
 .crm-layout .crm-quick-row button{flex-shrink:0;white-space:nowrap}
 .crm-layout .crm-actions-toggle{display:block}
 .crm-layout .crm-table-actions{display:none;position:absolute;right:0;top:100%;margin:4px 0 0;z-index:8;background:#fff;padding:12px;border:1px solid #dce3ee;border-radius:10px;box-shadow:0 6px 20px #183e3120;max-width:340px;max-height:60dvh;overflow:auto}
 .crm-layout .crm-table-actions.crm-actions-open{display:flex}
 .crm-layout .main{padding:12px}
 .crm-layout .crm-toolbar button{padding:6px 8px}
 .crm-layout .crm-autofill-progress{margin:4px 0;padding:6px 8px}
}
@media(max-width:800px){
 .crm-layout{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr)}
 .crm-layout>.sidebar,.crm-layout.crm-menu-collapsed>.sidebar{display:none}
 .crm-layout.crm-mobile-menu>.sidebar{display:flex;position:fixed;inset:0 auto 0 0;width:238px;height:100dvh;z-index:15;padding-top:58px;box-shadow:6px 0 24px #183e3140}
 .crm-layout #crm-menu{display:block}
 .crm-layout.crm-mobile-menu #crm-menu{position:fixed;left:12px;top:12px;z-index:16;background:white}
 .crm-layout .page-heading h1{font-size:22px}
 .crm-layout .crm>div:first-child{gap:6px}
 .crm-layout .crm>div:first-child button,.crm-layout .crm>div:first-child a{font-size:12px;padding:6px 8px;white-space:nowrap}
 .crm-layout .crm-search{font-size:12px}.crm-layout .crm-search input{padding:7px 9px}
 .crm-layout .crm-toolbar{margin:6px 0}
 .crm-layout .crm-quick-row [data-quick=tags]{display:none}
}
@media(max-height:550px){
 .crm-layout .page-heading{display:none}
 .crm-layout .crm-toolbar{margin:4px 0}
 .crm-layout .crm-search{flex:1 1 240px}
 .crm-layout .crm-quick-row{flex:1 1 250px}
 .crm-layout .crm-autofill-progress{font-size:12px}
}

.crm-dialog [hidden]{display:none!important}

.crm-quick-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.crm-quick-dialog>[data-quick-options]{flex:1 1 auto;min-height:0}
.crm-quick-dialog>:not([data-quick-options]){flex:none}
.crm-quick-dialog .crm-quick-footer{position:static}
/* Statistics: a fixed viewport and overlays leave the table its full height. */
.crm-stat-dialog[open]{display:flex;flex-direction:column;width:min(1360px,calc(100vw - 24px));max-width:calc(100vw - 24px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);overflow:hidden;padding:14px;gap:6px;box-sizing:border-box}
.crm-stat-dialog>*{flex:none;margin:0}.crm-stat-dialog [hidden]{display:none!important}
.crm-stat-dialog .crm-stat-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.crm-stat-dialog h2{font-size:24px;line-height:1.2;margin:0}
.crm-stat-actions{display:flex;align-items:center;gap:5px}
.crm-stat-dialog .crm-stat-actions button,.crm-stat-dialog .crm-stat-actions a{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:5px 10px;font-size:14px;white-space:nowrap;margin:0}
.crm-stat-dialog .crm-stat-actions [data-close],.crm-stat-dialog .crm-stat-actions [data-refresh]{font-size:22px;padding:3px 8px}
.crm-stat-dialog .crm-stat-controls{display:grid;grid-template-columns:minmax(210px,280px) minmax(200px,1fr) auto auto;align-items:center;gap:8px}
.crm-stat-dialog .crm-stat-controls button,.crm-stat-dialog .crm-stat-controls select{height:40px;margin:0;padding:5px 12px;font-size:14px;line-height:1.15;min-width:0;width:100%}
.crm-stat-dialog [data-state]{font-size:12px;line-height:20px;height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#586961}
.crm-stat-dialog [data-error],.crm-stat-dialog [data-panel-error]{margin:0;font-size:13px;line-height:1.35;max-height:90px;overflow:auto;overflow-wrap:anywhere}
.crm-stat-dialog [data-error]:empty,.crm-stat-dialog [data-panel-error]:empty{display:none}
.crm-stat-dialog .crm-stat-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;border:1px solid #dae2df;border-radius:8px}
.crm-stat-table{border-collapse:separate;border-spacing:0;min-width:100%;font-size:14px;line-height:1.35;font-variant-numeric:tabular-nums}
.crm-stat-table th,.crm-stat-table td{border-right:1px solid #dae2df;border-bottom:1px solid #dae2df;padding:4px 10px;background:#fff;height:40px}
.crm-stat-table thead th{position:sticky;top:0;z-index:3;background:#edf3f1;min-width:110px;text-align:right}
.crm-stat-table th:first-child{position:sticky;left:0;text-align:left;min-width:220px;max-width:280px;z-index:2;overflow-wrap:break-word}
.crm-stat-table thead th:first-child{z-index:4}
.crm-stat-table td{text-align:right}.crm-stat-table td button{min-width:36px;min-height:32px;padding:4px 0 4px 8px;text-align:right;color:#205a49;border:0;background:transparent;font:inherit;text-decoration:underline;text-underline-offset:3px}
.crm-stat-table .crm-stat-total th,.crm-stat-table .crm-stat-total td{background:#eaf0ed;font-weight:650}.crm-stat-table tbody tr:hover td,.crm-stat-table tbody tr:hover th{background:#f6f7ed}
.crm-stat-section th{background:#e7eee9!important;color:#285f4e;font-size:13px;text-align:left!important;height:32px}
.crm-stat-dialog .crm-stat-bar{position:relative;width:100%;flex:0 0 22px}.crm-stat-dialog .crm-stat-bar input{margin:0;padding:0}
.crm-stat-overlay{position:absolute;inset:0;z-index:10;background:#213b3326;display:flex;justify-content:flex-end;align-items:flex-start;padding:62px 14px 14px}
.crm-stat-panel{display:flex;flex-direction:column;min-height:0;max-height:100%;width:min(620px,100%);background:white;border:1px solid #c5d3cc;border-radius:12px;box-shadow:0 8px 28px #173d3433;overflow:hidden}
.crm-stat-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-bottom:1px solid #dce4df;flex:none}
.crm-stat-panel h3{margin:0;font-size:20px}.crm-stat-panel h4{margin:12px 0 4px}
.crm-stat-panel [data-panel-close]{width:36px;height:36px;padding:0;font-size:22px}
.crm-stat-panel-body{overflow:auto;overscroll-behavior:contain;padding:0 14px 14px;min-height:0}
.crm-stat-panel>[data-panel-error]:not(:empty){padding:8px 14px;border-top:1px solid #edd5d2;flex:none}
.crm-stat-panel .row{flex-wrap:wrap;gap:8px}.crm-stat-panel .row label{min-width:0}
.crm-stat-projects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px}
.crm-stat-panel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.crm-stat-panel .crm-check{margin:2px 0;font-size:14px;min-height:36px}
.crm-stat-date{display:flex;align-items:center;gap:5px;width:100%}
.crm-stat-dialog .crm-stat-date>input{min-width:0;width:100%;flex:1}
.crm-stat-calendar{position:relative;display:inline-flex;width:38px;height:42px;align-items:center;justify-content:center;border:1px solid var(--line,#d4ded8);border-radius:8px;flex:none;margin-top:6px}
.crm-stat-dialog .crm-stat-calendar>input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;box-sizing:border-box}
.crm-stat-calendar>input::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:auto;height:auto;cursor:pointer}
.crm-stat-calendar:focus-within{outline:2px solid #285f4e}
.crm-stat-country-options,.crm-stat-tag-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 12px;margin:8px 0}
.crm-country-group{padding:8px 4px}.crm-country-group>summary{display:list-item}.crm-country-group>.crm-check{padding-left:28px}
@media(max-width:700px){
 .crm-stat-dialog[open]{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;padding:8px;gap:4px;border:0;border-radius:0}
 .crm-stat-dialog h2{font-size:20px}.crm-stat-dialog .crm-stat-header{gap:6px}
 .crm-stat-dialog .crm-stat-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .crm-stat-dialog .crm-stat-controls button,.crm-stat-dialog .crm-stat-controls select{padding:4px 8px;font-size:13px;height:40px}
 .crm-stat-table th:first-child{min-width:170px;max-width:180px;word-break:normal}
 .crm-stat-table th,.crm-stat-table td{padding:4px 8px}
 .crm-stat-overlay{padding:52px 8px 12px}
 .crm-stat-panel{width:100%}
 .crm-stat-panel-body{padding:0 10px 12px}
 .crm-stat-panel input:not([type=checkbox]),.crm-stat-panel select{font-size:16px}
 .crm-stat-country-options,.crm-stat-tag-options{grid-template-columns:1fr}
 .crm-stat-panel-grid{gap:8px}.crm-stat-panel .row>label{width:100%}
 .crm-stat-panel .crm-check{min-height:40px}
}
@media(max-width:350px){.crm-stat-dialog h2{font-size:18px}.crm-stat-dialog .crm-stat-actions button,.crm-stat-dialog .crm-stat-actions a{padding:4px 8px}.crm-stat-table th:first-child{min-width:154px;max-width:164px}.crm-stat-panel-grid{grid-template-columns:1fr}}
/* Letter sending and the compact publication timeline. */
.crm-letter-dates{display:grid;grid-template-columns:minmax(180px,1fr) 2fr;gap:10px 20px}
.crm-letter-dates dt{color:var(--muted,#758178)}.crm-letter-dates dd{margin:0;overflow-wrap:anywhere}
.crm-dispatch{min-width:0;overflow-wrap:anywhere}.crm-dispatch [hidden]{display:none!important}
.crm-dispatch fieldset{border:1px solid #d3dcd6;border-radius:12px;padding:16px;margin:16px 0}
.crm-dispatch .crm-check{display:flex;gap:10px;align-items:flex-start}
.crm-dispatch input[type=radio]{width:auto;flex:none;margin-top:5px}
.crm-dispatch select{max-width:100%}.crm-dispatch li{margin:8px 0}
@media(max-width:600px){.crm-letter-dates{grid-template-columns:1fr;gap:4px}.crm-letter-dates dd{margin-bottom:12px}.crm-dispatch .row{align-items:stretch}.crm-dispatch .row button{flex:1 1 auto}}

/* The plan reuses the publication table/cards; only its scope and actions change. */
.crm-report-active > .crm-toolbar, .crm-report-active > #crm-chips, .crm-report-active > .row.between { display:none; }
.crm-plan { padding:12px 0; }
.crm-plan h2 { margin:0; }
.crm-plan p { margin:8px 0; }
.crm-plan-warnings { margin:8px 0; }
.crm-plan-warnings ul { max-height:180px; overflow:auto; }
.crm-plan-warnings button { text-align:left; overflow-wrap:anywhere; }
.crm-report-active .crm-table-wrap { min-height:220px; }
@media(max-width:800px) { .crm-plan .row { gap:8px; } .crm-plan h2 { font-size:1.3rem; } .crm-plan .muted { font-size:.85rem; } }

/* Autofill workbench: fixed controls, bounded virtual list, no main-table preferences. */
dialog.crm-inbox{width:min(1120px,calc(100vw - 32px));max-width:none;height:min(850px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);padding:20px;overflow:hidden}
dialog.crm-inbox[open]{display:flex;flex-direction:column;gap:12px}
.crm-inbox header h2{margin:0}.crm-inbox p{margin:4px 0}
.crm-inbox-tools{display:flex;gap:16px}.crm-inbox-tools label:first-child{flex:0 0 220px}.crm-inbox-tools label:last-child{flex:1}
.crm-inbox .crm-table-wrap{flex:1;min-height:130px;width:100%;max-height:none;overflow:auto}
.crm-inbox .crm-table{table-layout:fixed;width:100%;min-width:650px}
.crm-inbox .crm-table th:first-child,.crm-inbox .crm-table td:first-child{width:40px;position:static}
.crm-inbox .crm-table th:nth-child(2){width:110px}.crm-inbox .crm-table th:nth-child(3){width:150px}.crm-inbox .crm-table th:nth-child(5){width:200px}
.crm-inbox .crm-table small{display:block;color:#64748b;margin-top:4px}
.crm-inbox .crm-inbox-title{padding:0;border:0;background:transparent;box-shadow:none;text-align:left;color:inherit;font-weight:600;white-space:normal}
.crm-inbox-tabs button[aria-current=true]{background:#e2eee8;border-color:#285d4c;font-weight:600}
.crm-inbox-footer{flex:none;border-top:1px solid #d6e0da;padding-top:10px;background:#fff}
.crm-inbox-footer [role=alert]:empty{display:none}.crm-inbox-direct[open]{height:auto}
.crm-inbox [data-mode-note],.crm-inbox [data-scope-note]{font-size:13px}
.crm-inbox details[open] [data-model]{max-height:150px;overflow:auto}
@media(max-width:600px){dialog.crm-inbox{width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);padding:12px}.crm-inbox-tools{gap:8px}.crm-inbox-tools label:first-child{flex:0 0 130px}.crm-inbox-tools input{min-width:0}.crm-inbox-footer .row{gap:6px}.crm-inbox h2{font-size:21px}.crm-inbox .crm-table-wrap{min-height:80px}}

/* Keep the list usable on laptop and phone heights. */
dialog.crm-inbox[open]{gap:8px}
.crm-inbox>header,.crm-inbox>.crm-inbox-tabs,.crm-inbox>.crm-inbox-tools{flex:none}
.crm-inbox .crm-inbox-tools label{margin:0;font-size:12px}
.crm-inbox button{padding:8px 12px;font-size:14px}
.crm-inbox header h2{font-size:20px}
.crm-inbox details{margin:6px 0}
.crm-inbox .crm-virtual-spacer>td{padding:0;border:0;line-height:0}
.crm-inbox [data-scope-note]{max-height:40px;overflow:auto}
.crm-inbox [data-preview]{font-size:13px}
.crm-inbox-footer{max-height:45%;overflow:auto}
.crm-inbox-direct .crm-inbox-footer{max-height:none}
.crm-inbox tr:has(input:checked){background:#e7f1ec}
@media(max-width:600px){.crm-inbox .crm-inbox-tabs{gap:4px;flex-wrap:nowrap}.crm-inbox .crm-inbox-tabs button{padding:7px;font-size:12px}.crm-inbox-footer{max-height:47%}}
@media(max-height:500px){dialog.crm-inbox[open]{padding:10px;gap:4px}.crm-inbox button{padding:5px 9px}.crm-inbox .crm-inbox-tools label{font-size:11px}.crm-inbox .crm-inbox-tools input,.crm-inbox .crm-inbox-tools select{margin-top:2px;padding:5px}.crm-inbox-footer{max-height:120px}.crm-inbox .crm-table-wrap{min-height:70px}}

.crm-inbox [data-scope-note]:empty{display:none}.crm-inbox .crm-table .crm-inbox-mobile{display:none}
@media(max-width:600px){.crm-inbox .crm-table{min-width:0}.crm-inbox .crm-table th:nth-child(3),.crm-inbox .crm-table td:nth-child(3),.crm-inbox .crm-table th:nth-child(5),.crm-inbox .crm-table td:nth-child(5){display:none}.crm-inbox .crm-table th:first-child,.crm-inbox .crm-table td:first-child{width:30px}.crm-inbox .crm-table th:nth-child(2){width:90px}.crm-inbox .crm-table th,.crm-inbox .crm-table td{padding:7px 5px}.crm-inbox .crm-table .crm-inbox-mobile{display:block;font-size:11px;line-height:1.3}.crm-inbox .crm-inbox-title{font-size:13px;line-height:1.35}.crm-inbox [data-mode-note]{font-size:12px;line-height:1.4}}

.crm-inbox .crm-table .crm-virtual-spacer>td{width:auto}
@media(max-width:600px){.crm-inbox .crm-table th:nth-child(4){width:calc(100% - 120px)}}

.article-export-inbox [data-selection-pane]{display:flex;flex-direction:column;min-height:0;flex:1}.article-export-inbox [hidden]{display:none!important}.article-export-inbox .crm-table-wrap{min-height:180px;flex:1}.article-export-inbox [data-history-pane]{overflow:auto;min-height:0}.article-export-inbox .article-selection-actions{flex-wrap:wrap}.article-export-inbox .crm-inbox-tools{display:flex;gap:.7rem;align-items:end;flex-wrap:wrap}.article-export-inbox .crm-inbox-tools label{flex:1;min-width:180px}.article-export-inbox .crm-table{width:100%;min-width:640px}.article-export-inbox .crm-table td:nth-child(4){min-width:260px}.article-export-inbox footer{flex-wrap:wrap}@media(max-width:600px){.article-export-inbox .crm-table{min-width:580px}.article-export-inbox footer label{width:100%}.article-export-inbox h2{font-size:1.4rem}}

.article-export-inbox .crm-table th:first-child{font-size:0}.article-export-inbox .crm-table-wrap{min-height:80px}.article-export-inbox>nav,.article-export-inbox header{flex-shrink:0}.article-export-inbox .crm-inbox-footer{max-height:none;overflow:visible}.article-export-inbox .crm-table th:nth-child(5){width:110px}.article-export-inbox [data-count],.article-export-inbox .article-selection-actions{flex-shrink:0}
@media(max-width:600px){.article-export-inbox .crm-table{min-width:0}.article-export-inbox .crm-table td:nth-child(4){min-width:0}.article-export-inbox .crm-inbox-tools label{flex:1 1 100%}.article-export-inbox footer label{margin:4px 0;min-width:0!important}.article-export-inbox footer{gap:6px}.article-export-inbox footer button{flex:1}.article-export-inbox [data-selection-pane]{gap:4px}.article-export-inbox .crm-inbox-tools button{padding:6px 10px}}

@media(max-width:600px){.article-export-inbox footer{display:grid;grid-template-columns:1fr 1fr}.article-export-inbox footer label{grid-column:1 / -1}.article-export-inbox .crm-table th:nth-child(4){width:auto}.article-export-inbox .crm-table td:nth-child(4){width:auto}.article-export-inbox .crm-table{table-layout:fixed}}

.crm-report-editor{width:min(1100px,96vw);max-width:96vw}.crm-report-editor fieldset{border:0;padding:0;min-width:0}.crm-report-editor details{margin:16px 0}.crm-report-editor summary{cursor:pointer;font-weight:600}.report-rich{min-height:110px;border:1px solid #c8d4cb;border-radius:10px;padding:14px;overflow-wrap:anywhere;background:white}.report-rich:focus{outline:2px solid #719d8a}.report-format{gap:5px;margin:6px 0}.report-format button{padding:6px 12px}.report-actions{position:sticky;top:0;background:#fff;padding:8px 0;z-index:1}.crm-report-editor input:not([type=checkbox]){max-width:100%;box-sizing:border-box}.crm-report-editor .crm-check{flex:1;min-width:160px}@media(max-width:600px){.crm-report-editor{padding:16px}.report-actions{position:static}.crm-report-editor .row{flex-wrap:wrap}.crm-report-editor input:not([type=checkbox]){width:100%}}
