:root {
    --xzg-blue: #1677e8;
    --xzg-blue-dark: #0b66d8;
    --xzg-border: #dbe4f0;
    --xzg-border-soft: #e8eef6;
    --xzg-text: #1f2a44;
    --xzg-muted: #64748b;
    --xzg-bg: #f7f9fc;
    --xzg-card: #ffffff;
    --xzg-green: #16a34a;
    --xzg-red: #ef4444;
    --xzg-purple: #7c3aed;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body.xzg-workbench-page {
    min-width: 1180px;
    margin: 0;
    background: var(--xzg-bg);
    color: var(--xzg-text);
    font-size: 14px;
}

.xzg-report-view[data-xzg-v2-view="follow-pricing"] input[type="number"]::-webkit-outer-spin-button,
.xzg-report-view[data-xzg-v2-view="follow-pricing"] input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.xzg-report-view[data-xzg-v2-view="follow-pricing"] input[type="number"] {
    -moz-appearance: textfield;
}

.xzg-topbar {
    height: 68px;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 240px;
    align-items: center;
    background: linear-gradient(180deg, var(--xzg-blue), var(--xzg-blue-dark));
    color: #ffffff;
}

html[data-xzg-mode="store-only"] .xzg-tabs {
    display: none;
}

.xzg-brand {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    padding-left: 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.xzg-brand-mark {
    width: 42px;
    height: 42px;
    display: block;
    border-radius: 10px;
    background: #ffffff;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.xzg-brand-copy {
    display: grid;
    line-height: 1.1;
}

.xzg-brand-copy strong {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0;
}

.xzg-brand-copy small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 700;
}

.xzg-tabs {
    height: 100%;
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow: visible;
    position: relative;
    z-index: 50;
}

.xzg-nav-group {
    position: relative;
    height: 100%;
}

.xzg-nav-trigger,
.xzg-nav-standalone {
    min-width: 106px;
    padding: 0 12px;
    border: 0;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.xzg-nav-trigger {
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.xzg-nav-standalone {
    height: 100%;
}

.xzg-nav-trigger:hover,
.xzg-nav-trigger:focus-visible,
.xzg-nav-standalone:hover,
.xzg-nav-standalone:focus-visible,
.xzg-nav-standalone.is-active,
.xzg-nav-group.is-active > .xzg-nav-trigger,
.xzg-nav-group.is-open > .xzg-nav-trigger {
    background: rgba(0, 67, 154, 0.28);
}

.xzg-nav-trigger:focus-visible,
.xzg-nav-standalone:focus-visible,
.xzg-nav-menu button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -3px;
}

.xzg-nav-chevron {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 160ms ease;
}

.xzg-nav-group.is-open .xzg-nav-chevron {
    transform: translateY(2px) rotate(225deg);
}

.xzg-nav-menu {
    position: absolute;
    top: calc(100% - 5px);
    left: 50%;
    z-index: 60;
    width: max-content;
    min-width: 190px;
    padding: 8px;
    border: 1px solid var(--xzg-border);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 42, 76, 0.2), 0 4px 10px rgba(15, 42, 76, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.xzg-nav-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    width: 11px;
    height: 11px;
    border-top: 1px solid var(--xzg-border);
    border-left: 1px solid var(--xzg-border);
    background: #ffffff;
    transform: translateX(-50%) rotate(45deg);
}

.xzg-nav-group.is-open > .xzg-nav-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.xzg-nav-menu button {
    position: relative;
    width: 100%;
    min-width: 174px;
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 9px 14px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--xzg-text);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.xzg-nav-menu button:hover,
.xzg-nav-menu button:focus-visible {
    background: #edf5ff;
    color: var(--xzg-blue-dark);
}

.xzg-nav-menu button.is-active {
    padding-left: 27px;
    background: #e7f2ff;
    color: var(--xzg-blue-dark);
}

.xzg-nav-menu button.is-active::before {
    content: "";
    position: absolute;
    left: 13px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--xzg-blue);
}

@media (prefers-reduced-motion: reduce) {
    .xzg-nav-trigger,
    .xzg-nav-standalone,
    .xzg-nav-chevron,
    .xzg-nav-menu,
    .xzg-nav-menu button {
        transition: none;
    }
}

.xzg-top-actions {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding-right: 24px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

.xzg-top-actions span:first-child {
    white-space: nowrap;
}

.xzg-account {
    min-width: 132px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #ffffff;
    color: #1672d7;
}

.xzg-logout-btn {
    min-width: 82px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.xzg-logout-btn:hover,
.xzg-logout-btn:focus-visible {
    background: rgba(255, 255, 255, 0.22);
}

.xzg-logout-btn:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.xzg-page {
    padding: 22px 26px 28px;
}

.xzg-breadcrumb {
    display: flex;
    gap: 12px;
    color: #667085;
    font-size: 14px;
}

.xzg-breadcrumb-separator {
    color: #98a2b3;
}

.xzg-page-head {
    margin: 24px 0 22px;
}

.xzg-page-head h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: 0;
}

.xzg-page-head p,
.xzg-control-card p,
.xzg-result-head p,
.xzg-history-meta {
    margin: 12px 0 0;
    color: var(--xzg-muted);
    line-height: 1.55;
}

.xzg-result-note {
    margin-top: 9px;
    margin-bottom: 0;
    padding: 10px 12px;
    border-left: 3px solid #0b74e5;
    border-radius: 4px;
    background: #edf4ff;
    color: #244b8a;
}

.xzg-card {
    border: 1px solid var(--xzg-border);
    border-radius: 5px;
    background: var(--xzg-card);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.xzg-web-module-view .xzg-entry-card {
    margin-bottom: 14px;
    padding: 14px 18px;
}

.xzg-web-module-frame {
    display: block;
    width: 100%;
    min-height: calc(100vh - 310px);
    border: 0;
    border-radius: 5px;
    background: #ffffff;
}

body.xzg-workbench-page--collected-data .xzg-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
}

body.xzg-workbench-page--collected-data :is(
    [data-xzg-panel="collected-data"],
    [data-xzg-panel="planned-listing-stores"]
) .xzg-web-module-frame {
    height: calc(100vh - 310px);
    overflow: hidden;
}

html.xzg-collected-overlay-open {
    overflow: clip;
    overscroll-behavior: none;
}

body.xzg-collected-overlay-open {
    overscroll-behavior: none;
}

body.xzg-workbench-page--collected-data [data-xzg-panel="collected-data"].is-collected-overlay-open {
    min-height: var(--xzg-collected-overlay-placeholder-height, 100vh);
}

body.xzg-workbench-page--collected-data [data-xzg-panel="collected-data"] .xzg-web-module-frame.is-collected-overlay-open {
    position: fixed;
    top: var(--xzg-collected-overlay-top, 0);
    right: 0;
    bottom: auto;
    left: 0;
    z-index: 90;
    width: 100vw;
    height: calc(100vh - var(--xzg-collected-overlay-top, 0px)) !important;
    height: calc(100dvh - var(--xzg-collected-overlay-top, 0px)) !important;
    max-height: calc(100dvh - var(--xzg-collected-overlay-top, 0px));
    min-height: 0;
    border-radius: 0;
}

.xzg-collector-view {
    max-width: 1180px;
    margin: 0 auto;
}

.xzg-collector-control,
.xzg-collector-runtime {
    margin-top: 20px;
    padding: 24px;
}

.xzg-collector-control-head,
.xzg-collector-runtime-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.xzg-collector-control-head h2,
.xzg-collector-runtime-head h2 {
    margin: 0;
    color: #1d2939;
    font-size: 20px;
    line-height: 1.3;
}

.xzg-collector-control-head p,
.xzg-collector-runtime-head p {
    margin: 8px 0 0;
    color: #475467;
    line-height: 1.65;
}

.xzg-collector-engine-badge,
.xzg-collector-status-pill {
    flex: 0 0 auto;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 12px;
    background: #f2f4f7;
    color: #475467;
    font-size: 13px;
    font-weight: 800;
}

.xzg-collector-engine-badge[data-state="ready"],
.xzg-collector-status-pill[data-status="succeeded"] {
    background: #ecfdf3;
    color: #067647;
}

.xzg-collector-engine-badge[data-state="missing"],
.xzg-collector-status-pill[data-status="failed"] {
    background: #fef3f2;
    color: #b42318;
}

.xzg-collector-status-pill[data-status="running"] {
    background: #eff8ff;
    color: #175cd3;
}

.xzg-collector-status-pill[data-status="paused"],
.xzg-collector-status-pill[data-status="stopped"] {
    background: #fffaeb;
    color: #b54708;
}

.xzg-collector-form {
    display: grid;
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    align-items: end;
    gap: 20px;
    margin-top: 24px;
}

.xzg-collector-template-field {
    display: grid;
    gap: 8px;
    color: #344054;
    font-weight: 800;
}

.xzg-collector-template-field select {
    width: 100%;
    height: 42px;
    border: 1px solid #cfd8e6;
    border-radius: 8px;
    padding: 0 12px;
    background: #ffffff;
    color: #1d2939;
    font: inherit;
}

.xzg-collector-template-field select:focus-visible,
.xzg-collector-actions .xzg-btn:focus-visible,
.xzg-collector-links a:focus-visible {
    outline: 3px solid rgba(22, 119, 232, 0.24);
    outline-offset: 2px;
}

.xzg-collector-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.xzg-collector-actions .xzg-btn {
    min-height: 42px;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.xzg-collector-actions .xzg-btn:disabled,
.xzg-collector-template-field select:disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

.xzg-collector-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 18px;
    color: #475467;
}

.xzg-collector-links a {
    color: #175cd3;
    font-weight: 800;
    text-decoration: none;
}

.xzg-collector-links a:hover {
    text-decoration: underline;
}

.xzg-collector-status {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 14px 16px;
    background: #f9fafb;
    color: #344054;
    line-height: 1.6;
    white-space: pre-line;
}

.xzg-collector-status[data-tone="info"] {
    border-color: #b2ddff;
    background: #eff8ff;
    color: #175cd3;
}

.xzg-collector-status[data-tone="success"] {
    border-color: #abefc6;
    background: #ecfdf3;
    color: #067647;
}

.xzg-collector-status[data-tone="warning"] {
    border-color: #fedf89;
    background: #fffaeb;
    color: #b54708;
}

.xzg-collector-status[data-tone="danger"] {
    border-color: #fecdca;
    background: #fef3f2;
    color: #b42318;
}

.xzg-collector-status-icon {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    margin-top: 5px;
    border: 3px solid currentColor;
    border-radius: 50%;
}

.xzg-collector-status[data-tone="info"] .xzg-collector-status-icon {
    border-right-color: transparent;
    animation: xzg-collector-spin 900ms linear infinite;
}

.xzg-collector-runtime-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 0;
}

