/* Mirror Hub — Crosslist board (/crosslist).
   Same dark plum surface + tabular-nums as Jobs, with a wider table to
   accommodate one column per marketplace. Chips are click-to-enqueue
   (only on idle/failed/delisted rows). */

.cl-root {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 22px 28px 60px;
  gap: 18px;
  overflow-y: auto;
}

.cl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.cl-title {
  font-family: var(--mh-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--mh-text);
  margin: 0 0 4px;
}
.cl-sub {
  color: var(--mh-text-mute);
  font-size: 12.5px;
  margin: 0;
  max-width: 640px;
}
.cl-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cl-filterbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cl-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-r-input);
  height: 32px;
  flex: 1;
  min-width: 280px;
  max-width: 480px;
  color: var(--mh-text-mute);
  transition: border-color var(--mh-dur), color var(--mh-dur);
}
.cl-search:focus-within {
  border-color: var(--mh-plum);
  color: var(--mh-plum);
}
.cl-search input {
  border: 0; outline: 0; background: transparent;
  flex: 1; height: 100%;
  color: var(--mh-text);
  font-size: 13px;
  font-family: var(--mh-mono);
}
.cl-search input::placeholder { color: var(--mh-text-faint); }
.cl-spacer { flex: 1; }
.cl-total {
  font-size: 11px;
  color: var(--mh-text-mute);
  padding-right: 6px;
}

.cl-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--mh-bg);
}
.cl-table thead th {
  font-family: var(--mh-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mh-text-mute);
  font-weight: 500;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--mh-line);
  background: var(--mh-bg);
  position: sticky;
  top: 0;
  z-index: 1;
}
.cl-table thead th.cl-num     { text-align: right; }
.cl-table thead th.cl-target-h { text-align: center; }

.cl-row {
  cursor: pointer;
  transition: background var(--mh-dur);
}
.cl-row:hover { background: var(--mh-plum-soft); }
.cl-row td {
  padding: 12px;
  border-bottom: 1px solid var(--mh-line);
  vertical-align: middle;
  font-size: 12.5px;
}

.cl-thumb {
  width: 40px; height: 40px;
  border-radius: var(--mh-r-input);
  overflow: hidden;
  background: var(--mh-card);
  border: 1px solid var(--mh-line);
}
.cl-thumb img,
.cl-thumb svg {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.cl-sku-cell { line-height: 1.3; }
.cl-sku {
  color: var(--mh-plum-bright);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cl-id-sub {
  color: var(--mh-text-faint);
  font-size: 9.5px;
  margin-top: 2px;
  letter-spacing: 0.04em;
}
.cl-title-cell { min-width: 220px; }
.cl-title-line {
  color: var(--mh-text);
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cl-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.cl-target {
  text-align: center;
  white-space: nowrap;
}
.cl-chip {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-block;
  font-family: var(--mh-mono);
  letter-spacing: 0.03em;
  user-select: none;
}
.cl-chip-actionable {
  cursor: pointer;
  border: 1px dashed var(--mh-text-faint);
}
.cl-chip-actionable:hover {
  border-style: solid;
  border-color: var(--mh-plum);
  color: var(--mh-plum);
}
.cl-chip-soon {
  opacity: 0.45;
  cursor: not-allowed;
}

.cl-loading,
.cl-error {
  text-align: center;
  padding: 28px;
  color: var(--mh-text-mute);
  font-size: 12px;
}
.cl-error { color: var(--mh-danger); }

.cl-empty {
  margin: 60px auto;
  max-width: 540px;
  text-align: center;
  color: var(--mh-text-mute);
  font-size: 12px;
  padding: 18px 22px;
  border: 1px dashed var(--mh-line);
  border-radius: var(--mh-r-card);
}

/* Toast — bottom-right, transient. */
.cl-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 12px 18px;
  background: var(--mh-card);
  border: 1px solid var(--mh-line);
  border-radius: var(--mh-r-input);
  color: var(--mh-text);
  font-size: 12.5px;
  font-family: var(--mh-mono);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 200;
  max-width: 360px;
}
.cl-toast-good   { border-color: var(--mh-good); color: var(--mh-good); }
.cl-toast-danger { border-color: var(--mh-danger); color: var(--mh-danger); }
