.sync-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 6px;
}

.sync-page-head h1 {
  margin: 0 0 6px;
  font-size: 26px;
  color: #10213f;
  letter-spacing: 0;
}

.sync-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.sync-status-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 82px;
  padding: 16px 18px;
  border-left: 1px solid #e6eef8;
}

.sync-status-item:first-child {
  border-left: 0;
}

.sync-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1f6feb;
  font-size: 11px;
  font-weight: 800;
}

.sync-status-item.good .sync-status-icon {
  background: #dcfce7;
  color: #16a34a;
}

.sync-status-item.warn .sync-status-icon {
  background: #ffedd5;
  color: #ea580c;
}

.sync-status-item.bad .sync-status-icon {
  background: #fee2e2;
  color: #dc2626;
}

.sync-status-item p {
  margin: 0 0 4px;
  color: #53647f;
  font-size: 12px;
}

.sync-status-item strong {
  display: block;
  color: #10213f;
  font-size: 16px;
}

.sync-status-item small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sync-strategy-panel .panel-header.compact {
  margin-bottom: 10px;
}

.compact-sync-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sync-basic-row,
.sync-advanced-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
}

.sync-basic-row label,
.sync-advanced-grid label {
  min-width: 0;
}

.sync-basic-row label {
  display: grid;
  gap: 6px;
}

.sync-basic-row label span {
  color: #64748b;
  font-size: 12px;
}

.sync-scenario-table {
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.sync-scenario-row {
  display: grid;
  grid-template-columns: 72px minmax(120px, .9fr) minmax(190px, 1.2fr) 130px 180px minmax(150px, 1fr) 92px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid #edf2f8;
}

.sync-scenario-row:first-child {
  border-top: 0;
}

.sync-scenario-row.head {
  background: #f5f8fc;
  color: #53647f;
  font-weight: 700;
  font-size: 12px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.sync-scenario-row.disabled {
  color: #8a97aa;
  background: #fafbfc;
}

.sync-row-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
}

.sync-row-check input,
.sync-settings-form input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: #1f6feb;
}

.sync-row-business strong {
  display: block;
  color: #11233f;
  font-size: 14px;
}

.sync-row-content,
.sync-row-time {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.sync-row-interval {
  display: flex;
  align-items: center;
  gap: 6px;
  width: auto;
}

.sync-row-interval input {
  width: 76px;
  height: 32px;
}

.sync-row-interval span {
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}

.sync-row-status {
  justify-self: start;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sync-row-status.warn {
  background: #fff7ed;
  color: #c2410c;
}

.sync-row-status.bad {
  background: #fff1f2;
  color: #be123c;
}

.sync-row-status.muted {
  background: #f1f5f9;
  color: #64748b;
}

.sync-row-action {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f6feb;
  font-weight: 700;
  font-size: 13px;
}

.sync-advanced-settings {
  border: 1px solid #e4edf8;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfdff;
}

.sync-advanced-settings summary {
  cursor: pointer;
  font-weight: 700;
  color: #18345f;
}

.sync-advanced-grid {
  margin-top: 10px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.sync-settings-form .checkbox-field {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #f8fbff;
}

.sync-settings-form .checkbox-field span {
  font-weight: 700;
  color: #18345f;
}

.sync-settings-form .sync-warning-toggle {
  border-color: #ffd59a;
  background: #fff8ed;
}

.sync-save-row {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .sync-page-head {
    display: grid;
  }

  .sync-status-strip,
  .sync-basic-row,
  .sync-advanced-grid {
    grid-template-columns: 1fr;
  }

  .sync-status-item {
    border-left: 0;
    border-top: 1px solid #e6eef8;
  }

  .sync-status-item:first-child {
    border-top: 0;
  }

  .sync-scenario-table {
    overflow-x: auto;
  }

  .sync-scenario-row {
    min-width: 980px;
  }
}