.xzg-collector-runtime-meta div {
    min-width: 0;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
}

.xzg-collector-runtime-meta dt {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.xzg-collector-runtime-meta dd {
    overflow-wrap: anywhere;
    margin: 6px 0 0;
    color: #1d2939;
    font-weight: 800;
}

.xzg-collector-fallback {
    display: grid;
    gap: 5px;
    margin-top: 18px;
    border-left: 4px solid #f79009;
    border-radius: 8px;
    padding: 14px 16px;
    background: #fffaeb;
    color: #7a2e0e;
    line-height: 1.55;
}

.xzg-collector-fallback[data-ready="true"] {
    display: none;
}

@keyframes xzg-collector-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .xzg-collector-status[data-tone="info"] .xzg-collector-status-icon {
        animation: none;
    }

    .xzg-collector-actions .xzg-btn {
        transition: none;
    }
}

@media (max-width: 900px) {
    body.xzg-workbench-page {
        min-width: 0;
        overflow-x: hidden;
    }

    .xzg-topbar {
        height: auto;
        min-height: 68px;
        grid-template-columns: minmax(150px, auto) minmax(0, 1fr);
    }

    .xzg-tabs {
        grid-column: 1 / -1;
        grid-row: 2;
        min-height: 48px;
        order: 3;
    }

    .xzg-top-actions {
        padding-right: 12px;
    }

    .xzg-top-actions > span:first-child {
        display: none;
    }

    .xzg-page {
        width: 100%;
        min-width: 0;
        padding: 18px 12px 32px;
    }

    .xzg-collector-control-head,
    .xzg-collector-runtime-head,
    .xzg-collector-form {
        grid-template-columns: minmax(0, 1fr);
        flex-direction: column;
        align-items: stretch;
    }

    .xzg-collector-control,
    .xzg-collector-runtime {
        padding: 18px;
    }

    .xzg-collector-runtime-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .xzg-brand {
        padding-left: 14px;
    }

    .xzg-brand-copy small,
    .xzg-account {
        display: none;
    }

    .xzg-collector-actions,
    .xzg-collector-actions .xzg-btn {
        width: 100%;
    }

    .xzg-collector-runtime-meta {
        grid-template-columns: minmax(0, 1fr);
    }
}

.xzg-control-card {
    padding: 26px 24px 24px;
}

.xzg-control-card h2,
.xzg-result-head h2 {
    margin: 0;
    color: #111827;
    font-size: 22px;
    font-weight: 850;
    letter-spacing: 0;
}

.xzg-control-card a {
    color: #0b74e5;
    text-decoration: none;
}

.xzg-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 22px;
}

.xzg-btn {
    min-width: 118px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid #cfd9e6;
    border-radius: 5px;
    background: #ffffff;
    color: #24324b;
    font: inherit;
    font-weight: 760;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.xzg-btn:hover,
.xzg-btn:focus-visible {
    border-color: #9cc5f7;
    color: #0f6ed6;
}

.xzg-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.xzg-btn-primary {
    min-width: 158px;
    border-color: #0b74e5;
    background: #0b74e5;
    color: #ffffff;
}

.xzg-btn-primary:hover,
.xzg-btn-primary:focus-visible {
    border-color: #075ec0;
    background: #075ec0;
    color: #ffffff;
}

.xzg-btn-danger {
    border-color: #ff9a9a;
    color: #f04438;
}

.xzg-btn-wide {
    min-width: 304px;
}

.xzg-progress-line {
    display: grid;
    grid-template-columns: auto auto minmax(220px, 1fr);
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    color: #344054;
    font-size: 16px;
}

.xzg-progress-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1976e9;
}

.xzg-progress-track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e4eefb;
}

.xzg-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: repeating-linear-gradient(45deg, #1f7df1 0 12px, #3f94ff 12px 24px);
    transition: width 220ms ease;
}

.xzg-history-meta {
    margin: 24px 12px;
    color: #344054;
    font-size: 16px;
}

.xzg-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.xzg-metric {
    min-height: 118px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--xzg-border);
    border-radius: 5px;
    background: #ffffff;
}

.xzg-metric-icon {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    border-radius: 12px;
    background: #eef6ff;
}

.xzg-metric-icon[data-tone="green"] {
    background: #ecfdf3;
}

.xzg-metric-icon[data-tone="red"] {
    background: #fff1f0;
}

.xzg-metric-icon[data-tone="purple"] {
    background: #f4f0ff;
}

.xzg-metric span {
    display: block;
    color: #667085;
    font-size: 17px;
}

.xzg-metric strong {
    display: block;
    margin-top: 12px;
    color: #101828;
    font-size: 30px;
    line-height: 1;
    font-weight: 850;
}

.xzg-info {
    margin-top: 24px;
    padding: 21px 24px;
    border: 1px solid #9fc7ff;
    border-radius: 5px;
    background: #eff7ff;
    color: #126fe3;
    font-size: 16px;
    font-weight: 760;
}

.xzg-info[data-tone="danger"] {
    border-color: #ffb4b4;
    background: #fff5f5;
    color: #d92d20;
}

.xzg-result-card {
    margin-top: 24px;
}

.xzg-result-head {
    padding: 26px 24px 20px;
    border-bottom: 1px solid var(--xzg-border-soft);
}

.xzg-filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 26px;
    padding: 22px 22px;
    border-bottom: 1px solid var(--xzg-border-soft);
}

.xzg-filter-bar label {
    display: grid;
    gap: 9px;
    justify-items: start;
    color: #475467;
    font-size: 16px;
    font-weight: 760;
}

.xzg-filter-bar input,
.xzg-filter-bar select {
    height: 44px;
    border: 1px solid #d8e1ec;
    border-radius: 5px;
    background: #ffffff;
    color: #1f2a44;
    font: inherit;
}

.xzg-filter-bar input {
    width: calc(100% - 12px);
    max-width: 420px;
    padding: 0 14px;
}

.xzg-filter-bar select {
    width: calc(100% - 12px);
    max-width: 180px;
    padding: 0 12px;
}

.xzg-filter-bar .xzg-number-field input {
    max-width: 160px;
}

.xzg-filter-bar .xzg-btn {
    height: 44px;
}

.xzg-table-shell {
    width: 100%;
    overflow: auto;
}

.xzg-table-shell.xzg-table-shell--synced {
    scrollbar-width: none;
}

.xzg-table-shell.xzg-table-shell--synced::-webkit-scrollbar {
    height: 0;
}

