/* ==========================================================================
   RECENTLY DELETED + the action toast (Oct 10 2026)
   Settings → Playbook → Recently Deleted (js/recently-deleted.js) and the
   "Play deleted · Undo" toast (js/toast.js showAction). Coach app: coach
   green (--gc-accent-primary) on the charcoal surfaces; gc tokens only, so
   Night and Day both resolve without an override. Game-day: every control
   is at least 44px tall.
   ========================================================================== */

/* ---- the list ----------------------------------------------------------
   Compact (Carlos, Oct 10: "What if I deleted 25 plays? … Save real
   estate"): no thumbnails, ~48px hairline rows, and the rows scroll INSIDE
   the card at six rows so 25 deletes never push the page. */
.sc-trash-list {
    --sc-trash-row-h: 48px;
}

.sc-trash-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gc-space-3);
    margin-bottom: var(--gc-space-2);
}

.sc-trash-count {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gc-text-color-muted);
}

.sc-trash-search {
    flex: 0 1 240px;
    min-height: 40px;
}

.sc-trash-rows {
    max-height: calc(var(--sc-trash-row-h) * 6);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--gc-border-subtle);
    border-bottom: 1px solid var(--gc-border-subtle);
}

.sc-trash-row {
    display: flex;
    align-items: center;
    gap: var(--gc-space-2);
    box-sizing: border-box;
    height: var(--sc-trash-row-h);
    padding: 0 var(--gc-space-1, 4px) 0 var(--gc-space-2);
    border-bottom: 1px solid var(--gc-border-subtle);
    cursor: pointer;
}

.sc-trash-row:last-child {
    border-bottom: 0;
}

.sc-trash-row[hidden] {
    display: none;
}

.sc-trash-meta {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: var(--gc-space-3);
}

.sc-trash-name {
    font-family: var(--gc-font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gc-text-color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.sc-trash-when {
    flex: 0 0 auto;
    font-size: 0.75rem;
    color: var(--gc-text-color-muted);
    white-space: nowrap;
}

.sc-trash-preview {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 var(--gc-space-3);
    border: 0;
    background: transparent;
    color: var(--gc-text-color-secondary);
    font-family: var(--gc-font-body);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.sc-trash-nopreview {
    flex: 0 0 auto;
    padding: 0 var(--gc-space-3);
    font-size: 0.75rem;
    color: var(--gc-text-color-muted);
    white-space: nowrap;
}

.sc-trash-restore {
    flex: 0 0 auto;
    min-height: 40px;
    min-width: 88px;
    padding: 0 var(--gc-space-3);
    border-radius: 8px;
    border: 1px solid var(--gc-accent-primary);
    background: transparent;
    color: var(--gc-accent-text);
    font-family: var(--gc-font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.sc-trash-restore:hover,
.sc-trash-restore:focus-visible {
    background: var(--gc-accent-primary);
    color: var(--gc-text-on-accent);
}

.sc-trash-restore:disabled {
    opacity: 0.6;
    cursor: default;
}

.sc-trash-empty,
.sc-trash-note {
    padding: var(--gc-space-4);
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gc-text-color-muted);
    border: 1px dashed var(--gc-border-subtle);
    border-radius: 10px;
}

/* ---- the action toast -------------------------------------------------- */
.sc-action-toast {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 9000; /* toasts (CLAUDE.md z-index ladder) */
    display: flex;
    align-items: center;
    gap: var(--gc-space-4);
    max-width: calc(100vw - 32px);
    padding: var(--gc-space-2) var(--gc-space-2) var(--gc-space-2) var(--gc-space-5);
    background: var(--gc-bg-elevated);
    color: var(--gc-text-color-primary);
    border: 1px solid var(--gc-border-default);
    border-radius: 12px;
    box-shadow: var(--gc-shadow-xl);
    font-family: var(--gc-font-body);
    font-size: 17px;
    font-weight: 600;
    opacity: 0;
    transform: translate(-50%, 16px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sc-action-toast.is-in {
    opacity: 1;
    transform: translate(-50%, 0);
}

.sc-action-toast.is-out {
    opacity: 0;
    transform: translate(-50%, 16px);
    pointer-events: none;
}

.sc-action-toast__msg {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-action-toast__btn {
    flex: 0 0 auto;
    min-height: 44px;
    min-width: 88px;
    padding: 0 var(--gc-space-4);
    border: 0;
    border-radius: 8px;
    background: var(--gc-accent-primary);
    color: var(--gc-text-on-accent);
    font-family: var(--gc-font-body);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}
