/* The project's Trash (D-170; board 2026-11-07 Drafts and Trash, 2-A): a page in a tab, one calm list by day. */
.wl-trash-page { padding: 0 !important; overflow: hidden !important; background: var(--wl-bg); color: var(--wl-text); font-family: var(--wl-font-ui); font-size: var(--t-ui); }
.wl-trash-page .wt-glyph { display: inline-grid; place-items: center; flex: none; }
.wl-trash-page svg { width: 16px; height: 16px; flex: none; }
/* Keyboard focus: the one ice ring at 2px, over the shell's own. */
body.wb-shell .wl-trash-page :is(button, [tabindex]):focus-visible { outline: 2px solid var(--wl-selection); outline-offset: 2px; }
.tr-page { height: 100%; overflow: auto; }
.tr-body { max-width: 860px; margin: 0 auto; padding: 44px 32px 80px; color: var(--wl-text); font-family: var(--wl-font-ui); }
.tr-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.tr-titles { flex: 1; min-width: 0; }
.tr-titles h1 { margin: 0; font-family: var(--wl-font-title); font-size: var(--t-title-page); font-weight: 400; line-height: 1.2; letter-spacing: 0; }
.tr-titles p { margin: 6px 0 0; max-width: 540px; color: var(--wl-text-2); font-size: 13.5px; line-height: 1.5; }

/* Buttons: the control height and corner, a control's resting edge. Destructive ones are rose and
   always say what they do (Empty trash, Delete for good); the filled rose one is the last step. */
