/* ─────────────────────────────────────────────────────────────
   Vendor UI kit — shared by Payments and Support tickets pages (and future vendor pages).
   Wrap a page in <div class="vx"> (add "is-dark" in dark mode).
   Colours follow the MudBlazor theme via --mud-palette-* variables.
   ───────────────────────────────────────────────────────────── */
.vx {
    --accent: var(--mud-palette-primary, #961a1e);
    --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
    --surface: var(--mud-palette-surface, #fff);
    --line: var(--mud-palette-lines-default, rgba(0,0,0,.12));
    --ink: #1d1f23; --ink-2: #555b65; --ink-3: #8a9099;
    --soft: #f5f5f6;
    --ok: #127a46;   --ok-bg: #e7f5ed;
    --warn: #a35a00; --warn-bg: #fdf1e2;
    --bad: #b42318;  --bad-bg: #fdecea;
    --info: #1f5fbf; --info-bg: #e9f0fc;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
    color: var(--ink);
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 4px 48px;
    font-variant-numeric: tabular-nums;
}
.vx.is-dark {
    --ink: #ececee; --ink-2: #b3b7bf; --ink-3: #868b94;
    --soft: rgba(255,255,255,.05);
    --ok: #5fd39a;   --ok-bg: rgba(95,211,154,.12);
    --warn: #f3b061; --warn-bg: rgba(243,176,97,.12);
    --bad: #f58b80;  --bad-bg: rgba(245,139,128,.12);
    --info: #8db4ff; --info-bg: rgba(141,180,255,.12);
    --shadow: none;
}
.vx a { color: inherit; text-decoration: none; }
.vx .muted { color: var(--ink-3); font-size: .8125rem; }
.vx .link { color: var(--accent); font-weight: 600; font-size: .8125rem; }
.vx .link:hover { text-decoration: underline; }
.vx .num { text-align: right; white-space: nowrap; }

/* Page header */
.vx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 8px 0 20px; }
.vx-head h1 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 700; letter-spacing: -.02em; margin: 0 0 4px; color: var(--ink); }
.vx-head p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.vx-crumb { font-size: .8125rem; color: var(--ink-3); margin-bottom: 4px; }
.vx-crumb a:hover { color: var(--accent); }
.vx-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Cards */
.vx-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; min-width: 0; }
.vx-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.vx-card h2 { font-size: 1rem; font-weight: 600; margin: 0; color: var(--ink); }

/* Buttons */
.vx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 38px; padding: 0 14px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink) !important;
    font: inherit; font-size: .875rem; font-weight: 600; white-space: nowrap; cursor: pointer;
    transition: background .15s, border-color .15s;
}
.vx-btn:hover { background: var(--soft); }
.vx-btn:disabled, .vx-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.vx-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff !important; }
.vx-btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.vx-btn-danger { color: var(--bad) !important; }
.vx-btn-danger:hover { background: var(--bad-bg); border-color: transparent; }
.vx-btn-block { width: 100%; height: 46px; font-size: .95rem; }

/* KPIs */
.vx-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.vx-kpi-label { font-size: .8125rem; color: var(--ink-2); font-weight: 500; }
.vx-kpi-value { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 4px; color: var(--ink); }
.vx-kpi-accent { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: linear-gradient(180deg, var(--accent-soft), transparent 70%), var(--surface); }

/* Callout */
.vx-callout { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--warn-bg); color: var(--warn); margin-bottom: 16px; flex-wrap: wrap; }
.vx-callout strong { color: var(--ink); }
.vx-callout .vx-callout-text { flex: 1; min-width: 220px; color: var(--ink-2); font-size: .9rem; }
.vx-callout.ok { background: var(--ok-bg); color: var(--ok); }
.vx-callout.bad { background: var(--bad-bg); color: var(--bad); }

/* Segmented filter */
.vx-seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--soft); border: 1px solid var(--line); border-radius: 9px; flex-wrap: wrap; }
.vx-seg button { border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: 6px; cursor: pointer; }
.vx-seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.vx-seg .count { color: var(--ink-3); font-weight: 500; margin-left: 4px; }

/* Inputs */
.vx-field { display: grid; gap: 6px; margin-bottom: 14px; }
.vx-field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.vx-field .hint { font-size: .75rem; color: var(--ink-3); }
.vx-input {
    height: 40px; padding: 0 12px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    font: inherit; font-size: .9rem; width: 100%; box-sizing: border-box;
}
textarea.vx-input { height: auto; min-height: 72px; padding: 10px 12px; resize: vertical; }
.vx-input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; border-color: var(--accent); }
.vx-search { width: 220px; height: 34px; font-size: .85rem; }
.vx-date { width: 150px; height: 34px; font-size: .85rem; }
.vx-range { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-3); }

