.container-manifest{width:min(1100px,95vw);max-width:1100px;max-height:92vh;padding:0;border:1px solid var(--line,#dbe2ec);border-radius:18px;color:var(--text,#18243a);background:var(--surface,#fff);box-shadow:0 24px 80px #14213d40}
.container-manifest::backdrop{background:#101d37a6}
.container-manifest form{display:block;padding:24px;margin:0}
.cm-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line,#dbe2ec);padding-bottom:16px}
.cm-heading h2{margin:0 0 5px;font-size:23px}.cm-heading p{margin:0;color:var(--muted,#52617b)}
.cm-section{margin:22px 0}.cm-section h3{margin:0 0 8px;font-size:17px}.cm-section>p{font-size:14px;line-height:1.6;color:var(--muted,#52617b)}
.cm-letters{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.cm-letter{display:flex!important;align-items:center;gap:9px;padding:9px 13px;background:var(--surface2,#f1f5fa);border:1px solid #dbe2ec;border-radius:9px;font-weight:600;cursor:pointer}
.cm-letter input{width:18px!important;height:18px;min-height:0;margin:0;accent-color:var(--accent,#235b98)}.cm-letter small{font-weight:400}
.cm-groups{display:flex;flex-wrap:wrap;gap:10px;margin-top:15px}.cm-group{display:grid;gap:3px;border:1px solid #dbe2ec;border-radius:10px;padding:10px 14px;min-width:145px}.cm-group b{color:var(--accent,#235b98)}.cm-group small{color:var(--muted,#52617b)}
.cm-summary{font-weight:700;color:var(--text,#18243a)!important}.cm-warnings:empty{display:none}.cm-warnings{padding:10px 14px;border:1px solid #e9be88;border-radius:10px;background:#fff8eb;color:#783e1a;font-size:13px;line-height:1.6;margin-bottom:14px}.cm-warnings p{margin:4px 0}
.cm-table{overflow:auto;max-height:390px;border:1px solid #dbe2ec;border-radius:10px}.cm-table table{width:100%;border-collapse:collapse;margin:0}.cm-table th{position:sticky;top:0;background:var(--surface2,#edf2f8);z-index:1;text-align:left}.cm-table th,.cm-table td{padding:11px 12px;vertical-align:top;border-bottom:1px solid #dbe2ec;font-size:13px}.cm-table th:first-child{width:100px}.cm-table th:last-child{width:110px}.cm-items{white-space:pre-wrap;overflow-wrap:anywhere;min-width:230px}.cm-pending{display:block;margin-top:7px;color:#8a3417;font-size:12px}
.cm-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.cm-fields label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600}.cm-fields input,.cm-fields textarea{box-sizing:border-box;width:100%;border:1px solid #cbd5e1;border-radius:9px;padding:10px 12px;font:inherit;font-weight:400;background:var(--surface2,#fff);color:var(--text,#18243a)}.cm-fields textarea{resize:vertical}.cm-fields input:focus,.cm-fields textarea:focus{outline:2px solid #93b9e3;outline-offset:1px}.cm-wide{grid-column:1/-1}
.cm-error{color:#a12637;font-weight:600;white-space:pre-wrap}.cm-error:empty{display:none}.cm-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid #dbe2ec;padding-top:16px}.cm-actions span{font-size:12px;max-width:470px;color:var(--muted,#52617b)}.cm-actions button{min-height:44px}.cm-heading button{flex-shrink:0}
@media(max-width:650px){.container-manifest form{padding:16px}.cm-heading h2{font-size:19px}.cm-fields{grid-template-columns:1fr}.cm-actions{align-items:stretch;flex-direction:column}.cm-table{max-height:300px}.cm-heading{gap:12px}}

.cm-declared-blank{min-width:165px;height:40px}.cm-declared-note{font-size:12px;color:var(--muted)}.cm-table th:last-child{width:165px}.cm-table th:nth-child(3){min-width:100px}.cm-warnings{background:#352b20;color:#f4d6af;border-color:#755b38}.cm-pending{color:#f4c497}.cm-error{color:#ff9caa}.cm-letter,.cm-group,.cm-table,.cm-table th,.cm-table td,.cm-actions,.cm-heading{border-color:var(--line)}.container-manifest .bar span{font-size:12px;color:var(--muted)}

.cm-sender-picker {
  min-width: 0;
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cm-sender-picker legend { padding: 0 6px; font-size: .875rem; font-weight: 700; }
.cm-sender-query { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.cm-sender-query label { flex: 1 1 220px; min-width: 0; }
.cm-sender-query input { width: 100%; }
.cm-sender-query button { min-height: 44px; }
#cm-sender-status { color: var(--muted); margin: 10px 0 0; font-size: .875rem; }
#cm-sender-status:empty { display: none; }
#cm-sender-results { display: grid; gap: 6px; max-height: 204px; margin: 10px 0 0; padding: 4px; overflow: auto; list-style: none; }
#cm-sender-results[hidden] { display: none; }
#cm-sender-results button { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; width: 100%; text-align: left; overflow-wrap: anywhere; }
#cm-sender-results small { color: var(--muted); }