.xzg-table-scrollbar {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 24px 0;
    scrollbar-color: rgba(148, 163, 184, 0.9) rgba(226, 232, 240, 0.9);
    scrollbar-width: thin;
}

.xzg-table-scrollbar[hidden] {
    display: none !important;
}

.xzg-table-scrollbar::-webkit-scrollbar {
    height: 12px;
}

.xzg-table-scrollbar::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.9);
}

.xzg-table-scrollbar::-webkit-scrollbar-thumb {
    border: 2px solid rgba(226, 232, 240, 0.9);
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.95);
}

.xzg-table-scrollbar__track {
    height: 1px;
}

.xzg-table {
    width: 100%;
    min-width: 1280px;
    border-collapse: collapse;
    table-layout: fixed;
}

.xzg-table th,
.xzg-table td {
    height: 58px;
    padding: 11px 12px;
    border-right: 1px solid var(--xzg-border-soft);
    border-bottom: 1px solid var(--xzg-border-soft);
    color: #344054;
    text-align: left;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xzg-table th {
    position: relative;
    height: 52px;
    background: #f3f6fb;
    color: #526173;
    font-weight: 850;
}

.xzg-table th:first-child,
.xzg-table td:first-child {
    width: 72px;
    text-align: center;
}

.xzg-table th:nth-child(2),
.xzg-table td:nth-child(2) {
    width: 180px;
}

.xzg-table th:nth-child(5),
.xzg-table td:nth-child(5) {
    width: 260px;
}

.xzg-table td {
    word-break: break-word;
}

.xzg-table tbody tr:hover {
    background: #f8fbff;
}

.xzg-table th[data-xzg-sort-header]:hover,
.xzg-table th[data-xzg-sort-header]:focus-within,
.xzg-table th[data-xzg-v2-sort-header]:hover,
.xzg-table th[data-xzg-v2-sort-header]:focus-within {
    background: #ebf2ff;
}

.xzg-table th[data-xzg-sort-header].is-active-sort,
.xzg-table th[data-xzg-v2-sort-header].is-active-sort {
    background: #e7eefb;
}

.xzg-table th[data-xzg-sort-header].is-sort-asc,
.xzg-table th[data-xzg-sort-header].is-sort-desc,
.xzg-table th[data-xzg-v2-sort-header].is-sort-asc,
.xzg-table th[data-xzg-v2-sort-header].is-sort-desc {
    box-shadow: inset 0 2px 0 0 rgba(11, 116, 229, 0.18);
}

.xzg-sort-btn {
    width: 100%;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #526173;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    text-align: left;
    transition: color 160ms ease;
}

.xzg-sort-btn:hover,
.xzg-sort-btn:focus-visible {
    color: #0f6ed6;
}

.xzg-sort-btn:focus-visible {
    outline: 2px solid rgba(22, 119, 232, 0.28);
    outline-offset: 2px;
    border-radius: 3px;
}

.xzg-sort-btn span {
    width: 14px;
    flex: 0 0 14px;
    text-align: center;
    color: #0f6ed6;
}

.xzg-resizable-col {
    padding-right: 18px !important;
}

.xzg-col-resizer {
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 100%;
    cursor: col-resize;
    user-select: none;
}

.xzg-col-resizer::before {
    content: "";
    position: absolute;
    top: 13px;
    bottom: 13px;
    left: 6px;
    width: 2px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.78);
    transition: background 160ms ease;
}

.xzg-resizable-col:hover .xzg-col-resizer::before,
.xzg-is-column-resizing .xzg-col-resizer::before {
    background: #0b74e5;
}

.xzg-missing-link {
    border: 0;
    background: transparent;
    color: #1570c8;
    text-decoration: underline;
    font: inherit;
    cursor: default;
}

.xzg-status-pill {
    display: inline-flex;
    min-width: 46px;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #86d6a8;
    border-radius: 999px;
    background: #f0fff6;
    color: #16a34a;
    font-weight: 850;
}

.xzg-status-pill[data-status="failed"] {
    border-color: #ffb4b4;
    background: #fff5f5;
    color: #d92d20;
}

.xzg-pagination {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 24px;
    color: #475467;
}

.xzg-pagination--top {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--xzg-border-soft);
}

.xzg-pagination button,
.xzg-pagination select,
.xzg-pagination input {
    height: 36px;
    border: 1px solid #d8e1ec;
    border-radius: 5px;
    background: #ffffff;
    color: #344054;
    font: inherit;
}

.xzg-pagination button {
    min-width: 36px;
    cursor: pointer;
}

.xzg-pagination button.is-active {
    border-color: #0b74e5;
    background: #0b74e5;
    color: #ffffff;
}

.xzg-pagination input {
    width: 56px;
    margin: 0 6px;
    text-align: center;
}

.xzg-report-view {
    color: var(--xzg-text);
}

.xzg-entry-card {
    position: relative;
    padding: 18px 18px 20px;
}

.xzg-entry-field {
    display: grid;
    gap: 8px;
    color: #344054;
    font-weight: 760;
}

.xzg-entry-field input {
    height: 42px;
    width: 100%;
    border: 1px solid #d8e1ec;
    border-radius: 4px;
    background: #ffffff;
    color: #344054;
    font: inherit;
    padding: 0 14px;
}

.xzg-env-badge {
    position: absolute;
    right: 20px;
    top: 18px;
    display: inline-flex;
    height: 28px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: #edfff4;
    color: #12a35a;
    font-size: 14px;
    font-weight: 850;
}

.xzg-report-progress {
    grid-template-columns: auto auto minmax(260px, 1fr) auto;
    margin-top: 24px;
}

.xzg-btn-compact {
    min-width: 74px;
    height: 40px;
    padding: 0 14px;
}

.xzg-report-filter-card {
    margin-top: 14px;
    padding: 20px 18px;
}

.xzg-filter-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    margin-top: 12px;
}

.xzg-filter-row:first-child {
    margin-top: 0;
}

.xzg-filter-label {
    width: 82px;
    flex: 0 0 82px;
    color: #475467;
    font-weight: 760;
    text-align: right;
}

.xzg-segmented {
    display: inline-flex;
    border: 1px solid #d8e1ec;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
}

.xzg-segmented button {
    min-width: 58px;
    height: 40px;
    border: 0;
    border-right: 1px solid #d8e1ec;
    background: #ffffff;
    color: #344054;
    font: inherit;
    font-weight: 760;
    cursor: pointer;
}

.xzg-segmented button:last-child {
    border-right: 0;
}

.xzg-segmented button.is-active {
    background: #0b74e5;
    color: #ffffff;
}

.xzg-date-input,
.xzg-select-compact {
    height: 40px;
    border: 1px solid #d8e1ec;
    border-radius: 4px;
    background: #ffffff;
    color: #344054;
    font: inherit;
}

.xzg-date-input {
    width: 142px;
    padding: 0 12px;
}

.xzg-select-compact {
    width: 140px;
    padding: 0 10px;
}

.xzg-range-separator {
    color: #98a2b3;
}

.xzg-check,
.xzg-checkbox-grid label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-weight: 650;
}

.xzg-check input,
.xzg-checkbox-grid input {
    width: 16px;
    height: 16px;
    accent-color: #1677e8;
}

.xzg-collapse-btn {
    margin-left: auto;
    height: 40px;
    padding: 0 18px;
    border: 1px solid #d8e1ec;
    border-radius: 4px;
    background: #ffffff;
    color: #1677e8;
    font: inherit;
    font-weight: 760;
    cursor: pointer;
}

.xzg-store-row {
    align-items: flex-start;
}

.xzg-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(9, minmax(92px, 1fr));
    gap: 14px 32px;
    margin: 14px 0 0 110px;
    padding-right: 24px;
}

.xzg-summary-strip {
    margin-top: 22px;
    padding: 13px 18px;
    border: 1px solid #b8d8ff;
    border-radius: 4px;
    background: #eef7ff;
    color: #126fe3;
    font-weight: 760;
}

.xzg-metrics--six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 16px;
}

.xzg-metrics--seven {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin-top: 12px;
    gap: 0;
    border: 1px solid var(--xzg-border);
    background: #ffffff;
}

.xzg-metrics--seven .xzg-simple-metric {
    min-height: 100px;
    border: 0;
    border-right: 1px solid var(--xzg-border);
    border-radius: 0;
}

.xzg-metrics--seven .xzg-simple-metric:last-child {
    border-right: 0;
}

.xzg-simple-metric {
    min-height: 108px;
    padding: 20px 28px;
    border: 1px solid var(--xzg-border);
    border-radius: 5px;
    background: #ffffff;
}

.xzg-simple-metric span {
    display: block;
    color: #667085;
    font-size: 16px;
}