/* Tables */
.vx-table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.vx-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.vx-table th {
    text-align: left; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
    color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: transparent;
}
.vx-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink); background: transparent; }
.vx-table tbody tr:last-child td { border-bottom: 0; }
.vx-table tbody tr.clickable { cursor: pointer; }
.vx-table tbody tr.clickable:hover td, .vx-table tbody tr.selected td { background: var(--soft); }
.vx-table .sub { display: block; font-size: .75rem; color: var(--ink-3); }
.vx-table input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.vx-table tfoot td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; }

/* Pills */
.vx-pill { display: inline-block; font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.vx-pill.ok { color: var(--ok); background: var(--ok-bg); }
.vx-pill.warn { color: var(--warn); background: var(--warn-bg); }
.vx-pill.bad { color: var(--bad); background: var(--bad-bg); }
.vx-pill.info { color: var(--info); background: var(--info-bg); }
.vx-pill.muted { color: var(--ink-3); background: var(--soft); }

/* Empty / alerts */
.vx-empty { text-align: center; color: var(--ink-3); padding: 36px 12px; }
.vx-empty h3 { margin: 10px 0 4px; font-size: 1rem; color: var(--ink); }
.vx-empty p { margin: 0 0 14px; font-size: .875rem; }
.vx-alert { padding: 10px 12px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-size: .85rem; margin-bottom: 14px; }
.vx-alert ul { margin: 0; padding-left: 18px; }

/* Two-column builder */
.vx-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.vx-sticky { position: sticky; top: 80px; }
.vx-sum-row { display: flex; justify-content: space-between; font-size: .875rem; color: var(--ink-2); padding: 6px 0; }
.vx-sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 16px; margin-top: 6px; border-top: 1px solid var(--line); }
.vx-sum-total span:last-child { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.vx-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Invoice document */
.vx-doc { max-width: 900px; margin: 0 auto; padding: 36px; }
.vx-doc-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.vx-doc-title { font-size: 1.9rem; font-weight: 800; letter-spacing: .08em; color: var(--accent); margin: 0 0 8px; }
.vx-doc-meta { display: grid; grid-template-columns: auto auto; gap: 4px 16px; font-size: .875rem; }
.vx-doc-meta dt { color: var(--ink-3); margin: 0; }
.vx-doc-meta dd { margin: 0; font-weight: 600; text-align: right; }
.vx-doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px 0; }
.vx-doc-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 6px; }
.vx-doc-party { font-size: .875rem; line-height: 1.55; color: var(--ink-2); }
.vx-doc-party strong { display: block; color: var(--ink); font-size: 1rem; }
.vx-doc-total { display: flex; justify-content: flex-end; margin-top: 8px; }
.vx-doc-total dl { display: grid; grid-template-columns: auto auto; gap: 6px 32px; margin: 0; min-width: 260px; }
.vx-doc-total dt { color: var(--ink-2); margin: 0; }
.vx-doc-total dd { margin: 0; text-align: right; font-weight: 600; }
.vx-doc-total .grand { font-size: 1.15rem; font-weight: 800; color: var(--ink); padding-top: 8px; border-top: 2px solid var(--ink); }
.vx-doc-foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-3); }

/* Responsive */
@media (max-width: 1100px) { .vx-split { grid-template-columns: minmax(0, 1fr); } .vx-sticky { position: static; } }
@media (max-width: 760px) {
    .vx-kpis { grid-template-columns: minmax(0, 1fr); }
    .vx-doc { padding: 20px; }
    .vx-doc-parties { grid-template-columns: minmax(0, 1fr); }
    .vx-table .hide-sm { display: none; }
    .vx-search { width: 100%; }
    .vx-range { width: 100%; }
    .vx-range .vx-date { flex: 1; min-width: 0; width: auto; }
    .vx-toolbar { width: 100%; }
}

/* Print: show only the invoice document */
@media print {
    .mud-appbar, .mud-drawer, .no-print, #blazor-error-ui { display: none !important; }
    .mud-main-content { padding: 0 !important; margin: 0 !important; }
    .mud-layout, body { background: #fff !important; }
    .vx { --ink: #000; --ink-2: #333; --ink-3: #666; --line: #ccc; --surface: #fff; max-width: none; padding: 0; }
    .vx-card.vx-doc { border: 0; box-shadow: none; padding: 0; max-width: none; }
    .vx-pill { border: 1px solid currentColor; }
}

/* Support tickets: two-up fields + conversation thread */
.vx-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.vx-thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vx-msg { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); max-width: 92%; }
.vx-msg.mine { justify-self: end; background: var(--accent-soft); border-color: transparent; }
.vx-msg.support { justify-self: start; border-left: 3px solid var(--info); }
.vx-msg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: .85rem; }
.vx-msg-head .muted { margin-left: auto; }
.vx-msg-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; color: var(--ink); line-height: 1.5; }
@media (max-width: 760px) {
    .vx-grid-2 { grid-template-columns: minmax(0, 1fr); }
    .vx-msg { max-width: 100%; }
}

