.document-email-attachments{display:grid;gap:1.4rem;min-width:0}
.document-email-attachments h2,.document-email-attachments h3,.document-email-attachments p{margin:0}
.document-email-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.document-email-heading>div{display:grid;gap:.4rem;min-width:0;flex:1 1 22rem}
.document-email-heading h2{display:flex;align-items:center;gap:.5rem}
.document-email-heading p,.document-email-hint{color:var(--text-soft);font-size:.875rem;line-height:1.5}
.document-email-count{display:inline-flex;align-items:center;white-space:nowrap;border:1px solid var(--border);background:var(--surface-muted);border-radius:2rem;padding:.4rem .75rem;font-size:.85rem;font-weight:650}
.document-email-included{display:grid;gap:.7rem;min-width:0}
.document-email-attachments h3,.document-email-attachments legend{font-size:1rem;font-weight:700}
.document-email-status{color:var(--text-soft);font-size:.875rem}
.document-email-attachments[data-preview-state=error] .document-email-status{color:var(--danger)}
.document-email-file-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr));gap:.75rem;list-style:none;padding:0;margin:0;min-width:0}
.document-email-file{display:grid;grid-template-columns:2.8rem minmax(0,1fr);align-content:start;gap:.6rem .85rem;padding:1rem;border:1px solid var(--border);border-radius:.85rem;background:var(--surface-solid);min-width:0}
.document-email-file-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:2.8rem;height:3.2rem;border-radius:.6rem;background:var(--danger-soft,#fff1f2);color:var(--danger,#ba263c);font-size:1.5rem}
.document-email-file-copy,.document-email-choice-copy{display:grid;gap:.25rem;min-width:0;overflow-wrap:anywhere}
.document-email-kind{display:block;font-size:.72rem;letter-spacing:.055em;text-transform:uppercase;color:var(--text-soft);font-weight:700}
.document-email-document-title{display:block;color:var(--text-soft);font-size:.825rem;font-weight:400;line-height:1.5;overflow-wrap:anywhere}
.document-email-filename{display:block;font-size:.78rem;font-weight:400;color:var(--text-soft);overflow-wrap:anywhere}
.document-email-file-footer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap;padding-top:.6rem;border-top:1px solid var(--border)}
.document-email-file-size{color:var(--text-soft);font-size:.8rem;font-variant-numeric:tabular-nums}
.document-email-included-badge{display:inline-flex;align-items:center;gap:.35rem;border-radius:2rem;padding:.25rem .5rem;color:var(--success,#146148);background:var(--success-soft,#e9f6f0);font-size:.75rem;font-weight:650}
.document-email-file-footer .document-email-remove{border:0;background:transparent;color:var(--text-soft);display:inline-flex;align-items:center;justify-content:center;gap:.35rem;padding:.35rem .5rem;min-height:2.25rem;font:inherit;font-size:.8rem;cursor:pointer;border-radius:.45rem}
.document-email-file-footer .document-email-remove:hover{color:var(--danger);background:var(--danger-soft)}
.document-email-related,.document-email-modes{min-width:0;margin:0;padding:0;border:0}
.document-email-related legend,.document-email-modes legend{padding:0;margin:0 0 .6rem}
.document-email-related>.document-email-hint{margin-bottom:.7rem}
.document-email-choice-grid,[data-document-delivery]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;min-width:0}
.application-shell .document-email-attachments label.document-email-choice,.application-shell .document-email-attachments label.document-email-mode{display:grid;grid-template-columns:2.8rem minmax(0,1fr) 1.15rem;align-items:start;gap:.85rem;padding:1rem;margin:0;border:1px solid var(--border);border-radius:.85rem;background:var(--surface-solid);font-weight:500;cursor:pointer;min-width:0;transition:border-color .15s,background .15s}
.document-email-choice>input,.document-email-mode>input{grid-column:3;grid-row:1}
.document-email-choice>.document-email-file-icon,.document-email-mode>.document-email-mode-icon{grid-column:1;grid-row:1}
.document-email-choice>.document-email-choice-copy,.document-email-mode>span:last-child{grid-column:2;grid-row:1}
.application-shell .document-email-attachments :is(.document-email-choice,.document-email-mode)>input{position:static;appearance:auto;accent-color:var(--brand);width:1.15rem;height:1.15rem;min-width:0;min-height:0;padding:0;margin:.15rem 0;box-shadow:none;cursor:inherit}
.document-email-choice-copy>strong{font-size:.95rem;line-height:1.4}
.application-shell .document-email-attachments :is(.document-email-choice,.document-email-mode):has(input:checked){border-color:var(--brand);background:var(--brand-soft);box-shadow:inset 0 0 0 1px var(--brand)}
.application-shell .document-email-attachments :is(.document-email-choice,.document-email-mode):hover{border-color:var(--brand)}
.application-shell .document-email-attachments :is(.document-email-choice,.document-email-mode):has(input:disabled){opacity:.6;cursor:not-allowed}
.document-email-attachments :is(label,button):has(input:focus-visible),.document-email-attachments button:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.document-email-choice-state{font-size:.78rem;color:var(--brand);margin-top:.25rem}
.document-email-choice-state>span{display:inline-flex;align-items:center;gap:.35rem}
.document-email-choice [data-document-choice-added],.document-email-choice:has(input:checked) [data-document-choice-add]{display:none}
.document-email-choice:has(input:checked) [data-document-choice-added]{display:inline-flex}
.document-email-mode-icon{display:flex;align-items:center;justify-content:center;width:2.8rem;height:2.8rem;border-radius:.6rem;color:var(--brand);background:var(--surface-muted);font-size:1.5rem}
.document-email-mode>span:last-child{display:grid;gap:.35rem}
.document-email-mode strong{font-size:.95rem;line-height:1.4}
.document-email-empty{display:flex;align-items:center;gap:.6rem;color:var(--text-soft);font-size:.85rem;padding:.8rem 1rem;border:1px dashed var(--border);border-radius:.7rem;line-height:1.5}
.document-email-capacity{display:grid;gap:.5rem;color:var(--text-soft);font-size:.8rem;line-height:1.5}
.document-email-capacity>div{display:flex;align-items:center;gap:.5rem}
.document-email-capacity meter{display:block;appearance:none;width:100%;height:.45rem;border:0;border-radius:1rem;background:var(--surface-muted);overflow:hidden}
.document-email-capacity meter::-webkit-meter-bar{background:var(--surface-muted);border:0;border-radius:1rem}
.document-email-capacity meter::-webkit-meter-optimum-value{background:var(--brand);border-radius:1rem}
.document-email-capacity meter::-moz-meter-bar{background:var(--brand);border-radius:1rem}
.document-email-attachments[data-preview-state=loading] .document-email-file-grid{opacity:.5}
.document-email-attachments .organization-context-note{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.document-email-attachments [hidden]{display:none!important}
.document-email-share{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 0;border-top:1px solid var(--border);flex-wrap:wrap}
.document-email-share span{min-width:0;overflow-wrap:anywhere}
@media(max-width:700px){.document-email-choice-grid,[data-document-delivery]{grid-template-columns:minmax(0,1fr)}.application-shell .document-email-attachments label.document-email-choice,.application-shell .document-email-attachments label.document-email-mode{padding:.85rem;gap:.65rem}.document-email-attachments{gap:1.2rem}.document-email-file{padding:.85rem}}
.report-email-send-bar{bottom:max(1rem,env(safe-area-inset-bottom));margin-top:1rem}.report-email-send-bar[hidden]{display:none!important}@media(max-width:600px){.report-email-send-bar{bottom:max(.55rem,env(safe-area-inset-bottom))}.report-email-send-bar .ui-action-bar-controls>button{width:100%}}
/* Document cards are file entries, independent of form error-list styling. */
.document-email-attachments li.document-email-file{color:var(--text);font-size:inherit;line-height:1.45}
.document-email-attachments li.document-email-file::before{content:none;display:none}
.document-email-file>.document-email-file-icon{grid-column:1;grid-row:1}
.document-email-file>.document-email-file-copy{grid-column:2;grid-row:1}
.document-email-file>.document-email-file-footer{grid-row:2}