.xzg-simple-metric strong {
    display: block;
    margin-top: 14px;
    color: #101828;
    font-size: 26px;
    font-weight: 850;
}

.xzg-chart-card {
    margin-top: 16px;
    padding: 20px 22px 28px;
}

.xzg-chart-toolbar {
    display: flex;
    align-items: center;
    gap: 28px;
}

.xzg-chart-compare {
    margin-left: auto;
}

.xzg-empty-chart {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    border-top: 1px solid #edf2f7;
    background:
        repeating-linear-gradient(to top, transparent 0, transparent 46px, #edf2f7 47px),
        linear-gradient(#ffffff, #ffffff);
    color: #667085;
    font-size: 16px;
    font-weight: 760;
}

.xzg-table-title-row,
.xzg-table-toolbar,
.xzg-pricing-toolbar,
.xzg-report-summary-line {
    display: flex;
    align-items: center;
    gap: 14px;
}

.xzg-table-title-row {
    justify-content: space-between;
}

.xzg-table-title-row span,
.xzg-table-toolbar span,
.xzg-report-summary-line span {
    color: #667085;
    font-weight: 760;
}

.xzg-report-summary-line {
    justify-content: flex-start;
    min-height: 62px;
    padding: 0 20px;
    border-bottom: 1px solid var(--xzg-border-soft);
}

.xzg-table-toolbar {
    justify-content: flex-end;
    min-height: 62px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--xzg-border-soft);
}

.xzg-table--compact,
.xzg-table--sku,
.xzg-table--pricing {
    table-layout: auto;
}

.xzg-table--compact {
    min-width: 980px;
}

.xzg-table--sku {
    min-width: 1380px;
}

.xzg-table--pricing {
    min-width: 1740px;
}

.xzg-table--compact th:first-child,
.xzg-table--compact td:first-child,
.xzg-table--sku th:first-child,
.xzg-table--sku td:first-child,
.xzg-table--pricing th:first-child,
.xzg-table--pricing td:first-child {
    width: auto;
    text-align: center;
}

.xzg-pricing-filter-card {
    padding: 24px 28px 22px;
}

.xzg-pricing-filter-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1.35fr 1fr;
    gap: 22px 32px;
    align-items: end;
}

.xzg-pricing-filter-grid label {
    display: grid;
    gap: 9px;
    color: #475467;
    font-weight: 760;
}

.xzg-pricing-filter-grid input,
.xzg-pricing-filter-grid select {
    height: 42px;
    border: 1px solid #d8e1ec;
    border-radius: 4px;
    background: #ffffff;
    color: #344054;
    font: inherit;
    padding: 0 12px;
}

.xzg-range-field {
    grid-template-columns: 1fr auto 1fr;
}

.xzg-range-field span {
    grid-column: 1 / -1;
}

.xzg-range-field em {
    align-self: center;
    color: #98a2b3;
    font-style: normal;
}

.xzg-pricing-actions {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    margin-top: 26px;
}

.xzg-pricing-toolbar {
    flex-wrap: wrap;
    min-height: 64px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--xzg-border-soft);
}

.xzg-pricing-toolbar span {
    margin-right: 18px;
    color: #475467;
    font-weight: 760;
}

.xzg-placeholder {
    padding: 64px 32px;
}

.xzg-placeholder h1 {
    margin: 0;
    font-size: 30px;
}

.xzg-placeholder p {
    margin: 14px 0 0;
    color: var(--xzg-muted);
    font-size: 16px;
}

.xzg-v2-task-card,
.xzg-v2-filter-card,
.xzg-v2-diagnostics {
    margin-top: 16px;
    padding: 20px 22px;
}

.xzg-v2-global-task-card {
    margin-top: 0;
    margin-bottom: 16px;
}

.xzg-v2-task-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.xzg-v2-task-head h2 {
    margin: 0;
    color: #111827;
    font-size: 22px;
    font-weight: 850;
}

.xzg-v2-task-head p {
    margin: 8px 0 0;
    color: var(--xzg-muted);
}

.xzg-v2-source {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #c7dcff;
    border-radius: 4px;
    background: #eef6ff;
    color: #126fe3;
    font-weight: 800;
}

.xzg-v2-preview {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #c7dcff;
    border-radius: 6px;
    background: #f8fbff;
    color: #334155;
    line-height: 1.7;
}

.xzg-v2-preview strong {
    color: #111827;
}

.xzg-v2-task-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.xzg-v2-task-metrics .xzg-v2-current {
    flex: 1 1 520px;
    min-width: 420px;
}

.xzg-v2-task-metrics span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid var(--xzg-border-soft);
    border-radius: 4px;
    background: #f8fbff;
    color: #475467;
}

.xzg-v2-task-metrics strong {
    color: #111827;
}

.xzg-v2-task-metrics .xzg-v2-current strong {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.xzg-v2-filter-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 16px;
    align-items: end;
}

.xzg-v2-filter-card--sticky {
    position: sticky;
    top: 0;
    z-index: 18;
}

.xzg-v2-filter-grid--pricing {
    grid-template-columns: repeat(6, minmax(136px, 1fr));
}

.xzg-v2-filter-grid label {
    display: grid;
    gap: 8px;
    justify-items: start;
    color: #475467;
    font-weight: 760;
}

.xzg-v2-filter-grid input,
.xzg-v2-filter-grid select,
.xzg-v2-row-input {
    min-width: 0;
    height: 40px;
    width: calc(100% - 12px);
    border: 1px solid #d8e1ec;
    border-radius: 4px;
    background: #ffffff;
    color: #344054;
    font: inherit;
    padding: 0 10px;
}

.xzg-sku-report-filter {
    padding: 12px 16px 14px;
}

.xzg-sku-filter-row,
.xzg-sku-store-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 42px;
}

.xzg-sku-filter-row + .xzg-sku-filter-row,
.xzg-sku-store-row {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e6edf5;
}

.xzg-filter-label {
    color: #475467;
    font-weight: 760;
}

.xzg-sku-report-filter input[type="date"],
.xzg-sku-report-filter input[type="search"],
.xzg-sku-report-filter select {
    height: 38px;
    border: 1px solid #d8e1ec;
    border-radius: 4px;
    background: #ffffff;
    color: #344054;
    font: inherit;
    padding: 0 10px;
}

.xzg-sku-search {
    width: min(260px, 100%);
}

.xzg-sku-date-presets {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.xzg-sku-date-preset {
    min-width: auto;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    color: #475467;
    font-weight: 700;
}

.xzg-sku-date-preset.is-active {
    border-color: #175cd3;
    background: #eef6ff;
    color: #175cd3;
}

.xzg-filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 4px;
    background: #eef6ff;
    color: #175cd3;
    font-weight: 800;
}

.xzg-sku-store-count {
    color: #087443;
    font-weight: 760;
}

.xzg-sku-store-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 10px 18px;
    margin-top: 10px;
    padding: 4px 0 2px 96px;
}

.xzg-sku-store-row.is-hidden,
.xzg-sku-store-grid.is-hidden {
    display: none;
}

.xzg-sku-store-option {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
    color: #344054;
    font-weight: 650;
}

.xzg-sku-store-option span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xzg-v2-filter-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.xzg-ohp-filter-toggle {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #d8e1ec;
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
}

.xzg-follow-pricing-filter-notice {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    max-width: 220px;
    padding: 0 12px;
    border: 1px solid #b7ebc6;
    border-radius: 999px;
    background: #f0fff4;
    color: #138a3d;
    font-size: 13px;
    font-weight: 760;
    line-height: 1.25;
    white-space: normal;
}

.xzg-follow-pricing-filter-notice[data-tone="danger"] {
    border-color: #ffc9c9;
    background: #fff5f5;
    color: #d92d20;
}

.xzg-v2-summary {
    margin-top: 16px;
}

.xzg-v2-result-card {
    overflow: hidden;
}

.xzg-v2-data-table {
    table-layout: auto;
    min-width: 1780px;
}

.xzg-table--pricing.xzg-v2-data-table {
    table-layout: fixed;
    min-width: 2134px;
}

.xzg-table--pricing.xzg-v2-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 12;
}

.xzg-table--pricing.xzg-v2-data-table th,
.xzg-table--pricing.xzg-v2-data-table td {
    width: auto;
}

