@layer components {

    /* ── Variables ─────────────────────────────────────────── */
    .inv-list {
        --col: 2fr 1fr 1fr 80px 40px;
        --row-h: 36px;
        --radius: 5px;
        --border: 1px solid #e2e6ea;
        --bg: #fff;
        --bg-sub: #f8f9fb;
        --bg-hover: #f1f4f8;
        --text: #1a1d23;
        --muted: #6c757d;
        --accent: #2563eb;
        --font: 'DM Mono', ui-monospace, monospace;
        font-family: var(--font);
        font-size: 14px;
        color: var(--text);
        /*border: var(--border);*/
        border-radius: var(--radius);
        overflow: hidden;
    }

    /* ── Header ────────────────────────────────────────────── */
    .inv-header {
        display: grid;
        grid-template-columns: var(--col);
        align-items: center;
        padding: 0 10px;
        height: var(--row-h);
        background: #f1f4f8;
        border-bottom: var(--border);
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--muted);
    }

    /* ── Card (one per inventory) ──────────────────────────── */
    .inv-card {
        background: var(--bg);
        border-bottom: var(--border);
    }

    .inv-card:last-child {
        border-bottom: none;
    }

    /* ── Main Row ──────────────────────────────────────────── */
    .inv-row {
        display: grid;
        grid-template-columns: var(--col);
        align-items: center;
        padding: 0 10px;
        height: var(--row-h);
        transition: background 120ms;
    }

    .inv-row:hover {
        background: var(--bg-hover);
    }

    .inv-cell {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-right: 8px;
    }

    .inv-cell--price {
        font-variant-numeric: tabular-nums;
    }

    .inv-cell--muted {
        color: var(--muted);
    }

    .inv-cell--actions {
        display: flex;
        justify-content: flex-end;
        padding-right: 0;
    }

    /* ── Status Badge ──────────────────────────────────────── */
    .inv-badge {
        display: inline-block;
        padding: 1px 7px;
        border-radius: 99px;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .04em;
        text-transform: capitalize;
        background: #e2e6ea;
        color: var(--muted);
    }

    .inv-badge--active,
    .inv-badge--listed {
        background: #d1fae5;
        color: #065f46;
    }

    .inv-badge--sold {
        background: #dbeafe;
        color: #1e40af;
    }

    .inv-badge--pending {
        background: #fef3c7;
        color: #92400e;
    }

    .inv-badge--draft {
        background: #f3f4f6;
        color: #6b7280;
    }

    /* ── Edit Button ───────────────────────────────────────── */
    .inv-edit-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        border: var(--border);
        border-radius: var(--radius);
        background: transparent;
        color: var(--muted);
        cursor: pointer;
        transition: background 120ms, color 120ms, border-color 120ms;
    }

    .inv-edit-btn:hover {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
    }

    /* ── Items Sub-Row ─────────────────────────────────────── */
    .inv-items {
        background: var(--bg-sub);
        border-top: var(--border);
        padding: 4px 10px;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .inv-item {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 3px 6px;
        border-radius: 3px;
        transition: background 120ms;
    }

    .inv-item:hover {
        background: var(--bg-hover);
    }

    .inv-item__name {
        color: var(--text);
        white-space: nowrap;
        /*overflow: hidden;*/
        /*text-overflow: ellipsis;*/
        flex: 1;
        padding-right: 8px;
    }

    .inv-item__images {
        display: flex;
        gap: 3px;
        flex-shrink: 0;
        flex-wrap: wrap;
    }

    .inv-item__thumb {
        width: 50px;
        height: 50px;
        object-fit: cover;
        border-radius: 3px;
        border: 1px solid #dee2e6;
    }

}
