.data-sync-page {
  width: calc(100% - 32px);
  margin: 0 auto;
  padding: 24px 0 40px;
}

.data-sync-header,
.data-sync-table-shell {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 39, 53, 0.98), rgba(24, 32, 44, 0.98));
  box-shadow: var(--shadow);
}

.data-sync-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 8px;
}

.data-sync-header__eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-sync-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.data-sync-filter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  min-width: min(520px, 100%);
  margin: 0;
}

.data-sync-filter-list div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(13, 19, 29, 0.62);
}

.data-sync-filter-list dt {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.data-sync-filter-list dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.data-sync-table-shell {
  border-radius: 8px;
  overflow: hidden;
}

.data-sync-table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(100vh - 220px);
  scrollbar-width: thin;
  scrollbar-color: #4b5d75 transparent;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.data-sync-table {
  width: max-content;
  min-width: max(100%, 2420px);
  border-collapse: collapse;
  table-layout: auto;
}

.data-sync-table th,
.data-sync-table td {
  border: 1px solid rgba(85, 113, 146, 0.28);
  padding: 11px 10px;
  color: #eff5ff;
  font-size: 0.88rem;
  line-height: 1.35;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.data-sync-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #202835;
  color: #f7fbff;
  font-size: 0.78rem;
  font-weight: 700;
}

.data-sync-table th:nth-child(1),
.data-sync-table td:nth-child(1) {
  min-width: 220px;
}

.data-sync-table th:nth-child(2),
.data-sync-table td:nth-child(2) {
  min-width: 130px;
}

.data-sync-table th:nth-child(3),
.data-sync-table td:nth-child(3),
.data-sync-table th:nth-child(4),
.data-sync-table td:nth-child(4) {
  min-width: 240px;
}

.data-sync-table th:nth-child(5),
.data-sync-table td:nth-child(5),
.data-sync-table th:nth-child(7),
.data-sync-table td:nth-child(7) {
  min-width: 150px;
}

.data-sync-table th:nth-child(6),
.data-sync-table td:nth-child(6) {
  min-width: 300px;
}

.data-sync-table th:nth-child(8),
.data-sync-table td:nth-child(8),
.data-sync-table th:nth-child(9),
.data-sync-table td:nth-child(9),
.data-sync-table th:nth-child(10),
.data-sync-table td:nth-child(10),
.data-sync-table th:nth-child(11),
.data-sync-table td:nth-child(11),
.data-sync-table th:nth-child(12),
.data-sync-table td:nth-child(12) {
  min-width: 150px;
}

.data-sync-table th:nth-child(13),
.data-sync-table td:nth-child(13),
.data-sync-table th:nth-child(14),
.data-sync-table td:nth-child(14) {
  min-width: 210px;
}

.data-sync-table th:nth-child(15),
.data-sync-table td:nth-child(15) {
  min-width: 360px;
}

.data-sync-table th:nth-child(16),
.data-sync-table td:nth-child(16) {
  min-width: 180px;
}

.data-sync-table th:nth-child(17),
.data-sync-table td:nth-child(17) {
  min-width: 300px;
}

.data-sync-table tbody tr:nth-child(odd) {
  background: rgba(13, 19, 29, 0.74);
}

.data-sync-table tbody tr:nth-child(even) {
  background: rgba(32, 40, 53, 0.82);
}

.data-sync-table__wide-cell {
  min-width: 210px;
}

.data-sync-table__error-cell {
  color: #ffd2d2;
}

.data-sync-action-link,
.data-sync-status-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: #2a2e34;
  color: white;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.82rem;
  text-decoration: none;
  cursor: pointer;
}

.data-sync-action-link:hover,
.data-sync-status-actions a:hover {
  background: #364156;
}

.data-sync-status-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

@media (max-width: 960px) {
  .data-sync-page {
    width: calc(100% - 20px);
    padding: 18px 0 28px;
  }

  .data-sync-header {
    display: grid;
  }

  .data-sync-filter-list {
    grid-template-columns: 1fr;
    min-width: 0;
  }
}
