body[data-page="marketplaces"].pos-app {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mp-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0.75rem 1rem 0.75rem;
}

.mp-market-tabs {
    flex-shrink: 0;
    margin-bottom: 0.75rem;
    max-width: 420px;
}

.mp-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.mp-panel.hidden {
    display: none;
}

.mp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.mp-meta {
    min-width: 0;
    flex: 1 1 16rem;
}

.mp-meta__path {
    font-size: 0.82rem;
    color: var(--pos-muted, #64748b);
    word-break: break-all;
}

.mp-meta__counts {
    margin-top: 0.2rem;
    font-size: 0.92rem;
}

.mp-toolbar__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.mp-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
}

.mp-search {
    flex: 1 1 16rem;
    min-width: 0;
}

.mp-search input {
    width: 100%;
    min-height: 2.4rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--pos-line, #e2e8f0);
    border-radius: 999px;
    font-size: 0.95rem;
}

.mp-status-tabs {
    flex: 1 1 18rem;
}

.mp-table-wrap {
    flex: 1 1 auto;
    min-height: 10rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--pos-line, #e2e8f0);
    border-radius: 12px;
    background: #fff;
}

.mp-table {
    font-size: 0.88rem;
}

.mp-table th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 1;
    white-space: nowrap;
    font-weight: 600;
}

.mp-table td {
    vertical-align: top;
}

.mp-empty {
    text-align: center;
    color: var(--pos-muted, #64748b);
    padding: 2rem 1rem;
}

.mp-article {
    font-variant-numeric: tabular-nums;
}

.mp-divisor {
    color: var(--pos-muted, #64748b);
    font-size: 0.82rem;
}

.mp-pos-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.mp-pos-link:hover {
    text-decoration: underline;
}

.mp-pos-name {
    color: var(--pos-muted, #64748b);
    font-size: 0.82rem;
}

.mp-badge {
    display: inline-block;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.mp-badge--linked {
    background: #dcfce7;
    color: #166534;
}

.mp-badge--missing {
    background: #fee2e2;
    color: #991b1b;
}

.mp-badge--kit_partial {
    background: #ffedd5;
    color: #9a3412;
}

.mp-qty {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.mp-qty.is-zero {
    color: #b45309;
}

.mp-qty.is-missing {
    color: var(--pos-muted, #64748b);
    font-weight: 500;
}

.mp-updated {
    white-space: nowrap;
    color: var(--pos-muted, #64748b);
    font-size: 0.8rem;
}

.mp-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.65rem 0 0.15rem;
    flex-shrink: 0;
}

.pos-toast.info {
    background: #eff6ff;
    color: #1d4ed8;
}

.mp-stub {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
}

.mp-stub__title {
    margin: 0 0 0.4rem;
    font-size: 1.2rem;
    font-weight: 650;
}

.mp-stub__text {
    margin: 0;
    color: var(--pos-muted, #64748b);
}

@media (max-width: 720px) {
    .mp-status-tabs {
        width: 100%;
    }

    .mp-table th:nth-child(7),
    .mp-table td:nth-child(7) {
        display: none;
    }
}