.xzg-table--pricing.xzg-v2-data-table .xzg-follow-draggable-header {
    cursor: grab;
    transition: background 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.xzg-table--pricing.xzg-v2-data-table .xzg-follow-draggable-header:active {
    cursor: grabbing;
}

.xzg-table--pricing.xzg-v2-data-table .is-follow-column-dragging {
    opacity: 0.66;
    background: #dbeafe;
}

.xzg-table--pricing.xzg-v2-data-table .is-follow-column-drop-target {
    background: #e0f2fe;
}

.xzg-table--pricing.xzg-v2-data-table .is-follow-column-drop-before {
    box-shadow: inset 4px 0 0 #0b74e5;
}

.xzg-table--pricing.xzg-v2-data-table .is-follow-column-drop-after {
    box-shadow: inset -4px 0 0 #0b74e5;
}

.xzg-v2-data-table th:first-child,
.xzg-v2-data-table td:first-child {
    width: auto;
    text-align: left;
}

.xzg-v2-thumb {
    width: 44px;
    height: 44px;
    display: block;
    object-fit: contain;
    border: 1px solid var(--xzg-border-soft);
    border-radius: 4px;
    background: #ffffff;
}

.xzg-v2-muted {
    color: #98a2b3;
}

.xzg-v2-product-link {
    color: #0b74e5;
    font-weight: 760;
    text-decoration: none;
}

.xzg-v2-product-link:hover,
.xzg-v2-product-link:focus-visible {
    text-decoration: underline;
}

.xzg-follow-product-info {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.xzg-follow-product-title {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.xzg-follow-product-translation {
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.xzg-follow-product-translation.is-loading {
    color: #667085;
}

.xzg-follow-product-translation.is-failed {
    color: #98a2b3;
}

.xzg-follow-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    color: #344054;
    font-size: 12px;
    font-weight: 760;
    line-height: 1.35;
}

.xzg-v2-unqueried {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    color: #667085;
    font-weight: 760;
}

.xzg-v2-warn {
    color: #d92d20;
    font-weight: 800;
}

.xzg-v2-repair-hint {
    margin-top: 4px;
    color: #b42318;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.xzg-v2-message {
    margin-top: 16px;
}

.xzg-sku-chart-card {
    margin-top: 14px;
    padding: 16px 16px 20px;
}

.xzg-sku-chart-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.xzg-sku-chart-select {
    height: 38px;
    min-width: 160px;
    border: 1px solid #d8e1ec;
    border-radius: 4px;
    background: #ffffff;
    color: #344054;
    font: inherit;
    padding: 0 10px;
}

.xzg-sku-chart-spacer {
    flex: 1 1 auto;
}

.xzg-sku-chart-scroll {
    overflow-x: auto;
    margin-top: 12px;
    border-top: 1px solid #edf2f7;
}

.xzg-sku-chart {
    display: block;
    min-height: 270px;
}

.xzg-sku-chart-value {
    fill: #344054;
    font-size: 12px;
    font-weight: 760;
}

.xzg-sku-chart-label {
    fill: #667085;
    font-size: 11px;
}

.xzg-sku-chart-list {
    max-height: 320px;
    overflow: auto;
    margin-top: 12px;
    border: 1px solid #edf2f7;
}

.xzg-sku-chart-list table {
    width: 100%;
    border-collapse: collapse;
}

.xzg-sku-chart-list th,
.xzg-sku-chart-list td {
    padding: 9px 12px;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
}

.xzg-v2-pricing-toolbar {
    justify-content: flex-start;
}

.xzg-v2-pricing-toolbar .xzg-btn.is-active {
    border-color: #175cd3;
    background: #eef6ff;
    color: #175cd3;
}

.xzg-follow-public-import {
    display: grid;
    grid-template-columns: minmax(260px, 420px) auto;
    align-items: end;
    gap: 10px;
    margin-left: auto;
}

.xzg-follow-public-import label {
    display: grid;
    gap: 6px;
}

.xzg-follow-public-import span {
    margin: 0;
    color: #475467;
    font-size: 12px;
    font-weight: 760;
}

.xzg-follow-public-import textarea {
    min-height: 44px;
    max-height: 82px;
    resize: vertical;
    border: 1px solid var(--xzg-border);
    border-radius: 8px;
    padding: 8px 10px;
    font: inherit;
    line-height: 1.35;
}

@media (max-width: 900px) {
    .xzg-follow-public-import {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        margin-left: 0;
    }
}

.xzg-v2-pricing-calculator {
    margin-top: 16px;
    overflow: hidden;
    padding: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
}

.xzg-v2-pricing-calculator-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 32px 20px;
}

.xzg-v2-pricing-calculator-head h2 {
    margin: 0;
    color: #1d2939;
    font-size: 28px;
    line-height: 1.2;
}

.xzg-v2-pricing-calculator-head p {
    margin: 12px 0 0;
    color: #667085;
    font-size: 17px;
    font-weight: 760;
}

.xzg-v2-pricing-calculator-body {
    border-top: 1px solid var(--xzg-border-soft);
}

.xzg-v2-pricing-config-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
    gap: 18px 28px;
    align-items: end;
    padding: 0 32px 28px;
}

.xzg-v2-pricing-config-grid label {
    display: grid;
    gap: 10px;
    color: #475467;
    font-weight: 760;
}

.xzg-v2-pricing-config-grid input {
    height: 48px;
    min-width: 0;
    border: 1px solid #d8e1ec;
    border-radius: 6px;
    background: #ffffff;
    color: #24324b;
    font: inherit;
    padding: 0 14px;
}

.xzg-v2-pricing-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.xzg-v2-pricing-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: 18px 22px;
    padding: 28px 32px 32px;
    border-top: 1px solid var(--xzg-border-soft);
}

.xzg-v2-pricing-metric {
    min-height: 102px;
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 18px 20px;
    border: 1px solid var(--xzg-border-soft);
    border-radius: 8px;
    background: #ffffff;
}

.xzg-v2-pricing-metric span {
    color: #475467;
    font-weight: 800;
}

.xzg-v2-pricing-metric strong {
    color: #101d3d;
    font-size: 28px;
    line-height: 1;
}

.xzg-v2-pricing-metric small {
    margin-left: 10px;
    color: #667085;
    font-size: 16px;
    font-weight: 760;
}

.xzg-v2-pricing-error {
    margin: 0 32px 28px;
    color: #b42318;
    font-weight: 760;
}

.xzg-v2-pricing-error.is-hidden {
    display: none;
}

.xzg-v2-pricing-toolbar--sticky {
    position: sticky;
    top: 0;
    z-index: 16;
    background: #ffffff;
}

.xzg-v2-row-input {
    display: block;
    width: calc(100% - 12px);
    min-width: 72px;
    max-width: 116px;
    margin: 0 auto;
}

.xzg-v2-price-cell {
    display: block;
}

.xzg-v2-price-cell .xzg-v2-row-input {
    width: 100%;
    max-width: none;
}

.xzg-v2-lazy-input {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    min-width: 72px;
    max-width: 116px;
    padding: 3px 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #344054;
    cursor: text;
}

.xzg-v2-price-cell .xzg-v2-lazy-input {
    width: calc(100% - 16px);
    max-width: none;
}

.xzg-v2-lazy-input.is-empty {
    color: #98a2b3;
}

.xzg-v2-lazy-input:hover,
.xzg-v2-lazy-input:focus-visible {
    border-color: #b8c7da;
    background: #f8fbff;
    outline: none;
}

.xzg-v2-lazy-input[aria-disabled="true"] {
    border-color: #f0c6c6;
    background: #fff1f1;
    color: #b54708;
    cursor: not-allowed;
}

.xzg-follow-pricing-calculated-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 108px;
    max-width: 100%;
    min-height: 34px;
    padding: 4px 10px;
    border: 1px solid #87d9b4;
    border-radius: 8px;
    background: #ecfdf3;
    color: #17633a;
    font-family: "DIN Alternate", "Avenir Next", "Segoe UI", sans-serif;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.xzg-follow-pricing-calculated-pill--empty {
    min-width: 48px;
    padding-inline: 12px;
    border-color: #d0d5dd;
    background: #f8fafc;
    color: #98a2b3;
    font-family: inherit;
}

.xzg-follow-pricing-calculated-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #16a34a;
    flex: 0 0 auto;
}

.xzg-follow-pricing-calculated-pill.is-fresh {
    animation: xzg-follow-pricing-pill-bounce 780ms ease;
    background: #d1fae5;
    border-color: #6ee7b7;
}

.xzg-follow-pricing-calculated-pill.is-fresh .xzg-follow-pricing-calculated-pill__dot {
    animation: xzg-follow-pricing-dot-jolt 780ms ease;
}

