
.trash-table{ display:flex; flex-direction:column; overflow-x:auto; }
.trash-row{
  display:grid; grid-template-columns:32px 56px 1fr 180px 130px 164px 130px 100px 40px; align-items:center; gap:12px;
  padding:11px 8px; border-bottom:1px solid var(--ui-border); cursor:pointer; min-width:920px;
}
#trashTable .trash-row{ grid-template-columns:32px 56px minmax(140px,1fr) 180px 130px 164px 130px 100px 40px; min-width:1084px; }
.trash-row:hover{ background:var(--md-neutral-background-2-rest); }
.trash-row.selected{ background:var(--md-neutral-background-2-rest); }
.trash-row-header{ cursor:default; }
.trash-row-header:hover{ background:none; }
.trash-row-header .trash-row-date,
.trash-row-header .trash-row-created,
.trash-row-header .trash-row-title,
.trash-row-header .trash-row-slides,
.trash-row-header .trash-row-deletedby,
.trash-row-header .trash-row-team{ font-size:var(--text-md); color:var(--ui-muted); font-weight:var(--font-weight-light); }
.trash-row-header .trash-row-title{ grid-column:2 / 4; }
.trash-row-header .trash-row-thumb-head{ grid-column:2; }
.trash-row-header > *{ grid-row:1; }
.trash-row-header .trash-row-date{ white-space:nowrap; }

.trash-row-select{ display:flex; }
.trash-row-thumb, .trash-row-thumb-head{ width:56px; aspect-ratio:16/9; }
.trash-row-thumb{
  position:relative; overflow:hidden; border-radius:4px; border:1px solid var(--ui-border);
  background:var(--frame-bg);
}
.trash-row-title{ font-size:var(--ui-table-cell-size); color:var(--ui-table-cell-color); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.trash-row-slides{ font-size:var(--ui-table-cell-size); color:var(--ui-table-cell-color); }
.trash-row-created{ font-size:var(--ui-table-cell-size); color:var(--ui-table-cell-color); }
.trash-row-date{ font-size:var(--ui-table-cell-size); color:var(--ui-table-cell-color); text-align:left; }
.trash-row-deletedby{ display:flex; align-items:center; gap:6px; font-size:var(--ui-table-cell-size); color:var(--ui-table-cell-color); white-space:nowrap; overflow:hidden; }
.trash-row-deletedby span{ overflow:hidden; text-overflow:ellipsis; }
.trash-deletedby-avatar{ width:20px; height:20px; border-radius:50%; flex-shrink:0; object-fit:cover; }
.trash-deletedby-avatar-initial{
  display:flex; align-items:center; justify-content:center; background:var(--ui-accent); color:var(--md-color-grey-white);
  font-size:var(--text-xs); font-weight:var(--font-weight-semibold); font-family:var(--font-sans);
}
.trash-row-team{ display:flex; }
.trash-team-empty{ font-style:italic; font-size:var(--ui-table-cell-size); color:var(--ui-table-cell-color); }
.trash-table .tag-S{ height:20px; padding:0 8px 0 6px; }
.trash-table .tag-S .tag-label{ font-size:var(--text-md); line-height:14px; }
.trash-table .tag-S .tag-icon i{ font-size:var(--text-md); }
.trash-row-actions{ position:relative; display:flex; justify-content:flex-end; }

.trash-sort-btn{
  border:none; background:none; padding:0; cursor:pointer; font:inherit; color:inherit;
  display:flex; align-items:center; gap:5px;
}
.trash-row-date.trash-sort-btn{ justify-content:flex-start; }
.trash-sort-icon{ font-size:var(--text-sm); color:var(--ui-muted); }
.trash-sort-icon.active{ color:var(--ui-accent); }

.trash-row .deck-select-checkbox, #trashSelectAllCheckbox{ width:20px; height:20px; font-size:var(--text-base); transform:scale(1); pointer-events:auto; }
.trash-row .deck-select-checkbox{ display:flex; opacity:0; }
.trash-row:hover .deck-select-checkbox,
.trash-row .deck-select-checkbox.checked,
.trash-table.has-selection .deck-select-checkbox{ opacity:1; }

.trash-row-actions .layout-thumb-menu-btn{
  position:static; opacity:0; width:28px; height:28px; border:none; background:none;
}
.trash-row:hover .trash-row-actions .layout-thumb-menu-btn,
.trash-row-actions .layout-thumb-menu-btn.open{ opacity:1; }
.trash-row-actions .split-menu{ top:calc(100% + 4px); right:0; }

#trashEmptyState.hidden{ display:none; }


.trash-team-filter-btn{ font-family:var(--font-sans); font-size:var(--text-base); color:var(--ui-muted); white-space:nowrap; }
.trash-team-filter-value{ font-weight:var(--font-weight-bold); color:var(--md-neutral-foreground-1-rest); }
.trash-team-filter-menu{ top:calc(100% + 6px); left:0; right:auto; min-width:180px; }
.trash-team-filter-option{
  display:flex; align-items:center; gap:8px; width:100%; text-align:left; padding:7px 8px;
  border:none; background:none; border-radius:6px; cursor:pointer;
  font-family:var(--font-sans); font-size:var(--text-base); color:var(--ui-text);
}
.trash-team-filter-option:hover{ background:var(--md-neutral-background-2-rest); }
.trash-team-filter-option .deck-select-checkbox{ display:flex; pointer-events:none; opacity:1; transform:scale(1); }

.trash-empty-all-btn{
  display:inline-flex; align-items:center; gap:8px; height:36px; padding:0 14px;
  border-radius:8px; font-weight:var(--font-weight-regular); color:var(--ui-text);
}
.trash-empty-all-btn:hover{ background:var(--md-neutral-background-2-rest); color:var(--ui-text); }

.trash-row-title-btn{
  border:none; background:none; padding:0; margin:0; cursor:pointer; text-align:left; width:100%;
  font-family:inherit; font-size:inherit; font-weight:inherit; color:inherit;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.trash-row-title-btn:hover{ text-decoration:underline; }
.trash-row-title-text{ display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

#trashPreviewOverlay{
  display:none; position:fixed; inset:0; background:rgba(20,24,32,0.45); z-index:var(--z-modal);
  align-items:center; justify-content:center;
}
#trashPreviewOverlay.open{ display:flex; }
#trashPreviewOverlay.closing #trashPreviewModal{ animation:modal-fall-out .45s cubic-bezier(.2,.8,.2,1); }
#trashPreviewModal{
  width:900px; max-width:92vw; background:var(--md-color-grey-white); border-radius:16px;
  box-shadow:var(--shadow-modal); display:flex; flex-direction:column; overflow:hidden;
  animation:modal-rise-in .32s cubic-bezier(.2,.8,.2,1);
}
.trash-preview-body{ padding:16px 20px; display:flex; flex-direction:column; gap:12px; }
.trash-preview-stage{ position:relative; width:100%; aspect-ratio:16 / 9; border:1px solid var(--ui-border); border-radius:10px; overflow:hidden; background:var(--md-neutral-background-2-rest); }
.trash-preview-nav{ display:flex; align-items:center; justify-content:center; gap:12px; }
.trash-preview-counter{ font-size:var(--text-md); color:var(--ui-muted); }
.trash-preview-empty{ padding:40px 0; text-align:center; color:var(--ui-muted); font-size:var(--text-base); }
.trash-preview-footer{ justify-content:flex-end; gap:8px; }
