.document-trash-dialog { width: min(660px, calc(100vw - 32px)); height: min(560px, calc(var(--mobile-viewport-height, 100dvh) - 32px)); max-height: none; padding: 0; border: 1px solid var(--zy-border); border-radius: 8px; color: var(--zy-text); background: var(--zy-surface); letter-spacing: 0; }
.document-trash-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.document-trash-dialog > :is(header,footer,.trash-policy,.trash-controls,.trash-batch-bar) { flex-shrink: 0; }
.document-trash-dialog::backdrop { background: rgb(0 0 0 / .36); }
.document-trash-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--zy-border); }
.document-trash-dialog h2 { margin: 0; font-size: 18px; }
.document-trash-dialog header > div { display: flex; gap: 4px; }
.trash-policy { margin: 0; padding: 12px 14px; color: var(--zy-muted); font-size: 12px; border-bottom: 1px solid var(--zy-border); }
.trash-list { min-height: 0; flex: 1; overflow-y: auto; scrollbar-color: var(--zy-border-strong) transparent; }
.trash-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 14px; border-bottom: 1px solid var(--zy-border); }
.trash-copy { min-width: 0; flex: 1; }
.trash-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.trash-row small { display: block; margin-top: 5px; overflow-wrap: anywhere; color: var(--zy-muted); font-size: 12px; }
.trash-row button { flex-shrink: 0; }
.document-trash-dialog > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 14px; }
.document-trash-dialog footer p { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--zy-muted); font-size: 13px; }
.document-trash-dialog footer button { flex-shrink: 0; }
.trash-controls { display: flex; gap: 8px; padding: 10px 14px; }
.trash-controls form { display: flex; gap: 4px; min-width: 0; flex: 1; }
.trash-controls input { width: 100%; min-width: 0; }
.trash-controls input, .trash-controls select, .trash-confirmation input { min-height: 36px; padding: 6px 8px; border: 1px solid var(--zy-border); border-radius: 6px; color: var(--zy-text); background: var(--zy-surface); font-size: 14px; }
.trash-batch-bar { display: flex; align-items: center; gap: 12px; padding: 0 14px 6px; border-bottom: 1px solid var(--zy-border); font-size: 13px; }
.trash-batch-bar > div { display: flex; gap: 4px; margin-left: auto; }
.trash-check, .trash-check-all { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; flex-shrink: 0; cursor: pointer; }
.trash-check { width: 36px; }
.trash-check-all { gap: 6px; }
.document-trash-dialog input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--zy-primary); }
.trash-confirmation { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px; }
.trash-confirmation h3 { font-size: 18px; margin: 0 0 10px; }
.trash-confirmation p { font-size: 13px; line-height: 1.6; }
.trash-confirmation ul { padding-left: 20px; max-height: 110px; overflow-y: auto; overflow-wrap: anywhere; font-size: 13px; }
.trash-confirmation label { display: block; margin: 12px 0 6px; font-size: 13px; }
.trash-confirmation input { width: 100%; }
.trash-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
#trashConfirmPurge, [data-purge-id], #trashPurgeSelected { color: var(--zy-danger); }
.document-trash-dialog :is(input,select,button):focus-visible { outline: 2px solid var(--zy-primary); outline-offset: 2px; }
.document-trash-dialog [hidden] { display: none !important; }
@media (max-width: 760px), (max-width: 980px) and (max-height: 500px) {
    .document-trash-dialog { width: calc(100vw - 16px); height: calc(var(--mobile-viewport-height, 100dvh) - 16px); }
    .document-trash-dialog .icon-button, .document-trash-dialog footer button { min-height: 44px; min-width: 44px; }
    .trash-row strong { font-size: 16px; }
    .trash-row { padding: 8px; gap: 4px; }
    .trash-check, .trash-check-all { min-height: 44px; }
    .trash-check { width: 44px; }
    .trash-controls input, .trash-controls select, .trash-confirmation input { min-height: 44px; font-size: 16px; }
    .trash-controls { padding: 8px; gap: 4px; }
    .trash-controls select { max-width: 120px; }
    .trash-batch-bar { padding-inline: 8px; gap: 6px; }
    .trash-confirm-actions button { min-height: 44px; }
}
