.collection-dossier-grid > *, .collection-summary-grid > *, .collection-record > *, .collection-document-row > div {min-width:0;}
.collection-record strong,.collection-record span,.collection-record small,.collection-info-panel p,.collection-dossier h2 {overflow-wrap:anywhere;word-break:normal;}
.collection-summary-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
.collection-document-row {display:flex;align-items:flex-start;gap:16px;justify-content:space-between;}
.collection-document-row a {flex-shrink:0;}
.cw-dialog {width:min(760px,calc(100vw - 32px));max-height:90dvh;padding:0;border:1px solid #396249;border-radius:18px;background:#08251b;color:#edf8f1;box-shadow:0 24px 90px #0008;}
.cw-dialog::backdrop {background:#001b12b8;backdrop-filter:blur(3px);}
.cw-dialog form {padding:24px;display:grid;gap:18px;}
.cw-dialog header,.cw-dialog footer {display:flex;align-items:center;justify-content:space-between;gap:16px;}
.cw-dialog h2 {font-size:24px;line-height:1.2;margin:0;}
.cw-dialog [data-cancel]:first-child,.cw-dialog header button {background:transparent;border:0;color:inherit;font-size:26px;}
.cw-form-content {display:grid;gap:18px;}
.cw-form-content label {display:grid;gap:7px;font-size:15px;font-weight:600;}
.cw-form-content input:not([type=checkbox]),.cw-form-content textarea,.cw-form-content select {width:100%;box-sizing:border-box;background:#031b14;color:#edf8f1;border:1px solid #436a51;border-radius:9px;padding:11px;font:inherit;}
.cw-form-content .cw-check {display:flex;align-items:flex-start;gap:10px;}
.cw-check input {margin-top:4px;accent-color:#7de1a6;width:18px;height:18px;}
.cw-dialog p,.cw-record p {white-space:pre-wrap;line-height:1.6;margin:6px 0;}
.cw-dialog pre,.cw-record pre {white-space:pre-wrap;overflow-wrap:anywhere;font:15px/1.65 inherit;max-height:420px;overflow:auto;padding:14px;background:#031b14;}
.cw-record {padding:18px 0;border-bottom:1px solid #375846;display:grid;gap:12px;}
.cw-record:last-child {border-bottom:0;}
.cw-record strong {font-size:16px;overflow-wrap:anywhere;}
.cw-record small {color:#acc5b5;}
.cw-record .cw-answer {padding:14px;border-left:3px solid #7de1a6;background:#143526;}
.cw-actions {display:flex;gap:10px;flex-wrap:wrap;}
.cw-warning,.cw-form-status:not(:empty) {padding:12px;border-left:3px solid #dfbb72;background:#493c222e;color:#f1d79d;}
.cw-panel {margin-bottom:18px;}
.cw-folder-picker [data-folders] {display:grid;gap:8px;max-height:280px;overflow:auto;}
.cw-customer {margin-top:24px;}
.cw-settings {padding:24px;border:1px solid #395f48;border-radius:12px;margin:20px 0;}
.cw-letter-preview {width:100%;height:720px;max-height:75vh;border:1px solid #c7d5ca;border-radius:8px;background:#fff;margin-top:12px;}
.cw-review-dialog {width:min(960px,calc(100vw - 32px));}
.cw-review-dialog form {gap:20px;}
.cw-dialog footer {position:sticky;bottom:0;background:#08251b;padding:16px 0 0;border-top:1px solid #375846;z-index:1;}
.cw-dialog footer [data-cancel]:first-child {font-size:14px;border:1px solid #436a51;padding:12px 16px;border-radius:9px;}
.cw-dialog button,.cw-dialog input,.cw-dialog select,.cw-dialog textarea {font-family:inherit;}
.cw-dialog summary,.cw-message-entry summary {cursor:pointer;}
.cw-review-intro {display:flex;align-items:center;gap:24px;}
.cw-review-intro img {width:106px;height:106px;object-fit:contain;flex-shrink:0;border-radius:12px;}
.cw-review-intro h3 {margin:0 0 8px;font-size:22px;}
.cw-review-intro p,.cw-muted {color:#adc8b8;}
.cw-test-banner {padding:12px 16px;border:1px solid #668d69;border-radius:8px;color:#c7efce;background:#153b27;}
.cw-message-meta {display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0;padding:18px 0;border-top:1px solid #375846;border-bottom:1px solid #375846;}
.cw-message-meta div {min-width:0;}
.cw-message-meta dt {color:#a9c6b6;font-size:12px;margin-bottom:5px;}
.cw-message-meta dd {margin:0;overflow-wrap:anywhere;font-size:14px;}
.cw-review-change {display:flex;gap:18px;align-items:center;font-size:14px;padding:14px;background:#163d2b;border-radius:8px;}
.cw-mail-preview {display:block;width:100%;height:680px;border:0;border-radius:10px;background:#edf2ee;}
.cw-message-history header {padding-bottom:20px;}
.cw-message-history h3 {font-size:22px;margin:0 0 8px;}
.cw-message-history header p {color:#adc8b8;line-height:1.6;margin:0;}
.cw-message-entry {border-bottom:1px solid #345b45;}
.cw-message-entry>summary {list-style:none;display:flex;gap:16px;align-items:center;padding:22px 0;}
.cw-message-entry>summary::-webkit-details-marker {display:none;}
.cw-message-entry summary>span:nth-child(2) {display:grid;gap:6px;min-width:0;flex:1;}
.cw-message-entry small {font-size:12px;color:#adc8b8;}
.cw-message-entry strong {font-size:16px;overflow-wrap:anywhere;}
.cw-message-dot {width:9px;height:9px;border-radius:50%;background:#7bdfa8;flex-shrink:0;}
.cw-message-state {font-size:13px;color:#c6e7d3;}
.cw-message-open {font-size:13px;color:#83e4b0;}
.cw-message-body {display:grid;gap:18px;padding:0 0 28px 25px;}
.cw-message-body pre {white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.7 inherit;}
.cw-empty {display:flex;gap:22px;align-items:center;padding:30px 0;}
.cw-empty img {width:125px;height:125px;object-fit:contain;}
.cw-empty h4 {font-size:18px;margin:0 0 8px;}
.cw-empty p {max-width:420px;color:#adc8b8;line-height:1.65;}
.cw-company-logo img {max-width:180px;max-height:100px;object-fit:contain;background:white;padding:12px;border-radius:8px;}
@media(max-width:700px){.cw-message-meta{grid-template-columns:1fr}.cw-review-intro{gap:12px}.cw-review-intro img{width:72px;height:72px}.cw-review-intro h3{font-size:19px}.cw-mail-preview{height:620px}.cw-message-body{padding-left:0}.cw-message-open{display:none}.cw-dialog footer button{width:100%;font-size:14px}.cw-empty{align-items:flex-start}.cw-empty img{width:74px;height:74px}}
@media(max-width:700px){.collection-summary-grid{grid-template-columns:1fr}.cw-dialog form{padding:18px}.cw-dialog footer{flex-wrap:wrap}.collection-document-row{flex-direction:column}.cw-dialog h2{font-size:21px}}