@keyframes xzg-follow-pricing-pill-bounce {
    0% {
        transform: translateY(0) scale(1);
    }
    20% {
        transform: translateY(-2px) scale(1.02);
    }
    45% {
        transform: translateY(-5px) scale(1.03);
    }
    70% {
        transform: translateY(1px) scale(0.995);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes xzg-follow-pricing-dot-jolt {
    0% {
        transform: translate(0, 0) scale(1);
    }
    18% {
        transform: translate(-1px, -2px) scale(1.05);
    }
    42% {
        transform: translate(1px, -4px) scale(1.15);
    }
    70% {
        transform: translate(-1px, 1px) scale(0.96);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

.xzg-table tbody tr.is-follow-blacklisted .xzg-v2-row-input:disabled,
.xzg-table tbody tr.is-ohp-blacklisted .xzg-v2-row-input:disabled {
    border-color: #f0c6c6;
    background: #fff1f1;
    color: #b54708;
    cursor: not-allowed;
    opacity: 1;
}

.xzg-v2-row-actions {
    display: flex;
    justify-content: center;
    gap: 6px;
    align-items: center;
}

.xzg-table--pricing.xzg-v2-data-table .xzg-v2-row-actions .xzg-btn-compact {
    min-width: 52px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
}

.xzg-v2-export-pill {
    min-width: 42px;
    height: 26px;
    padding: 0 8px;
    font-size: 13px;
}

.xzg-v2-listing-pill {
    min-width: 58px;
    height: 26px;
    padding: 0 8px;
    font-size: 13px;
}

.xzg-v2-listing-pill[data-status="success"] {
    border-color: #86d6a8;
    background: #f0fff6;
    color: #16a34a;
}

.xzg-v2-listing-pill[data-status="failed"] {
    border-color: #ffb4b4;
    background: #fff5f5;
    color: #d92d20;
}

.xzg-table tbody tr.is-follow-blacklisted,
.xzg-table tbody tr.is-ohp-blacklisted {
    background: #fff8f8;
}

.xzg-follow-preview {
    position: fixed;
    top: 88px;
    right: 24px;
    z-index: 80;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    gap: 8px;
    padding: 10px;
    border: 1px solid #bdd5f8;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.xzg-follow-preview img {
    width: 100%;
    min-height: 0;
    object-fit: contain;
    border: 1px solid var(--xzg-border-soft);
    border-radius: 4px;
    background: #ffffff;
}

.xzg-follow-preview span {
    max-width: 100%;
    overflow: hidden;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xzg-follow-preview-resize {
    position: absolute;
    right: -7px;
    bottom: -7px;
    width: 18px;
    height: 18px;
    border: 1px solid #8cbcf2;
    border-radius: 50%;
    background: #ffffff;
    cursor: nwse-resize;
}

.xzg-follow-preview-position-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.xzg-follow-preview-position-actions[hidden] {
    display: none;
}

.xzg-follow-preview.is-position-editing {
    border-color: #175cd3;
    cursor: move;
}

.xzg-follow-preview.is-position-editing img {
    cursor: move;
}

.xzg-follow-preview.is-resizing,
.xzg-follow-preview.is-resizing *,
.xzg-follow-preview.is-moving,
.xzg-follow-preview.is-moving * {
    user-select: none;
}

.xzg-is-column-resizing,
.xzg-is-column-resizing * {
    cursor: col-resize !important;
    user-select: none !important;
}

.xzg-is-column-dragging,
.xzg-is-column-dragging * {
    cursor: grabbing !important;
    user-select: none !important;
}

.xzg-v2-diagnostics {
    color: #475467;
}

.xzg-v2-diagnostics summary {
    cursor: pointer;
    font-weight: 800;
}

.xzg-v2-diagnostics pre {
    max-height: 260px;
    overflow: auto;
    margin: 14px 0 0;
    padding: 14px;
    border-radius: 4px;
    background: #0f172a;
    color: #dbeafe;
    font-size: 12px;
}

.xzg-listing-form-card {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 18px 24px 20px;
    overflow: visible;
}

.xzg-listing-grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.xzg-listing-config {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px minmax(340px, 360px);
    align-items: start;
    gap: 10px;
}

.xzg-listing-config-fields {
    display: grid;
    gap: 14px;
}

.xzg-listing-line,
.xzg-listing-watermark-row,
.xzg-listing-product-grid,
.xzg-listing-batch-map {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.xzg-listing-line--note {
    gap: 8px 12px;
}

.xzg-listing-label,
.xzg-listing-field > span {
    color: #24324b;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.xzg-listing-field {
    min-width: 156px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.xzg-listing-map-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-weight: 760;
}

.xzg-listing-field--group {
    min-width: 230px;
}

.xzg-listing-field--store {
    min-width: 340px;
}

.xzg-listing-field--currency {
    min-width: 190px;
}

.xzg-listing-field--category {
    min-width: 300px;
}

.xzg-listing-field--warehouse {
    min-width: 320px;
}

.xzg-listing-field--stock {
    min-width: 176px;
}

.xzg-listing-field--mini {
    min-width: 166px;
}

.xzg-listing-field--num {
    min-width: 150px;
}

.xzg-listing-field--text {
    min-width: 250px;
}

.xzg-listing-field--color {
    min-width: 110px;
}

.xzg-listing-field--image {
    min-width: 210px;
}

.xzg-listing-field--brand {
    min-width: 260px;
}

.xzg-listing-field--merge {
    min-width: 190px;
}

.xzg-listing-field input,
.xzg-listing-field select,
.xzg-listing-batch-input textarea {
    height: 40px;
    border: 1px solid #d7e1ee;
    border-radius: 4px;
    background: #ffffff;
    color: #344054;
    font: inherit;
    font-size: 14px;
}

.xzg-listing-field input,
.xzg-listing-field select {
    min-width: 0;
    flex: 1 1 auto;
    padding: 0 12px;
}

.xzg-listing-field input[type="color"] {
    width: 44px;
    min-width: 44px;
    padding: 4px;
}

.xzg-listing-required > span::before {
    content: "* ";
    color: #ef4444;
}

.xzg-listing-field b {
    color: #ef4444;
    font-weight: 900;
}

.xzg-listing-help {
    color: #4b6583;
    font-size: 13px;
    font-weight: 760;
    white-space: nowrap;
}

.xzg-listing-help strong,
.xzg-listing-muted strong {
    color: #16a34a;
}

.xzg-listing-muted {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.xzg-listing-switch,
.xzg-listing-radio {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #344054;
    font-size: 14px;
    font-weight: 760;
    white-space: nowrap;
    cursor: pointer;
}

.xzg-listing-switch input,
.xzg-listing-radio input,
.xzg-listing-hidden-check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.xzg-listing-switch > span {
    position: relative;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: #e5eaf2;
    transition: background 160ms ease;
}

.xzg-listing-switch > span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
    transition: transform 160ms ease;
}

.xzg-listing-switch input:checked + span {
    background: #19b47a;
}

.xzg-listing-switch input:checked + span::after {
    transform: translateX(18px);
}

.xzg-listing-switch--off input:not(:checked) + span {
    background: #d8dee8;
}

.xzg-listing-radio > span {
    width: 16px;
    height: 16px;
    border: 1px solid #c9d5e5;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 4px #ffffff;
}

.xzg-listing-radio input:checked + span {
    border-color: #1677e8;
    background: #1677e8;
}

.xzg-listing-mini-plus,
.xzg-listing-square-btn,
.xzg-listing-refresh {
    border: 0;
    background: #0b74e5;
    color: #ffffff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.xzg-listing-mini-plus {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    color: #19b47a;
    font-size: 20px;
    line-height: 1;
}

.xzg-listing-square-btn {
    width: 44px;
    height: 40px;
    border-radius: 4px;
    font-size: 22px;
}

.xzg-listing-refresh {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    color: #1677e8;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.xzg-listing-limit-panel {
    min-height: 112px;
    overflow: hidden;
    border: 1px solid #d7e1ee;
    border-radius: 6px;
    background: #ffffff;
}

.xzg-listing-limit-head {
    height: 48px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    align-items: center;
    padding: 0 18px;
    border-bottom: 1px solid #e5edf6;
    color: #24324b;
    font-size: 14px;
}

.xzg-listing-limit-empty {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #98a2b3;
    font-weight: 760;
}

.xzg-listing-reset-image {
    min-width: 160px;
    height: 38px;
}

.xzg-listing-modebar {
    min-height: 48px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    border-bottom: 3px solid #c7d3e3;
}

.xzg-listing-modebar button {
    height: 44px;
    min-width: 72px;
    margin-bottom: -3px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #344054;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.xzg-listing-modebar button.is-active {
    border-bottom-color: #0b74e5;
    color: #0b74e5;
}

.xzg-listing-mode-title {
    margin: 4px 0 14px;
    color: #0b74e5;
    font-weight: 900;
}

.xzg-listing-mode--single,
.xzg-listing-mode--batch {
    display: grid;
    gap: 10px;
}

.xzg-listing-product-grid {
    gap: 14px 24px;
}

.xzg-listing-product-grid .xzg-listing-field {
    min-width: 240px;
}

.xzg-listing-mode--batch {
    grid-template-columns: minmax(360px, 0.95fr) minmax(520px, 1fr);
    gap: 14px;
}

.xzg-listing-batch-input,
.xzg-listing-batch-map {
    border: 1px solid #e2e9f3;
    border-radius: 5px;
    background: #ffffff;
}

.xzg-listing-batch-input {
    padding: 12px 14px 14px;
}

.xzg-listing-batch-input p {
    margin: 0 0 10px;
    color: #344054;
    font-weight: 800;
}

.xzg-listing-batch-input textarea {
    width: 100%;
    min-height: 282px;
    padding: 12px;
    resize: vertical;
    line-height: 1.55;
}

.xzg-listing-batch-map {
    align-content: start;
    padding: 18px 20px;
    gap: 16px 24px;
}

.xzg-listing-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 18px;
    padding-top: 8px;
}

.xzg-listing-actions .xzg-btn {
    min-width: 120px;
    height: 46px;
}

.xzg-listing-collect-btn {
    border-color: #f59e0b;
    background: #f59e0b;
    color: #ffffff;
}

.xzg-listing-collect-btn:hover,
.xzg-listing-collect-btn:focus-visible {
    border-color: #d97706;
    background: #d97706;
    color: #ffffff;
}

.xzg-listing-clear-btn {
    border-color: #10b981;
    background: #10b981;
    color: #ffffff;
}

.xzg-listing-clear-btn:hover,
.xzg-listing-clear-btn:focus-visible {
    border-color: #059669;
    background: #059669;
    color: #ffffff;
}

.xzg-listing-preview-status {
    color: #64748b;
    font-size: 13px;
    font-weight: 760;
}

.xzg-listing-preview-status[data-tone="success"] {
    color: #16a34a;
}

.xzg-listing-preview-status[data-tone="danger"] {
    color: #d92d20;
}

.xzg-listing-empty {
    padding: 18px;
}

.xzg-listing-preview-table,
.xzg-listing-history-table {
    min-width: 1120px;
}

.xzg-status-pill {
    display: inline-flex;
    max-width: 360px;
    min-height: 26px;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    white-space: normal;
}

.xzg-status-pill--success {
    background: #ecfdf3;
    color: #027a48;
}

.xzg-status-pill--danger {
    background: #fef3f2;
    color: #b42318;
}

.xzg-status-pill--neutral {
    background: #f2f4f7;
    color: #475467;
}

.xzg-listing-message[data-tone="danger"] {
    border-color: #ffc9c9;
    background: #fff5f5;
    color: #d92d20;
}

@media (min-width: 901px) and (max-width: 1360px) {
    body.xzg-workbench-page {
        min-width: 1040px;
    }

    .xzg-topbar {
        grid-template-columns: 190px minmax(0, 1fr) 190px;
    }

    .xzg-tabs button {
        min-width: 112px;
        padding: 0 12px;
    }

    .xzg-metrics {
        grid-template-columns: repeat(5, minmax(180px, 1fr));
        overflow-x: auto;
    }
}

/* ===== 采集管理四页统一浅色工作台 · 20260713-xzg-collection-ui-v1 ===== */
body.xzg-workbench-page:is(
    .xzg-workbench-page--collected-data,
    :has([data-xzg-panel="collection-workbench"]:not([hidden]))
) {
    min-width: 0;
    overflow-x: clip;
    background: #f7f9fc;
}

body.xzg-workbench-page:is(
    .xzg-workbench-page--collected-data,
    :has([data-xzg-panel="collection-workbench"]:not([hidden]))
) .xzg-page {
    width: 100%;
    min-width: 0;
}

:is(
    [data-xzg-panel="collection-workbench"],
    [data-xzg-panel="collected-data"],
    [data-xzg-panel="planned-listing-stores"],
    [data-xzg-panel="generated-excel"]
) {
    --xzg-collection-blue: #1677e8;
    --xzg-collection-blue-dark: #0b66d8;
    --xzg-collection-blue-soft: #edf5ff;
    --xzg-collection-border: #dbe4f0;
    --xzg-collection-border-soft: #e8eef6;
    --xzg-collection-text: #1f2a44;
    --xzg-collection-muted: #64748b;
    min-width: 0;
    color: var(--xzg-collection-text);
}

:is(
    [data-xzg-panel="collection-workbench"],
    [data-xzg-panel="collected-data"],
    [data-xzg-panel="planned-listing-stores"],
    [data-xzg-panel="generated-excel"]
) .xzg-breadcrumb {
    gap: 10px;
    color: var(--xzg-collection-muted);
    font-size: 13px;
    line-height: 1.5;
}

:is(
    [data-xzg-panel="collection-workbench"],
    [data-xzg-panel="collected-data"],
    [data-xzg-panel="planned-listing-stores"],
    [data-xzg-panel="generated-excel"]
) .xzg-breadcrumb > span:last-child {
    color: #334155;
    font-weight: 800;
}

:is(
    [data-xzg-panel="collection-workbench"],
    [data-xzg-panel="collected-data"],
    [data-xzg-panel="planned-listing-stores"],
    [data-xzg-panel="generated-excel"]
) .xzg-page-head {
    margin: 18px 0 16px;
}

:is(
    [data-xzg-panel="collection-workbench"],
    [data-xzg-panel="collected-data"],
    [data-xzg-panel="planned-listing-stores"],
    [data-xzg-panel="generated-excel"]
) .xzg-page-head h1 {
    color: var(--xzg-collection-text);
    font-size: clamp(24px, 2.4vw, 30px);
    line-height: 1.25;
}

:is(
    [data-xzg-panel="collection-workbench"],
    [data-xzg-panel="collected-data"],
    [data-xzg-panel="planned-listing-stores"],
    [data-xzg-panel="generated-excel"]
) .xzg-page-head p {
    max-width: 920px;
    margin-top: 8px;
    color: var(--xzg-collection-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* 入口和环境属于技术信息，采集管理业务页不展示。 */
:is(
    [data-xzg-panel="collected-data"],
    [data-xzg-panel="planned-listing-stores"],
    [data-xzg-panel="generated-excel"]
) > .xzg-entry-card {
    display: none;
}

.xzg-collector-view {
    width: min(100%, 1440px);
    max-width: none;
}

.xzg-collector-control,
.xzg-collector-runtime {
    margin-top: 14px;
    padding: 18px;
    border-color: var(--xzg-collection-border);
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.xzg-collector-control-head,
.xzg-collector-runtime-head {
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--xzg-collection-border-soft);
}

.xzg-collector-control-head h2,
.xzg-collector-runtime-head h2 {
    color: #111827;
    font-size: 18px;
}

.xzg-collector-control-head p,
.xzg-collector-runtime-head p {
    margin-top: 5px;
    color: var(--xzg-collection-muted);
    font-size: 13px;
    line-height: 1.55;
}

.xzg-collector-engine-badge,
.xzg-collector-status-pill {
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid var(--xzg-collection-border);
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
}

.xzg-collector-engine-badge[data-state="ready"],
.xzg-collector-status-pill[data-status="succeeded"] {
    border-color: #bbebcc;
    background: #f0fdf4;
    color: #15803d;
}

.xzg-collector-engine-badge[data-state="missing"],
.xzg-collector-status-pill[data-status="failed"] {
    border-color: #fecaca;
    background: #fff7f7;
    color: #dc2626;
}

.xzg-collector-status-pill[data-status="running"] {
    border-color: #bfdbfe;
    background: var(--xzg-collection-blue-soft);
    color: var(--xzg-collection-blue-dark);
}

.xzg-collector-status-pill[data-status="paused"],
.xzg-collector-status-pill[data-status="stopped"] {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
}

.xzg-collector-form {
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.xzg-collector-template-field {
    gap: 6px;
    color: #475569;
    font-size: 12px;
}

.xzg-collector-template-field select {
    height: 40px;
    padding: 0 12px;
    border-color: #cfd9e6;
    border-radius: 5px;
    color: var(--xzg-collection-text);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.xzg-collector-template-field select:hover:not(:disabled) {
    border-color: #9cc5f7;
}

.xzg-collector-template-field select:focus-visible,
.xzg-collector-actions .xzg-btn:focus-visible,
.xzg-collector-links a:focus-visible {
    outline: 2px solid rgba(22, 119, 232, 0.32);
    outline-offset: 2px;
}

.xzg-collector-actions {
    gap: 8px;
}

.xzg-collector-actions .xzg-btn {
    min-height: 40px;
    border-radius: 5px;
    box-shadow: none;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.xzg-collector-actions .xzg-btn:hover:not(:disabled) {
    transform: none;
    box-shadow: none;
}

.xzg-collector-actions .xzg-btn:disabled,
.xzg-collector-template-field select:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    filter: grayscale(0.2);
}

.xzg-collector-links {
    gap: 8px 16px;
    margin-top: 14px;
    color: var(--xzg-collection-muted);
    font-size: 12px;
}

.xzg-collector-links a {
    color: var(--xzg-collection-blue-dark);
}

.xzg-collector-links a:hover {
    color: #075ec0;
}

.xzg-collector-status,
.xzg-collector-fallback {
    margin-top: 14px;
    border-radius: 5px;
    box-shadow: none;
}

.xzg-collector-status {
    padding: 12px 14px;
    border-color: var(--xzg-collection-border);
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
}

.xzg-collector-status[data-tone="info"] {
    border-color: #bfdbfe;
    background: var(--xzg-collection-blue-soft);
    color: var(--xzg-collection-blue-dark);
}

.xzg-collector-status[data-tone="success"] {
    border-color: #bbebcc;
    background: #f0fdf4;
    color: #15803d;
}

.xzg-collector-status[data-tone="warning"],
.xzg-collector-fallback {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.xzg-collector-status[data-tone="danger"] {
    border-color: #fecaca;
    background: #fff7f7;
    color: #dc2626;
}

.xzg-collector-runtime-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.xzg-collector-runtime-meta div {
    padding: 11px 12px;
    border-color: var(--xzg-collection-border-soft);
    border-radius: 5px;
    background: #f8fafc;
}

.xzg-collector-runtime-meta dt {
    color: var(--xzg-collection-muted);
}

.xzg-collector-runtime-meta dd {
    color: var(--xzg-collection-text);
}

body.xzg-workbench-page--collected-data :is(
    [data-xzg-panel="collected-data"],
    [data-xzg-panel="planned-listing-stores"],
    [data-xzg-panel="generated-excel"]
) .xzg-web-module-frame {
    width: 100%;
    height: auto;
    min-height: 320px;
    overflow: hidden;
    border-radius: 5px;
    background: transparent;
}

@media (max-width: 1024px) {
    body.xzg-workbench-page:is(
        .xzg-workbench-page--collected-data,
        :has([data-xzg-panel="collection-workbench"]:not([hidden]))
    ) {
        min-width: 0;
    }

    body.xzg-workbench-page:is(
        .xzg-workbench-page--collected-data,
        :has([data-xzg-panel="collection-workbench"]:not([hidden]))
    ) .xzg-topbar {
        grid-template-columns: 180px minmax(0, 1fr) 180px;
    }

    :is(
        [data-xzg-panel="collection-workbench"],
        [data-xzg-panel="collected-data"],
        [data-xzg-panel="planned-listing-stores"],
        [data-xzg-panel="generated-excel"]
    ) .xzg-page-head {
        margin-top: 16px;
    }
}

@media (max-width: 768px) {
    body.xzg-workbench-page:is(
        .xzg-workbench-page--collected-data,
        :has([data-xzg-panel="collection-workbench"]:not([hidden]))
    ) .xzg-topbar {
        grid-template-columns: minmax(150px, 1fr) auto;
    }

    body.xzg-workbench-page:is(
        .xzg-workbench-page--collected-data,
        :has([data-xzg-panel="collection-workbench"]:not([hidden]))
    ) .xzg-tabs {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        overflow: visible;
    }

    body.xzg-workbench-page:is(
        .xzg-workbench-page--collected-data,
        :has([data-xzg-panel="collection-workbench"]:not([hidden]))
    ) .xzg-tabs > * {
        flex: 1 1 120px;
        min-width: 0;
    }

    body.xzg-workbench-page:is(
        .xzg-workbench-page--collected-data,
        :has([data-xzg-panel="collection-workbench"]:not([hidden]))
    ) :is(.xzg-nav-trigger, .xzg-nav-standalone) {
        width: 100%;
        min-width: 0;
        min-height: 46px;
    }

    :is(
        [data-xzg-panel="collection-workbench"],
        [data-xzg-panel="collected-data"],
        [data-xzg-panel="planned-listing-stores"],
        [data-xzg-panel="generated-excel"]
    ) .xzg-page-head {
        margin: 14px 0;
    }

    .xzg-collector-control,
    .xzg-collector-runtime {
        padding: 14px;
    }

    .xzg-collector-form,
    .xzg-collector-runtime-meta {
        grid-template-columns: minmax(0, 1fr);
    }

    .xzg-collector-control-head,
    .xzg-collector-runtime-head {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .xzg-collector-engine-badge,
    .xzg-collector-status-pill {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    body.xzg-workbench-page:is(
        .xzg-workbench-page--collected-data,
        :has([data-xzg-panel="collection-workbench"]:not([hidden]))
    ) .xzg-page {
        padding: 14px 10px 24px;
    }

    body.xzg-workbench-page:is(
        .xzg-workbench-page--collected-data,
        :has([data-xzg-panel="collection-workbench"]:not([hidden]))
    ) .xzg-brand {
        padding-left: 10px;
    }

    body.xzg-workbench-page:is(
        .xzg-workbench-page--collected-data,
        :has([data-xzg-panel="collection-workbench"]:not([hidden]))
    ) .xzg-brand-mark {
        width: 36px;
        height: 36px;
    }

    body.xzg-workbench-page:is(
        .xzg-workbench-page--collected-data,
        :has([data-xzg-panel="collection-workbench"]:not([hidden]))
    ) :is(.xzg-nav-trigger, .xzg-nav-standalone) {
        padding: 0 8px;
        font-size: 13px;
    }

    :is(
        [data-xzg-panel="collection-workbench"],
        [data-xzg-panel="collected-data"],
        [data-xzg-panel="planned-listing-stores"],
        [data-xzg-panel="generated-excel"]
    ) .xzg-page-head h1 {
        font-size: 24px;
    }

    .xzg-collector-actions,
    .xzg-collector-actions .xzg-btn {
        width: 100%;
    }

    .xzg-collector-status,
    .xzg-collector-fallback {
        padding: 11px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .xzg-collector-template-field select,
    .xzg-collector-actions .xzg-btn {
        transition: none;
    }
}

/* 外层脚本为四个采集管理面板统一添加该 class。 */
body.xzg-workbench-page.xzg-workbench-page--collection-management {
    min-width: 0;
    overflow-x: clip;
    background: #f7f9fc;
}

body.xzg-workbench-page.xzg-workbench-page--collection-management .xzg-page {
    width: 100%;
    min-width: 0;
}

body.xzg-workbench-page.xzg-workbench-page--collection-management :is(
    [data-xzg-panel="collected-data"],
    [data-xzg-panel="planned-listing-stores"],
    [data-xzg-panel="generated-excel"]
) .xzg-web-module-frame {
    width: 100%;
    height: auto;
    min-height: 320px;
    overflow: hidden;
    border-radius: 5px;
    background: transparent;
}

@media (max-width: 1024px) {
    body.xzg-workbench-page.xzg-workbench-page--collection-management .xzg-topbar {
        grid-template-columns: 180px minmax(0, 1fr) 180px;
    }
}

@media (max-width: 768px) {
    body.xzg-workbench-page.xzg-workbench-page--collection-management .xzg-topbar {
        grid-template-columns: minmax(150px, 1fr) auto;
    }

    body.xzg-workbench-page.xzg-workbench-page--collection-management .xzg-tabs {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        overflow: visible;
    }

    body.xzg-workbench-page.xzg-workbench-page--collection-management .xzg-tabs > * {
        flex: 1 1 120px;
        min-width: 0;
    }

    body.xzg-workbench-page.xzg-workbench-page--collection-management :is(.xzg-nav-trigger, .xzg-nav-standalone) {
        width: 100%;
        min-width: 0;
        min-height: 46px;
    }
}

@media (max-width: 480px) {
    body.xzg-workbench-page.xzg-workbench-page--collection-management .xzg-page {
        padding: 14px 10px 24px;
    }

    body.xzg-workbench-page.xzg-workbench-page--collection-management .xzg-brand {
        padding-left: 10px;
    }

    body.xzg-workbench-page.xzg-workbench-page--collection-management .xzg-brand-mark {
        width: 36px;
        height: 36px;
    }

    body.xzg-workbench-page.xzg-workbench-page--collection-management :is(.xzg-nav-trigger, .xzg-nav-standalone) {
        padding: 0 8px;
        font-size: 13px;
    }
}
