.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.tool-card {
    display: block;
    padding: 18px 20px;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.tool-card:hover {
    border-color: var(--color-accent-light);
    box-shadow: 0 4px 16px rgba(var(--color-shadow-rgb), 0.08);
}

.tool-card-disabled,
.tool-card-disabled:hover {
    opacity: 0.55;
    cursor: not-allowed;
    border-color: var(--color-border);
    box-shadow: none;
}

.tool-card-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 4px;
}

.tool-card-description {
    font-size: 12.5px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.uploads-empty-state {
    margin-top: 24px;
    padding: 20px;
    text-align: center;
    font-size: 13.5px;
    color: var(--color-text-muted);
    background-color: var(--color-bg-surface);
    border: 1px dashed var(--color-border);
    border-radius: 12px;
}

/* ── Delete my data ─────────────────────────────────────────────────── */
.uploads-delete {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px 24px;
    margin-top: 40px;
    padding: 18px 20px;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.uploads-delete-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
}

.uploads-delete-text {
    margin: 0;
    font-size: 13.5px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.uploads-delete-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    font-family: var(--font-family);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-error);
    background-color: var(--color-error-bg);
    border: 1px solid var(--color-error);
    border-radius: 8px;
    white-space: nowrap;
    cursor: pointer;
}

.uploads-delete-btn:hover {
    color: #fff;
    background-color: var(--color-error);
}

/* ── Delete button (dash_table's built-in row_deletable "x" cell) ─────
   The cell itself (<td>) always spans the full row height, so a small
   chip-style box is drawn via ::after instead of bordering the cell
   directly — the real "×" text is hidden (color: transparent) but stays
   in place so the cell's native click-to-delete handler still fires.
   !important overrides DataTable's own runtime-injected default styling. */
#uploads-table .dash-delete-cell {
    position: relative;
    color: transparent !important;
    border: none !important;
    background: none !important;
    cursor: pointer;
}

#uploads-table .dash-delete-cell::after {
    content: "×";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    line-height: 17px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--color-text-main);
    background-color: var(--color-error-bg);
    border: 1.5px solid var(--color-error);
    border-radius: 5px;
}

#uploads-table .dash-delete-cell:hover::after {
    background-color: var(--color-error);
    color: #fff;
}