.tsv2-page {
  min-width: 980px;
  padding: 18px 22px 28px;
  color: #172033;
}

.tsv2-page * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.tsv2-page-header,
.tsv2-toolbar,
.tsv2-filter-bar,
.tsv2-pagination {
  display: flex;
  align-items: center;
}

.tsv2-page-header {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.tsv2-title {
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 760;
  line-height: 28px;
}

.tsv2-subtitle {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.tsv2-storage-warning {
  max-width: 920px;
  color: #dc2626;
  font-weight: 700;
  line-height: 1.55;
}

.tsv2-toolbar {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.tsv2-status-strip {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border: 1px solid #dbe4ee;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  margin-bottom: 12px;
}

.tsv2-status-strip strong {
  color: #172033;
}

.tsv2-update-store {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tsv2-update-store .tsv2-select {
  width: min(360px, 34vw);
  min-width: 240px;
}

.tsv2-status-strip-running {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.tsv2-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.tsv2-button:hover {
  border-color: #64748b;
  background: #f8fafc;
}

.tsv2-button:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.tsv2-button-primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.tsv2-button-primary:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

.tsv2-button-danger {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.tsv2-button-danger:hover {
  border-color: #f87171;
  background: #fee2e2;
}

.tsv2-button-active {
  border-color: #1d4ed8;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

.tsv2-button-sm {
  min-height: 27px;
  padding: 0 9px;
  font-size: 12px;
}

.tsv2-code {
  color: #475569;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.tsv2-progress-panel {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #fff;
}

.tsv2-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-bottom: 1px solid #bfdbfe;
  background: #eff6ff;
}

.tsv2-progress-summary {
  min-width: 0;
  color: #1e40af;
  font-weight: 700;
}

.tsv2-progress-message {
  margin-top: 2px;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.tsv2-progress-elapsed {
  margin-top: 3px;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 650;
}

.tsv2-step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tsv2-step {
  min-width: 0;
  min-height: 94px;
  padding: 10px;
  border-right: 1px solid #e5e7eb;
  background: #fff;
}

.tsv2-step:last-child {
  border-right: 0;
}

.tsv2-step-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tsv2-step-index {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.tsv2-step-name {
  overflow: hidden;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tsv2-step-meta {
  margin-top: 7px;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.4;
}

.tsv2-step-duration {
  margin-top: 6px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.tsv2-step-running {
  background: #dbeafe;
  box-shadow: inset 4px 0 0 #2563eb, inset 0 0 0 1px #93c5fd;
}

.tsv2-step-running .tsv2-step-index {
  background: #2563eb;
  color: #fff;
}

.tsv2-step-completed {
  background: #f0fdf4;
  box-shadow: inset 3px 0 0 #22c55e;
}

.tsv2-step-completed .tsv2-step-index {
  background: #16a34a;
  color: #fff;
}

.tsv2-step-completed .tsv2-step-duration {
  color: #15803d;
}

.tsv2-step-failed,
.tsv2-step-partial {
  background: #fff7ed;
}

.tsv2-step-failed .tsv2-step-index,
.tsv2-step-partial .tsv2-step-index {
  background: #ea580c;
  color: #fff;
}

.tsv2-job-error,
.tsv2-error {
  padding: 9px 11px;
  border: 1px solid #fecaca;
  border-radius: 5px;
  background: #fff1f2;
  color: #b91c1c;
  font-size: 12px;
  white-space: pre-wrap;
}

.tsv2-job-error {
  border-width: 1px 0 0;
  border-radius: 0;
}

.tsv2-error {
  margin-bottom: 12px;
}

.tsv2-dismissible-error {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tsv2-dismissible-error button {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-size: 12px;
  cursor: pointer;
}

.tsv2-filter-bar {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
}

.tsv2-list-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin: 0 0 10px;
  padding: 6px 10px;
  border: 1px solid #dbe4ee;
  border-radius: 6px;
  background: #fff;
}

.tsv2-list-controls .tsv2-secondary {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tsv2-filter {
  min-width: 160px;
}

.tsv2-filter-wide {
  min-width: 240px;
  flex: 1 1 260px;
}

.tsv2-filter label {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.tsv2-filter-range > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tsv2-filter-range .tsv2-input {
  width: 92px;
}

.tsv2-input,
.tsv2-select {
  width: 100%;
  height: 32px;
  padding: 0 9px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  outline: none;
}

.tsv2-input:focus,
.tsv2-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .1);
}

.tsv2-sort-select {
  font-weight: 700;
}

.tsv2-picker-trigger {
  display: flex;
  width: 100%;
  min-width: 190px;
  height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 9px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.tsv2-picker-trigger:hover {
  border-color: #64748b;
}

.tsv2-score-filter {
  position: relative;
}

.tsv2-score-dropdown {
  position: absolute;
  z-index: 120;
  top: calc(100% + 4px);
  left: 0;
  width: 220px;
  max-height: 360px;
  padding: 7px;
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
}

.tsv2-score-dropdown > label {
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 4px 7px;
  border-radius: 4px;
  color: #334155;
  font-size: 12px;
  cursor: pointer;
}

.tsv2-score-dropdown > label:hover {
  background: #f1f5f9;
}

.tsv2-score-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 4px;
  padding: 2px 7px 7px;
  border-bottom: 1px solid #e2e8f0;
}

.tsv2-score-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 12px;
  cursor: pointer;
}

.tsv2-column-panel {
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid #dbe4ee;
  border-radius: 6px;
  background: #fff;
}

.tsv2-column-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.tsv2-column-panel > header span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

.tsv2-column-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tsv2-column-item {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid #dbe4ee;
  border-radius: 5px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  cursor: move;
  user-select: none;
}

.tsv2-column-drag {
  color: #94a3b8;
}

.tsv2-table-shell,
.tsv2-card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
}

.tsv2-list-banner {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 11px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
}

.tsv2-list-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tsv2-bulk-select { position: relative; z-index: 3; }
.tsv2-bulk-select summary { cursor: pointer; list-style: none; }
.tsv2-bulk-select summary::-webkit-details-marker { display: none; }
.tsv2-bulk-select-menu { position: absolute; top: calc(100% + 5px); right: 0; min-width: 150px; overflow: hidden; border: 1px solid #dbe5f0; border-radius: 8px; background: #fff; box-shadow: 0 8px 22px rgba(15, 23, 42, .16); }
.tsv2-bulk-select-menu button { display: block; width: 100%; padding: 9px 12px; border: 0; border-bottom: 1px solid #eef2f7; background: #fff; color: #1e293b; text-align: left; font-size: 13px; line-height: 1.35; }
.tsv2-bulk-select-menu button:last-child { border-bottom: 0; }
.tsv2-bulk-select-menu button:hover { background: #f1f5f9; }
.tsv2-bulk-select-menu small { color: #64748b; font-size: 11px; }

.tsv2-table-wrap {
  position: relative;
  max-height: calc(100vh - 308px);
  min-height: 280px;
  overflow: auto;
}

.tsv2-table {
  width: 100%;
  min-width: 1320px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.tsv2-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 36px;
  padding: 8px 10px;
  border-bottom: 1px solid #dbe4ee;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  text-align: left;
  white-space: nowrap;
}

.tsv2-table td {
  position: relative;
  height: 43px;
  padding: 7px 10px;
  border-bottom: 1px solid #eef2f7;
  color: #334155;
  font-size: 12px;
  vertical-align: middle;
}

.tsv2-table .tsv2-selection-column {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
}

.tsv2-table th.tsv2-selection-column {
  z-index: 3;
  background: #f8fafc;
}

.tsv2-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}

.tsv2-table tbody tr:hover td {
  background: #eff6ff;
}

.tsv2-table tbody tr.tsv2-row-selected td {
  background: #dbeafe;
}

.tsv2-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.tsv2-product-cell {
  display: flex;
  width: 100%;
  min-width: 230px;
  align-items: flex-start;
  gap: 8px;
}

.tsv2-product-cell > div:last-child {
  min-width: 0;
  flex: 1 1 auto;
}

.tsv2-product-cell img,
.tsv2-product-cell > div:first-child:empty {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #f3f4f6;
  object-fit: cover;
}

.tsv2-product-name {
  max-width: 100%;
  overflow: hidden;
  color: #172033;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tsv2-product-title-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
}

.tsv2-product-group-head td { background: #f8fafc; border-top: 1px solid #dbe4ee; }
.tsv2-product-group-count { margin-left: auto; color: #475569; font-size: 12px; white-space: nowrap; }
.tsv2-inline-store-row td { padding: 0 12px 10px; background: #fbfdff; }
.tsv2-inline-store-list { margin-left: 18px; border: 1px solid #e2e8f0; border-radius: 5px; }
.tsv2-inline-store-member { display: flex; align-items: center; gap: 14px; min-height: 38px; padding: 0 10px; border-top: 1px solid #edf2f7; font-size: 12px; }
.tsv2-inline-store-member:first-child { border-top: 0; }
.tsv2-inline-store-member strong { min-width: 150px; }
.tsv2-inline-store-member span { min-width: 105px; }
.tsv2-inline-store-member button { margin-left: auto; }

.tsv2-comparison-list { overflow-x: auto; padding: 12px; background: #eef2f6; }
.tsv2-comparison-card { width: max-content; min-width: 100%; overflow: hidden; margin-bottom: 10px; border: 1px solid #e3e8ef; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.tsv2-comparison-card:nth-child(even) { border-color: #dce5ee; background: #f7f9fc; }
.tsv2-comparison-card:last-child { margin-bottom: 0; }
.tsv2-comparison-product { display: flex; align-items: center; gap: 11px; min-height: 76px; padding: 12px 16px; border-bottom: 1px solid #e7edf3; background: rgba(255,255,255,.72); }
.tsv2-comparison-product input { width: 16px; height: 16px; flex: 0 0 auto; }
.tsv2-comparison-product img, .tsv2-comparison-picture { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 5px; object-fit: cover; background: #eef2f7; }
.tsv2-comparison-product-info { min-width: 0; display: grid; gap: 5px; }
.tsv2-comparison-product-info strong { overflow: hidden; color: #162033; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.tsv2-comparison-product-info span { color: #7b8798; font-size: 12px; }
.tsv2-comparison-count { margin-left: auto; padding: 4px 8px; border-radius: 999px; background: #eef5ff; color: #2563a8; font-size: 12px; font-weight: 650; white-space: nowrap; }
.tsv2-comparison-grid { display: grid; align-items: center; column-gap: 10px; }
.tsv2-comparison-labels { padding: 8px 16px; border-bottom: 1px solid #e7edf3; background: #f2f5f8; color: #718096; font-size: 11px; font-weight: 700; }
.tsv2-comparison-row { min-height: 63px; padding: 9px 16px; border-bottom: 1px solid #e9eef3; color: #27364a; font-size: 13px; }
.tsv2-comparison-row:last-of-type { border-bottom: 0; }
.tsv2-comparison-select { display: inline-flex; align-items: center; gap: 5px; color: #718096; font-size: 12px; cursor: pointer; }
.tsv2-comparison-campaign { min-width: 0; display: grid; gap: 4px; }
.tsv2-comparison-campaign strong { overflow: hidden; color: #172033; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.tsv2-comparison-campaign span { color: #8491a3; font-size: 11px; }
.tsv2-comparison-campaign .tsv2-store-count { margin-left: 7px; }
.tsv2-comparison-row > strong { color: #27364a; font-weight: 650; white-space: nowrap; }
.tsv2-comparison-row > * { min-width: 0; }
.tsv2-comparison-row .tsv2-secondary { display: block; margin-top: 3px; font-size: 11px; }
.tsv2-comparison-profit { display: flex; min-width: 0; align-items: baseline; gap: 5px; white-space: nowrap; }
.tsv2-comparison-profit strong { color: #d97706; font-size: 14px; }
.tsv2-comparison-profit em { color: #d97706; font-size: 12px; font-style: normal; font-weight: 700; }
.tsv2-comparison-bundle { display: flex; align-items: center; }
.tsv2-comparison-value { overflow: hidden; color: #27364a; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.tsv2-score-badge { display: inline-flex; width: max-content; max-width: 100%; align-items: center; padding: 3px 7px; border-radius: 5px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.tsv2-score-badge.excellent { background: #dcfce7; color: #15803d; }
.tsv2-score-badge.good { background: #dbeafe; color: #1d4ed8; }
.tsv2-score-badge.medium { background: #fef3c7; color: #b45309; }
.tsv2-score-badge.low { background: #fee2e2; color: #b91c1c; }
.tsv2-score-badge.muted { background: #f1f5f9; color: #64748b; }
.tsv2-comparison-stores { padding: 0 16px 10px 80px; background: rgba(248,250,252,.7); }
.tsv2-comparison-members { border: 1px solid #e2e8f0; border-radius: 6px; overflow: hidden; }
.tsv2-comparison-members .tsv2-comparison-row { background: #fff; }
@media (max-width: 1180px) { .tsv2-comparison-card { min-width: max-content; } }

.tsv2-overlap-trigger {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.tsv2-overlap-trigger:hover {
  text-decoration: underline;
}

.tsv2-overlap-trigger-active {
  color: #dc2626;
}

.tsv2-related-popover {
  position: absolute;
  z-index: 80;
  width: 760px;
  max-width: 86vw;
  margin-top: 6px;
  padding: 9px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .16);
  color: #475569;
  font-size: 12px;
}

.tsv2-related-popover header,
.tsv2-related-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tsv2-related-popover header {
  margin-bottom: 7px;
}

.tsv2-related-popover header button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.tsv2-related-row {
  padding: 6px 0;
  border-top: 1px solid #f1f5f9;
}

.tsv2-related-table .tsv2-related-row {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 78px 78px 88px 70px 82px;
  gap: 9px;
  align-items: center;
}

.tsv2-related-head {
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.tsv2-related-select {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #2563eb;
  cursor: pointer;
}

.tsv2-related-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 9px;
  border-top: 1px solid #dbeafe;
}

.tsv2-related-current {
  display: grid;
  grid-template-columns: auto repeat(4, minmax(76px, auto));
  gap: 7px;
  align-items: center;
  margin-bottom: 7px;
  padding: 8px;
  border: 1px solid #facc15;
  border-radius: 5px;
  background: #fefce8;
  color: #713f12;
  font-weight: 700;
}

.tsv2-related-metric-highlight {
  display: inline-block;
  padding: 3px 6px;
  border: 1px solid #facc15;
  border-radius: 4px;
  background: #fef9c3;
  color: #854d0e;
  font-weight: 800;
}

.tsv2-row-related-active td {
  background: #fffbeb !important;
}

.tsv2-secondary {
  max-width: 100%;
  overflow: hidden;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tsv2-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.tsv2-badge.blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.tsv2-badge.green {
  background: #dcfce7;
  color: #166534;
}

.tsv2-badge.orange {
  background: #ffedd5;
  color: #9a3412;
}

.tsv2-badge.red {
  background: #fee2e2;
  color: #991b1b;
}

.tsv2-score {
  color: #dc2626;
  font-size: 14px;
  font-weight: 700;
}

.tsv2-loading,
.tsv2-empty {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 13px;
}

.tsv2-loading::before {
  width: 16px;
  height: 16px;
  margin-right: 9px;
  border: 2px solid #bfdbfe;
  border-top-color: #2563eb;
  border-radius: 50%;
  content: "";
  animation: tsv2-spin .75s linear infinite;
}

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

.tsv2-refreshing {
  position: sticky;
  z-index: 4;
  top: 0;
  padding: 7px 11px;
  border-bottom: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
}

.tsv2-pagination {
  min-height: 44px;
  justify-content: flex-end;
  gap: 14px;
  padding: 7px 11px;
  color: #64748b;
  font-size: 12px;
}

.tsv2-page-size {
  width: 96px;
}

.tsv2-card {
  margin-top: 14px;
}

.tsv2-card-head,
.tsv2-modal-head,
.tsv2-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid #e2e8f0;
}

.tsv2-card-title,
.tsv2-modal-title {
  color: #172033;
  font-size: 14px;
  font-weight: 750;
}

.tsv2-card-body,
.tsv2-modal-body {
  padding: 14px 15px;
}

.tsv2-inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tsv2-modal-mask,
.tsv2-modal-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(15, 23, 42, .52);
}

.tsv2-modal {
  width: min(1120px, 96vw);
  max-height: 90vh;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.tsv2-action-modal {
  width: min(1580px, 96vw);
}

.tsv2-modal-head {
  background: #fff;
}

.tsv2-modal-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tsv2-modal-body {
  max-height: calc(90vh - 118px);
  overflow: auto;
}

.tsv2-modal-foot {
  border-top: 1px solid #e2e8f0;
  border-bottom: 0;
}

.tsv2-picker-modal {
  width: min(820px, 92vw);
}

.tsv2-picker-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px auto auto;
  align-items: end;
  gap: 9px;
  padding: 12px 15px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.tsv2-picker-tools label span {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.tsv2-picker-list {
  max-height: 56vh;
  overflow: auto;
}

.tsv2-picker-row {
  display: flex;
  min-height: 48px;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 15px;
  border-bottom: 1px solid #eef2f7;
  cursor: pointer;
}

.tsv2-picker-row:hover {
  background: #eff6ff;
}

.tsv2-picker-row input {
  margin-top: 3px;
}

.tsv2-picker-row strong,
.tsv2-picker-row small {
  display: block;
}

.tsv2-picker-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.tsv2-debug-page {
  max-width: 1480px;
  margin: 0 auto;
}

.tsv2-debug-control,
.tsv2-debug-summary,
.tsv2-debug-step,
.tsv2-debug-products {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 16px;
}

.tsv2-debug-control {
  display: grid;
  gap: 14px;
}

.tsv2-debug-fields {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(130px, 1fr) minmax(130px, 1fr);
  gap: 12px;
  align-items: end;
}

.tsv2-debug-checkbox {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475467;
  font-size: 14px;
}

.tsv2-debug-template {
  grid-column: 1 / -1;
}

.tsv2-debug-template textarea {
  min-height: 108px;
  padding-top: 9px;
  padding-bottom: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  resize: vertical;
}

.tsv2-debug-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.tsv2-debug-summary > div {
  min-width: 0;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 6px;
}

.tsv2-debug-summary span,
.tsv2-debug-summary strong {
  display: block;
}

.tsv2-debug-summary span {
  color: #667085;
  font-size: 12px;
  margin-bottom: 5px;
}

.tsv2-debug-summary strong {
  color: #101828;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.tsv2-debug-warning {
  padding: 12px 14px;
  border: 1px solid #fedf89;
  border-radius: 6px;
  background: #fffaeb;
  color: #93370d;
  font-weight: 600;
}

.tsv2-debug-step {
  border-left: 4px solid #d0d5dd;
}

.tsv2-debug-step-completed {
  border-left-color: #12b76a;
}

.tsv2-debug-step-warning {
  border-left-color: #f79009;
}

.tsv2-debug-step-failed {
  border-left-color: #f04438;
}

.tsv2-debug-step-head,
.tsv2-debug-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tsv2-debug-step-head > div:first-child {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.tsv2-debug-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eff4ff;
  color: #175cd3;
  font-weight: 700;
}

.tsv2-debug-block {
  min-width: 0;
  margin-top: 12px;
}

.tsv2-debug-block-head {
  margin-bottom: 6px;
}

.tsv2-debug-block pre {
  max-height: 620px;
  overflow: auto;
  margin: 0;
  padding: 13px;
  border-radius: 6px;
  background: #0f172a;
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.tsv2-debug-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e4e7ec;
  background: #f8fafc;
}

.tsv2-debug-pages {
  margin-top: 14px;
}

.tsv2-debug-pages > summary {
  cursor: pointer;
  color: #175cd3;
  font-weight: 700;
}

.tsv2-debug-page-row {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
}

.tsv2-debug-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tsv2-debug-products {
  padding: 0;
  overflow: hidden;
}

.tsv2-debug-products > header {
  padding: 14px 16px;
  border-bottom: 1px solid #e4e7ec;
}

@media (max-width: 980px) {
  .tsv2-debug-fields,
  .tsv2-debug-summary,
  .tsv2-debug-grid {
    grid-template-columns: 1fr;
  }
}

.tsv2-picker-row strong {
  color: #172033;
  font-size: 12px;
}

.tsv2-picker-row small {
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
}

.tsv2-picker-empty {
  padding: 40px 15px;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.tsv2-warning {
  padding: 9px 11px;
  border-left: 3px solid #d97706;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
}

.tsv2-field label {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.tsv2-field input,
.tsv2-field select {
  width: 100%;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
}

.tsv2-draft-value {
  display: flex;
  min-width: 104px;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.tsv2-draft-value span {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.tsv2-action-progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 12px;
  border: 1px solid #dbe4ee;
  border-radius: 5px;
  overflow: hidden;
}

.tsv2-action-progress span {
  padding: 8px;
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  text-align: center;
}

.tsv2-action-progress span:last-child {
  border-right: 0;
}

.tsv2-action-progress .done {
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
}

.tsv2-action-progress .active {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
}

.tsv2-submission-groups {
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid #dbe4ee;
  border-radius: 6px;
  background: #f8fafc;
}

.tsv2-submission-groups header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: #172033;
}

.tsv2-submission-groups header span {
  color: #64748b;
  font-size: 12px;
}

.tsv2-submission-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 6px;
  max-height: 132px;
  padding-right: 2px;
  overflow-y: auto;
  align-content: start;
}

.tsv2-submission-group {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 5px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #fff;
}

.tsv2-submission-group > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.tsv2-submission-group strong {
  overflow: hidden;
  color: #172033;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tsv2-submission-group span {
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tsv2-submission-group-index {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569 !important;
  font-weight: 800;
}

@media (max-width: 760px) {
  .tsv2-submission-group-grid {
    grid-template-columns: 1fr;
  }
}

.tsv2-submission-group-executing,
.tsv2-submission-group-submitting {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.tsv2-submission-group-accepted,
.tsv2-submission-group-confirming {
  border-color: #c7d2fe;
  background: #eef2ff;
}

.tsv2-submission-group-succeeded {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.tsv2-submission-group-failed,
.tsv2-submission-group-waiting_retry,
.tsv2-submission-group-submission_unknown {
  border-color: #fed7aa;
  background: #fff7ed;
}

.tsv2-reconciliation-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  background: #fffbeb;
}

.tsv2-reconciliation-panel > header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tsv2-reconciliation-panel > header > div,
.tsv2-reconciliation-head > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.tsv2-reconciliation-panel > header span,
.tsv2-reconciliation-head span {
  color: #64748b;
  font-size: 12px;
}

.tsv2-reconciliation-case {
  padding: 12px;
  border: 1px solid #fed7aa;
  border-radius: 7px;
  background: #fff;
}

.tsv2-reconciliation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tsv2-reconciliation-evidence {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px 12px;
  margin: 10px 0;
}

.tsv2-reconciliation-evidence > div {
  display: flex;
  min-width: 0;
  gap: 6px;
  font-size: 12px;
}

.tsv2-reconciliation-evidence dt {
  color: #64748b;
  white-space: nowrap;
}

.tsv2-reconciliation-evidence dd {
  min-width: 0;
  margin: 0;
  color: #172033;
  overflow-wrap: anywhere;
}

.tsv2-reconciliation-candidates {
  max-height: 220px;
  margin-bottom: 10px;
}

.tsv2-reconciliation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tsv2-reconciliation-actions .tsv2-input {
  width: min(260px, 100%);
}

.tsv2-reconciliation-panel > .tsv2-error {
  margin-top: 10px;
}

.tsv2-draft-input {
  width: 92px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: #172033;
  font: inherit;
}

.tsv2-draft-input:focus {
  border-color: #2563eb;
  outline: 2px solid rgba(37, 99, 235, .12);
}

.tsv2-draft-input:disabled {
  background: #f1f5f9;
  color: #64748b;
}

.tsv2-draft-stores {
  min-width: 120px;
}

.tsv2-draft-stores summary {
  color: #175cd3;
  cursor: pointer;
  font-weight: 750;
}

.tsv2-draft-stores > span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #eef2f7;
  color: #334155;
  font-size: 11px;
}

.tsv2-draft-stores small {
  color: #94a3b8;
  font-size: 10px;
}

.tsv2-draft-table {
  min-width: 1460px;
}

.tsv2-draft-table th:nth-child(1) {
  width: 280px;
}

.tsv2-draft-table th:nth-child(2) {
  width: 160px;
}

.tsv2-draft-table th:nth-child(3) {
  width: 230px;
}

.tsv2-draft-table th:last-child {
  width: 76px;
}

.tsv2-draft-batch-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #dbe4ee;
  border-radius: 6px;
  background: #f8fafc;
}

.tsv2-draft-batch-tools > strong {
  align-self: center;
  color: #172033;
}

.tsv2-draft-batch-tools label {
  display: grid;
  grid-template-columns: 92px auto;
  gap: 4px 7px;
  align-items: center;
  color: #64748b;
  font-size: 11px;
}

.tsv2-draft-batch-tools label input {
  grid-row: 2;
  width: 92px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
}

.tsv2-draft-batch-tools label button {
  grid-column: 2;
  grid-row: 2;
}

.tsv2-draft-duplicates {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fff1f2;
  color: #b91c1c;
  font-size: 12px;
}

.tsv2-draft-duplicates > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.tsv2-draft-duplicates strong {
  color: #991b1b;
}

.tsv2-draft-warning {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  border: 1px solid #fde68a;
  border-left-width: 3px;
  border-radius: 6px;
}

.tsv2-draft-warning-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tsv2-aggregate-toggle {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  align-self: end;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tsv2-store-count {
  padding: 0;
  border: 0;
  background: transparent;
  color: #175cd3;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.tsv2-store-count:hover {
  text-decoration: underline;
}

.tsv2-overlap-indicator {
  cursor: default;
}

.tsv2-store-picker-modal {
  width: min(720px, 92vw);
}

.tsv2-store-picker-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 9px;
  padding: 12px 15px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.tsv2-store-picker-list {
  max-height: 58vh;
  overflow: auto;
}

.tsv2-store-picker-row {
  display: flex;
  min-height: 48px;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 15px;
  border-bottom: 1px solid #eef2f7;
  cursor: pointer;
}

.tsv2-store-picker-row:hover {
  background: #eff6ff;
}

.tsv2-store-picker-row input {
  margin-top: 3px;
}

.tsv2-store-picker-row span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.tsv2-store-picker-row strong {
  color: #172033;
  font-size: 12px;
}

.tsv2-store-picker-row small {
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
}

.tsv2-drawer-mask {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 23, 42, .38);
}

.tsv2-store-drawer {
  display: flex;
  width: min(920px, 94vw);
  height: 100%;
  flex-direction: column;
  background: #fff;
  box-shadow: -18px 0 48px rgba(15, 23, 42, .2);
}

.tsv2-store-drawer-head,
.tsv2-store-drawer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.tsv2-store-drawer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #dbeafe;
  background: #eff6ff;
  color: #475569;
  font-size: 11px;
}

.tsv2-store-drawer-actions label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #172033;
  font-size: 12px;
  font-weight: 750;
}

.tsv2-store-drawer-body {
  min-height: 0;
  flex: 1;
  overflow: auto;
}

.tsv2-store-drawer-foot {
  border-top: 1px solid #e2e8f0;
  border-bottom: 0;
}

.tsv2-store-member {
  border-bottom: 1px solid #e8edf4;
  background: #fff;
}

.tsv2-store-member-selected {
  background: #f8fbff;
}

.tsv2-store-member-main {
  display: grid;
  grid-template-columns: 24px minmax(150px, 1.4fr) repeat(6, minmax(82px, 1fr)) 42px;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 16px;
}

.tsv2-store-member-name,
.tsv2-store-member-metric {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.tsv2-store-member-name strong {
  overflow: hidden;
  color: #172033;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tsv2-store-member-name small,
.tsv2-store-member-metric span {
  color: #7c8aa0;
  font-size: 10px;
}

.tsv2-store-member-metric strong {
  color: #27364d;
  font-size: 11px;
}

.tsv2-store-member-overlaps {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 16px 12px 50px;
  border-top: 1px dashed #bfdbfe;
  background: #eff6ff;
  color: #475569;
  font-size: 11px;
}

.tsv2-store-overlap-row {
  display: grid;
  grid-template-columns: 68px minmax(190px, 1fr) repeat(4, minmax(86px, auto));
  align-items: center;
  gap: 9px;
}

.tsv2-debug {
  max-height: 440px;
  overflow: auto;
}

.tsv2-debug pre {
  margin: 0;
  padding: 10px;
  border-radius: 5px;
  background: #111827;
  color: #d1fae5;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-all;
}

@media (max-width: 1200px) {
  .tsv2-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tsv2-step {
    border-bottom: 1px solid #e5e7eb;
  }

  .tsv2-step:nth-child(2n) {
    border-right: 0;
  }

  .tsv2-step:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .tsv2-picker-tools {
    grid-template-columns: 1fr 1fr;
  }

  .tsv2-store-member-main {
    grid-template-columns: 24px minmax(150px, 1.5fr) repeat(3, minmax(80px, 1fr)) 42px;
  }

  .tsv2-store-member-metric:nth-of-type(n+5) {
    display: none;
  }
}
