.summary-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}

.import-summary {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.import-summary .summary-item strong {
    font-size: 18px;
}

.summary-item {
    min-width: 0;
    padding: 13px 15px;
    border-right: 1px solid var(--line-soft);
}

.summary-item:last-child {
    border-right: 0;
}

.summary-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.summary-item strong {
    display: block;
    margin-top: 5px;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.12;
    font-variant-numeric: tabular-nums;
}

.summary-item.highlight {
    background: var(--surface-tint);
}

.comparison-outcome {
    display: grid;
    gap: 3px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.comparison-outcome span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.comparison-outcome strong {
    font-size: 20px;
    line-height: 1.25;
}

.comparison-outcome.is-positive {
    border-color: #b7e1d4;
    background: linear-gradient(0deg, rgba(234, 248, 241, .62), rgba(255, 255, 255, .96));
}

.comparison-outcome.is-positive strong {
    color: var(--success);
}

.comparison-outcome.is-negative {
    border-color: #f2b8b5;
    background: linear-gradient(0deg, rgba(255, 241, 240, .62), rgba(255, 255, 255, .96));
}

.comparison-outcome.is-negative strong {
    color: var(--danger);
}

.comparison-outcome.is-warning {
    border-color: #f0cf87;
    background: linear-gradient(0deg, rgba(255, 247, 230, .72), rgba(255, 255, 255, .96));
}

.comparison-outcome.is-warning strong {
    color: var(--warning);
}

.workspace-section,
.section {
    margin: 20px 0;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.section-heading p {
    margin-top: 4px;
    font-size: 14px;
}

.table-wrap {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
}

.products-table .table-inline-actions form {
    flex: 0 0 auto;
}

.products-table .icon-button.danger {
    border-color: var(--danger);
    border-radius: 6px;
    background: var(--danger);
    color: #ffffff;
}

.products-table .icon-button.danger:hover,
.products-table .icon-button.danger:focus {
    border-color: #912018;
    background: #912018;
}

th,
td {
    box-sizing: border-box;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

th {
    color: var(--primary-strong);
    background: #e8f1f3;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    border-bottom-color: #c7d5df;
}

tbody tr {
    --table-row-bg: var(--table-row-base);
    background: var(--table-row-bg);
}

tbody tr:nth-child(even) {
    --table-row-bg: var(--table-row-alt);
}

tbody tr:hover {
    --table-row-bg: var(--table-row-hover);
}

tbody tr.table-clickable-row {
    cursor: pointer;
}

tbody tr.table-clickable-row td {
    transition: background-color .16s ease, box-shadow .16s ease;
}

tbody tr.table-clickable-row:hover td:first-child,
tbody tr.table-clickable-row:focus-within td:first-child {
    box-shadow: inset 3px 0 0 rgba(21, 94, 117, .34);
}

tbody tr.is-selected {
    --table-row-bg: var(--table-row-selected);
}

tbody td {
    background: var(--table-row-bg);
}

tbody tr:last-child td {
    border-bottom: 0;
}

td small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.45;
}

.table-primary-link {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.table-primary-link:hover,
.table-primary-link:focus-visible {
    color: var(--primary-strong);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.table-row-hint {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-top: 3px;
    padding: 2px 6px;
    border: 1px solid transparent;
    border-radius: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

tbody tr.table-clickable-row:hover .table-row-hint,
tbody tr.table-clickable-row:focus-within .table-row-hint {
    color: var(--primary-strong);
    border-color: #bfd7df;
    background: #eef7f5;
}

.table-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.table-inline-actions .button {
    position: relative;
    z-index: 1;
}

td,
.summary-item strong,
.metric-card strong,
.aside-panel dd,
.line-computed strong,
.positive,
.negative {
    font-variant-numeric: tabular-nums;
}

.empty {
    padding: 26px;
    color: var(--muted);
    text-align: center;
}

.workspace-table table {
    min-width: 1040px;
}

.association-toolbar {
    grid-template-columns: minmax(250px, 1.2fr) minmax(170px, .7fr) minmax(170px, .7fr) auto;
}

.association-summary {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}
