.commerce-workbench {
    --commerce-blue: #3156d9;
    --commerce-blue-soft: #eef2ff;
    --commerce-ink: #101828;
    --commerce-muted: #667085;
    --commerce-line: #e4e7ec;
    --commerce-surface: #fff;
    display: grid;
    min-width: 0;
    gap: 22px;
}

.commerce-workbench h2,
.commerce-workbench h3,
.commerce-workbench h4,
.commerce-workbench p,
.commerce-workbench dl,
.commerce-workbench ol,
.commerce-workbench ul {
    margin: 0;
}

.commerce-workbench h2 {
    color: var(--commerce-ink);
    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1.24;
    letter-spacing: -.025em;
}

.commerce-workbench h3 {
    color: var(--commerce-ink);
    font-size: 18px;
    line-height: 1.4;
}

.commerce-workbench p {
    color: var(--commerce-muted);
    line-height: 1.7;
}

.commerce-workbench a,
.commerce-workbench button,
.commerce-workbench input,
.commerce-workbench select,
.commerce-workbench textarea {
    min-width: 0;
}

.commerce-hero,
.commerce-page-intro {
    display: flex;
    min-width: 0;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.commerce-hero {
    padding: 30px;
    border: 1px solid #dbe3ff;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff 0%, #f7f9ff 68%, #eef2ff 100%);
    box-shadow: 0 12px 32px rgba(49, 86, 217, .06);
}

.commerce-hero > div,
.commerce-page-intro > div {
    display: grid;
    min-width: 0;
    gap: 8px;
}

.commerce-hero p,
.commerce-page-intro p {
    max-width: 760px;
    font-size: 14px;
}

.commerce-page-intro {
    padding: 4px 0 2px;
}

.commerce-eyebrow,
.commerce-kicker {
    color: var(--commerce-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.commerce-panel {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--commerce-line);
    border-radius: 13px;
    background: var(--commerce-surface);
    box-shadow: 0 8px 24px rgba(16, 24, 40, .045);
}

.commerce-panel > header,
.commerce-record-section > header,
.commerce-plan-form-panel > header,
.commerce-plan-list-panel > header,
.commerce-supply-form-panel > header,
.commerce-supply-list-panel > header,
.commerce-create-dossier > header,
.commerce-listing-create > header {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.commerce-panel > header > div,
.commerce-record-section > header > div {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.commerce-import-layout {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr);
    gap: 22px;
    align-items: start;
}

.commerce-import-layout > form,
.commerce-import-layout label {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.commerce-import-layout > form { gap: 16px; }
.commerce-import-layout label > span { color: #344054; font-size: 13px; font-weight: 700; }
.commerce-import-layout label > span > b { color: #d92d20; }
.commerce-import-layout label > small { color: var(--commerce-muted); font-size: 12px; line-height: 1.55; }
.commerce-file-field input[type="file"] { min-height: 48px; padding: 8px; }
.commerce-file-field input[type="file"]::file-selector-button { min-height: 32px; margin-right: 10px; border: 0; border-radius: 8px; padding: 0 12px; color: #344054; background: #eef2f6; cursor: pointer; }

.commerce-consent {
    grid-template-columns: 20px minmax(0, 1fr) !important;
    align-items: start;
    gap: 10px !important;
    padding: 12px 14px;
    border: 1px solid var(--commerce-line);
    border-radius: 10px;
    background: #f9fafb;
}

.commerce-consent input { width: 18px; height: 18px; margin: 2px 0 0; }
.commerce-consent > span { font-weight: 500 !important; line-height: 1.6; }
.commerce-import-guide { display: grid; min-width: 0; gap: 12px; padding: 18px; border-radius: 11px; background: #f7f9ff; }
.commerce-import-guide strong { color: var(--commerce-ink); }
.commerce-import-guide ol { display: grid; gap: 8px; padding-left: 20px; color: #475467; font-size: 13px; line-height: 1.55; }
.commerce-import-guide p { padding-top: 12px; border-top: 1px solid #dbe3ff; font-size: 12px; }
.commerce-import-history { display: grid; min-width: 0; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--commerce-line); }
.commerce-import-history > div { display: grid; min-width: 0; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.commerce-import-history strong { min-width: 0; overflow-wrap: anywhere; color: #344054; font-size: 13px; }
.commerce-import-history small { color: var(--commerce-muted); font-size: 12px; text-align: right; }

.commerce-panel > header > span:not(.commerce-pill) {
    color: var(--commerce-muted);
    font-size: 12px;
    font-weight: 700;
}

.commerce-notice,
.commerce-inline-note {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #dbe3ff;
    border-radius: 11px;
    color: #2e4bb2;
    background: #f5f7ff;
}

.commerce-notice.warning,
.commerce-inline-note.warning {
    border-color: #fedf89;
    color: #854a0e;
    background: #fffaeb;
}

.commerce-inline-note.success {
    border-color: #abefc6;
    color: #067647;
    background: #ecfdf3;
}

.commerce-notice > svg,
.commerce-inline-note > svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: 1px;
}

.commerce-notice > div {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
    gap: 3px;
}

.commerce-notice strong,
.commerce-inline-note strong {
    font-size: 14px;
}

.commerce-notice p,
.commerce-inline-note,
.commerce-inline-note p {
    color: inherit;
    font-size: 13px;
    line-height: 1.6;
}

.commerce-notice > a,
.commerce-inline-note > a {
    flex: 0 0 auto;
    min-height: 44px;
    align-content: center;
    color: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.commerce-metrics {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.commerce-metrics a {
    display: grid;
    min-width: 0;
    gap: 5px;
    padding: 18px;
    border: 1px solid var(--commerce-line);
    border-radius: 12px;
    color: var(--commerce-ink);
    background: #fff;
    text-decoration: none;
    transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.commerce-metrics a:hover {
    border-color: #b9c7f8;
    box-shadow: 0 10px 24px rgba(49, 86, 217, .07);
    transform: translateY(-1px);
}

.commerce-metrics span {
    color: var(--commerce-muted);
    font-size: 12px;
    font-weight: 700;
}

.commerce-metrics strong {
    font-size: 28px;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.commerce-metrics small {
    overflow-wrap: anywhere;
    color: #667085;
    font-size: 11px;
}

.commerce-dashboard-grid,
.commerce-split,
.commerce-plan-layout,
.commerce-supply-layout {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 18px;
    align-items: start;
}

.commerce-split--connection {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
}

.commerce-plan-layout,
.commerce-supply-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}

.commerce-next-action > p {
    margin-bottom: 20px;
}

.commerce-step-mark {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 10px;
    color: var(--commerce-blue);
    background: var(--commerce-blue-soft);
    font-size: 12px;
    font-weight: 800;
}

.commerce-pipeline {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    list-style: none;
}

.commerce-pipeline li {
    position: relative;
    display: grid;
    min-width: 0;
    justify-items: start;
    gap: 8px;
    padding-top: 2px;
}

.commerce-pipeline li:not(:last-child)::after {
    position: absolute;
    top: 15px;
    right: 8px;
    left: 38px;
    height: 1px;
    background: var(--commerce-line);
    content: "";
}

.commerce-pipeline li > span {
    position: relative;
    z-index: 1;
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--commerce-line);
    border-radius: 999px;
    color: #98a2b3;
    background: #fff;
    font-size: 11px;
    font-weight: 800;
}

.commerce-pipeline li.done > span {
    border-color: #abefc6;
    color: #067647;
    background: #ecfdf3;
}

.commerce-pipeline li.current > span {
    border-color: var(--commerce-blue);
    color: #fff;
    background: var(--commerce-blue);
}

.commerce-pipeline li > div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.commerce-pipeline strong {
    font-size: 12px;
}

.commerce-pipeline small {
    color: var(--commerce-muted);
    font-size: 10px;
    line-height: 1.45;
}

.commerce-activity-grid {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.commerce-activity-grid article {
    display: flex;
    min-width: 0;
    gap: 12px;
    padding: 14px;
    border: 1px solid #edf0f3;
    border-radius: 10px;
    background: #fafbfc;
}

.commerce-activity-grid article > svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: var(--commerce-blue);
}

.commerce-activity-grid article > div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.commerce-activity-grid span,
.commerce-activity-grid small {
    color: var(--commerce-muted);
    font-size: 11px;
}

.commerce-activity-grid strong {
    overflow-wrap: anywhere;
    font-size: 13px;
}

.commerce-pill {
    display: inline-flex;
    width: fit-content;
    min-height: 26px;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    color: #475467;
    background: #f2f4f7;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.commerce-pill.success { color: #067647; background: #ecfdf3; }
.commerce-pill.warning { color: #854a0e; background: #fffaeb; }
.commerce-pill.danger { color: #b42318; background: #fef3f2; }
.commerce-pill.info { color: #2e4bb2; background: #eef2ff; }

.commerce-check-list,
.commerce-boundary-card ul {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding: 0;
    list-style: none;
}

.commerce-check-list li,
.commerce-boundary-card li {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 9px;
    color: #475467;
    font-size: 13px;
    line-height: 1.55;
}

.commerce-check-list svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    color: #f79009;
}

.commerce-boundary-card {
    background: #101828;
}

.commerce-boundary-card h3,
.commerce-boundary-card li { color: #fff; }
.commerce-boundary-card .commerce-kicker { color: #9db0ff; }
.commerce-boundary-card li::before { color: #9db0ff; content: "✓"; }

.commerce-card-list,
.commerce-dossier-list,
.commerce-listing-list {
    display: grid;
    min-width: 0;
    gap: 12px;
}

.commerce-record-card,
.commerce-plan-card,
.commerce-supply-card {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px;
    border: 1px solid #edf0f3;
    border-radius: 11px;
    background: #fff;
}

.commerce-record-main,
.commerce-record-meta {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.commerce-record-main > div,
.commerce-record-meta,
.commerce-supply-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.commerce-record-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 10px;
    color: var(--commerce-blue);
    background: var(--commerce-blue-soft);
}

.commerce-record-icon svg { width: 20px; height: 20px; }
.commerce-record-card strong { overflow-wrap: anywhere; font-size: 14px; }
.commerce-record-card small { color: var(--commerce-muted); font-size: 11px; }
.commerce-record-meta { justify-items: end; text-align: right; }

.commerce-panel form,
.commerce-panel fieldset {
    min-width: 0;
}

.commerce-panel form {
    display: grid;
    gap: 17px;
}

.commerce-panel fieldset {
    display: grid;
    gap: 17px;
    margin: 0;
    padding: 0;
    border: 0;
}

.commerce-panel fieldset:disabled {
    opacity: .58;
}

.commerce-panel label {
    display: grid;
    min-width: 0;
    gap: 7px;
    color: #344054;
    font-size: 13px;
    font-weight: 650;
}

.commerce-panel label > span > b,
.commerce-panel label > span > em,
.commerce-choice-group legend b {
    color: #d92d20;
    font-style: normal;
}

.commerce-panel label > span > small {
    margin-left: 6px;
    color: var(--commerce-muted);
    font-size: 11px;
    font-weight: 400;
}

.commerce-panel label > small,
.commerce-repeat-field > small {
    color: var(--commerce-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.55;
}

.commerce-form-grid,
.commerce-score-fields {
    display: grid;
    min-width: 0;
    gap: 14px;
}

.commerce-form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.commerce-form-grid.three,
.commerce-score-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.commerce-field-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #344054;
    font-size: 13px;
    font-weight: 650;
}

.commerce-field-heading button,
.commerce-inline-field button {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    border: 0;
    border-radius: 9px;
    color: var(--commerce-blue);
    background: var(--commerce-blue-soft);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.commerce-field-heading svg,
.commerce-inline-field svg { width: 16px; height: 16px; }

.commerce-inline-field {
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
}

.commerce-inline-field + .commerce-inline-field { margin-top: 8px; }

.commerce-choice-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.commerce-choice-group legend {
    grid-column: 1 / -1;
    margin-bottom: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 650;
}

.commerce-choice-group label,
.commerce-confirm-check {
    display: flex !important;
    min-height: 68px;
    align-items: flex-start;
    gap: 10px !important;
    padding: 12px;
    border: 1px solid var(--commerce-line);
    border-radius: 10px;
    background: #fff;
}

.commerce-choice-group input,
.commerce-confirm-check input,
.commerce-gate-list input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    flex: 0 0 18px;
    margin: 2px 0 0;
    accent-color: var(--commerce-blue);
}

.commerce-choice-group label > span,
.commerce-confirm-check > span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.commerce-choice-group strong,
.commerce-confirm-check strong { font-size: 13px; }
.commerce-choice-group small,
.commerce-confirm-check small { color: var(--commerce-muted); font-size: 11px; font-weight: 400; line-height: 1.5; }

.commerce-disclosure {
    min-width: 0;
    border: 1px solid var(--commerce-line);
    border-radius: 11px;
    background: #fafbfc;
}

.commerce-disclosure > summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    color: #344054;
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    font-weight: 700;
}

.commerce-disclosure > summary::marker { content: ""; }
.commerce-disclosure > summary::-webkit-details-marker { display: none; }
.commerce-disclosure > summary > span { display: flex; align-items: center; gap: 8px; }
.commerce-disclosure > summary svg { width: 17px; height: 17px; }
.commerce-disclosure > summary > svg { transition: transform .16s ease; }
.commerce-disclosure[open] > summary > svg { transform: rotate(180deg); }
.commerce-disclosure > :not(summary) { margin: 0 14px 14px; }

.commerce-gate-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-top: 12px;
    border-top: 1px solid var(--commerce-line);
}

.commerce-gate-list label {
    display: flex;
    align-items: center;
    gap: 7px;
}

.commerce-form-submit {
    width: 100%;
}

.commerce-plan-card {
    display: grid;
    align-items: stretch;
}

.commerce-plan-card-head,
.commerce-card-actions,
.commerce-supply-card {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.commerce-plan-card-head > div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.commerce-plan-card strong { overflow-wrap: anywhere; font-size: 14px; }
.commerce-plan-card small,
.commerce-plan-card p { color: var(--commerce-muted); font-size: 11px; }
.commerce-card-actions { justify-content: flex-start; flex-wrap: wrap; }
.commerce-card-actions form { display: block; }

.commerce-tag-row {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 6px;
}

.commerce-tag-row span {
    max-width: 100%;
    padding: 4px 8px;
    overflow-wrap: anywhere;
    border-radius: 7px;
    color: #344054;
    background: #f2f4f7;
    font-size: 11px;
}

.commerce-run-list {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--commerce-line);
}

.commerce-run-list h4 { font-size: 13px; }
.commerce-run-list > div { display: grid; min-width: 0; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.commerce-run-list strong { font-size: 12px; }
.commerce-run-list small { color: var(--commerce-muted); font-size: 10px; }

.commerce-filter-tabs {
    display: flex;
    min-width: 0;
    gap: 5px;
    padding: 4px;
    overflow-x: auto;
    border: 1px solid var(--commerce-line);
    border-radius: 11px;
    background: #fff;
    scrollbar-width: thin;
}

.commerce-filter-tabs a {
    display: inline-flex;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    padding: 0 13px;
    border-radius: 8px;
    color: #667085;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.commerce-filter-tabs a.active { color: var(--commerce-blue); background: var(--commerce-blue-soft); }

.commerce-opportunity-grid {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.commerce-opportunity-card {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--commerce-line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .04);
}

.commerce-opportunity-card > header {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.commerce-opportunity-card > header > div:first-child { display: grid; min-width: 0; gap: 6px; }
.commerce-opportunity-card h3 { overflow-wrap: anywhere; }
.commerce-opportunity-card header p { font-size: 12px; }

.commerce-score {
    display: grid;
    min-width: 60px;
    flex: 0 0 60px;
    justify-items: center;
    padding: 9px 6px;
    border-radius: 10px;
    color: var(--commerce-blue);
    background: var(--commerce-blue-soft);
}

.commerce-score strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.commerce-score span { font-size: 10px; font-weight: 700; }

.commerce-evidence-summary,
.commerce-dossier-facts {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.commerce-evidence-summary > div,
.commerce-dossier-facts > div {
    display: grid;
    min-width: 0;
    gap: 4px;
    padding: 10px;
    border-radius: 9px;
    background: #f8f9fb;
}

.commerce-evidence-summary dt,
.commerce-dossier-facts dt { color: var(--commerce-muted); font-size: 10px; }
.commerce-evidence-summary dd,
.commerce-dossier-facts dd { margin: 0; overflow-wrap: anywhere; color: #344054; font-size: 11px; font-weight: 650; }

.commerce-gate-fail { padding: 12px; border-radius: 9px; color: #b42318; background: #fef3f2; }
.commerce-gate-fail strong { font-size: 12px; }
.commerce-gate-fail p { margin-top: 3px; color: inherit; font-size: 11px; }

.commerce-match-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.commerce-supply-card { align-items: stretch; }
.commerce-supply-visual {
    display: grid;
    width: 92px;
    min-width: 92px;
    height: 92px;
    flex: 0 0 92px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--commerce-line);
    border-radius: 10px;
    color: #98a2b3;
    background: #f8f9fb;
}

.commerce-supply-visual img,
.commerce-dossier-product img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.commerce-supply-copy { flex: 1 1 auto; align-content: start; }
.commerce-supply-copy > div { display: flex; flex-wrap: wrap; gap: 6px; }
.commerce-supply-copy > strong { margin-top: 4px; overflow-wrap: anywhere; font-size: 14px; }
.commerce-supply-copy > small { color: var(--commerce-muted); font-size: 11px; }
.commerce-supply-copy dl { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; }
.commerce-supply-copy dl > div { display: flex; gap: 5px; font-size: 11px; }
.commerce-supply-copy dt { color: var(--commerce-muted); }
.commerce-supply-copy dd { margin: 0; color: #344054; font-weight: 700; }

.commerce-create-dossier form,
.commerce-listing-create form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.commerce-listing-create form { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }

.commerce-dossier-card,
.commerce-listing-card { display: grid; gap: 17px; }
.commerce-dossier-head,
.commerce-listing-head {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.commerce-dossier-product {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
}

.commerce-dossier-product > img,
.commerce-dossier-product > span {
    display: grid;
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--commerce-line);
    border-radius: 10px;
    color: #98a2b3;
    background: #f8f9fb;
}

.commerce-dossier-product > div { display: grid; min-width: 0; gap: 4px; }
.commerce-dossier-product > div > div { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.commerce-dossier-product h3 { overflow-wrap: anywhere; }
.commerce-dossier-product p { font-size: 12px; }
.commerce-dossier-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.commerce-dossier-actions form { display: block; }

.commerce-dossier-facts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.commerce-dossier-details > div { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--commerce-line); }
.commerce-dossier-details p { color: #475467; font-size: 12px; }

.commerce-dossier-section {
    display: grid;
    min-width: 0;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--commerce-line);
    border-radius: 11px;
    background: #fbfcfe;
}

.commerce-dossier-section > header {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.commerce-dossier-section > header > div {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 11px;
}

.commerce-dossier-section > header > div > div { display: grid; min-width: 0; gap: 3px; }
.commerce-dossier-section h4 { color: var(--commerce-ink); font-size: 15px; }
.commerce-dossier-section header p { font-size: 11px; }

.commerce-section-index {
    display: inline-grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border-radius: 9px;
    color: var(--commerce-blue);
    background: var(--commerce-blue-soft);
    font-size: 11px;
    font-weight: 800;
}

.commerce-source-count {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    color: #475467;
    background: #f2f4f7;
    font-size: 10px;
    font-weight: 700;
}

.commerce-copy-section { background: #fff; }
.commerce-copy-form { gap: 15px !important; }
.commerce-copy-form textarea.input { min-height: 0; resize: vertical; line-height: 1.65; }
.commerce-form-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 4px;
}
.commerce-form-actions p { display: flex; min-width: 0; align-items: center; gap: 8px; font-size: 11px; }
.commerce-form-actions p svg { width: 17px; height: 17px; flex: 0 0 17px; color: #067647; }
.commerce-form-actions .button { flex: 0 0 auto; }

.commerce-copy-preview {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.commerce-copy-preview > div {
    display: grid;
    min-width: 0;
    gap: 5px;
    padding: 13px;
    border-radius: 9px;
    background: #f8f9fb;
}
.commerce-copy-preview > .wide { grid-column: 1 / -1; }
.commerce-copy-preview small { color: var(--commerce-muted); font-size: 10px; font-weight: 700; }
.commerce-copy-preview strong,
.commerce-copy-preview p,
.commerce-copy-preview li { overflow-wrap: anywhere; color: #344054; font-size: 12px; line-height: 1.7; }
.commerce-copy-preview ul { display: grid; gap: 4px; padding-left: 18px; }

.commerce-dossier-footer {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border-radius: 11px;
    background: #f5f7ff;
}
.commerce-dossier-footer > div { display: grid; min-width: 0; gap: 3px; }
.commerce-dossier-footer strong { color: #253b8f; font-size: 13px; }
.commerce-dossier-footer p { font-size: 11px; }
.commerce-dossier-footer form { display: block; flex: 0 0 auto; }

.commerce-listing-copy-summary {
    display: grid;
    min-width: 0;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--commerce-line);
    border-radius: 10px;
    background: #fbfcfe;
}
.commerce-listing-copy-summary > div { display: grid; min-width: 0; gap: 4px; }
.commerce-listing-copy-summary small { color: var(--commerce-muted); font-size: 10px; font-weight: 700; }
.commerce-listing-copy-summary strong,
.commerce-listing-copy-summary li { overflow-wrap: anywhere; color: #344054; font-size: 12px; line-height: 1.6; }
.commerce-listing-copy-summary ul { display: flex; min-width: 0; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.commerce-listing-copy-summary li { padding: 5px 8px; border-radius: 7px; background: #eef2ff; }

.commerce-listing-head > div { display: grid; min-width: 0; gap: 5px; }
.commerce-listing-head h3 { overflow-wrap: anywhere; }
.commerce-listing-head p,
.commerce-listing-head > small { color: var(--commerce-muted); font-size: 11px; }
.commerce-listing-preflight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--commerce-line);
    border-radius: 10px;
    background: #fbfcfe;
}
.commerce-listing-preflight > div { display: grid; min-width: 0; gap: 3px; }
.commerce-listing-preflight strong { color: #344054; font-size: 13px; }
.commerce-listing-preflight small { color: var(--commerce-muted); font-size: 11px; line-height: 1.55; }
.commerce-publish-confirm { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }

.commerce-empty {
    display: grid;
    min-height: 220px;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: var(--commerce-muted);
    text-align: center;
}

.commerce-empty > svg { width: 30px; height: 30px; color: #98a2b3; }
.commerce-empty strong { color: #344054; font-size: 15px; }
.commerce-empty p { max-width: 520px; font-size: 12px; }
.commerce-empty .button { margin-top: 6px; }

body.commerce-dialog-open { overflow: hidden; }

.commerce-confirm-dialog {
    width: min(520px, calc(100vw - 32px));
    max-width: 520px;
    max-height: calc(100dvh - 32px);
    padding: 0;
    overflow: auto;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    color: var(--commerce-ink);
    background: #fff;
    box-shadow: 0 28px 80px rgba(16, 24, 40, .24);
}

.commerce-confirm-dialog::backdrop {
    background: rgba(16, 24, 40, .58);
    backdrop-filter: blur(2px);
}

.commerce-confirm-shell {
    display: grid;
    min-width: 0;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    padding: 24px;
}

.commerce-confirm-symbol {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    color: var(--commerce-blue);
    background: var(--commerce-blue-soft);
}

.commerce-confirm-symbol > svg { width: 22px; height: 22px; }
.commerce-confirm-content { display: grid; min-width: 0; gap: 7px; }
.commerce-confirm-content h2 { overflow-wrap: anywhere; font-size: 20px; line-height: 1.4; }
.commerce-confirm-content p { overflow-wrap: anywhere; font-size: 13px; line-height: 1.65; }

.commerce-confirm-note {
    display: flex;
    min-width: 0;
    grid-column: 1 / -1;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #475467;
    background: #f7f8fa;
    font-size: 12px;
    line-height: 1.6;
}

.commerce-confirm-note > svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; color: #667085; }
.commerce-confirm-actions { display: flex; min-width: 0; grid-column: 1 / -1; justify-content: flex-end; gap: 10px; padding-top: 2px; }
.commerce-confirm-actions .button { min-height: 44px; }

.commerce-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1199px) {
    .commerce-plan-layout,
    .commerce-supply-layout { grid-template-columns: minmax(0, 1fr); }
    .commerce-plan-list-panel,
    .commerce-supply-list-panel { order: -1; }
    .commerce-opportunity-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1023px) {
    .commerce-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .commerce-dashboard-grid,
    .commerce-split,
    .commerce-split--connection { grid-template-columns: minmax(0, 1fr); }
    .commerce-activity-grid { grid-template-columns: minmax(0, 1fr); }
    .commerce-boundary-card { order: -1; }
    .commerce-dossier-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .commerce-import-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
    .commerce-workbench { gap: 16px; }
    .commerce-hero,
    .commerce-page-intro { align-items: stretch; flex-direction: column; gap: 16px; }
    .commerce-hero { padding: 22px 18px; }
    .commerce-page-intro .button,
    .commerce-hero .button { width: 100%; }
    .commerce-notice { align-items: flex-start; flex-wrap: wrap; }
    .commerce-notice > a { width: 100%; padding-left: 32px; }
    .commerce-panel { padding: 18px; }
    .commerce-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
    .commerce-pipeline li:nth-child(2)::after { display: none; }
    .commerce-form-grid.three,
    .commerce-score-fields,
    .commerce-choice-group { grid-template-columns: minmax(0, 1fr); }
    .commerce-choice-group legend { grid-column: 1; }
    .commerce-record-card,
    .commerce-dossier-head,
    .commerce-listing-head { align-items: stretch; flex-direction: column; }
    .commerce-record-meta { justify-items: start; text-align: left; }
    .commerce-dossier-actions { justify-content: flex-start; }
    .commerce-dossier-actions .button { width: 100%; }
    .commerce-dossier-section > header,
    .commerce-dossier-footer,
    .commerce-form-actions { align-items: stretch; flex-direction: column; }
    .commerce-form-actions .button,
    .commerce-dossier-footer .button { width: 100%; }
    .commerce-create-dossier form,
    .commerce-listing-create form,
    .commerce-match-form,
    .commerce-listing-preflight,
    .commerce-publish-confirm { grid-template-columns: minmax(0, 1fr); }
    .commerce-create-dossier .button,
    .commerce-listing-create .button,
    .commerce-match-form .button,
    .commerce-listing-preflight .button,
    .commerce-publish-confirm .button { width: 100%; }
    .commerce-import-history > div { grid-template-columns: auto minmax(0, 1fr); }
    .commerce-import-history small { grid-column: 2; text-align: left; }
}

@media (max-width: 390px) {
    .commerce-workbench h2 { font-size: 23px; }
    .commerce-form-grid.two,
    .commerce-evidence-summary,
    .commerce-dossier-facts,
    .commerce-copy-preview { grid-template-columns: minmax(0, 1fr); }
    .commerce-opportunity-card { padding: 17px; }
    .commerce-supply-card { align-items: flex-start; flex-direction: column; }
    .commerce-supply-visual {
        width: 100%;
        min-width: 0;
        height: auto;
        aspect-ratio: 1;
        flex: 0 0 auto;
    }
    .commerce-dossier-product { align-items: flex-start; }
    .commerce-dossier-product > img,
    .commerce-dossier-product > span { width: 72px; height: 72px; flex-basis: 72px; }
    .commerce-confirm-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
    .commerce-confirm-shell { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px 18px; }
    .commerce-confirm-symbol { width: 40px; height: 40px; }
    .commerce-confirm-note,
    .commerce-confirm-actions { grid-column: 1; }
    .commerce-confirm-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
    .commerce-confirm-actions .button { width: 100%; }
}

@media (max-width: 360px) {
    .commerce-panel { padding: 16px; }
    .commerce-pipeline { grid-template-columns: minmax(0, 1fr); }
    .commerce-pipeline li::after { display: none; }
    .commerce-opportunity-card > header { flex-direction: column; }
    .commerce-score { width: 100%; grid-template-columns: auto auto; justify-content: center; align-items: baseline; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    .commerce-metrics a,
    .commerce-disclosure > summary > svg { transition: none; }
}
