.task-trash-dialog {
    --dialog-padding-block: 24px;
    --dialog-padding-inline: 26px;
    width: min(620px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100dvh - 48px);
    margin: auto;
    padding: var(--dialog-padding-block) var(--dialog-padding-inline);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-raised);
    color: var(--text);
}
.task-trash-dialog::backdrop { background: rgba(0, 0, 0, .72); }
.task-trash-dialog[open] { animation: confirm-dialog-in var(--motion-surface) var(--motion-ease-out); }
.trash-intro { margin: 20px 0 0; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.65; }
.trash-retention-details { margin: 24px 0; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.015); }
.trash-retention-details > summary { min-height: 72px; padding: 13px 0; }
.trash-retention-details > summary:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 5px; border-radius: 6px; }
.trash-retention-details .trash-retention-body { gap: 12px; padding: 10px 0 16px; }
.trash-retention-body p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.7; overflow-wrap: anywhere; }
.trash-retention-body strong { color: var(--text); font-weight: 600; }
.trash-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.trash-toolbar h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.trash-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 7px; background: rgba(255,255,255,.06); color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.trash-button { min-height: 42px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; line-height: 1.4; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background var(--motion-fast), border-color var(--motion-fast), filter var(--motion-fast); }
.trash-button i { font-size: 16px; font-weight: 400; }
.trash-button--primary { background: var(--accent-bright); color: #070707; }
.trash-button--secondary { background: rgba(255,255,255,.08); color: var(--text); }
.trash-button--danger { background: transparent; border-color: rgba(255,107,107,.2); color: var(--danger); }
.trash-button--danger:hover:not(:disabled) { background: rgba(255,107,107,.08); border-color: rgba(255,107,107,.4); }
.trash-button:hover:not(:disabled) { filter: brightness(1.08); }
.trash-button:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
.trash-button:disabled { opacity: .4; cursor: not-allowed; }
.trash-status { margin: 10px 0 0; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.6; }
.trash-status:empty { display: none; }
.trash-status.is-error { color: var(--danger); }
.trash-list { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.trash-list:empty { display: none; }
.trash-item { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); overflow-wrap: anywhere; }
.trash-item-title { display: block; margin: 0; font-size: 14px; line-height: 1.55; font-weight: 600; }
.trash-item-context { margin: 7px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.trash-item-context i { margin-right: 4px; color: var(--subtle); }
.trash-item-scope { display: inline-block; padding: 2px 7px; border-radius: 5px; background: rgba(190,156,243,.07); color: var(--accent-bright); }
.trash-item-dates { margin: 16px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trash-item-dates > div { min-width: 0; }
.trash-item-dates dt { margin-bottom: 4px; color: var(--subtle); font-size: 10px; font-weight: 400; }
.trash-item-dates dd { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.trash-item-hint { margin: 12px 0 0; display: flex; align-items: start; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.6; }
.trash-item-hint i { flex: 0 0 auto; color: var(--accent-bright); font-size: 15px; }
.trash-row-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.trash-empty { margin-top: 16px; padding: 32px 18px; border: 1px dashed var(--line-strong); border-radius: 13px; text-align: center; }
.trash-empty[hidden] { display: none; }
.trash-empty-icon { margin: 0 auto 14px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: rgba(190,156,243,.07); color: var(--accent-bright); font-size: 25px; }
.trash-empty h3 { margin: 0 0 7px; font-size: 14px; font-weight: 600; }
.trash-empty p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.7; }
@media (max-width: 700px) {
    .task-trash-dialog { --dialog-padding-block: 20px; --dialog-padding-inline: max(18px, env(safe-area-inset-left), env(safe-area-inset-right)); position: fixed; inset: auto 0 0; width: 100%; max-height: 94dvh; margin: 0; padding: var(--dialog-padding-block) var(--dialog-padding-inline) max(22px, env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
    .task-trash-dialog[open] { animation-name: confirm-dialog-sheet-in; }
    .trash-item { padding: 15px; }
    .trash-row-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .trash-row-actions .trash-button { min-width: 0; min-height: 44px; padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .task-trash-dialog[open] { animation: none; }
    .task-trash-dialog .trash-button, .task-trash-dialog .task-details-chevron { transition: none; }
}