/* Shop visitors: KPIs, visits chart, top products, people, visitor dialog */
.vx-kpis.vx-kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vx-kpi-value.vx-kpi-text { font-size: 1.05rem; line-height: 1.3; margin: 10px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-trend { font-weight: 700; }
.vx-trend.up { color: var(--ok); }
.vx-trend.down { color: var(--bad); }
.vx-split.vx-split-even { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

.vx-chart { position: relative; height: 200px; padding-left: 36px; }
.vx-chart-grid { position: absolute; inset: 0 0 0 36px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.vx-chart-grid span { display: block; height: 0; border-top: 1px solid var(--line); position: relative; }
.vx-chart-grid span:last-child { border-top-color: color-mix(in srgb, var(--ink-3) 55%, transparent); }
.vx-chart-grid span::before { content: attr(data-v); position: absolute; right: calc(100% + 6px); top: -.55em; font-size: .7rem; line-height: 1; color: var(--ink-3); white-space: nowrap; }
.vx-bars { position: relative; z-index: 1; height: 100%; display: flex; align-items: flex-end; gap: 2px; }
.vx-bars.dense { gap: 1px; }
.vx-bar-slot { position: relative; flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 2px; outline: none; }
.vx-bar { width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; transition: opacity .15s; }
.vx-bars.dense .vx-bar { border-radius: 2px 2px 0 0; }
.vx-bar.zero { background: var(--line); }
.vx-bars:hover .vx-bar { opacity: .55; }
.vx-bar-slot:hover .vx-bar, .vx-bar-slot:focus .vx-bar { opacity: 1; }
.vx-bar-slot:hover::before, .vx-bar-slot:focus::before { content: ""; position: absolute; inset: 0 -1px; background: var(--soft); border-radius: 4px; z-index: -1; }
.vx-tip {
    display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    background: var(--ink); color: var(--surface); font-size: .75rem; padding: 6px 9px; border-radius: 8px;
    white-space: nowrap; z-index: 5; pointer-events: none; box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.vx-tip strong { display: block; font-size: .8rem; }
.vx-bar-slot:hover .vx-tip, .vx-bar-slot:focus .vx-tip { display: block; }
.vx-bar-slot:first-child .vx-tip { left: 0; transform: none; }
.vx-bar-slot:last-child .vx-tip { left: auto; right: 0; transform: none; }
.vx-chart-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-3); padding: 6px 0 0 36px; }

.vx-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vx-rank-row { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; margin-bottom: 5px; }
.vx-rank-name { color: var(--ink) !important; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-rank-name:hover { color: var(--accent) !important; }
.vx-rank-val { color: var(--ink-2); font-weight: 600; }
.vx-meter { height: 6px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.vx-meter span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }

.vx-avatar {
    display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
    width: 32px; height: 32px; border-radius: 50%; margin-right: 10px; flex: none;
    background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 700;
}
.vx-avatar.lg { width: 48px; height: 48px; font-size: 1rem; margin-right: 0; }
.vx-who { display: inline-block; vertical-align: middle; }
.vx-more { text-align: center; margin-top: 14px; }

.vx.vx-dialog { padding: 0; max-width: none; }
.vx-person { display: flex; align-items: center; gap: 12px; }
.vx-person strong { font-size: 1.05rem; color: var(--ink); }
.vx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.vx-stats > div { background: var(--soft); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.vx-stats strong { font-size: 1rem; color: var(--ink); }
.vx-subhead { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin: 16px 0 8px; }
.vx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vx-chip { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: .8rem; color: var(--ink) !important; }
.vx-chip:hover { border-color: var(--accent); }
.vx-chip .count { color: var(--ink-3); }
.vx-timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 10px; max-height: 300px; overflow-y: auto; }
.vx-timeline li { position: relative; font-size: .85rem; color: var(--ink-2); display: flex; gap: 12px; flex-wrap: wrap; }
.vx-timeline li::before { content: ""; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.vx-timeline .when { color: var(--ink-3); min-width: 110px; font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) {
    .vx-kpis.vx-kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vx-split.vx-split-even { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .vx-kpis.vx-kpis-4 { grid-template-columns: minmax(0, 1fr); }
    .vx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vx-chart { height: 160px; }
    .vx-table td .vx-avatar, .vx-table td .vx-pill { display: none; }
}

/* Orders: clickable pipeline tiles, pager, bulk bar */
.vx-kpi-btn { display: block; width: 100%; box-sizing: border-box; min-width: 0; text-align: left; font: inherit; cursor: pointer; color: inherit; transition: border-color .15s, box-shadow .15s; }
.vx-kpi-btn:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.vx-kpi-btn.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.vx-kpi-btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.vx-select { width: auto; min-width: 150px; height: 38px; }
.vx-btn-sm { height: 30px; padding: 0 10px; font-size: .78rem; border-radius: 8px; }
.vx-ellipsis { display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-table .sub.link { display: block; margin-top: 3px; font-size: .75rem; }
.vx-late { color: var(--bad) !important; font-weight: 600; }
.vx-table-wrap.is-busy { opacity: .55; pointer-events: none; transition: opacity .15s; }
.vx-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.vx-bulkbar {
    position: sticky; bottom: 16px; z-index: 20; margin-top: 16px;
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line);
    background: var(--surface); box-shadow: 0 8px 24px rgba(16,24,40,.14); color: var(--ink);
}
@media (max-width: 760px) {
    .vx-select { flex: 1; min-width: 0; }
    .vx-ellipsis { max-width: 150px; }
    .vx-table td { padding: 10px 6px; }
    .vx-bulkbar .vx-actions { width: 100%; }
    .vx-bulkbar .vx-btn { flex: 1; }
}

/* Products: filters, thumbnails, grid tiles, danger zone */
.vx-kpi-warn .vx-kpi-value { color: var(--bad); }
.vx-meter.full span { background: var(--bad); }
.vx-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.vx-filters { margin: -4px 0 14px; }
.vx-filters .vx-search { flex: 1 1 260px; }
.vx-chip-btn { border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent); font: inherit; font-size: .78rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.vx-count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px; border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent); font-size: .7rem; line-height: 18px; text-align: center; }
.vx-table tr.off td { color: var(--ink-3); }
.vx-table .vx-pill + .vx-pill { margin-left: 4px; }
.vx-prod { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vx-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--soft); border: 1px solid var(--line); flex: none; }
.vx-table tr.off .vx-thumb { filter: grayscale(1); opacity: .6; }
.vx-table .sub s, .vx-price s { color: var(--ink-3); }

.vx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.vx-grid.is-busy { opacity: .55; pointer-events: none; }
.vx-tile { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.vx-tile:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow); }
.vx-tile.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.vx-tile.off .vx-tile-img img { filter: grayscale(1); opacity: .55; }
.vx-tile-img { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--soft); }
.vx-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vx-tile-flags { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.vx-tile-flags .vx-pill { box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.vx-tile-flags .vx-pill.muted { background: var(--surface); }
.vx-tile-check { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 8px; background: var(--surface); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.15); cursor: pointer; }
.vx-tile-check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.vx-tile-body { padding: 10px 12px 12px; display: grid; gap: 6px; }
.vx-tile-name { color: var(--ink) !important; font-weight: 600; font-size: .875rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.vx-price { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: .9rem; }
.vx-price s { font-size: .78rem; }
.vx-tile-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.vx-danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 16px 20px; border: 1px dashed color-mix(in srgb, var(--bad) 45%, var(--line)); border-radius: var(--radius); }
.vx-danger-zone > div { display: grid; gap: 2px; max-width: 640px; }
.vx-danger-zone strong { color: var(--ink); }

@media (max-width: 760px) {
    .vx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .vx-thumb { width: 36px; height: 36px; }
    .vx-filters .vx-search { flex-basis: 100%; }
}

/* Product upload: steps, drop zone, row messages */
.vx-steps { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0 0 16px; }
.vx-steps li { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--ink-3); padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--soft); }
.vx-steps li span { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); font-size: .75rem; }
.vx-steps li.on { color: var(--ink); background: var(--accent-soft); }
.vx-steps li.on span { background: var(--accent); border-color: var(--accent); color: #fff; }
.vx-steps li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.vx-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 220px; padding: 24px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s; }
.vx-drop:hover, .vx-drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.vx-drop strong { color: var(--ink); font-size: 1rem; }
.vx-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.vx-drop.busy { opacity: .6; pointer-events: none; }
.vx-howto { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: .875rem; color: var(--ink-2); }
.vx-howto code { font-size: .78rem; background: var(--soft); padding: 1px 5px; border-radius: 4px; color: var(--ink); }
.vx-cols { margin-top: 14px; font-size: .82rem; }
.vx-cols summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.vx-cols dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 10px 0 0; }
.vx-cols dt { font-weight: 600; color: var(--ink); }
.vx-cols dd { margin: 0; color: var(--ink-3); }
.vx-check { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-2); cursor: pointer; }
.vx-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.vx-msgs { margin: 4px 0 0; padding-left: 16px; font-size: .75rem; color: var(--warn); }
.vx-msgs.bad { color: var(--bad); }
.vx-meter.lg { height: 10px; }