body .wl-trash-page .tr-btn { display: inline-flex; align-items: center; gap: 7px; height: var(--wl-control); padding: 0 12px; flex: none; border: 1px solid var(--wl-line-strong); border-radius: var(--r-md); background: var(--wl-surface); color: var(--wl-text-2); font: inherit; font-size: var(--t-ui); font-weight: 500; white-space: nowrap; box-shadow: none; cursor: pointer; transition: background-color var(--wl-quick, 120ms) var(--wl-ease, ease), color var(--wl-quick, 120ms) var(--wl-ease, ease); }
body .wl-trash-page .tr-btn:hover:not(:disabled) { background: var(--wl-raised); color: var(--wl-text); }
body .wl-trash-page .tr-btn:disabled { opacity: .55; cursor: default; }
body .wl-trash-page .tr-btn svg { width: 16px; height: 16px; flex: none; }
body .wl-trash-page .tr-btn.is-small { height: 28px; padding: 0 10px; border-radius: var(--r-md); font-size: var(--t-help); }
body .wl-trash-page .tr-btn.is-danger { color: var(--wl-danger); border-color: color-mix(in srgb, var(--wl-danger) 40%, var(--wl-line)); }
body .wl-trash-page .tr-btn.is-danger:hover { background: color-mix(in srgb, var(--wl-danger) 10%, var(--wl-surface)); color: var(--wl-danger); }
body .wl-trash-page .tr-btn.is-danger-fill { background: var(--wl-danger); border-color: transparent; color: var(--wl-on-accent); }
body .wl-trash-page .tr-btn.is-danger-fill:hover:not(:disabled) { background: color-mix(in srgb, var(--wl-danger) 84%, var(--wl-text)); color: var(--wl-on-accent); }
body .wl-trash-page .tr-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; padding: 0; border: 0; border-radius: var(--r-sm); background: none; color: var(--wl-text-3); box-shadow: none; cursor: pointer; }
body .wl-trash-page .tr-icon:hover { background: color-mix(in srgb, var(--wl-danger) 10%, transparent); color: var(--wl-danger); }
body .wl-trash-page .tr-icon svg { width: 16px; height: 16px; }
body .wl-trash-page .tr-link { padding: 0; border: 0; background: none; box-shadow: none; color: var(--wl-text); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Asking first, on the page: in the head for Empty trash, in the row for one thing. */
.tr-ask { display: flex; align-items: center; gap: 8px; flex: none; color: var(--wl-text); font-size: var(--t-ui); font-weight: 500; animation: wl-fade var(--wl-short, 220ms) var(--wl-ease-out, ease-out); }
.tr-ask.is-head { padding: 6px 6px 6px 14px; border: 1px solid color-mix(in srgb, var(--wl-danger) 35%, var(--wl-line)); border-radius: var(--r-md); background: color-mix(in srgb, var(--wl-danger) 6%, var(--wl-surface)); }
.tr-row.is-asking { background: color-mix(in srgb, var(--wl-danger) 6%, transparent); }

.tr-note { display: flex; align-items: center; gap: 10px; margin: -6px 0 16px; padding: 9px 14px; border: 1px solid var(--wl-line); border-radius: var(--r-md); background: var(--wl-surface); color: var(--wl-text-2); font-size: var(--t-ui); animation: wl-fade var(--wl-short, 220ms) var(--wl-ease-out, ease-out); }
.tr-note.is-error { color: var(--wl-danger); }

/* What to show: the chosen kind is an ice tint and edge, not a fill. Counts are values. */
.tr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
body .wl-trash-page .tr-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--wl-line); border-radius: var(--r-md); background: none; box-shadow: none; color: var(--wl-text-2); font: inherit; font-size: 12.5px; cursor: pointer; }
body .wl-trash-page .tr-chip:hover { color: var(--wl-text); background: var(--wl-raised); }
body .wl-trash-page .tr-chip .tr-n { color: var(--wl-text-3); font-family: var(--wl-font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
body .wl-trash-page .tr-chip.is-on { background: var(--wl-selection-soft); border-color: color-mix(in srgb, var(--wl-selection) 55%, transparent); color: var(--wl-text); font-weight: 600; }
body .wl-trash-page .tr-chip.is-on .tr-n { color: var(--wl-text-2); }

.tr-day { margin: 24px 0 8px; color: var(--wl-text-3); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.tr-list { border: 1px solid var(--wl-line); border-radius: var(--r-lg); background: var(--wl-surface); box-shadow: var(--wl-elev-card); overflow: hidden; }
.tr-row { display: flex; align-items: center; gap: 14px; min-height: 64px; box-sizing: border-box; padding: 10px; border-top: 1px solid var(--wl-line); transition: background-color var(--wl-quick, 120ms) var(--wl-ease, ease); }
.tr-row:first-child { border-top: 0; }
.tr-thumb { display: grid; place-items: center; width: 44px; height: 44px; flex: none; overflow: hidden; box-sizing: border-box; border-radius: var(--r-sm); background: var(--wl-raised); color: var(--wl-text-2); }
.tr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tr-thumb.is-icon { border: 1px solid var(--wl-line); }
.tr-thumb.is-icon svg { width: 20px; height: 20px; }
.tr-thumb.is-cut { background: repeating-conic-gradient(color-mix(in srgb, var(--wl-text) 6%, transparent) 0 25%, transparent 0 50%) 0 0 / 10px 10px, var(--wl-raised); }
.tr-thumb.is-cut img { object-fit: contain; }
.tr-thumb.is-colours { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; place-items: stretch; gap: 3px; padding: 6px; border: 1px solid var(--wl-line); }
.tr-thumb.is-colours i { border-radius: var(--r-xs); }
.tr-words { flex: 1; min-width: 0; }
.tr-words b { display: block; overflow: hidden; color: var(--wl-text); font-size: var(--t-title-card); font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.tr-words small { display: block; margin-top: 2px; overflow: hidden; color: var(--wl-text-3); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
.tr-words small.tr-error { color: var(--wl-danger); white-space: normal; }
.tr-foot { margin-top: 18px; color: var(--wl-text-3); font-size: 12.5px; line-height: 1.5; }

.tr-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 70px auto; max-width: 380px; text-align: center; color: var(--wl-text-3); }
.tr-empty svg { width: 28px; height: 28px; margin-bottom: 6px; }
.tr-empty strong { color: var(--wl-text); font-size: var(--t-body); font-weight: 600; }
.tr-empty p { margin: 0; font-size: var(--t-ui); line-height: 1.5; }

@media (max-width: 720px) {
  .tr-body { padding: 22px 16px 120px; }
  .tr-head { flex-wrap: wrap; }
  .tr-titles { flex-basis: 100%; }
  .tr-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  body .wl-trash-page .tr-chip { flex: none; }
  .tr-row .tr-btn:not(.is-small) span:not(.wt-glyph) { display: none; }
  body .wl-trash-page .tr-row .tr-btn:not(.is-small) { width: var(--wl-control); padding: 0; justify-content: center; }
  .tr-row.is-asking { flex-wrap: wrap; }
  .tr-row.is-asking .tr-ask { flex-basis: 100%; justify-content: flex-end; }
  .tr-ask.is-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .tr-ask, .tr-note { animation: none; } }
